/* Лендинг C (СПб): петербургская классика — чернильный синий, охра фасадов, слоновая кость. Playfair Display + Commissioner */
:root {
  --font: 'Commissioner', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Playfair Display', Georgia, serif;

  --ivory: #f6f1e7;
  --ivory-2: #efe7d7;
  --ink: #172a45;
  --ink-2: #22395c;
  --text: #1d2433;
  --muted: #5f6676;
  --ochre: #d9a441;
  --ochre-soft: #f3e2bd;
  --brick: #a54a36;
  --line: #ddd2bd;
  --white: #fffdf8;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--text); background: var(--ivory); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(38px, 5.8vw, 74px); letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 3.8vw, 48px); }
h3 { font-size: 22px; }
p { margin: 0; }
em { font-style: italic; color: var(--ochre); }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
section { padding: 100px 0; }
.overline { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brick); margin-bottom: 18px; }
.overline::after { content: ''; height: 1px; width: 56px; background: currentColor; opacity: .6; }
.head { max-width: 660px; margin-bottom: 52px; }
.head p { color: var(--muted); margin-top: 16px; font-size: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .overline { justify-content: center; }
.center .overline::before { content: ''; height: 1px; width: 56px; background: currentColor; opacity: .6; }

/* Шапка */
.header { background: var(--ink); color: var(--ivory); }
.header .container { display: flex; align-items: center; gap: 32px; height: 78px; }
.wordmark { text-decoration: none; line-height: 1.05; }
.wordmark b { display: block; font: 600 21px var(--font-head); }
.wordmark small { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ochre); }
.nav { display: flex; gap: 30px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: #b9c3d4; }
.nav a:hover { color: var(--ivory); }
.header-phone { text-decoration: none; font-weight: 600; white-space: nowrap; padding: 10px 18px; border: 1px solid var(--ochre); border-radius: 2px; }
.header-phone:hover { background: var(--ochre); color: var(--ink); }

/* Первый экран */
.hero { background: var(--ink); color: var(--ivory); padding: 72px 0 0; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: end; }
.hero .overline { color: var(--ochre); }
.hero-lead { font-size: 20px; color: #c7cfdc; max-width: 560px; margin-top: 26px; }
.hero-list { list-style: none; padding: 0; margin: 34px 0 72px; display: grid; gap: 10px; color: #c7cfdc; }
.hero-list li { display: flex; gap: 14px; align-items: baseline; }
.hero-list li::before { content: ''; flex: none; width: 18px; height: 1px; background: var(--ochre); transform: translateY(-5px); }
.arch { background: var(--ochre); color: var(--ink); border-radius: 999px 999px 0 0; padding: 86px 40px 48px; text-align: center; position: relative; }
.arch::before { content: ''; position: absolute; inset: 14px 14px 0; border: 1px solid rgba(23, 42, 69, .35); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none; }
.arch small { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.arch b { display: block; font: 600 66px/1 var(--font-head); margin: 14px 0 6px; }
.arch span { display: block; font-size: 15px; }
.arch hr { border: 0; height: 1px; background: rgba(23, 42, 69, .3); margin: 26px auto; width: 60%; }

/* Виджет */
.booking { padding: 88px 0 72px; }
.booking .head { margin-bottom: 36px; }
/* Оформление виджета бронирования: переменные проходят внутрь его Shadow DOM */
#booking-widget {
  --rw-accent: #172a45;
  --rw-accent-text: #f6f1e7;
  --rw-text: #1d2433;
  --rw-muted: #5f6676;
  --rw-bg: #fffdf8;
  --rw-surface: #f6f1e7;
  --rw-border: #ddd2bd;
  --rw-radius: 3px;
  --rw-font: 'Commissioner', system-ui, sans-serif;
}
.widget-host { min-height: 320px; transition: opacity .3s; }
.widget-host.is-loading { opacity: 0; }
.widget-fallback { margin: 0; padding: 80px 16px; text-align: center; color: var(--muted); }

/* Факты-колонны */
.columns { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.columns div { padding: 34px 26px; text-align: center; }
.columns div + div { border-left: 1px solid var(--line); }
.columns b { display: block; font: 600 40px/1 var(--font-head); color: var(--ink); }
.columns span { display: block; color: var(--muted); font-size: 15px; margin-top: 10px; }

/* Маршруты */
.routes { background: var(--white); }
.route-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 64px; }
.route { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.route h3 { font-size: 24px; }
.route .km { font: italic 600 22px var(--font-head); color: var(--brick); white-space: nowrap; }
.route p { grid-column: 1 / -1; color: var(--muted); }
.route-note { margin-top: 28px; color: var(--muted); font-size: 15px; }

/* Почему не каршеринг */
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contrast-col { padding: 40px; }
.contrast-col h3 { margin-bottom: 22px; }
.contrast-col.them { border: 1px solid var(--line); }
.contrast-col.us { background: var(--ink); color: var(--ivory); }
.contrast-col.us h3 { color: var(--ochre); }
.contrast-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contrast-col li { padding-left: 28px; position: relative; }
.contrast-col.them li { color: var(--muted); }
.contrast-col.them li::before { content: '—'; position: absolute; left: 0; color: var(--muted); }
.contrast-col.us li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 9px; height: 9px; background: var(--ochre); transform: rotate(45deg); }

/* Шаги римскими цифрами */
.steps-sec { background: var(--ivory-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; text-align: center; }
.steps li::before { content: counter(s, upper-roman); display: grid; place-items: center; width: 78px; height: 92px; margin: 0 auto 22px; border-radius: 999px 999px 0 0; background: var(--ink); color: var(--ochre); font: 600 26px var(--font-head); padding-top: 8px; }
.steps p { color: var(--muted); margin-top: 10px; font-size: 16px; }

/* Условия */
.terms { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); background: var(--white); }
.terms > div { padding: 40px; }
.terms > div + div { border-left: 1px solid var(--line); }
.terms h3 { margin-bottom: 20px; }
.terms dl { margin: 0; }
.terms dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--brick); font-weight: 600; margin-top: 18px; }
.terms dt:first-child { margin-top: 0; }
.terms dd { margin: 4px 0 0; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 56px; }
.faq-grid .head { margin: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: 22px 48px 22px 0; cursor: pointer; font: 600 21px/1.3 var(--font-head); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font: 400 30px/1 var(--font); color: var(--ochre); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); }

/* Заявка */
.cta { background: var(--ink); color: var(--ivory); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cta .lead { color: #c7cfdc; margin-top: 18px; max-width: 460px; }
.cta-phone { display: inline-block; margin-top: 30px; font: 600 36px var(--font-head); text-decoration: none; color: var(--ochre); }
.cta-phone + small { display: block; color: #8e9ab0; font-size: 14px; }
.form { background: var(--ivory); color: var(--text); padding: 40px; border-radius: 160px 160px 0 0; padding-top: 72px; display: grid; gap: 12px; }
.form h3 { text-align: center; margin-bottom: 10px; }
.form input { width: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: 2px; font: 17px var(--font); background: var(--white); color: var(--text); }
.form input:focus { outline: 2px solid var(--ochre); outline-offset: -1px; }
.form .hp { position: absolute; left: -9999px; width: 1px; }
.btn { margin-top: 6px; padding: 17px 28px; border: 0; border-radius: 2px; cursor: pointer; background: var(--ink); color: var(--ivory); font: 600 16px var(--font); letter-spacing: .04em; }
.btn:hover { background: var(--ink-2); }
.btn:disabled { opacity: .6; cursor: wait; }
.consent { font-size: 13px; color: var(--muted); text-align: center; }
.form-status { font-size: 15px; min-height: 22px; text-align: center; }
.form-status[data-state="ok"] { color: #2c7a4b; }
.form-status[data-state="error"] { color: var(--brick); }

/* Подвал */
.footer { background: #0f1d31; color: #8e9ab0; padding: 44px 0; font-size: 14px; }
.footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer b { color: var(--ivory); font: 600 18px var(--font-head); }
.footer p + p { margin-top: 6px; }

@media (max-width: 960px) {
  section { padding: 76px 0; }
  .nav { display: none; }
  .header-phone { margin-left: auto; }
  .hero-grid, .contrast, .faq-grid, .cta-grid, .terms, .route-list { grid-template-columns: 1fr; }
  .terms > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .arch { max-width: 420px; }
  .hero-list { margin-bottom: 0; }
  .columns { grid-template-columns: 1fr 1fr; }
  .columns div:nth-child(3) { border-left: 0; }
  .columns div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .header .container { height: 66px; }
  .wordmark b { font-size: 18px; }
  .header-phone { padding: 8px 12px; font-size: 14px; }
  .hero { padding-top: 48px; }
  .overline::after, .center .overline::before { display: none; }
  .hero-lead { font-size: 18px; }
  .arch { padding: 70px 24px 36px; }
  .arch b { font-size: 52px; }
  .booking { padding: 64px 0 48px; }
  .columns div { padding: 24px 12px; }
  .columns b { font-size: 30px; }
  .contrast-col, .terms > div { padding: 28px 22px; }
  .steps { grid-template-columns: 1fr; }
  .form { padding: 56px 22px 28px; border-radius: 120px 120px 0 0; }
  .cta-phone { font-size: 30px; }
}
