/* =========================================================
   Грузоперевозки Омск — одностраничный сайт
   Цвета в oklch, шрифты: Unbounded (заголовки) + Onest (текст)
   ========================================================= */

:root {
  /* --- примитивы: нейтральный тёплый графит (hue 60) --- */
  --gray-50:  oklch(0.97 0.004 75);
  --gray-200: oklch(0.82 0.008 70);
  --gray-400: oklch(0.68 0.010 70);
  --gray-700: oklch(0.29 0.008 60);
  --gray-800: oklch(0.235 0.007 60);
  --gray-850: oklch(0.198 0.006 60);
  --gray-900: oklch(0.172 0.005 60);
  --gray-950: oklch(0.150 0.005 60);

  /* --- примитивы: янтарно-оранжевый акцент (hue 62) --- */
  --amber-300: oklch(0.84 0.140 70);
  --amber-400: oklch(0.80 0.155 66);
  --amber-500: oklch(0.76 0.165 60);
  --amber-950: oklch(0.21 0.035 55);

  /* --- семантика --- */
  --color-bg:            var(--gray-950);
  --color-bg-tint:       var(--gray-900);
  --color-surface:       var(--gray-850);
  --color-surface-hover: var(--gray-800);
  --color-surface-strong:var(--gray-700);
  --color-border:        oklch(1 0 0 / 0.08);
  --color-border-strong: oklch(1 0 0 / 0.14);
  --color-text-primary:  var(--gray-50);
  --color-text-secondary:var(--gray-200);
  --color-text-muted:    var(--gray-400);
  --color-accent:        var(--amber-500);
  --color-accent-hover:  var(--amber-400);
  --color-accent-text:   var(--amber-300);
  --color-accent-subtle: oklch(0.76 0.165 60 / 0.12);
  --color-accent-ring:   oklch(0.76 0.165 60 / 0.45);
  --color-on-accent:     var(--amber-950);

  --color-wa:  oklch(0.76 0.19 150);
  --color-tg:  oklch(0.70 0.14 235);
  --color-max: oklch(0.66 0.19 285);

  /* --- типографика --- */
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-display: clamp(2.25rem, 1.2rem + 4.4vw, 4.5rem);
  --text-h2:      clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
  --text-h3:      1.1875rem;
  --text-lead:    clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --text-body:    1.0625rem;
  --text-sm:      0.9375rem;
  --text-xs:      0.8125rem;

  /* --- пространство и формы --- */
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(80px, 9vw, 136px);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --header-h: 72px;

  --ease-out: cubic-bezier(0.2, 0, 0, 1);

  --shadow-card:
    0 0 0 1px var(--color-border),
    0 1px 0 0 oklch(1 0 0 / 0.04) inset,
    0 24px 48px -24px oklch(0 0 0 / 0.6);
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  overflow-x: clip;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg);
  overflow-x: clip;
}

/* зерно поверх всего */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }

::selection { background: var(--color-accent); color: var(--color-on-accent); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: min(100% - 2 * var(--gutter), 1200px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.accent-text { color: var(--color-accent-text); }

.label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-text);
}

/* ---------- кнопки ---------- */
.btn {
  --h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding-inline: 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--text-sm);
  white-space: nowrap;
  cursor: pointer;
  transition-property: background-color, color, box-shadow, scale;
  transition-duration: 150ms;
  transition-timing-function: var(--ease-out);
}
.btn:active { scale: 0.96; }
.btn--lg { --h: 56px; padding-inline: 26px; font-size: 1rem; }
.btn--square { width: var(--h); padding: 0; }
.btn--block { width: 100%; }

.btn__icon {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.btn__icon--wa  { color: var(--color-wa); }
.btn__icon--tg  { color: var(--color-tg); }
.btn__icon--max { color: var(--color-max); }

.btn--primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: 0 10px 30px -10px var(--color-accent-ring), 0 1px 0 0 oklch(1 0 0 / 0.35) inset;
}
.btn--primary:hover { background: var(--color-accent-hover); }

.btn--ghost {
  background: oklch(1 0 0 / 0.04);
  color: var(--color-text-primary);
  box-shadow: 0 0 0 1px var(--color-border-strong) inset;
}
.btn--ghost:hover { background: oklch(1 0 0 / 0.08); }

/* ---------- шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: oklch(0.150 0.005 60 / 0.6);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  transition-property: background-color, box-shadow;
  transition-duration: 200ms;
}
.header.is-scrolled {
  background: oklch(0.150 0.005 60 / 0.82);
  box-shadow: 0 1px 0 0 var(--color-border);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo__mark {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 13px;
  background: var(--color-accent);
  box-shadow: 0 1px 0 0 oklch(1 0 0 / 0.35) inset, 0 8px 20px -8px var(--color-accent-ring);
}
.logo__mark svg {
  width: 26px; height: 26px;
  fill: none; stroke: var(--color-on-accent); stroke-width: 2.4; stroke-linejoin: round;
}
.logo__text { display: grid; line-height: 1.15; }
.logo__title { font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.01em; }
.logo__sub { font-size: 0.75rem; color: var(--color-text-muted); white-space: nowrap; }

.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition-property: color, background-color;
  transition-duration: 150ms;
}
.nav a:hover { color: var(--color-text-primary); background: oklch(1 0 0 / 0.06); }

.header__contacts { display: flex; align-items: center; gap: 16px; }
.header__phones { display: grid; text-align: end; line-height: 1.25; }
.header__phone {
  font-weight: 600;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color 150ms;
}
.header__phone:hover { color: var(--color-accent-text); }
.header__phone--alt { font-size: var(--text-xs); font-weight: 500; color: var(--color-text-muted); }

.messengers { display: flex; gap: 8px; }
.msg {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.05);
  box-shadow: 0 0 0 1px var(--color-border) inset;
  transition-property: background-color, scale;
  transition-duration: 150ms;
}
.msg:hover { background: oklch(1 0 0 / 0.1); }
.msg:active { scale: 0.96; }
.msg svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.msg--wa  { color: var(--color-wa); }
.msg--tg  { color: var(--color-tg); }
.msg--max { color: var(--color-max); }

.header__call {
  display: none;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.header__call svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding-block: clamp(40px, 6vw, 88px) 0;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: calc(var(--header-h) * -1) 0 0;
  z-index: -1;
  overflow: hidden;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(oklch(1 0 0 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%);
}
.hero__glow {
  position: absolute;
  width: 900px; height: 700px;
  inset-inline-end: -200px; top: -120px;
  background: radial-gradient(closest-side, oklch(0.76 0.165 60 / 0.22), transparent);
  filter: blur(20px);
}
.hero__routes {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  fill: none;
  stroke: oklch(1 0 0 / 0.06);
  stroke-width: 1.5;
  stroke-dasharray: 2 10;
  stroke-linecap: round;
}
.hero__route-live {
  stroke: var(--color-accent);
  stroke-opacity: 0.55;
  stroke-width: 2;
  stroke-dasharray: 140 1800;
  animation: route 9s linear infinite;
}
@keyframes route { to { stroke-dashoffset: -1940; } }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.04);
  box-shadow: 0 0 0 1px var(--color-border) inset;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-subtle);
}

.hero__title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-display);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero__lead {
  margin-top: 24px;
  max-width: 34em;
  font-size: var(--text-lead);
  line-height: 1.55;
  color: var(--color-text-secondary);
  text-wrap: pretty;
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__phones {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
}
.hero__phones dt {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.hero__phones dd a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition: color 150ms;
}
.hero__phones dd a:hover { color: var(--color-accent-text); }

/* --- иллюстрация --- */
.hero__art {
  position: relative;
  aspect-ratio: 1 / 0.82;
  display: grid;
  place-items: center;
}
.hero__sun {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  top: 4%;
  background:
    radial-gradient(circle at 50% 40%, oklch(0.76 0.165 60 / 0.35), oklch(0.76 0.165 60 / 0.06) 60%, transparent 70%);
  box-shadow: 0 0 0 1px oklch(0.76 0.165 60 / 0.12) inset;
}
.hero__sun::before,
.hero__sun::after {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  border: 1px dashed oklch(1 0 0 / 0.07);
}
.hero__sun::after { inset: -26%; border-style: solid; border-color: oklch(1 0 0 / 0.04); }

.truck {
  position: relative;
  width: 112%;
  max-width: none;
  margin-inline: -6%;
  margin-top: 14%;
  overflow: visible;
  filter: drop-shadow(0 30px 40px oklch(0 0 0 / 0.45));
}
.truck__body { animation: bob 0.9s var(--ease-out) infinite alternate; }
.truck__rim {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 0.8s linear infinite;
}
.truck__road { animation: road 0.6s linear infinite; }
.truck__speed { color: oklch(1 0 0 / 0.35); stroke-width: 3; animation: speed 0.9s linear infinite; }
.truck__beam { animation: beam 3s ease-in-out infinite; }

@keyframes bob   { to { transform: translateY(-1.5px); } }
@keyframes spin  { to { rotate: 360deg; } }
@keyframes road  { to { stroke-dashoffset: 60; } }
@keyframes speed {
  0%   { transform: translateX(10px); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateX(-30px); opacity: 0; }
}
@keyframes beam { 50% { opacity: 0.6; } }

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 10px;
  border-radius: 999px;
  background: oklch(0.198 0.006 60 / 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 1px var(--color-border-strong) inset, 0 16px 32px -12px oklch(0 0 0 / 0.6);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.float-chip svg {
  width: 26px; height: 26px;
  padding: 5px;
  border-radius: 999px;
  background: var(--color-accent-subtle);
  color: var(--color-accent-text);
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.float-chip--a { top: 6%;  inset-inline-start: 2%; }
.float-chip--b { top: 16%; inset-inline-end: 0; animation-delay: -2s; }
.float-chip--c { bottom: 4%; inset-inline-start: 34%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* --- быстрая заявка --- */
.quick {
  position: relative;
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, oklch(0.215 0.007 60 / 0.9), oklch(0.185 0.006 60 / 0.9));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.quick__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
.quick__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
.quick__sub { color: var(--color-text-muted); font-size: var(--text-sm); text-wrap: pretty; }

.quick__fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.field { display: grid; gap: 8px; min-width: 0; }
.field__label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0;
}
.field__control {
  width: 100%;
  height: 52px;
  padding-inline: 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  box-shadow: 0 0 0 1px var(--color-border-strong) inset;
  font-size: 1rem;
  transition-property: box-shadow, background-color;
  transition-duration: 150ms;
}
.field__control::placeholder { color: oklch(0.60 0.008 70); }
.field__control:hover { background: oklch(0.13 0.005 60); }
.field__control:focus { outline: none; box-shadow: 0 0 0 2px var(--color-accent) inset, 0 0 0 4px var(--color-accent-subtle); }
select.field__control {
  appearance: none;
  padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a59c92' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  cursor: pointer;
}
select.field__control option { background: var(--gray-850); }

.quick__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.chips {
  border: 0; margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.chips legend { float: left; width: 100%; margin-bottom: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: grid; place-items: center;
  min-width: 52px; height: 44px;
  padding-inline: 16px;
  border-radius: 999px;
  background: var(--color-bg);
  box-shadow: 0 0 0 1px var(--color-border-strong) inset;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  transition-property: background-color, color, box-shadow, scale;
  transition-duration: 150ms;
}
.chip:hover span { color: var(--color-text-primary); }
.chip:active span { scale: 0.96; }
.chip input:checked + span {
  background: var(--color-accent-subtle);
  color: var(--color-accent-text);
  box-shadow: 0 0 0 1.5px var(--color-accent) inset;
}
.chip input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 3px; }

.quick__submit { display: flex; gap: 10px; }
.quick__alt-label { display: none; }

/* ---------- бегущая строка ---------- */
.marquee {
  margin-top: clamp(64px, 8vw, 104px);
  padding-block: 20px;
  border-block: 1px solid var(--color-border);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.125rem, 1rem + 0.8vw, 1.625rem);
  letter-spacing: -0.02em;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.marquee i {
  width: 10px; height: 10px; flex: none;
  rotate: 45deg;
  border-radius: 2px;
  background: var(--color-accent);
}
@keyframes marquee { to { transform: translateX(calc(-50% - 16px)); } }

/* ---------- секции ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--color-bg-tint); }

.section__head { display: grid; gap: 16px; max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h2);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section__lead {
  font-size: var(--text-lead);
  line-height: 1.55;
  color: var(--color-text-secondary);
  max-width: 36em;
  text-wrap: pretty;
}

/* ---------- услуги ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.service {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: hidden;
  transition-property: background-color, translate;
  transition-duration: 200ms;
  transition-timing-function: var(--ease-out);
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), oklch(0.76 0.165 60 / 0.10), transparent 50%);
  opacity: 0;
  transition: opacity 200ms;
  pointer-events: none;
}
.service:hover { background: var(--color-surface-hover); }
.service:hover::before { opacity: 1; }

.service__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: var(--color-accent-subtle);
  box-shadow: 0 0 0 1px oklch(0.76 0.165 60 / 0.2) inset;
  color: var(--color-accent-text);
}
.service__icon svg {
  width: 28px; height: 28px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.service__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h3);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.service__text { color: var(--color-text-muted); font-size: var(--text-sm); line-height: 1.55; text-wrap: pretty; }

/* ---------- почему мы (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.bento__card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  display: grid;
  align-content: start;
  gap: 12px;
}
.bento__card { position: relative; overflow: hidden; isolation: isolate; }
.bento__card--wide { grid-column: span 2; }
.bento__card--wide > div { max-width: 32em; }
.bento__mark {
  position: absolute;
  z-index: -1;
  inset-inline-end: -24px;
  bottom: -48px;
  width: 240px; height: 240px;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 0.9;
  stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.14;
}
.bento__card--accent {
  background:
    radial-gradient(120% 140% at 100% 0%, oklch(0.76 0.165 60 / 0.22), transparent 55%),
    var(--color-surface);
}
.bento__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: 0 1px 0 0 oklch(1 0 0 / 0.35) inset, 0 10px 24px -10px var(--color-accent-ring);
}
.bento__icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.bento__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.bento__text { color: var(--color-text-muted); text-wrap: pretty; }
.bento__card--wide .bento__text { margin-top: 12px; color: var(--color-text-secondary); }
.bento__card:not(.bento__card--wide) .bento__text { font-size: var(--text-sm); }

/* ---------- цены ---------- */
.prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.price {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.price--featured {
  background:
    radial-gradient(140% 90% at 50% -20%, oklch(0.76 0.165 60 / 0.20), transparent 60%),
    var(--color-surface);
  box-shadow:
    0 0 0 1.5px oklch(0.76 0.165 60 / 0.55),
    0 30px 60px -30px oklch(0.76 0.165 60 / 0.4);
}
.price__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price__name { font-size: 1.0625rem; font-weight: 600; color: var(--color-text-secondary); }
.price__badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.price__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price__from, .price__unit {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--color-text-muted);
}
.price__list { display: grid; gap: 12px; flex: 1; }
.price__list li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--text-sm); color: var(--color-text-secondary); line-height: 1.45; }
.price__list svg {
  width: 20px; height: 20px; flex: none;
  margin-top: 1px;
  fill: none; stroke: var(--color-accent-text); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- шаги ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 40px;
  inset-inline: 40px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-accent) 0 10px, transparent 10px 20px);
  opacity: 0.35;
}
.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 0 8px 0 0;
}
.step__num {
  display: grid; place-items: center;
  width: 80px; height: 80px;
  margin-bottom: 12px;
  border-radius: 24px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--color-accent-text);
  font-variant-numeric: tabular-nums;
}
.step:last-child .step__num {
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: 0 1px 0 0 oklch(1 0 0 / 0.35) inset, 0 16px 32px -14px var(--color-accent-ring);
}
.step__title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-h3); line-height: 1.25; letter-spacing: -0.02em; }
.step__text { color: var(--color-text-muted); font-size: var(--text-sm); text-wrap: pretty; }

/* ---------- Авито ---------- */
.avito {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 48px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 36px;
  background:
    radial-gradient(80% 120% at 100% 50%, oklch(0.76 0.165 60 / 0.14), transparent 60%),
    var(--color-surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.avito__copy { display: grid; gap: 16px; justify-items: start; }
.avito__copy .btn { margin-top: 16px; }

.avito__art { position: relative; height: 260px; }
.avito__card {
  position: absolute;
  inset: 20px 0 auto 10%;
  padding: 24px;
  border-radius: 24px;
  background: var(--gray-800);
  box-shadow: 0 0 0 1px var(--color-border-strong), 0 30px 60px -20px oklch(0 0 0 / 0.7);
  rotate: -4deg;
  display: grid;
  gap: 18px;
}
.avito__card--back {
  inset: 0 6% auto 18%;
  height: 200px;
  rotate: 6deg;
  background: var(--gray-700);
  opacity: 0.55;
}
.avito__stars { display: flex; gap: 4px; color: var(--color-accent); }
.avito__stars svg { width: 24px; height: 24px; fill: currentColor; }
.avito__lines { display: grid; gap: 10px; }
.avito__lines i, .avito__meta i { display: block; height: 10px; border-radius: 99px; background: oklch(1 0 0 / 0.1); }
.avito__lines i:nth-child(2) { width: 86%; }
.avito__lines i:nth-child(3) { width: 62%; }
.avito__meta { display: flex; align-items: center; gap: 12px; }
.avito__meta i { width: 40%; }
.avito__avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--amber-300), var(--amber-500)); }

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.faq__head { position: sticky; top: calc(var(--header-h) + 32px); justify-items: start; margin-bottom: 0; }
.faq__head .btn { margin-top: 8px; }
.faq__list { display: grid; gap: 12px; }

.qa {
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  transition: background-color 150ms;
}
.qa[open] { background: var(--color-surface-hover); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { outline-offset: -2px; border-radius: var(--radius-md); }
.qa__icon {
  display: grid; place-items: center;
  width: 32px; height: 32px; flex: none;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.06);
  transition-property: rotate, background-color, color;
  transition-duration: 200ms;
  transition-timing-function: var(--ease-out);
}
.qa__icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.qa[open] .qa__icon { rotate: 45deg; background: var(--color-accent); color: var(--color-on-accent); }
.qa__body { padding: 0 24px 24px; color: var(--color-text-secondary); max-width: 62ch; text-wrap: pretty; }

@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .qa::details-content {
    height: 0;
    overflow: clip;
    transition-property: height, content-visibility;
    transition-duration: 250ms;
    transition-timing-function: var(--ease-out);
    transition-behavior: allow-discrete;
  }
  .qa[open]::details-content { height: auto; }
}

/* ---------- CTA / контакты ---------- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  padding: clamp(32px, 6vw, 72px);
  border-radius: 40px;
  background: linear-gradient(135deg, oklch(0.24 0.03 60), oklch(0.17 0.008 60) 60%);
  box-shadow: 0 0 0 1px oklch(0.76 0.165 60 / 0.25), 0 40px 80px -40px oklch(0.76 0.165 60 / 0.35);
}
.cta__glow {
  position: absolute;
  z-index: -1;
  width: 600px; height: 600px;
  inset-inline-start: -200px; bottom: -320px;
  border-radius: 50%;
  background: radial-gradient(closest-side, oklch(0.76 0.165 60 / 0.4), transparent);
  filter: blur(10px);
}
.cta__copy { display: grid; gap: 16px; }
.cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.cta__lead { color: var(--color-text-secondary); font-size: var(--text-lead); text-wrap: pretty; max-width: 30em; }

.cta__contacts { display: grid; gap: 12px; }
.cta__phone {
  display: grid;
  gap: 2px;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  background: oklch(0 0 0 / 0.25);
  box-shadow: 0 0 0 1px var(--color-border) inset;
  transition-property: background-color, box-shadow, scale;
  transition-duration: 150ms;
}
.cta__phone:hover { background: oklch(0 0 0 / 0.35); box-shadow: 0 0 0 1px var(--color-accent-ring) inset; }
.cta__phone:active { scale: 0.98; }
.cta__phone-label { font-size: var(--text-xs); color: var(--color-text-muted); }
.cta__phone-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cta__msgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.msg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding-inline: 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  background: oklch(1 0 0 / 0.06);
  box-shadow: 0 0 0 1px var(--color-border-strong) inset;
  transition-property: background-color, scale;
  transition-duration: 150ms;
}
.msg-btn:hover { background: oklch(1 0 0 / 0.11); }
.msg-btn:active { scale: 0.96; }
.msg-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.msg-btn--wa svg  { color: var(--color-wa); }
.msg-btn--tg svg  { color: var(--color-tg); }
.msg-btn--max svg { color: var(--color-max); }

/* ---------- подвал ---------- */
.footer { padding-block: 40px 48px; border-top: 1px solid var(--color-border); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.logo--sm .logo__mark { width: 36px; height: 36px; border-radius: 11px; }
.logo--sm .logo__mark svg { width: 22px; height: 22px; }
.footer__note { font-size: var(--text-xs); color: var(--color-text-muted); max-width: 40em; }
.footer__links { display: flex; gap: 24px; font-weight: 600; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.footer__links a:hover { color: var(--color-accent-text); }

/* ---------- мобильная панель ---------- */
.dock {
  display: none;
  position: fixed;
  z-index: 60;
  inset-inline: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  padding: 6px;
  gap: 6px;
  border-radius: 999px;
  background: oklch(0.198 0.006 60 / 0.86);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 0 0 1px var(--color-border-strong) inset, 0 20px 40px -10px oklch(0 0 0 / 0.7);
}
.dock__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px;
  min-width: 52px;
  border-radius: 999px;
  font-weight: 600;
  background: oklch(1 0 0 / 0.06);
  transition-property: scale, background-color;
  transition-duration: 150ms;
}
.dock__btn:active { scale: 0.96; }
.dock__btn--call { flex: 1; background: var(--color-accent); color: var(--color-on-accent); }
.dock__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.c-wa { color: var(--color-wa); } .c-tg { color: var(--color-tg); } .c-max { color: var(--color-max); }

/* ---------- тост ---------- */
.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  translate: -50% 8px;
  max-width: min(92vw, 440px);
  padding: 14px 20px;
  border-radius: 16px;
  background: var(--gray-50);
  color: var(--gray-950);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 20px 40px -12px oklch(0 0 0 / 0.6);
  opacity: 0;
  pointer-events: none;
  transition-property: opacity, translate;
  transition-duration: 200ms;
  transition-timing-function: var(--ease-out);
}
.toast.is-visible { opacity: 1; translate: -50% 0; }

/* ---------- появление при скролле ---------- */
.js [data-reveal] {
  opacity: 0;
  translate: 0 20px;
  transition-property: opacity, translate;
  transition-duration: 700ms;
  transition-timing-function: var(--ease-out);
  transition-delay: calc(var(--i, 0) * 100ms);
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* первый экран — анимация при загрузке, без зависимости от скрипта наблюдения */
@keyframes intro { from { opacity: 0; translate: 0 20px; } }
.js [data-intro] {
  animation: intro 700ms var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 100ms);
}

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1140px) {
  .nav { display: none; }
  .header__contacts { margin-inline-start: auto; }
  .quick__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { max-width: 560px; width: 100%; margin-inline: auto; }
  .services, .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }
  .avito, .cta, .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .avito__art { display: none; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .header__phones, .messengers--compact { display: none; }
  .header__call { display: grid; }
  .logo__mark { width: 38px; height: 38px; border-radius: 12px; }

  .hero__actions .btn--primary { flex: 1 1 100%; }
  .hero__actions .btn--ghost:not(.btn--square) { flex: 1; }
  .hero__phones dd a { font-size: 1.125rem; }
  .float-chip--c { inset-inline-start: 22%; }

  .quick__fields { grid-template-columns: 1fr; }
  .quick__submit { width: 100%; flex-wrap: wrap; }
  .quick__submit .btn--primary { flex: 1 1 100%; }
  .quick__alt { flex: 1 1 0; width: auto; padding-inline: 16px; }
  .quick__alt-label { display: inline; }
  .truck { width: 100%; margin-inline: 0; }

  .services, .prices, .bento { grid-template-columns: 1fr; }
  .bento__card--wide { grid-column: auto; }
  .bento__mark { width: 180px; height: 180px; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .step { grid-template-columns: 64px 1fr; column-gap: 20px; row-gap: 4px; }
  .step__num { grid-row: span 2; width: 64px; height: 64px; border-radius: 20px; margin-bottom: 0; font-size: 1.125rem; }

  .service, .bento__card, .price { padding: 24px; }
  .cta { border-radius: 32px; }
  .cta__msgs { grid-template-columns: 1fr; }
  .footer { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  .footer__inner { flex-direction: column; align-items: flex-start; }

  .dock { display: flex; }
}

@media (max-width: 380px) {
  .logo__sub { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .js [data-reveal] { opacity: 1; translate: none; transition: none; }
  .marquee__track { animation: none; }
}
