:root {
  --bg: oklch(0.965 0.008 125);
  --ink: oklch(0.22 0.02 145);
  --muted: oklch(0.36 0.02 145);
  --line: oklch(0.84 0.012 125);
  --stage: oklch(0.93 0.014 125);
  --white: oklch(0.985 0.004 125);
  --accent: oklch(0.87 0.17 128);
  --accent-ink: oklch(0.24 0.04 145);
  --danger: oklch(0.42 0.14 25);
  --ok: oklch(0.38 0.08 150);
  --radius: 16px;
  --input: 12px;
  --nav: 64px;
  --shadow: 0 8px 0 oklch(0.22 0.02 145 / 0.04);
  color-scheme: light;
  font-family: Onest, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
  z-index: 5;
}

.skip:focus {
  top: 12px;
}

.nav {
  height: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: "Sofia Sans Condensed", Impact, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 999px;
  height: 40px;
  padding: 0 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  padding: 16px 0 clamp(48px, 8vw, 88px);
}

.stage {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  background: var(--stage);
  border-radius: var(--radius);
  padding: 20px 18px 12px;
}

.kicker {
  margin: 0 0 8px;
  font-weight: 600;
}

h1,
h2,
h3 {
  font-family: "Sofia Sans Condensed", Impact, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
  line-height: 0.95;
  margin: 0;
}

h1 {
  font-size: clamp(3.1rem, 5.4vw, 5.4rem);
}

h1 span {
  color: inherit;
}

.lede {
  margin: 14px 0 0;
  max-width: 34ch;
  line-height: 1.45;
  text-wrap: pretty;
}

.bike-wrap {
  position: relative;
  min-height: 280px;
}

.bike-wrap img {
  width: 88%;
  height: auto;
  margin: 36px auto 22px;
  object-fit: contain;
}

.callouts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.callouts li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 10px 12px;
  min-width: 132px;
}

.callouts strong {
  display: block;
  font-family: "Sofia Sans Condensed", Impact, sans-serif;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.callouts span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.25;
}

.buy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 22px;
}

.swatches {
  display: flex;
  gap: 8px;
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px oklch(0.22 0.02 145 / 0.35);
}

.swatch[aria-pressed="true"] {
  border-color: var(--ink);
}

.swatch.black {
  background: oklch(0.28 0.01 140);
}

.swatch.sand {
  background: oklch(0.64 0.045 75);
}

.swatch.green {
  background: oklch(0.58 0.11 128);
}

.swatch.white {
  background: oklch(0.97 0.004 125);
}

.color-name {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.price {
  margin: 16px 0 0;
  font-family: "Sofia Sans Condensed", Impact, sans-serif;
  font-size: clamp(2.4rem, 3vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.buy > .btn {
  margin-top: 6px;
}

.section {
  padding: clamp(48px, 8vw, 88px) 0;
  scroll-margin-top: 76px;
}

#zayavka {
  scroll-margin-top: 76px;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  margin-bottom: 16px;
}

.shots {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.82fr;
  grid-template-rows: 240px 220px 200px;
  gap: 12px;
}

.shot {
  margin: 0;
  min-width: 0;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: oklch(0.25 0.02 140);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shot.wide {
  grid-column: 1 / 3;
  grid-row: 1;
}

.shot.wide img {
  object-position: 68% center;
}

.shot.tall {
  grid-column: 3;
  grid-row: 1 / 3;
}

.shot.tall img {
  object-position: center 18%;
}

.shot:nth-child(3) img {
  object-position: 40% center;
}

.shot:nth-child(4) img {
  object-position: 72% 35%;
}

.shot:nth-child(7) img {
  object-position: 70% center;
}

.ground p,
.prose p,
.groups p,
.faq p {
  line-height: 1.5;
  text-wrap: pretty;
  max-width: 62ch;
}

.mosaic {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 12px;
}

.stat {
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  background: var(--white);
  min-height: 140px;
}

.stat:nth-child(1) {
  background: var(--accent);
  color: var(--accent-ink);
}

.stat:nth-child(2) {
  background: var(--ink);
  color: var(--white);
}

.stat:nth-child(3) {
  background: var(--stage);
}

.num {
  margin: 0;
  font-family: "Sofia Sans Condensed", Impact, sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 0.9;
}

.stat p:last-child {
  margin: 10px 0 0;
  max-width: 24ch;
  line-height: 1.35;
}

.stat:nth-child(2) p:last-child,
.stat:nth-child(1) p:last-child {
  color: inherit;
}

.groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
  margin-top: 28px;
}

.groups h3,
.spec-grid h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
  margin-top: 32px;
}

.spec-grid dl {
  margin: 0;
}

.spec-row {
  display: grid;
  grid-template-columns: minmax(108px, 0.72fr) 1.4fr;
  gap: 6px 16px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.spec-row dt,
.spec-row dd {
  margin: 0;
}

.spec-row dt {
  color: var(--muted);
  font-weight: 600;
}

.spec-row dd {
  line-height: 1.4;
}

.steps {
  display: grid;
  gap: 0;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  max-width: 720px;
}

.steps li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps strong {
  font-family: "Sofia Sans Condensed", Impact, sans-serif;
  font-size: 2rem;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.steps p {
  margin: 6px 0 0;
  max-width: 52ch;
  line-height: 1.45;
}

.faq {
  display: grid;
  gap: 0;
  max-width: 760px;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  font-family: "Sofia Sans Condensed", Impact, sans-serif;
  font-size: 1.6rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "-";
}

.faq details p {
  margin: 0 0 16px;
}

.ask {
  margin: 0;
  max-width: 42ch;
  line-height: 1.5;
}

.tg {
  width: fit-content;
  max-width: min(100%, 360px);
  margin-top: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.tg p {
  margin: 0;
}

.tg .kicker {
  margin: 0;
}

#tg-link.is-disabled,
.tg .btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

label {
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid oklch(0.7 0.015 140);
  border-radius: var(--input);
  min-height: 48px;
  padding: 10px 12px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.hint,
.error {
  margin: 0;
  font-size: 0.92rem;
}

.hint {
  color: var(--muted);
}

.error {
  color: var(--danger);
  min-height: 1.2em;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
}

.check input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 2px;
}

.hp {
  position: absolute;
  left: -9999px;
}

.success {
  grid-column: 2;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
}

.success h3 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

[hidden] {
  display: none !important;
}

.inbox {
  padding: 28px 0 64px;
}

.inbox table {
  width: 100%;
  border-collapse: collapse;
}

.inbox th,
.inbox td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.toolbar {
  display: flex;
  gap: 10px;
  margin: 12px 0 18px;
}

@media (min-width: 980px) {
  .callouts li {
    position: absolute;
    z-index: 1;
  }

  .callouts li:nth-child(1) {
    top: 18%;
    left: 0;
  }

  .callouts li:nth-child(2) {
    top: 12%;
    right: 0;
  }

  .callouts li:nth-child(3) {
    bottom: 10%;
    left: 0;
  }

  .callouts li:nth-child(4) {
    bottom: 6%;
    right: 0;
  }
}

@media (max-width: 979px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .stage {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 18px 16px 16px;
  }

  .hero-copy {
    order: 1;
  }

  .bike-wrap {
    order: 3;
    min-height: 0;
  }

  .callouts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
  }

  .shots {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px;
    grid-auto-rows: 168px;
  }

  .shot.wide,
  .shot.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .shot.wide {
    grid-column: 1 / -1;
  }

  .mosaic,
  .groups,
  .spec-grid {
    grid-template-columns: 1fr;
  }

  .success {
    grid-column: 1;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:active {
    transform: none;
  }

  .bike-wrap img {
    transition: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .bike-wrap img {
    transition: opacity 0.25s ease;
  }
}
