/* vannitoa remont — сайт ремонта ванных. Фото настоящих работ, 3D-разбор этапов, конфигуратор. */
:root {
  --bg: #f7f7f4; --surface: #ecedea; --ink: #111314; --ink2: #4b5053; --ink3: #5f6467; --line: rgba(17, 19, 20, .12);
  --night: #0f1112; --night2: #17191b; --nink: #eeefec; --nink2: #a3a8aa; --nline: rgba(238, 239, 236, .12);
  --accent: #0072ce; --accent-l: #6cb4f5; --wa: #25d366;
  --fd: "Ysabeau", "Ysabeau Office", Optima, Candara, sans-serif; --ft: "Ysabeau Office", "Ysabeau", Optima, Candara, sans-serif;
  --g: clamp(20px, 3.6vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1); --curtain: cubic-bezier(.7, 0, .2, 1);
  --stage-bg: #f7f7f4; --stage-ink: #111314;
  --sec: clamp(88px, 13vh, 150px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--ft); font-weight: 420; font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; font-kerning: normal; }
html.locked, html.locked body { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--fd); font-weight: 380; letter-spacing: -.012em; margin: 0; }
h1, h2, h3, .craft-list .cr-l, .big-link b { text-wrap: balance; }
p, figcaption { text-wrap: pretty; }
[tabindex="-1"]:focus { outline: none; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--nink); }
.eyebrow, .meta { font-family: var(--ft); font-size: 14px; font-weight: 560; line-height: 1.4; color: var(--ink3); }

/* ── шторка и вступление: знак раскрывается и переезжает в шапку ── */
#wipe { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 100; pointer-events: none; }
#intro { position: fixed; inset: 0; z-index: 101; pointer-events: none; }
html.js #intro { background: var(--night); }
#intro.clear { background: transparent; }
#intro .brand-word { position: absolute; left: 50%; top: 50%; width: clamp(200px, 22vw, 340px); height: auto; color: var(--nink); --brand-accent: var(--accent-l); transform: translate(-50%, -50%); transform-origin: 0 0; clip-path: inset(0 0 100% 0); animation: introIn 1.1s var(--curtain) .15s forwards; }
@keyframes introIn { to { clip-path: inset(0 0 -10% 0); } }
.intro-wait { position: absolute; left: 50%; top: calc(50% + 96px); width: min(280px, 80vw); transform: translateX(-50%); text-align: center; color: var(--nink); font-size: 14px; letter-spacing: .03em; transition: opacity .2s; }
.intro-line { display: block; width: 64px; height: 2px; margin: 16px auto; overflow: hidden; background: #ffffff25; }
.intro-line::after { content: ""; display: block; height: 100%; width: 60%; background: var(--accent-l); animation: loadingLine 1.2s ease-in-out infinite alternate; }
@keyframes loadingLine { from { transform: translateX(-100%); } to { transform: translateX(170%); } }
.intro-skip { pointer-events: auto; color: inherit; border: 1px solid #ffffff60; background: transparent; padding: 10px 18px; min-height: 44px; cursor: pointer; }
.intro-skip[hidden] { display: none; }
#intro.leaving .intro-wait { opacity: 0; pointer-events: none; }
#intro.leaving .intro-skip { pointer-events: none; }
html.no-js #wipe, html.no-js #intro { display: none; }

/* ── ссылка «к содержимому» для клавиатуры ── */
.skip-link { position: fixed; left: var(--g); top: 8px; z-index: 120; padding: 12px 16px; border-radius: 2px; background: var(--ink); color: var(--bg); font-weight: 560; font-size: 15px; line-height: 1.3; text-decoration: none; transform: translateY(-160%); transition: transform .3s var(--ease); }
.skip-link:focus { transform: none; }

/* ── шапка ── */
#bar {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 18px var(--g); color: var(--nink);
  transition: color .5s ease, background .5s ease, transform .7s var(--ease);
}
#bar.paper { color: var(--ink); }
#bar.solid { background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
#bar.solid:not(.paper) { background: color-mix(in srgb, var(--night) 84%, transparent); }
#bar.hide { transform: translateY(-110%); }
#bar.menu-open { color: var(--nink); background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand { justify-self: start; display: inline-flex; line-height: 0; text-decoration: none; }
.brand-logo { display: block; height: 34px; width: auto; --brand-accent: var(--accent-l); }
#bar.paper:not(.menu-open) .brand-logo { --brand-accent: var(--accent); }
html.js .brand-logo { opacity: 0; }
html.js.ready .brand-logo { opacity: 1; }
.nav { display: flex; gap: 30px; font-size: 15px; font-weight: 520; }
.nav a { text-decoration: none; position: relative; padding: 4px 0; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a.on::after { transform: scaleX(1); transform-origin: left; }
.bar-end { justify-self: end; display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 520; }
.lang { display: flex; gap: 2px; }
.lang button, .lang a { display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; padding: 4px 6px; cursor: pointer; opacity: .62; font-weight: 560; text-decoration: none; transition: opacity .3s; }
.lang [aria-pressed="true"], .lang [aria-current], html[lang="et"] .lang [data-lang="et"], html[lang="ru"] .lang [data-lang="ru"] { opacity: 1; }
.lang button:hover, .lang a:hover { opacity: 1; }
.wa { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 14px 0 11px; border-radius: 2px; border: 1px solid color-mix(in srgb, currentColor 28%, transparent); text-decoration: none; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; transition: background .3s, border-color .3s, color .3s; }
.wa svg { width: 18px; height: 18px; color: var(--wa); flex: none; }
.wa:hover { background: var(--wa); border-color: var(--wa); color: #0b1f12; }
.wa:hover svg { color: #0b1f12; }
.wa-s { display: none; }
.menu-btn { display: none; align-items: center; gap: 10px; background: none; border: 0; padding: 6px 0; cursor: pointer; font-size: 15px; font-weight: 560; }
.menu-btn i { position: relative; width: 22px; height: 8px; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
.menu-btn i::before { top: 0; } .menu-btn i::after { bottom: 0; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-3.25px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 45; background: var(--night); color: var(--nink); display: flex; flex-direction: column; padding: 84px var(--g) calc(30px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
.menu[hidden] { display: none; }
.menu nav { display: grid; margin-top: auto; }
.menu nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--nline); text-decoration: none; font-family: var(--fd); font-weight: 340; font-size: clamp(28px, 9vw, 40px); line-height: 1.05; opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .8s var(--ease); }
.menu.open nav a { opacity: 1; transform: none; }
.menu.open nav a:nth-child(2) { transition-delay: .05s; } .menu.open nav a:nth-child(3) { transition-delay: .1s; } .menu.open nav a:nth-child(4) { transition-delay: .15s; } .menu.open nav a:nth-child(5) { transition-delay: .2s; } .menu.open nav a:nth-child(6) { transition-delay: .25s; } .menu.open nav a:nth-child(7) { transition-delay: .3s; } .menu.open nav a:nth-child(8) { transition-delay: .35s; }
.menu-foot { display: grid; gap: 0; margin-top: 26px; font-size: 17px; color: var(--nink2); justify-items: start; }
.menu-foot a { text-decoration: none; padding: 8px 0; }
@media (max-height: 820px) { .menu nav a { font-size: 30px; padding: 9px 0; } .menu-foot { margin-top: 16px; } }
@media (max-height: 700px) { .menu nav a { font-size: 28px; } }
.wa-big { display: inline-flex; align-items: center; gap: 10px; color: var(--nink); font-size: 22px; font-family: var(--fd); }
.wa-big svg { width: 24px; height: 24px; color: var(--wa); }

/* ── кнопки и ссылки ── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 2px; background: var(--ink); color: var(--bg); text-decoration: none; font-family: var(--ft); font-weight: 560; font-size: 16px; cursor: pointer; border: 0; transition: background .3s ease, color .3s ease; }
.btn:hover { background: var(--accent); }
.btn.wide { width: 100%; }
.link { position: relative; display: inline-block; text-decoration: none; font-weight: 560; font-size: 16px; padding: 4px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .45s var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }
.link.small { font-size: 15px; }

/* ── история ── */
#story { position: relative; height: 780vh; background: var(--night); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; overflow: clip; background: var(--stage-bg); color: var(--stage-ink); }
#room { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--stage-bg) 0%, color-mix(in srgb, var(--stage-bg) 72%, transparent) 28%, transparent 54%); opacity: var(--shade, 0); }

/* первый экран: текст слева, фото справа; при прокрутке фото раскрывается на весь экран */
.hero { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-copy { position: absolute; left: var(--g); top: 0; bottom: 0; width: min(800px, calc(58vw - var(--g) * 2.4)); display: flex; flex-direction: column; justify-content: center; gap: 26px; padding-top: 60px; pointer-events: auto; opacity: var(--hc, 1); transform: translateY(calc((1 - var(--hc, 1)) * -40px)); }
.hero:not(.in) .hero-copy { pointer-events: none; }
.hero-h { font-size: clamp(48px, 6.2vw, 108px); line-height: .96; letter-spacing: -.02em; font-weight: 330; color: var(--ink); }
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.hero.in .ln > span, .finale.in .ln > span { transform: none; }
.hero.in .ln:nth-child(2) > span { transition-delay: .08s; }
.hero-p { font-size: 19px; line-height: 1.55; color: var(--ink2); max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
/* текст первого экрана виден с первого кадра (под шторкой из плитки); появление — только сдвигом */
html.js .hero-copy .meta, html.js .hero-p, html.js .hero-actions { transform: translateY(18px); transition: transform 1.2s var(--ease); }
html.js .hero.in .hero-copy .meta { transform: none; transition-delay: .25s; }
html.js .hero.in .hero-p { transform: none; transition-delay: .35s; }
html.js .hero.in .hero-actions { transform: none; transition-delay: .45s; }
.hero-photo { position: absolute; right: var(--g); top: 92px; bottom: 54px; width: 42vw; pointer-events: none; }
.hero-photo figcaption { position: absolute; left: 0; bottom: -30px; font-size: 14px; font-weight: 520; color: var(--ink3); opacity: var(--hc, 1); }
/* слой фото на всю сцену; видимая часть — clip-path из JS (рамка → весь экран) */
.hero-img { position: absolute; inset: 0; z-index: -1; clip-path: inset(var(--ct, 92px) var(--cr, 56px) var(--cb, 54px) var(--cl, 55vw)); opacity: var(--ho, 1); will-change: clip-path; }
/* шторка цвета бумаги над рамкой фото: уходит вниз (только transform), само фото отрисовано сразу */
html.js:not(.no-webgl) .hero-photo::before { content: ""; position: absolute; inset: -1px; background: var(--stage-bg); transform-origin: 50% 100%; transition: transform 1.4s var(--curtain); }
html.js .hero.shown .hero-photo::before { transform: scaleY(0); }
/* настоящее фото: JS держит его «cover» внутри текущей рамки — от рамки до всего экрана */
.hero-img img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; transform-origin: 0 0; will-change: transform; }
.cue { position: absolute; left: var(--g); bottom: clamp(22px, 4vh, 40px); display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 14px; font-weight: 520; color: var(--ink3); opacity: 0; transition: opacity .8s ease 1s; pointer-events: auto; }
.hero.in .cue { opacity: var(--hc, 1); }
.cue i { position: relative; width: 1px; height: 38px; background: var(--line); overflow: hidden; }
.cue i::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; background: var(--ink); animation: cue 1.8s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* перемотка */
.rewind { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; padding: 0 var(--g); text-align: center; }
.rewind::before { content: ""; position: absolute; inset: 0; background: rgba(15, 17, 18, calc(var(--rw, 0) * .38)); }
.rewind p { position: relative; color: var(--nink); text-shadow: 0 2px 28px rgba(15, 17, 18, .6); font-family: var(--fd); font-weight: 400; font-size: clamp(36px, 5.4vw, 88px); line-height: 1; letter-spacing: -.02em; opacity: var(--rw, 0); transform: scale(calc(.96 + var(--rw, 0) * .04)); filter: blur(calc((1 - var(--rw, 0)) * 8px)); }

/* этапы */
.steps { list-style: none; margin: 0; padding: 0; position: absolute; left: var(--g); top: 24vh; width: min(460px, 36vw); pointer-events: none; }
.step { position: absolute; left: 0; top: 0; width: 100%; }
.step h2 { font-size: clamp(36px, 3.8vw, 60px); line-height: 1; letter-spacing: -.015em; font-weight: 340; margin-bottom: 18px; }
.step p { font-size: 18px; line-height: 1.55; max-width: 32ch; color: color-mix(in srgb, var(--stage-ink) 72%, transparent); }
.step > * { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .9s var(--ease); }
.step.on > * { opacity: 1; transform: none; transition-delay: .22s; }
.step.on p { transition-delay: .3s; }
.step.past > * { opacity: 0; transform: translateY(-24px); transition-duration: .35s; transition-delay: 0s; }

/* настоящие фото к этапам */
.onsite { position: absolute; left: var(--g); bottom: 6vh; width: clamp(180px, 15vw, 240px); height: calc(clamp(180px, 15vw, 240px) * 4 / 3 + 80px); pointer-events: none; opacity: var(--oso, 0); transition: opacity .5s ease; }
.onsite-l { display: block; font-size: 13px; font-weight: 560; color: var(--ink3); }
.onsite figure { position: absolute; left: 0; top: 28px; width: 100%; }
.onsite img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; clip-path: inset(100% 0 0 0); transition: clip-path .9s var(--curtain); }
.onsite figcaption { margin-top: 10px; font-size: 13px; line-height: 1.4; font-weight: 520; color: var(--ink2); opacity: 0; transition: opacity .4s ease; }
.onsite figure.on img { clip-path: inset(0); transition-delay: .15s; }
.onsite figure.on figcaption { opacity: 1; transition-delay: .5s; }
.onsite figure.past img { clip-path: inset(0 0 100% 0); }

/* метки на 3D */
.tags { position: absolute; inset: 0; pointer-events: none; }
.tag3d { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 560; white-space: nowrap; color: var(--stage-ink); opacity: 0; transition: opacity .4s ease; will-change: transform; }
.tag3d::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, var(--accent)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot, var(--accent)) 25%, transparent); }
.tag3d span { padding: 4px 9px; background: color-mix(in srgb, var(--stage-bg) 82%, transparent); border-radius: 2px; }
.tag3d.on { opacity: 1; }

/* финал */
.finale { position: absolute; left: var(--g); bottom: clamp(40px, 10vh, 110px); pointer-events: none; max-width: 640px; }
.finale-h { font-family: var(--fd); font-size: clamp(72px, 11vw, 190px); line-height: .9; letter-spacing: -.03em; font-weight: 300; }
.finale > p:not(.finale-h) { margin-top: 18px; font-size: 19px; color: var(--nink); text-shadow: 0 1px 18px rgba(15, 17, 18, .7); opacity: 0; transform: translateY(18px); transition: opacity .8s ease .25s, transform 1s var(--ease) .25s; max-width: 30ch; }
.finale.in > p:not(.finale-h) { opacity: 1; transform: none; }

/* конфигуратор */
.studio { position: absolute; inset: 0; pointer-events: none; }
.studio-head { position: absolute; left: var(--g); top: 100px; width: max-content; max-width: min(640px, calc(100% - 2 * var(--g))); padding: 14px 18px 16px; border-radius: 2px; background: rgba(15, 17, 18, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .9s var(--ease); }
.studio-head h2 { font-size: clamp(40px, 4.6vw, 72px); line-height: 1; font-weight: 330; }
.studio .note { margin-top: 10px; font-size: 14px; color: var(--nink); max-width: 34ch; }
.panel { position: absolute; right: var(--g); top: calc(50% + 36px); width: min(400px, 32vw); max-height: calc(100svh - 160px); overflow: auto; overscroll-behavior: contain; transform: translate(calc(100% + 60px), -50%); transition: transform .9s var(--ease); display: grid; gap: 12px; padding: 18px 18px 0; background: rgba(15, 17, 18, .86); border: 1px solid var(--nline); border-radius: 2px; color: var(--nink); scrollbar-width: thin; }
.studio.on { pointer-events: auto; }
.studio.on .studio-head { opacity: 1; transform: none; }
.studio.on .panel { transform: translate(0, -50%); }
.grp { display: grid; gap: 8px; }
.lbl { font-size: 13px; font-weight: 560; color: var(--nink2); }
.sw { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.grp[data-key="wood"] .sw, .grp[data-key="metal"] .sw { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sw button { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; justify-items: start; padding: 0; background: none; border: 0; cursor: pointer; font-size: 12px; font-weight: 520; line-height: 1.2; text-align: left; color: var(--nink2); min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.sw i { width: 100%; aspect-ratio: 2.6; border-radius: 2px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: box-shadow .25s, transform .3s var(--ease); }
.sw button:hover i { transform: translateY(-2px); }
.sw button[aria-pressed="true"] { color: var(--nink); }
.sw button[aria-pressed="true"] i { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 0 0 2px var(--night), 0 0 0 3.5px var(--nink); }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(238, 239, 236, .22); border-radius: 2px; }
.seg button { min-height: 38px; background: none; border: 0; cursor: pointer; font-size: 14px; font-weight: 520; color: var(--nink2); transition: background .25s, color .25s; }
.seg button[aria-pressed="true"] { background: var(--nink); color: var(--ink); }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.tg { min-height: 38px; padding: 0 14px; border-radius: 2px; border: 1px solid rgba(238, 239, 236, .25); background: none; cursor: pointer; font-size: 13px; font-weight: 520; color: var(--nink2); transition: background .25s, color .25s, border-color .25s; }
.tg[aria-pressed="true"] { background: rgba(238, 239, 236, .14); color: var(--nink); border-color: rgba(238, 239, 236, .5); }
.views { display: flex; flex-wrap: wrap; gap: 6px; }
.views button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 2px; background: rgba(238, 239, 236, .07); cursor: pointer; font-size: 13px; font-weight: 520; color: var(--nink2); }
.views button[aria-pressed="true"] { background: rgba(238, 239, 236, .2); color: var(--nink); }
.panel .btn { background: var(--nink); color: var(--ink); }
.panel .btn:hover { background: var(--accent-l); }
.panel-cta { position: sticky; bottom: 0; display: grid; gap: 8px; margin: 0 -18px; padding: 12px 18px 16px; background: rgba(15, 17, 18, .96); border-top: 1px solid var(--nline); }
.panel-cta::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 30px; background: linear-gradient(to top, rgba(15, 17, 18, .96), rgba(15, 17, 18, 0)); opacity: 0; transition: opacity .3s; pointer-events: none; }
.panel.more .panel-cta::before { opacity: 1; }
.panel-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.panel-btns .btn { min-height: 48px; padding: 0 12px; font-size: 15px; }
.panel .btn.wa-btn { background: var(--wa); color: #0b1f12; }
.panel .btn.wa-btn:hover { background: #1ebe5b; }

/* пропустить сборку */
.skip { position: absolute; right: var(--g); bottom: clamp(24px, 5vh, 48px); z-index: 3; display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px; border-radius: 2px; border: 1px solid color-mix(in srgb, var(--stage-ink) 30%, transparent); background: color-mix(in srgb, var(--stage-bg) 72%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--stage-ink); font-size: 14px; font-weight: 560; cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .5s ease, transform .7s var(--ease), background .3s, color .3s, border-color .3s; }
.skip.on { opacity: 1; transform: none; pointer-events: auto; }
.skip:hover { background: var(--accent); border-color: var(--accent); color: var(--nink); }
.skip i { font-style: normal; transition: transform .5s var(--ease); }
.skip:hover i { transform: translateY(3px); }

/* шкала этапов */
.rail { position: absolute; z-index: 3; right: calc(var(--g) * .55); top: 50%; transform: translateY(-50%); height: 36vh; width: 1px; background: color-mix(in srgb, var(--stage-ink) 18%, transparent); opacity: var(--railo, 0); transition: opacity .4s; pointer-events: none; }
.rail:focus-within { opacity: 1; }
.rail.on button, .rail:focus-within button { pointer-events: auto; }
.rail button { position: absolute; left: -17px; width: 34px; height: 28px; margin-top: -14px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--stage-ink); }
.rail button:nth-child(1) { top: 0; } .rail button:nth-child(2) { top: 20%; } .rail button:nth-child(3) { top: 40%; } .rail button:nth-child(4) { top: 60%; } .rail button:nth-child(5) { top: 80%; } .rail button:nth-child(6) { top: 100%; }
.rail button::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 1px; margin-left: -3.5px; background: color-mix(in srgb, var(--stage-ink) 45%, transparent); transition: width .35s var(--ease), margin .35s var(--ease), background .3s; }
.rail button:hover::before, .rail button:focus-visible::before { width: 15px; margin-left: -7.5px; background: var(--stage-ink); }
.rail button:focus-visible { outline-offset: -2px; }
.rail button span { position: absolute; right: calc(100% + 4px); top: 50%; padding: 4px 9px; border-radius: 2px; background: color-mix(in srgb, var(--stage-bg) 86%, transparent); color: var(--stage-ink); font-size: 13px; font-weight: 560; line-height: 1.3; white-space: nowrap; opacity: 0; transform: translate(6px, -50%); transition: opacity .3s ease, transform .45s var(--ease); pointer-events: none; }
.rail button:hover span, .rail button:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.rail b { position: absolute; left: -4px; top: 0; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--accent); transform: translateY(calc(var(--railp, 0) * 36vh)); pointer-events: none; }

/* ── бегущая строка ── */
.marquee { overflow: hidden; padding: clamp(24px, 4.5vh, 48px) 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.mq-track { display: flex; align-items: center; width: max-content; will-change: transform; }
.mq-track span { display: inline-flex; align-items: center; gap: clamp(26px, 3.4vw, 54px); padding-right: clamp(26px, 3.4vw, 54px); font-family: var(--fd); font-weight: 300; font-size: clamp(52px, 8.4vw, 144px); line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.mq-track svg { width: .3em; height: .36em; flex: none; color: var(--ink); --brand-accent: var(--accent); }

/* ── подход ── */
.approach { display: grid; grid-template-columns: minmax(140px, 1fr) 4fr; gap: 24px; padding: calc(var(--sec) * 1.15) var(--g); }
.approach .eyebrow { padding-top: 14px; }
.fill { font-family: var(--fd); font-weight: 340; font-size: clamp(32px, 4.4vw, 74px); line-height: 1.1; letter-spacing: -.02em; }
.fill .fw { opacity: .46; transition: opacity .25s linear; }
.fill .fw.on { opacity: 1; }
html.no-js .fill .fw { opacity: 1; }

/* ── работы: горизонтальная лента ── */
.hs { position: relative; background: var(--bg); }
.hs-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.hs-track { display: flex; align-items: center; gap: clamp(28px, 4vw, 72px); padding: 0 var(--g); will-change: transform; }
.hs-intro { flex: none; width: min(560px, 40vw); display: grid; gap: 22px; align-content: center; }
.sec-h { font-size: clamp(44px, 6vw, 104px); line-height: .98; letter-spacing: -.025em; font-weight: 330; }
.hs-intro > p:not(.eyebrow):not(.hs-w) { font-size: 18px; color: var(--ink2); max-width: 34ch; }
.hs-w { font-size: 15px; line-height: 1.5; color: var(--ink2); max-width: 40ch; }
.hs-w .link { font-size: 15px; margin-top: 2px; }
.hs-hint { font-size: 14px; font-weight: 520; color: var(--ink3); display: flex; align-items: center; gap: 12px; }
.hs-hint::before { content: ""; width: 42px; height: 1px; background: currentColor; }
.card { flex: none; width: clamp(260px, 25vw, 420px); }
.card:nth-of-type(odd) { transform: translateY(-5vh); }
.card:nth-of-type(even) { transform: translateY(6vh); }
.card:nth-of-type(3n) { width: clamp(290px, 30vw, 500px); }
.card .ph { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 2px; background: var(--surface); }
.card img { position: absolute; top: 0; left: -8%; width: 116%; max-width: none; height: 100%; object-fit: cover; transform: translate3d(var(--px, 0), 0, 0); will-change: transform; }
.card figcaption { margin-top: 16px; }
.card h3 { font-size: 23px; line-height: 1.2; font-weight: 420; }
.card p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--ink2); max-width: 34ch; }
html.js .card .ph { clip-path: inset(10% 10% 10% 10%); transition: clip-path 1.3s var(--curtain); }
html.js .card.in .ph { clip-path: inset(0); }
.hs-end { flex: none; width: min(520px, 40vw); display: grid; gap: 30px; justify-items: start; padding-right: 6vw; }
.hs-end h3 { font-size: clamp(44px, 5.4vw, 92px); line-height: .98; letter-spacing: -.025em; font-weight: 330; }
.hs-bar { position: absolute; left: var(--g); right: var(--g); bottom: calc(var(--g) * .7); height: 1px; background: var(--line); }
.hs-bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--hp, 0)); }

/* ── скрытая работа ── */
.hidden-work { padding: var(--sec) var(--g); background: var(--surface); }
.hw-head { display: grid; grid-template-columns: minmax(140px, 1fr) 4fr; gap: 20px 24px; margin-bottom: clamp(56px, 9vh, 110px); }
.hw-head .sec-h, .hw-lead { grid-column: 2; }
.hw-lead { font-size: 19px; color: var(--ink2); max-width: 40ch; }
.hw-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.hw-grid figure .ph { overflow: hidden; border-radius: 2px; background: var(--bg); }
.hw-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transform: scale(1.1); transition: transform 1.6s var(--ease); }
.hw-grid figcaption { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--ink2); max-width: 36ch; }
.hw-a { grid-column: 1 / span 5; }
.hw-b { grid-column: 7 / span 3; margin-top: 18vh; }
.hw-c { grid-column: 10 / span 3; margin-top: 6vh; }
.hw-d { grid-column: 8 / span 3; margin-top: -8vh; }
html.js .reveal-img .ph { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--curtain); }
html.js .reveal-img.in .ph { clip-path: inset(0); }
.reveal-img.in img { transform: none; }
.facts { list-style: none; margin: clamp(70px, 12vh, 140px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 40px; }
.facts li { padding-top: 22px; border-top: 1px solid var(--line); }
.facts h3 { font-size: 26px; line-height: 1.15; font-weight: 420; margin-bottom: 10px; }
.facts p { font-size: 16px; line-height: 1.55; color: var(--ink2); }
.facts li:nth-child(2) { transition-delay: .08s; } .facts li:nth-child(3) { transition-delay: .16s; }

/* ── что важно ── */
.know { padding: var(--sec) var(--g) clamp(80px, 12vh, 140px); }
.know-head { display: grid; grid-template-columns: minmax(140px, 1fr) 4fr; gap: 20px 24px; margin-bottom: clamp(60px, 10vh, 120px); }
.know-head .sec-h, .know-lead { grid-column: 2; }
.know-lead { font-size: 19px; color: var(--ink2); max-width: 44ch; }
.know-body { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(30px, 6vw, 110px); align-items: start; }
.know-media { position: sticky; top: 12vh; height: 76vh; overflow: hidden; border-radius: 2px; background: var(--surface); }
.know-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transform: scale(1.1); transition: clip-path 1.1s var(--curtain), transform 1.6s var(--ease); }
.know-media img.on { clip-path: inset(0); transform: none; }
.know-list { list-style: none; margin: 0; padding: 0; }
.know-list li { min-height: 46vh; padding: 26px 0 40px; border-top: 1px solid var(--line); }
.know-list h3, .know-list p { transition: color .6s ease; }
.know-list li:not(.on) h3 { color: #84898c; }
.know-list li:not(.on) p { color: var(--ink3); }
.know-list h3 { font-size: clamp(32px, 3.4vw, 56px); line-height: 1.02; letter-spacing: -.02em; font-weight: 340; margin-bottom: 12px; }
.know-list p { font-size: 18px; color: var(--ink2); max-width: 38ch; }

/* ── услуги ── */
.services { position: relative; padding: var(--sec) var(--g); isolation: isolate; }
.sv-head { display: grid; grid-template-columns: minmax(140px, 1fr) 4fr; gap: 20px 24px; margin-bottom: clamp(50px, 8vh, 90px); }
.sv-head .sec-h, .sv-head > p:not(.eyebrow) { grid-column: 2; }
.sv-head > p:not(.eyebrow) { font-size: 19px; color: var(--ink2); max-width: 44ch; }
.sv-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.sv-list li { position: relative; display: grid; grid-template-columns: minmax(140px, 1fr) 2.2fr 1.8fr; gap: 24px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--line); }
.sv-list li::before { content: ""; position: absolute; inset: 0; background: var(--night); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: -1; }
.sv-list h3 { grid-column: 2; font-size: clamp(26px, 2.8vw, 46px); line-height: 1.05; letter-spacing: -.02em; font-weight: 340; transition: transform .6s var(--ease), color .4s; }
.sv-list p { font-size: 16px; color: var(--ink2); transition: color .4s; }
@media (hover: hover) {
  .sv-list li:hover::before { transform: none; }
  .sv-list li:hover h3 { transform: translateX(18px); color: var(--nink); }
  .sv-list li:hover p { color: var(--nink2); }
}
/* ───────── идеи ───────── */
.ideas { padding: var(--sec) var(--g) clamp(90px, 16vh, 180px); background: var(--bg); overflow: hidden; }
.id-head { display: grid; grid-template-columns: minmax(140px, 1fr) 4fr; gap: 20px 24px; margin-bottom: clamp(60px, 10vh, 120px); }
.id-head > :not(.eyebrow) { grid-column: 2; }
.id-lead { max-width: 54ch; font-size: 18px; line-height: 1.55; color: var(--ink2); }
.id-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 10px; }
.id-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 40px); align-items: start; }
.id-col { display: grid; gap: clamp(40px, 7vh, 84px); will-change: transform; }
.id-col:nth-child(2) { margin-top: 18vh; }
.id-col:nth-child(3) { margin-top: 7vh; }
.idea .ph { position: relative; overflow: hidden; border-radius: 2px; background: var(--surface); aspect-ratio: 3 / 4; }
.idea.wide .ph { aspect-ratio: 16 / 9; }
.idea img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.6s var(--ease); }
.idea figcaption { margin-top: 12px; font-size: 15px; font-weight: 520; color: var(--ink2); }
@media (hover: hover) { .reveal-img.in.idea:hover img { transform: scale(1.04); } }

.sv-float { position: fixed; left: 0; top: 0; z-index: 30; width: 260px; aspect-ratio: 3 / 4; pointer-events: none; transform: translate3d(-999px, -999px, 0); }
.sv-float-in { position: absolute; inset: 0; overflow: hidden; border-radius: 2px; transform: scale(0); transition: transform .55s var(--ease); }
.sv-float.on .sv-float-in { transform: scale(1); }
.badge { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 5px 9px; border-radius: 2px; background: rgba(247, 247, 244, .9); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .02em; line-height: 1.2; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sv-float .badge { opacity: 0; transition: opacity .3s; }
.sv-float.on.ill .badge { opacity: 1; transition-delay: .25s; }
.sv-float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transition: clip-path .6s var(--curtain); }
.sv-float img.on { clip-path: inset(0); }

/* ── сложные работы ── */
.craft { padding: var(--sec) var(--g) clamp(90px, 14vh, 160px); background: var(--night); color: var(--nink); }
.craft .eyebrow, .contact .eyebrow { color: var(--nink2); }
.craft-h { margin: 18px 0 clamp(50px, 9vh, 100px); font-size: clamp(38px, 4.6vw, 78px); line-height: 1.02; letter-spacing: -.02em; font-weight: 330; max-width: 18ch; }
.craft-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--nline); }
.craft-list li { overflow: hidden; border-bottom: 1px solid var(--nline); }
.craft-list .cr-l { display: block; padding: .14em 0 .08em; font-family: var(--fd); font-weight: 300; font-size: clamp(46px, 8.4vw, 150px); line-height: 1; letter-spacing: -.03em; transition: transform .8s var(--ease), color .5s; }
.craft-list li:nth-child(even) .cr-l { padding-left: 12vw; }
@media (hover: hover) { .craft-list li:hover .cr-l { color: var(--accent-l); transform: translateX(2vw); } }
html.js .craft-list .cr-l { transform: translateY(105%); }
html.js .craft-list li.in .cr-l { transform: none; }
.craft-list li:nth-child(2).in .cr-l { transition-delay: .06s; } .craft-list li:nth-child(3).in .cr-l { transition-delay: .12s; } .craft-list li:nth-child(4).in .cr-l { transition-delay: .18s; }
.craft-note { margin-top: 30px; font-size: 16px; color: var(--nink2); }
.craft-ill { margin-top: 6px; font-size: 14px; color: var(--nink2); opacity: .75; }
.cr-th { display: none; }
.cr-th img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }
.cr-th .badge { left: 4px; right: 4px; top: auto; bottom: 4px; padding: 3px 2px; font-size: 10px; letter-spacing: 0; text-align: center; }
@media not all and (hover: hover) and (pointer: fine) {
  .craft-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .cr-th { display: block; position: relative; flex: none; width: clamp(84px, 22vw, 120px); opacity: 0; transform: scale(.86); transition: opacity .8s var(--ease) .25s, transform .9s var(--ease) .25s; }
  .craft-list li.in .cr-th { opacity: 1; transform: none; }
}

/* ── контакт и подвал ── */
.contact { padding: var(--sec) var(--g) clamp(80px, 12vh, 140px); background: var(--night); color: var(--nink); border-top: 1px solid var(--nline); }
.contact-h { margin-top: 18px; font-size: clamp(52px, 8vw, 144px); line-height: .96; letter-spacing: -.03em; font-weight: 300; max-width: 12ch; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; margin-top: clamp(50px, 9vh, 100px); align-items: start; }
html.js .contact .reveal { opacity: 1; }
.contact-p { font-size: 19px; color: var(--nink2); max-width: 34ch; }
.contact-actions { display: grid; gap: 8px; justify-items: start; }
.big-link { display: grid; gap: 2px; text-decoration: none; padding: 10px 0; }
.big-link small { font-size: 14px; font-weight: 520; color: var(--nink2); }
.big-link b { position: relative; font-family: var(--fd); font-weight: 340; font-size: clamp(30px, 3.6vw, 60px); line-height: 1.05; letter-spacing: -.015em; font-variant-numeric: lining-nums tabular-nums; }
.big-link b::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.big-link:hover b::after { transform: scaleX(1); transform-origin: left; }
.contact .link { color: var(--nink2); margin-top: 10px; }
.foot { background: var(--night); color: var(--nink); padding: 26px var(--g) 0; overflow: hidden; }
.foot-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 28px; padding-bottom: 14px; font-size: 15px; font-weight: 520; }
.foot-links a { display: inline-block; padding: 6px 0; color: var(--nink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--nink) 35%, transparent); text-underline-offset: 5px; transition: text-decoration-color .3s; font-variant-numeric: lining-nums tabular-nums; }
.foot-links a:hover { text-decoration-color: currentColor; }
.foot-tel { margin-left: auto; }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 40px; font-size: 14px; font-weight: 520; color: var(--nink2); padding-bottom: 20px; border-bottom: 1px solid var(--nline); }
.foot-row a { margin-left: auto; color: var(--nink); }
.foot-note { margin: 0; padding-top: 16px; max-width: 92ch; font-size: 13px; line-height: 1.5; color: var(--nink2); }
.foot-word { padding: 4vw 0 2.4vw; overflow: hidden; }
.foot-word svg { display: block; width: 100%; height: auto; color: var(--nink); --brand-accent: var(--accent-l); }
html.js .foot-word svg { transform: translateY(60%); transition: transform 1.4s var(--ease); }
html.js .foot-word.in svg { transform: none; }

/* ── истории клиентов ── */
.stories { padding: var(--sec) var(--g); }
.ss-head { display: grid; grid-template-columns: minmax(140px, 1fr) 4fr; gap: 20px 24px; margin-bottom: clamp(50px, 8vh, 90px); }
.ss-head .sec-h { grid-column: 2; max-width: 18ch; }
:lang(et) .ss-head .sec-h { font-size: clamp(40px, 5vw, 88px); }
.ss-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.ss-grid .ph { overflow: hidden; border-radius: 2px; background: var(--surface); }
.ss-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transform: scale(1.1); transition: transform 1.6s var(--ease); }
.ss-grid figcaption { margin-top: 12px; font-size: 14px; font-weight: 520; color: var(--ink3); }
.ss-grid figcaption b { color: var(--ink); font-weight: 600; }
.ss-photo { grid-column: 1 / span 5; }
.ss-text { grid-column: 7 / span 6; display: grid; gap: 26px; }
.stars { display: flex; gap: 6px; }
.stars svg { width: 26px; height: 26px; fill: var(--accent); }
html.js .stars svg { transform: scale(0); transition: transform .6s cubic-bezier(.3, 1.6, .5, 1); }
html.js .stars.in svg { transform: none; }
.stars.in svg:nth-child(2) { transition-delay: .07s; } .stars.in svg:nth-child(3) { transition-delay: .14s; } .stars.in svg:nth-child(4) { transition-delay: .21s; } .stars.in svg:nth-child(5) { transition-delay: .28s; }
.ss-lead { font-size: 19px; color: var(--ink2); max-width: 36ch; }
.ss-q { margin: 0; padding: 0; }
.ss-q p { font-family: var(--fd); font-weight: 330; font-size: clamp(28px, 2.8vw, 44px); line-height: 1.18; letter-spacing: -.01em; }
.ss-q blockquote { margin: 0; }
.ss-q figcaption { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 15px; font-weight: 560; }
.ss-q figcaption span { color: var(--ink3); }
html.js .ss-q.reveal { opacity: 1; }
.ss-more { margin-top: -6px; }
.ss-src { font-size: 14px; color: var(--ink3); max-width: 52ch; }
.ss-src a { color: var(--ink2); }

/* ── видео и соцсети ── */
.media { padding: var(--sec) var(--g); background: var(--surface); }
.md-head { display: grid; grid-template-columns: minmax(140px, 1fr) 4fr; gap: 20px 24px; margin-bottom: clamp(50px, 8vh, 90px); }
.md-head .sec-h { grid-column: 2; }
.md-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 24px clamp(30px, 5vw, 80px); align-items: start; }
.video .ph { position: relative; overflow: hidden; border-radius: 2px; background: var(--night); aspect-ratio: 16 / 9; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transform: scale(1.1); transition: transform 1.6s var(--ease), opacity .4s; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 24px; border: 0; border-radius: 2px; background: var(--bg); color: var(--ink); font-weight: 560; font-size: 16px; cursor: pointer; transition: background .3s, color .3s; }
.play svg { width: 24px; height: 24px; color: #ff0033; }
.play:hover { background: var(--ink); color: var(--bg); }
.video-cap { margin-top: 10px; font-size: 14px; font-weight: 520; color: var(--ink3); }
.socials { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.socials li { border-bottom: 1px solid var(--line); }
.socials a { display: flex; align-items: center; gap: 16px; padding: 18px 0; text-decoration: none; transition: padding .5s var(--ease); }
.socials a:hover { padding-left: 10px; }
.socials svg { width: 26px; height: 26px; flex: none; color: var(--ink); }
.socials li:last-child svg { color: var(--wa); }
.socials span { display: grid; }
.socials b { font-family: var(--fd); font-weight: 420; font-size: 24px; line-height: 1.15; }
.socials small { font-size: 14px; font-weight: 520; color: var(--ink3); }
.md-grid > .video:first-child { grid-column: 1; grid-row: 1; }
.video.fb { grid-column: 2; grid-row: 1; margin-top: clamp(24px, 6vh, 72px); }
.md-grid > .socials { grid-column: 2; grid-row: 2; }
.sites { grid-column: 1; grid-row: 2; }
.fb-poster { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(16px, 2vw, 28px); background: var(--night); color: var(--nink); transform: scale(1.06); transition: transform 1.6s var(--ease); }
.reveal-img.in .fb-poster { transform: none; }
.fb-src { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 560; color: var(--nink2); }
.fb-src svg { width: 20px; height: 20px; color: var(--nink); }
.fb-poster b { max-width: 22ch; font-family: var(--fd); font-weight: 380; font-size: clamp(20px, 1.9vw, 30px); line-height: 1.12; letter-spacing: -.01em; }
.video.fb .ph { aspect-ratio: 4 / 3; }
.fb .play svg { color: #1877f2; }
.video-cap a { color: inherit; }
.sites { align-self: start; padding-top: 6px; }
.site-links { display: flex; flex-wrap: wrap; gap: 2px 20px; margin-top: 8px; font-size: 15px; }
.site-links a { display: inline-block; padding: 4px 0; text-decoration: none; color: var(--ink2); background: linear-gradient(var(--line), var(--line)) 0 calc(100% - 3px) / 100% 1px no-repeat; transition: color .3s; }
.site-links a:hover { color: var(--accent); }

/* ── где мы работаем ── */
.area { display: grid; grid-template-columns: 5fr 7fr; gap: 40px clamp(30px, 5vw, 90px); align-items: center; padding: var(--sec) var(--g); }
.ar-text { display: grid; gap: 22px; align-content: start; }
.ar-p { font-size: 19px; color: var(--ink2); max-width: 38ch; }
.ar-list { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ar-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.ar-list b { font-family: var(--fd); font-weight: 460; font-size: 19px; }
.ar-list span { color: var(--ink2); }
.flag { display: flex; width: 66px; height: 14px; margin-top: 8px; border: 1px solid var(--line); }
.flag i { flex: 1; }
.flag i:nth-child(1) { background: var(--accent); } .flag i:nth-child(2) { background: var(--ink); } .flag i:nth-child(3) { background: #fff; }
.ar-map { position: relative; margin: 0; }
.ee-map { display: block; width: 100%; height: auto; overflow: visible; }
.ee-map .cty { fill: var(--surface); stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.ee-map .harju { fill: color-mix(in srgb, var(--accent) 18%, transparent); stroke: var(--accent); stroke-width: 2; }
.ee-map .pin circle { fill: var(--accent); }
.ee-map .pin .halo { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; transform-origin: 0 0; animation: halo 2.4s ease-out infinite; }
.ee-map .pin-paide .halo { animation-delay: .8s; } .ee-map .pin-viimsi .halo { animation-delay: .4s; }
@keyframes halo { from { transform: scale(1); opacity: .7; } to { transform: scale(4); opacity: 0; } }
html.js .ee-map .cty { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; transition: stroke-dashoffset 1.4s var(--curtain), fill-opacity .8s ease .9s; }
html.js .ar-map.in .ee-map .cty { stroke-dashoffset: 0; fill-opacity: 1; }
html.js .ee-map .pin { opacity: 0; transition: opacity .5s ease 1.1s; }
html.js .ar-map.in .ee-map .pin { opacity: 1; }
.pin-l { position: absolute; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; transform: translate(14px, -50%); opacity: 0; transition: opacity .5s ease 1.3s; }
.ar-map.in .pin-l, html.no-js .pin-l { opacity: 1; }
.pin-l-tallinn { left: 45.8%; top: calc(71 / 651 * 100%); transform: translate(-112%, 10%); }
.pin-l-viimsi { left: 47.2%; top: calc(50 / 651 * 100%); transform: translate(14px, -70%); }
.pin-l-paide { left: 58.6%; top: calc(237 / 651 * 100%); }
.ar-map figcaption { margin-top: 10px; font-size: 14px; font-weight: 520; color: var(--ink3); }
.c-social { display: flex; gap: 22px; margin-top: 10px; }
.c-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.btn.wa-btn { gap: 10px; background: var(--wa); color: #0b1f12; }
.btn.wa-btn svg { width: 20px; height: 20px; }
.btn.wa-btn:hover { background: #1ebe5b; }
.btn.ghost { background: transparent; color: var(--nink); border: 1px solid var(--nline); }
.btn.ghost:hover { background: var(--nink); color: var(--ink); }

/* ── появление ── */
.split-lines .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split-lines .w > span { display: inline-block; }
html.js .split-lines .w > span { transform: translateY(108%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--wi) * 40ms); }
html.js .split-lines.in .w > span { transform: none; }
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform 1.1s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ── почитать: история, статья, совет ── */
.reads { padding: var(--sec) var(--g); background: var(--surface); }
.rd-head { display: grid; grid-template-columns: minmax(140px, 1fr) 4fr; gap: 20px 24px; margin-bottom: clamp(44px, 7vh, 84px); }
.rd-head > :not(.eyebrow) { grid-column: 2; }
.rd-all { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.rd-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 2.6vw, 44px); }
.rd-card { position: relative; display: grid; align-content: start; gap: 18px; }
.rd-ph .ph { position: relative; overflow: hidden; aspect-ratio: 5 / 4; border-radius: 2px; background: var(--bg); }
.rd-ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1.6s var(--ease); }
.rd-kaido img { object-position: 50% 18%; }
.rd-card:nth-child(2) .ph { transition-delay: .1s; } .rd-card:nth-child(3) .ph { transition-delay: .2s; }
.rd-text { display: grid; gap: 8px; }
.rd-card h3 { font-size: clamp(24px, 2.1vw, 34px); line-height: 1.1; letter-spacing: -.015em; font-weight: 380; }
.rd-card h3 a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.rd-card h3 a::after { content: ""; position: absolute; inset: 0; }
.rd-card:hover h3 a, .rd-card h3 a:focus-visible { background-size: 100% 1px; }
.rd-lead { font-size: 16px; line-height: 1.55; color: var(--ink2); max-width: 42ch; }
@media (hover: hover) { .rd-card:hover .reveal-img.in img { transform: scale(1.03); } }

/* ── быстрая связь на телефоне ── */
.dock { display: none; }

/* ── шапка: семь пунктов помещаются только на широком экране ── */
@media (max-width: 1180px) {
  #bar { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 1181px) and (max-width: 1440px) { .nav { gap: 22px; } .bar-end { gap: 18px; } }

/* ── телефон ── */
@media (max-width: 860px) {
  body { font-size: 17px; }
  #bar { grid-template-columns: 1fr auto; padding: 14px var(--g); }
  .nav, .phone { display: none; }
  .menu-btn { display: inline-flex; }
  .brand-logo { height: 28px; }
  .bar-end { gap: 16px; }
  .shade { background: linear-gradient(0deg, var(--stage-bg) 0%, color-mix(in srgb, var(--stage-bg) 86%, transparent) 26%, transparent 48%); }
  .hero-copy { left: var(--g); right: var(--g); width: auto; top: 80px; bottom: auto; justify-content: flex-start; gap: 16px; padding-top: 0; }
  .hero-h { font-size: clamp(46px, 13vw, 64px); }
  .hero-p { font-size: 16px; }
  .hero-photo { left: var(--g); right: var(--g); width: auto; top: var(--photo-t, auto); height: var(--photo-h, 34svh); bottom: 64px; }
  .hero-photo figcaption { bottom: -26px; font-size: 13px; }
  .cue { display: none; }
  .steps { left: var(--g); right: var(--g); top: auto; bottom: 26px; width: auto; }
  .step { top: auto; bottom: 0; }
  .step h2 { font-size: 32px; margin-bottom: 10px; }
  .step p { font-size: 16px; }
  .onsite { left: auto; right: var(--g); top: 140px; bottom: auto; width: 92px; height: 124px; }
  .onsite-l, .onsite figcaption { display: none; }
  .onsite figure { top: 0; }
  .rail { display: none; }
  .skip { top: 84px; bottom: auto; min-height: 34px; padding: 0 12px; font-size: 13px; }
  .finale { bottom: 40px; }
  .studio-head { top: 72px; }
  .studio-head h2 { font-size: 36px; }
  .studio .note { font-size: 13px; }
  .panel { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 58svh; transform: translateY(110%); border-radius: 2px 2px 0 0; padding: 18px var(--g) 0; }
  .panel-cta { margin: 2px calc(var(--g) * -1) 0; padding: 12px var(--g) calc(14px + env(safe-area-inset-bottom)); }
  .studio.on .panel { transform: none; }
  .tag3d { font-size: 12px; }
  .approach, .know-head, .sv-head, .hw-head { grid-template-columns: 1fr; }
  .know-head .sec-h, .know-lead, .sv-head .sec-h, .sv-head > p:not(.eyebrow), .hw-head .sec-h, .hw-lead { grid-column: 1; }
  .approach { gap: 14px; }
  .approach .eyebrow { padding-top: 0; }
  .hs { height: auto !important; }
  .hs-pin { position: relative; height: auto; display: block; padding: 90px 0 60px; }
  .hs-track { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--g); -webkit-overflow-scrolling: touch; scrollbar-width: none; transform: none !important; align-items: start; gap: 16px; padding-bottom: 10px; }
  .hs-track::-webkit-scrollbar { display: none; }
  .hs-intro { width: 82vw; scroll-snap-align: start; }
  .hs-pin > .hs-intro { width: auto; padding: 0 var(--g); margin-bottom: 30px; }
  .card, .card:nth-of-type(3n) { width: 74vw; scroll-snap-align: center; transform: none !important; }
  .hs-end { width: 78vw; scroll-snap-align: center; padding-right: 0; align-self: center; }
  .hs-hint, .hs-bar { display: none; }
  .hw-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hw-a { grid-column: 1 / -1; }
  .hw-b, .hw-c, .hw-d { grid-column: auto; margin-top: 0; }
  .hw-d { grid-column: 1 / -1; width: 70%; justify-self: end; }
  .facts { grid-template-columns: 1fr; }
  .know-body { grid-template-columns: 1fr; gap: 0; }
  .know-media { top: 64px; height: 44svh; z-index: 2; margin-bottom: 20px; }
  .know-list li { min-height: 46svh; }
  .know-list h3 { font-size: 32px; }
  .know-list p { font-size: 16px; }
  .sv-list li { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .sv-list h3 { grid-column: 1; }
  .sv-list p { font-size: 15px; }
  .sv-float { display: none; }
  .craft-list li:nth-child(even) .cr-l { padding-left: 8vw; }
  .contact-grid { grid-template-columns: 1fr; gap: 26px; }
  .big-link b { font-size: 28px; }
  .foot-row a { margin-left: 0; }
  .wa { min-height: 38px; padding: 0 12px 0 10px; }
  .wa-n { display: none; }
  .wa-s { display: inline; }
  .ss-head, .md-head { grid-template-columns: 1fr; }
  .ss-head .sec-h, .md-head .sec-h { grid-column: 1; }
  .ss-grid { grid-template-columns: 1fr; gap: 26px; }
  .ss-photo, .ss-text { grid-column: 1; }
  .md-grid, .area { grid-template-columns: 1fr; }
  .md-grid > .video:first-child, .md-grid > .video.fb, .md-grid > .socials, .md-grid > .sites { grid-column: 1; grid-row: auto; }
  .video.fb { margin-top: 12px; }
  .id-head { grid-template-columns: 1fr; }
  .id-head > :not(.eyebrow) { grid-column: 1; }
  .id-lead { font-size: 16px; }
  .id-grid { grid-template-columns: 1fr 1fr; gap: 26px 12px; }
  .id-col { display: contents; }
  .idea.wide .ph { aspect-ratio: 3 / 4; }
  .id-col:not(:first-child) .idea.wide { grid-column: 1 / -1; }
  .id-col:not(:first-child) .idea.wide .ph { aspect-ratio: 16 / 9; }
  .idea figcaption { margin-top: 8px; font-size: 13px; line-height: 1.35; }
  .badge { left: 8px; top: 8px; padding: 4px 7px; font-size: 11px; }
  .play { min-height: 48px; padding: 0 18px; font-size: 15px; }
  .ar-list li { grid-template-columns: 90px 1fr; }
  .foot-tel { margin-left: 0; }
  .rd-head { grid-template-columns: 1fr; }
  .rd-head > :not(.eyebrow) { grid-column: 1; }
  .rd-list { grid-template-columns: 1fr; gap: 30px; }
  .rd-card { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 16px; align-items: start; }
  .rd-ph .ph { aspect-ratio: 4 / 5; }
  .rd-card h3 { font-size: 21px; line-height: 1.15; }
  .rd-text { gap: 6px; }
  .rd-text .meta { font-size: 13px; }
  .rd-lead { font-size: 15px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
  .dock { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px max(var(--g), env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(var(--g), env(safe-area-inset-left)); background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); transform: translateY(105%); visibility: hidden; transition: transform .55s var(--ease), visibility 0s linear .55s; }
  .dock.on { transform: none; visibility: visible; transition: transform .55s var(--ease); }
  .dock .btn { min-height: 48px; padding: 0 12px; gap: 10px; font-size: 15px; }
  .dock .btn svg { width: 20px; height: 20px; }
}
@media (min-width: 600px) and (max-width: 860px) { .hero-h { font-size: clamp(64px, 11vw, 96px); } }
@media (max-height: 700px) and (max-width: 860px) { .hero-h { font-size: 44px; } .hero-p { font-size: 15px; } .hero-copy { gap: 12px; } }
@media (max-width: 380px) and (max-height: 700px) {
  .hero-copy { top: 74px; gap: 10px; }
  .hero-h { font-size: 40px; }
  .hero-p { font-size: 14px; line-height: 1.45; }
  .hero-actions { gap: 12px; }
  .hero-photo { bottom: 48px; }
  .hero-photo figcaption { bottom: -24px; font-size: 12px; }
}
/* A short landscape viewport needs the photo beside the copy, not below it. */
@media (min-width: 600px) and (max-width: 860px) and (max-height: 520px) {
  .hero-copy { top: 76px; bottom: 36px; width: 46%; right: auto; justify-content: center; gap: 10px; }
  .hero-copy .meta { font-size: 12px; }
  .hero-h { font-size: clamp(30px, 4.4vw, 38px); }
  .hero-p { font-size: 13px; line-height: 1.4; }
  .hero-actions { gap: 10px 16px; }
  .hero-actions .btn { min-height: 44px; padding: 10px 14px; font-size: 13px; }
  .hero-actions .link { font-size: 13px; }
  .hero-photo { top: 80px; bottom: 44px; left: 54vw; right: var(--g); width: auto; height: auto; }
  .hero-photo figcaption { font-size: 11px; bottom: -28px; }
}
@media (max-width: 480px) {
  .bar-end { gap: 10px; }
  .wa { width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .wa-s { display: none; }
  .lang button, .lang a { min-width: 44px; min-height: 44px; padding: 0; }
}
/* самые узкие телефоны: шапка помещается — кнопка меню только значком (подпись остаётся для чтения с экрана) */
@media (max-width: 360px) {
  #bar { gap: 12px; }
  .brand-logo { height: 26px; }
  .menu-btn { min-width: 44px; justify-content: center; }
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (pointer: coarse) {
  .lang button, .lang a, .menu-btn, .wa, .skip, .seg button, .tg, .views button { min-height: 44px; }
  .lang button, .lang a { min-width: 44px; }
  .site-links a, .c-social a, .foot-row a, .foot-links a, .video-cap a, .ss-src a { display: inline-block; padding-block: 10px; }
  .menu-foot a { padding-block: 10px; }
  .link::before { content: ""; position: absolute; inset: -6px -4px; }
  .rd-all .link { padding-block: 10px; background-position: 0 calc(100% - 6px); }
  .foot-row a { padding-block: 11px; }
}

/* ── без WebGL / без JS: обычная страница ── */
:is(.no-webgl, .no-js) #story { height: auto; }
:is(.no-webgl, .no-js) .stage { position: relative; height: auto; overflow: visible; background: var(--bg); color: var(--ink); }
:is(.no-webgl, .no-js) :is(#room, .shade, .rail, .rewind, .finale, .studio, .tags, .onsite, .skip, .cue) { display: none; }
:is(.no-webgl, .no-js) .hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; padding: 120px var(--g) 60px; min-height: 100svh; pointer-events: auto; }
:is(.no-webgl, .no-js) .hero-copy, :is(.no-webgl, .no-js) .hero-photo { position: relative; inset: auto; width: auto; height: auto; opacity: 1; transform: none; }
:is(.no-webgl, .no-js) .hero-copy { grid-column: 1; grid-row: 1; align-self: center; padding-top: 0; }
:is(.no-webgl, .no-js) .hero .hero-copy { pointer-events: auto; }
:is(.no-webgl, .no-js) a[href="#studio"] { display: none; }
:is(.no-webgl, .no-js) .hero-img { grid-column: 2; grid-row: 1; }
:is(.no-webgl, .no-js) .hero-photo { grid-column: 2; grid-row: 2; }
:is(.no-webgl, .no-js) .hero-img { position: relative; inset: auto; clip-path: none !important; height: 70svh; z-index: 0; }
:is(.no-webgl, .no-js) .hero-img img { width: 100% !important; height: 100% !important; object-fit: cover; transform: none !important; opacity: 1 !important; }
:is(.no-webgl, .no-js) .hero-photo figcaption { position: static; margin-top: 10px; }
:is(.no-webgl, .no-js) .hero .ln > span, :is(.no-webgl, .no-js) .hero-copy * { transform: none !important; opacity: 1 !important; }
:is(.no-webgl, .no-js) .steps { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; padding: 60px var(--g) 90px; display: grid; gap: 48px 40px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
:is(.no-webgl, .no-js) .step { position: relative; top: auto; bottom: auto; }
:is(.no-webgl, .no-js) .step > * { opacity: 1; transform: none; }
:is(.no-webgl, .no-js) .step p { color: var(--ink2); }
:is(.no-webgl, .no-js) .step h2 { font-size: clamp(32px, 3vw, 48px); }
html.no-js .split-lines .w > span, html.no-js .reveal, html.no-js .craft-list .cr-l, html.no-js .foot-word svg { transform: none; opacity: 1; }
html.no-js .card .ph, html.no-js .reveal-img .ph { clip-path: none; }
html.no-js .stars svg { transform: none; }
html.no-js .brand-logo { opacity: 1; }
html.no-js .hs { height: auto !important; }
html.no-js .hs-pin { position: relative; height: auto; display: block; padding: var(--sec) 0 60px; }
html.no-js .hs-track { overflow-x: auto; transform: none !important; align-items: start; padding-bottom: 18px; }
html.no-js :is(.mq-track, .id-col) { transform: none !important; }
/* Expose real navigation when the interactive mobile menu is unavailable. */
.no-js .menu-btn { display: none; }
@media (max-width: 1180px) {
  .no-js #bar { position: sticky; }
  .no-js .bar-end { grid-area: 1 / 2; }
  .no-js .nav { display: flex; grid-area: 2 / 1 / auto / -1; min-width: 0; gap: 22px; margin-top: 6px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
}
@media (max-width: 860px) {
  :is(.no-webgl, .no-js) .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 96px; }
  :is(.no-webgl, .no-js) :is(.hero-copy, .hero-img, .hero-photo) { grid-column: 1; grid-row: auto; }
  :is(.no-webgl, .no-js) .hero-copy { order: -1; }
  :is(.no-webgl, .no-js) .hero-img { height: 56svh; }
  :is(.no-webgl, .no-js) .hero-photo { margin-top: -18px; }
}
html.no-js .ee-map .cty { stroke-dasharray: none; }

@media (prefers-reduced-motion: reduce) {
  #intro .brand-word { clip-path: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .fill .fw { opacity: 1; }
  /* работы: без привязки к прокрутке — обычная лента, которую листают сами */
  .hs { height: auto !important; }
  .hs-pin { position: relative; height: auto; display: block; padding: var(--sec) 0 60px; }
  .hs-track { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--g); transform: none !important; align-items: start; padding-bottom: 18px; scrollbar-width: thin; }
  .hs-intro, .card, .hs-end { scroll-snap-align: start; }
  .card { transform: none !important; }
  .hs-hint, .hs-bar { display: none; }
}
