/* ════════════════════════════════════════════════════════════
   Палитра Мебели — draft v2
   Палитра — из логотипа: sky → blue → navy → magenta → pink
   ──────────────────────────────────────────────────────────── */

/* ──── 1. Tokens ──── */
:root {
  /* Brand (из логотипа) */
  --brand-navy:    #1F2A66;
  --brand-blue:    #1E6FCF;
  --brand-sky:     #6CBFF0;
  --brand-magenta: #A5409E;
  --brand-pink:    #F1A7D2;
  --brand-deep:    #14195C;
  --brand-soft:    #EDEBFB;

  /* Фирменный градиент-bar — узнаваемый знак бренда */
  --brand-gradient: linear-gradient(90deg,
    var(--brand-sky)     0%,
    var(--brand-blue)    28%,
    var(--brand-navy)    52%,
    var(--brand-magenta) 76%,
    var(--brand-pink)   100%);

  /* Светлая версия для акцентного текста на тёмном фоне */
  --brand-gradient-light: linear-gradient(90deg,
    #8DD0F5  0%,
    #B084FF  45%,
    #E07ACC  75%,
    #F5B6D7 100%);

  /* Neutrals */
  --ink-900: #14151A;
  --ink-700: #2A2D38;
  --ink-500: #5C6273;
  --ink-300: #C9CCD6;
  --ink-200: #E5E7EE;
  --ink-100: #F5F6FA;
  --paper:   #FFFFFF;

  /* Type */
  --font-display: 'Unbounded', 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Layout */
  --container: 1280px;
  --header-h: 80px;
  --topbar-h: 36px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-1: 0 1px 2px rgba(20,21,26,.04), 0 1px 3px rgba(20,21,26,.06);
  --shadow-2: 0 10px 28px -8px rgba(20,21,26,.14), 0 2px 6px rgba(20,21,26,.06);
  --shadow-3: 0 30px 60px -16px rgba(20,21,26,.22);

  --t: 220ms cubic-bezier(.2,.6,.2,1);
}

/* ──── 2. Reset / base ──── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h2, h3, h4 { overflow-wrap: break-word; }
h1 { overflow-wrap: normal; word-break: normal; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--ink-900);
}
h3, h4 { letter-spacing: -.005em; }

::selection { background: var(--brand-navy); color: white; }

/* ──── 3. Brand bar (фирменный знак) ──── */
.brand-bar {
  height: 4px;
  width: 100%;
  background: var(--brand-gradient);
}
.brand-bar--lg { height: 6px; }

/* ──── 4. Layout primitives ──── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}

.section { padding-block: 112px; }
.section--dark { background: var(--ink-900); color: rgba(255,255,255,.85); }
.section--dark .section__sub, .section--dark .section__eyebrow { color: rgba(255,255,255,.65); }
.section--soft { background: var(--ink-100); }
.section--cta {
  background:
    radial-gradient(60% 80% at 20% 30%, rgba(108,191,240,.28), transparent 60%),
    radial-gradient(60% 80% at 80% 80%, rgba(165,64,158,.30), transparent 60%),
    linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-navy) 100%);
  color: white;
  padding-block: 96px;
}

.section__header { max-width: 740px; margin-bottom: 64px; }
.section__header--row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  max-width: none;
}
.section__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-magenta);
  margin-bottom: 18px;
}
.section--dark .section__eyebrow { color: var(--brand-sky); }
.section--cta .section__eyebrow { color: var(--brand-pink); }

.section__title {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 20px;
}
.section__title--light { color: white; }
.section--dark .section__title { color: white; }

.section__sub {
  font-size: 18px;
  color: var(--ink-500);
  max-width: 62ch;
  line-height: 1.55;
}
.section--dark .section__sub { color: rgba(255,255,255,.7); }

.lead { font-size: 18px; color: rgba(255,255,255,.85); max-width: 56ch; line-height: 1.55; }

.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-magenta);
  display: inline-block;
}

/* ──── 5. Top-bar ──── */
.topbar {
  background: var(--ink-900);
  font-size: 13px;
  color: rgba(255,255,255,.65);
}
.topbar__row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--topbar-h);
  gap: 16px;
}
.topbar__info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.topbar__pin { display: inline-flex; color: var(--brand-sky); }
.topbar__sep { opacity: .5; padding-inline: 4px; }
.topbar__nav { display: flex; gap: 22px; }
.topbar__nav a { color: rgba(255,255,255,.65); }
.topbar__nav a:hover { color: white; }

/* ──── wp_nav_menu: сброс списка + дропдаун ────
   items_wrap=%3$s даёт <li> без внешнего <ul>; сабменю — <ul.sub-menu>
   внутри родительского <li>. Топ-уровень <li> — flex-дети nav
   (маркеры убираются блокификацией), сабменю — абсолютная карточка. */
.topbar__nav ul, .header__nav ul, .mobile-nav__inner ul { list-style: none; }
/* пункты верхнего уровня НЕ в <ul> (items_wrap=%3$s) и flex-блокификация
   сохраняет display:list-item → нужен явный сброс маркеров на самих li. */
.topbar__nav li, .header__nav li, .mobile-nav__inner li {
  margin: 0; padding: 0; list-style: none;
}

/* десктоп: дропдаун главного меню */
.header__nav > li { position: relative; }
.header__nav .menu-item-has-children > a { padding-right: 15px; }
.header__nav .menu-item-has-children > a::before {
  content: ''; position: absolute; right: 0; top: 50%; margin-top: -4px;
  width: 6px; height: 6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); opacity: .55; transition: transform var(--t);
}
.header__nav .menu-item-has-children:hover > a::before,
.header__nav .menu-item-has-children:focus-within > a::before {
  transform: rotate(225deg); margin-top: -1px;
}
.header__nav .sub-menu {
  position: absolute; top: 100%; left: 50%;
  margin-top: 10px; min-width: 210px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--ink-200); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(31,42,102,.14);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  z-index: 60;
}
/* мост, чтобы курсор не терял дропдаун в зазоре */
.header__nav .sub-menu::before {
  content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 14px;
}
.header__nav > li:hover > .sub-menu,
.header__nav > li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.header__nav .sub-menu li { display: block; }
.header__nav .sub-menu a {
  display: block; padding: 9px 14px; border-radius: 9px;
  font-size: 14px; color: var(--ink-700); white-space: nowrap;
}
.header__nav .sub-menu a:hover { background: var(--ink-100); color: var(--brand-navy); }
.header__nav .sub-menu a::after { content: none; } /* без gradient-подчёркивания внутри */

/* мобильное меню: сабменю развёрнуто с отступом (на тач hover нет) */
.mobile-nav__inner li { display: block; }
.mobile-nav__inner li > a { display: block; }
.mobile-nav__inner .sub-menu a {
  padding-left: 22px; font-size: 15px; color: var(--ink-700);
}

/* ──── 6. Header ──── */
.header {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--ink-200);
}
.header__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--header-h);
  gap: 32px;
}
.header__logo { display: flex; align-items: center; flex-shrink: 0; }
.header__logo img { height: 56px; width: auto; max-width: none; flex-shrink: 0; }

.header__nav { display: flex; gap: 30px; justify-content: center; }
.header__nav a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
  padding: 6px 0;
  position: relative;
}
.header__nav a:hover { color: var(--brand-navy); }
.header__nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--brand-gradient);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t);
  border-radius: 2px;
}
.header__nav a:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 14px; }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 15px; color: var(--ink-900);
  white-space: nowrap;
}
.header__phone svg { color: var(--brand-magenta); }
.header .header__cta { display: none; }
@media (min-width: 1080px) { .header .header__cta { display: inline-flex; } }

.header__write {
  display: none;
  align-items: center; gap: 8px;
  padding: 11px 18px;
  background: transparent;
  color: var(--brand-deep);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: border-color var(--t), color var(--t), background var(--t), transform var(--t);
}
.header__write:hover {
  border-color: var(--brand-magenta);
  color: var(--brand-magenta);
  transform: translateY(-1px);
}
.header__write svg { color: var(--brand-magenta); }
@media (min-width: 1080px) { .header__write { display: inline-flex; } }

.header__burger {
  display: none;
  flex-direction: column; gap: 5px; width: 28px; height: 28px;
  align-items: center; justify-content: center;
}
.header__burger span { display: block; width: 22px; height: 2px; background: var(--ink-900); border-radius: 2px; }

/* ──── 7. Buttons ──── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 14px;
  letter-spacing: .005em;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  transition: transform var(--t), background var(--t), color var(--t), box-shadow var(--t), border-color var(--t);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--lg { padding: 17px 30px; font-size: 15px; }
.btn--primary {
  background: var(--brand-navy);
  color: white;
  box-shadow: 0 10px 28px -10px rgba(31, 42, 102, .55);
}
.btn--primary:hover {
  background: var(--brand-deep);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -10px rgba(31, 42, 102, .7);
}
.btn--ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-200);
}
.btn--ghost:hover { background: var(--ink-100); color: var(--ink-900); }
.section--dark .btn--ghost, .section--cta .btn--ghost {
  color: white; border-color: rgba(255,255,255,.3);
}
.section--dark .btn--ghost:hover, .section--cta .btn--ghost:hover {
  background: rgba(255,255,255,.1);
}
.hero .btn--ghost {
  background: rgba(20,21,26,.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: white;
  border-color: rgba(255,255,255,.35);
}
.hero .btn--ghost:hover { background: rgba(20,21,26,.7); color: white; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  color: var(--brand-navy);
}
.link-arrow svg { transition: transform var(--t); }
.link-arrow:hover { color: var(--brand-magenta); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ──── 8. Hero ──── */
.hero {
  position: relative;
  min-height: clamp(620px, 86vh, 820px);
  display: flex; flex-direction: column; justify-content: center;
  color: white;
  overflow: hidden;
  isolation: isolate;
  padding-block: 100px 60px;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.55) saturate(1.1);
}
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    /* левая «штора» затемнения под текст */
    linear-gradient(90deg, rgba(10,11,16,.88) 0%, rgba(10,11,16,.7) 25%, rgba(10,11,16,.4) 55%, rgba(10,11,16,.15) 80%, transparent 100%),
    /* нижняя дымка под метрики */
    linear-gradient(180deg, rgba(10,11,16,.25) 0%, rgba(10,11,16,.55) 55%, rgba(10,11,16,.92) 100%),
    /* фирменные цветовые акценты */
    radial-gradient(50% 60% at 15% 40%, rgba(31,42,102,.5), transparent 70%),
    radial-gradient(55% 65% at 95% 75%, rgba(165,64,158,.22), transparent 70%);
}

.hero__content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, .8fr);
  gap: 48px;
  align-items: center;
}
.hero__lead { max-width: 640px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -.03em;
  color: white;
  font-weight: 700;
  margin-bottom: 26px;
  text-shadow:
    0 2px 10px rgba(0,0,0,.7),
    0 0 40px rgba(0,0,0,.55),
    0 1px 2px rgba(0,0,0,.6);
}
.hero__stats strong, .hero__stats span {
  text-shadow: 0 1px 6px rgba(0,0,0,.7);
}
.hero__numeral-big {
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.5)) drop-shadow(0 16px 40px rgba(165,64,158,.3));
}
.hero__numeral-label, .hero__numeral-cap {
  text-shadow: 0 1px 6px rgba(0,0,0,.7);
}
.hero__title-accent {
  background: none;
  -webkit-text-fill-color: #F5E1F0;
  color: #F5E1F0;
  display: inline-block;
  position: relative;
  padding-bottom: .08em;
}
.hero__title-accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  background: var(--brand-gradient);
  border-radius: 3px;
  box-shadow: 0 4px 18px rgba(165,64,158,.45);
}

.hero__sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(255,255,255,.82);
  margin-bottom: 38px;
  max-width: 56ch;
  line-height: 1.55;
  text-shadow: 0 1px 8px rgba(0,0,0,.7), 0 0 20px rgba(0,0,0,.5);
}

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Numeral — большая цифра-якорь справа в hero */
.hero__numeral {
  position: relative;
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-end;
  text-align: right;
  font-family: var(--font-display);
}
.hero__numeral-big {
  font-size: clamp(120px, 13vw, 200px);
  font-weight: 800;
  line-height: .85;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.06em;
  filter: drop-shadow(0 16px 40px rgba(165,64,158,.3));
}
.hero__numeral-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 14px;
  line-height: 1.4;
  text-align: right;
}
.hero__numeral-cap {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  margin-top: 14px;
  line-height: 1.3;
}

.hero__stats {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 56px;
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.hero__stats li { display: flex; flex-direction: column; gap: 6px; }
.hero__stats strong {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px); font-weight: 700;
  letter-spacing: -.02em;
  color: white;
  line-height: 1;
}
.hero__stats span { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.4; }

/* ──── 9. Category cards ──── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cat {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  text-decoration: none; color: var(--ink-900);
  position: relative;
}
.cat::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--brand-gradient);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t);
}
.cat:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.cat:hover::after { transform: scaleX(1); }
.cat__img {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--ink-100);
}
.cat__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(.2,.6,.2,1);
}
.cat:hover .cat__img img { transform: scale(1.04); }

.cat__body {
  padding: 28px 28px 32px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.cat__title {
  font-size: 24px;
  font-weight: 700;
}
.cat__desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-500);
  flex: 1;
}
.cat__cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 13px;
  color: var(--brand-navy);
  text-transform: none;
  margin-top: 4px;
}
.cat__cta svg { transition: transform var(--t); }
.cat:hover .cat__cta { color: var(--brand-magenta); }
.cat:hover .cat__cta svg { transform: translateX(4px); }

/* ──── 10. Audience (B2B) ──── */
.aud {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: border-color var(--t), background var(--t), transform var(--t);
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.aud::before {
  content: ''; position: absolute; left: 0; top: 0; right: 0; height: 2px;
  background: var(--brand-gradient);
  opacity: 0; transition: opacity var(--t);
}
.aud:hover {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  transform: translateY(-2px);
}
.aud:hover::before { opacity: 1; }
.aud__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(108,191,240,.18), rgba(165,64,158,.18));
  color: white;
  margin-bottom: 24px;
  flex-shrink: 0;
}
.aud__icon svg { width: 28px; height: 28px; }
.aud__title { color: white; font-size: 18px; margin-bottom: 12px; line-height: 1.2; }
.aud p { color: rgba(255,255,255,.7); font-size: 14.5px; line-height: 1.6; flex: 1; }

a.aud, a.aud--link {
  text-decoration: none;
  cursor: pointer;
}
/* Заметный CTA-кнопочный стиль внутри audience-карточки-ссылки */
.aud__cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 20px;
  padding: 11px 18px;
  background: rgba(108,191,240,.12);
  border: 1px solid rgba(108,191,240,.35);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600; font-size: 13px;
  color: white;
  letter-spacing: .02em;
  transition: background var(--t), border-color var(--t), transform var(--t);
  align-self: flex-start;
}
.aud__cta-btn svg { transition: transform var(--t); }
a.aud:hover .aud__cta-btn {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-magenta));
  border-color: transparent;
}
a.aud:hover .aud__cta-btn svg { transform: translateX(4px); }

/* ──── 10b. Horizontal carousel (audience + reviews) ──── */
.h-carousel {
  position: relative;
}
.h-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 1fr);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 4px 24px;
  margin: -4px -4px 0;
}
.h-carousel__track::-webkit-scrollbar { display: none; }
.h-carousel__track:focus-visible {
  outline: 2px solid var(--brand-sky);
  outline-offset: -2px;
  border-radius: var(--r-md);
}
.h-carousel__track > * {
  scroll-snap-align: start;
  min-width: 0;
}
/* Мгновенный teleport в бесконечной карусели — без анимации и snap */
.h-carousel__track.is-teleporting {
  scroll-behavior: auto;
  scroll-snap-type: none;
}
.h-carousel__nav {
  display: flex; gap: 10px; justify-content: center;
  margin-top: 12px;
}
.h-carousel__btn {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), transform var(--t), opacity var(--t);
}
.h-carousel__btn:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.35);
  transform: translateY(-1px);
}
.h-carousel__btn[disabled] {
  opacity: .35;
  cursor: default;
  transform: none;
}
.h-carousel__btn[disabled]:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}

/* Carousel button — на светлой секции (для reviews) */
.section:not(.section--dark) .h-carousel__btn {
  background: var(--paper);
  border-color: var(--ink-200);
  color: var(--ink-900);
}
.section:not(.section--dark) .h-carousel__btn:hover {
  background: var(--ink-100);
  border-color: var(--brand-navy);
}
.section:not(.section--dark) .h-carousel__btn[disabled]:hover {
  background: var(--paper);
  border-color: var(--ink-200);
}

/* ──── 10c. Production block (видео-слоты + иконки-факты) ──── */
.prod-video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}
.prod-video {
  margin: 0;
  display: flex; flex-direction: column;
  gap: 12px;
}
.prod-video__placeholder {
  aspect-ratio: 16/9;
  border-radius: var(--r-xl);
  background:
    linear-gradient(135deg, rgba(31,42,102,.45) 0%, rgba(20,21,26,.85) 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px);
  border: 1px dashed rgba(255,255,255,.18);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  letter-spacing: .04em;
  text-align: center;
  padding: 16px;
}
.prod-video__placeholder svg { color: rgba(255,255,255,.55); }
.prod-video figcaption {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  text-align: center;
  font-family: var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.prod-feats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.prod-feat {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 14px;
  padding: 24px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md);
  transition: border-color var(--t), background var(--t), transform var(--t);
}
.prod-feat:hover {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  transform: translateY(-2px);
}
.prod-feat__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(108,191,240,.18), rgba(165,64,158,.18));
  color: white;
}
.prod-feat__icon svg { width: 26px; height: 26px; }
.prod-feat__text {
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255,255,255,.85);
}

/* ──── 11. Services (доп. услуги) ──── */
.serv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.serv {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.serv:hover { border-color: var(--brand-magenta); transform: translateY(-3px); box-shadow: var(--shadow-2); }
.serv__img {
  aspect-ratio: 16/11;
  background: var(--ink-100);
  overflow: hidden;
}
.serv__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t);
}
.serv:hover .serv__img img { transform: scale(1.04); }
.serv h3 { font-size: 19px; padding: 24px 24px 8px; }
.serv p { font-size: 14px; color: var(--ink-500); padding: 0 24px 24px; line-height: 1.55; }

/* ──── 12. Materials (расширенные ряды) ──── */
.mat-list {
  display: flex; flex-direction: column;
  gap: 80px;
}
.mat-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.mat-row--rev .mat-row__img { order: 2; }
.mat-row__img {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ink-100);
  aspect-ratio: 5/4;
  box-shadow: var(--shadow-2);
}
.mat-row__img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.mat-row__text h3 {
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 16px;
  letter-spacing: -.025em;
}
.mat-row__text p {
  font-size: 16px;
  color: var(--ink-500);
  line-height: 1.7;
  margin-bottom: 20px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  letter-spacing: .04em;
  color: var(--brand-navy);
  background: var(--paper);
  border: 1px solid var(--ink-200);
  padding: 7px 14px;
  border-radius: var(--r-pill);
}

/* ──── 13. Works (asymmetric grid) ──── */
.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
}
.work {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: white;
  background: var(--ink-100);
  transition: transform var(--t), box-shadow var(--t);
}
.work:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); color: white; }
.work img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(.2,.6,.2,1);
}
.work:hover img { transform: scale(1.05); }
.work--big { grid-column: span 2; grid-row: span 2; }
.work__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(20,21,26,.85) 100%);
  color: white;
  z-index: 1;
}
.work__caption h3 { color: white; font-size: 18px; margin-bottom: 4px; }
.work--big .work__caption h3 { font-size: 26px; }
.work__caption p { font-size: 13px; opacity: .8; }

.works--more { margin-top: 16px; animation: palitraFadeIn .3s ease-out; }
.works--more[hidden] { display: none; }
@keyframes palitraFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.works__more-wrap {
  display: flex; justify-content: center;
  margin-top: 36px;
}
.works__more {
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 600;
}
.works__more svg { transition: transform var(--t); }
.works__more[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ──── 14. Steps (process) ──── */
.steps {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
  margin-bottom: 36px;
}
.steps li {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  position: relative;
  transition: border-color var(--t), transform var(--t);
}
.steps li:hover { border-color: var(--brand-magenta); transform: translateY(-2px); }
.step__num {
  display: inline-block;
  font-family: var(--font-display); font-weight: 700;
  font-size: 26px;
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-bottom: 12px; line-height: 1;
  letter-spacing: -.02em;
}
.steps h3 { font-size: 16px; margin-bottom: 6px; letter-spacing: -.01em; }
.steps p { font-size: 13.5px; color: var(--ink-500); line-height: 1.5; }

.terms-bar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}
.terms-bar::before {
  content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: var(--brand-gradient);
}
.terms-bar__item { display: flex; flex-direction: column; gap: 8px; }
.terms-bar__item strong {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink-900);
}
.terms-bar__item span { font-size: 14px; color: var(--ink-500); line-height: 1.55; }

/* ──── 16. Reviews ──── */
.review {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex; flex-direction: column;
  height: 100%;
}
/* Карусель отзывов — 3 видимых на десктопе */
.reviews-carousel .h-carousel__track {
  grid-auto-columns: calc((100% - 40px) / 3);
}
/* Карусель «для кого мы работаем» — 4 видимых на десктопе, без обрезки 5-й */
.aud-carousel .h-carousel__track {
  grid-auto-columns: calc((100% - 60px) / 4);
}

/* «Больше отзывов» — кнопка-аккордеон, только на мобиле */
.reviews-more {
  display: none;
  margin: 24px auto 0;
  padding: 14px 24px;
  align-items: center; gap: 8px;
  background: var(--paper);
  color: var(--brand-navy);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.reviews-more:hover {
  border-color: var(--brand-magenta);
  color: var(--brand-magenta);
}
.reviews-more svg { transition: transform var(--t); }
.reviews-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.review__stars {
  color: var(--brand-magenta);
  font-size: 16px;
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.review__text {
  font-size: 15.5px;
  color: var(--ink-700);
  margin-bottom: 24px;
  line-height: 1.7;
  flex: 1;
}
.review__author {
  display: flex; align-items: center; gap: 14px;
  border-top: 1px solid var(--ink-200);
  padding-top: 18px;
}
.review__author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.review__author strong { font-family: var(--font-display); font-size: 15px; display: block; }
.review__author span { font-size: 13px; color: var(--ink-500); }

/* ──── 17. FAQ ──── */
.faq {
  max-width: 920px;
  display: flex; flex-direction: column; gap: 8px;
}
.faq__item {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t);
}
.faq__item[open] { border-color: var(--brand-navy); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 17px;
  color: var(--ink-900);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color var(--t);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 28px; font-weight: 400;
  line-height: 1;
  color: var(--brand-navy);
  transition: transform var(--t), color var(--t);
}
.faq__item[open] summary::after { transform: rotate(45deg); color: var(--brand-magenta); }
.faq__item summary:hover { color: var(--brand-navy); }
.faq__body {
  padding: 0 28px 22px;
  color: var(--ink-500);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ──── 18. CTA / Form ──── */
.cta-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.cta-block__perks {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px;
}
.cta-block__perks li {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  color: rgba(255,255,255,.9);
}

.form {
  background: white;
  color: var(--ink-900);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--shadow-3);
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  overflow: hidden;
}
.form::before {
  content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px;
  background: var(--brand-gradient);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--ink-700); }
.field input, .field select {
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 14px 16px;
  background: var(--paper);
  font-size: 15px;
  transition: border-color var(--t), box-shadow var(--t);
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.form__submit { margin-top: 8px; width: 100%; }
.form__hint { font-size: 12px; color: var(--ink-500); text-align: center; }
.form__hint a { color: var(--brand-navy); text-decoration: underline; }

/* ──── 19. Footer ──── */
.footer {
  background: var(--ink-900);
  color: rgba(255,255,255,.65);
  padding-block: 64px 32px;
  font-size: 14px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__logo { display: inline-block; margin-bottom: 18px; }
.footer__logo img { height: 56px; width: auto; }
.footer__col h4 {
  font-size: 13px;
  color: white;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 20px;
  font-family: var(--font-display); font-weight: 700;
}
.footer__col a { display: block; padding: 4px 0; color: rgba(255,255,255,.65); }
.footer__col a:hover { color: white; }
.footer__phone {
  display: block !important;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  color: white !important;
  margin-bottom: 12px;
  white-space: nowrap;
}
.footer__addr { padding: 4px 0; }
.footer__messengers { display: flex; gap: 12px; margin-top: 20px; }
.footer__messengers .msg {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px 10px 10px;
  background: rgba(255,255,255,.08);
  color: white;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600; font-size: 14px;
  line-height: 1;
  border: 1px solid rgba(255,255,255,.1);
  transition: background var(--t), transform var(--t), border-color var(--t);
}
.footer__messengers .msg:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.22);
  color: white;
  transform: translateY(-2px);
}
.footer__messengers .msg img { display: block; border-radius: 7px; }
.footer__messengers .msg span { display: inline-block; }

.footer .brand-bar { margin-block: 24px; }
.footer__legal {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,.45);
}
.footer__legal a:hover { color: white; }

/* ──── 20. Sticky mobile CTA ──── */
.sticky-bar {
  display: none;
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  z-index: 40;
  gap: 10px;
  align-items: center;
}
.sticky-cta {
  flex: 1;
  position: relative;
  background: var(--brand-navy);
  color: white;
  font-family: var(--font-display); font-weight: 600;
  text-align: center;
  padding: 16px;
  border-radius: var(--r-pill);
  box-shadow: 0 14px 36px -10px rgba(31, 42, 102, .7);
  overflow: hidden;
}
.sticky-cta::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--brand-gradient);
}
.sticky-cta:hover { color: white; }

.sticky-msg {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  display: inline-flex; align-items: center; justify-content: center;
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 28px -8px rgba(20,21,26,.25);
  transition: transform var(--t), box-shadow var(--t);
  overflow: hidden;
}
.sticky-msg img { display: block; width: 48px; height: 48px; border-radius: 12px; }
.sticky-msg:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -8px rgba(20,21,26,.32); }

/* ──── 21. Mobile nav ──── */
.mobile-nav {
  position: fixed; inset: 0;
  z-index: 60;
  background: rgba(20,21,26,.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t);
}
.mobile-nav[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.mobile-nav__inner {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(380px, 92vw);
  background: white;
  padding: 72px 24px 40px;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
  transform: translateX(20px);
  transition: transform var(--t);
}
.mobile-nav[aria-hidden="false"] .mobile-nav__inner { transform: translateX(0); }
.mobile-nav__inner a {
  padding: 8px 8px;
  font-family: var(--font-body);
  font-weight: 500; font-size: 16px;
  color: var(--ink-900);
  border-bottom: 1px solid var(--ink-100);
}
.mobile-nav__close {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink-100);
  border: none;
  border-radius: 50%;
  color: var(--ink-900);
  cursor: pointer;
  z-index: 2;
  transition: background var(--t);
}
.mobile-nav__close:hover { background: var(--ink-200); }
.mobile-nav__phone {
  display: inline-flex !important;
  align-items: center; gap: 10px;
  padding: 16px 10px !important;
  margin-top: 16px;
  font-family: var(--font-display) !important;
  font-weight: 600 !important;
  font-size: 18px !important;
  color: var(--brand-deep) !important;
  border-bottom: 0 !important;
}
.mobile-nav__phone svg { color: var(--brand-magenta); }
.mobile-nav__max {
  display: inline-flex !important;
  align-items: center; justify-content: center;
  gap: 10px;
  padding: 15px 22px !important;
  margin-top: 10px;
  background: white;
  color: var(--brand-deep) !important;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
  border-bottom: 1.5px solid var(--ink-200) !important;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.mobile-nav__max:hover {
  color: var(--brand-deep) !important;
  border-color: var(--brand-magenta);
  border-bottom-color: var(--brand-magenta) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(165,71,216,.4);
}
.mobile-nav__max img { display: block; border-radius: 6px; }
.mobile-nav__cta {
  border-bottom: 0 !important;
  margin-top: 14px;
  justify-content: center;
  color: white !important;
}

/* ──── 22. Adaptive ──── */
@media (max-width: 1080px) {
  .topbar__nav { display: none; }
  .header__nav { display: none; }
  .header__burger { display: inline-flex; }
  .header__phone-icon { display: none; }
  .header__phone {
    color: var(--brand-deep);
    font-size: 16px;
  }
  .header__phone .header__phone-num { display: inline; }

  .hero__content { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero__lead { max-width: 100%; }
  .hero__numeral { display: none; }
  .section { padding-block: 80px; }
}

@media (max-width: 900px) {
  .section { padding-block: 72px; }
  .cat-grid, .serv-grid { grid-template-columns: repeat(2, 1fr); }
  .works { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
  .work--big { grid-column: span 2; grid-row: span 1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .terms-bar { grid-template-columns: 1fr; gap: 20px; }
  .mat-row { grid-template-columns: 1fr; gap: 28px; }
  .mat-row--rev .mat-row__img { order: 0; }
  .cta-block { grid-template-columns: 1fr; gap: 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .prod-feats { grid-template-columns: repeat(2, 1fr); }
  .prod-video-grid { grid-template-columns: 1fr; gap: 16px; }
  .h-carousel__track,
  .reviews-carousel .h-carousel__track,
  .aud-carousel .h-carousel__track { grid-auto-columns: calc((100% - 20px) / 2); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding-inline: 16px; }
  .section { padding-block: 56px; }
  .section__header { margin-bottom: 40px; }
  .section__header--row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero { padding-block: 64px 100px; min-height: clamp(580px, 90vh, 720px); }
  .hero__eyebrow { font-size: 11px; }
  .hero__title { font-size: clamp(26px, 6.6vw, 32px); line-height: 1.1; overflow-wrap: break-word; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 36px; margin-top: 36px; }
  .hero__stats strong { font-size: 26px; }
  .cat-grid, .serv-grid { grid-template-columns: 1fr; }
  .prod-feats { grid-template-columns: 1fr; gap: 16px; }

  /* Mobile: audience и reviews — обычный вертикальный стек, без карусели */
  .aud-carousel .h-carousel__track,
  .reviews-carousel .h-carousel__track {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: visible;
    padding: 0;
    margin: 0;
    scroll-snap-type: none;
    grid-auto-flow: unset;
    grid-auto-columns: unset;
  }
  .aud-carousel .h-carousel__nav,
  .reviews-carousel .h-carousel__nav { display: none; }
  .aud-carousel [data-clone],
  .reviews-carousel [data-clone] { display: none !important; }

  /* Reviews: показываем 3, остальные скрыты до клика «Больше отзывов» */
  .reviews-carousel .review:nth-of-type(n+4) { display: none; }
  .reviews-carousel.is-expanded .review:nth-of-type(n+4) { display: flex; }
  .reviews-more { display: inline-flex; }
  .reviews-more[aria-expanded="true"] { display: none; }

  .works { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .work--big { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .form { padding: 24px; }
  .terms-bar { padding: 24px; }
  .mat-list { gap: 56px; }
  .sticky-bar { display: flex; }
  .topbar { display: none; }
  .header__row { gap: 16px; }
  .header__logo img { height: 48px; }
  .header__phone { font-size: 14px; }
  .header__phone .header__phone-num { font-size: 14px; }
  .popup__dialog { padding: 28px 20px; }
  .popup__qr img { width: 180px; height: 180px; }
}

/* ──── 24. Inline-CTA blocks ──── */
.inline-cta {
  position: relative;
  padding-block: 56px;
  background: linear-gradient(180deg, #F7F3F8 0%, #FBF7F9 100%);
  overflow: hidden;
}
.inline-cta::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--brand-gradient);
  opacity: .9;
}
.inline-cta--dark {
  background: linear-gradient(180deg, #1A1B23 0%, #14151A 100%);
  color: white;
}
.inline-cta--dark::before { opacity: 1; }
.inline-cta__row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 32px;
}
.inline-cta__text h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 10px;
  color: inherit;
}
.inline-cta__text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(20, 21, 26, .72);
  max-width: 620px;
}
.inline-cta--dark .inline-cta__text p { color: rgba(255, 255, 255, .72); }
.inline-cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Inline-CTA «Понравились работы?» / «Не нашли свою категорию?» —
   column-стек начинаем раньше, чтобы две кнопки не давили текст */
@media (max-width: 768px) {
  .inline-cta__row { grid-template-columns: 1fr; gap: 24px; }
  .inline-cta__actions { flex-direction: column; align-items: stretch; }
  .inline-cta__actions .btn { width: 100%; justify-content: center; }
}

/* ──── 25. Btn light (для тёмных секций) ──── */
.btn--light {
  background: rgba(255,255,255,.08);
  color: white;
  border-color: rgba(255,255,255,.2);
}
.btn--light:hover {
  background: rgba(255,255,255,.16);
  color: white;
  border-color: rgba(255,255,255,.35);
  transform: translateY(-1px);
}

/* ──── 26. Popup (MAX QR) ──── */
.popup {
  position: fixed; inset: 0;
  z-index: 80;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.popup[aria-hidden="false"] { display: flex; }
.popup__overlay {
  position: absolute; inset: 0;
  background: rgba(20,21,26,.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: popupFade .22s ease;
}
.popup__dialog {
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 40px 36px 32px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px -20px rgba(20,21,26,.4);
  animation: popupIn .25s ease;
}
.popup__dialog::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--brand-gradient);
  border-radius: 24px 24px 0 0;
}
.popup__close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink-100);
  border-radius: 50%;
  color: var(--ink-700);
  cursor: pointer;
  border: none;
  transition: background var(--t), color var(--t);
}
.popup__close:hover { background: var(--ink-200); color: var(--ink-900); }
.popup__icon {
  width: 72px; height: 72px;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.popup__icon img { display: block; border-radius: 18px; box-shadow: 0 12px 28px -8px rgba(165,64,158,.45); }
.popup__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  margin: 0 0 10px;
  color: var(--ink-900);
}
.popup__sub {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-700);
  margin: 0 0 22px;
}
.popup__qr {
  display: inline-block;
  padding: 12px;
  background: white;
  border-radius: 14px;
  border: 1px solid var(--ink-100);
  margin-bottom: 22px;
}
.popup__qr img { display: block; }
.popup__cta { width: 100%; }
.popup__hint {
  font-size: 13px;
  color: var(--ink-700);
  margin: 16px 0 0;
}
.popup__hint a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand-deep);
  white-space: nowrap;
}
@keyframes popupFade {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes popupIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
body.popup-open { overflow: hidden; }

/* ──── 23. A11y ──── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ════════════════════════════════════════════════════════════
   Внутренние страницы (категории, например /kuhnya/)
   ──────────────────────────────────────────────────────────── */

/* ──── 28. Hero — категория (без numeral, форма справа) ──── */
.hero--cat { min-height: clamp(560px, 78vh, 760px); padding-block: 88px 56px; }
.hero--cat .hero__content {
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, .85fr);
  gap: 40px;
  align-items: start;
}
.hero--cat .hero__lead { max-width: 640px; min-width: 0; }
.hero--cat .hero__title {
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin-bottom: 22px;
}
.hero--cat .hero__sub { font-size: clamp(15px, 1.2vw, 17px); margin-bottom: 28px; }

.hero-args {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin: 0 0 32px;
  font-size: 14px;
  color: rgba(255,255,255,.9);
}
.hero-args li {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hero-args__dot {
  width: 6px; height: 6px;
  background: var(--brand-gradient);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px rgba(165,64,158,.6);
}

/* Hero-form — компактная карточка-заявка справа от H1 */
.hero-form {
  background: var(--paper);
  color: var(--ink-900);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-3);
  position: relative;
  overflow: hidden;
}
.hero-form::before {
  content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px;
  background: var(--brand-gradient);
}
.hero-form__title {
  font-family: var(--font-display);
  font-weight: 700; font-size: 19px;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--ink-900);
}
.hero-form__sub {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-500);
  margin-bottom: 18px;
}
/* Прозрачная обёртка: гасим унаследованные от .form скругление+overflow,
   иначе её rounded-угол (--r-xl) обрезает первый лейбл «Ваше имя».
   Видимая карточка — родитель .hero-form, у него скругление и остаётся. */
.form--hero { gap: 12px; padding: 0; box-shadow: none; background: transparent; border-radius: 0; overflow: visible; }
.form--hero::before { display: none; }
.form--hero textarea {
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 12px 14px;
  background: var(--paper);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: border-color var(--t), box-shadow var(--t);
}
.form--hero textarea:focus {
  outline: none;
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

/* ──── 29. Callout — текстовый блок «о категории» ──── */
.callout {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding-block: 8px;
}
.callout--wide {
  max-width: 960px;
  text-align: left;
}
.callout__eyebrow {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-magenta);
  margin-bottom: 16px;
}
.callout__title {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}
.callout__body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-700);
}
.callout__body p + p { margin-top: 18px; }

/* ──── 31. Mat-extras (столешницы) ──── */
.mat-extras {
  margin-top: 56px;
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}
.mat-extras::before {
  content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: var(--brand-gradient);
}
.mat-extras__eyebrow {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-magenta);
  margin-bottom: 18px;
}
.mat-extras__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mat-extras__list li {
  display: flex; flex-direction: column; gap: 8px;
}
.mat-extras__list strong {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink-900);
}
.mat-extras__list span {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-500);
}

/* ──── 32. Адаптив внутренних страниц ──── */
@media (max-width: 1080px) {
  .hero--cat .hero__content { grid-template-columns: 1fr; gap: 32px; }
  .hero--cat .hero__lead { max-width: 100%; }
}
@media (max-width: 900px) {
  .mat-extras__list { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 600px) {
  .hero--cat { padding-block: 56px 80px; }
  .hero-form { padding: 20px; }
  .hero-form__title { font-size: 17px; }
  .mat-extras { padding: 24px; }
  .callout { text-align: left; }
}

/* ─── Доп. к WP-теме: плейсхолдер материала, видео, лайтбокс ─── */
.mat-row__ph {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background: linear-gradient(135deg, #1F2A66 0%, #6E3C8E 50%, #C9447E 100%);
  opacity: .14;
}
.prod-video__embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0c0d12;
}
.prod-video__embed iframe,
.prod-video__embed video,
.prod-video__v {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
a.pm-lightbox { cursor: zoom-in; }
/* Условные поля формы: .field задаёт display:flex и перебивает [hidden] —
   возвращаем сокрытие (специфичность выше .field, без !important) */
.pm-cond[hidden] { display: none; }
/* File-инпут проекта под стиль темы (зеркалит .field input + бренд-кнопка) */
.pm-cond .wpcf7-form-control-wrap { width: 100%; }
.pm-cond input[type="file"] {
  width: 100%;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 10px 12px;
  background: var(--paper);
  font-size: 15px;
  color: var(--ink-700);
  cursor: pointer;
}
.pm-cond input[type="file"]:focus {
  outline: none;
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.pm-cond input[type="file"]::file-selector-button {
  font: inherit;
  cursor: pointer;
  margin-right: 12px;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--brand-navy);
  color: #fff;
}
.pm-cond input[type="file"]::file-selector-button:hover { background: var(--brand-deep); }

/* ============================================================
   Блог: статья (single) и лента (/stati/)
   Scoped — классы нигде больше не используются.
   ============================================================ */
.container--narrow { max-width: 760px; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-500);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--ink-500); text-decoration: none; transition: color var(--t); }
.breadcrumb a:hover { color: var(--brand-navy); }
.breadcrumb span { color: var(--ink-300); }

.article__head { padding-bottom: 48px; }
.article__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  color: var(--ink-900);
  margin: 0;
}
.article__cover-wrap { padding-block: 0; margin-top: -32px; }
.article__cover {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--ink-100);
  box-shadow: var(--shadow-2);
}
.article__cover img { width: 100%; height: auto; }

/* Типографика тела статьи (контент перенесён 1:1) */
.prose { font-size: 17px; line-height: 1.75; color: var(--ink-700); }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.4em; }
.prose h2, .prose h3, .prose h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.25;
  margin: 2em 0 .7em;
}
.prose h2 { font-size: clamp(22px, 2.6vw, 30px); }
.prose h3 { font-size: clamp(19px, 2.1vw, 23px); }
.prose h4 { font-size: 18px; }
.prose a { color: var(--brand-blue); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--brand-navy); }
/* Тема глобально гасит list-style (ul,ol{list-style:none}) —
   возвращаем маркеры только в теле статьи. */
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.5em; }
.prose ul { list-style: disc; }
.prose ul ul { list-style: circle; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--brand-navy); }
/* Картинки контента часто завёрнуты плагином-лайтбоксом в инлайн
   <a data-lbwps-*> внутри <figure>. Делаем обёртки блочными, чтобы
   containing block был колонкой статьи, и центрируем. */
.prose figure,
.prose a[data-lbwps-width],
.prose a:has(> img) {
  display: block;
  max-width: 100%;
  margin: 1.6em auto;
  text-align: center;
}
.prose figure a,
.prose figure a[data-lbwps-width] { margin: 0; }
.prose img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 540px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}
.prose figcaption { font-size: 14px; color: var(--ink-500); text-align: center; margin-top: 10px; }
.prose blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--brand-navy);
  color: var(--ink-700);
  font-size: 18px;
}
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--ink-200); padding: 10px 14px; text-align: left; }
.prose th { background: var(--ink-100); font-weight: 600; }
.prose iframe { max-width: 100%; border-radius: var(--r-lg); margin: 1.6em 0; }

.pagination { margin-top: 56px; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid var(--ink-200); border-radius: var(--r-md);
  font-size: 15px; color: var(--ink-700); text-decoration: none;
  transition: border-color var(--t), color var(--t);
}
.pagination a:hover { border-color: var(--brand-navy); color: var(--brand-navy); }
.pagination .current { background: var(--brand-navy); border-color: var(--brand-navy); color: #fff; }

@media (max-width: 600px) {
  .prose { font-size: 16px; }
  .article__cover-wrap { margin-top: -16px; }
}

/* ============================================================
   Страница «Контакты» — scoped, переиспользует terms-bar /
   cta-block / form / prod-feats.
   ============================================================ */
.kontakty-cards {
  margin-top: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.kontakty-card { gap: 10px; }
.kontakty-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(108,191,240,.16), rgba(165,64,158,.16));
  color: var(--brand-navy);
  margin-bottom: 4px;
}
.kontakty-card__label { font-size: 13px; color: var(--ink-500); }
.kontakty-card__value, a.kontakty-card__value {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700; letter-spacing: -.02em;
  color: var(--ink-900); text-decoration: none;
}
a.kontakty-card__value:hover { color: var(--brand-blue); }
.kontakty-card__value strong { font: inherit; }
.kontakty-card__sub { font-size: 13.5px; color: var(--ink-500); line-height: 1.5; }

.kontakty-route {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: center;
}
.section__title--sm { font-size: clamp(24px, 3vw, 32px); margin-bottom: 20px; }
.prose--compact { font-size: 16px; }
.prose--compact p { margin-bottom: 1em; }
.kontakty-route__actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 24px;
}
.kontakty-route__actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.kontakty-map {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  background: var(--ink-100);
}
.kontakty-map iframe {
  display: block; width: 100%; height: 420px; border: 0;
}
.kontakty-stat__num {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 700; letter-spacing: -.02em;
  color: #fff; line-height: 1;
}

@media (max-width: 900px) {
  .kontakty-route { grid-template-columns: 1fr; gap: 32px; }
  .kontakty-map iframe { height: 320px; }
}

/* ============================================================
   vidy без L2 → карточка-кнопка «Заказать» + попап-форма заказа.
   Scoped: button.cat / .popup--form / .form--popup / .field textarea
   ============================================================ */
/* Карточка как нативная кнопка — визуально идентична .cat (ссылке) */
button.cat {
  appearance: none; -webkit-appearance: none;
  margin: 0; padding: 0; width: 100%;
  font: inherit; text-align: left; cursor: pointer;
}
.cat--order { color: var(--ink-900); }

/* Попап с формой: шире и текст по левому краю (в отличие от QR-попапа) */
.popup--form .popup__dialog { max-width: 480px; text-align: left; }
.popup--form .popup__title { text-align: left; }
.popup--form .popup__sub { text-align: left; margin-bottom: 20px; }
.form--popup { display: block; }
.form--popup .wpcf7-form > * + * { margin-top: 14px; }
.form--popup .field { margin: 0; }

/* textarea под стиль темы (зеркалит .field input) */
.field textarea {
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  padding: 10px 12px;
  background: var(--paper);
  font: inherit; font-size: 15px;
  color: var(--ink-900);
  min-height: 96px; resize: vertical;
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea:focus {
  outline: none;
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

/* ──── 40. /dlya-dizaynerov/ — page-scoped (шаблон template-dlya-dizaynerov.php) ──── */
.dz-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.dz-card {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.dz-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(108,191,2,.16), rgba(31,42,102,.10));
  color: #1F2A66; flex-shrink: 0;
}
.dz-card__icon svg { width: 24px; height: 24px; }
.dz-card h3 { font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
.dz-card p { font-size: 15px; line-height: 1.6; color: var(--ink-700); }
/* Этапы только этой страницы — отдельная сетка (класс .dz-steps на
   <ol>), НЕ через #process: id="process" общий с главной/категориями. */
.steps.dz-steps { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) {
  .dz-cards { grid-template-columns: repeat(2, 1fr); }
  .steps.dz-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .dz-cards { grid-template-columns: 1fr; }
  .steps.dz-steps { grid-template-columns: 1fr; }
}
