/* ============================================================
   Lilith Land — стили
   Чередование блоков: белый ↔ графит (палитра Clustr), акцент Neon Mint.
   Шрифты: Manrope (заголовки) + Golos Text (текст), кириллица.
   ============================================================ */

:root {
  /* ── Палитра Clustr ── */
  --mint:      #36ECDE;   /* Neon Mint — акцент (заливки, декор) */
  --mint-dark: #16CBBD;   /* ховер акцента */
  --mint-ink:  #0E9E90;   /* тёмная мята для текста-акцента на белом (контраст ок) */
  --navy:      #00203F;   /* Core Navy — тёмный текст на белом */
  --gray:      #E6E9EC;   /* Soft Gray — светлые плашки/карточки */
  --graphite:  #161616;   /* Graphite Black — тёмные секции (почти чёрный) */
  --graphite-2:#212121;   /* приподнятые карточки на графите */
  --graphite-3:#2B2B2B;   /* ховер на графите */

  /* ── Роли: БЕЛАЯ подложка (по умолчанию) ── */
  --bg:        #FFFFFF;
  --bg-2:      var(--graphite);   /* секции-alt = графит */
  --surface:   #FFFFFF;           /* карточки на белом */
  --ink:       #16233A;           /* основной текст на белом */
  --ink-soft:  #55617A;           /* вторичный текст */
  --ink-faint: #8A94A6;

  /* Акцент — синоним --blue, чтобы не переписывать все ссылки.
     На белом — тёмная мята (текст), заливки берут чистый --mint. */
  --blue:      var(--mint-ink);
  --blue-dark: #0B7E73;
  --blue-50:   rgba(54, 236, 222, .14);   /* мятная плашка-фон */

  --line:      rgba(20, 35, 58, .12);
  --line-2:    rgba(20, 35, 58, .07);
  --shadow-sm: 0 2px 12px rgba(20, 35, 58, .06);
  --shadow:    0 24px 60px -28px rgba(20, 35, 58, .24);
  --shadow-lg: 0 40px 90px -30px rgba(20, 35, 58, .38);
  --shadow-blue: 0 14px 30px -12px rgba(54, 236, 222, .45);  /* мятное свечение */
  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1340px;
  --ease:      cubic-bezier(.22, .61, .36, 1);
  --font-disp: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, sans-serif;
}

/* ── ГРАФИТОВАЯ подложка: переопределяем токены, дети наследуют ── */
.section--alt,
.footer {
  --bg:        var(--graphite);
  --surface:   var(--graphite-2);
  --ink:       #F3F5F7;
  --ink-soft:  #B9C0C9;
  --ink-faint: #8A94A0;
  --blue:      var(--mint);       /* на графите мята — контрастный акцент-текст */
  --blue-dark: var(--mint);
  --blue-50:   rgba(54, 236, 222, .16);
  --line:      rgba(255, 255, 255, .14);
  --line-2:    rgba(255, 255, 255, .08);
  --shadow-sm: 0 2px 14px rgba(0, 0, 0, .30);
  --shadow:    0 24px 60px -28px rgba(0, 0, 0, .55);
  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, .65);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 18.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: var(--font-disp); font-weight: 800; line-height: 1.14; letter-spacing: -.01em; color: var(--ink); }
a { color: inherit; text-decoration: none; }

/* ───────────────────────── Кнопки ───────────────────────── */
.btn {
  font-family: var(--font-disp); font-size: 15px; font-weight: 700; letter-spacing: 0;
  padding: 14px 28px; border-radius: 18px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--solid { background: var(--mint); color: var(--graphite); box-shadow: var(--shadow-blue); }
.btn--solid:hover { background: var(--mint-dark); transform: translateY(-2px); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--mint); color: var(--mint); transform: translateY(-2px); }

/* «Призрачная» — нейтральная кнопка с серой рамкой (работает на белом и графите) */
.btn--ghost-light { background: transparent; color: var(--ink); border-color: #B7BEC7; }
.btn--ghost-light:hover { border-color: var(--mint-ink); color: var(--mint-ink); transform: translateY(-2px); }

.btn--text { background: none; border: none; outline: none; padding: 8px 0; color: var(--mint); font-weight: 700; align-self: flex-start; cursor: pointer; }
.btn--text:hover { color: var(--mint-dark); gap: 12px; }

.btn--sm { padding: 11px 22px; font-size: 14px; border-radius: 14px; }

/* ───────────────────────── Шапка (плотный графит) ───────────────────────── */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  background: rgba(20, 20, 20, .97);
  backdrop-filter: saturate(120%) blur(16px);
  -webkit-backdrop-filter: saturate(120%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: box-shadow .3s var(--ease), border-color .3s;
}
.header.is-stuck { box-shadow: 0 6px 24px rgba(0,0,0,.28); border-bottom-color: rgba(255,255,255,.12); }

.header__inner { position: relative; }

/* Шапка всегда на графите → светлый текст, лого на белой плашке (см. .brand__mark) */
.header .brand,
.header .brand__name { color: #F3F5F7; }

/* Якори по центру шапки */
.nav { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin-left: 0; }
.header .nav a { color: rgba(255,255,255,.72); background: transparent; }
.header .nav a:hover { color: #fff; background: transparent; }      /* подсвечиваем текст, не плашку */
.header .nav a::after { content: none; }
.header .nav a.is-active { color: var(--mint); background: transparent; }
.header .burger span { background: #F3F5F7; }
.header__inner { display: flex; align-items: center; gap: 24px; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-disp); font-weight: 800; font-size: 21px; color: var(--ink); line-height: 1; }
.brand__mark { width: 54px; height: 41px; flex: 0 0 auto; display: grid; place-items: center; transition: transform .4s var(--ease); }
.brand__img { width: 100%; height: 100%; object-fit: contain; image-rendering: -webkit-optimize-contrast; }
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
.brand__name { letter-spacing: -.02em; line-height: 1; display: inline-block; transform: translateY(1px); }

.nav { display: flex; gap: 4px; }
.nav a { font-size: 15px; font-weight: 600; color: var(--ink-soft); padding: 9px 14px; border-radius: 10px; position: relative; transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.nav a.is-active { color: var(--mint); }
.nav a.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; background: var(--mint); border-radius: 2px; }

/* nav теперь абсолютно центрирована в шапке — толкаем cta+burger вправо явно */
.header__cta { margin-left: auto; }

.burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 0; flex: 0 0 auto; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .25s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ───────────────────────── Hero (белый — первый блок) ─────────────────────────
   Блок = ровно высота экрана минус шапка (77px), не больше и не меньше.
   Три части (текст+кнопки / метрики / бегущая строка) распределены flex'ом
   с равными зазорами — под любую высоту экрана отступы сжимаются сами,
   размеры контента (шрифт, кот) не трогаем. */
.hero {
  position: relative; margin-top: 77px; min-height: calc(100vh - 77px);
  background: var(--bg); overflow: visible; padding-top: 24px;
  display: flex; flex-direction: column; justify-content: space-evenly;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(40% 44% at 4% 6%, rgba(54,236,222,.10) 0%, transparent 58%);
}
.hero__inner {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center;
  text-align: center; flex: 0 0 auto;
}
.hero__col { max-width: 960px; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 13.5px; font-weight: 700; color: var(--blue); margin-bottom: 20px; }
.hero__title { font-size: clamp(40px, 5.4vw, 72px); font-weight: 800; line-height: 1.14; }
.hero__title-line { display: inline-block; white-space: nowrap; }
.hero__title em { color: var(--mint-ink); font-style: normal; }
.hero__sub { margin: 24px 0 32px; font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-soft); max-width: 600px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Монитор скрыт — вернём и решим композицию отдельно */
.hero__art { display: none; }

/* Кот сбоку — декоративный акцент, белый фон растворяется через multiply */
.hero__cat {
  position: absolute; z-index: 0; pointer-events: none;
  right: 2%; bottom: 0; width: clamp(160px, 16vw, 280px);
  mix-blend-mode: multiply; opacity: .88;
}
.hero__art::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(54,236,222,.28) 0%, transparent 66%);
  filter: blur(10px); z-index: 0;
}

.mockup { position: relative; z-index: 1; width: clamp(400px, 52vw, 660px); animation: floaty 8s ease-in-out infinite; }
.mockup__screen {
  background: #fff; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(20,35,58,.14);
  box-shadow:
    0 50px 100px -30px rgba(20,35,58,.42),
    0 18px 40px -18px rgba(20,35,58,.28),
    0 0 0 1px rgba(54,236,222,.25),
    0 24px 70px -20px rgba(54,236,222,.35);
}
.mockup__neck { width: 70px; height: 26px; margin: 0 auto; background: linear-gradient(180deg, #dfe6f5, #c7d2ea); }
.mockup__base { width: 180px; height: 12px; margin: 0 auto; border-radius: 0 0 10px 10px; background: linear-gradient(180deg, #cfd9ee, #b6c4e2); }

/* Браузерная шапка */
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line-2); }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d7deec; }
.browser__bar i:nth-child(1) { background: #ff5f57; }
.browser__bar i:nth-child(2) { background: #febc2e; }
.browser__bar i:nth-child(3) { background: #28c840; }
.browser__url { margin-left: 10px; height: 22px; flex: 1; max-width: 72%; background: #fff; border: 1px solid rgba(20,35,58,.16); border-radius: 7px; font-size: 12px; font-weight: 600; letter-spacing: .01em; color: #16233A; display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.browser__url::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(54,236,222,.25); flex: 0 0 auto; }

/* Мини-сайт внутри */
.site { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.site__nav { display: flex; align-items: center; gap: 8px; }
.site__logo { width: 30px; height: 12px; border-radius: 4px; background: var(--blue); }
.site__menu { display: flex; gap: 6px; margin-left: auto; }
.site__menu i { width: 20px; height: 6px; border-radius: 3px; background: #e4e9f4; }
.site__cta { width: 34px; height: 14px; border-radius: 5px; background: var(--blue); }
.site__hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 12px; align-items: center; padding: 6px 0; }
.site__copy { display: flex; flex-direction: column; gap: 7px; }
.l { height: 9px; border-radius: 4px; background: #e8edf7; }
.l--h { height: 13px; width: 90%; background: #c5d0e8; }
.l--h.short { width: 60%; }
.l--t { height: 7px; }
.l--t.short { width: 70%; }
.site__btn { margin-top: 5px; width: 64px; height: 18px; border-radius: 6px; background: var(--blue); box-shadow: var(--shadow-blue); }
.site__visual { height: 92px; border-radius: 10px; background: radial-gradient(circle at 35% 30%, var(--blue-50), #dfe7fa); border: 1px solid var(--line-2); }
.site__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.site__cards span { height: 40px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line-2); }
.site__cards span:nth-child(2) { background: var(--blue-50); border-color: rgba(47,98,245,.18); }
.hero__dot { position: absolute; border-radius: 50%; background: var(--blue); opacity: .9; }
.hero__dot--1 { width: 14px; height: 14px; top: 12%; left: 6%; animation: floaty 6s ease-in-out infinite; }
.hero__dot--2 { width: 9px; height: 9px; bottom: 16%; right: 4%; background: var(--blue-dark); animation: floaty 7s ease-in-out infinite reverse; }
.hero__dot--3 { width: 20px; height: 20px; bottom: 4%; left: 18%; opacity: .15; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Метрики hero — три цифры на всю ширину (зазор считает flex space-evenly в .hero) ── */
.hero__metrics { position: relative; z-index: 1; flex: 0 0 auto; padding-top: 16px; }
.hero__metrics-inner { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; }
.hero__metric { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hero__metric-num { font-family: var(--font-disp); font-weight: 800; font-size: clamp(24px, 2.3vw, 30px); color: var(--ink); letter-spacing: -.01em; }
.hero__metric-label { font-size: 13.5px; color: var(--ink-faint); }

/* ── Бегущая строка стека технологий — приглушённая, бесконечная прокрутка ── */
.hero__marquee {
  position: relative; z-index: 1; flex: 0 0 auto; padding: 8px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hero__marquee-track {
  display: flex; align-items: center; gap: 48px; width: max-content;
  animation: marquee 26s linear infinite;
}
.hero__marquee-track span {
  font-family: var(--font-disp); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint);
  white-space: nowrap; opacity: .65;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ───────────────────────── Секции ───────────────────────── */
.section { padding: clamp(80px, 9.5vw, 130px) 0; position: relative; background: var(--bg); color: var(--ink); overflow: hidden; }
.section--alt { background: var(--bg-2); }

/* Диагональные линии на графитовых секциях — на весь блок, с виньеткой по всем краям */
.section--alt::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,.06) 0px, rgba(255,255,255,.06) 1px,
    transparent 1px, transparent 17px
  );
  mask-image: radial-gradient(70% 75% at 50% 50%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 75% at 50% 50%, #000 35%, transparent 100%);
}
.section--alt .container { position: relative; z-index: 1; }

.section__head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section__kicker { display: inline-block; text-transform: uppercase; letter-spacing: .16em; font-size: 12.5px; font-weight: 700; color: var(--blue); margin-bottom: 16px; padding: 7px 16px; background: var(--blue-50); border: 1px solid rgba(54,236,222,.28); border-radius: 100px; }
.section__title { font-size: clamp(32px, 4.4vw, 52px); }
.section__lead { margin-top: 18px; color: var(--ink-soft); font-size: clamp(17px, 1.5vw, 19px); }

.card { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }

/* ───────────────────────── Почему мы ───────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.why-item {
  display: flex; flex-direction: column; gap: 8px; padding: 28px 22px; text-align: left;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), border-color .3s;
}
.why-item:hover { transform: translateY(-6px); border-color: rgba(54,236,222,.5); }
.why-item__num { display: inline-block; font-family: var(--font-disp); font-weight: 800; font-size: clamp(22px, 1.9vw, 27px); line-height: 1.05; color: var(--mint); letter-spacing: -.01em; }
.why-item__num--pop { animation: whyNumPop .55s cubic-bezier(.34,1.56,.64,1); }
@keyframes whyNumPop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.why-item h3 { font-size: 18px; line-height: 1.15; margin-top: 2px; }
.why-item p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }

/* ───────────────────────── Услуги (карточки) ───────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 24px; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s var(--ease);
}
.service-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(135deg, var(--mint), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s var(--ease); pointer-events: none;
}
.service-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 22px 50px -20px rgba(54,236,222,.35), 0 10px 24px -10px rgba(0,0,0,.3); }
.service-card:hover::before { opacity: 1; }

.service-card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.service-card__num { font-family: var(--font-disp); font-weight: 800; font-size: 15px; color: var(--ink-faint); padding-top: 6px; }

.service-card__icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--blue-50);
  display: grid; place-items: center; color: var(--blue); flex: 0 0 auto;
  transition: transform .45s var(--ease), background .35s;
}
.service-card__icon svg { width: 26px; height: 26px; transition: transform .45s var(--ease); }
.service-card:hover .service-card__icon { background: var(--mint); color: var(--graphite); transform: rotate(-8deg) scale(1.08); }
.service-card:hover .service-card__icon svg { transform: scale(1.06); }

.service-card h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.service-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.5; }

/* футер: switcher слева, стрелка справа */
.service-card__footer { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-2); }

/* switcher: единая лента (track) с тегами и ценой, сдвигается одним движением как бегущая строка */
.service-card__switcher {
  position: relative; flex: 1; height: 44px; overflow: hidden;
  padding: 0 10px; margin: 0 -10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.service-card__track {
  display: flex; width: 200%; height: 100%;
  transform: translateX(-50%);
  transition: transform .6s cubic-bezier(.65,0,.35,1);
  will-change: transform;
}
.service-card:hover .service-card__track { transform: translateX(0); }

.service-card__tags {
  flex: 0 0 50%; display: flex; gap: 7px; flex-wrap: nowrap; align-items: center; overflow: hidden;
}
.service-card__tags span { font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--ink-soft); background: var(--blue-50); border: 1px solid var(--line); border-radius: 100px; padding: 5px 11px; }

.service-card__price {
  flex: 0 0 50%; display: flex; flex-direction: column; justify-content: center;
}
.service-card__price-value { font-family: var(--font-disp); font-weight: 800; font-size: 17px; color: var(--mint-ink); }
.service-card__price-note { font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; }
.section--alt .service-card__price-value { color: var(--mint); }

.service-card__arrow {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  color: var(--ink); font-size: 17px; cursor: pointer; display: grid; place-items: center; flex: 0 0 auto;
  transition: background .2s, color .2s, transform .3s, border-color .2s;
}
.service-card__arrow:hover { background: var(--mint); color: var(--graphite); border-color: var(--mint); transform: rotate(45deg); }

/* ───────────────────────── Слайдер ───────────────────────── */
.slider { display: flex; align-items: center; gap: 14px; }
.slider__viewport { overflow: hidden; flex: 1; padding: 16px 0; margin: -16px 0; }
.slider__track { display: flex; gap: 22px; transition: transform .6s var(--ease); }
.slide { flex: 0 0 calc((100% - 44px) / 3); cursor: pointer; background: var(--surface); border: 1.5px solid rgba(15,26,51,.12); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 20px rgba(15,26,51,.08), 0 1px 4px rgba(15,26,51,.06); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.slide:hover { transform: translateY(-8px); box-shadow: 0 20px 50px -16px rgba(47,98,245,.22), 0 8px 24px -8px rgba(15,26,51,.12); border-color: rgba(47,98,245,.4); }
.slide__media { aspect-ratio: 16 / 10; position: relative; overflow: hidden; }
.slide__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.slide:hover .slide__media img { transform: scale(1.05); }
.slide__placeholder { width: 100%; height: 100%; display: grid; place-items: center; position: relative; color: #fff; }
.slide__placeholder span { font-family: var(--font-disp); font-weight: 700; font-size: 17px; padding: 0 24px; text-align: center; position: relative; z-index: 1; line-height: 1.3; }
.slide__placeholder::after { content: ""; position: absolute; inset: 0; opacity: .16; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23fff' stroke-width='.5'/%3E%3C/svg%3E"); }
.slide__body { padding: 18px 20px 22px; }
.slide__type { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); }
.slide__title { font-size: 18px; margin-top: 6px; }

.slider__arrow { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .25s, color .25s, transform .25s, border-color .25s; }
.slider__arrow:hover { background: var(--blue); color: #fff; transform: scale(1.06); border-color: var(--blue); }

.slider__dots { position: relative; display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.slider__dots-indicator {
  position: absolute; top: 0; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue); filter: blur(4px); opacity: .55;
  transition: transform .45s cubic-bezier(.65,0,.35,1);
  pointer-events: none; z-index: 0;
}
.slider__dots button { position: relative; z-index: 1; width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--line); cursor: pointer; transition: background .3s, transform .35s cubic-bezier(.65,0,.35,1); padding: 0; }
.slider__dots button.is-active { background: var(--blue); transform: scale(1.4); }

.portfolio__more { display: flex; justify-content: center; margin-top: 36px; }

/* ── Портфолио: карточки Soft Gray на тёмном фоне секции ── */
#portfolio .slide {
  background: var(--gray);
  border-color: rgba(20, 35, 58, .12);
  box-shadow: 0 4px 20px rgba(15,26,51,.08), 0 1px 4px rgba(15,26,51,.06);
  --ink: #16233A;
  --ink-soft: #55617A;
  --line: rgba(20, 35, 58, .12);
}
#portfolio .slide:hover {
  border-color: rgba(54, 236, 222, .6);
  box-shadow:
    inset 0 0 0 1.5px rgba(54,236,222,.4),
    inset 0 30px 50px -32px rgba(54,236,222,.35),
    0 10px 26px -14px rgba(0,0,0,.35);
}
#portfolio .slide__type { color: var(--mint-ink); }

/* ───────────────────────── Цены ───────────────────────── */
.prices-toggle { display: flex; justify-content: center; gap: 6px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 100px; padding: 5px; width: max-content; margin: 0 auto 36px; }
.prices-toggle__btn { border: none; background: transparent; color: var(--ink-soft); font-size: 14.5px; font-weight: 700; padding: 10px 24px; border-radius: 100px; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease); }
.prices-toggle__btn.is-active { background: var(--graphite); color: #fff; }
.prices-combo { text-align: center; margin: 28px 0 0; font-size: 15px; color: var(--ink-soft); }
.prices-combo strong { color: var(--ink); }
.prices-combo .btn--text { padding: 0; font-size: 15px; font-weight: 700; }

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price { display: flex; flex-direction: column; position: relative; }
.price__discount { align-self: flex-start; background: rgba(0,0,0,.06); color: var(--graphite); font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 100px; margin-bottom: 14px; }
.price--featured .price__discount { background: rgba(255,255,255,.16); color: #fff; }
.price:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line); }
.price__name { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.price__for { display: block; font-size: 14px; color: var(--ink-faint); margin-top: 6px; line-height: 1.4; }
.price--featured .price__for { color: rgba(255,255,255,.7); }
.price__value { font-family: var(--font-disp); font-weight: 800; font-size: 38px; line-height: 1; margin: 0 0 4px; letter-spacing: -.02em; }
.price__old { font-size: 16px; line-height: 1; color: var(--ink-faint); text-decoration: line-through; margin-top: 12px; }
.price__hint { font-size: 14px; color: var(--ink-faint); margin-bottom: 22px; }
.price__features { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; flex: 1; }
.price__features li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-soft); }
.price__features li::before { content: "✓"; color: var(--graphite); font-weight: 800; flex: 0 0 auto; }
.price .btn { width: 100%; justify-content: center; }

.price--featured { background: var(--graphite); color: #fff; border-color: var(--graphite); transform: translateY(-12px); box-shadow: var(--shadow); position: relative; }
.price--featured:hover { transform: translateY(-18px); }
.price--featured .price__name { color: rgba(255,255,255,.7); }
.price--featured .price__value, .price--featured h3 { color: #fff; }
.price--featured .price__old { color: rgba(255,255,255,.5); }
.price--featured .price__hint { color: rgba(255,255,255,.6); }
.price--featured .price__features li { color: rgba(255,255,255,.92); }
.price--featured .price__features li::before { color: #fff; }
.price--featured .btn { background: #fff; color: var(--graphite); box-shadow: none; }
.price--featured .btn:hover { background: var(--graphite-3); color: #fff; }
.price__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 16px; border-radius: 100px; text-transform: uppercase; letter-spacing: .06em;
}
.price__badge::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(54,236,222,.55);
  animation: badgeGlow 2s cubic-bezier(0,0,.3,1) infinite;
}
@keyframes badgeGlow {
  0%   { box-shadow: 0 0 0 0 rgba(54,236,222,.55); opacity: 1; }
  100% { box-shadow: 0 0 0 12px rgba(54,236,222,0); opacity: 0; }
}

.price__reason { font-size: 13.5px; line-height: 1.5; color: var(--ink-faint); margin-bottom: 20px; padding: 12px 14px; background: rgba(0,0,0,.04); border-radius: 12px; }
.price__reason b { color: var(--ink-soft); font-weight: 700; }
.price--featured .price__reason { background: rgba(255,255,255,.08); color: rgba(255,255,255,.72); }
.price--featured .price__reason b { color: #fff; }

/* Опции */
.options { margin-top: 48px; text-align: center; }
.options__toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--ink-faint); font-size: 13.5px; font-weight: 600; cursor: pointer; padding: 8px 4px; transition: color .2s; }
.options__toggle:hover { color: var(--ink-soft); }
.options__toggle-arrow { display: inline-block; transition: transform .25s var(--ease); font-size: 11px; }
.options__toggle.is-open .options__toggle-arrow { transform: rotate(180deg); }
.options__panel { text-align: left; margin-top: 20px; }
.options__hint { text-align: center; color: var(--ink-faint); font-size: 14px; margin-bottom: 24px; }
.options__filter { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.options__filter-btn { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-soft); font-size: 14px; font-weight: 700; padding: 9px 20px; border-radius: 100px; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.options__filter-btn:hover { border-color: var(--graphite); }
.options__filter-btn.is-active { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.options__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.option { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 18px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), border-color .25s; }
.option:hover { transform: translateY(-4px); border-color: var(--graphite); }
.option__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.option__top h4 { font-size: 16.5px; line-height: 1.25; }
.option__price { flex: 0 0 auto; font-family: var(--font-disp); font-weight: 800; font-size: 16px; color: var(--ink); white-space: nowrap; }
.option p { color: var(--ink-soft); font-size: 14px; line-height: 1.5; flex: 1; }
.option__tag { align-self: flex-start; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); background: rgba(0,0,0,.05); padding: 3px 10px; border-radius: 100px; }

/* Не входит + оплата */
.pricing-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.pricing-note { padding: 26px 28px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); }
.pricing-note h4 { font-size: 18px; margin-bottom: 16px; }
.pricing-note__list, .pricing-note__steps { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.pricing-note__list li, .pricing-note__steps li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.pricing-note__list li::before { content: "✕"; color: var(--ink-faint); font-weight: 800; flex: 0 0 auto; }
.pricing-note__steps li b { color: var(--ink); font-family: var(--font-disp); font-weight: 800; flex: 0 0 auto; min-width: 48px; }

/* Доп. услуги */
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.extra { display: flex; flex-direction: column; gap: 8px; }
.extra:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line); }
.extra__tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.extra h3 { font-size: 21px; }
.extra p { color: var(--ink-soft); font-size: 15.5px; }

/* ───────────────────────── Этапы ───────────────────────── */
.steps__wrap { position: relative; }
.steps__track { position: absolute; top: 30px; left: 10%; right: 10%; height: 2px; background: var(--line); z-index: 0; }
.steps__track-fill { position: absolute; inset: 0; width: 0%; background: var(--mint); transform-origin: left; box-shadow: 0 0 10px rgba(54,236,222,.6); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; z-index: 1; }
.step { position: relative; padding-top: 4px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.step__num { display: inline-grid; place-items: center; width: 52px; height: 52px; font-family: var(--font-disp); font-size: 18px; font-weight: 800; background: var(--blue); color: #fff; border-radius: 50%; margin: 0 auto 18px; position: relative; z-index: 1; box-shadow: var(--shadow-blue); }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* ───────────────────────── FAQ (аккордеон) ───────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; transition: border-color .3s;
}
.faq-item:has(.faq-item__q[aria-expanded="true"]) { border-color: rgba(54,236,222,.5); }

.faq-item__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 20px 24px; font-family: var(--font-body); font-size: 16.5px; font-weight: 700; color: var(--ink);
}
.faq-item__icon {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-50); color: var(--mint-ink);
  display: grid; place-items: center; font-size: 17px; font-weight: 700; line-height: 1;
  transition: transform .35s var(--ease), background .3s, color .3s;
}
.section--alt .faq-item__icon { color: var(--mint); }
.faq-item__q[aria-expanded="true"] .faq-item__icon { transform: rotate(135deg); background: var(--mint); color: var(--graphite); }

.faq-item__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-item__a p { padding: 0 24px 20px; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.faq-item__line {
  display: inline-block; opacity: 0; transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
  transition-delay: calc(var(--i, 0) * 100ms);
}
.faq-item__line.is-in { opacity: 1; transform: none; }

/* ───────────────────────── Подвал (тёмно-синий) ───────────────────────── */
.footer { background: var(--graphite); color: var(--ink); padding: 72px 0 34px; border-top: 1px solid rgba(54, 236, 222, .18); box-shadow: 0 -1px 0 rgba(0,0,0,.4); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.brand__mark--light { width: 54px; height: 54px; background: #fff; border-radius: 14px; padding: 7px; box-shadow: 0 8px 20px -10px rgba(0,0,0,.4); }
.footer__name { font-family: var(--font-disp); font-size: 22px; font-weight: 800; }
.footer__tag { font-size: 14px; color: rgba(255,255,255,.6); }
.footer__links { display: flex; align-items: center; gap: 14px; }
.footer__socials { display: flex; gap: 10px; flex-wrap: wrap; }
.footer__social-item {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 8px 14px 8px 8px; border-radius: 100px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  transition: background .25s, border-color .25s, transform .25s;
}
.footer__social-item:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); }
.footer__social-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-50); color: var(--mint); flex: 0 0 auto; transition: background .25s, color .25s; }
.footer__social-ico svg { width: 17px; height: 17px; fill: currentColor; }
.footer__social-item--tg:hover .footer__social-ico { background: #229ED9; color: #fff; }
.footer__social-item--wa:hover .footer__social-ico { background: #25D366; color: #fff; }
.footer__social-item--ig:hover .footer__social-ico { background: linear-gradient(135deg, #feda75, #d62976 45%, #962fbf 80%); color: #fff; }
.footer__social-text { display: flex; flex-direction: column; line-height: 1.3; }
.footer__social-label { font-size: 11px; color: rgba(255,255,255,.5); }
.footer__social-user { font-size: 13.5px; font-weight: 700; color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 26px; font-size: 14px; color: rgba(255,255,255,.5); }
.footer__pin { display: inline-block; color: rgba(255,255,255,.15); text-decoration: none; margin-left: 2px; font-size: 16px; padding: 10px 8px; transition: color .2s; }
.footer__pin:hover { color: rgba(255,255,255,.5); }
.footer__links a { color: rgba(255,255,255,.7); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.2); transition: color .2s, border-color .2s; }
.footer__links a:hover { color: var(--mint); border-color: var(--mint); }

/* ───────────────────────── Cookie-баннер ───────────────────────── */
.cookie { position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 200; max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 18px 22px; background: var(--graphite); color: #fff; border: 1.5px solid var(--graphite-3); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.35); opacity: 0; transform: translateY(16px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.cookie.is-in { opacity: 1; transform: none; }
.cookie__text { flex: 1 1 300px; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.82); margin: 0; }
.cookie__text a { color: var(--mint); text-decoration: none; border-bottom: 1px solid rgba(54,236,222,.4); }
.cookie__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie .btn--outline { border-color: rgba(255,255,255,.3); color: #fff; }
.cookie .btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ───────────────────────── Юридическая страница ───────────────────────── */
.legal { padding: 130px 0 90px; }
.legal__inner { max-width: 820px; }
.legal__kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); }
.legal__title { font-family: var(--font-disp); font-weight: 800; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.02em; margin: 10px 0 6px; }
.legal__meta { color: var(--ink-faint); font-size: 15px; margin-bottom: 40px; }
.legal__section { margin-bottom: 34px; }
.legal__section h2 { font-size: 21px; margin-bottom: 12px; }
.legal__section p { color: var(--ink-soft); line-height: 1.7; margin-bottom: 12px; }
.legal__section ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 4px 0 12px; }
.legal__section li { display: flex; gap: 10px; color: var(--ink-soft); line-height: 1.6; }
.legal__section li::before { content: "—"; color: var(--blue); flex: 0 0 auto; }
.legal__section a { color: var(--blue); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }

/* ───────────────────────── Модалки ───────────────────────── */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15, 26, 51, .55); backdrop-filter: blur(5px); opacity: 0; transition: opacity .35s var(--ease); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__dialog { position: relative; background: var(--surface); border-radius: 22px; width: calc(100% - 40px); max-height: calc(100vh - 60px); overflow-y: auto; margin: 30px auto; padding: 40px; box-shadow: var(--shadow-lg); transform: translateY(24px) scale(.97); opacity: 0; transition: transform .4s var(--ease), opacity .35s var(--ease); }
.modal.is-open .modal__dialog { transform: translateY(0) scale(1); opacity: 1; }
.modal__dialog--sm { max-width: 460px; text-align: center; }
.modal__dialog--lg { max-width: 1040px; }
.modal__dialog--work { max-width: 1440px; width: calc(100% - 24px); padding: 0; margin: 12px auto; max-height: calc(100vh - 24px); }
.modal__dialog--order { max-width: 620px; text-align: center; }

.modal__close { position: absolute; top: 16px; right: 18px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(54,236,222,.35); background: var(--blue-50); font-size: 24px; line-height: 1; cursor: pointer; color: var(--mint-ink); transition: background .2s, color .2s, transform .2s, border-color .2s; }
.modal__close:hover { background: var(--mint); color: var(--graphite); border-color: var(--mint); transform: rotate(90deg); }

.modal__cat { width: 78px; height: 60px; margin: 0 auto 10px; display: block; color: var(--ink); }
.modal__dialog--sm h2 { font-size: 27px; }
.modal__dialog--order h2 { font-size: 27px; }
.modal__sub { color: var(--ink-soft); margin-top: 8px; }
.modal__consult { display: block; margin: 16px 0 0; padding: 10px 18px; background: var(--graphite); color: rgba(255,255,255,.9); font-size: 13.5px; line-height: 1.5; border-radius: 12px; text-align: center; }
.modal__channels-hint { text-align: center; font-size: 14px; color: var(--ink-faint); margin: 30px 0 4px; }

.contacts { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.contact { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); text-align: left; transition: transform .25s var(--ease), border-color .25s, background .25s; }
.contact:hover { transform: translateY(-2px); border-color: var(--blue); background: var(--blue-50); }
.contact__ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: 0 0 auto; }
.contact__ico svg { width: 24px; height: 24px; fill: currentColor; }
.contact--tg .contact__ico { background: #229ED9; }
.contact--wa .contact__ico { background: #25D366; }
.contact--ig .contact__ico { background: linear-gradient(135deg, #feda75, #d62976 45%, #962fbf 80%); }
.contact b { display: block; font-size: 15.5px; }
.contact small { color: var(--ink-faint); font-size: 13.5px; }
.contact small em { color: var(--blue); font-style: normal; font-weight: 700; }

/* Конструктор заказа в модалке контактов (build2) */
.ob { text-align: left; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.ob__row { display: flex; gap: 10px; flex-wrap: wrap; }
.ob__chip { position: relative; cursor: pointer; }
.ob__chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ob__chip span { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 100px; border: 1.5px solid var(--line); font-size: 14.5px; font-weight: 700; color: var(--ink-soft); transition: background .2s, color .2s, border-color .2s; }
.ob__chip input:checked + span { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.ob__chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

.ob__tierbox { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: rgba(0,0,0,.03); border-radius: 14px; }
.ob__tierbox-label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--graphite); margin-bottom: 4px; }
.ob__tier { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.ob__tier:hover { background: rgba(0,0,0,.04); }
.ob__tier input { accent-color: var(--graphite); flex: 0 0 auto; }
.ob__tier-name { flex: 1; font-size: 14.5px; font-weight: 600; }
.ob__tier-price { font-size: 14px; color: var(--ink-faint); }

.ob__opts-toggle { display: flex; align-items: center; gap: 10px; width: 100%; background: rgba(0,0,0,.03); border: 1.5px solid var(--line); border-radius: 14px; color: var(--ink); font-size: 14.5px; font-weight: 700; cursor: pointer; padding: 13px 16px; text-align: left; transition: background .2s, border-color .2s; }
.ob__opts-toggle:hover { background: rgba(0,0,0,.05); border-color: rgba(20,35,58,.2); }
.ob__opts-toggle.is-open { border-color: var(--blue); background: var(--blue-50); }
.ob__opts-arrow { flex: 0 0 auto; display: inline-block; font-size: 11px; color: var(--blue); transition: transform .25s var(--ease); }
.ob__opts-toggle.is-open .ob__opts-arrow { transform: rotate(180deg); }
.ob__opts-toggle-label { flex: 1; }
.ob__opts-count { flex: 0 0 auto; background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 800; padding: 2px 10px; border-radius: 100px; }
.ob__opts { display: flex; flex-direction: column; gap: 14px; max-height: 300px; overflow-y: auto; padding: 4px 4px 4px 0; }
.ob__opt-group-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); margin-bottom: 6px; }
.ob__opt { display: flex; align-items: center; gap: 10px; padding: 7px 4px; font-size: 14px; cursor: pointer; }
.ob__opt input { accent-color: var(--graphite); flex: 0 0 auto; }
.ob__opt-name { flex: 1; }
.ob__opt-price { color: var(--ink-faint); font-size: 13.5px; }

.ob__field { display: flex; flex-direction: column; gap: 8px; }
.ob__field span { font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.ob__field textarea,
.ob__field input[type="text"] { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 14px; resize: vertical; background: var(--surface); color: var(--ink); }
.ob__field textarea:focus,
.ob__field input[type="text"]:focus { outline: none; border-color: var(--graphite); }

.ob__summary { background: var(--graphite); border-radius: 14px; padding: 16px 18px; }
.ob__summary-text { color: rgba(255,255,255,.85); font-size: 13.5px; line-height: 1.6; margin: 0 0 6px; }
.ob__summary-total { color: #fff; font-family: var(--font-disp); font-weight: 800; font-size: 18px; margin: 0; }

.ob__consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.ob__consent input { margin-top: 3px; accent-color: var(--graphite); flex: 0 0 auto; }
.ob__consent a { color: var(--blue); font-weight: 600; }

.ob__status { font-size: 13.5px; text-align: center; margin: -4px 0 0; }
.ob__status.is-ok { color: #1f9d55; }
.ob__status.is-err { color: #d1453b; }

.ob__submit { width: 100%; justify-content: center; }
.ob__copy { align-self: center; background: none; border: none; color: var(--ink-faint); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 2px; }
.ob__copy:hover { color: var(--ink-soft); }
.ob__copy.is-copied { color: var(--blue); }

.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.works-grid .slide { flex: none; }

.work { display: grid; grid-template-columns: 1.6fr 1fr; min-height: calc(100vh - 24px); max-height: calc(100vh - 24px); }
.work__media { background: var(--blue-50); position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 28px; border-radius: 22px 0 0 22px; }
.work__media img { width: 100%; height: 100%; object-fit: contain; }
.work__media .slide__placeholder { position: absolute; inset: 0; }
.work__media .slide__placeholder span { font-size: 22px; }
.work__body { padding: 48px 44px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }

/* Галерея фото в карточке работы */
.work__gallery { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.work__gallery img { width: 100%; height: 100%; object-fit: contain; }
.work__gallery-arrow:not([hidden]) { display: grid; }
.work__gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.92); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; place-items: center; z-index: 2; transition: background .2s, color .2s, transform .2s; }
.work__gallery-arrow:hover { background: var(--blue); color: #fff; transform: translateY(-50%) scale(1.08); }
.work__gallery-arrow--prev { left: 20px; }
.work__gallery-arrow--next { right: 20px; }
.work__gallery-dots { position: absolute; bottom: 20px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.work__gallery-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(15,26,51,.25); cursor: pointer; padding: 0; transition: background .2s, transform .2s; }
.work__gallery-dots button.is-active { background: var(--blue); transform: scale(1.3); }
.work__type { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--mint-ink); background: var(--blue-50); padding: 5px 12px; border-radius: 100px; }
.work__body h2 { font-size: 28px; }
.work__links { display: flex; flex-direction: column; gap: 4px; }
.work__link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; font-size: 15px; word-break: break-all; transition: color .2s; }
.work__link:hover { color: var(--blue-dark); text-decoration: underline; }
.work__section h4 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); margin-bottom: 4px; }
.work__section p { color: var(--ink-soft); font-size: 15.5px; }
.work__body .btn { align-self: flex-start; margin-top: 6px; }

/* ТЗ: сворачиваемый длинный текст */
.work__tz { white-space: pre-wrap; position: relative; }
.work__tz.is-collapsed { max-height: 6.6em; overflow: hidden; }
.work__tz.is-collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.4em; background: linear-gradient(180deg, transparent, var(--surface)); }
.work__tz-toggle { font-size: 14px; margin-top: -6px; }
.work__tz-file:not([hidden]) { display: inline-flex; align-self: flex-start; margin-top: 2px; }

/* ───────────────────────── Фильтр «Все работы» ───────────────────────── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.filter-bar__btn { font-family: var(--font-disp); font-size: 13.5px; font-weight: 700; padding: 9px 16px; border-radius: 100px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-soft); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filter-bar__btn:hover { border-color: var(--mint); color: var(--mint-ink); }
.filter-bar__btn.is-active { background: var(--mint); border-color: var(--mint); color: var(--graphite); }

/* ───────────────────────── Reveal: блок «встаёт на место» снизу с лёгким увеличением ───────────────────────── */
.reveal {
  opacity: 0; transform: translateY(38px) scale(.94);
  transition: opacity .6s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *:not(.hero__marquee-track):not(.service-card__track):not(.faq-item__a):not(.faq-item__icon), *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ───────────────────────── Планшет ───────────────────────── */
/* Навигация: 7 пунктов + кнопка не помещаются между 768 и ~1180px — прячем раньше, чем остальной контент. */
@media (max-width: 1180px) {
  .nav, .header__cta { display: none; }
  .burger { display: flex; margin-left: auto; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: 76px; left: 0; right: 0; transform: none;
    background: rgba(20, 20, 20, .98); backdrop-filter: saturate(120%) blur(16px); -webkit-backdrop-filter: saturate(120%) blur(16px);
    padding: 16px 24px 24px; border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); z-index: 50;
  }
  .nav.is-open a { padding: 14px 12px; font-size: 17px; border-radius: 10px; }
}

@media (max-width: 1024px) {
  .hero { min-height: 0; padding: 60px 0; justify-content: center; gap: 32px; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .prices { grid-template-columns: 1fr; gap: 24px; max-width: 480px; margin: 0 auto; }
  .price--featured { transform: none; }
  .steps__track { display: none; }
  .slide { flex: 0 0 calc((100% - 22px) / 2); }
  .work { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .work__media { height: 60vh; border-radius: 22px 22px 0 0; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .options__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* ───────────────────────── Мобайл ───────────────────────── */
@media (max-width: 768px) {
  body { font-size: 16px; }

  .hero { min-height: 0; padding: 32px 0 40px; }
  .hero__inner { text-align: center; }
  .hero__col { margin: 0 auto; }
  .hero__eyebrow, .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__title { font-size: clamp(28px, 8.4vw, 72px); }
  .hero__title-line { white-space: normal; }

  .section__head { margin-bottom: 40px; }
  .why-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card__footer { flex-wrap: wrap; }
  .service-card__switcher { height: auto; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .service-card__track { display: block; width: 100%; transform: none !important; }
  .service-card__tags { flex-wrap: wrap; }
  .service-card__price { margin-top: 8px; }
  .slide { flex: 0 0 100%; }
  .prices { grid-template-columns: 1fr; gap: 26px; }
  .price--featured { transform: none; }
  .price--featured:hover { transform: translateY(-4px); }
  .extras { grid-template-columns: 1fr; }
  .options__grid { grid-template-columns: 1fr; }
  .pricing-notes { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { display: none; }
  .works-grid { grid-template-columns: 1fr; }

  .modal__dialog:not(.modal__dialog--work) { padding: 32px 22px; margin: 16px auto; max-height: calc(100vh - 32px); }
  .modal__dialog--work { margin: 8px auto; max-height: calc(100vh - 16px); }
  .work__body { padding: 32px 24px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__links { flex-wrap: wrap; }
}
