/* ============================================================
   CARPAINT.ME — AUTOMOTIVE BODY & FINISH STUDIO
   FORM. SURFACE. FINISH.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root{
  /* surface */
  --ink:        #0A0A0B;
  --ink-2:      #0E0F10;
  --graphite:   #16181A;
  --graphite-2: #1E2124;
  --graphite-3: #2A2E32;

  /* light */
  --bone:       #EDEAE4;
  --bone-2:     #DAD6CE;
  /* мягкий ореол под служебным текстом поверх видео — не плашка, только читаемость */
  --legible:    0 1px 14px rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.35);
  --metal:      #8C9094;
  --metal-dim:  #5E6266;

  /* single restrained accent — oxide primer */
  --signal:     #C0552E;

  /* type */
  --display: "Inter Tight", "Geist", "Instrument Sans", -apple-system, system-ui, sans-serif;
  --body:    "Geist", "Instrument Sans", "Inter Tight", -apple-system, system-ui, sans-serif;
  --mono:    "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* rhythm */
  --gutter: clamp(20px, 4.4vw, 68px);
  --maxw:   1680px;
  --rule:   rgba(237,234,228,.14);
  --rule-2: rgba(237,234,228,.07);

  --sect:   clamp(96px, 13vw, 210px);
  --ease:   cubic-bezier(.22,.61,.36,1);
  --ease-io:cubic-bezier(.65,.02,.2,1);
}

/* ---------- 2. RESET ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
html,body{ margin:0; padding:0; }
body{
  background:var(--ink);
  color:var(--bone);
  font-family:var(--body);
  font-weight:300;
  font-size:19px;
  line-height:1.55;
  letter-spacing:.005em;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:clip;
  font-synthesis-weight:none;
}
img,video,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; color:inherit; background:none; border:0; cursor:pointer; }
h1,h2,h3,h4,p,figure,ul,ol{ margin:0; }
ul,ol{ list-style:none; padding:0; }
::selection{ background:var(--bone); color:var(--ink); }
:focus-visible{ outline:1px solid var(--bone); outline-offset:4px; }

/* ---------- 3. TYPE PRIMITIVES ---------- */
/* a heading never breaks a word — it scales down until the longest one fits.
   Russian and Montenegrin words are long; this keeps every language intact. */
.fit{ min-width:0; max-width:100%; overflow-wrap:normal; word-break:normal; hyphens:none; }
.fit__in{ font-size:calc(1em * var(--fit, 1)); display:block; }
.fit__w{ display:inline-block; white-space:nowrap; max-width:none; }

.display{
  font-family:var(--display);
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:-.033em;
  /* Cyrillic Щ, Д and Ц hang below the baseline — .9 made them touch the
     line underneath, so the display leading is set just past the cap height */
  line-height:1.02;
  font-size:clamp(2.55rem, 7.6vw, 7.6rem);
}
.display--sm{ font-size:clamp(2rem, 4.6vw, 4.15rem); line-height:1.05; }
.display--xs{ font-size:clamp(1.5rem, 2.6vw, 2.35rem); line-height:1.02; letter-spacing:-.025em; }

.mono{
  font-family:var(--mono);
  font-weight:400;
  font-size:14px;
  letter-spacing:.11em;
  text-transform:uppercase;
  color:var(--metal);
}
.mono--sm{ font-size:13px; letter-spacing:.13em; }
.lede{
  font-size:clamp(1.08rem, 1.45vw, 1.32rem);
  line-height:1.55;
  color:var(--bone-2);
  font-weight:300;
  max-width:46ch;
}
.muted{ color:var(--metal); }
.tnum{ font-variant-numeric:tabular-nums; }

/* ---------- 4. LAYOUT ---------- */
.shell{
  width:100%;
  max-width:var(--maxw);
  margin-inline:auto;
  padding-inline:var(--gutter);
}
.section{ padding-block:var(--sect); position:relative; }
.rule{ height:1px; background:var(--rule-2); border:0; margin:0; }

.sect-head{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:clamp(22px,3vw,44px);
  padding-top:22px;
  border-top:1px solid var(--rule);
}
@media (min-width:900px){
  .sect-head{ grid-template-columns:150px minmax(0,1fr) minmax(0,26ch); align-items:start; }
}

/* ---------- 5. HEADER ---------- */
.hdr{
  /* --hdr-on ведёт site.js по ходу прокрутки: 0 наверху, 1 после ~220px.
     Затемнение и линия проступают постепенно, а не включаются по порогу. */
  --hdr-on:0;
  position:fixed; inset:0 0 auto 0; z-index:90;
  display:flex; align-items:center; justify-content:space-between;
  gap:24px;
  padding:clamp(16px,2.1vw,26px) var(--gutter);
  /* цвет страницы, а не отдельная плашка: поверх кадра шапка прозрачна
     (--hdr-on = 0 весь баннер), ниже — тёмная и слегка прозрачная; лёгкое
     размытие (.is-solid) не даёт контенту под ней спорить с текстом меню */
  background:rgba(10,10,11, calc(.8 * var(--hdr-on)));
  border-bottom:1px solid rgba(237,234,228, calc(.085 * var(--hdr-on)));
  /* короткий переход только сглаживает шаг между событиями прокрутки */
  transition:background .25s linear, border-color .25s linear;
}
.hdr.is-solid{
  -webkit-backdrop-filter:blur(calc(12px * var(--hdr-on)));
          backdrop-filter:blur(calc(12px * var(--hdr-on)));
}
/* без размытия полупрозрачность мешала бы читать меню — фон плотнее */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .hdr{ background:rgba(10,10,11, calc(.92 * var(--hdr-on))); }
}
/* телефон: шапка всегда одна и та же — постоянный плотный фон без переходов
   по прокрутке, поверх любого кадра читается одинаково и не «мигает».
   Верхняя безопасная зона учитывается один раз (в Safari она 0, в режиме
   «на экран Домой» — высота строки статуса). */
@media (max-width:767px){
  /* без размытия фона: на iPhone оно пересчитывалось на каждом кадре прокрутки
     поверх больших фото и видео и давало подтормаживания */
  .hdr, .hdr.is-solid{
    background:rgba(10,10,11,.95);
    border-bottom:1px solid rgba(237,234,228,.085);
    -webkit-backdrop-filter:none; backdrop-filter:none;
    transition:none;
    padding-top:calc(clamp(16px,2.1vw,26px) + env(safe-area-inset-top));
  }
}
/* Safari на iPhone рисует страницу и под своей прозрачной верхней панелью:
   над шапкой просвечивали и уезжали фото и заголовки. Отдельная закреплённая
   полоса стоит целиком выше края экрана — её видно только там, где браузер
   сам рисует страницу, и там всегда тёмный цвет сайта. */
.topcap{
  position:fixed; left:0; right:0; bottom:100%; height:100vh; z-index:95;
  background:#0A0A0B; pointer-events:none;
}
/* запасной вариант, если скрипт не отработал */
.no-js .hdr.is-solid{
  background:rgba(6,8,10,.22);
  border-bottom-color:var(--rule-2);
}
/* логотип шапки — строчная версия знака (надпись + краскопульт), вектор.
   205×47.5 px при ширине экрана 1440, пропорционально меньше на узких экранах. */
.hdr__mark{
  display:block; flex:0 0 auto; line-height:0;
  transition:opacity .35s var(--ease);
}
.hdr__mark img{ display:block; width:auto; height:clamp(36px, 3.31vw, 47.5px); }   /* +25% */
.hdr__mark:hover{ opacity:.78; }
@media (max-width:767px){ .hdr__mark img{ height:36px; } }
.hdr__nav{ display:none; gap:clamp(24px,2.8vw,46px); align-items:center; }
@media (min-width:900px){ .hdr__nav{ display:flex; } }
.hdr__nav a{
  font-family:var(--body); font-size:15px; font-weight:500; letter-spacing:.02em;
  text-transform:uppercase; color:var(--bone);
  position:relative; padding-block:6px;
  transition:color .35s var(--ease), opacity .35s var(--ease);
  text-shadow:var(--legible);
}
.hdr__nav a:hover{ opacity:1; }
.hdr__nav a[aria-current="page"]{ opacity:1; font-weight:600; }
.hdr__nav a::after{
  content:""; position:absolute; left:0; right:100%; bottom:0; height:1px;
  background:var(--bone); transition:right .5s var(--ease);
}
.hdr__nav a:hover{ color:var(--bone); }
.hdr__nav a:hover::after,
.hdr__nav a[aria-current="page"]::after{ right:0; }
.hdr__nav a[aria-current="page"]{ color:var(--bone); }
.hdr__end{ display:flex; align-items:center; gap:18px; }
.hdr__cta{ text-shadow:var(--legible); }
@media (max-width:899px){
  .hdr__end > .hdr__cta{ display:none; }
  .hdr__end{ gap:6px; }
}

/* language switcher */
.lang{ display:flex; align-items:center; }
.lang a{
  font-family:var(--body); font-size:14px; font-weight:500; letter-spacing:.03em;
  text-transform:uppercase; color:rgba(237,234,228,.72); text-shadow:var(--legible); padding:6px 9px; line-height:1;
  transition:color .35s var(--ease);
}
.lang a[aria-current]{ font-weight:600; }
.lang a + a{ border-left:1px solid rgba(237,234,228,.3); }
.lang a:hover{ color:var(--bone); }
.lang a[aria-current]{ color:var(--bone); }
.lang--sheet{ order:-1; width:100%; margin-bottom:6px; }
.lang--sheet a{ padding:10px 14px; font-size:14px; border:1px solid var(--rule-2); }
.lang--sheet a + a{ border-left:0; }
@media (min-width:900px){ .lang--sheet{ display:none; } }
.lang--foot a:first-child{ padding-left:0; }

/* burger */
.burger{ display:flex; flex-direction:column; gap:5px; padding:8px; margin:-8px; }
@media (min-width:900px){ .burger{ display:none; } }
.burger i{ display:block; width:20px; height:1px; background:var(--bone); transition:transform .45s var(--ease), opacity .3s; }
body.nav-open .burger i:nth-child(1){ transform:translateY(3px) rotate(45deg); }
body.nav-open .burger i:nth-child(2){ opacity:0; }
body.nav-open .burger i:nth-child(3){ transform:translateY(-3px) rotate(-45deg); }

/* mobile sheet */
.sheet{
  position:fixed; inset:0; z-index:85;
  background:var(--ink);
  padding:calc(var(--gutter) + 56px) var(--gutter) var(--gutter);
  display:flex; flex-direction:column; justify-content:space-between;
  clip-path:inset(0 0 100% 0);
  transition:clip-path .7s var(--ease-io);
  pointer-events:none;
}
body.nav-open .sheet{ clip-path:inset(0 0 0 0); pointer-events:auto; }
.sheet__nav a{
  display:block; padding-block:clamp(10px,2.2vw,18px);
  border-bottom:1px solid var(--rule-2);
  font-family:var(--display); text-transform:uppercase;
  font-size:clamp(2rem,9vw,3.2rem); font-weight:500; letter-spacing:-.03em;
  line-height:1;
  opacity:0; transform:translateY(14px);
  transition:opacity .5s var(--ease), transform .5s var(--ease);
}
body.nav-open .sheet__nav a{ opacity:1; transform:none; }
body.nav-open .sheet__nav a:nth-child(1){ transition-delay:.12s }
body.nav-open .sheet__nav a:nth-child(2){ transition-delay:.17s }
body.nav-open .sheet__nav a:nth-child(3){ transition-delay:.22s }
body.nav-open .sheet__nav a:nth-child(4){ transition-delay:.27s }
body.nav-open .sheet__nav a:nth-child(5){ transition-delay:.32s }
.sheet__foot{ display:flex; flex-wrap:wrap; gap:18px 32px; justify-content:space-between; }

/* ---------- 6. BUTTONS ---------- */
.btn{
  --bg:transparent; --fg:var(--bone); --bd:var(--bone);
  position:relative; display:inline-flex; align-items:center; gap:14px;
  padding:14px 26px;
  font-family:var(--mono); font-size:14px; letter-spacing:.11em; text-transform:uppercase;
  color:var(--fg); border:1px solid var(--bd); background:var(--bg);
  overflow:hidden; isolation:isolate;
  transition:color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:var(--bone); transform:scaleY(0); transform-origin:bottom;
  transition:transform .55s var(--ease-io);
}
.btn:hover::before{ transform:scaleY(1); }
.btn:hover{ color:var(--ink); }
.btn--solid{ --bg:var(--bone); --fg:var(--ink); --bd:var(--bone); }
.btn--solid::before{ background:transparent; }
.btn--solid:hover{ color:var(--ink); opacity:.84; }
.btn--ghost{ --bd:var(--rule); }
.btn--ink{ --bg:#0A0A0B; --fg:#EDEAE4; --bd:#0A0A0B; }
.btn--ink:hover{ color:#EDEAE4; opacity:.88; }
/* кнопки WhatsApp — фирменный зелёный, чтобы узнавались сразу; текст тёмный: белый на этом зелёном читается плохо */
.btn--green{ --bg:#25D366; --fg:#0A0A0B; --bd:#25D366; }
.btn--green:hover{ color:#0A0A0B; opacity:1; --bg:#3BE07A; --bd:#3BE07A; }
/* на телефоне «Отправить фото в WhatsApp» — во всю ширину и в одну строку */
@media (max-width:560px){
  a.btn--green, .btn--wa{ width:100%; justify-content:center; padding:18px 12px; font-size:13px; letter-spacing:.07em; gap:10px; }
  a.btn--green .arw, a.btn--green > span[aria-hidden], .btn--wa .arw{ display:none; }
  /* внутри зелёной карточки места меньше — на ступень плотнее */
  .onsite__cta .btn--wa{ font-size:12px; letter-spacing:.05em; padding:16px 8px; gap:10px; }
  .hero__actions a.btn--green{ font-size:12.5px; letter-spacing:.05em; }
}
.btn--ghost:hover{ border-color:var(--bone); }
.arw{ flex:0 0 16px; width:16px; height:6px; overflow:visible; stroke:currentColor; stroke-width:1; fill:none; }
.btn:hover .arw{ animation:arw .5s var(--ease); }
@keyframes arw{ 50%{ transform:translateX(7px); opacity:0 } 51%{ transform:translateX(-7px); opacity:0 } 100%{ transform:none; opacity:1 } }

.link{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--body); font-size:14px; font-weight:500; letter-spacing:.03em;
  text-transform:uppercase; color:var(--bone);
  padding-bottom:6px; border-bottom:1px solid var(--rule);
  transition:border-color .4s var(--ease), color .4s var(--ease);
}
.link:hover{ border-bottom-color:var(--bone); }

/* ---------- 7. GRAIN + VIGNETTE ---------- */
.grain{
  position:fixed; inset:-120px; z-index:80; pointer-events:none;
  opacity:.16; mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation:grain 6s steps(6) infinite;
}
/* телефоны и планшеты: без «зерна». Закреплённый слой во весь экран с
   режимом наложения overlay и анимацией заставлял смешивать его со всем,
   что под ним (видео, большие фото), на каждом кадре прокрутки. */
@media (max-width:820px), (pointer:coarse){ .grain{ display:none; } }
@keyframes grain{
  0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)}
  60%{transform:translate(-2%,-2%)} 80%{transform:translate(3%,1%)} 100%{transform:translate(0,0)}
}

/* ============================================================
   8. THE STAGE — hero + pinned scroll-scrubbed vehicle
   ============================================================ */
.experience{ position:relative; }
/* точки остановки в баннере (js/experience.js) — невидимые якоря scroll-snap */
.snap-point{ position:absolute; left:0; width:1px; height:1px; pointer-events:none;
  scroll-snap-align:start; scroll-snap-stop:always; }
html.snap-on{ scroll-snap-type:y proximity; }
.stage{
  position:sticky; top:0;
  height:100svh; height:calc(var(--vh, 1svh) * 100); min-height:560px;
  overflow:hidden;
  background:var(--ink);
}
/* the film and the still frame both cover the stage, stacked */
.stage__poster,
.stage__film{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; object-position:50% 58%;
}
/* still frame under the film — the stage is never empty, even before the
   video lands. Desaturated so it reads as one monochrome surface. */
/* без цветокоррекции: кадр идёт ровно таким, каким снят */
.stage__poster{ filter:none; }
@media (min-width:768px){
  .stage__poster, .stage__film{ object-position:50% 50%; }
}
/* the film fades in over the still once it can actually play */
.stage__film{ opacity:0; transition:opacity .8s var(--ease); }
.stage.has-video .stage__film{ opacity:1; }

/* last resort: no video AND no poster */
.stage__fallback{
  position:absolute; inset:0; opacity:0;
  transition:opacity .8s var(--ease);
  background:
    radial-gradient(120% 78% at 50% 108%, rgba(140,144,148,.30) 0%, rgba(20,22,24,0) 62%),
    radial-gradient(60% 42% at 50% 46%, rgba(190,195,200,.10) 0%, rgba(10,10,11,0) 70%),
    linear-gradient(180deg, #0A0A0B 0%, #121416 52%, #08090A 100%);
}
.stage.no-poster .stage__fallback{ opacity:1; }
/* видео не пришло: остаётся постер и небольшая кнопка повтора над панелью глав */
.stage__retry{
  display:none; position:absolute; z-index:8; left:50%; bottom:clamp(120px,16vh,170px); transform:translateX(-50%);
  padding:12px 18px; min-height:44px; border:1px solid rgba(237,234,228,.4); border-radius:999px;
  background:rgba(10,10,11,.72); color:var(--bone); font-size:13px; letter-spacing:.04em; white-space:nowrap;
}
.stage.film-error .stage__retry{ display:block; }

/* vignette — top and bottom weight, independent of the overall darkness */
.stage__vignette{
  position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg,
    rgba(6,7,8,.46) 0%, rgba(6,7,8,.12) 22%,
    rgba(6,7,8,0) 42%, rgba(6,7,8,0) 80%, rgba(6,7,8,.34) 100%);
}

/* Затемнение идёт слева направо: плотное под текстом, к правому краю сходит
   на нет, чтобы автомобиль оставался ярким. Плотность всего слоя ведёт
   js/experience.js по ходу прокрутки. */
.stage__veil{
  position:absolute; inset:0; pointer-events:none;
  /* 80°, а не ровно 90°: ось чуть завалена вверх, поэтому к низу кадра
     затемнение плотнее, а к верху слабее */
  background:linear-gradient(80deg,
    rgba(6,8,10,1)   0%,
    rgba(6,8,10,.94) 16%,
    rgba(6,8,10,.66) 30%,
    rgba(6,8,10,.22) 42%,
    rgba(6,8,10,0)   54%);
}
/* зеркальный слой: плотный справа, к левому краю сходит на нет.
   Два слоя гасятся перекрёстно, поэтому затемнение переезжает на ту сторону,
   где сейчас текст — вместе с его появлением. */
.stage__veil--right{
  background:linear-gradient(280deg,
    rgba(6,8,10,1)   0%,
    rgba(6,8,10,.94) 16%,
    rgba(6,8,10,.66) 30%,
    rgba(6,8,10,.22) 42%,
    rgba(6,8,10,0)   54%);
}
/* на узком экране текст лежит поверх всего кадра — там градиент вертикальный,
   и оба слоя одинаковы: их сумма даёт ту же плотность */
@media (max-width:767px){
  .stage__veil,
  .stage__veil--right{
    background:linear-gradient(180deg,
      rgba(6,8,10,.86) 0%, rgba(6,8,10,.62) 45%, rgba(6,8,10,.30) 70%, rgba(6,8,10,.10) 100%);
  }
}
.stage__veil--flat{
  position:absolute; inset:0; pointer-events:none;
  background:var(--ink);
}

/* ============================================================
   BANNER COPY — one type scale for every block that the film
   swaps in and out. The hero and all five scenes share the same
   column width, the same sizes and the same weights, so nothing
   jumps in size as the animation moves between them.
   ============================================================ */
:root{
  --banner-top:    24%;                        /* same vertical anchor */
  --banner-w:      min(780px, 53vw);           /* same column width, right-anchored */
  --banner-title:  clamp(34px, 4.6vw, 66px);   /* same headline size */
  --banner-eyebrow:17px;
  --banner-body:   19px;
  --banner-terms:  17px;
}

.hero,
.scene__copy{
  position:absolute; top:var(--banner-top);
  left:var(--gutter); width:var(--banner-w); max-width:calc(100% - var(--gutter) * 2);
}
.hero{ z-index:4; will-change:opacity, transform; }
/* заголовок героя крупнее сценных — колонка шире в той же пропорции,
   чтобы строки ломались так же, как раньше */
@media (min-width:768px){ .hero{ width:calc(var(--banner-w) * 1.12); } }
/* на невысоких экранах блок героя поднимается, чтобы опущенные кнопки
   не упирались в нижнюю панель с главами */
@media (min-width:768px) and (max-height:760px){ .hero{ top:19%; } }
/* кнопки вводного блока — у нижнего края, над полосой глав: машина в кадре
   стоит до ~77 % высоты, и привязка к низу держит их под ней на любом экране
   и при любой высоте заголовка (у ME он выше из-за интервала под Š Ć) */
@media (min-width:768px){
  .hero{ bottom:clamp(116px, 14.5vh, 160px); display:flex; flex-direction:column; }
  .hero > .hero__actions{ margin-top:auto; padding-top:24px; }
}
/* scenes marked --right sit hard against the right gutter, clearing the left
   of the frame for the film to show what the block is describing. The text is
   right-aligned too: left-aligned copy inside a right-anchored column just
   reads as centred, because a short line never reaches the right edge. */
.scene--right .scene__copy{ left:auto; right:var(--gutter); text-align:right; }
.scene--right .scene__terms{ justify-content:flex-end; }


/* --- the four shared registers --- */
.hero__eyebrow,
.scene__eyebrow{
  font-family:var(--body);
  font-size:var(--banner-eyebrow); font-weight:600; letter-spacing:.07em;
  line-height:1.5; color:var(--bone); margin:0 0 28px;
}
.hero__title,
.scene__title{
  font-family:var(--display); font-weight:600; text-transform:uppercase;
  font-size:var(--banner-title); line-height:1.02; letter-spacing:-.035em;
  margin:0; color:var(--bone);
}
.scene__title{ margin:26px 0; }
/* заголовок героя — почти белый, вторая строка лишь чуть тише, и мягкая
   тень отделяет буквы от светлых участков кадра (красная машина, небо) */
.hero__title{ font-size:calc(var(--banner-title) * 1.12); color:#FAF8F4; text-shadow:0 2px 28px rgba(0,0,0,.35); }
.hero__title span{ color:#ECEAE4; }

.hero__sub,
.scene__desc{
  font-family:var(--body); font-size:var(--banner-body); font-weight:400;
  line-height:1.5; color:var(--bone); margin-top:26px;
}
.scene__desc{ margin-top:0; }
.hero__sub i{ font-style:normal; padding:0 9px; color:#999E96; }
.hero__eyebrow i{ font-style:normal; padding:0 .45em; color:#999E96; }
/* the hero line is a sentence now: keep it short enough to stay off the car */
.hero__sub{ max-width:40ch; text-shadow:var(--legible); }

.scene__terms{
  display:flex; flex-wrap:wrap; gap:16px; margin-top:30px; padding-top:22px;
  border-top:1px solid var(--rule);
  font-family:var(--body); font-size:var(--banner-terms); font-weight:400; color:var(--bone-2);
}
.scene__terms li + li::before{ content:"/ "; padding-right:10px; color:#888C82; }

/* --- actions --- */
.hero__actions{ margin-top:clamp(56px,8vh,84px); display:flex; align-items:center; gap:29px; flex-wrap:wrap; }
.hero__actions .btn{
  justify-content:space-between; gap:34px; padding:16px 18px;
  font-family:var(--body); font-size:13px; font-weight:500; letter-spacing:.02em;
  text-transform:none; min-height:48px; border-color:transparent;
}
.hero__actions .btn span{ font-size:17px; line-height:10px; }
.hero__actions .btn .cta-l, .hero__actions .btn .cta-s{ font-size:inherit; line-height:inherit; }
.cta-s{ display:none; }
.textlink{
  display:inline-flex; align-items:center; gap:19px;
  padding:10px 0; font-size:13px; letter-spacing:.02em; color:var(--bone);
}
.textlink span{ font-size:16px; }
.textlink:hover{ text-decoration:underline; text-underline-offset:6px; }

/* ---- scene layer ---- */
.scenes{ position:absolute; inset:0; z-index:3; pointer-events:none; }
.scene{ position:absolute; inset:0; opacity:0; visibility:hidden; will-change:opacity; }

/* ---- annotation: a hairline out to a ringed point on the body ---- */
/* Кольцо — точка привязки: left/top выставляет js/experience.js в пиксели
   по координатам кадра видео, а сдвиг ставит центр кольца ровно в эту точку. */
.annotation{
  position:absolute; left:0; top:0; display:flex; align-items:center; gap:12px;
  transform:translate(-4px, -50%);
  font-family:var(--body); font-size:14px; font-weight:500; letter-spacing:.06em; color:var(--bone); white-space:nowrap;
}
.annotation span{ width:65px; height:1px; background:#A6AAA0; position:relative; }
.annotation span::before{
  content:""; position:absolute; left:0; top:-3px; width:7px; height:7px;
  border:1px solid #CFD3C8; border-radius:50%;
}
/* подпись слева от кольца — для сцен, где текст стоит справа */
.annotation--rev{ flex-direction:row-reverse; transform:translate(calc(-100% + 4px), -50%); }
.annotation--rev span::before{ left:auto; right:0; }
.annotation b{ font-weight:inherit; }
.annotation b i{ font-style:normal; }
.annotation .an-s{ display:none; }
/* на средних экранах длинная подпись переносится, а не упирается в край */
@media (max-width:1180px){
  .annotation b{ white-space:normal; max-width:17ch; line-height:1.3; }
  .annotation--rev b{ text-align:right; }
}
@media (max-width:1000px){ .annotation span{ width:38px; } }
/* телефон: выноска компактнее, но остаётся — кольцо стоит на детали ремонта */
/* телефон: короткая подпись в одну строку (максимум две), 13 px — читается;
   линия-указатель короткая и не заходит под текст */
@media (max-width:890px){
  .annotation{ gap:8px; font-size:13px; font-weight:600; letter-spacing:.04em; }
  .annotation span{ width:24px; flex:none; }
  .annotation b{ max-width:12em; line-height:1.25; text-wrap:balance; text-shadow:0 1px 3px rgba(0,0,0,.8), 0 0 14px rgba(0,0,0,.55); }
  .annotation .an-l{ display:none; }
  .annotation .an-s{ display:inline; }
}

/* ---- HUD: top readout, clickable chapter bar, progress ---- */
.hud{ position:absolute; inset:0; z-index:6; pointer-events:none; }
.hud__top{
  position:absolute; top:clamp(74px,9.2vh,102px); left:var(--gutter); right:var(--gutter);
  display:flex; justify-content:space-between; gap:20px;
  opacity:0; transition:opacity .6s var(--ease);
}
.hud.is-live .hud__top{ opacity:1; }

/* bottom bar — scroll cue · chapters · location */
.filmbar{
  position:absolute; left:var(--gutter); right:var(--gutter);
  bottom:clamp(28px,4.4vh,44px); z-index:7;
  display:flex; align-items:flex-end; justify-content:space-between; gap:clamp(12px,3vw,40px);
}
.filmbar__cue{
  display:flex; align-items:center; gap:26px;
  font-size:15px; letter-spacing:.06em; color:var(--bone-2); text-shadow:var(--legible);
}
.filmbar__cue i{ font-style:normal; font-size:22px; line-height:1; }

.filmbar__nav{ display:flex; gap:5px; pointer-events:auto; }
.filmbar__nav button{
  /* служебная навигация: вдвое мельче и приглушена — внимание на себя не тянет */
  display:flex; align-items:center; gap:7px;
  min-width:46px; min-height:48px; padding:13px 8px 0;
  border-top:1px solid rgba(237,234,228,.22);
  font-size:10px; letter-spacing:.06em; color:var(--metal); text-shadow:var(--legible);
  transition:color .4s var(--ease), border-color .4s var(--ease);
}
.filmbar__nav button:hover{ color:var(--bone-2); border-top-color:var(--metal); }
.filmbar__nav button.is-on{ color:var(--bone-2); border-top-color:var(--bone-2); }
.filmbar__nav .nm{ display:none; white-space:nowrap; }
.filmbar__nav button.is-on .nm{ display:inline; }

.filmbar__loc{
  font-size:15px; letter-spacing:.06em; color:var(--bone);
  text-align:right; line-height:1.8; text-shadow:var(--legible);
}
.filmbar__loc span{ display:block; font-size:13px; color:var(--bone-2); letter-spacing:.04em; }

@media (max-width:860px){
  .filmbar{ display:grid; grid-template-columns:1fr auto; gap:14px; bottom:22px; }
  .filmbar__nav{ grid-row:1; grid-column:1/3; justify-content:space-between; }
  .filmbar__nav button{ flex:1; justify-content:center; min-height:44px; }
  .filmbar__cue{ font-size:12px; gap:10px; }
  .filmbar__loc span{ display:none; }
}

/* progress hairline, flush to the bottom edge */
.hud__bar{
  position:absolute; left:0; right:0; bottom:0;
  height:2px; background:rgba(237,234,228,.10);
}
.hud__bar i{
  position:absolute; inset:0; width:100%;
  background:var(--bone);
  transform:scaleX(0); transform-origin:left;
}
.hud__bar b{
  position:absolute; bottom:9px; left:0;
  font-family:var(--mono); font-size:13px; font-weight:400; letter-spacing:.12em; color:var(--metal);
  transform:translateX(-50%); white-space:nowrap;
  font-variant-numeric:tabular-nums; opacity:0; transition:opacity .6s var(--ease);
}
.hud.is-live .hud__bar b{ opacity:1; }

/* ============================================================
   9. CONTENT SECTIONS
   ============================================================ */

/* disciplines index */
.index{ border-top:1px solid var(--rule); }
.index__row{
  display:grid; gap:6px 32px; align-items:baseline;
  grid-template-columns:minmax(0,1fr);
  padding-block:clamp(22px,3.2vw,40px);
  border-bottom:1px solid var(--rule-2);
  position:relative;
}
/* Сдвиг при наведении — через transform: он не меняет ширину колонок,
   поэтому название не переносится на другую строку во время анимации
   (раньше padding-left сужал колонку и «Подготовка к продаже» ломалась). */
.index__n, .index__t, .index__d{ transition:transform .6s var(--ease); }
@media (min-width:860px){
  .index__row{ grid-template-columns:76px minmax(0,1fr) minmax(0,36ch) 120px; align-items:center; }
  .index__row:hover .index__n,
  .index__row:hover .index__t,
  .index__row:hover .index__d{ transform:translateX(14px); }
}
/* на 860–1200 px описание в 36 знаков забирало почти всю строку, и названию
   оставалось ~170 px: «Подготовка к продаже» рассыпалась на четыре строки */
@media (min-width:860px) and (max-width:1199px){
  .index__row{ grid-template-columns:48px minmax(0,1.15fr) minmax(0,1fr) 100px; column-gap:24px; }
}
.index__row::after{
  content:""; position:absolute; left:0; bottom:-1px; width:0; height:1px;
  background:var(--bone); transition:width .7s var(--ease-io);
}
.index__row:hover::after{ width:100%; }
.index__n{ font-family:var(--mono); font-size:14px; letter-spacing:.13em; color:var(--metal); }
.index__t{ font-family:var(--display); text-transform:uppercase; font-weight:500;
  font-size:clamp(1.5rem,3.4vw,2.5rem); letter-spacing:-.028em; line-height:1; }
.index__d{ font-size:1.05rem; color:var(--metal); }
.index__go{ justify-self:start; }
@media (min-width:860px){ .index__go{ justify-self:end; } }

/* work grid */
.work{ display:grid; gap:clamp(34px,5vw,80px) clamp(22px,2.6vw,40px); grid-template-columns:minmax(0,1fr); }
@media (min-width:760px){ .work{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
.work__item{ display:block; }
.work__item--wide{ grid-column:1/-1; }
.frame{
  position:relative; overflow:hidden; background:var(--graphite);
  margin:0;
}
.frame::before{ content:""; display:block; padding-top:66%; }
.frame--tall::before{ padding-top:124%; }
.frame--wide::before{ padding-top:46%; }
.frame > img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transform:scale(1.02); transition:transform 1.2s var(--ease-io), filter 1.2s var(--ease);
  filter:saturate(.86) contrast(1.04);
}
.work__item:hover .frame > img{ transform:scale(1.06); filter:saturate(1) contrast(1.06); }
.frame.is-empty{
  background:
    radial-gradient(110% 80% at 50% 104%, rgba(140,144,148,.26) 0%, rgba(22,24,26,0) 68%),
    linear-gradient(160deg,#24282C 0%,#15181B 58%,#0E1012 100%);
}
.frame.is-empty::after{
  content:attr(data-slot);
  position:absolute; left:16px; bottom:14px;
  font-family:var(--mono); font-size:9.5px; letter-spacing:.13em; color:rgba(140,144,148,.5);
}
.frame.is-empty::before{ content:""; }
.frame.is-empty i.hair{ position:absolute; inset:14px; border:1px solid rgba(237,234,228,.06); }
/* contact: Google map in the old map frame. Inverted to a dark map; hue-rotate brings
   the colours back, so the red pin stays red. Full colour on hover/focus */
.gmap iframe{
  position:absolute; inset:0; width:100%; height:100%; border:0;
  filter:invert(.9) hue-rotate(180deg) saturate(.7) contrast(.95);
  transition:filter .5s var(--ease);
}
.gmap:hover iframe, .gmap:focus-within iframe{ filter:none; }
.gmap__link{ margin-top:16px; }
.work__meta{
  display:flex; align-items:baseline; justify-content:space-between; gap:20px;
  padding-top:16px; margin-top:16px; border-top:1px solid var(--rule);
}
.work__name{ font-family:var(--display); text-transform:uppercase; font-weight:500;
  font-size:clamp(1.05rem,1.7vw,1.4rem); letter-spacing:-.02em; line-height:1.05; }
.work__scope{ font-family:var(--mono); font-size:13px; letter-spacing:.12em; color:var(--metal); text-align:right; }

/* before/after slider in a work card — same frame ratio as the other cards */
.cmp{
  --pos:50%; position:relative; overflow:hidden; aspect-ratio:1600 / 1060; background:var(--graphite);
  cursor:ew-resize; touch-action:pan-y; user-select:none; -webkit-user-select:none;
}
.cmp--wide{ aspect-ratio:2400 / 1100; }
.is-cmp-drag, .is-cmp-drag *{ user-select:none !important; -webkit-user-select:none !important; cursor:ew-resize; }
/* on a phone a 2.2:1 strip is too low to drag comfortably — same frame as the other cards */
@media (max-width:767px){ .cmp--wide{ aspect-ratio:1600 / 1060; } }
/* paint card: the two shots are registered on one 1086×1448 canvas (primer and paint taken
   from the same spot), so both layers share one crop — object-position keeps the whole
   rear quarter in frame: top rail, corner, lamp holes, wheel arch */
.cmp--paint{ aspect-ratio:1.45; }
.cmp--paint img{ object-position:50% 72%; }
@media (max-width:767px){ .cmp--paint{ aspect-ratio:4 / 5; } .cmp--paint img{ object-position:50% 50%; } }
/* soft-top card: «before» was scaled 1.017× and turned −0.43° onto the «after» frame
   (seam and glass edge as control points), both cropped to one 630×1078 canvas without
   the baked-in ДО/ПОСЛЕ labels; the frame keeps the seam, glass edge and worn patch */
.cmp--roof img{ object-position:50% 44%; }
@media (max-width:767px){ .cmp--roof{ aspect-ratio:4 / 5; } .cmp--roof img{ object-position:50% 43%; } }
.cmp img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; pointer-events:none; -webkit-user-drag:none; }
.cmp__before{ position:absolute; inset:0; clip-path:inset(0 calc(100% - var(--pos)) 0 0); }
/* .ba__tag is declared further down; the .cmp prefix keeps «after» pinned right, not stretched */
.cmp .cmp__tag{ z-index:2; }
.cmp .cmp__tag--after{ left:auto; right:clamp(10px,1.2vw,16px); }
.cmp__line{ position:absolute; top:0; bottom:0; left:var(--pos); width:2px; margin-left:-1px; background:var(--bone); z-index:2; pointer-events:none; }
.cmp__knob{
  position:absolute; top:50%; left:var(--pos); width:46px; height:46px; margin:-23px 0 0 -23px; z-index:3;
  display:grid; place-items:center; border-radius:50%; background:var(--bone); color:var(--ink);
  font-size:18px; line-height:1; letter-spacing:.1em; box-shadow:0 2px 14px rgba(0,0,0,.35); pointer-events:none;
}
/* the range only serves the keyboard and screen readers; the pointer drives the slider itself */
.cmp__range{ position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; pointer-events:none; }
.cmp__range:focus-visible ~ .cmp__knob,
.cmp:has(.cmp__range:focus-visible) .cmp__knob{ outline:2px solid var(--bone); outline-offset:4px; }
a.work__name:hover{ color:var(--metal); }

/* ---------- home: leather before/after row ----------
   Copy + caption/tags on the left, the comparison on the right, both on the page grid
   and top-aligned; no fixed heights — the row is as tall as its content. The pair is
   registered on one 1086×1448 canvas; only the clip of «before» moves. */
.lban__grid{
  display:grid; grid-template-columns:minmax(0,1fr); gap:clamp(22px,3vw,40px);
  grid-template-areas:"meta" "cmp" "copy";
}
@media (min-width:900px){
  .lban__grid{
    grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); column-gap:clamp(32px,4.4vw,72px); row-gap:0;
    grid-template-areas:"copy cmp" "meta cmp"; grid-template-rows:auto 1fr; align-items:start;
  }
}
.lban__copy{ grid-area:copy; }
.lban__meta{ grid-area:meta; }
@media (min-width:900px){ .lban__meta{ margin-top:clamp(36px,4.4vw,60px); } }
.cmp--banner{ grid-area:cmp; aspect-ratio:4 / 5; }
@media (min-width:900px){ .cmp--banner{ aspect-ratio:1 / 1; } }
/* wide screens: a little wider than tall, so the comparison ends level with the tags */
@media (min-width:1200px){ .cmp--banner{ aspect-ratio:5 / 4; } }
/* tighter than a regular section: the row should read as one compact block */
.section.lban{ padding-block:clamp(56px,7vw,112px); }
.cmp--banner img{ object-position:50% 50%; }
.cmp--banner .cmp__tag{ padding:8px 12px; font-size:12px; }
.cmp--banner .cmp__knob{ width:56px; height:56px; margin:-28px 0 0 -28px; font-size:20px; }
.lban__eyebrow{
  font-family:var(--body); font-size:var(--banner-eyebrow); font-weight:600; letter-spacing:.07em;
  text-transform:uppercase; color:var(--bone); margin:0 0 clamp(18px,2vw,26px);
}
.lban__title{
  font-family:var(--display); font-weight:600; text-transform:uppercase; margin:0;
  font-size:calc(var(--banner-title) * 1.12); line-height:1.02; letter-spacing:-.035em; color:#FAF8F4;
}
.lban__text{
  margin:clamp(18px,2vw,26px) 0 0; max-width:40ch; font-family:var(--body); font-size:var(--banner-body);
  font-weight:400; line-height:1.5; color:var(--bone-2);
}
.lban__cta{ margin-top:clamp(24px,3vw,40px); }
@media (max-width:767px){ .lban__copy{ margin-top:6px; } .lban__cta{ width:100%; justify-content:center; } }
.lban__cap{ margin:0 0 14px; }
.lban__terms{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.lban__terms li{ padding:9px 14px; border:1px solid var(--rule); color:var(--bone); font-size:.95rem; line-height:1.25; white-space:nowrap; }

/* process */
.process{ display:grid; gap:0; border-top:1px solid var(--rule); }
.process__step{
  display:grid; gap:8px 32px; grid-template-columns:minmax(0,1fr);
  padding-block:clamp(24px,3.4vw,40px); border-bottom:1px solid var(--rule-2);
}
@media (min-width:860px){
  .process__step{ grid-template-columns:76px minmax(0,22ch) minmax(0,1fr); }
}
.process__t{ font-family:var(--display); text-transform:uppercase; font-weight:500;
  font-size:clamp(1.1rem,1.9vw,1.55rem); letter-spacing:-.022em; line-height:1.05; }
.process__d{ color:var(--metal); font-size:1.06rem; max-width:52ch; }

/* process — interactive: sticky frame + steps (home) */
.proc{ display:grid; gap:clamp(40px,5vw,96px); grid-template-columns:minmax(0,1fr); }
.proc__aside{ display:none; }
.proc__list{ border-top:1px solid var(--rule); }
.proc__step{
  display:grid; grid-template-columns:clamp(84px,10.5vw,158px) minmax(0,1fr); gap:6px clamp(16px,2vw,32px);
  align-items:start; padding-block:clamp(26px,3.4vw,44px); border-bottom:1px solid var(--rule-2);
}
.proc__pic{ grid-column:1/-1; width:100%; aspect-ratio:16/10; object-fit:cover; margin-bottom:14px; }
.proc__n{
  font-family:var(--display); font-weight:500; letter-spacing:-.05em; line-height:.8;
  font-size:clamp(3rem,6.4vw,6.4rem); color:var(--bone);
  font-variant-numeric:tabular-nums;
}
.proc__body{ display:grid; gap:14px; padding-top:.35em; }
/* текст этапа крупнее — в пару к большим номерам */
.proc__body .mono{ font-size:14px; }
.proc__body .process__t{ font-size:clamp(1.55rem,2.7vw,2.4rem); letter-spacing:-.025em; }
.proc__body .process__d{ font-size:clamp(1.12rem,1.35vw,1.35rem); line-height:1.5; max-width:40ch; }
@media (min-width:900px){
  .proc{ grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); align-items:start; }
  .proc__aside{ display:block; position:sticky; top:clamp(96px,14vh,150px); }
  .proc__media{ position:relative; aspect-ratio:4/3; overflow:hidden; margin:0; background:#dcd8d0; }
  .proc__img{
    position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
    opacity:0; transform:scale(1.045);
    transition:opacity .9s var(--ease), transform 1.6s var(--ease);
  }
  .proc__img.is-on{ opacity:1; transform:none; }
  .proc__meter{ display:flex; align-items:center; gap:14px; margin-top:18px;
    font-family:var(--mono); font-size:13px; letter-spacing:.12em; color:var(--metal); }
  .proc__track{ flex:1; height:1px; background:var(--rule); position:relative; overflow:hidden; }
  .proc__track i{ position:absolute; inset:0; background:var(--bone); transform-origin:0 50%;
    transform:scaleX(.2); transition:transform .8s var(--ease); }
  .proc__pic{ display:none; }
  .proc__step{ min-height:clamp(220px,34vh,340px); min-height:clamp(220px,34lvh,340px); align-content:center;
    opacity:.3; transition:opacity .6s var(--ease); }
  .proc__step.is-active{ opacity:1; }
}
@media (prefers-reduced-motion:reduce){ .proc__img{ transition:none; } .proc__step{ transition:none; } }

/* studio split */
.split{ display:grid; gap:clamp(30px,4vw,72px); grid-template-columns:minmax(0,1fr); align-items:start; }
@media (min-width:900px){ .split{ grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); } }
/* services: before / after pairs — two columns, before on the left */
.ba{ margin:0; }
.ba__grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(6px,.8vw,12px); }
.ba__cell{ position:relative; aspect-ratio:3 / 4; overflow:hidden; background:var(--graphite); }
.ba__cell img{ width:100%; height:100%; object-fit:cover; }
.ba__tag{
  position:absolute; top:clamp(10px,1.2vw,16px); left:clamp(10px,1.2vw,16px);
  padding:6px 10px; font-family:var(--mono); font-size:11px; letter-spacing:.14em; text-transform:uppercase;
  background:rgba(10,10,11,.74); color:var(--bone);
}
.ba__tag--after{ background:var(--bone); color:var(--ink); }
.ba__cap{ margin-top:14px; color:var(--metal); }
/* services: a short silent loop of our own work (vertical phone video, 4:5 crop) */
.clip{ margin:0; }
.clip__box{ position:relative; aspect-ratio:4 / 5; overflow:hidden; background:var(--graphite); }
.clip__v{ width:100%; height:100%; object-fit:cover; }
.clip__grid{ display:grid; grid-template-columns:minmax(0,1fr); gap:clamp(6px,.8vw,12px); }
/* two clips side by side: narrower, so a taller 3:4 frame */
.clip--pair .clip__grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.clip--pair .clip__box{ aspect-ratio:3 / 4; }
/* services: photo series (bumper repair) — square thumbnails in stage order */
.gal{ margin:0; }
/* under a clip (bumper repair): same spacing as the «before» row under the detailing clip */
.clip + .gal{ margin-top:clamp(18px,2vw,28px); }
.gal__grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(6px,.8vw,12px); }
.gal__grid--4{ grid-template-columns:repeat(4,minmax(0,1fr)); }
/* lead photo above the thumbs (paint correction): full width, its own proportions */
@media (max-width:480px){ .gal__grid--4{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
/* tags scale with the thumbnail and stay on one line; on very small thumbs the
   stage number is dropped (the order is already left to right) */
.gal__item{ container-type:inline-size; }
.gal__item .ba__tag{ white-space:nowrap; font-size:clamp(8px, 6.4cqi, 11px); letter-spacing:.1em; padding:.5em .8em; top:6cqi; left:6cqi; }
.gal__n{ font-weight:inherit; }
@container (max-width:150px){ .gal__n{ display:none; } }
.gal__item{ position:relative; display:block; aspect-ratio:1 / 1; overflow:hidden; background:var(--graphite); cursor:zoom-in; }
.gal__item img{ width:100%; height:100%; object-fit:cover; transition:transform 1.2s var(--ease-io); }
.gal__item:hover img, .gal__item:focus-visible img{ transform:scale(1.05); }
.gal__item:focus-visible{ outline:1px solid var(--bone); outline-offset:3px; }
.gal__zoom{
  position:absolute; right:clamp(8px,1vw,14px); bottom:clamp(8px,1vw,14px); width:30px; height:30px;
  display:grid; place-items:center; background:rgba(10,10,11,.66); color:var(--bone);
  font:300 20px/1 var(--body); opacity:.85; transition:opacity .3s;
}
.gal__item:hover .gal__zoom{ opacity:1; }
@media (max-width:420px){ .gal__zoom{ width:24px; height:24px; font-size:16px; right:6px; bottom:6px; } }

/* full-size viewer (one <dialog> shared by every gallery on the page) */
.lbox{
  width:100vw; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0;
  background:rgba(6,7,8,.96); color:var(--bone); overflow:hidden;
}
.lbox::backdrop{ background:rgba(6,7,8,.96); }
.lbox[open]{ display:grid; grid-template-rows:1fr auto; }
.lbox__stage{ position:relative; display:grid; place-items:center; min-height:0; padding:clamp(56px,7vh,80px) clamp(16px,8vw,120px) 12px; touch-action:pan-y; }
/* the stage row has no definite height for a % max-height, so the photo is capped by the
   viewport minus the top gap and the caption bar */
.lbox__img{ max-width:100%; max-height:calc(100dvh - 170px); width:auto; height:auto; object-fit:contain; user-select:none; -webkit-user-drag:none; }
.lbox__bar{ display:flex; align-items:center; justify-content:center; gap:18px; padding:14px var(--gutter) max(18px, env(safe-area-inset-bottom)); text-align:center; }
.lbox__cap{ font-size:15px; color:var(--bone-2); }
.lbox__count{ font-family:var(--mono); font-size:12px; letter-spacing:.14em; color:var(--metal); white-space:nowrap; }
.lbox__btn{
  display:grid; place-items:center; width:48px; height:48px; padding:0; border-radius:50%;
  border:1px solid rgba(237,234,228,.3); background:rgba(10,10,11,.5); color:var(--bone); font-size:22px; line-height:1;
  transition:border-color .25s, background .25s;
}
.lbox__btn:hover, .lbox__btn:focus-visible{ border-color:var(--bone); background:rgba(10,10,11,.85); }
.lbox__close{ position:absolute; top:16px; right:var(--gutter); z-index:2; }
.lbox__prev, .lbox__next{ position:absolute; top:50%; margin-top:-24px; z-index:2; }
.lbox__prev{ left:var(--gutter); }
.lbox__next{ right:var(--gutter); }
@media (max-width:767px){
  .lbox__stage{ padding:64px 0 8px; }
  .lbox__img{ max-height:calc(100dvh - 230px); }
  .lbox__prev, .lbox__next{ top:auto; bottom:14px; margin:0; position:fixed; }
  .lbox__bar{ padding-bottom:max(76px, env(safe-area-inset-bottom)); }
}
html.lbox-open{ overflow:hidden; }

/* three portrait clips: the frame follows the video (no crop) */
.clip--trio .clip__grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.clip--whole .clip__v{ object-fit:contain; background:var(--ink); }
.clip__cap{ margin-top:14px; color:var(--metal); }
/* «before» photos under the clip: three in a row */
.ba--row{ margin-top:clamp(18px,2vw,28px); }
.ba--row .ba__grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
@media (max-width:420px){ .ba--row .ba__tag{ top:6px; left:6px; padding:4px 7px; font-size:10px; } }
/* a service without its own photo: the facts stay in the right column */
@media (min-width:900px){ .split--solo > *{ grid-column:2; } }
.factlist{ border-top:1px solid var(--rule); }
.factlist li{
  display:flex; align-items:baseline; justify-content:space-between; gap:24px;
  padding-block:14px; border-bottom:1px solid var(--rule-2);
}
.factlist dt,.factlist b{ font-family:var(--mono); font-weight:400; font-size:13px; letter-spacing:.12em; text-transform:uppercase; color:var(--metal); }
.factlist em{ font-style:normal; font-size:1.06rem; color:var(--bone); text-align:right; }
/* главная, «Всё в одном месте»: услуга слева в своей колонке, пояснение —
   обычным абзацем по левому краю; на узких экранах одно под другим */
.factlist--scope{ display:grid; grid-template-columns:max-content minmax(0,1fr); column-gap:28px; }
.factlist--scope li{
  grid-column:1 / -1; display:grid; grid-template-columns:subgrid;
  row-gap:6px; padding-block:18px;
}
.factlist--scope b{ white-space:nowrap; }
.factlist--scope em{ text-align:left; line-height:1.4; }
@media (max-width:560px){
  .factlist--scope{ grid-template-columns:minmax(0,1fr); }
  .factlist--scope b{ white-space:normal; }
}

/* quote / statement */
.statement{
  font-family:var(--display); text-transform:uppercase; font-weight:400;
  font-size:clamp(1.55rem,4.2vw,3.4rem); letter-spacing:-.03em; line-height:1.12;
  max-width:22ch;
}
.statement em{ font-style:normal; color:var(--metal-dim); }

/* estimate / contact */
/* контакты: главный путь — фото в WhatsApp, форма ниже и спокойнее */
.contact__lede2{ margin:18px 0 0; max-width:52ch; color:var(--bone-2); font-weight:300; line-height:1.55; font-size:clamp(1rem,1.2vw,1.12rem); }
.contact__cta{ display:flex; flex-wrap:wrap; align-items:center; gap:18px clamp(24px,3vw,44px); margin-top:clamp(30px,3.6vw,48px); }
.btn--xl{ padding:22px 34px; font-size:15px; gap:16px; }
.btn--xl .wa{ width:24px; height:24px; }
.contact__num{ display:grid; gap:6px; font-size:clamp(1.15rem,1.6vw,1.45rem); color:var(--bone); }
.contact__num .mono{ font-size:12px; }
.contact__num:hover{ color:var(--metal); }
.contact__note{ margin:22px 0 0; color:var(--bone-2); max-width:52ch; line-height:1.5; }
.contact__exact{ margin:10px 0 0; font-size:12px; letter-spacing:.12em; }
.contact__formtitle{ margin:0 0 clamp(20px,2.4vw,32px); color:var(--bone); }
@media (max-width:560px){ .btn--xl{ width:100%; justify-content:center; padding:20px 14px; font-size:13px; letter-spacing:.07em; gap:12px; } .btn--xl .arw{ display:none; } }
.form{ display:grid; gap:0; border-top:1px solid var(--rule); }
.field{ position:relative; border-bottom:1px solid var(--rule-2); }
@media (min-width:700px){
  .form{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .field--full{ grid-column:1/-1; }
  .form > .field:nth-child(even){ border-left:1px solid var(--rule-2); }
  .form > .field:nth-child(even) .field__in{ padding-left:clamp(16px,2vw,28px); }
  .form > .field--full{ border-left:0 !important; }
  .form > .field--full .field__in{ padding-left:0 !important; }
}
.field__in{ display:block; padding:18px 0 16px; }
.field label{
  display:block; font-family:var(--mono); font-size:13px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--metal); margin-bottom:10px;
}
.field input,.field select,.field textarea{
  width:100%; background:transparent; border:0; color:var(--bone);
  font-family:var(--body); font-size:1.12rem; font-weight:300; padding:0;
  appearance:none; border-radius:0;
}
.field textarea{ resize:vertical; min-height:88px; line-height:1.5; }
.field input::placeholder,.field textarea::placeholder{ color:var(--metal-dim); }
.field select option{ background:var(--graphite); color:var(--bone); }
.field.is-bad{ border-bottom-color:var(--signal); }
.form__foot{ display:flex; flex-wrap:wrap; gap:20px; justify-content:space-between; align-items:center; padding-top:26px; }
.form__note{ font-family:var(--mono); font-size:13px; letter-spacing:.1em; color:var(--metal); max-width:44ch; line-height:1.7; }
.form__ok{
  grid-column:1/-1; padding:18px 0; font-family:var(--mono); font-size:14px;
  letter-spacing:.11em; text-transform:uppercase; color:var(--bone);
  display:none;
}
.form.is-sent .form__ok{ display:block; }

/* big CTA band */
.band{ border-top:1px solid var(--rule); border-bottom:1px solid var(--rule); }
.band__in{ display:grid; gap:clamp(24px,3vw,48px); align-items:end; grid-template-columns:minmax(0,1fr); padding-block:clamp(56px,8vw,110px); }
@media (min-width:900px){ .band__in{ grid-template-columns:minmax(0,1fr) auto; } }
.band__in .lede{ max-width:34ch; }
.band__note{ margin:16px 0 0; max-width:40ch; color:var(--metal); font-size:.95rem; line-height:1.5; }

/* ---------- photo sections (home) ----------
   Кадр из ролика на всю ширину. Затемнение только там, где текст (слева),
   а верх и низ фото растворяются в фон страницы — без резких границ. */
.photo{ position:relative; overflow:hidden; isolation:isolate; }
.photo__img{
  position:absolute; inset:0; width:100%; height:100%; z-index:-2;
  object-fit:cover; object-position:70% 50%;
}
.photo__veil{
  position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:
    linear-gradient(180deg, var(--ink) 0%, rgba(10,10,11,0) 22%, rgba(10,10,11,0) 78%, var(--ink) 100%),
    linear-gradient(90deg, rgba(10,10,11,.88) 0%, rgba(10,10,11,.62) 38%, rgba(10,10,11,.12) 72%, rgba(10,10,11,0) 100%);
}
.photo--statement{
  min-height:clamp(520px, 92vh, 980px); min-height:clamp(520px, calc(var(--vh, 1lvh) * 92), 980px);
  display:flex; align-items:center;
}
.photo--statement .shell{ width:100%; }
.photo--statement .statement em{ color:rgba(237,234,228,.62); }

/* Заявление на фото — две главные части одного кегля: подводка набрана
   полужирным, развязка — жирным и чуть крупнее, между ними тонкая
   строчная связка после волосяной линейки. */
.claim{
  font-family:var(--display); color:var(--bone); margin:0;
  text-shadow:0 2px 28px rgba(0,0,0,.38);
}
.claim > span{ display:block; }
.claim__lead{
  font-weight:600; text-transform:uppercase;
  font-size:clamp(2rem,4.4vw,4.6rem); letter-spacing:-.03em; line-height:.98;
}
.claim__link{
  font-weight:300; text-transform:lowercase;
  font-size:clamp(1.05rem,2vw,2rem); letter-spacing:-.01em; line-height:1.1;
  color:rgba(237,234,228,.78);
  margin-top:clamp(10px,1.1vw,18px);
}
.claim__link::before{
  content:""; display:inline-block; vertical-align:middle;
  width:clamp(28px,4.2vw,72px); height:1px; margin:0 .55em .12em 0;
  background:currentColor; opacity:.7;
}
.claim__big{
  font-weight:800; text-transform:uppercase;
  font-size:clamp(2.1rem,4.9vw,5.1rem); letter-spacing:-.035em; line-height:.98;
  margin-top:clamp(6px,.8vw,14px);
}

/* строки появляются по очереди, вслед за самим блоком */
.claim > span{ opacity:0; transform:translateY(22px); }
.claim.is-in > span{ opacity:1; transform:none; transition:opacity .9s var(--ease), transform 1s var(--ease); }
.claim.is-in > .claim__link{ transition-delay:.14s; }
.claim.is-in > .claim__big{ transition-delay:.28s; }
@media (max-width:767px){
  .claim__lead{ font-size:clamp(1.8rem,8.6vw,2.6rem); }
  .claim__link{ font-size:clamp(1rem,4.6vw,1.3rem); }
  .claim__big{ font-size:clamp(1.9rem,9.2vw,2.8rem); }
}

@media (max-width:767px){
  .photo__img{ object-position:78% 50%; }
  .photo__veil{
    background:
      linear-gradient(180deg, var(--ink) 0%, rgba(10,10,11,.35) 25%, rgba(10,10,11,.55) 70%, var(--ink) 100%);
  }
}

/* ---------- on-site service (home) ----------
   «Мы приедем к вам»: четыре шага маршрута детали — от клиента в мастерскую
   и обратно, под ними «машина остаётся у вас» и большой вход в WhatsApp. */
.onsite__tag{
  display:inline-flex; align-items:center; gap:14px; margin:clamp(16px,1.8vw,24px) 0 0;
  font-family:var(--mono); font-size:clamp(13px,1.05vw,15px); letter-spacing:.14em; text-transform:uppercase;
  color:var(--bone); padding:10px 16px 10px 14px; border:1px solid var(--rule);
}
.onsite__tag i{ position:relative; width:10px; height:10px; border-radius:50%; background:var(--bone); flex:none; }
.onsite__tag i::before,
.onsite__tag i::after{
  content:""; position:absolute; inset:-1px; border-radius:50%;
  border:1.5px solid var(--bone); opacity:0;
  animation:onsite-pulse 2.2s cubic-bezier(.2,.6,.3,1) infinite;
}
.onsite__tag i::after{ animation-delay:1.1s; }
/* кольца скромнее, чем у метки на карте — не выходят за рамку метки */
@keyframes onsite-pulse{ 0%{ transform:scale(1); opacity:.9; } 70%{ opacity:.2; } 100%{ transform:scale(3); opacity:0; } }

.onsite__steps{
  list-style:none; margin:clamp(48px,6vw,96px) 0 0; padding:0;
  display:grid; grid-template-columns:minmax(0,1fr); gap:0 clamp(20px,2.4vw,40px);
}
@media (min-width:600px){ .onsite__steps{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (min-width:1100px){ .onsite__steps{ grid-template-columns:repeat(4,minmax(0,1fr)); } }
.onsite__step{
  position:relative; padding:clamp(22px,2.4vw,32px) 0 clamp(30px,3vw,44px);
  border-top:1px solid var(--rule);
}
.onsite__ico{
  display:block; width:34px; height:34px; margin-bottom:clamp(22px,2.6vw,38px);
  fill:none; stroke:var(--bone); stroke-width:1.3; stroke-linecap:round; stroke-linejoin:round;
}
.onsite__step .mono{ display:block; margin-bottom:10px; }
.onsite__t{
  margin:0 0 12px; font-family:var(--display); font-weight:500; text-transform:uppercase;
  font-size:clamp(1.3rem,1.7vw,1.6rem); line-height:1.08; letter-spacing:-.02em; color:var(--bone);
}
.onsite__step p{ margin:0; color:var(--bone-2); font-weight:300; line-height:1.55; max-width:30ch; }

.onsite__foot{
  display:grid; grid-template-columns:minmax(0,1fr); gap:clamp(36px,4vw,72px);
  margin-top:clamp(40px,5vw,80px); padding-top:clamp(36px,4vw,60px); border-top:1px solid var(--rule);
}
@media (min-width:900px){ .onsite__foot{ grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); align-items:start; } }
.onsite__keep{
  margin:0 0 16px; font-family:var(--display); font-weight:500; text-transform:uppercase;
  font-size:clamp(1.5rem,2.6vw,2.35rem); line-height:1.04; letter-spacing:-.025em; color:var(--bone); max-width:20ch;
}
.onsite__spot{ margin:0; color:var(--bone-2); font-weight:300; line-height:1.55; max-width:48ch; }
/* «Особенно удобно» — тем же набором, что «Автомобиль остаётся у вас», на ступень мельче */
.onsite__label{
  margin:clamp(40px,4.4vw,64px) 0 12px; font-family:var(--display); font-weight:500; text-transform:uppercase;
  font-size:clamp(1.25rem,2.05vw,1.85rem); line-height:1.05; letter-spacing:-.022em; color:var(--bone);
}
.onsite__note{ margin:0 0 18px; color:var(--metal); line-height:1.5; max-width:48ch; }
.onsite__for{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.onsite__for li{
  padding:9px 14px; border:1px solid var(--rule); color:var(--bone);
  font-size:.95rem; line-height:1.25;
}
/* карточка WhatsApp — фирменный зелёный, узнаётся с первого взгляда;
   текст и кнопка тёмные — на этом зелёном они читаются лучше белого */
.onsite__cta{
  background:#25D366; color:#0A0A0B; padding:clamp(28px,3.4vw,52px);
  display:grid; gap:18px; justify-items:start;
}
.onsite__cta h3{ margin:0; color:#fff; font-weight:600; letter-spacing:-.03em; font-size:clamp(1.75rem,3vw,2.8rem); line-height:1; }
.onsite__cta p{ margin:0; color:rgba(10,10,11,.86); font-weight:500; line-height:1.55; }
.btn--wa{ margin-top:10px; width:100%; justify-content:center; padding:20px 26px; font-size:15px; }
.btn .wa{ width:20px; height:20px; flex:none; margin-right:-2px; }
.btn--wa .wa{ width:22px; height:22px; }
@media (max-width:480px){ .btn--wa{ padding:18px 14px; font-size:13px; gap:10px; letter-spacing:.08em; } }
.btn .wa path:first-child{ fill:none; stroke:currentColor; stroke-width:1.5; stroke-linejoin:round; }
.btn .wa path:last-child{ fill:currentColor; }

/* ---------- location: aerial view (home) ----------
   Вид сверху на всю ширину, метка студии в центре кадра. Сейчас фон —
   заглушка «карта сверху»; кадр с дрона встаёт на её место тем же файлом. */
/* Длина прокрутки — в lvh: на iPhone vh меняется вместе с панелями Safari, и вся
   страница ниже перескакивала на сотни пикселей, когда панели сворачивались.
   lvh от панелей не зависит; vh — запасной вариант для старых браузеров. */
.locate{ position:relative; height:260vh; height:260lvh; }              /* ~2–3 жеста прокрутки */
.locate__stage{
  position:sticky; top:0; height:100vh; height:100svh; overflow:hidden; isolation:isolate;
  display:flex; align-items:flex-end; background:var(--ink);
}
.locate__img,
.locate__film{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.locate__film{ opacity:0; transition:opacity .6s var(--ease); }
/* кадр не доходит до нижнего края на 2 px: край блока бывает дробным
   (699,125 px), Safari округляет слой видео иначе, чем затемнение, и по
   стыку с подвалом проступала светлая строка незатемнённого кадра */
.locate__img, .locate__film{ height:calc(100% - 2px); }
.locate.has-film .locate__film{ opacity:1; }
.locate__veil{
  /* на 3 px выше края: иначе по верхней границе оставался светлый шов
     в пиксель — край кадра, не закрытый затемнением */
  position:absolute; inset:-3px 0 -3px 0; z-index:-1; pointer-events:none;
  /* слои затемнения — не ровная «шторка»: плотнее всего под текстом слева
     внизу и чуть за призывом справа, в центре карта остаётся живой */
  background:
    /* сверху — длинное плавное затухание из предыдущего раздела */
    linear-gradient(180deg,
      rgba(10,10,11,1) 0%, rgba(10,10,11,.97) 7%, rgba(10,10,11,.9) 14%,
      rgba(10,10,11,.78) 21%, rgba(10,10,11,.62) 28%, rgba(10,10,11,.45) 35%,
      rgba(10,10,11,.29) 42%, rgba(10,10,11,.16) 49%, rgba(10,10,11,.07) 55%,
      rgba(10,10,11,0) 62%),
    /* снизу — так же плавно уходит в цвет подвала, без шва на стыке */
    linear-gradient(0deg,
      rgba(10,10,11,1) 0%, rgba(10,10,11,.94) 4%, rgba(10,10,11,.78) 10%,
      rgba(10,10,11,.5) 18%, rgba(10,10,11,.22) 27%, rgba(10,10,11,0) 36%),
    /* под заголовком и описанием */
    radial-gradient(120% 95% at 0% 100%, rgba(5,5,5,.82) 0%, rgba(5,5,5,.58) 32%, rgba(5,5,5,0) 64%),
    /* за призывом справа — мягче */
    radial-gradient(60% 70% at 100% 45%, rgba(5,5,5,.55) 0%, rgba(5,5,5,0) 72%),
    linear-gradient(90deg, rgba(5,5,5,.7) 0%, rgba(5,5,5,.42) 32%, rgba(5,5,5,.12) 58%, rgba(5,5,5,.3) 100%),
    linear-gradient(0deg, rgba(5,5,5,.75) 0%, rgba(5,5,5,0) 45%),
    /* виньетка по краям */
    radial-gradient(130% 110% at 50% 45%, rgba(5,5,5,0) 58%, rgba(5,5,5,.4) 100%),
    rgba(5,5,5,.14);
}
@media (max-width:767px){
  /* на телефоне текст внизу — метка в центре кадра остаётся над ним */
  .locate .locate__stage{ justify-content:flex-end; padding-bottom:104px; }
  /* кадр сдвинут влево, чтобы здание студии (левая треть съёмки) было на экране;
     по высоте оно на ~30% — между названием сверху и текстом снизу */
  .locate .locate__img, .locate .locate__film{ object-position:24% 50%; }
  .locate .locate__cta{ justify-items:start; text-align:left; }
  /* на телефоне одна колонка: сначала заголовок и описание, под ними призыв —
     оба в потоке, прижаты к низу; метка студии остаётся в верхней части кадра */
  .locate .locate__stage{ justify-content:flex-end; padding-bottom:28px; gap:26px; }
  .locate .locate__meta{ position:static; order:-1; }
  .locate .locate__place{ max-width:none; min-width:0; width:100%; }
  .locate .locate__name{ font-size:clamp(2.1rem, 10vw, 2.8rem); }
  /* справа — место под круглую кнопку «наверх» (42 px у края), чтобы она не ложилась на строки */
  .locate .locate__note{ font-size:15px; padding-right:52px; }
  .locate .locate__title{ font-size:clamp(1.8rem, 8.6vw, 2.5rem); }
  .locate .locate__title span{ margin-left:0; }
  .locate__veil{ background:linear-gradient(180deg, rgba(10,10,11,1) 0%, rgba(10,10,11,.8) 10%, rgba(10,10,11,.35) 22%, rgba(10,10,11,.3) 30%, rgba(10,10,11,.7) 44%, rgba(10,10,11,.88) 60%, rgba(10,10,11,.94) 90%, rgba(10,10,11,1) 100%); }
}
@media (max-width:767px){ .locate{ height:230vh; height:230lvh; } }
/* текст блока карты для телефона — отдельным блоком под картой (см. ниже) */
.locate-m{ display:none; }
.locate__pin .pin-s{ display:none; }
/* Телефон: видеокарты с закреплением нет вовсе (.locate не выводится, site.js её
   не запускает и ролик не грузит). Вместо неё — обычный блок: финальный кадр
   приближения в рамке 4:5 с заранее заданным размером и пульсирующей точкой. */
@media (max-width:767px){
  .locate{ display:none; }
  .locate-m__map{ position:relative; margin:0 0 14px; aspect-ratio:720 / 900; overflow:hidden; background:var(--graphite); }
  .locate-m__map img{ width:100%; height:100%; object-fit:cover; }
  .locate-m__map::after{ content:""; position:absolute; inset:auto 0 0 0; height:22%; pointer-events:none;
    background:linear-gradient(180deg, rgba(10,10,11,0), rgba(10,10,11,.55)); }
  .locate-m .locate-m__pin{ opacity:1; }
  .locate-m__gmap{ margin:0 0 clamp(28px,7vw,40px); }
}
@media (max-width:767px){
  /* карта целиком на экране, без текста поверх: только шапка сверху и маркер */
  .locate .locate__cta, .locate .locate__meta{ display:none; }
  .locate .locate__stage{ padding:0; }
  .locate__veil{ background:linear-gradient(180deg,
      rgba(10,10,11,.6) 0%, rgba(10,10,11,0) 18%, rgba(10,10,11,0) 80%, rgba(10,10,11,1) 100%); }
  .locate__pin .pin-l{ display:none; }
  .locate__pin .pin-s{ display:inline; font-size:13px; letter-spacing:.1em; padding:5px 9px; top:-13px;
    background:rgba(10,10,11,.72); }
  .locate-m{ display:block; background:var(--ink); padding:var(--sect) 0 clamp(48px,12vw,72px); }
  .locate-m--inset{ padding-top:20px; }
  .locate-m .locate__name{ font-size:clamp(2rem, 9.6vw, 2.8rem); margin-bottom:18px; padding-right:48px; }
  .locate-m .locate__note{ font-size:16px; max-width:none; }
  .locate-m .locate__cities{ margin-top:14px !important; }
  .locate-m__cta{ margin-top:clamp(36px,9vw,52px); padding-top:clamp(28px,7vw,40px); border-top:1px solid var(--rule); display:grid; gap:18px; }
  .locate-m__cta > *{ margin:0; }
  /* кнопка по содержимому и с запасом справа под круглую «наверх» */
  .locate-m__cta a.btn--green{ width:auto; max-width:calc(100% - 56px); justify-content:flex-start; padding:0 18px; min-height:48px; }
  .locate-m__title{ font-size:clamp(1.8rem, 8.6vw, 2.5rem); line-height:.98; letter-spacing:-.035em; }
  .locate-m__title span{ display:block; margin-top:.6em; font-size:.42em; line-height:1.25; letter-spacing:-.01em; color:rgba(237,234,228,.72); }
}
/* contact page: the same film, framed by the content column instead of full bleed */
.locate--inset{ width:calc(min(100%, var(--maxw)) - 2 * var(--gutter)); margin-inline:auto; }
.locate--inset .locate__cta, .locate--inset .locate__meta{ padding-inline:clamp(20px,3vw,48px); }
@media (prefers-reduced-motion:reduce){ .locate{ height:auto; } .locate__stage{ position:relative; height:74vh; } }
.locate__stage{ flex-direction:column; justify-content:center; align-items:stretch; }
.locate__cta{ width:100%; display:grid; gap:clamp(18px,2.2vw,30px); justify-items:end; text-align:right; }
.locate__cta > *{ margin:0; will-change:opacity, transform; }
/* призыв справа поднят над центром экрана на --locate-lift, но не ближе
   --locate-top к верху (высота шапки + ~50 px воздуха). Сдвиг — полями, а не
   transform: transform у заголовка и кнопки занят проявлением при прокрутке.
   Авто-поля делят свободное место поровну и не уходят в минус, поэтому
   нижний отступ 2·lift + top поднимает блок ровно на lift от центра, а на
   невысоком экране блок упирается в --locate-top, не залезая под шапку
   (flex-start: если места не хватает, лишнее уходит вниз, в пустой отступ). */
@media (min-width:768px){
  .locate{ --locate-lift:146px; --locate-top:clamp(130px, 10.5vw, 150px); }
  .locate .locate__stage{ padding-top:var(--locate-top); justify-content:flex-start; }
  .locate .locate__cta{ margin-block:auto; padding-bottom:calc(2 * var(--locate-lift) + var(--locate-top)); }
}
/* призыв справа — почти того же кегля, что заголовок слева: две равные колонки */
.locate__title{ max-width:14ch; font-size:clamp(2.3rem, 4.4vw, 4.9rem); line-height:.95; letter-spacing:-.035em; text-shadow:var(--legible); }
.locate__title span{
  display:block; margin-top:.6em; margin-left:auto; max-width:24ch; font-size:.42em; line-height:1.2; letter-spacing:-.01em;
  color:rgba(237,234,228,.72);
}
.locate__meta{
  position:absolute; left:0; right:0; bottom:clamp(30px,5vh,56px);
  display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:10px 24px;
}
.locate__meta .mono{ color:var(--bone-2); margin:0; }
/* слева внизу — главное: «Выезд по всей Черногории» */
.locate__place{ display:grid; gap:0; max-width:min(650px, 52vw); text-shadow:var(--legible); }
.locate__label{ margin:0 0 clamp(14px,1.4vw,20px) !important; color:rgba(237,234,228,.7) !important; letter-spacing:.16em; }
.locate__name{
  margin:0 0 clamp(18px,2vw,28px); font-family:var(--display); font-weight:500; text-transform:uppercase;
  font-size:clamp(2.6rem, 4.9vw, 5.4rem); line-height:.95; letter-spacing:-.035em;
  color:#fff;
}
.locate__note{
  margin:0 0 .7em; max-width:540px;
  font-family:var(--body); font-weight:400; font-size:clamp(1rem,1.2vw,1.18rem); line-height:1.5;
  color:rgba(237,234,228,.8);
}
/* география — техническая маркировка, не текст */
.locate__cities{
  margin:clamp(10px,1.2vw,18px) 0 0 !important; font-size:12px; letter-spacing:.16em;
  color:rgba(237,234,228,.6) !important; line-height:1.9;
}
.locate__cities i{ font-style:normal; margin:0 .25em; opacity:.6; }
.locate__pin{ position:absolute; left:0; top:0; width:0; height:0; opacity:0; }
.locate__pin i{
  position:absolute; left:-6px; top:-6px; width:12px; height:12px; border-radius:50%;
  background:var(--bone); box-shadow:0 0 0 1px rgba(10,10,11,.6);
}
/* два кольца расходятся по очереди — метка «дышит» заметно, но спокойно */
.locate__pin i::before,
.locate__pin i::after{
  content:""; position:absolute; inset:-1px; border-radius:50%;
  border:1.5px solid var(--bone); opacity:0;
  animation:locate-pulse 2.2s cubic-bezier(.2,.6,.3,1) infinite;
}
.locate__pin i::after{ animation-delay:1.1s; }
.locate__pin b{
  position:absolute; left:18px; top:-9px; white-space:nowrap;
  font-family:var(--mono); font-weight:400; font-size:12px; letter-spacing:.14em;
  text-transform:uppercase; color:var(--bone);
}
@keyframes locate-pulse{ 0%{ transform:scale(1); opacity:.95; } 70%{ opacity:.25; } 100%{ transform:scale(7); opacity:0; } }
@media (prefers-reduced-motion:reduce){ .locate__pin i::before, .locate__pin i::after{ animation:none; opacity:0; } }

/* ---------- light section ----------
   Одна светлая секция даёт странице световой ритм. Цвета компонентов
   переопределены внутри неё, поэтому разметка та же. */
.section--light{
  --bone:#0A0A0B; --bone-2:#1C1E20; --metal:#55595D; --metal-dim:#7C8084;
  --rule:rgba(10,10,11,.18); --rule-2:rgba(10,10,11,.10);
  background:#EDEAE4; color:#0A0A0B;
}
.section--light ::selection{ background:#0A0A0B; color:#EDEAE4; }

/* ---------- 10. FOOTER ---------- */
.foot{ padding-block:clamp(48px,6vw,80px) clamp(26px,3vw,38px); }
.foot__top{ display:grid; gap:clamp(28px,3.4vw,56px); grid-template-columns:minmax(0,1fr); }
/* блок с логотипом — вверху строки, на одной линии с заголовками колонок */
@media (min-width:760px){ .foot__top > *:first-child{ align-self:start; } }
@media (min-width:760px){ .foot__top{ grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr)); } }
.foot__mark{ margin:0; line-height:0; }
.foot__mark img{ display:block; width:auto; height:clamp(67px, 7.7vw, 105px); }
.foot__col h4{ font-family:var(--mono); font-weight:400; font-size:13px; letter-spacing:.13em; text-transform:uppercase; color:var(--metal); margin-bottom:16px; }
.foot__col li{ padding-block:6px; font-size:15px; font-weight:400; }
.foot__col a:hover{ color:var(--metal); }
/* Instagram: a large glyph with a small label under it, below the hours.
   One link; the label underline and a slight lift mark hover and focus.
   margin-top + the last row's 6px padding ≈ 30px from «Без выходных»; the viewBox is
   cropped to the glyph so the visible icon is exactly 42/35px; min-width/height keep
   the tap target at least 44×44px whatever the label length. */
.foot__ig{ display:inline-flex; flex-direction:column; align-items:flex-start; gap:12px;
  min-width:44px; min-height:44px; margin-top:22px; color:var(--bone); }
.foot__ig-i{ display:block; width:42px; height:42px; fill:none; stroke:currentColor; stroke-width:1.5;
  transition:transform .3s; }
.foot__ig-i .dot{ fill:currentColor; stroke:none; }
.foot__ig span{ font-size:13px; line-height:1.3; padding-bottom:2px;
  border-bottom:1px solid rgba(237,234,228,.18); transition:border-color .3s; }
.foot__col .foot__ig:hover{ color:var(--bone); }
.foot__ig:hover span, .foot__ig:focus-visible span{ border-color:currentColor; }
.foot__ig:hover .foot__ig-i, .foot__ig:focus-visible .foot__ig-i{ transform:translateY(-3px); }
@media (max-width:767px){ .foot__ig-i{ width:35px; height:35px; } }
.foot__bot{
  display:flex; flex-wrap:wrap; gap:12px 28px; justify-content:space-between;
  margin-top:clamp(40px,5vw,72px); padding-top:20px; border-top:1px solid var(--rule-2);
}
/* реквизиты компании — внизу общего подвала: бренд остаётся брендом, юрлицо
   указано отдельно как поставщик услуг; тонкий разделитель, читаемый текст */
.foot__legal{ margin-top:clamp(26px,3vw,40px); padding-top:20px; border-top:1px solid var(--rule-2); }
.foot__legal-t{ margin:0 0 14px; font-family:var(--mono); font-size:11px; font-weight:400; letter-spacing:.14em; text-transform:uppercase; color:var(--metal); }
.foot__legal-l{ margin:0; display:grid; grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); gap:14px 28px; }
.foot__legal-i{ min-width:0; }
.foot__legal-l dt{ margin:0 0 4px; font-family:var(--mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--metal); }
.foot__legal-l dd{ margin:0; font-size:14px; line-height:1.45; color:var(--bone-2); overflow-wrap:anywhere; }
.foot__legal-l dd a{ color:inherit; border-bottom:1px solid rgba(237,234,228,.2); transition:border-color .3s; }
.foot__legal-l dd a:hover, .foot__legal-l dd a:focus-visible{ border-color:currentColor; }
@media (max-width:767px){ .foot__legal-l{ grid-template-columns:1fr; gap:12px; } }
/* подпись разработчика — тихо, в самом низу подвала */
.foot__by{ margin:clamp(22px,2.6vw,34px) 0 0; font-size:11px; letter-spacing:.12em; color:var(--metal-dim); }
/* знак ONEBLANK — внутри той же ссылки, подчёркнут только текст */
.foot__by a{ display:inline-flex; align-items:center; gap:10px; vertical-align:middle; white-space:nowrap; color:var(--metal); transition:color .3s; }
.foot__by a span{ padding-bottom:3px; border-bottom:1px solid rgba(237,234,228,.12); transition:border-color .3s; }
.foot__by a:hover{ color:var(--bone-2); }
.foot__by a:hover span{ border-color:var(--metal); }
.foot__ob{ width:18px; height:18px; flex:none; }

/* ---------- 11. PAGE HEADERS (inner pages) ---------- */
.phead{ padding-top:clamp(120px, calc(var(--vh, 1vh) * 17), 200px); padding-bottom:clamp(40px,6vw,84px); }
.phead__eyebrow{ margin-bottom:clamp(18px,2.4vw,30px); }
.phead__title{ max-width:18ch; }
/* «Качественный ремонт» длиннее 18 знаков — на студии строку ведут переносы в тексте */
.phead__title--wide{ max-width:none; }
.phead__lede{ margin-top:clamp(20px,2.6vw,34px); }

/* ---------- 12. REVEALS ---------- */
[data-reveal]{ opacity:0; transform:translateY(26px); }
[data-reveal].is-in{
  opacity:1; transform:none;
  transition:opacity .95s var(--ease), transform 1.05s var(--ease);
}
[data-reveal].is-in[data-d="1"]{ transition-delay:.08s }
[data-reveal].is-in[data-d="2"]{ transition-delay:.16s }
[data-reveal].is-in[data-d="3"]{ transition-delay:.24s }
[data-reveal].is-in[data-d="4"]{ transition-delay:.32s }

/* ---------- 13. A11Y / MOTION ---------- */
.vh{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
/* «К содержанию» — только для клавиатуры. Раньше она пряталась сдвигом за верхний
   край, но Safari на iPhone рисует страницу и под своей панелью — ссылку было
   видно. Теперь она скрыта совсем и появляется лишь при фокусе с клавиатуры. */
.skip{
  position:fixed; top:10px; left:10px; z-index:200;
  width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap;
  background:var(--bone); color:var(--ink); padding:0;
  font-family:var(--mono); font-size:14px; letter-spacing:.11em; text-transform:uppercase;
}
.skip:focus-visible{
  top:calc(10px + env(safe-area-inset-top)); width:auto; height:auto; overflow:visible; clip:auto; clip-path:none; padding:10px 16px;
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
  .grain{ display:none; }
  [data-reveal]{ opacity:1 !important; transform:none !important; }
  .claim > span{ opacity:1 !important; transform:none !important; }
  .hero [data-rise]{ opacity:1 !important; transform:none !important; }
}

/* Keep translated headings and long names inside their columns.
   The banner headings are excluded: [data-fit] scales them instead of
   breaking words, and --banner-title is the single size for all of them.
   Work captions wrap only between whole words; break-word is a last resort
   for a single word wider than the column and never splits words otherwise. */
.index__t{ overflow-wrap:anywhere; }
.work__name{ overflow-wrap:break-word; hyphens:manual; }
.sect-head > *{ min-width:0; }
section[id]{ scroll-margin-top:100px; }

@media (min-width:900px) and (max-width:1199px){
  .hdr__cta{ display:none; }
  .sect-head{ grid-template-columns:110px minmax(0,1fr); }
  .sect-head > .lede{ grid-column:2; }
}

@media (max-width:599px){
  .work__meta{ flex-wrap:wrap; gap:10px; }
  .work__scope{ text-align:left; }
}

/* ---- the banner on a phone ---- */
@media (max-width:767px){
  :root{
    --banner-top:17%;
    --banner-w:100%;
    --banner-title:clamp(30px, 7.8vw, 48px);
    --banner-eyebrow:14px;
    --banner-body:15px;
    --banner-terms:13px;
  }
  /* текст сцен — сверху, под шапкой, как у заставки: машина и деталь ремонта
     остаются в средней и нижней части кадра, где на них показывает выноска */
  .scene__copy,
  .scene--right .scene__copy{
    top:clamp(84px, 11svh, 116px); bottom:auto; left:var(--gutter); right:var(--gutter); width:auto;
    text-align:left;
  }
  .scene--right .scene__terms{ justify-content:flex-start; }
  .hero{ width:auto; left:var(--gutter); right:var(--gutter); }
  .hero__eyebrow, .scene__eyebrow{ margin-bottom:18px; }
  .scene__eyebrow{ margin-bottom:12px; }
  .scene__title{ margin:12px 0; }
  /* теги — цельные элементы; разделитель стоит перед каждым, а у первого в строке
     он попадает в обрезанное поле слева, поэтому строка никогда не начинается с «/» */
  .scene__terms{ gap:6px 0; margin-top:16px; padding-top:12px;
    margin-left:-22px; clip-path:inset(-2px -2px -2px 22px); }
  .scene__terms li{ position:relative; padding-left:22px; }
  .scene__terms li::before,
  .scene__terms li + li::before{ content:"/"; position:absolute; left:7px; top:0; padding:0; color:#888C82; }
  /* первый экран: заголовок и строка — в свободном верху кадра, кнопки — внизу,
     над строкой «Листайте дальше»; машина между ними остаётся главной */
  .hero{ top:clamp(86px, 11.5svh, 112px); bottom:clamp(64px, 9svh, 84px); display:flex; flex-direction:column; }
  .hero__title{ font-size:clamp(32px, 9.4vw, 50px); }
  .hero__eyebrow{ margin-bottom:14px; }
  .hero__sub{ margin-top:16px; }
  .hero__actions{ margin-top:auto; gap:10px 22px; align-items:center; }
  .hero__actions a.btn--green{
    width:auto; justify-content:flex-start; gap:10px; min-height:46px; padding:0 18px;
    font-size:13px; letter-spacing:.06em;
  }
  .hero__actions .btn .cta-l{ display:none; }
  .hero__actions .btn .cta-s{ display:inline; }
  .textlink{ font-size:14px; gap:12px; min-height:44px; }
  /* номера глав появляются, когда вводный блок уходит: на его месте стоят кнопки */
  .filmbar__nav{ transition:opacity .35s var(--ease); }
  .stage.is-intro .filmbar__nav{ opacity:0; pointer-events:none; }
}
/* невысокий телефон (SE, многие Android): текст плотнее, чтобы оставаться над
   деталью, на которую показывает выноска */
@media (max-width:767px) and (max-height:800px){
  :root{ --banner-title:clamp(24px, 6.6vw, 32px); --banner-body:14px; --banner-terms:12px; --banner-eyebrow:12px; }
  .scene__copy, .scene--right .scene__copy{ top:clamp(76px, 10svh, 96px); }
  .scene__desc{ line-height:1.4; }
  .scene__terms{ margin-top:12px; padding-top:10px; }
}
/* совсем низкий экран (iPhone SE и т. п.): строка тегов уступает место
   детали ремонта — заголовок и описание сцены остаются */
@media (max-width:767px) and (max-height:700px){
  .scene__terms{ display:none; }
  /* внизу кадра машина занимает всё до строки «Листайте дальше» — кнопка
     поднимается под описание, над машиной; «Смотреть работы» остаётся в меню,
     строка направлений повторяет меню и тоже уходит */
  .hero__eyebrow{ display:none; }
  .hero__sub{ margin-top:12px; }
  .hero__actions{ margin-top:16px; }
  .hero__actions .textlink{ display:none; }
}

/* ---- возврат наверх: только контур, без подписи и заливки ---- */
.totop{
  /* на одной линии с правым краем контента; у подвала site.js
     останавливает её над ним, чтобы она не ложилась на его строки */
  position:fixed; right:var(--gutter); bottom:clamp(96px,13vh,130px); z-index:88;
  display:grid; place-items:center;
  width:42px; height:42px; padding:0;
  border:1px solid rgba(237,234,228,.34); border-radius:50%;
  background:transparent; color:var(--bone);
  opacity:0; visibility:hidden; transform:translateY(8px);
  transition:opacity .75s var(--ease), transform .75s var(--ease),
             visibility .75s, border-color .35s var(--ease);
}
.totop.is-on{ opacity:1; visibility:visible; transform:none; }
.totop:hover{ border-color:var(--bone); }
.totop i{ font-style:normal; font-size:15px; line-height:1; }

/* Черногорская версия: над заглавными стоят Š Ć Č Ž — при плотном интервале
   (0,95–1,05) диакритика заходила в строку выше («FOTOGRAFIJE / OŠTEĆENJA»,
   «DOLAZAK / ŠIROM»). Для ME крупные заглавные заголовки получают 1,18 —
   при 1,1 знаки ещё почти касались строки выше. */
html[lang="cnr"] :is(.display, .display--sm, .display--xs, .hero__title, .scene__title, .index__t,
  .work__name, .lban__title, .process__t, .claim__lead, .claim__big, .onsite__keep, .onsite__label,
  .onsite__cta h3, .locate__title, .locate__name, .locate-m__title){ line-height:1.18; }

/* ---- телефон: ролик идёт сам, прокрутка меняет только текстовый блок ----
   (класс ставит js/experience.js; на компьютере этих правил нет) */
/* Видео и текст стоят на месте (sticky), под ними — невидимая колонка .ptrack:
   у каждого из 6 блоков своя полоса пути ≈0,85 экрана, в конце — запас в экран,
   чтобы последний блок успел прочитаться до того, как баннер уедет. Полоса блока
   и задаёт его смену: «выход» полосы за верх экрана = отрезок этого блока. */
.experience.is-phone{ height:auto; timeline-scope:--b0, --b1, --b2, --b3, --b4, --b5; }
.is-phone .ptrack{ position:relative; z-index:0; pointer-events:none; margin-top:calc(-1 * max(calc(var(--vh, 1svh) * 100), 560px)); }
.is-phone .pslot{ height:calc(var(--vh, 1lvh) * 85); position:relative; }
/* остановки: заставка — в самом верху, остальные блоки — на середине своей полосы,
   где текст виден полностью; последняя — в конце баннера (следующий раздел вверху).
   Пока страница в баннере, остановки жёсткие (stop: always — свайп не перепрыгивает
   через блок); ниже баннера режим выключен и страница листается свободно. */
html.pstops-on{ scroll-snap-type:y mandatory; }
.is-phone .pstop{ position:absolute; left:0; top:50%; width:1px; height:1px; scroll-snap-align:start; scroll-snap-stop:always; }
.is-phone .pslot:first-child .pstop{ top:0; }
.is-phone .pstop--end{ top:100%; }
.is-phone .pslot--tail{ height:max(calc(var(--vh, 1svh) * 100), 560px); }
.is-phone .pslot:nth-child(1){ view-timeline:--b0 block; }
.is-phone .pslot:nth-child(2){ view-timeline:--b1 block; }
.is-phone .pslot:nth-child(3){ view-timeline:--b2 block; }
.is-phone .pslot:nth-child(4){ view-timeline:--b3 block; }
.is-phone .pslot:nth-child(5){ view-timeline:--b4 block; }
.is-phone .pslot:nth-child(6){ view-timeline:--b5 block; }
/* смена блоков ведётся самой прокруткой (CSS scroll-driven animations): старый
   гаснет на последних 14 % своей полосы, новый проявляется на первых 14 % своей —
   тексты не накладываются; анимация идёт ровно с пальцем в обе стороны */
@keyframes pblk-first{ 0%, 86%{ opacity:1; visibility:visible; transform:none; }
  100%{ opacity:0; visibility:hidden; transform:translate3d(0,-14px,0); } }
@keyframes pblk{ 0%{ opacity:0; visibility:hidden; transform:translate3d(0,14px,0); }
  14%, 86%{ opacity:1; visibility:visible; transform:none; }
  100%{ opacity:0; visibility:hidden; transform:translate3d(0,-14px,0); } }
@keyframes pblk-last{ 0%{ opacity:0; visibility:hidden; transform:translate3d(0,14px,0); }
  14%, 100%{ opacity:1; visibility:visible; transform:none; } }
.is-sda .hero, .is-sda .scene{ animation:pblk linear both; animation-duration:auto; animation-range:exit 0% exit 100%; }
.is-sda .hero{ animation-name:pblk-first; animation-timeline:--b0; }
.is-sda .scenes > .scene:nth-child(1){ animation-timeline:--b1; }
.is-sda .scenes > .scene:nth-child(2){ animation-timeline:--b2; }
.is-sda .scenes > .scene:nth-child(3){ animation-timeline:--b3; }
.is-sda .scenes > .scene:nth-child(4){ animation-timeline:--b4; }
.is-sda .scenes > .scene:nth-child(5){ animation-name:pblk-last; animation-timeline:--b5; }
.is-phone .filmbar__nav, .is-phone .hud__bar, .is-phone .stage__retry, .is-phone .snap-point, .is-phone .annotation{ display:none; }
.is-phone .stage__veil{ opacity:.95; }
.is-phone .stage__veil--right{ opacity:0; }
.is-phone .stage__poster, .is-phone .stage__film{ object-position:50% 50%; }
