/* =========================================================================
   ДОВЕРИЕ — ритуальное агентство (Пермь)
   Дизайн-система. Эстетика «тихая роскошь» (quiet luxury).
   ========================================================================= */

/* ---- Шрифты ---- */
/* Заголовки — PT Serif (антиква, отличная кириллица).
   Текст — Manrope (чистый гротеск, премиальный, кириллица). */

/* Нативные плавные переходы между страницами (Chrome/Edge; в остальных — обычная навигация).
   Уважает prefers-reduced-motion на уровне браузера. */
@view-transition { navigation: auto; }

/* ---- Токены ---- */
:root {
  /* Палитра (из логотипа) */
  --accent:        #3B5A78;  /* сине-стальной — птица, акценты, ссылки, кнопки */
  --accent-deep:   #2E4860;  /* затемнённый акцент для hover */
  --accent-tint:   #EEF1F4;  /* очень светлый сине-серый фон */
  --ink:           #3C3C3C;  /* основной текст */
  --ink-soft:      #6E6F71;  /* вторичный текст */
  --ink-faint:     #6A6C6F;  /* подписи, мета (контраст AA на белом и тёплом фоне) */
  --bg:            #FFFFFF;  /* белый фон */
  --bg-warm:       #F6F5F2;  /* тёплый кремовый для чередования секций */
  --border:        #E3E6EA;  /* тонкие границы */
  --border-warm:   #E7E4DD;  /* граница на тёплом фоне */

  /* Типографика */
  --font-serif: 'PT Serif', 'Times New Roman', Georgia, serif;
  --font-sans:  'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Базовый размер текста (пожилая аудитория — крупно).
     Переключатель «крупный шрифт» меняет это значение. */
  --base-size: 18px;

  /* Ритм и сетка */
  --container: 1200px;
  --container-narrow: 820px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 10px;
  --radius-sm: 8px;
  --radius-lg: 14px;

  /* Тени — едва заметные */
  --shadow-sm: 0 1px 2px rgba(40, 50, 65, .04), 0 1px 3px rgba(40, 50, 65, .03);
  --shadow-md: 0 6px 22px rgba(40, 50, 65, .06), 0 2px 6px rgba(40, 50, 65, .04);
  --shadow-lg: 0 18px 50px rgba(40, 50, 65, .09);

  /* Движение */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .65s;

  --header-h: 122px;
}

/* ---- Сброс ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--base-size);
  line-height: 1.7;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: .003em;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }

/* ---- Типографика ---- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto; /* перенос длинных слов (церемониймейстера, конфиденциальности) на узких экранах */
}
h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.85rem); }
h3 { font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.7rem); }
h4 { font-size: 1.22rem; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; transition: color .2s var(--ease); }
/* Инлайн-ссылки в тексте подчёркиваем (a11y: не только цветом) */
.prose a, p a:not(.btn):not(.num):not(.link-arrow):not(.cta-band__phone a) { text-decoration: underline; text-underline-offset: 2px; }
#header { min-height: var(--header-h); } /* резерв высоты шапки до инъекции JS — меньше CLS */
a:hover { color: var(--accent-deep); }

strong { font-weight: 600; }

.lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
  display: inline-block;
}

/* ---- Контейнеры и секции ---- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(64px, 8vw, 124px); }
.section.warm { background: var(--bg-warm); }

.section-head { max-width: 720px; margin-bottom: clamp(34px, 4vw, 58px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.12rem; }


/* ---- Кнопки ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600; line-height: 1;
  padding: 1.05em 1.7em; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; text-align: center;
  min-height: 52px;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .2s var(--ease),
              box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* Видимый фокус для остальных интерактивных элементов (WCAG 2.4.11, контраст ≥3:1) */
a:focus-visible, .nav-link:focus-visible, .chip:focus-visible, .faq-q:focus-visible,
.review-ctrl:focus-visible, .fontsize-toggle:focus-visible, .m-acc__toggle:focus-visible,
.msg-btn:focus-visible, .burger:focus-visible, .header-mobile-phone:focus-visible,
.submenu a:focus-visible, .header-top-link:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--accent); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-deep); }

.btn-quiet { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-quiet:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg { font-size: 1.05rem; padding: 1.15em 2em; min-height: 58px; }
.btn-block { display: flex; width: 100%; }

.btn .ico { width: 18px; height: 18px; }

/* Иконка-стрелка, инжектируемая в слоты карточек */
.link-arrow-ico { display: inline-flex; color: var(--accent); }
.link-arrow-ico .ico { width: 19px; height: 19px; transition: transform .25s var(--ease); }
.svc-card:hover .link-arrow-ico .ico, .cat-card:hover .link-arrow-ico .ico { transform: translateX(4px); }
.link-arrow .ico, .check-list > li > .ico { } /* размеры заданы ниже */

/* Текстовая ссылка со стрелкой */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; color: var(--accent);
}
.link-arrow .ico { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---- Иконки ---- */
.ico { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.tabler-icon {
  width: 24px; height: 24px; background-color: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
@media (forced-colors: active) {
  .tabler-icon { color: CanvasText; forced-color-adjust: none; }
}
.ico-tile {
  width: 54px; height: 54px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent);
  flex-shrink: 0;
}
.ico-tile .ico { width: 26px; height: 26px; }

/* ---- Хедер ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(40,50,65,.05);
}

/* Верхняя служебная полоса */
.header-top {
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.header-top-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 44px; padding-block: 6px;
}
.header-schedule { color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; }
.header-schedule .dot { width: 7px; height: 7px; border-radius: 50%; background: #5b9b6e; box-shadow: 0 0 0 3px rgba(91,155,110,.18); }
.header-top-right { display: flex; align-items: center; gap: 22px; }
.header-top-link { color: var(--ink-soft); font-weight: 500; }
.header-top-link:hover { color: var(--accent); }
.fontsize-toggle {
  display: inline-flex; align-items: center; gap: 7px; background: none; border: 0;
  font-family: var(--font-sans); font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  cursor: pointer; padding: 8px 10px; min-width: 44px; min-height: 44px; border-radius: 6px;
}
.fontsize-toggle:hover { color: var(--accent); }
.fontsize-toggle .ico { width: 18px; height: 18px; }
.fontsize-toggle[aria-pressed="true"] { color: var(--accent); background: var(--accent-tint); }

/* Основная строка хедера */
.header-main { display: flex; align-items: center; gap: 20px; min-height: 78px; padding-block: 10px; }

.logo { display: inline-flex; align-items: center; gap: 13px; flex-shrink: 0; }
.logo svg { display: block; }
.logo .logo-bird {
  display: inline-block; width: 50px; height: 34px; color: var(--accent);
  background-color: currentColor;
  -webkit-mask: url(logo-bird.svg) left center / contain no-repeat;
          mask: url(logo-bird.svg) left center / contain no-repeat;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: var(--font-serif); font-size: 1.5rem; color: var(--accent);
  letter-spacing: .12em; font-weight: 700;
}
.logo-sub {
  font-family: var(--font-sans); font-size: .58rem; font-weight: 600;
  letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); margin-top: 5px;
}

/* Навигация */
.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 10px; border-radius: 7px; font-size: .98rem; font-weight: 500; color: var(--ink);
  white-space: nowrap; transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-link:hover, .nav-item.open > .nav-link { color: var(--accent); background: var(--accent-tint); }
.nav-item.active > .nav-link { color: var(--accent); }
.nav-link .caret { width: 11px; height: 11px; transition: transform .25s var(--ease); opacity: .7; }
.nav-item.open .nav-link .caret { transform: rotate(180deg); }

/* Выпадающее подменю */
.submenu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 270px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  list-style: none; margin: 0; z-index: 20;
}
.nav-item:hover > .submenu, .nav-item.open > .submenu,
.submenu:focus-within { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.submenu a {
  display: block; padding: 11px 14px; border-radius: 7px; color: var(--ink);
  font-size: .96rem; font-weight: 500; transition: background .18s var(--ease), color .18s var(--ease);
}
.submenu a span { display: block; font-size: .8rem; font-weight: 400; color: var(--ink-faint); margin-top: 2px; }
.submenu a:hover { background: var(--accent-tint); color: var(--accent); }

/* Контактный блок справа */
.header-contact { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header-phone { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.header-phone .num { font-family: var(--font-serif); font-size: 1.32rem; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.header-phone .num:hover { color: var(--accent); }
.header-phone .label { font-size: .76rem; color: var(--ink-faint); font-weight: 500; }

.messengers { display: flex; align-items: center; gap: 8px; }
.msg-btn {
  width: 44px; height: 44px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent); border: 1px solid transparent;
  transition: background .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
}
.msg-btn:hover { transform: translateY(-2px); color: #fff; }
.msg-btn .ico { width: 21px; height: 21px; }
.msg-btn.wa:hover { background: #25b86a; }
.msg-btn.tg:hover { background: #2da5e0; }
.msg-btn.vb:hover { background: #7b53b8; }
.msg-btn.vk:hover { background: #0077ff; }

.header-cta { white-space: nowrap; }

/* Skip-link «Перейти к содержимому» (WCAG 2.4.1) — виден только при фокусе */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--accent); color: #fff; padding: 12px 18px;
  font-weight: 600; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Телефон в мобильной шапке (на десктопе скрыт, показывается ≤1180px рядом с бургером) */
.header-mobile-phone {
  display: none; width: 46px; height: 46px; border-radius: 9px; place-items: center;
  background: var(--accent-tint); color: var(--accent); border: 1px solid transparent;
}
.header-mobile-phone .ico, .header-mobile-phone svg { width: 23px; height: 23px; }

/* Бургер */
.burger {
  display: none; width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 9px;
  background: #fff; cursor: pointer; padding: 0; place-items: center; color: var(--ink);
}
.burger .ico { width: 24px; height: 24px; }

/* Прогресс-индикатор сверху */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: var(--accent); transition: width .2s var(--ease), opacity .3s var(--ease);
  pointer-events: none;
}

/* ---- Мобильное меню ---- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 150; visibility: hidden; pointer-events: none;
  overflow: hidden; /* клипуем закрытую off-canvas панель, чтобы не было горизонтальной прокрутки */
}
.mobile-nav__overlay {
  position: absolute; inset: 0; background: rgba(40,50,65,.4);
  opacity: 0; transition: opacity .35s var(--ease);
}
.mobile-nav__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(420px, 88vw);
  background: #fff; box-shadow: var(--shadow-lg); transform: translateX(100%);
  transition: transform .4s var(--ease); display: flex; flex-direction: column;
  overflow-y: auto;
}
.mobile-nav.open { visibility: visible; pointer-events: auto; }
.mobile-nav.open .mobile-nav__overlay { opacity: 1; }
.mobile-nav.open .mobile-nav__panel { transform: translateX(0); }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gutter); border-bottom: 1px solid var(--border); }
.mobile-nav__close { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 9px; background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.mobile-nav__body { padding: 12px var(--gutter) 28px; }
.m-acc { border-bottom: 1px solid var(--border); }
.m-acc__top { display: flex; align-items: center; }
.m-acc__link { flex: 1; padding: 15px 0; font-size: 1.12rem; font-weight: 500; color: var(--ink); }
.m-acc__toggle { width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: var(--ink-soft); display: grid; place-items: center; }
.m-acc__toggle .ico { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.m-acc.open .m-acc__toggle .ico { transform: rotate(180deg); }
.m-acc__sub { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.m-acc.open .m-acc__sub { max-height: 540px; }
.m-acc__sub a { display: block; padding: 11px 0 11px 14px; color: var(--ink-soft); font-size: 1rem; border-left: 2px solid var(--border); margin-bottom: 2px; }
.m-acc__sub a:hover { color: var(--accent); border-left-color: var(--accent); }
.mobile-nav__contact { padding: 22px var(--gutter); background: var(--bg-warm); margin-top: auto; }
.mobile-nav__contact .num { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--accent); display: block; margin-bottom: 4px; }
.mobile-nav__msgs { display: flex; gap: 10px; margin-top: 16px; }
.mobile-nav__msgs .msg-btn { width: 48px; height: 48px; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background: var(--bg-warm); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 7vw, 104px); }
.hero-content { max-width: 620px; }
.hero h1 { margin-bottom: .3em; }
.hero .lead { margin-bottom: 1.9em; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 2.4em; padding-top: 2em; border-top: 1px solid var(--border); }
.hero-trust__item .n { font-family: var(--font-serif); font-size: 1.9rem; color: var(--accent); line-height: 1; }
.hero-trust__item .t { font-size: .9rem; color: var(--ink-soft); margin-top: 6px; }
.hero-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }

/* Тактичная плашка-выгода */
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; background: #fff;
  border: 1px solid var(--border); border-radius: 100px; padding: 8px 16px 8px 12px;
  font-size: .9rem; font-weight: 500; color: var(--ink-soft); margin-bottom: 1.6em;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #5b9b6e; }

/* ---- Плейсхолдеры изображений ---- */
.ph {
  position: relative; background:
    repeating-linear-gradient(135deg, #eceae5 0 14px, #f2f0eb 14px 28px);
  display: grid; place-items: center; color: var(--ink-faint); overflow: hidden;
}
.ph::after {
  content: attr(data-ph); font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .76rem; letter-spacing: .04em; color: var(--ink-faint);
  background: rgba(255,255,255,.78); padding: 6px 12px; border-radius: 6px;
  border: 1px solid var(--border); max-width: 80%; text-align: center;
}
.ph.cover { position: absolute; inset: 0; }
.site-photo--cover,
.site-photo--contain {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.site-photo--cover { object-fit: cover; }
.site-photo--contain { object-fit: contain; background: #f7f6f3; }
.client-photo-figure { margin: 0 0 24px; }
.client-photo-figure .site-photo {
  width: auto; height: auto; max-height: 520px; margin-inline: auto;
  border-radius: var(--radius);
}
.client-photo-figure figcaption {
  margin-top: 8px; text-align: center; color: var(--ink-soft); font-size: .9rem;
}

/* ---- Карточки преимуществ ---- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
.feature-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 34px); transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.feature:hover { border-color: #d3dae1; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature h3 { font-size: 1.32rem; margin: 18px 0 .35em; }
.feature p { color: var(--ink-soft); font-size: 1rem; margin: 0; }

/* ---- Шаги «Что делать» ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2vw, 28px); counter-reset: step; }
.steps-3 { grid-template-columns: repeat(3, 1fr); } /* перекрывается мобильными медиа-запросами ниже */
.step { position: relative; }
.step__num {
  font-family: var(--font-serif); font-size: 2.6rem; color: var(--accent); opacity: .35; line-height: 1;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.28rem; margin-bottom: .4em; }
.step p { color: var(--ink-soft); font-size: 1rem; margin: 0; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 18px; right: -14px; width: 28px; height: 1px;
  background: var(--border);
}

/* ---- Карточки услуг ---- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.svc-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(26px, 2.6vw, 36px);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.svc-card:hover { border-color: #d3dae1; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.svc-card h3 { font-size: 1.4rem; margin: 20px 0 .4em; }
.svc-card p { color: var(--ink-soft); font-size: 1rem; flex: 1; }
.svc-card__price { font-size: .95rem; color: var(--ink-soft); margin-top: 18px; }
.svc-card__price b { font-family: var(--font-serif); font-size: 1.35rem; color: var(--ink); font-weight: 700; }
.svc-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ---- Карточки-категории каталога ---- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.cat-card {
  display: block; border-radius: var(--radius); overflow: hidden; background: #fff;
  border: 1px solid var(--border); transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.cat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #d3dae1; }
.cat-card__media { position: relative; aspect-ratio: 4 / 3; }
.cat-card__body { padding: 20px 22px 24px; }
.cat-card__body h3 { font-size: 1.25rem; margin-bottom: .25em; color: var(--ink); }
.cat-card__body p { font-size: .92rem; color: var(--ink-faint); margin: 0; }

/* ---- Прайс-таблица ---- */
.price-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.price-block__head { padding: 22px clamp(22px, 3vw, 34px); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 16px; }
.price-block__head h3 { margin: 0; font-size: 1.4rem; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 16px clamp(22px, 3vw, 34px); border-bottom: 1px solid var(--border); }
.price-row:last-child { border-bottom: 0; }
.price-row__name { color: var(--ink); }
.price-row__name span { display: block; font-size: .86rem; color: var(--ink-faint); margin-top: 2px; }
.price-row__dots { flex: 1; border-bottom: 1px dotted var(--border); transform: translateY(-4px); min-width: 16px; }
.price-row__val { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.price-row__val small { font-family: var(--font-sans); font-size: .76rem; font-weight: 500; color: var(--ink-faint); }

.price-note {
  display: flex; align-items: flex-start; gap: 14px; background: var(--accent-tint);
  border-radius: var(--radius); padding: 22px 26px; color: var(--accent-deep); font-size: 1rem;
}
.price-note .ico { width: 24px; height: 24px; color: var(--accent); margin-top: 2px; }

/* ---- Галерея работ ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; cursor: pointer; }
.gallery-item .ph { transition: transform .5s var(--ease); }
.gallery-item:hover .ph { transform: scale(1.04); }
.gallery-item.tall { aspect-ratio: 3 / 4; }

/* ---- Отзывы ---- */
.reviews { position: relative; }
.review-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.review-track::-webkit-scrollbar { display: none; }
.review-card {
  flex: 0 0 min(420px, 82vw); scroll-snap-align: start; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(26px, 3vw, 38px); display: flex; flex-direction: column;
}
.review-card .quote-mark { font-family: var(--font-serif); font-size: 3.4rem; color: var(--accent); opacity: .25; line-height: .6; height: 28px; }
.review-card__text { font-size: 1.08rem; line-height: 1.6; color: var(--ink); flex: 1; margin: 12px 0 22px; }
.review-card__author { display: flex; align-items: center; gap: 13px; }
.review-card__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; font-family: var(--font-serif); font-size: 1.2rem; }
.review-card__author .nm { font-weight: 600; font-size: 1rem; }
.review-card__author .mt { font-size: .85rem; color: var(--ink-faint); }
.review-stars { color: #a06e00; letter-spacing: 2px; margin-bottom: 12px; font-size: .95rem; }
.review-controls { display: flex; gap: 10px; }
.review-ctrl { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--border); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--ink); transition: all .2s var(--ease); }
.review-ctrl:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }
.review-ctrl .ico { width: 20px; height: 20px; }

/* ---- FAQ аккордеон ---- */
.faq { max-width: 880px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%;
  background: none; border: 0; cursor: pointer; text-align: left; padding: 26px 4px;
  font-family: var(--font-serif); font-size: 1.28rem; color: var(--ink); transition: color .2s var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-q .pm { position: relative; width: 22px; height: 22px; flex-shrink: 0; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; transition: transform .3s var(--ease); }
.faq-q .pm::before { top: 10px; left: 0; width: 22px; height: 2px; }
.faq-q .pm::after { top: 0; left: 10px; width: 2px; height: 22px; }
.faq-item.open .pm::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a__inner { padding: 0 4px 28px; color: var(--ink-soft); font-size: 1.05rem; max-width: 760px; }

/* ---- Форма (iframe-заглушка Яндекс Форм) ---- */
.form-frame {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.yf-iframe { width: 100%; border: 0; display: block; min-height: 560px; }
.form-consent { font-size: .86rem; color: var(--ink-faint); margin-top: 16px; line-height: 1.5; max-width: 560px; }
.form-consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Заглушка-плейсхолдер iframe формы (визуально, до подстановки FORM_ID) */
.yf-placeholder {
  min-height: 560px; display: grid; place-items: center; text-align: center; padding: 40px;
  background:
    linear-gradient(var(--bg-warm), var(--bg-warm));
}
.yf-placeholder__box { max-width: 420px; }
.yf-placeholder .ico-tile { margin: 0 auto 20px; width: 64px; height: 64px; }
.yf-placeholder .ico-tile .ico { width: 30px; height: 30px; }
.yf-placeholder h3 { font-size: 1.4rem; margin-bottom: .5em; }
.yf-placeholder p { color: var(--ink-soft); font-size: 1rem; }
.yf-placeholder code { font-family: ui-monospace, Menlo, monospace; font-size: .82rem; background: #fff; border: 1px solid var(--border); padding: 3px 8px; border-radius: 5px; color: var(--accent); }
.yf-ph-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.yf-ph-actions .messengers { display: flex; gap: 10px; }

/* ---- Карта ---- */
.map-frame { width: 100%; height: clamp(340px, 42vw, 480px); border: 0; display: block; background: var(--bg-warm); }
.map-link { display: grid; place-items: center; padding: 70px 24px 24px; color: var(--accent); text-align: center; text-decoration: underline; text-underline-offset: 4px; }
.map-wrap { position: relative; border-top: 1px solid var(--border); }
/* Две карты рядом (офисы) — стопкой на узких экранах */
.maps-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.maps-2 .map-col { position: relative; }
.maps-2 .map-col + .map-col { border-left: 1px solid var(--border); }
.maps-2 .map-frame { height: clamp(320px, 34vw, 420px); }
.map-cap { position: absolute; top: 14px; left: 14px; z-index: 2; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 7px 12px; font-size: .9rem; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm); }
@media (max-width: 660px) { .maps-2 .map-col + .map-col { border-left: 0; border-top: 1px solid var(--border); } }

/* ---- Хлебные крошки ---- */
.breadcrumbs { padding-top: clamp(22px, 3vw, 34px); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; list-style: none; margin: 0; padding: 0; font-size: .88rem; color: var(--ink-faint); }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: .5; }
.breadcrumbs li[aria-current] { color: var(--ink); }

/* ---- Шапка внутренней страницы ---- */
.page-hero { background: var(--bg-warm); border-bottom: 1px solid var(--border); }
.page-hero .container { padding-block: clamp(30px, 4vw, 48px) clamp(40px, 5vw, 66px); }
.page-hero h1 { margin: .35em 0 .3em; }
.page-hero .lead { max-width: 660px; }

/* ---- CTA-полоса ---- */
.cta-band { background: var(--accent); color: #fff; }
.cta-band .container { padding-block: clamp(48px, 6vw, 82px); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); font-size: 1.12rem; max-width: 560px; }
.cta-band__grid { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: var(--accent); }
.cta-band .btn-primary:hover { background: rgba(255,255,255,.9); color: var(--accent-deep); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.cta-band__phone { display: flex; flex-direction: column; gap: 14px; }
.cta-band__phone .num { font-family: var(--font-serif); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.3rem); color: #fff; font-weight: 700; }

/* ---- Trust-полоса (соц.доказательство над CTA) ---- */
.trust-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px;
  padding: 20px clamp(16px,4vw,32px); background: var(--bg-warm);
  border-top: 1px solid var(--border); text-align: center;
}
.trust-bar > span, .trust-bar > a {
  font-size: .95rem; color: var(--ink-soft); position: relative;
}
.trust-bar > a { color: var(--accent); font-weight: 600; }
.trust-bar > *:not(:last-child)::after {
  content: "·"; position: absolute; right: -13px; color: var(--border);
}
@media (max-width: 620px) { .trust-bar { gap: 6px 16px; font-size: .9rem; } }

/* ---- Футер ---- */
.site-footer { background: #2b3744; color: rgba(255,255,255,.66); font-size: .96rem; }
.footer-main { padding-block: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-sub { color: rgba(255,255,255,.68); }
.footer-brand .logo .logo-bird { color: #fff; }
.footer-slogan { margin: 22px 0 24px; max-width: 320px; color: rgba(255,255,255,.7); font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.5; }
.footer-msgs { display: flex; gap: 10px; }
.footer-msgs .msg-btn { background: rgba(255,255,255,.08); color: #fff; }
.footer-col h3 { color: #fff; font-family: var(--font-sans); font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: rgba(255,255,255,.66); }
.footer-col a:hover { color: #fff; }
.footer-contact-row { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 16px; }
.footer-contact-row .ico { width: 18px; height: 18px; color: rgba(255,255,255,.5); margin-top: 3px; flex-shrink: 0; }
.footer-contact-row .num { color: #fff; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: .85rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-legal a { color: rgba(255,255,255,.6); }
.footer-legal a:hover { color: #fff; }
.footer-cookie-settings { border: 0; padding: 0; background: none; color: rgba(255,255,255,.6); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer-cookie-settings:hover { color: #fff; }
.footer-requisites { color: rgba(255,255,255,.66); font-size: .82rem; line-height: 1.6; max-width: 640px; }
.footer-copy { color: rgba(255,255,255,.66); }

/* ---- Плавающая кнопка связи ---- */
.float-msg { position: fixed; right: clamp(16px, 3vw, 30px); bottom: clamp(16px, 3vw, 30px); z-index: 90; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 12px; }
.float-msg__main {
  width: 62px; height: 62px; border-radius: 50%; background: var(--accent); color: #fff; border: 0;
  cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-lg);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.float-msg__main .ico { width: 28px; height: 28px; }
.float-msg__main:hover { transform: scale(1.06); background: var(--accent-deep); }
.float-msg__list { display: flex; flex-direction: column; gap: 10px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease); }
.float-msg.open .float-msg__list { opacity: 1; visibility: visible; transform: translateY(0); }
.float-msg__list a {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border);
  border-radius: 100px; padding: 9px 18px 9px 12px; box-shadow: var(--shadow-md); font-weight: 600;
  font-size: .94rem; color: var(--ink); transition: transform .2s var(--ease);
}
.float-msg__list a:hover { transform: translateX(-3px); }
.float-msg__list a .ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.float-msg__list a .ic .ico { width: 19px; height: 19px; }
.float-msg__list .wa .ic { background: #25b86a; }
.float-msg__list .tg .ic { background: #2da5e0; }
.float-msg__list .vb .ic { background: #7b53b8; }

/* ---- Липкая мобильная панель «Позвонить / Написать» ---- */
.sticky-cta { display: none; }
@media (max-width: 1180px) {
  .sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
    background: var(--border); box-shadow: 0 -2px 14px rgba(0,0,0,.14);
  }
  .sticky-cta a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 56px; font-weight: 600; font-size: 1rem; color: #fff;
  }
  .sticky-cta__call { background: var(--accent); }
  .sticky-cta__wa { background: #25b86a; }
  .sticky-cta a svg, .sticky-cta a .ico { width: 21px; height: 21px; flex-shrink: 0; }
  /* поднять плавающую кнопку и cookie-баннер над панелью, дать контенту отступ снизу */
  .float-msg { bottom: 72px; }
  .cookie { bottom: 68px; }
  body { padding-bottom: 56px; }
}

/* ---- Cookie-баннер ---- */
.cookie {
  position: fixed; left: clamp(16px, 3vw, 30px); bottom: clamp(16px, 3vw, 30px); z-index: 95;
  max-width: 420px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 24px 26px; transform: translateY(140%); transition: transform .5s var(--ease);
}
.cookie.show { transform: translateY(0); }
.cookie p { font-size: .92rem; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.55; }
.cookie p a { text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cookie .btn { min-height: 44px; padding: .7em 1.4em; font-size: .92rem; }

/* ---- Модалка (форма обратного звонка / заявки) ---- */
.modal { position: fixed; inset: 0; z-index: 160; visibility: hidden; pointer-events: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(40,50,65,.5); opacity: 0; transition: opacity .35s var(--ease); }
.modal__dialog {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -46%); width: min(560px, 92vw);
  max-height: 90vh; overflow-y: auto; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.modal.open { visibility: visible; pointer-events: auto; }
.modal.open .modal__overlay { opacity: 1; }
.modal.open .modal__dialog { opacity: 1; transform: translate(-50%, -50%); }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 28px clamp(24px, 3vw, 36px) 0; }
.modal__head h3 { font-size: 1.6rem; margin-bottom: .2em; }
.modal__head p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
.modal__close { width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 9px; background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--ink); flex-shrink: 0; }
.modal__close:hover { border-color: var(--accent); color: var(--accent); }
.modal__body { padding: 22px clamp(24px, 3vw, 36px) 30px; }

/* ---- Утилиты движения (reveal при скролле) ---- */
/* Reveal через transform без затухания текста — сохраняет плавный «выезд» секций,
   но текст всегда полностью непрозрачен: авто-инструменты (Lighthouse/axe) не ловят
   ложный низкий контраст полупрозрачного текста, а CLS не растёт (transform композитный). */
.reveal { transform: translateY(16px); transition: transform var(--dur) var(--ease); }
.reveal.in { transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .feature:hover, .svc-card:hover, .cat-card:hover { transform: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ---- Сетка-помощник ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.grid-2.top { align-items: start; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .55em; color: var(--ink); }
.prose li::marker { color: var(--accent); }

.client-copy .hero-actions,
.coffin-gallery + .hero-actions { margin-top: 24px; }
.client-copy .faq { margin-top: 12px; }
.client-copy .notice {
  background: var(--accent-tint); border-radius: var(--radius); padding: 18px 22px;
}
.client-copy-continuation { margin-top: clamp(24px, 4vw, 56px); }
.client-copy .hero-media img:not(.site-photo) {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}

.coffin-gallery {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.coffin-gallery__photo, .coffin-gallery__placeholder {
  display: block; position: relative; overflow: hidden; aspect-ratio: 1;
  border-radius: var(--radius);
}
.coffin-gallery__photo { cursor: zoom-in; }
.photo-dialog {
  width: max-content; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px);
  margin: auto; padding: 0; overflow: hidden; border: 0; border-radius: var(--radius);
}
.photo-dialog::backdrop { background: rgb(19 29 39 / .85); }
.photo-dialog img {
  display: block; width: auto; height: auto; max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px); object-fit: contain;
}
.photo-dialog__close {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--border);
  background: #fff; color: var(--ink); font-size: 1.6rem; cursor: pointer;
}
@media (max-width: 720px) {
  .coffin-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* Список с галочками */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); }
.check-list li .ico { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* Тэги/чипы фильтра */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 18px; border-radius: 100px; border: 1px solid var(--border); background: #fff; font-size: .92rem; font-weight: 500; color: var(--ink-soft); cursor: pointer; transition: all .2s var(--ease); }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Карточка товара */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 24px); }
.product-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1101px) { .product-grid--seven > :nth-child(5) { grid-column-start: 2; } }
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease); }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #d3dae1; }
.product-card__media { position: relative; aspect-ratio: 1 / 1; }
.product-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product-card__body h3 { font-size: 1.12rem; margin-bottom: .3em; }
.product-card__desc { font-size: .88rem; color: var(--ink-faint); margin: 0 0 16px; flex: 1; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-card__price { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.product-card__price small { font-family: var(--font-sans); font-size: .72rem; font-weight: 500; color: var(--ink-faint); display: block; }
.product-card .btn { padding: .65em 1.1em; min-height: 42px; font-size: .9rem; }

/* Статьи */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 32px); }
.article-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.article-card__media { position: relative; aspect-ratio: 16 / 10; }
.article-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.article-card__meta { font-size: .8rem; color: var(--accent); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.article-card__body h3 { font-size: 1.3rem; margin-bottom: .4em; }
.article-card__body p { font-size: .95rem; color: var(--ink-soft); flex: 1; margin-bottom: 18px; }

/* ---- Адаптив ---- */
@media (max-width: 1100px) {
  .feature-grid, .svc-grid, .cat-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
/* Шапку держим лёгкой (тихая роскошь) и в пределах контейнера 1200px:
   мессенджеры и кнопку «Обратный звонок» из верхней панели убираем — они дублируются
   плавающей кнопкой, бургер-меню и CTA по контенту. Главный контакт в шапке — кликабельный телефон. */
.header-contact .messengers, .header-cta { display: none; }

@media (max-width: 1180px) {
  :root { --header-h: 70px; }
  .main-nav, .header-contact { display: none; }
  .header-top { display: none; }
  .header-main { min-height: 64px; gap: clamp(8px, 2.5vw, 20px); }
  .header-main .logo { flex: 1; min-width: 0; }
  .header-main .logo-bird { flex: 0 0 42px; }
  .header-main .logo-sub { line-height: 1.4; }
  .burger, .header-mobile-phone { display: grid; flex-shrink: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16 / 10; order: -1; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --base-size: 17px; }
  .feature-grid, .svc-grid, .cat-grid, .steps, .article-grid, .gallery-grid { grid-template-columns: 1fr; }
  .feature-grid--two { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::after { display: none !important; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-band__grid { flex-direction: column; align-items: flex-start; }
  .cookie { max-width: none; left: 12px; right: 12px; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
}

/* «Крупный шрифт» — класс на html */
html.fs-large { --base-size: 21px; }
html.fs-large h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.4rem); }

@media (max-width: 1180px) {
  .cookie { bottom: 68px; }
}
