/* «Ось» · тормоза под ключ. Тёмная студия, металл, один медный сигнал. */
:root {
  --black: #0a0a0b;
  --black-2: #161618;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #6e6e73;
  --paper: #f5f5f7;
  --white: #ffffff;
  --dark: #1d1d1f;
  --dark-2: #6e6e73;
  --dark-3: #a1a1a6;
  --line-d: rgba(255, 255, 255, .12);
  --line-l: rgba(29, 29, 31, .12);
  --accent: #e0864e;
  --accent-l: #b3582a;
  --r-tile: 28px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --f: 'Wix Madefor Display', -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--ink); font: 400 17px/1.47 var(--f); letter-spacing: -.012em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }

#koleso { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; opacity: 0; transition: opacity .9s var(--ease); }
body.ready #koleso { opacity: 1; }
main, .foot, .gnav, .lnav { position: relative; z-index: 1; }

/* шапки */
.gnav { height: 44px; background: var(--black); }
.gnav-in { height: 100%; width: min(1024px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 13px; }
.logo { font-weight: 700; font-size: 19px; letter-spacing: -.03em; }
.gnav-links { display: flex; gap: 36px; color: var(--ink-2); }
.gnav-links a:hover, .gnav-tel:hover { color: var(--ink); }
.gnav-tel { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lnav { position: sticky; top: 0; z-index: 20; height: 52px; background: rgba(22, 22, 24, .72); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid var(--line-d); transition: background .4s, color .4s, border-color .4s; }
.lnav-in { height: 100%; width: min(1024px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.lnav-name { font-weight: 650; font-size: 21px; letter-spacing: -.02em; }
.lnav-links { display: flex; align-items: center; gap: 28px; font-size: 13px; color: var(--ink-2); }
.lnav-links a:not(.pill):hover { color: var(--ink); }
body.on-light .lnav { background: rgba(245, 245, 247, .76); color: var(--dark); border-color: var(--line-l); }
body.on-light .lnav-links { color: var(--dark-2); }
body.on-light .lnav .pill { background: var(--dark); color: #fff !important; }

/* кнопки */
.pill { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: var(--black); font-size: 17px; font-weight: 500; border: 0; transition: background .25s, transform .25s var(--ease); }
.pill:hover { background: #fff; }
.pill:active { transform: scale(.97); }
.pill-s { height: 28px; padding: 0 13px; font-size: 12px; color: var(--black) !important; }
.pill-wide { width: 100%; height: 52px; }
.more { color: var(--accent); font-size: 17px; display: inline-flex; align-items: center; gap: 4px; }
.more::after { content: '›'; font-size: 22px; line-height: 1; transform: translateY(-1px); transition: transform .25s var(--ease); }
.more:hover::after { transform: translate(3px, -1px); }

.eyebrow { font-size: 19px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.display { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.04; font-weight: 700; letter-spacing: -.038em; }
.center { text-align: center; }

/* первый экран */
.s3d { background: transparent; }
.hero { min-height: 100vh; min-height: 100svh; }
.hero-text { text-align: center; padding-top: clamp(24px, 4.5vh, 52px); }
.hero .eyebrow { margin-bottom: 0; font-size: 21px; }
.hero-name { font-size: clamp(88px, 10.5vw, 160px); line-height: .95; font-weight: 700; letter-spacing: -.05em; margin: 4px 0 12px; }
.hero-lead { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.28; font-weight: 500; color: var(--ink-2); max-width: 32ch; margin: 0 auto; }
.hero-cta { display: flex; gap: 26px; justify-content: center; align-items: center; margin-top: 22px; }
.hero-price { margin-top: 14px; font-size: 14px; color: var(--ink-3); letter-spacing: 0; }
.rise { opacity: 0; transform: translateY(18px); }
body.go .rise { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
body.go .rise:nth-child(2) { transition-delay: .08s; }
body.go .rise:nth-child(3) { transition-delay: .16s; }
body.go .rise:nth-child(4) { transition-delay: .24s; }
body.go .rise:nth-child(5) { transition-delay: .32s; }

/* манифест */
.manifest { background: var(--black); color: var(--ink); padding: clamp(120px, 24vh, 260px) 0; }
.manifest-text { width: min(980px, calc(100% - 48px)); margin: 0 auto; font-size: clamp(30px, 3.9vw, 56px); line-height: 1.14; font-weight: 650; letter-spacing: -.03em; }
.manifest-text .w { color: #3a3a3d; transition: color .35s linear; }
.manifest-text .w.on { color: var(--ink); }

/* разбор */
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.razbor { height: 420vh; }
.razbor-head { position: absolute; left: max(24px, calc(50vw - 590px)); top: 15vh; z-index: 2; }
.razbor-end { position: absolute; left: max(24px, calc(50vw - 590px)); top: 15vh; max-width: 10ch; opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .8s var(--ease); font-size: clamp(32px, 4vw, 56px); }
.razbor-end.on { opacity: 1; transform: none; }
.s3d .display { font-size: clamp(36px, 4.4vw, 64px); }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.leaders line { stroke: rgba(245, 245, 247, .45); stroke-width: 1; transition: opacity .5s; }
.leaders circle { fill: var(--accent); transition: opacity .5s; }
.leaders .ring { fill: none; stroke: var(--accent); stroke-width: 1.2; }
.notes { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.note { position: absolute; left: 0; top: 0; width: 270px; opacity: 0; transform: translateY(10px); transition: opacity .55s var(--ease), transform .7s var(--ease); }
.note.on { opacity: 1; transform: none; }
.note h3 { font-size: 21px; font-weight: 650; letter-spacing: -.02em; margin-bottom: 6px; }
.note p { font-size: 15px; line-height: 1.45; color: var(--ink-2); }

/* смета */
.smeta { background: linear-gradient(180deg, var(--black) 0, #2a2a2c 70px, #d9d9de 190px, var(--paper) 280px); color: var(--dark); padding: clamp(220px, 28vh, 300px) 0 clamp(100px, 15vh, 170px); }
.smeta-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.smeta .eyebrow, .zapis .eyebrow, .bento .eyebrow { color: var(--accent-l); }
.smeta .display { margin-bottom: 40px; }
.pick { margin-bottom: 26px; }
.pick-k { font-size: 14px; font-weight: 600; color: var(--dark-2); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chips button { height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(29, 29, 31, .16); background: #fff; font-size: 15px; color: var(--dark); transition: border-color .2s, box-shadow .2s, background .2s; }
.chips button:hover { border-color: rgba(29, 29, 31, .4); }
.chips button[aria-checked="true"] { border-color: var(--dark); box-shadow: inset 0 0 0 1px var(--dark); }
.chek { position: sticky; top: 92px; background: #fff; border-radius: var(--r-tile); padding: 34px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 40px rgba(0, 0, 0, .06); }
.chek-car { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 18px; }
.chek-rows li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-l); font-size: 15px; }
.chek-rows li span { color: var(--dark-2); }
.chek-rows li b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chek-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 6px; }
.chek-total span { font-weight: 600; }
.chek-sum { font-size: 40px; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.chek-time { font-size: 14px; color: var(--dark-2); margin-bottom: 22px; }
.chek .pill { background: var(--dark); color: #fff; }

/* ход ремонта */
.hod { height: 260vh; background: var(--paper); color: var(--dark); }
.hod .eyebrow { color: var(--accent-l); }
.hod-stage { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(32px, 6vw, 110px); width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
.hod-lead { color: var(--dark-2); font-size: clamp(19px, 1.6vw, 22px); line-height: 1.35; margin-top: 20px; max-width: 26ch; }
.chat { width: 380px; height: min(720px, 82vh); border-radius: 44px; background: var(--black-2); color: var(--ink); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 90px rgba(0, 0, 0, .28), inset 0 0 0 6px #0c0c0d; overflow: hidden; display: flex; flex-direction: column; }
.chat-top { display: flex; gap: 12px; align-items: center; padding: 26px 22px 14px; border-bottom: 1px solid var(--line-d); background: rgba(30, 30, 32, .9); }
.chat-top b { display: block; font-size: 15px; font-weight: 600; }
.chat-top small { color: var(--ink-3); font-size: 12px; }
.chat-ava { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #1a0e06; display: grid; place-items: center; font-weight: 700; }
.chat-feed { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 16px 16px 22px; overflow: hidden; }
.msg { align-self: flex-start; max-width: 86%; background: #2a2a2d; border-radius: 20px 20px 20px 6px; padding: 10px 14px 8px; font-size: 15px; line-height: 1.38; display: none; }
.msg.on { display: block; animation: msg .5s var(--ease) both; }
.msg time { display: block; text-align: right; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.msg.ph { padding: 4px 4px 8px; }
.msg.ph img { border-radius: 17px 17px 6px 6px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: 8px; }
.msg.ph p, .msg.ph time { padding: 0 10px; }
@keyframes msg { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* плитки */
.bento { background: var(--white); color: var(--dark); padding: clamp(100px, 16vh, 180px) 0 clamp(100px, 14vh, 160px); }
.bento .display { margin-bottom: clamp(48px, 7vh, 80px); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(260px, auto); gap: 20px; }
.tile { position: relative; border-radius: var(--r-tile); background: var(--paper); overflow: hidden; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; transform: translateY(28px) scale(.985); transition: transform .9s var(--ease); }
.tile.on { transform: none; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.tile.on img { transform: scale(1); }
.tile figcaption { position: relative; z-index: 1; font-size: 21px; line-height: 1.28; letter-spacing: -.018em; max-width: 26ch; }
.tile figcaption b { font-weight: 650; }
.t-k { display: block; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--dark-2); margin-bottom: 8px; }
.tile.dark { color: #fff; justify-content: flex-start; }
.tile.dark .t-k { color: rgba(255, 255, 255, .72); }
.tile.dark::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .66) 0%, rgba(0, 0, 0, .2) 40%, rgba(0, 0, 0, 0) 62%); }
.t-zona { grid-column: 1 / 3; grid-row: 1 / 3; min-height: 560px; }
.t-klyuch { grid-column: 3 / 5; grid-row: 2 / 4; min-height: 520px; }
.t-klyuch img { object-position: 50% 35%; }
.t-gar { grid-column: 1 / 3; }
.t-lift { grid-column: 1 / 5; min-height: 440px; }
.t-lift img { object-position: 50% 60%; }
.num { font-size: clamp(72px, 7.6vw, 112px); line-height: .95; font-weight: 700; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.num small { font-size: .3em; font-weight: 600; letter-spacing: -.01em; margin-left: .18em; color: var(--dark-2); }
.t-num p { font-size: 15px; color: var(--dark-2); max-width: 26ch; margin-top: 10px; }

/* запись */
.zapis { background: var(--paper); color: var(--dark); padding: clamp(100px, 15vh, 170px) 0; }
.zapis-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.zapis-sum { margin-top: 26px; color: var(--dark-2); font-size: 17px; }
.zapis-sum b { color: var(--dark); font-weight: 600; }
.form { display: grid; gap: 12px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.days button, .slots button { border: 1px solid rgba(29, 29, 31, .16); background: #fff; border-radius: 14px; color: var(--dark); transition: border-color .2s, box-shadow .2s; }
.days button { height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; color: var(--dark-2); }
.days button b { font-size: 19px; color: var(--dark); font-weight: 650; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.slots button { height: 46px; font-size: 15px; font-variant-numeric: tabular-nums; }
.days button[aria-checked="true"], .slots button[aria-checked="true"] { border-color: var(--dark); box-shadow: inset 0 0 0 1px var(--dark); }
.slots button:disabled { color: var(--dark-3); text-decoration: line-through; background: transparent; cursor: default; }
.form label span { display: block; font-size: 13px; color: var(--dark-2); margin: 0 0 6px 4px; }
.form input { width: 100%; height: 54px; border-radius: 14px; border: 1px solid rgba(29, 29, 31, .18); background: #fff; padding: 0 18px; font: inherit; color: var(--dark); }
.form input:focus { outline: none; border-color: var(--dark); box-shadow: 0 0 0 4px rgba(29, 29, 31, .08); }
.form .pill { background: var(--dark); color: #fff; margin-top: 6px; }
.form-ok { display: none; font-weight: 600; }
.form.sent .form-ok { display: block; }
.fine { font-size: 13px; color: var(--dark-3); }

/* подвал */
.foot { background: var(--paper); color: var(--dark-2); border-top: 1px solid var(--line-l); padding: 44px 0 40px; font-size: 13px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-k { font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.foot a:hover { color: var(--dark); text-decoration: underline; }
.foot-fine { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line-l); color: var(--dark-3); font-size: 12px; }

body.no3d #koleso { display: none; }
.hero, .razbor .stage { cursor: grab; }
.grabbing { cursor: grabbing; user-select: none; }

@media (max-width: 1060px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .t-zona, .t-klyuch, .t-gar, .t-lift { grid-column: 1 / 3; grid-row: auto; }
  .razbor-end { max-width: none; }
  .smeta-in, .zapis-in { grid-template-columns: 1fr; }
  .chek { position: relative; top: 0; }
}

/* телефон и планшет стоя */
@media (max-width: 760px), (max-width: 1100px) and (max-aspect-ratio: 9/10) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 40px); }
  .gnav-links { display: none; }
  .lnav-links a:not(.pill) { display: none; }
  .lnav-name { font-size: 19px; }
  .eyebrow, .hero .eyebrow { font-size: 16px; }
  .hero-text { padding: 26px 20px 0; }
  .hero-name { font-size: 76px; }
  .hero-lead { font-size: 18px; }
  .display { font-size: 40px; }
  .manifest { padding: 80px 0 96px; }
  .manifest-text { font-size: 29px; width: calc(100% - 40px); }
  .razbor { height: 270vh; }
  .razbor-head { left: 20px; right: 20px; top: 12vh; }
  .razbor-head .display { font-size: 38px; }
  .leaders line { display: none; }
  .notes { top: auto; bottom: 0; height: 34vh; }
  .note { left: 20px !important; right: 20px; top: auto !important; bottom: 7vh; width: auto; }
  .razbor-end { top: auto; left: 20px; right: 20px; bottom: 10vh; font-size: 32px; }
  .smeta, .zapis { padding: 96px 0; }
  .chek { padding: 24px; }
  .chek-sum { font-size: 34px; }
  .hod { height: 220vh; }
  .hod-stage { grid-template-columns: 1fr; align-content: start; padding-top: 10vh; gap: 22px; width: calc(100% - 40px); }
  .hod-text .display { font-size: 38px; }
  .hod-lead { font-size: 17px; margin-top: 12px; }
  .chat { width: 100%; max-width: 420px; height: 56vh; border-radius: 32px; justify-self: center; }
  .chat-top { padding: 16px 18px 12px; }
  .bento { padding: 96px 0; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 12px; grid-auto-rows: auto; }
  .tile { padding: 22px; border-radius: 22px; }
  .t-zona { min-height: 460px; }
  .t-klyuch, .t-lift { min-height: 420px; }
  .t-num { min-height: 200px; }
  .tile figcaption { font-size: 19px; }
  .num { font-size: 60px; }
  .days { grid-template-columns: repeat(4, 1fr); }
  .foot-cols { grid-template-columns: 1fr; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .tile, .note, .razbor-end, .msg.on { transition: none !important; animation: none !important; }
}
