/* Спица — веломастерская (демо тарифа «Старт»). Мир: «паспорт мастерской» — бумага, графит, киноварь. */

:root {
  --paper: #f1ebdf;
  --paper-hi: #f9f5ee;
  --paper-lo: #e7dfcf;
  --ink: #191c22;
  --ink-2: #4b4e57;
  --ink-3: #64666c;
  --rule: rgba(25, 28, 34, .16);
  --rule-strong: rgba(25, 28, 34, .5);
  --red: #c63c19;
  --red-press: #ad3110;
  --red-ink: #a8310f;
  --red-hi: #ee6338;
  --on-red: #fffaf3;
  --on-dark: #f1ebdf;
  --on-dark-2: #b9b3a6;
  --dark-2: #23262e;
  --f-display: "Sofia Sans Condensed", "Sofia Sans", "Arial Narrow", sans-serif;
  --f-body: "Sofia Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --top-h: 60px;
  --gut: 20px;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--top-h) + 16px);
  scrollbar-color: #8f8778 var(--paper-lo);
  background: var(--paper);
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) { scroll-behavior: smooth; }
}
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--f-body);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  caret-color: var(--red);
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--on-red); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 850;
  line-height: .95;
  letter-spacing: -.006em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.i {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }

.skip {
  position: absolute; z-index: 100; left: 12px; top: -64px;
  padding: 10px 14px; border-radius: 8px;
  background: var(--ink); color: var(--on-dark); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 10px;
  font: 700 17px/1 var(--f-body); letter-spacing: .005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, box-shadow .3s var(--ease-out), transform .2s var(--ease-out);
}
.btn--red {
  background: var(--red); color: var(--on-red);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 22px -12px rgba(150, 40, 10, .7);
}
.btn--red:hover { background: var(--red-press); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 16px 28px -14px rgba(150, 40, 10, .8); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 16px; border-radius: 8px; font-size: 15px; }
.btn--wide { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn[disabled] { cursor: progress; opacity: .7; }
.btn .i { width: 20px; height: 20px; }

/* ---------- header ---------- */

.top {
  position: fixed; z-index: 50; inset: 0 0 auto;
  height: var(--top-h);
  background: var(--paper);
  transition: box-shadow .3s;
}
.top.is-scrolled { box-shadow: 0 1px 0 var(--rule); }
.top__in {
  display: flex; align-items: center; gap: 24px;
  height: 100%;
  width: min(100% - 2 * var(--gut), var(--max));
  margin-inline: auto;
}
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.logo__mark { width: 30px; height: 30px; flex: none; }
.logo__word { font: 900 30px/1 var(--f-display); letter-spacing: -.01em; transform: translateY(-1px); }
.logo__sub { display: none; }
.top__nav { display: none; }
.top__cta { margin-left: auto; }
.top__cta-long { display: none; }

/* ---------- hero ---------- */

.hero { position: relative; }
.motion .hero { height: calc(100vh + 60vh); height: calc(100svh + 60svh); }
.hero__stage {
  position: sticky; top: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "wheel" "copy";
  height: 100vh; height: 100svh; min-height: 540px;
  padding: calc(var(--top-h) + 4px) var(--gut) 84px;
  overflow: hidden;
}
.hero__copy { grid-area: copy; position: relative; z-index: 1; }
.hero__title {
  font-size: clamp(40px, 11.1vw, 96px);
  line-height: .92;
  letter-spacing: -.012em;
}
.motion .hero__title { visibility: hidden; animation: reveal-fallback 0s 2.6s forwards; }
@keyframes reveal-fallback { to { visibility: visible; } }
.hero__lead { margin-top: 14px; max-width: 36ch; font-size: 16.5px; line-height: 1.45; color: var(--ink-2); }
.hero__cta { display: flex; align-items: center; gap: 22px; margin-top: 20px; }
.hero__more {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 700; text-decoration: none;
}
.hero__more:hover { text-decoration: underline; }
.hero__more .i { width: 18px; height: 18px; }

.hero__wheel { grid-area: wheel; position: relative; min-height: 0; margin-bottom: 8px; }
.wheel {
  position: absolute; top: 0; bottom: 0; right: -13%;
  width: 100%; height: 100%;
  overflow: visible;
}
.motion .wheel { animation: wheel-in 1.1s var(--ease-out) both; }
@keyframes wheel-in { from { opacity: 0; transform: scale(.94) rotate(-4deg); filter: blur(6px); } }

.w-tire { fill: var(--ink); }
.w-tread { fill: none; stroke: var(--paper); stroke-opacity: .2; stroke-width: 22; stroke-dasharray: 2.6 8.4; }
.w-rim { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.w-spokes { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.w-spokes--back { stroke-opacity: .4; }
.w-flange { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.w-flange--back { stroke-opacity: .55; }
.w-barrel { fill: none; stroke: var(--ink); stroke-width: 20; stroke-linecap: round; }
.w-axle { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
.w-valve { fill: none; stroke: var(--red); stroke-width: 8; stroke-linecap: round; }
.w-probe { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.w-tip { fill: var(--red); }

.gauge {
  position: absolute; left: 0; top: 2px;
  display: flex; align-items: center; gap: 9px;
  padding: 6px 12px 6px 6px;
  border-radius: 12px;
  background: var(--paper-hi);
  box-shadow: 0 0 0 1px var(--rule), 0 14px 30px -16px rgba(25, 28, 34, .45);
}
.gauge__dial { width: 46px; height: 46px; flex: none; }
.gauge__face { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; }
.gauge__ticks { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; }
.gauge__zero { fill: none; stroke: var(--red); stroke-width: 2.4; stroke-linecap: round; }
.gauge__needle { stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; }
.gauge__cap { fill: var(--ink); }
.gauge__txt { display: grid; line-height: 1.15; }
.gauge__label, .gauge__status { font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.gauge__value {
  margin: 1px 0 2px;
  font: 850 25px/1 var(--f-display);
  font-variant-numeric: tabular-nums;
  color: var(--red-ink);
  transition: color .4s;
}
.gauge.is-true .gauge__value { color: var(--ink); }
.wheel__spec { display: none; }

/* ---------- sections ---------- */

.sec { padding-block: 96px; }
.sec h2 { font-size: clamp(44px, 11.5vw, 84px); }
.sec__lead { margin-top: 16px; max-width: 44ch; font-size: 18px; color: var(--ink-2); }

/* prices */
.prices { border-top: 1px solid var(--rule); }
.prices__grid { display: grid; gap: 56px; }
.season {
  margin-top: 36px; padding: 24px 22px 22px;
  border-radius: 14px;
  background: var(--ink); color: var(--on-dark);
  box-shadow: 0 26px 50px -30px rgba(25, 28, 34, .7);
}
.season__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 14px; padding-bottom: 14px;
  border-bottom: 1px solid rgba(241, 235, 223, .16);
}
.season h3 { font-size: 34px; }
.season .season__price { font: 850 36px/1 var(--f-display); font-variant-numeric: tabular-nums; color: var(--red-hi); white-space: nowrap; }
.season p { color: var(--on-dark-2); }
.season__meta { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 15px; font-weight: 600; color: var(--on-dark) !important; }
.season__meta .i { color: var(--red-hi); }

.pgroup + .pgroup { margin-top: 44px; }
.pgroup h3 { padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-size: 28px; }
.pgroup dl { margin: 0; }
.prow {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 10px;
  padding: 15px 0 14px;
  border-bottom: 1px solid var(--rule);
}
.prow dt { display: flex; align-items: baseline; gap: 10px; font-size: 17.5px; font-weight: 500; line-height: 1.3; }
.prow dt::after { content: ""; flex: 1 1 24px; min-width: 24px; border-bottom: 2px dotted rgba(25, 28, 34, .38); transform: translateY(-4px); }
.prow__cost { margin: 0; font: 800 23px/1.1 var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prow__note { grid-column: 1 / -1; margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }

/* steps */
.steps { background: var(--paper-lo); }
.steps__grid { display: grid; gap: 44px; }
.steps__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; background: #d9d0be; }
.drive { position: relative; margin-top: 40px; }
.drive__list { list-style: none; margin: 0; padding: 0; }
.drive__chain { position: absolute; left: 18px; top: 20px; bottom: 120px; width: 16px; overflow: hidden; }
.drive__links {
  position: absolute; left: 0; right: 0; top: -40px; bottom: -40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='20' viewBox='0 0 16 20'%3E%3Cg fill='%23191c22'%3E%3Crect x='4' y='-3.5' width='8' height='17' rx='4'/%3E%3Crect x='4' y='16.5' width='8' height='17' rx='4'/%3E%3C/g%3E%3Cg fill='%2357595f'%3E%3Crect x='2.5' y='6.5' width='11' height='17' rx='5.5'/%3E%3Crect x='2.5' y='-13.5' width='11' height='17' rx='5.5'/%3E%3C/g%3E%3Cg fill='%23e7dfcf' stroke='%23191c22' stroke-width='1'%3E%3Ccircle cx='8' cy='0' r='2.1'/%3E%3Ccircle cx='8' cy='10' r='2.1'/%3E%3Ccircle cx='8' cy='20' r='2.1'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 16px 20px repeat-y;
  will-change: transform;
}
.step { position: relative; padding: 0 0 44px 74px; }
.step:last-child { padding-bottom: 0; }
.step__gear { position: absolute; left: 0; top: -8px; display: grid; place-items: center; width: 52px; height: 52px; }
.sprocket { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sprocket__teeth { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
.sprocket__ring { fill: none; stroke: var(--ink); stroke-width: 1; }
.sprocket__bolt { display: none; }
.step__gear b { position: relative; font: 850 21px/1 var(--f-display); }
.step h3 { font-size: 30px; line-height: 1; }
.step p { margin-top: 10px; max-width: 44ch; color: var(--ink-2); }

/* works */
.works__list {
  list-style: none;
  display: flex; gap: 14px;
  margin: 40px 0 0; padding: 0 var(--gut) 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gut);
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.work { flex: 0 0 min(76%, 340px); scroll-snap-align: start; }
.work img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; background: #d9d0be; }
.work figcaption { display: grid; gap: 3px; margin-top: 14px; }
.work b { font: 850 24px/1.05 var(--f-display); }
.work span { font-size: 15.5px; line-height: 1.38; color: var(--ink-2); }
.work .work__time {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px;
  font-size: 14px; font-weight: 700; color: var(--red-ink);
}
.work .work__time::before { content: ""; width: 14px; height: 1.5px; background: currentColor; }

/* reviews */
.reviews { border-top: 1px solid var(--rule); }
.reviews__grid { display: grid; gap: 44px; }
.reviews__note { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.quote { padding-top: 22px; border-top: 1px solid var(--rule-strong); }
.quote blockquote { margin: 0; }
.quote p { font-size: 19px; font-weight: 500; line-height: 1.45; }
.quote--big p { font: 800 clamp(30px, 8vw, 50px)/1.04 var(--f-display); letter-spacing: -.004em; text-wrap: balance; }
.quote figcaption { margin-top: 16px; font-size: 15px; font-weight: 600; color: var(--ink-2); }

/* map */
.map { padding-bottom: 0; }
.map__frame { position: relative; margin-top: 36px; }
.map__canvas { position: relative; height: 440px; overflow: hidden; background: #e2d9c7; }
.map__svg {
  position: absolute; left: var(--pin-x, 34%); top: var(--pin-y, 60%);
  width: 2000px; height: 1000px; max-width: none;
  margin: -442px 0 0 -1100px;
}
.m-block { fill: #e2d9c7; }
.m-hatch { stroke: #191c22; stroke-opacity: .06; stroke-width: 2; }
.m-park { fill: #d8d4b6; }
.m-trees circle { fill: #cdc9a8; stroke: #191c22; stroke-opacity: .24; stroke-width: 1.2; }
.m-trees--row circle { fill: #d3cfb0; stroke-opacity: .18; }
.m-path { fill: none; stroke: #f7f2e8; stroke-width: 8; stroke-linecap: round; }
.m-water { fill: #c5cbc4; }
.m-waves path { fill: none; stroke: #191c22; stroke-opacity: .22; stroke-width: 1.6; stroke-linecap: round; }
.m-streets path { fill: none; stroke: #f7f2e8; stroke-width: 30; }
.m-streets--main path { stroke-width: 46; }
.m-houses rect { fill: #d5cbb6; stroke: #191c22; stroke-opacity: .16; stroke-width: 1; }
.m-house-shop { fill: var(--paper-hi); stroke: var(--red); stroke-width: 2.5; }
.m-yard { fill: none; stroke: #f7f2e8; stroke-width: 12; }
.map__route { fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14 10; }
.map__route-reveal { fill: none; stroke: #fff; stroke-width: 44; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.m-labels text {
  font: 600 15px var(--f-body); letter-spacing: .02em;
  fill: #4b4e57; dominant-baseline: central;
  paint-order: stroke; stroke: #f7f2e8; stroke-width: 5px; stroke-linejoin: round;
}
.m-labels .m-label-park { font-style: italic; font-size: 17px; fill: #55543f; stroke: #d8d4b6; }
.m-pin { fill: var(--red); }
.m-pin-shadow { fill: #191c22; opacity: .22; }
.m-pin-mark circle, .m-pin-mark path { fill: none; stroke: var(--on-red); }
.m-pin-mark > circle:first-child { stroke-width: 2.6; }
.m-tag rect { fill: var(--paper-hi); stroke: #191c22; stroke-opacity: .22; filter: drop-shadow(0 6px 10px rgba(25, 28, 34, .18)); }
.m-tag-name { font: 850 23px var(--f-display); fill: var(--ink); }
.m-tag-sub { font: 500 13.5px var(--f-body); fill: var(--ink-2); }
.map__north, .map__scale { position: absolute; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.map__north { top: 16px; right: 16px; flex-direction: column; gap: 0; }
.map__north svg { width: 22px; height: 22px; fill: var(--ink); }
.map__scale { top: 22px; left: var(--gut); }
.map__scale i { width: 64px; height: 6px; border: 1.5px solid var(--ink-2); border-top: 0; }
.map__card {
  position: relative;
  margin: -44px var(--gut) 0; padding: 22px 22px 22px;
  border-radius: 14px;
  background: var(--paper-hi);
  box-shadow: 0 0 0 1px var(--rule), 0 26px 50px -26px rgba(25, 28, 34, .5);
}
.map__addr { font: 850 30px/1 var(--f-display); text-wrap: balance; }
.map__facts { list-style: none; display: grid; gap: 10px; margin: 18px 0 22px; padding: 0; font-size: 16px; color: var(--ink-2); }
.map__facts li { display: flex; align-items: center; gap: 10px; }
.map__facts .i { color: var(--ink); }
.map__legend { flex: none; width: 20px; height: 0; border-top: 3px dashed var(--red); }
.map__card .btn { width: 100%; }

/* contact */
.contact { margin-top: 96px; background: var(--ink); color: var(--on-dark); }
.contact .sec__lead { color: var(--on-dark-2); }
.contact :focus-visible { outline-color: var(--red-hi); }
.contact__grid { display: grid; gap: 56px; }
.contact__btns { display: grid; gap: 10px; margin-top: 30px; }
.mbtn {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 18px;
  border: 0; border-radius: 12px;
  background: var(--dark-2); color: var(--on-dark);
  box-shadow: inset 0 0 0 1px rgba(241, 235, 223, .14);
  font: 600 17px/1 var(--f-body); text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, box-shadow .2s;
}
.mbtn:hover { background: #2d3139; box-shadow: inset 0 0 0 1px rgba(241, 235, 223, .32); }
.mbtn .i { width: 22px; height: 22px; color: var(--red-hi); }
.mbtn--phone { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.contact__facts { display: grid; gap: 0; margin: 32px 0 0; }
.contact__facts div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(241, 235, 223, .14); }
.contact__facts dt { font-size: 15px; color: var(--on-dark-2); }
.contact__facts dd { margin: 0; }

.ticket {
  position: relative;
  padding: 30px 22px 24px;
  border-radius: 16px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 34px 60px -34px rgba(0, 0, 0, .8);
}
.ticket::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: -6px; height: 12px;
  background: radial-gradient(circle, var(--ink) 5.4px, transparent 6px) 0 0 / 22px 12px repeat-x;
}
.ticket:focus { outline: none; }
.form h3, .done__title { font-size: 32px; }
.form h3 { margin-bottom: 22px; }
.field + .field { margin-top: 16px; }
.field label { display: block; margin-bottom: 7px; font-size: 15px; font-weight: 600; }
.field__opt { font-weight: 400; color: var(--ink-2); }
.field input, .field textarea {
  display: block; width: 100%; min-height: 52px;
  padding: 13px 14px;
  border: 1.5px solid rgba(25, 28, 34, .3); border-radius: 10px;
  background: var(--paper-hi);
  font-size: 17px; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:hover, .field textarea:hover { border-color: rgba(25, 28, 34, .55); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(198, 60, 25, .3); }
.field.is-bad input { border-color: var(--red-ink); background: #fbefe8; }
.field__err { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; font-size: 14.5px; font-weight: 500; line-height: 1.35; color: var(--red-ink); }
.field__err .i { width: 18px; height: 18px; margin-top: 1px; }
.form__submit { margin-top: 24px; }
.form__spin { display: none; }
.form.is-sending .form__spin { display: block; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__note { margin-top: 12px; font-size: 14.5px; text-align: center; color: var(--ink-2); }
.done:not([hidden]) { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: var(--ticket-h, 0); }
.done__check { width: 56px; height: 56px; }
.done__check circle { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.done__check path { fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 32; }
.motion .done:not([hidden]) .done__check path { animation: draw .7s .15s var(--ease-out) both; }
@keyframes draw { from { stroke-dashoffset: 32; } }
.done__title { margin-top: 18px; }
.done__title:focus { outline: none; }
.done p { margin-top: 10px; color: var(--ink-2); }
.done .btn { margin-top: 24px; }

/* footer */
.foot {
  padding: 44px 0 calc(116px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(241, 235, 223, .12);
  background: var(--ink); color: var(--on-dark-2);
  font-size: 15px;
}
.foot__in { display: grid; gap: 24px; }
.foot__brand { display: grid; gap: 12px; }
.logo--foot { color: var(--on-dark); }
.logo--foot .logo__word { font-size: 26px; }
.logo--foot .logo__mark { width: 26px; height: 26px; }
.foot__demo { padding-top: 22px; border-top: 1px solid rgba(241, 235, 223, .12); }
.foot__demo a { color: var(--on-dark); font-weight: 600; }
.foot__demo a:hover { color: #fff; }
.foot :focus-visible { outline-color: var(--red-hi); }

/* toast */
.toast {
  position: fixed; z-index: 60; inset: calc(var(--top-h) + 10px + env(safe-area-inset-top)) 0 auto;
  display: flex; justify-content: center;
  padding: 0 12px;
  pointer-events: none;
}
.toast__box {
  display: flex; align-items: flex-start; gap: 12px;
  width: min(100%, 460px);
  padding: 14px 8px 14px 16px;
  border-radius: 14px;
  background: var(--paper-hi); color: var(--ink);
  box-shadow: 0 0 0 1px var(--rule), 0 26px 50px -18px rgba(25, 28, 34, .55);
  font-size: 15.5px; line-height: 1.42;
  pointer-events: auto;
}
.toast__box[hidden] { display: none; }
.toast__box.is-in { animation: toast-in .55s var(--ease-out) both; }
.toast__box.is-out { animation: toast-out .3s ease-in both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-18px) scale(.97); filter: blur(4px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px) scale(.98); } }
.toast__icon { width: 22px; height: 22px; margin-top: 1px; color: var(--red); }
.toast__txt { flex: 1; padding-top: 1px; }
.toast__txt b { font-weight: 700; }
.toast__x {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; margin: -7px 0;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--ink-2); cursor: pointer;
}
.toast__x:hover { background: rgba(25, 28, 34, .07); color: var(--ink); }

/* ---------- larger screens ---------- */

@media (min-width: 600px) {
  :root { --gut: 32px; }
  .hero__lead { font-size: 18px; }
  .wheel { right: 0; }
  .gauge { top: auto; bottom: 6%; }
  .work { flex-basis: 300px; }
  .map__canvas { height: 520px; }
  .map__card { max-width: 440px; margin-left: var(--gut); }
  .contact__btns { grid-template-columns: repeat(3, auto); justify-content: start; }
}

@media (min-width: 960px) {
  :root { --top-h: 72px; --gut: 48px; }
  body { font-size: 18px; }
  .top__nav { display: flex; gap: 30px; margin-left: auto; }
  .top__nav a { font-size: 16px; font-weight: 600; text-decoration: none; }
  .top__nav a:hover { text-decoration: underline; }
  .top__cta { margin-left: 6px; }
  .top__cta-long { display: inline; }
  .top__cta-short { display: none; }
  .logo__sub { display: block; margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--rule-strong); font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--ink-2); }

  .hero__stage {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: minmax(0, 1fr);
    grid-template-areas: "copy wheel";
    align-items: center;
    column-gap: 32px;
    padding: calc(var(--top-h) + 12px) max(var(--gut), calc((100vw - var(--max)) / 2)) 56px;
  }
  .hero__title { font-size: clamp(76px, 7.4vw, 96px); }
  .hero__lead { margin-top: 26px; font-size: 20px; max-width: 25ch; text-wrap: balance; }
  .hero__cta { margin-top: 36px; gap: 28px; }
  .hero__wheel { align-self: stretch; margin: 0; }
  .wheel { right: 0; top: 2%; bottom: 2%; }
  .gauge { left: -4px; bottom: 9%; gap: 14px; padding: 12px 20px 12px 12px; border-radius: 14px; }
  .gauge__dial { width: 70px; height: 70px; }
  .gauge__value { font-size: 38px; }
  .gauge__label, .gauge__status { font-size: 13.5px; }
  .gauge { padding: 12px 20px 12px 12px; }
  .wheel__spec {
    display: block; position: absolute; right: 0; bottom: 1.5%;
    padding-top: 8px; border-top: 1px solid var(--rule-strong);
    font-size: 13.5px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2);
  }

  .sec { padding-block: 144px; }
  .sec__lead { font-size: 20px; }

  .prices__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; align-items: start; }
  .prices__intro { position: sticky; top: 120px; }
  .season { padding: 30px 30px 26px; }
  .prow dt { font-size: 18.5px; }
  .prow__cost { font-size: 25px; }

  .steps__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 96px; align-items: start; }
  .steps__photo { position: sticky; top: 120px; }
  .drive { margin-top: 56px; }
  .step { padding-bottom: 56px; }
  .step h3 { font-size: 36px; }

  .works__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; }
  .works__list {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 72px 40px;
    width: min(100% - 2 * var(--gut), var(--max));
    margin: 64px auto 0; padding: 0 0 104px;
    overflow: visible;
  }
  .work:nth-child(3n + 2) { transform: translateY(104px); }
  .work b { font-size: 28px; }

  .reviews__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 40px; row-gap: 72px; }
  .reviews__head { grid-column: 1 / 5; }
  .quote--big { grid-column: 5 / 13; }
  .quote:nth-child(3) { grid-column: 5 / 9; }
  .quote:nth-child(4) { grid-column: 9 / 13; }
  .quote:not(.quote--big) p { font-size: 20px; }

  .map__frame { width: min(100% - 2 * var(--gut), 1440px); margin: 56px auto 0; }
  .map__canvas { height: 600px; border-radius: 18px; --pin-x: 62%; --pin-y: 56%; }
  .map__card { position: absolute; left: 28px; bottom: 28px; width: 400px; margin: 0; padding: 28px; }
  .map__scale { left: auto; right: 70px; top: 26px; }
  .map__addr { font-size: 34px; }

  .contact { margin-top: 144px; }
  .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 96px; align-items: start; }
  .contact__btns { grid-template-columns: 1fr; max-width: 360px; }
  .ticket { padding: 40px 40px 32px; }

  .foot__in { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .foot__brand { grid-template-columns: auto 1fr; align-items: center; gap: 20px; }
  .foot__demo { padding-top: 0; border-top: 0; text-align: right; max-width: 40ch; }
}

@media (min-width: 960px) and (max-height: 720px) {
  .hero__title { font-size: 72px; }
  .hero__lead { margin-top: 18px; }
  .hero__cta { margin-top: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}
