/* ============================================================
   SVARPORT — сварочная мастерская в Витебске
   Палитра по ТЗ: фон RAL 7024 (графит), текст RAL 7035 (светло-серый).
   Монохромный «металл», сдержанно. Шрифт Oswald + Roboto.
   ============================================================ */

:root {
  --graphite:   #474a50;   /* RAL 7024 — основной фон */
  --graphite-2: #3f4248;   /* секция потемнее */
  --graphite-3: #52565e;   /* карточка / панель посветлее */
  --graphite-4: #5c616a;   /* ховер / светлая граница */
  --dark:       #34363b;   /* подвал / самый тёмный */
  --paper:      #d7d7d7;   /* RAL 7035 — текст */
  --paper-bright:#eef0ef;  /* заголовки */
  --paper-soft: #a4abae;   /* приглушённый */
  --ink:        #2b2d31;   /* тёмный текст на светлых кнопках */
  --line:       #585c64;   /* границы */
  --accent:     #c7cdce;   /* светлая сталь — подчёркивания/иконки */
  --wa:#25D366; --tg:#2AABEE; --vb:#7360F2;
  --ig1:#f09433; --ig2:#dc2743; --ig3:#bc1888;
  --maxw: 1200px;
  --radius: 4px;
  --shadow: 0 14px 40px rgba(20,22,25,.35);
  --t: .2s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 17px; line-height: 1.65; color: var(--paper); background: var(--graphite); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--paper-bright); text-decoration: none; transition: color var(--t); }
a:hover { color: #fff; }
.link-u { text-decoration: underline; }

h1, h2, h3, .h { font-family: "Oswald", "Roboto", sans-serif; font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .01em; color: var(--paper-bright); }
h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); text-transform: uppercase; }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: 14px 28px; border-radius: var(--radius); font-family: "Oswald", sans-serif; font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; border: 2px solid transparent; transition: all var(--t); white-space: nowrap; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--paper-bright); color: var(--ink); }
.btn-primary:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--paper-bright); border-color: rgba(215,215,215,.4); }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--graphite-2); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand b { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 1.45rem; letter-spacing: .13em; color: var(--paper-bright); }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--paper); font-weight: 500; font-size: .96rem; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav .ig-ico { display: inline-flex; }
.ig-ico { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(45deg, var(--ig1), var(--ig2), var(--ig3)); display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.ig-ico svg { width: 22px; height: 22px; display: block; transform: translateX(-1px); }
.ig-ico:hover { color: #fff; filter: brightness(1.1); transform: translateY(-1px); }

.header-phone { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.header-phone a { font-family: "Oswald", sans-serif; color: var(--paper-bright); font-weight: 600; font-size: 1.12rem; letter-spacing: .02em; white-space: nowrap; }
.header-phone a:hover { color: #fff; }
.header-phone small { color: var(--paper-soft); font-size: .7rem; }
.header-call { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--graphite-4); color: #fff; align-items: center; justify-content: center; flex: none; }
.header-call svg { width: 22px; height: 22px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--paper-bright); margin: 5px 0; transition: var(--t); }

/* ---------- Hero (видео + лого вместо слогана) ---------- */
.hero { position: relative; color: #fff; text-align: center; padding: clamp(70px, 12vw, 130px) 0; min-height: clamp(540px, 76vh, 780px); display: flex; align-items: center; background: var(--graphite-2); border-bottom: 3px solid var(--line); overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at center, rgba(28,30,33,.42) 0%, rgba(28,30,33,.68) 70%, rgba(28,30,33,.82) 100%); }
.hero-content { position: relative; z-index: 2; text-shadow: 0 2px 18px rgba(10,14,18,.55); }
.hero-logo { width: clamp(180px, 28vw, 280px); margin: 0 auto 20px; filter: drop-shadow(0 6px 20px rgba(0,0,0,.55)); }
.hero h1 { font-size: clamp(1.15rem, 2.5vw, 1.6rem); font-weight: 500; letter-spacing: .06em; color: var(--paper-bright); max-width: 24ch; margin: 0 auto 22px; }
.hero-cta-label { font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; color: var(--paper-soft); margin: 0 0 14px; }
.hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 190px)); gap: 14px; justify-content: center; }
.hero-actions .btn { width: 100%; }

/* ---------- Секции ---------- */
.section { padding: clamp(56px, 9vw, 96px) 0; }
.section.g1 { background: var(--graphite); }
.section.g2 { background: var(--graphite-2); }
.section-title { text-align: center; max-width: 64ch; margin: 0 auto clamp(36px,6vw,54px); }
.section-title h2 { display: inline-block; margin-bottom: 0; position: relative; padding-bottom: 18px; }
.section-title h2::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 56px; height: 3px; background: var(--accent); }
.section-title p { margin-top: 18px; color: var(--paper); opacity: .9; }
/* центрированная CTA-полоса («Бесплатный осмотр», 404) */
.cta-band { text-align: center; }
.cta-text { color: var(--paper); max-width: 54ch; margin: 0 auto 26px; }

/* ---------- Карточки услуг ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--graphite-3); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--t), border-color var(--t); }
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card .card-media { aspect-ratio: 16/10; overflow: hidden; background: var(--graphite-2); }
.card .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card .card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { color: var(--paper-bright); margin: 0; }
.card p { color: var(--paper); opacity: .82; font-size: .95rem; margin: 0; }
.card .card-link { margin-top: auto; font-family: "Oswald", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); font-size: .9rem; }

/* ---------- Преимущества ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.feature { text-align: center; padding: 8px; }
.feature .ico { width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 10px; display: grid; place-items: center; background: rgba(215,215,215,.08); border: 1px solid var(--line); }
.feature .ico svg { width: 34px; height: 34px; stroke: var(--accent); display: block; }
.feature h3 { color: var(--paper-bright); }
.feature p { color: var(--paper); opacity: .82; }

/* ---------- Портфолио ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.gallery.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--graphite-2); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t), opacity var(--t); }
.gallery a::after { content: ""; position: absolute; inset: 0; background: rgba(20,22,25,0); transition: background var(--t); }
.gallery a:hover::after { background: rgba(20,22,25,.22); }
.gallery a:hover img { transform: scale(1.08); }
.gallery-note { text-align: center; color: var(--paper-soft); font-size: .9rem; margin: 16px 0 0; }
.gallery-more { margin-top: 26px; }

/* ---------- Instagram-секция ---------- */
.ig-band { background: var(--graphite-2); }
.ig-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border-radius: var(--radius); background: linear-gradient(45deg, var(--ig1), var(--ig2), var(--ig3)); color: #fff; font-family: "Oswald", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; transition: all var(--t); }
.ig-btn:hover { color: #fff; filter: brightness(1.08); transform: translateY(-2px); }
.ig-btn svg { width: 22px; height: 22px; }

/* ---------- Отзывы (Яндекс) ---------- */
.yandex-reviews { text-align: center; background: var(--graphite-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 28px; max-width: 640px; margin: 0 auto; }
.yandex-reviews .rating { font-family: "Oswald", sans-serif; font-size: 3.2rem; font-weight: 700; color: var(--paper-bright); line-height: 1; }
.yandex-reviews .stars { color: #ffb400; font-size: 1.4rem; letter-spacing: 3px; margin: 8px 0 6px; }
.yandex-reviews p { color: var(--paper); }

/* ---------- Контент-страницы ---------- */
.page-hero { background: linear-gradient(rgba(28,30,33,.82), rgba(28,30,33,.92)), var(--graphite-2) center/cover; color: #fff; padding: clamp(56px,9vw,92px) 0; border-bottom: 3px solid var(--line); }
.page-hero .crumbs { color: var(--paper-soft); font-size: .9rem; margin-bottom: 14px; }
.page-hero .crumbs a { color: var(--paper-soft); }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero h1 { color: var(--paper-bright); max-width: 24ch; }
.page-hero .lead { color: var(--paper); font-size: 1.15rem; max-width: 62ch; margin: 0; }

.prose { max-width: 760px; color: var(--paper); }
.prose h2 { margin-top: 1.3em; }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 12px; margin: 1.2em 0; }
.prose ul li { position: relative; padding-left: 32px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 16px; height: 9px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.layout-2 { display: grid; grid-template-columns: 1fr 350px; gap: 50px; align-items: start; }
.aside-card { background: var(--graphite-2); color: var(--paper); border-radius: var(--radius); padding: 28px; position: sticky; top: 92px; border: 1px solid var(--line); }
.aside-card h3 { color: var(--paper-bright); }
.aside-card .phone-big { font-family: "Oswald", sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--paper-bright); display: block; margin: 6px 0 4px; }
.aside-card .phone-big:hover { color: #fff; }
.aside-card .muted { color: var(--paper-soft); font-size: .9rem; }
.about-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin: 0; }
.about-media img, .about-media video { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.about-media figcaption { text-align: center; padding: 10px 12px; color: var(--paper-soft); font-size: .82rem; background: var(--graphite-3); font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ico { color: var(--accent); flex: none; width: 26px; height: 26px; }
.contact-list .ico svg { width: 26px; height: 26px; stroke: var(--accent); display: block; }
.contact-list b { display: block; font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .03em; font-size: .82rem; color: var(--paper-soft); font-weight: 600; margin-bottom: 2px; }
.contact-list a { font-size: 1.1rem; color: var(--paper-bright); }
.person-card { display: flex; gap: 18px; align-items: center; background: var(--graphite-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 26px; }
.person-card img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--line); }
.person-card .p-name { font-family: "Oswald", sans-serif; font-size: 1.2rem; font-weight: 600; color: var(--paper-bright); }
.person-card .p-title { color: var(--paper-soft); font-size: .9rem; }
.map-embed { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 380px; background: var(--graphite-2); }
.map-embed img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t); }
.map-embed:hover img { transform: scale(1.03); }
.map-link { display: inline-block; margin-top: 14px; font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: .04em; font-size: .92rem; }
.msg-title { margin-bottom: 14px; }

/* ---------- Мессенджер-кнопки ---------- */
.msg-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.msg-row.stack { grid-template-columns: 1fr; margin-top: 16px; }
.msg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 14px; border-radius: var(--radius); color: #fff; font-family: "Oswald", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; transition: all var(--t); }
.msg-btn svg { width: 20px; height: 20px; flex: none; }
.msg-btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.08); }
.msg-btn.wa { background: var(--wa); } .msg-btn.tg { background: var(--tg); } .msg-btn.vb { background: var(--vb); }
.msg-btn.ig { background: linear-gradient(45deg, var(--ig1), var(--ig2), var(--ig3)); }
.msg-row .msg-span { grid-column: 1 / -1; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--dark); color: var(--paper-soft); padding: 56px 0 26px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 38px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: .92rem; max-width: 38ch; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; align-items: center; }
.site-footer h4 { font-family: "Oswald", sans-serif; color: var(--paper-bright); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-links a { color: var(--paper-soft); font-size: .94rem; }
.footer-links a:hover { color: #fff; }
.footer-links.bullets li { position: relative; padding-left: 16px; }
.footer-links.bullets li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }
/* блок контактов в футере — с иконками, не «полотном текста» */
.footer-contacts { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.footer-contacts li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contacts .fc-ico { flex: none; width: 20px; height: 20px; color: var(--paper-soft); margin-top: 2px; }
.footer-contacts .fc-ico svg { width: 20px; height: 20px; stroke: currentColor; display: block; }
.footer-contacts .fc-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--paper-soft); opacity: .75; margin-bottom: 1px; }
.footer-contacts .fc-val, .footer-contacts .fc-val a { color: var(--paper); font-size: .96rem; }
.footer-contacts .fc-val a:hover { color: #fff; }

/* единый стиль соц-иконок (кружки одного размера, иконка внутри крупнее) */
.soc { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; color: #fff; transition: transform var(--t), filter var(--t); }
.soc svg { width: 23px; height: 23px; display: block; }
/* оптическая юстировка глифов (у каждого свой bbox) */
.soc.wa svg { width: 25px; height: 25px; }
.soc.tg svg { width: 21px; height: 21px; transform: translateX(-1px); }
.soc.vb svg { width: 25px; height: 25px; transform: translateY(1.5px); }
.soc.ig svg { width: 23px; height: 23px; transform: translateX(-1px); }
.soc:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.1); }
.soc.wa { background: var(--wa); } .soc.tg { background: var(--tg); } .soc.vb { background: var(--vb); }
.soc.ig { background: linear-gradient(45deg, var(--ig1), var(--ig2), var(--ig3)); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: var(--paper-soft); font-family: "Oswald", sans-serif; letter-spacing: .02em; }

/* ---------- Плавающая кнопка + модалка ---------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; background: var(--graphite-4); color: #fff; box-shadow: 0 10px 26px rgba(20,22,25,.5); display: grid; place-items: center; transition: transform var(--t), background var(--t); }
.fab:hover { transform: scale(1.06); background: var(--line); }
.fab svg { width: 28px; height: 28px; }
.fab.pulse { animation: fabpulse 2.8s infinite; }
@keyframes fabpulse { 0% { box-shadow: 0 0 0 0 rgba(215,215,215,.35); } 70% { box-shadow: 0 0 0 15px rgba(215,215,215,0); } 100% { box-shadow: 0 0 0 0 rgba(215,215,215,0); } }
.modal { position: fixed; inset: 0; z-index: 110; display: none; align-items: center; justify-content: center; background: rgba(18,20,22,.74); backdrop-filter: blur(3px); padding: 20px; }
.modal.open { display: flex; }
.modal-card { background: var(--graphite-2); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 8px; max-width: 420px; width: 100%; padding: 32px 28px; position: relative; text-align: center; }
.modal-card h3 { color: var(--paper-bright); }
.modal-card p { color: var(--paper-soft); font-size: .92rem; margin: 0 0 6px; }
.modal-actions { display: grid; gap: 12px; margin-top: 20px; }
.modal-actions .msg-btn { width: 100%; padding: 15px; font-size: .98rem; }
.modal-close { position: absolute; top: 10px; right: 14px; width: 36px; height: 36px; background: none; border: 0; color: var(--paper-soft); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.modal-close:hover { color: #fff; }

/* ---------- Тост (копирование номера и т.п.) ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 130; background: var(--graphite-2); color: var(--paper-bright); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 6px; padding: 13px 20px; font-size: .95rem; box-shadow: 0 12px 34px rgba(15,16,18,.5); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; background: rgba(15,16,18,.96); padding: 30px; }
.lightbox.open { display: flex; }
.lightbox .lb-stage { position: relative; display: grid; place-items: center; max-width: 92vw; max-height: 86vh; }
.lightbox figure { margin: 0; display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.6); opacity: 0; transition: opacity .2s ease; }
.lightbox img.loaded { opacity: 1; }
.lightbox figcaption { color: var(--paper); margin-top: 12px; font-size: .95rem; text-align: center; max-width: 70ch; }
.lightbox .lb-spin { position: absolute; width: 42px; height: 42px; border: 3px solid rgba(255,255,255,.25); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; opacity: 0; }
.lightbox.loading .lb-spin { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.lightbox button { background: rgba(255,255,255,.08); color: #fff; border: 0; cursor: pointer; border-radius: 6px; transition: background var(--t); }
.lightbox button:hover { background: var(--graphite-4); }
.lb-close { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; font-size: 1.8rem; line-height: 1; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 72px; font-size: 1.6rem; }
.lb-prev { left: 18px; } .lb-next { right: 18px; }

/* ---------- Адаптив ---------- */
@media (max-width: 980px) {
  .grid-3, .features { grid-template-columns: repeat(2, 1fr); }
  .layout-2, .contact-grid { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .header-call { display: inline-flex; }
  .nav.open { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--graphite-2); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; z-index: 60; }
  .nav.open a { padding: 13px 0; width: 100%; border-bottom: 1px solid var(--line); }
  /* Instagram-иконка в открытом меню — обычный размер, а не полоса на всю ширину */
  .nav.open .ig-ico { width: 40px; height: 40px; padding: 0; border-bottom: 0; margin: 14px 0 4px; }
  .header-inner { gap: 14px; }
  .grid-3, .features { grid-template-columns: 1fr; }
  .msg-row { grid-template-columns: 1fr; }
  .hero-actions { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .gallery, .gallery.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .person-card { flex-direction: column; text-align: center; }
  .lb-prev, .lb-next { width: 42px; height: 58px; }
  body { font-size: 16px; }
}

/* уважение к «уменьшить движение» в настройках ОС */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fab.pulse { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
