:root {
  --ink: #15171A;
  --ink-2: #2A2E33;
  --accent: #FFC72C;
  --bg: #F6F4EF;
  --card: #FFFFFF;
  --line: #E6E2D8;
  --line-2: #DAD7CF;
  --muted: #5A5F66;
  --muted-on-dark: #B4B9C0;
  --green: #1E8E4E;
  --red: #C0312B;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; }
h2 { font-family: Unbounded, sans-serif; font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
p { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.kicker { font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 24px; border: 0; border-radius: 14px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; line-height: 1.2;
  transition: transform .12s, filter .15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-glass { background: rgba(255,255,255,.45); color: var(--ink); border: 2px solid var(--ink);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-two { display: inline-grid; justify-items: start; gap: 2px; }
.btn-two span { font-size: 14px; font-weight: 600; }
.btn-dark.btn-two span { color: var(--accent); }
.btn:disabled { opacity: .55; cursor: progress; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Шапка ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--ink); color: #fff; border-bottom: 1px solid var(--ink-2); }
.top-in { display: flex; align-items: center; gap: 28px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: grid; grid-auto-flow: column; align-items: center; justify-content: start; gap: 12px; text-decoration: none; color: #fff; }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; color: var(--ink); }
.brand-mark svg { width: 26px; height: 26px; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text b { font-family: Unbounded, sans-serif; font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.brand-text small { font-size: 12px; color: var(--muted-on-dark); }
.nav { display: flex; gap: 22px; flex-grow: 1; font-weight: 600; font-size: 15px; }
.nav a { color: #E6E8EB; text-decoration: none; }
.nav a:hover { color: var(--accent); }
.top-call { display: grid; grid-auto-flow: column; align-items: center; gap: 16px; }
.top-phone { display: grid; justify-items: end; line-height: 1.2; }
.top-phone a { color: #fff; text-decoration: none; font-family: Unbounded, sans-serif; font-weight: 700; font-size: 18px; white-space: nowrap; }
.top-phone span { font-size: 12px; color: var(--muted-on-dark); display: grid; grid-auto-flow: column; align-items: center; gap: 6px; }
.live { width: 8px; height: 8px; border-radius: 4px; background: #3DDC84; display: inline-block; }
.live-green { background: var(--green); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid #3A3F45; background: transparent; color: #fff; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; }

/* ---------- Первый экран ---------- */
.hero { position: relative; overflow: hidden; height: min(820px, 88vh); min-height: 560px; background: #7DB8E3; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.checker { position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background: conic-gradient(var(--ink) 25%, var(--accent) 0 50%, var(--ink) 0 75%, var(--accent) 0) 0 0 / 14px 14px; }
.hero-in { position: relative; padding-top: 56px; display: grid; gap: 22px; justify-items: start; }
.pill { border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 700;
  display: inline-grid; grid-auto-flow: column; align-items: center; gap: 8px; background: rgba(255,255,255,.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero h1 { max-width: 700px; font-family: Unbounded, sans-serif; font-weight: 800; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.12; letter-spacing: -.01em; }
.hl { background: var(--ink); color: var(--accent); padding: 0 12px; border-radius: 10px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero-cta { display: grid; grid-auto-flow: column; justify-content: start; gap: 12px; }

/* ---------- Форма заказа ---------- */
.order { position: relative; margin-top: -64px; z-index: 5; }
.order-card { background: rgba(255,255,255,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.7); border-radius: 24px; padding: 20px; display: grid; gap: 14px;
  box-shadow: 0 24px 50px rgba(21,23,26,.22); }
.order-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 4px; flex-wrap: wrap; }
.order-head h2 { font-size: 20px; }
.order-head span { font-size: 14px; color: #4A4F57; font-weight: 600; }
.order-row { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr .9fr auto; gap: 10px; align-items: stretch; }
.f { position: relative; display: grid; align-content: start; gap: 4px; padding: 12px 16px; border-radius: 14px; background: #fff;
  border: 1px solid var(--line-2); font-size: 12px; font-weight: 700; color: var(--muted); }
.f:focus-within { border-color: var(--ink); }
.f input, .f select { border: 0; outline: none; font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); padding: 0; background: transparent; width: 100%; min-width: 0; }
.f-inline { max-width: 320px; }
.address-state { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.address-state:empty { display: none; }
.address-state.valid { color: var(--green); }
.address-state.valid::before { content: "✓ "; }
.address-state.invalid { color: var(--red); }
.btn-submit { min-height: 56px; padding: 0 28px; }
.website-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.order-extra[hidden] { display: none; }

.estimate { display: grid; grid-template-columns: repeat(3, minmax(0, 160px)) 1fr; gap: 10px; align-items: center; }
.estimate div { padding: 10px 14px; border-radius: 12px; background: var(--bg); }
.estimate span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.estimate b { font-family: Unbounded, sans-serif; font-size: 17px; }
.estimate.ready div:first-child { background: var(--accent); }
.estimate p { font-size: 13px; color: var(--muted); }

.map-box { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); }
.map-bar { position: absolute; z-index: 5; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; pointer-events: none; flex-wrap: wrap; }
.map-bar > * { pointer-events: auto; }
.map-target { display: inline-flex; padding: 3px; border-radius: 12px; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.map-target-button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; }
.map-target-button.active { background: var(--ink); color: var(--accent); }
#map-status { padding: 7px 12px; border-radius: 10px; background: rgba(255,255,255,.95); font-size: 13px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.map-holder { position: relative; height: 340px; background: #E8EAE6; }
.map-fallback { position: absolute; inset: 0; overflow: hidden; }
.order-map { position: absolute; inset: 0; }
.order-map.unavailable { color: transparent; font-size: 0; pointer-events: none; }
.map-ready .map-fallback { display: none; }
.form-status { font-weight: 700; text-align: center; }
.form-status:empty { display: none; }
.form-status.success { color: var(--green); }
.form-status.error { color: var(--red); }

/* ---------- Секции ---------- */
.section { padding-top: 72px; padding-bottom: 24px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-head p { font-size: 17px; color: var(--muted); max-width: 440px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--card); border-radius: 20px; padding: 28px; display: grid; align-content: start; justify-items: start; gap: 14px; border: 1px solid var(--line); }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); }
.ico { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--accent); display: grid; place-items: center; }
.ico svg { width: 26px; height: 26px; }

.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 20px; counter-reset: s; }
.steps li { position: relative; padding-left: 62px; display: grid; gap: 4px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 22px;
  background: var(--accent); display: grid; place-items: center; font-family: Unbounded, sans-serif; font-weight: 700; font-size: 18px; }
.steps b { font-size: 18px; }
.steps span { color: var(--muted); }
.dir-card { background: var(--ink); color: #fff; border-radius: 24px; padding: 32px; display: grid; align-content: start; }
.dir-card h3 { font-family: Unbounded, sans-serif; font-weight: 700; font-size: 22px; margin-bottom: 12px; }
.dir { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--ink-2); font-size: 17px; color: #fff; text-decoration: none; }
.dir:hover { color: var(--accent); }
.dir b { color: var(--accent); white-space: nowrap; }
.dir-card small { font-size: 13px; color: var(--muted-on-dark); padding-top: 14px; }

.app-card { background: var(--ink); color: #fff; border-radius: 28px; padding: 48px 56px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.app-card .kicker { color: var(--accent); }
.app-card h2 { margin: 12px 0 18px; }
.ticks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; color: #E6E8EB; font-size: 17px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px; background: var(--accent);
  -webkit-mask: none; }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 6px; height: 10px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.app-cta { display: grid; grid-auto-flow: column; justify-content: start; gap: 22px; align-items: center; }
.qr { display: grid; grid-auto-flow: column; align-items: center; gap: 10px; font-size: 13px; color: var(--muted-on-dark); }
.qr img { width: 84px; height: 84px; padding: 6px; border-radius: 12px; background: #fff; }
.qr span { max-width: 110px; }
.app-icon { width: 180px; height: 180px; border-radius: 40px; transform: rotate(-5deg); box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); }

.drivers { background: var(--accent); border-radius: 28px; padding: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; }
.drivers h2 { font-weight: 800; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; margin: 14px 0 16px; }
.drivers p { font-size: 18px; max-width: 460px; }
.drivers-cta { display: grid; grid-auto-flow: column; justify-content: start; gap: 12px; margin-top: 22px; }
.drivers-cta small { font-size: 12px; font-weight: 600; opacity: .7; }
.need { background: rgba(255,255,255,.55); border-radius: 20px; padding: 28px; display: grid; gap: 16px; }
.need b { font-size: 18px; }
.need span { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 14px; font-size: 17px; }
.need svg { width: 22px; height: 22px; stroke-width: 2.5; flex: none; }

#contacts h2 { margin-bottom: 28px; }
.phones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding-bottom: 72px; }
.ph { background: #fff; color: var(--ink); text-decoration: none; border-radius: 16px; padding: 22px; border: 1px solid var(--line);
  display: grid; gap: 6px; font-weight: 700; font-size: 18px; }
.ph span { font-size: 13px; color: var(--muted); font-weight: 600; }
.ph-main { background: var(--ink); color: #fff; border-color: var(--ink); }
.ph-main span { color: var(--accent); font-weight: 700; }

.foot { background: var(--ink); color: var(--muted-on-dark); }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 32px; font-size: 14px; }

.mbar { display: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1150px) {
  .nav { display: none; }
  .order-row { grid-template-columns: 1fr 1fr; }
  .order-row .btn-submit { grid-column: 1 / -1; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .top-in { gap: 12px; padding-top: 12px; padding-bottom: 12px; justify-content: space-between; }
  .brand-text small { display: none; }
  .brand-text b { font-size: 17px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 11px; }
  .top-call { display: none; }
  .menu-btn { display: grid; }
  .nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--ink); border-top: 1px solid var(--ink-2); padding: 6px 16px 12px; }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--ink-2); font-size: 17px; }
  .hero { height: auto; min-height: 0; padding-bottom: 0; background: var(--bg); }
  .hero picture { display: block; position: relative; height: 240px; }
  .hero-img { object-position: 62% center; }
  .hero .checker { top: 228px; bottom: auto; height: 12px; background-size: 12px 12px; }
  .hero-in { padding-top: 24px; padding-bottom: 8px; gap: 16px; }
  .pill { background: transparent; font-size: 12.5px; padding: 6px 12px; }
  .pill-more { display: none; }
  .hero h1 { font-size: 27px; line-height: 1.25; }
  .drivers-cta { grid-auto-flow: row; justify-content: stretch; }
  .drivers-cta .btn { width: 100%; flex-wrap: wrap; text-align: center; }
  h2 { font-size: 24px; }
  .drivers h2 { font-size: 26px; }
  h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
  .drivers, .app-card, .order-card, .dir-card { min-width: 0; }
  .btn { max-width: 100%; white-space: normal; }
  .hero-cta { width: 100%; grid-auto-flow: row; justify-content: stretch; }
  .hero-cta .btn { width: 100%; justify-items: center; }
  .btn-glass { display: none; }
  .order { margin-top: 16px; }
  .order-card { padding: 18px; background: #fff; }
  .order-row { grid-template-columns: 1fr; }
  .estimate { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .estimate p { grid-column: 1 / -1; }
  .estimate b { font-size: 15px; }
  .estimate div { padding: 8px 10px; }
  .estimate span { font-size: 11px; }
  .map-holder { height: 280px; }
  .section { padding-top: 48px; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card { grid-template-columns: 44px 1fr; align-items: center; padding: 18px; gap: 14px; }
  .card h3 { font-size: 17px; }
  .card p { display: none; }
  .ico { width: 44px; height: 44px; flex: none; }
  .routes { grid-template-columns: 1fr; }
  .app-card { grid-template-columns: 1fr; padding: 28px 22px; }
  .app-icon, .qr { display: none; }
  .app-cta { grid-auto-flow: row; justify-content: stretch; }
  .app-cta .btn { width: 100%; justify-items: center; }
  .drivers { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; }
  .phones { grid-template-columns: 1fr; gap: 10px; padding-bottom: 32px; }
  .ph { grid-template-columns: 1fr auto; align-items: center; padding: 16px 18px; }
  .ph span { order: 2; }
  .foot-in { padding-bottom: 104px; }
  .mbar { display: grid; position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; grid-template-columns: 1fr 1fr; gap: 10px;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(21,23,26,.08); }
  .mbar .btn { min-height: 52px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
