:root {
  --navy: #0B1F3A;
  --navy-2: #142c52;
  --yellow: #FFC107;
  --yellow-2: #ffcf33;
  --text: #1a2332;
  --muted: #6b7280;
  --bg: #f7f9fc;
  --white: #ffffff;
  --border: #e3e8ef;
  --success: #16a34a;
  --error: #dc2626;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(11, 31, 58, 0.06);
  --shadow-lg: 0 8px 32px rgba(11, 31, 58, 0.12);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3.5vw, 1.75rem); margin-top: 1.5em; }
h3 { font-size: 1.15rem; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.muted { color: var(--muted); }

/* ==== Header ==== */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  min-height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  margin-right: auto;
}
.logo:hover { text-decoration: none; }
.logo-mark { font-size: 1.4rem; }
.logo-text { font-size: 1rem; }

.main-nav {
  display: none;
  gap: 20px;
  margin-left: auto;
}
.main-nav a {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  border-color: var(--yellow);
  text-decoration: none;
}

.btn-call {
  margin-left: auto;
  background: var(--yellow);
  color: var(--navy) !important;
  font-weight: 600;
  flex-shrink: 0;
}
.main-nav + .btn-call { margin-left: 0; }

/* На узких экранах (< 480px) — только иконка телефона */
@media (max-width: 479px) {
  .btn-call .call-text { display: none; }
  .btn-call {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
    margin-left: auto;
  }
  .logo-text { font-size: .95rem; }
  .header-inner { gap: 10px; }
}

/* ==== Buttons ==== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .05s, box-shadow .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.35);
}
.btn-primary:hover {
  background: var(--yellow-2);
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.45);
}
.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 1px 4px rgba(255, 193, 7, 0.3);
}
.btn-primary:disabled,
.btn-primary.loading {
  opacity: .7;
  cursor: progress;
  box-shadow: none;
}

.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-lg { padding: 16px 24px; font-size: 1.05rem; width: 100%; }

/* ==== Hero ==== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 48px 0 64px;
  text-align: center;
}
.hero h1 { color: #fff; margin-bottom: 12px; }
.hero-sub {
  color: rgba(255,255,255,.8);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 16px;
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.3);
  color: var(--yellow);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.2); }
  50%      { box-shadow: 0 0 0 8px rgba(255, 193, 7, 0.05); }
}

/* ==== Order ==== */
.order-section {
  padding: 24px 0 48px;
  margin-top: -32px;
}
.order-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(11, 31, 58, 0.04),
    0 8px 24px rgba(11, 31, 58, 0.08),
    0 24px 48px -12px rgba(11, 31, 58, 0.06);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(11, 31, 58, 0.04);
  overflow: hidden;
}
.order-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow) 0%, var(--yellow) 60%, var(--navy) 60%, var(--navy) 100%);
}
.card-title { margin-top: 0; }

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: #eef1f6;
  border-radius: 14px;
  padding: 5px;
  margin-bottom: 24px;
}
.tab {
  background: none;
  border: none;
  padding: 13px 8px;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.tab:hover:not(.active) { color: var(--navy); }
.tab.active {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 2px 6px rgba(11, 31, 58, 0.08);
}

/* ==== Route ==== */
.route {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.route-side { display: grid; gap: 12px; }
.route-arrow {
  display: none;
  align-self: center;
  color: var(--muted);
  line-height: 0;
  padding: 0 4px;
}
.route-arrow svg {
  display: block;
  width: 24px;
  height: 24px;
}

.field { margin-bottom: 12px; }
.field:last-child { margin-bottom: 0; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.input-wrap { position: relative; }

.input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input:hover:not(:focus):not([readonly]) {
  border-color: #c8d2e0;
}
.input:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.15);
  background: #fff;
}
.input[readonly] {
  background: #f3f5f9;
  color: var(--muted);
  cursor: not-allowed;
}

/* ==== Suggest dropdown ==== */
.suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  z-index: 20;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  max-height: 260px;
  overflow-y: auto;
}
.suggest li {
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: .95rem;
}
.suggest li:hover,
.suggest li.active { background: var(--bg); }

/* ==== Checkbox (legacy, не используется в форме заказа) ==== */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  font-size: .9rem;
  color: var(--muted);
  cursor: pointer;
}
.checkbox input { margin-top: 3px; flex: 0 0 auto; }
.checkbox a { color: var(--navy); text-decoration: underline; }

/* ==== Form message ==== */
.form-msg {
  margin-top: 12px;
  font-size: .95rem;
  min-height: 20px;
}
.form-msg.error   { color: var(--error); }
.form-msg.success { color: var(--success); }
.form-msg.info    { color: var(--muted); }

/* ==== Honeypot ==== */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ==== Consent note ==== */
.consent-note {
  margin: 12px 0 0;
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.45;
}
.consent-note a {
  color: var(--navy);
  text-decoration: underline;
}

/* ==== Channels ==== */
.channels {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.channel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(11, 31, 58, 0.04),
    0 8px 24px rgba(11, 31, 58, 0.08);
  color: var(--text);
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(11, 31, 58, 0.04);
  transition: transform .25s cubic-bezier(.23,1,.32,1), box-shadow .25s;
}
.channel::before {
  content: '';
  position: absolute;
  width: 120px; height: 120px;
  background: linear-gradient(135deg, var(--yellow) 0%, var(--navy) 100%);
  border-radius: 50%;
  top: -60px; right: -60px;
  opacity: .07;
  transition: transform .5s cubic-bezier(.23,1,.32,1), opacity .5s;
  z-index: 0;
}
.channel:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow:
    0 4px 8px rgba(11, 31, 58, 0.06),
    0 20px 40px rgba(11, 31, 58, 0.12);
}
.channel:hover::before {
  transform: scale(1.6);
  opacity: .14;
}
.channel-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--yellow);
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(11, 31, 58, 0.18);
}
.channel-icon svg { display: block; }
.channel-icon img { display: block; max-width: 24px; max-height: 24px; }
.channel-title {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}
.channel-sub {
  position: relative;
  z-index: 1;
  font-size: .88rem;
  color: var(--muted);
}

/* ==== Features (карточки с номерами) ==== */
.features-section {
  padding: 16px 16px 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
}

.feature-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 36px 26px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(11, 31, 58, 0.05);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--yellow) 0%, var(--navy) 100%);
  border-radius: 50%;
  top: -50px;
  right: -50px;
  opacity: 0.08;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: -1;
}

.feature-card::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--navy);
  border-radius: 50%;
  bottom: -30px;
  left: -30px;
  opacity: 0.04;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(11, 31, 58, 0.12);
}

.feature-card:hover::before {
  transform: scale(2.5);
  opacity: 0.15;
}

.feature-card:hover::after {
  transform: scale(2);
  opacity: 0.08;
}

.card-number {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(11, 31, 58, 0.1);
  position: absolute;
  top: 15px;
  right: 20px;
  transition: all 0.5s ease;
  z-index: -1;
  user-select: none;
  pointer-events: none;
}

.feature-card:hover .card-number {
  -webkit-text-stroke: 1px rgba(255, 193, 7, 0.6);
  transform: scale(1.1) translate(-5px, 5px);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  position: relative;
  z-index: 1;
  margin: 0;
}

/* ==== CTA для водителей ==== */
.cta-drivers { padding: 16px 0 56px; }
.cta-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
}
.cta-card h2 {
  color: #fff;
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 4vw, 1.6rem);
}
.cta-card p {
  margin: 0;
  color: rgba(255,255,255,.85);
  font-size: .98rem;
  max-width: 640px;
}
.cta-card .btn { align-self: flex-start; }

/* ==== Page hero ==== */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 40px 0 32px;
  text-align: center;
}
.page-hero h1 { color: #fff; margin: 0; }
.page-hero .muted { color: rgba(255,255,255,.7); margin-top: 8px; }
.page-hero .btn { margin-top: 16px; }

/* ==== Sections ==== */
.section { padding: 56px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.prose { max-width: 800px; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 20px; }

.check-list { list-style: none; padding: 0; }
.check-list li {
  padding: 8px 0 8px 30px;
  position: relative;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
.num-list { padding-left: 20px; }
.num-list li { padding: 4px 0; }

/* ==== Footer ==== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  padding: 40px 0 20px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.footer-col h3 {
  color: #fff;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 12px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.footer-col a { color: var(--yellow); }
.footer-col .muted { color: rgba(255,255,255,.6); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 4px 0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 32px;
  padding-top: 16px;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  text-align: center;
}

/* ==== Desktop ==== */
@media (min-width: 720px) {
  .main-nav { display: flex; }
  .header-inner { padding: 14px 16px; }
  .logo-text { font-size: 1.1rem; }

  .hero { padding: 72px 0 96px; }
  .order-section { margin-top: -56px; }
  .order-card { padding: 32px 36px; }

  .route {
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 16px;
  }
  .route-arrow { display: block; }

  .channels { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 40px; }
  .btn-lg { width: auto; min-width: 220px; }

  .cta-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 36px 40px;
    gap: 32px;
  }
  .cta-card .btn { align-self: center; flex: 0 0 auto; }
}

/* ==== Reduced motion ==== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ==== Modal (успешная заявка) ==== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .2s ease;
}
.modal[hidden] { display: none; }
.modal.is-open { opacity: 1; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 58, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px 24px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(11, 31, 58, 0.25);
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  transition: transform .28s cubic-bezier(.34,1.56,.64,1), opacity .2s;
}
.modal.is-open .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.modal-close:hover {
  background: var(--bg);
  color: var(--navy);
}

.modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow) 0%, #ffd54a 100%);
  color: var(--navy);
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.35);
  animation: modal-pop .4s cubic-bezier(.34,1.56,.64,1) .1s both;
}
@keyframes modal-pop {
  0%   { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

.modal-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: var(--navy);
  font-weight: 700;
}
.modal-text {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
}
.modal-btn {
  width: 100%;
  justify-content: center;
}

body.modal-open {
  overflow: hidden;
}