/* Шаблон сайта детейлинг-студии. Акцентный цвет приходит из анкеты: --accent, --accent-rgb, --accent-ink. */

/* ——— Шрифты (свои файлы, без Google: так данные посетителей не уходят за рубеж) ——— */
@font-face { font-family: 'Tektur'; font-style: normal; font-display: swap; font-weight: 400 900; font-stretch: 75% 100%; src: url(fonts/tektur-cyrillic-standard-normal.woff2) format('woff2-variations'), url(fonts/tektur-cyrillic-standard-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Tektur'; font-style: normal; font-display: swap; font-weight: 400 900; font-stretch: 75% 100%; src: url(fonts/tektur-latin-standard-normal.woff2) format('woff2-variations'), url(fonts/tektur-latin-standard-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/onest-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/onest-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/onest-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/onest-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/onest-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/onest-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/onest-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/onest-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/ibm-plex-mono-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/ibm-plex-mono-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+20BD; }

/* ——— Токены ——— */
:root {
  --accent: #FFB547; --accent-rgb: 255,181,71; --accent-ink: #15171A; --accent-sheen: #FFF4DE;
  --bad: #FF8A7A; --bad-rgb: 255,138,122;
  --bg: #1C1F23; --bg-deep: #040506; --bg-2: #191B1F; --bg-3: #15171A;
  --panel: #202328; --panel-2: #24282D;
  --line: #2E3339; --line-2: #353B42; --line-3: #3A4047; --line-4: #454C55;
  --text: #EEF0F2; --text-2: #C9CFD6; --muted: #A7AFB8; --dim: #959DA7; --dim-2: #7D8690;
  --pad: max(20px, calc(50% - 600px));
  --hdr-h: 76px;
  --f-display: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-brand: 'Tektur', 'Arial Narrow', system-ui, sans-serif;
  --bg-alt: #17191C;
  --f-text: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-num: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Menlo, monospace;
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --ease-expo: cubic-bezier(.16,1,.3,1);
  /* Тема (редактор и theme в анкете): скругления, заголовки, появление блоков */
  --r: 8px; --h-scale: 1; --h-weight: 600; --h-case: none;
  --rv-from: translateY(36px); --rv-filter: none; --rv-speed: 1;
  color-scheme: dark;
}
@media (min-width: 700px) { :root { --pad: max(32px, calc(50% - 600px)); } }
@media (min-width: 1100px) { :root { --pad: max(64px, calc(50% - 600px)); } }

/* ——— База ——— */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 12px); }
.lead-form { scroll-margin-top: calc(var(--hdr-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-text); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--text); }
a:hover { color: #fff; }
button { font-family: inherit; cursor: pointer; color: inherit; }
input, textarea { font-family: inherit; }
h1, h2, h3, h4 { font-weight: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--f-mono); }
.ic { flex-shrink: 0; }
.ic.acc { color: var(--accent); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; border-radius: var(--r); background: var(--accent); color: var(--accent-ink); }
.skip:focus { left: 12px; }

/* Зерно поверх всей страницы — добавляет «плёночную» фактуру */
body.grain::before { content: ""; position: fixed; inset: 0; background-image: url(grain.png); background-size: 220px 220px; opacity: .05; mix-blend-mode: overlay; pointer-events: none; z-index: 45; }

/* ——— Кнопки ——— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--r); border: 1px solid transparent; text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.1; text-align: center; white-space: nowrap; transition: transform .14s ease-out, background-color .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease, filter .2s; }
.btn:active { transform: scale(.985); }
.btn--accent { background-color: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--accent { background-image: linear-gradient(100deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.5) 50%, rgba(255,255,255,0) 65%); background-size: 250% 100%; background-repeat: no-repeat; background-position: 130% 0; }
.btn--accent:hover { color: var(--accent-ink); filter: brightness(1.05); background-position: -30% 0; transition: transform .14s ease-out, filter .2s, box-shadow .22s ease, background-position .9s var(--ease-expo); }
.btn--line { background: transparent; color: var(--text); border-color: #4A525B; }
.btn--line:hover { border-color: #6B747E; }
.btn--big { height: 52px; font-size: 16px; }
.btn[disabled] { background: var(--line-2); border-color: var(--line-2); color: var(--muted); cursor: not-allowed; box-shadow: none; filter: none; }

/* ——— Типографика секций ——— */
.kicker { font-family: var(--f-mono); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.h2 { margin: 0; text-transform: var(--h-case); font-family: var(--f-display); font-weight: var(--h-weight); font-size: calc(46px * var(--h-scale)); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.h3 { margin: 0; font-family: var(--f-display); font-weight: var(--h-weight); font-size: calc(26px * var(--h-scale)); letter-spacing: -.02em; }
.sec { padding: 112px var(--pad); display: flex; flex-direction: column; gap: 44px; }
.sec--alt { background: var(--bg-alt); }
.sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.sec__titles { display: flex; flex-direction: column; gap: 14px; }
.sec__lead { margin: 0; max-width: 400px; font-size: 17px; line-height: 1.5; color: var(--text-2); }
.split__l .sec__lead { margin-top: 8px; }
.sec__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.sec__note { margin: 0; font-size: 14px; color: var(--dim); }
.sec--glow { background: radial-gradient(900px 420px at 50% 0%, rgba(255,255,255,.045), rgba(255,255,255,0) 70%), var(--bg); }
.sec--warm { background-color: var(--bg); background: radial-gradient(700px 360px at 85% 20%, rgba(var(--accent-rgb),.05), rgba(var(--accent-rgb),0) 70%), var(--bg); }
.split { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 80px; }
.split__l { display: flex; flex-direction: column; gap: 14px; }

/* ——— Полоса «демо / концепт» ——— */
.strip { min-height: 36px; padding: 6px 16px; display: flex; align-items: center; justify-content: center; gap: 12px; background: #0B0C0E; border-bottom: 1px solid #1E2226; font-family: var(--f-mono); font-size: 13px; color: var(--muted); letter-spacing: .04em; text-align: center; position: relative; z-index: 5; }
.strip__short { display: none; }
.strip__tag { flex-shrink: 0; padding: 2px 8px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font-weight: 500; }

/* ——— Шапка ——— */
.hdr { position: -webkit-sticky; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background-color: var(--bg-deep); border-bottom: 1px solid rgba(255,255,255,.06); transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease; }
.hdr.is-stuck { background-color: rgba(10,11,13,.72); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); border-bottom-color: rgba(255,255,255,.09); box-shadow: 0 14px 34px -22px rgba(0,0,0,.95); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .hdr.is-stuck { background-color: rgba(10,11,13,.97); } }
.hdr__in { height: var(--hdr-h); padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hdr__logo { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.logo-mark { color: var(--accent); flex-shrink: 0; }
.hdr__logo-img { height: 40px; width: auto; }
/* Логотип студии с названием внутри — вместо текстового названия */
.hdr__logo--wide .hdr__logo-img { height: var(--logo-h, 58px); }
.hdr__name { font-family: var(--f-brand); font-weight: 800; font-stretch: 100%; font-size: 24px; letter-spacing: .16em; color: var(--text); white-space: nowrap; }
.hdr__sub { font-size: 13px; color: var(--muted); line-height: 1.25; }
.hdr__name--long { font-size: 21px; letter-spacing: .05em; }
.hdr__name--long ~ .hdr__sub { display: none; }
.hdr__logo > span { min-width: 0; }
/* Место под логотип студии (демо-сайт без своего бренда) */
.logo-ph { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 18px; border: 1.5px dashed rgba(255,255,255,.3); border-radius: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.logo-ph--sm { height: 40px; padding: 0 14px; font-size: 11px; }
.hdr__nav { display: flex; gap: 32px; font-size: 16px; }
.hdr__nav a { position: relative; padding: 8px 0; text-decoration: none; color: var(--text-2); transition: color .2s; }
.hdr__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform .35s var(--ease-out); }
.hdr__nav a:hover, .hdr__nav a.is-cur { color: #fff; }
.hdr__nav a.is-cur::after { transform: scaleX(1); }
.hdr__actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.hdr__phone { text-decoration: none; font-family: var(--f-mono); font-size: 16px; white-space: nowrap; }
.hdr__call, .hdr__burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--r); border: 1px solid var(--line-3); background: rgba(255,255,255,.03); color: var(--text-2); }
.hdr__burger .i-close { display: none; }
.hdr.is-open .hdr__burger .i-close { display: inline-flex; }
.hdr.is-open .hdr__burger .i-open { display: none; }
.snd { white-space: nowrap; height: 44px; min-width: 44px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line-3); background: rgba(255,255,255,.03); color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 13px; transition: transform .14s ease-out, border-color .2s; }
.snd:active { transform: scale(.97); }
.snd__on, .snd__off { display: inline-flex; }
.snd[aria-pressed="true"] .snd__off, .snd[aria-pressed="false"] .snd__on { display: none; }
.mnav { display: none; }

/* ——— Первый экран ——— */
.hero { position: relative; padding-bottom: 56px; }
.hero__stage { position: relative; height: 780px; background: var(--bg-deep); overflow: hidden; }
.hero--stage .hero__stage { height: clamp(780px, 44vw, 900px); background: linear-gradient(180deg, var(--hero-bg, var(--bg-deep)) 0, var(--hero-bg, var(--bg-deep)) calc(100% - 150px), var(--bg) 100%); }
.hero__imgbox { position: absolute; overflow: hidden; }
.hero--stage .hero__imgbox { left: 50%; bottom: 60px; width: clamp(1180px, 70vw, 1400px); aspect-ratio: 1260 / 596; transform: translateX(-50%) translate3d(0, var(--py, 0px), 0); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 17%, #000 83%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 20%, #000 70%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 17%, #000 83%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 20%, #000 70%, transparent 100%); mask-composite: intersect; }
.hero--stage .hero__fade { display: none; }
.hero--cover .hero__imgbox { inset: 0; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; animation: drift 26s ease-in-out infinite alternate; }
.hero--stage .hero__imgbox { will-change: transform; }
.hero__sweep { position: absolute; inset: 0; background-image: linear-gradient(100deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.85) 50%, rgba(255,255,255,0) 58%); background-size: 260% 100%; background-repeat: no-repeat; background-position: 135% 0; mix-blend-mode: overlay; animation: ambientSweep 9s cubic-bezier(.45,.05,.3,1) 1.4s infinite; pointer-events: none; }
.hero__flash { position: absolute; inset: 0; opacity: 0; background-image: linear-gradient(100deg, rgba(255,255,255,0) 40%, #fff 50%, rgba(255,255,255,0) 60%); background-size: 260% 100%; background-repeat: no-repeat; background-position: -35% 0; mix-blend-mode: overlay; pointer-events: none; }
.hero__flash.go-a { opacity: 1; animation: sweepA 1.25s cubic-bezier(.45,.05,.25,1) both; }
.hero__flash.go-b { opacity: 1; animation: sweepB 1.25s cubic-bezier(.45,.05,.25,1) both; }
.hero__fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--bg-deep) 0%, rgba(4,5,6,0) 12%, rgba(4,5,6,0) 88%, var(--bg-deep) 100%), linear-gradient(180deg, rgba(4,5,6,0) 0%, rgba(4,5,6,0) 62%, rgba(28,31,35,.75) 86%, var(--bg) 100%); }
.hero--cover .hero__fade { background: linear-gradient(90deg, rgba(4,5,6,.94) 0%, rgba(4,5,6,.72) 40%, rgba(4,5,6,.3) 100%), linear-gradient(180deg, rgba(4,5,6,.45) 0%, rgba(4,5,6,0) 30%, rgba(28,31,35,.82) 80%, var(--bg) 100%); }
.hero__head { position: relative; z-index: 2; padding: 60px var(--pad) 0; display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 64px; align-items: start; }
.hero__main { display: flex; flex-direction: column; gap: 18px; }
.hero__title { margin: 0; text-transform: var(--h-case); font-family: var(--f-display); font-weight: var(--h-weight); font-size: calc(64px * var(--h-scale)); line-height: 1.03; letter-spacing: -.035em; display: flex; flex-direction: column; gap: 2px; text-wrap: balance; }
.hero__l1 { color: #F2F4F6; }
.hero__l1, .hero__l2 { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.rise { display: block; }
.hero__l2 { color: var(--accent); }
.hero__side { display: flex; flex-direction: column; gap: 16px; padding-top: 34px; }
.hero__lead { margin: 0; font-size: 17px; line-height: 1.5; color: var(--text-2); }
.hero__rating { display: flex; align-items: center; gap: 12px; font-size: 16px; text-decoration: none; color: var(--text); }
.hero__rating b { font-family: var(--f-num); font-weight: 700; }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.hero__badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--text-2); }
.hero__badges li { display: flex; align-items: center; gap: 8px; }
.hero__badges .ic { color: var(--accent); }

/* ——— Вступление первого экрана (класс .m ставится до отрисовки, если анимации не выключены) ——— */
.m .hdr { animation: fadeDown .9s var(--ease-expo) both; }
.m .hero__imgbox { animation: carOn 2.4s cubic-bezier(.3,.1,.2,1) .15s both; }
.m .hero .kicker { animation: fadeRise .9s var(--ease-expo) .2s both; }
.m .hero__title .rise { animation: riseIn 1.2s var(--ease-expo) both; }
.m .hero__l1 .rise { animation-delay: .3s; }
.m .hero__l2 .rise { animation-delay: .44s; }
.m .hero__lead { animation: fadeRise 1s var(--ease-expo) .6s both; }
.m .hero__rating { animation: fadeRise 1s var(--ease-expo) .7s both; }
.m .hero__badges li { animation: fadeRise 1s var(--ease-expo) .8s both; }
.m .hero__badges li:nth-child(2) { animation-delay: .87s; }
.m .hero__badges li:nth-child(3) { animation-delay: .94s; }
.m .hero .calc { animation: fadeRise 1.2s var(--ease-expo) .85s both; }
.m .hero__sweep { animation-delay: 2.3s; }

/* ——— Калькулятор ——— */
.calc { position: relative; z-index: 3; margin: -150px var(--pad) 0; padding: 26px 32px 30px; border-radius: calc(var(--r) * 1.75); background: rgba(30,33,38,.82); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); border: 1px solid rgba(255,255,255,.09); box-shadow: 0 40px 90px -30px rgba(0,0,0,.85); display: flex; flex-direction: column; gap: 20px; }
.calc__top { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.calc__title { display: flex; align-items: baseline; gap: 16px; }
.calc__h { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -.015em; white-space: nowrap; }
.calc__steps { font-family: var(--f-mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.calc__note { margin: 0; font-size: 14px; color: var(--muted); }
.calc__grid { display: grid; grid-template-columns: 300px minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.calc__col { margin: 0; padding: 0; border: 0; min-width: 0; }
.calc__col legend { padding: 0; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.cls-list { display: flex; flex-direction: column; gap: 8px; }
.cls-btn { width: 100%; min-height: 56px; padding: 8px 16px; border-radius: var(--r); display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text); background-color: rgba(255,255,255,.03); border: 1px solid var(--line-3); text-align: left; transition: transform .14s ease-out, background-color .22s ease, border-color .22s ease; }
.cls-btn:active { transform: scale(.985); }
.cls-btn[aria-pressed="true"] { background-color: rgba(var(--accent-rgb),.10); border-color: var(--accent); }
.cls-btn__t { display: flex; flex-direction: column; gap: 2px; }
.cls-btn__t b { font-weight: 600; font-size: 15px; }
.cls-btn__t small { font-size: 12px; color: var(--muted); }
.cls-btn__dot { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; border: 2px solid #59616B; transition: all .2s; }
.cls-btn[aria-pressed="true"] .cls-btn__dot { border: 5px solid var(--accent); background: var(--bg-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: var(--r); font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; background-color: rgba(255,255,255,.03); color: var(--text); border: 1px solid var(--line-4); transition: transform .14s ease-out, background-color .22s ease, border-color .22s ease, color .22s ease; }
.chip:active { transform: scale(.985); }
.chip[aria-pressed="true"] { background-color: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.calc__sum { display: flex; flex-direction: column; gap: 12px; padding-left: 32px; border-left: 1px solid rgba(255,255,255,.08); }
.calc__for { font-size: 14px; color: var(--muted); }
.calc__price { font-family: var(--f-num); font-weight: 700; font-size: 46px; line-height: 1; letter-spacing: -.025em; color: #F4F6F8; font-variant-numeric: tabular-nums; min-height: 60px; display: flex; align-items: center; white-space: nowrap; }
.calc__price.glow-a { animation: glowA .9s ease-out both; }
.calc__price.glow-b { animation: glowB .9s ease-out both; }
.calc__pkg { margin-top: -4px; font-size: 13px; color: var(--accent); }
.calc__empty { font-size: 18px; line-height: 1.35; color: var(--text-2); min-height: 60px; display: flex; align-items: center; }
.calc__cta { height: 56px; padding: 0 14px; box-shadow: 0 14px 30px -16px rgba(var(--accent-rgb),.7); white-space: normal; }

/* ——— Материалы ——— */
.mats { padding: 32px var(--pad); display: flex; align-items: center; gap: 40px; background: var(--bg-alt); }
.mats__t { flex-shrink: 0; max-width: 220px; font-family: var(--f-mono); font-size: 12px; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mats__row { flex-grow: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); align-items: center; }
.mats__i { min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 0 12px; border-left: 1px solid var(--line); font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--text-2); text-align: center; }
.mats__i:last-child { border-right: 1px solid var(--line); }
.mats__i img { max-height: 32px; width: auto; opacity: .75; filter: grayscale(1) brightness(1.4); }

/* ——— Переключатель класса ——— */
.seg { position: relative; display: inline-flex; padding: 4px; gap: 4px; border-radius: calc(var(--r) * 1.25); background: var(--bg-3); border: 1px solid var(--line); }
.seg__pill { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: calc(var(--r) * .875); background: var(--accent); box-shadow: 0 6px 18px -8px rgba(var(--accent-rgb),.8); pointer-events: none; }
.seg__pill.is-live { transition: transform .55s var(--ease-expo), width .55s var(--ease-expo); }
.seg.has-pill button { position: relative; z-index: 1; }
.seg.has-pill button[aria-pressed="true"] { background-color: transparent; }
.seg button { height: 40px; padding: 0 18px; border-radius: calc(var(--r) * .875); border: 0; font-size: 14px; font-weight: 500; background-color: transparent; color: var(--text-2); transition: background-color .22s ease, color .22s ease, transform .14s ease-out; }
.seg button:active { transform: scale(.985); }
.seg button[aria-pressed="true"] { background-color: var(--accent); color: var(--accent-ink); }

/* ——— Пакеты ——— */
.pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.pkg { position: relative; padding: 28px; border-radius: calc(var(--r) * 1.5); display: flex; flex-direction: column; gap: 16px; background: var(--panel); border: 1px solid var(--line-2); transition: transform .3s var(--ease-out), border-color .3s, box-shadow .3s, outline-color .3s; outline: 2px solid transparent; outline-offset: 4px; }
.pkg:hover { transform: translateY(-4px); }
.pkg::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.07), rgba(255,255,255,0) 65%); opacity: 0; transition: opacity .45s ease; }
.pkg:hover::after { opacity: 1; }
.pkg--pop { background: linear-gradient(180deg, rgba(var(--accent-rgb),.07), rgba(var(--accent-rgb),0) 45%), #22252A; border-color: var(--accent); box-shadow: 0 30px 60px -34px rgba(var(--accent-rgb),.35); }
.pkg.is-cur { outline-color: var(--accent); }
.pkg__top { display: flex; justify-content: space-between; align-items: center; min-height: 26px; gap: 8px; }
.pkg__tag { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pkg__badge { padding: 4px 10px; border-radius: calc(var(--r) * .75); background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pkg__name { margin: 0; font-family: var(--f-display); font-weight: var(--h-weight); font-size: calc(30px * var(--h-scale)); line-height: 1.05; letter-spacing: -.025em; }
.pkg__desc { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-2); min-height: 45px; }
.pkg__price { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.pkg__now { font-family: var(--f-num); font-weight: 700; font-size: 38px; line-height: 1; letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pkg__full { font-size: 13px; color: var(--dim); }
.pkg__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.pkg__list li { display: flex; align-items: baseline; gap: 12px; font-size: 15px; line-height: 1.4; }
.pkg__list li::before { content: ""; flex-shrink: 0; width: 12px; height: 2px; background: var(--accent); transform: translateY(-4px); }
.pkg__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; font-size: 13px; color: var(--muted); }
.pkg__meta span { display: flex; flex-direction: column; gap: 2px; }
.pkg__meta b { font-weight: 500; font-size: 15px; color: var(--text); }

/* ——— Таблица цен ——— */
.ptable-seg { display: none; }
.ptable { border: 1px solid var(--line-2); border-radius: calc(var(--r) * 1.5); overflow: hidden; }
.ptable__row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(var(--cols), minmax(150px, 220px)); border-bottom: 1px solid var(--line); min-height: 76px; }
.ptable__row:last-child { border-bottom: 0; }
.ptable__row--head { background: var(--panel-2); border-bottom: 1px solid var(--line-2); min-height: 0; }
.ptable__name { padding: 16px 28px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.ptable__row--head .ptable__name { font-size: 15px; }
.ptable__svc { font-size: 18px; font-weight: 500; }
.ptable__desc { font-size: 14px; color: var(--muted); }
.ptable__cell { display: flex; align-items: center; padding: 0 24px; font-family: var(--f-num); font-size: 17px; font-variant-numeric: tabular-nums; color: var(--dim); white-space: nowrap; transition: color .25s, background-color .25s; }
.ptable__cell.is-cur { color: var(--text); background: rgba(var(--accent-rgb),.05); font-weight: 600; }
.ptable__th { padding: 18px 24px; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--text); font-family: var(--f-text); white-space: normal; transition: border-color .25s; }
.ptable__th.is-cur { background: none; border-bottom-color: var(--accent); }
.ptable__th b { font-weight: 600; font-size: 15px; }
.ptable__th small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); font-weight: 400; }

/* ——— До и после ——— */
.ba { position: relative; aspect-ratio: 1200 / 574; border-radius: calc(var(--r) * 1.75); overflow: hidden; border: 1px solid var(--line-2); background: #000; --split: 50%; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ba__layer { position: absolute; inset: 0; }
.ba__layer--after { clip-path: inset(0 0 0 var(--split)); }
.ba__layer--before { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.ba__note { position: absolute; width: 0; height: 0; }
.ba__dot { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--bad); background: rgba(10,11,13,.9); animation: pulseDef 2.4s ease-out infinite; }
.ba__line { position: absolute; left: 0; width: 1px; height: var(--len); }
.ba__note--up .ba__line { bottom: 14px; background: linear-gradient(180deg, rgba(var(--bad-rgb),0), var(--bad)); }
.ba__note--down .ba__line { top: 14px; background: linear-gradient(180deg, var(--bad), rgba(var(--bad-rgb),0)); }
.ba__text { position: absolute; left: var(--shift); padding: 7px 12px; border-radius: var(--r); background: rgba(10,11,13,.84); border: 1px solid rgba(var(--bad-rgb),.45); font-size: 13px; line-height: 1.3; white-space: nowrap; }
.ba__note--up .ba__text { bottom: calc(var(--len) + 16px); }
.ba__note--down .ba__text { top: calc(var(--len) + 16px); }
.ba__layer--after .ba__dot { border-color: var(--accent); animation: pulseAcc 2.4s ease-out 1.2s infinite; }
.ba__layer--after .ba__note--up .ba__line { background: linear-gradient(180deg, rgba(var(--accent-rgb),0), var(--accent)); }
.ba__layer--after .ba__note--down .ba__line { background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb),0)); }
.ba__layer--after .ba__text { border-color: rgba(var(--accent-rgb),.4); }
.ba__divider { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 18%, #fff 82%, rgba(255,255,255,0)); box-shadow: 0 0 18px rgba(255,255,255,.45); pointer-events: none; }
.ba__knob { position: absolute; top: 50%; left: var(--split); width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px rgba(var(--accent-rgb),.18), 0 10px 30px rgba(0,0,0,.6); pointer-events: none; }
.ba__knob .ic { stroke-width: 2.4; }
.ba__tag { position: absolute; bottom: 20px; padding: 7px 12px; border-radius: calc(var(--r) * .75); background: rgba(10,11,13,.84); font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; pointer-events: none; }
.ba__tag--l { left: 20px; }
.ba__tag--r { right: 20px; }
/* Ползунок остаётся для клавиатуры; пальцем и мышью разделитель тянет скрипт (на iPhone невидимый range не хватается) */
.ba { cursor: ew-resize; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; -webkit-appearance: none; appearance: none; background: transparent; }
.ba:has(.ba__range:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.ba__foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 14px; color: var(--muted); margin-top: -16px; }
.ba__legend { display: flex; gap: 24px; }
.ba__legend span { display: flex; align-items: center; gap: 8px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot--bad { background: var(--bad); }
.dot--acc { background: var(--accent); }

/* ——— Последние работы ——— */
.works-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-top: 24px; }
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.work { position: relative; display: flex; flex-direction: column; border-radius: calc(var(--r) * 1.5); overflow: hidden; border: 1px solid var(--line); background: #17191D; outline: none; transition: border-color .3s ease; }
.work:hover { border-color: var(--line-4); }
.work:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.work__ph { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0A0B0C; }
.work__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease-out), opacity .45s ease; }
.work__ph .work__before { clip-path: inset(0 100% 0 0); transition: clip-path .85s var(--ease-expo), transform .9s var(--ease-out); }
.work__tag { position: absolute; left: 14px; top: 14px; padding: 5px 10px; border-radius: calc(var(--r) * .75); background: rgba(10,11,13,.8); font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; transition: opacity .3s ease; }
.work__tag--after { color: var(--accent); }
.work__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.work__kind { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.work__title { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -.015em; flex-grow: 1; }
.work__meta { display: flex; gap: 16px; margin-top: 6px; padding-top: 14px; border-top: 1px solid #2A2F35; font-size: 14px; color: var(--text-2); }
.work__meta b { margin-left: auto; color: var(--text); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Переключатель «До / После» на фото: виден всегда, работает и пальцем, и мышью */
.work__sw { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 3px; border-radius: calc(var(--r) * 1.25); border: 1px solid rgba(255,255,255,.14); background: rgba(10,11,13,.62); -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: border-color .25s ease, transform .14s ease-out; }
.work__sw::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: calc(var(--r) * .875); background: var(--accent); transform: translateX(100%); transition: transform .5s var(--ease-expo), background-color .3s ease; }
.work__sw span { position: relative; z-index: 1; display: grid; place-items: center; min-width: 58px; height: 30px; padding: 0 12px; transition: color .3s ease; }
.work__sw-a { color: var(--accent-ink); }
.work__sw:hover { border-color: rgba(255,255,255,.3); }
.work__sw:active { transform: scale(.97); }
.work__sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.work.is-before .work__sw::before { transform: translateX(0); background: var(--bad); }
.work.is-before .work__sw-b { color: #1A0F0D; }
.work.is-before .work__sw-a { color: var(--text-2); }
@media (hover: hover) {
  .work:hover .work__ph img, .work:focus-visible .work__ph img { transform: scale(1.045); }
  .work:not(.is-manual):hover .work__before, .work:not(.is-manual):focus-visible .work__before { clip-path: inset(0 0 0 0); }
  .work:not(.is-manual):hover .work__sw::before { transform: translateX(0); background: var(--bad); }
  .work:not(.is-manual):hover .work__sw-b { color: #1A0F0D; }
  .work:not(.is-manual):hover .work__sw-a { color: var(--text-2); }
}
@media (max-width: 699px) {
  .work__sw span { height: 34px; min-width: 62px; }
}
.work.is-before .work__before { clip-path: inset(0 0 0 0); }
/* На телефоне: маленькая пара «До / После» в углу, само фото тоже реагирует на касание */
@media (hover: none) {
  .work .work__tag--after { display: none; }
  .work__sw span { height: 28px; min-width: 52px; font-size: 11.5px; padding: 0 10px; }
}

/* ——— Студия: широкая полоса с фото ——— */
.studio { position: relative; min-height: 640px; padding: 140px var(--pad) 72px; display: flex; align-items: flex-end; overflow: hidden; background: #050607; isolation: isolate; }
.studio__media { position: absolute; inset: 0; z-index: -1; }
.studio__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,6,7,.9) 0%, rgba(5,6,7,.55) 38%, rgba(5,6,7,.05) 68%), linear-gradient(180deg, var(--bg-alt) 0%, rgba(5,6,7,0) 22%, rgba(5,6,7,0) 55%, rgba(5,6,7,.85) 100%); }
.studio__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.m .studio__img { transform: translate3d(0, var(--sy, 0px), 0) scale(1.14); will-change: transform; }
.studio__in { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 40px; }
.studio__txt { display: flex; flex-direction: column; gap: 16px; }
.studio__p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text-2); }
.studio__facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.studio__facts > div { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.22); }
.studio__facts dt { font-family: var(--f-num); font-weight: 600; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; color: #fff; white-space: nowrap; }
.studio__facts dd { margin: 6px 0 0; font-size: 14px; line-height: 1.4; color: var(--text-2); }

/* ——— Плавное появление при прокрутке (только ниже первого экрана) ——— */
/* Блоки: заголовки и крупные элементы выезжают целиком, группы — по очереди.
   Классы ставит скрипт и только тому, что ниже первого экрана */
.rv-armed { transition: opacity calc(1s * var(--rv-speed)) var(--ease-expo), transform calc(1s * var(--rv-speed)) var(--ease-expo), filter calc(1s * var(--rv-speed)) var(--ease-expo); }
.rv-wait:not(.rv-group) { opacity: 0; transform: var(--rv-from); filter: var(--rv-filter); }
.rv-armed.rv-group > * { transition: opacity calc(.95s * var(--rv-speed)) var(--ease-expo), transform calc(.95s * var(--rv-speed)) var(--ease-expo), filter calc(.95s * var(--rv-speed)) var(--ease-expo); transition-delay: calc(var(--i, 0) * var(--rv-step, 90ms) * var(--rv-speed)); }
.rv-wait.rv-group > * { opacity: 0; transform: var(--rv-from); filter: var(--rv-filter); }

/* ——— Почему мы ——— */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 56px; }
.why__i { padding-top: 22px; border-top: 1px solid var(--line-3); display: flex; flex-direction: column; gap: 12px; }
.why__t { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 21px; line-height: 1.25; letter-spacing: -.015em; }
.why__i p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }

/* ——— Этапы ——— */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 20px; }
.step { position: relative; padding-top: 24px; border-top: 2px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.step::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left center; }
.step .step__n { transition: color .5s ease calc(var(--i, 0) * 260ms + .7s); }
.steps.rv-seen .step::before { transform: scaleX(1); transition: transform 1.1s var(--ease-expo) calc(var(--i, 0) * 260ms + .25s); }
.steps.rv-seen .step .step__n { color: var(--accent); }
.step--first { border-top-color: var(--accent); }
.step__n { font-family: var(--f-num); font-weight: 600; font-size: 15px; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--dim); }
.step--first .step__n { color: var(--accent); }
.step__t { font-size: 20px; font-weight: 500; }
.step__d { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ——— Отзывы ——— */
.rev-score { display: flex; align-items: flex-end; gap: 16px; margin-top: 24px; }
.rev-score__n { font-family: var(--f-num); font-weight: 700; font-size: 100px; line-height: .85; letter-spacing: -.045em; }
.rev-score__s { display: flex; flex-direction: column; gap: 8px; padding-bottom: 6px; }
.rev-link { margin-top: 12px; font-size: 15px; color: var(--text-2); }
.revs { display: flex; flex-direction: column; gap: 36px; }
.rev-main { position: relative; margin: 0; padding: 8px 0 28px 64px; border-bottom: 1px solid var(--line-2); }
.rev-main__q { position: absolute; left: 0; top: -14px; font-family: Georgia, 'Times New Roman', serif; font-size: 96px; line-height: 1; color: var(--accent); opacity: .9; }
.rev-main blockquote { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 26px; line-height: 1.4; letter-spacing: -.015em; color: #F2F4F6; text-wrap: pretty; }
.rev-ex { display: inline-block; margin-left: auto; padding: 3px 8px; border-radius: 5px; border: 1px solid var(--line-3); font-size: 12px; line-height: 1.3; color: var(--dim); white-space: nowrap; }
.rev figcaption .rev-ex { display: table; margin: 10px 0 0; }
.rev-main figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.rev-main figcaption b { display: block; font-size: 16px; font-weight: 500; }
.rev-main figcaption small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.ava { width: 40px; height: 40px; border-radius: 50%; background: var(--line-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--f-display); font-weight: 600; font-size: 15px; color: var(--text-2); }
.revs__more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.rev { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.rev + .rev { padding-left: 40px; border-left: 1px solid var(--line-2); }
.rev:nth-child(3) { padding-left: 0; border-left: 0; }
.rev blockquote { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text-2); }
.rev figcaption { font-size: 14px; color: var(--muted); }

/* ——— Вопросы ——— */
.faq { display: flex; flex-direction: column; }
.faq__i { border-bottom: 1px solid var(--line-2); }
.faq__q { width: 100%; min-height: 72px; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; background: none; border: 0; color: var(--text); text-align: left; font-size: 19px; font-weight: 500; }
.faq__ic { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; border: 1px solid var(--line-3); flex-shrink: 0; color: var(--accent); transition: transform .3s cubic-bezier(.3,.7,.2,1.3); }
.faq__q[aria-expanded="true"] .faq__ic { transform: rotate(45deg); }
.faq__a p { margin: 0 0 24px; max-width: 720px; font-size: 17px; line-height: 1.55; color: var(--text-2); animation: fadeUp .35s var(--ease-out) both; }

/* ——— Контакты и форма ——— */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 56px; }
.contacts__info { display: flex; flex-direction: column; gap: 28px; }
.contacts__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; font-size: 17px; }
.contacts__grid > div { display: flex; flex-direction: column; gap: 6px; }
.contacts__grid a { text-decoration: none; }
.contacts__msgr { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.contacts__msgr a { text-decoration: underline; text-underline-offset: 3px; }
.lbl { font-size: 14px; color: var(--muted); }
.map { position: relative; height: 300px; border-radius: calc(var(--r) * 1.5); overflow: hidden; border: 1px solid var(--line-2); background-color: #22262B; background-image: linear-gradient(#2B3036 1px, transparent 1px), linear-gradient(90deg, #2B3036 1px, transparent 1px); background-size: 40px 40px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-size: 15px; color: var(--muted); }
.lead-form { position: relative; padding: 32px; border-radius: calc(var(--r) * 1.5); background: var(--panel-2); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 18px; align-self: start; }
.lead-form__t { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -.015em; }
.lead-form__calc { padding: 14px 16px; border-radius: var(--r); background: var(--bg); font-size: 15px; line-height: 1.45; color: var(--text-2); }
.lead-form__calc b { font-family: var(--f-num); font-weight: 700; color: var(--text); white-space: nowrap; }
.fld { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--muted); }
.fld input, .fld textarea { width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r); border: 1px solid #3F464E; background: var(--bg); color: var(--text); font-size: 17px; transition: border-color .2s, box-shadow .2s; }
.fld textarea { height: auto; min-height: 72px; padding: 14px 16px; resize: vertical; line-height: 1.4; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.2); }
.fld--opt .muted { font-size: 13px; }
.fld > span { display: block; }
.agree { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.agree input { margin: 2px 0 0; flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--accent); }
.agree a { color: var(--text-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .btn--big { height: 56px; font-size: 17px; }
.lead-form .btn--accent:not([disabled]) { box-shadow: 0 14px 30px -16px rgba(var(--accent-rgb),.7); }
.fld__err { font-size: 14px; line-height: 1.4; color: var(--bad); }
.fld input[aria-invalid="true"] { border-color: rgba(var(--bad-rgb),.8); }
.agree input[aria-invalid="true"] { outline: 2px solid rgba(var(--bad-rgb),.8); outline-offset: 2px; }
.lead-form > .fld__err { margin-top: -8px; padding-left: 30px; }
.lead-form__msg { margin: 0; padding: 14px 16px; border-radius: var(--r); background: var(--bg); font-size: 15px; line-height: 1.45; color: var(--text-2); animation: fadeUp .35s var(--ease-out) both; }
.lead-form__msg.is-err { border: 1px solid rgba(var(--bad-rgb),.5); }

/* ——— Подвал ——— */
.ftr { padding: 64px var(--pad) 32px; display: flex; flex-direction: column; gap: 48px; background: #0E0F11; font-size: 15px; color: var(--muted); }
.ftr__top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.ftr__brand { display: flex; flex-direction: column; gap: 12px; }
.ftr__brand p { margin: 0; }
.ftr__logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.ftr__logo svg { width: 30px; height: 30px; }
.ftr__name { font-family: var(--f-brand); font-weight: 800; font-size: 20px; color: var(--text); letter-spacing: .16em; }
.ftr__col { display: flex; flex-direction: column; gap: 10px; }
.ftr__col .lbl { margin-bottom: 4px; }
.ftr__col a { color: var(--text-2); text-decoration: none; }
.ftr__col a:hover { color: #fff; }
.ftr__tel { font-family: var(--f-mono); font-size: 16px; }
.ftr__msgr { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.ftr__bot { padding-top: 24px; border-top: 1px solid #1F2226; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; font-size: 13px; color: var(--dim); }
.ftr__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.ftr__bot a { color: var(--muted); }

/* ——— Липкая плашка расчёта ——— */
.bar { position: fixed; left: 50%; bottom: 20px; z-index: 55; width: 720px; max-width: calc(100% - 32px); padding: 12px 12px 12px 22px; border-radius: calc(var(--r) * 1.75); background: rgba(24,27,31,.58); -webkit-backdrop-filter: blur(24px) saturate(1.7); backdrop-filter: blur(24px) saturate(1.7); border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 24px 60px -20px rgba(0,0,0,.75); display: flex; align-items: center; justify-content: space-between; gap: 20px; transform: translate(-50%, 140%); opacity: 0; pointer-events: none; transition: transform .45s var(--ease-out), opacity .3s ease; }
.bar.is-on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.bar__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .bar { background: rgba(20,22,26,.97); } }
.bar__k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__p { font-family: var(--f-num); font-weight: 700; font-size: 24px; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar__btns { display: flex; gap: 8px; flex-shrink: 0; }

/* ——— Cookie ——— */
.totop { position: fixed; right: 20px; bottom: 20px; z-index: 54; width: 50px; height: 50px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text); background: rgba(24,27,31,.58); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); border: 1px solid rgba(255,255,255,.16); box-shadow: 0 16px 40px -16px rgba(0,0,0,.85); opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity .3s ease, transform .4s var(--ease-out), bottom .4s var(--ease-out), border-color .2s, color .2s; }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { color: var(--accent); border-color: rgba(var(--accent-rgb),.6); }
.totop:active { transform: scale(.94); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .totop { background: rgba(24,27,31,.96); } }
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 60; max-width: 440px; padding: 18px 20px; border-radius: calc(var(--r) * 1.5); background: #202328; border: 1px solid var(--line-3); box-shadow: 0 24px 60px -20px rgba(0,0,0,.8); display: flex; flex-direction: column; gap: 14px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.cookie p { margin: 0; }
.cookie > span { display: flex; gap: 8px; justify-content: flex-end; }

/* ——— Отклик на клик ——— */
.burst { position: fixed; left: 0; top: 0; width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--accent); background: radial-gradient(circle, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 55%); box-shadow: 0 0 22px rgba(var(--accent-rgb),.45); pointer-events: none; z-index: 70; animation: burst .55s cubic-bezier(.2,.7,.2,1) both; }

/* ——— Страницы политики и согласия ——— */
.legal-hdr { padding: 22px var(--pad); background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.legal-hdr a { text-decoration: none; font-family: var(--f-display); font-weight: 700; letter-spacing: .08em; }
.legal { max-width: 780px; margin: 0 auto; padding: 48px 20px 96px; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.legal h1 { margin: 0 0 8px; font-family: var(--f-display); font-weight: 700; font-stretch: 85%; font-size: 38px; line-height: 1.1; color: var(--text); }
.legal h2 { margin: 36px 0 8px; font-family: var(--f-display); font-weight: 600; font-stretch: 90%; font-size: 21px; color: var(--text); }
.legal__date { color: var(--muted); font-size: 14px; }
.legal a { color: var(--text); }

/* ——— Анимации ——— */
@keyframes drift { from { transform: scale(1.01) translateX(0); } to { transform: scale(1.06) translateX(-1.2%); } }
@keyframes ambientSweep { 0% { background-position: 135% 0; } 34% { background-position: -35% 0; } 100% { background-position: -35% 0; } }
@keyframes sweepA { from { background-position: 135% 0; } to { background-position: -35% 0; } }
@keyframes sweepB { from { background-position: 135% 0; } to { background-position: -35% 0; } }
@keyframes textSheen { 0% { background-position: 100% 0; } 34% { background-position: 0% 0; } 100% { background-position: 0% 0; } }
@keyframes ctaSheen { 0% { background-position: 120% 0; } 28% { background-position: -20% 0; } 100% { background-position: -20% 0; } }
@keyframes burst { from { transform: translate(-50%,-50%) scale(.15); opacity: .95; } to { transform: translate(-50%,-50%) scale(1); opacity: 0; } }
@keyframes glowA { 0% { text-shadow: 0 0 0 rgba(var(--accent-rgb),0); } 30% { text-shadow: 0 0 28px rgba(var(--accent-rgb),.6); } 100% { text-shadow: 0 0 0 rgba(var(--accent-rgb),0); } }
@keyframes glowB { 0% { text-shadow: 0 0 0 rgba(var(--accent-rgb),0); } 30% { text-shadow: 0 0 28px rgba(var(--accent-rgb),.6); } 100% { text-shadow: 0 0 0 rgba(var(--accent-rgb),0); } }
@keyframes riseIn { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fadeRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes carOn { 0% { opacity: 0; filter: brightness(.1); } 35% { opacity: 1; } 100% { opacity: 1; filter: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulseDef { 0% { box-shadow: 0 0 0 0 rgba(var(--bad-rgb),.6); } 70% { box-shadow: 0 0 0 12px rgba(var(--bad-rgb),0); } 100% { box-shadow: 0 0 0 0 rgba(var(--bad-rgb),0); } }
@keyframes pulseAcc { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb),.6); } 70% { box-shadow: 0 0 0 12px rgba(var(--accent-rgb),0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb),0); } }
.still *, .is-concept * { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ============ Планшет ============ */
/* Узкий ноутбук: подпись у логотипа и слово «Без звука» прячем, меню — в бургер до 1199 px */
@media (max-width: 1319px) { .hdr__sub, .snd__txt { display: none; } .snd { padding: 0; width: 44px; justify-content: center; } }
@media (max-width: 1199px) {
  .hdr__nav { display: none; }
  .hdr__burger { display: inline-flex; }
  .mnav { position: absolute; left: 0; right: 0; top: 100%; padding: 8px var(--pad) 20px; background: var(--bg-deep); border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 40px -20px rgba(0,0,0,.7); flex-direction: column; }
  .hdr.is-open .mnav { display: flex; }
  .mnav a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 20px; color: var(--text); }
  .mnav a:last-child { border-bottom: 0; }
  .mnav__phone { font-family: var(--f-mono); color: var(--accent) !important; }
}
@media (max-width: 1099px) {
  .hdr__nav { display: none; }
  .hdr__sub, .snd__txt { display: none; }
  .snd { padding: 0; width: 44px; justify-content: center; }
  .hdr__burger { display: inline-flex; }
  .mnav { position: absolute; left: 0; right: 0; top: 100%; padding: 8px var(--pad) 20px; background: var(--bg-deep); border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 40px -20px rgba(0,0,0,.7); flex-direction: column; }
  .hdr.is-open .mnav { display: flex; }
  .mnav a { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 20px; color: var(--text); }
  .mnav a:last-child { border-bottom: 0; }
  .mnav__phone { font-family: var(--f-mono); color: var(--accent) !important; }

  .hero__stage { height: auto; display: flex; flex-direction: column; }
  .hero__head { order: 1; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 44px; }
  .hero__side { padding-top: 0; max-width: 620px; }
  /* Заголовок → машина → описание: машина целиком видна на первом экране */
  .hero--stage .hero__head { display: contents; }
  .hero--stage .hero__main { order: 1; position: relative; z-index: 2; padding: 44px var(--pad) 0; }
  .hero--stage .hero__side { order: 3; position: relative; z-index: 2; padding: 0 var(--pad); margin-top: 8px; }
  .hero--stage .hero__stage { height: auto; background: linear-gradient(180deg, var(--hero-bg, var(--bg-deep)) 0, var(--hero-bg, var(--bg-deep)) calc(100% - 70px), var(--bg) 100%); }
  .hero--stage .hero__imgbox { order: 2; position: relative; left: auto; bottom: auto; transform: translate3d(0, var(--py, 0px), 0); width: 100%; height: auto; aspect-ratio: 1260 / 596; margin-top: -10px; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 24%, #000 72%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 24%, #000 72%, transparent 100%); }
  body.bar-on .totop { bottom: 100px; }
  .hero--cover .hero__head { padding-bottom: 180px; }
  .hero--cover .hero__fade { background: linear-gradient(180deg, rgba(4,5,6,.86) 0%, rgba(4,5,6,.62) 50%, rgba(28,31,35,.9) 85%, var(--bg) 100%); }
  .calc { margin-top: -56px; }
  .calc__top { flex-direction: column; gap: 6px; }
  .calc__grid { grid-template-columns: 260px minmax(0, 1fr); gap: 24px 28px; }
  .calc__sum { grid-column: 1 / -1; padding: 20px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.08); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 4px 24px; }
  .calc__for { grid-column: 1; }
  .calc__price, .calc__empty, .calc__pkg { grid-column: 1; min-height: 0; }
  .calc__cta { grid-column: 2; grid-row: 1 / span 2; padding: 0 28px; }

  .mats { flex-direction: column; align-items: stretch; gap: 16px; }
  .mats__t { max-width: none; }

  .sec { padding-top: 80px; padding-bottom: 80px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .pkgs, .works { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(300px, 46%); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--pad) * -1); padding: 6px var(--pad) 14px; scroll-padding: 0 var(--pad); scrollbar-width: thin; scrollbar-color: var(--line-3) transparent; }
  .pkg, .work { scroll-snap-align: start; }
  .pkg:hover { transform: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .contacts { grid-template-columns: minmax(0, 1fr); }
  .lead-form { max-width: 620px; }
  .ftr { padding-bottom: 110px; }
  .ftr__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__bot { flex-direction: column; gap: 10px; }
  .studio { min-height: 560px; padding-top: 120px; }
  .studio__in { gap: 32px; }
}
@media (max-width: 999px) {
  .ba__tag { top: 16px; bottom: auto; }
  .ba__tag--l { left: 16px; }
  .ba__tag--r { right: 16px; }
  .ptable-seg { display: block; }
  .ptable__row { grid-template-columns: minmax(0, 1fr) auto; min-height: 68px; }
  .ptable__row--head { display: none; }
  .ptable__cell:not(.is-cur) { display: none; }
  .ptable__cell.is-cur { background: none; }
  .ptable__name { padding: 14px 18px; }
  .ptable__cell { padding: 0 18px; font-size: 16px; }
}

/* ============ Телефон ============ */
@media (max-width: 699px) {
  body { font-size: 15px; }
  .strip { font-size: 11px; gap: 8px; padding: 7px 12px; }
  .strip__long { display: none; }
  .strip__short { display: inline; }
  :root { --hdr-h: 64px; }
  .hdr__in { gap: 10px; }
  .hdr__logo { gap: 10px; }
  .logo-ph { height: 38px; padding: 0 12px; font-size: 10px; letter-spacing: .06em; }
  .logo-mark { width: 28px; height: 28px; }
  .hdr__name { font-size: 19px; letter-spacing: .12em; }
  .hdr__logo--wide .hdr__logo-img { height: calc(var(--logo-h, 58px) * .8); }
  .hdr__name { overflow: hidden; text-overflow: ellipsis; }
  .hdr__name--long { font-size: 16px; letter-spacing: .03em; }
  .hdr__sub { display: none; }
  .hdr__phone, .snd__txt, .hdr__cta { display: none; }
  .hdr__call { display: inline-flex; }
  .hdr__actions { gap: 8px; }
  .snd { padding: 0; width: 44px; justify-content: center; }

  .hero { padding-bottom: 40px; }
  .hero__head { padding-top: 30px; gap: 16px; }
  .hero--stage .hero__main { padding-top: 26px; }
  .hero--stage .hero__side { gap: 14px; }
  .hero__main { gap: 14px; }
  .kicker { font-size: 12px; }
  .hero__title { font-size: calc(38px * var(--h-scale)); gap: 2px; letter-spacing: -.03em; }
  .hero__lead { font-size: 16px; }
  .hero__rating { font-size: 15px; flex-wrap: wrap; gap: 6px 10px; }
  .hero__badges { gap: 8px 16px; font-size: 13px; }
  .hero--stage .hero__imgbox { width: 108%; margin-left: -4%; margin-top: -4px; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 16%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 16%, #000 88%, transparent 100%); }
  .hero--cover .hero__head { padding-bottom: 120px; }
  .calc { margin: 14px 12px 0; padding: 20px 16px 20px; gap: 16px; }
  .calc__h { font-size: 21px; }
  .calc__note { font-size: 13px; }
  .calc__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .cls-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .cls-btn { min-height: 64px; padding: 8px 8px; justify-content: center; text-align: center; }
  .cls-btn__t { align-items: center; }
  .cls-btn__t b { font-size: 14px; }
  .cls-btn__t small { font-size: 10.5px; line-height: 1.25; }
  .cls-btn__dot { display: none; }
  .chip { min-height: 42px; padding: 0 13px; font-size: 14px; }
  .calc__sum { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding-top: 16px; }
  .calc__price { font-size: 38px; min-height: 48px; }
  .calc__cta { margin-top: 8px; padding: 0 16px; height: 54px; }

  .mats { padding: 24px var(--pad); }
  .mats__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .mats__i { font-size: 13px; padding: 8px 10px; border-right: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .mats__i:nth-child(odd) { border-right: 1px solid var(--line); }
  .mats__i:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }

  .sec { padding-top: 64px; padding-bottom: 64px; gap: 28px; }
  .sec__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sec__aside { align-items: stretch; align-self: stretch; }
  .h2 { font-size: calc(32px * var(--h-scale)); letter-spacing: -.025em; }
  .h3 { font-size: calc(21px * var(--h-scale)); }
  .sec__lead { font-size: 16px; }
  .seg { display: flex; width: 100%; }
  .seg button { flex: 1; padding: 0 6px; font-size: 13px; }
  .pkgs, .works { grid-auto-columns: 86%; gap: 12px; }
  .pkg { padding: 22px 20px; }
  .pkg__name { font-size: calc(26px * var(--h-scale)); }
  .pkg__now { font-size: 32px; }
  .pkg__desc { min-height: 0; }

  .ptable__svc { font-size: 16px; }
  .ptable__desc { font-size: 13px; }

  .ba { aspect-ratio: 4 / 3; border-radius: calc(var(--r) * 1.5); }
  /* Машина целиком, как на компьютере: снимок по ширине, по краям чёрное поле — там подписи-указатели */
  .ba__img { top: calc(37.5cqw - 23.92cqw); bottom: auto; height: 47.84cqw; object-fit: cover; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 84%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 84%, transparent 100%); }
  .ba__note { top: calc(50% + (var(--y) - 50) * .638%) !important; }
  .ba { container-type: inline-size; }
  .ba__dot { left: -5px; top: -5px; width: 10px; height: 10px; border-width: 2px; }
  /* Раскладка подписей на телефоне — из поля "m" у каждой подписи в niche.json (в долях ширины фото, cqw), чтобы плашки не наезжали друг на друга */
  .ba__note { --len2: var(--m-len, calc(var(--len) * .5)); }
  .ba__line { height: var(--len2); top: auto; bottom: auto; }
  .ba__note--m-up .ba__line { top: auto; bottom: 10px; background: linear-gradient(180deg, rgba(var(--bad-rgb),0), var(--bad)); }
  .ba__note--m-down .ba__line { bottom: auto; top: 10px; background: linear-gradient(180deg, var(--bad), rgba(var(--bad-rgb),0)); }
  .ba__layer--after .ba__note--m-up .ba__line { background: linear-gradient(180deg, rgba(var(--accent-rgb),0), var(--accent)); }
  .ba__layer--after .ba__note--m-down .ba__line { background: linear-gradient(180deg, var(--accent), rgba(var(--accent-rgb),0)); }
  .ba__text { left: var(--m-shift, -46px); top: auto; bottom: auto; padding: 4px 7px; border-radius: calc(var(--r) * .75); font-size: 10px; line-height: 1.25; white-space: normal; width: max-content; max-width: var(--m-w, 96px); }
  .ba__note--m-up .ba__text { top: auto; bottom: calc(var(--len2) + 11px); }
  .ba__note--m-down .ba__text { bottom: auto; top: calc(var(--len2) + 11px); }
  .ba__tag { display: none; }
  .ba__knob { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .ba__foot { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: -10px; }
  .ba__legend { gap: 16px; font-size: 13px; }
  .works-head { flex-direction: column; gap: 6px; margin-top: 16px; }
  .work__title { font-size: 19px; }

  .why { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .why__t { font-size: 19px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .step { padding-top: 18px; }

  .rev-score__n { font-size: 76px; }
  .rev-main { padding: 44px 0 24px; }
  .rev-main__q { top: -22px; font-size: 90px; }
  .rev-main blockquote { font-size: 20px; }
  .rev-main figcaption { flex-wrap: wrap; }
  .studio { min-height: 620px; padding: 96px var(--pad) 44px; }
  .studio__media::after { background: linear-gradient(180deg, var(--bg-alt) 0%, rgba(5,6,7,.1) 18%, rgba(5,6,7,.2) 40%, rgba(5,6,7,.88) 72%, rgba(5,6,7,.96) 100%); }
  .studio__p { font-size: 16px; }
  .studio__facts { gap: 14px; }
  .studio__facts dt { font-size: 21px; }
  .studio__facts dd { font-size: 12px; }
  .ftr__top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .revs__more { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .rev + .rev { padding-left: 0; border-left: 0; padding-top: 24px; border-top: 1px solid var(--line-2); }
  .faq__q { font-size: 17px; min-height: 64px; padding: 16px 0; }
  .faq__a p { font-size: 16px; }

  .contacts__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; font-size: 16px; }
  .map { height: 240px; }
  .lead-form { padding: 22px 18px; }
  .lead-form__t { font-size: 21px; }

  .bar { bottom: max(10px, env(safe-area-inset-bottom)); width: calc(100% - 20px); max-width: none; padding: 10px 10px 10px 16px; gap: 10px; }
  .bar__edit { display: none; }
  .bar__k { font-size: 10px; letter-spacing: .08em; }
  .bar__p { font-size: 20px; }
  body.bar-on .totop { bottom: 88px; }
  body.cookie-on .totop { opacity: 0; pointer-events: none; }
  .totop { right: 12px; width: 46px; height: 46px; }
  .cookie { left: 10px; right: 10px; bottom: 10px; max-width: none; }
  .legal h1 { font-size: 30px; }
}

/* ═══════════ Блоки из редактора ═══════════ */

/* ——— Оформление блока (layout[i].style) ——— */
section[data-bg="base"] { background: var(--bg); }
section[data-bg="alt"] { background: var(--bg-alt); }
section[data-bg="deep"] { background: var(--bg-deep); }
section[data-bg="glow"] { background: radial-gradient(900px 420px at 50% 0%, rgba(255,255,255,.05), rgba(255,255,255,0) 70%), var(--bg); }
section[data-bg="accent"] { background: radial-gradient(760px 420px at 88% 0%, rgba(var(--accent-rgb),.10), rgba(var(--accent-rgb),0) 70%), radial-gradient(620px 380px at 6% 100%, rgba(var(--accent-rgb),.06), rgba(var(--accent-rgb),0) 70%), var(--bg); }
section[data-bg="image"] { background: linear-gradient(rgba(4,5,6,var(--bs-ov, .7)), rgba(4,5,6,var(--bs-ov, .7))), var(--bs-img) center / cover no-repeat, var(--bg-deep); }
section.sec[data-pad="s"] { padding-top: 64px; padding-bottom: 64px; }
section.sec[data-pad="l"] { padding-top: 160px; padding-bottom: 160px; }
section[data-align="center"] .sec__head { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
section[data-align="center"] .sec__head .sec__lead { max-width: 620px; }
section[data-align="center"] .sec__titles { align-items: center; text-align: center; }
.sec.sec--joined { padding-bottom: 0; }
.sec.sec--join { padding-top: 44px; }

/* ——— Фотогалерея ——— */
.gal { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 14px; }
.gal__i { margin: 0; position: relative; display: flex; flex-direction: column; gap: 10px; }
.gal__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: calc(var(--r) * 1.5); overflow: hidden; background: var(--panel); aspect-ratio: 4 / 3; cursor: zoom-in; }
.gal__btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--ease-expo); }
.gal__btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }
.gal__btn:hover img { transform: scale(1.045); }
.gal__cap { font-size: 14px; color: var(--muted); }
.gal--mosaic { grid-auto-flow: dense; }
.gal--mosaic .gal__i:first-child { grid-column: span 2; grid-row: span 2; gap: 0; }
.gal--mosaic .gal__i:first-child .gal__btn { aspect-ratio: auto; height: 100%; }
.gal--mosaic .gal__i:first-child .gal__cap { position: absolute; left: 16px; bottom: 14px; padding: 6px 12px; border-radius: var(--r); background: rgba(10,11,13,.72); color: var(--text-2); pointer-events: none; }
.gal--strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 8px; scroll-padding: 0 var(--pad); scrollbar-width: thin; scrollbar-color: var(--line-4) transparent; }
.gal--strip .gal__i { flex: 0 0 min(520px, 80vw); scroll-snap-align: start; }

/* Просмотр фото на весь экран */
.lbx { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 64px 72px; background: rgba(4,5,6,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s ease; }
.lbx.is-on { opacity: 1; }
.lbx__img { max-width: 100%; max-height: 100%; border-radius: var(--r); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); transform: scale(.97); transition: transform .45s var(--ease-expo); }
.lbx.is-on .lbx__img { transform: none; }
.lbx__cap { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; font-size: 15px; color: var(--text-2); }
.lbx__b { position: absolute; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(24,27,31,.7); color: var(--text); display: flex; align-items: center; justify-content: center; }
.lbx__b:hover { border-color: rgba(var(--accent-rgb),.7); color: var(--accent); }
.lbx__x { top: 16px; right: 16px; }
.lbx__p { left: 16px; top: 50%; margin-top: -24px; }
.lbx__n { right: 16px; top: 50%; margin-top: -24px; }
.lbx__p .ic { transform: scaleX(-1); }

/* ——— Галерея услуг ——— */
.scards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 18px; }
.scard { position: relative; display: flex; flex-direction: column; border-radius: calc(var(--r) * 1.5); overflow: hidden; background: var(--panel); border: 1px solid var(--line-2); transition: border-color .3s ease, transform .5s var(--ease-expo), box-shadow .5s var(--ease-expo); }
.scard:hover { border-color: rgba(var(--accent-rgb),.45); transform: translateY(-4px); box-shadow: 0 30px 60px -34px rgba(0,0,0,.9); }
.scard__ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel-2); }
.scard__ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-expo); }
.scard:hover .scard__ph img { transform: scale(1.05); }
.scard__ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,5,6,0) 55%, rgba(4,5,6,.55) 100%); pointer-events: none; }
.scard__ph-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--dim-2); }
.scard__tag { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 4px 10px; border-radius: calc(var(--r) * .75); background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 600; }
.scard__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.scard__t { margin: 0; font-family: var(--f-display); font-weight: var(--h-weight); font-size: 22px; line-height: 1.2; letter-spacing: -.015em; }
.scard__p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); flex: 1; }
.scard__foot { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.scard__price { font-family: var(--f-num); font-weight: 700; font-size: 20px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.scard__btn { height: 40px; padding: 0 14px; font-size: 14px; }
.scard__btn .ic { transition: transform .3s var(--ease-out); }
.scard__btn:hover { border-color: var(--accent); color: var(--accent); }
.scard__btn:hover .ic { transform: translateX(3px); }

/* ——— Текст и фото ——— */
.tm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 72px; }
.tm--left .tm__media { order: -1; }
.tm--solo { grid-template-columns: minmax(0, 780px); }
.tm__txt { display: flex; flex-direction: column; gap: 16px; }
.tm__p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-2); }
.tm__pts { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tm__pts li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.tm__pts .ic { margin-top: 2px; }
.tm__btn { align-self: flex-start; margin-top: 12px; }
.tm__media { position: relative; border-radius: calc(var(--r) * 1.75); overflow: hidden; aspect-ratio: 5 / 4; background: var(--panel); }
.tm__img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.08) translate3d(0, var(--ty, 0px), 0); }
.tm__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); pointer-events: none; }

/* ——— Призыв к действию ——— */
.ctab { position: relative; overflow: hidden; padding: 128px var(--pad); background: radial-gradient(800px 400px at 50% 120%, rgba(var(--accent-rgb),.16), rgba(var(--accent-rgb),0) 70%), var(--bg-deep); text-align: center; }
.ctab__bg { position: absolute; inset: 0; }
.ctab__img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .7; transform: scale(1.1) translate3d(0, var(--ty, 0px), 0); }
.ctab--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(4,5,6,.55) 0%, rgba(4,5,6,.8) 100%), radial-gradient(700px 360px at 50% 100%, rgba(var(--accent-rgb),.18), rgba(var(--accent-rgb),0) 70%); }
.ctab__in { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.ctab__t { font-size: calc(54px * var(--h-scale)); }
.ctab__p { margin: 0; max-width: 620px; font-size: 18px; line-height: 1.55; color: var(--text-2); }
.ctab__btns { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ctab .btn--accent { box-shadow: 0 18px 40px -18px rgba(var(--accent-rgb),.75); }

/* ——— Цифры ——— */
.stats { margin: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 24px; }
.stats__i { padding-top: 22px; border-top: 1px solid var(--line-3); display: flex; flex-direction: column; gap: 8px; }
.stats dt { font-family: var(--f-display); font-weight: var(--h-weight); font-size: calc(56px * var(--h-scale)); line-height: 1; letter-spacing: -.035em; color: var(--text); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.stats__i:first-child dt { color: var(--accent); }
.stats dd { margin: 0; font-size: 15px; line-height: 1.45; color: var(--muted); }

/* ——— Видео ——— */
.vid { position: relative; border-radius: calc(var(--r) * 1.75); overflow: hidden; background: var(--bg-deep); aspect-ratio: 16 / 9; box-shadow: 0 40px 90px -50px rgba(0,0,0,.95); }
.vid__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }

/* ——— Команда ——— */
.team { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 20px; }
.team__i { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.team__ph { position: relative; aspect-ratio: 4 / 5; border-radius: calc(var(--r) * 1.5); overflow: hidden; background: linear-gradient(160deg, var(--panel-2), var(--bg-3)); }
.team__ph img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(.25); transition: filter .6s ease, transform 1.1s var(--ease-expo); }
.team__i:hover .team__ph img { filter: none; transform: scale(1.04); }
.team__ini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 600; font-size: 72px; color: rgba(var(--accent-rgb),.55); }
.team figcaption { display: flex; flex-direction: column; gap: 4px; }
.team__n { font-family: var(--f-display); font-weight: var(--h-weight); font-size: 21px; letter-spacing: -.015em; }
.team__r { font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.team__t { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ——— Бегущая строка ——— */
.mq { overflow: hidden; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq__track { display: flex; width: max-content; animation: mq var(--mq-dur, 38s) linear infinite; }
.mq:hover .mq__track { animation-play-state: paused; }
.mq__row { display: flex; align-items: center; flex-shrink: 0; }
.mq__i { padding: 0 28px; font-family: var(--f-display); font-weight: 500; font-size: 22px; letter-spacing: -.01em; color: var(--text-2); white-space: nowrap; }
.mq__sep { width: 9px; height: 9px; flex-shrink: 0; transform: rotate(45deg); border: 1.5px solid var(--accent); }
.mq--big { padding: 34px 0; }
.mq--big .mq__i { padding: 0 40px; font-weight: var(--h-weight); font-size: calc(48px * var(--h-scale)); letter-spacing: -.03em; text-transform: var(--h-case); color: var(--text); }
.mq--big .mq__i:nth-child(4n+3) { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.55); }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ——— Адаптив новых блоков ——— */
@media (max-width: 1099px) {
  .scards, .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .tm { gap: 48px; }
}
@media (max-width: 999px) {
  .tm { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .tm--left .tm__media { order: 0; }
  .gal { grid-template-columns: repeat(min(var(--cols, 3), 2), minmax(0, 1fr)); }
  .ctab { padding-top: 96px; padding-bottom: 96px; }
  section.sec[data-pad="l"] { padding-top: 112px; padding-bottom: 112px; }
}
@media (max-width: 699px) {
  .sec.sec--join { padding-top: 28px; }
  section.sec[data-pad="s"] { padding-top: 44px; padding-bottom: 44px; }
  section.sec[data-pad="l"] { padding-top: 88px; padding-bottom: 88px; }
  .team { grid-template-columns: minmax(0, 1fr); }
  /* Карточки услуг на телефоне — лента со свайпом */
  .scards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 6px; scroll-padding: 0 var(--pad); scrollbar-width: none; }
  .scards::-webkit-scrollbar { display: none; }
  .scard { flex: 0 0 84%; scroll-snap-align: start; }
  .gal { gap: 10px; }
  .gal--mosaic .gal__i:first-child { grid-column: 1 / -1; grid-row: auto; }
  .gal--mosaic .gal__i:first-child .gal__btn { aspect-ratio: 4 / 3; height: auto; }
  .stats dt { font-size: calc(40px * var(--h-scale)); }
  .ctab { padding-top: 80px; padding-bottom: 80px; }
  .ctab__t { font-size: calc(34px * var(--h-scale)); }
  .ctab__btns { width: 100%; flex-direction: column; }
  .ctab__btns .btn { width: 100%; }
  .mq__i { font-size: 18px; padding: 0 20px; }
  .mq--big .mq__i { font-size: calc(30px * var(--h-scale)); padding: 0 24px; }
  .lbx { padding: 56px 12px; }
  .lbx__p, .lbx__n { top: auto; bottom: 14px; margin-top: 0; }
  .lbx__cap { bottom: 74px; padding: 0 16px; }
}
