/* ==========================================================================
   МЕЖГОРОД ТРАНСФЕР — дизайн-система v3 "премиум-авто / хром"
   Бело-серебристая база, градиент navy->blue на неймплейте (как в лого),
   круглые бейджи-иконки, круглые пронумерованные шаги.
   ========================================================================== */

/* Шрифт лежит на сайте, а не грузится с Google Fonts: адрес посетителя
   не уходит в Google. Один файл на все начертания 400–800. */
@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/inter.woff') format('woff');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy:     #0E2A4D;
  --blue-1:   #1E5FA8;
  --blue-2:   #4FA3E3;
  --chrome-1: #F4F6F8;
  --chrome-2: #E4E9EF;
  --white:    #FFFFFF;
  --ink:      #1A2233;
  --ink-soft: #5B6478;
  --line:     #DEE4EC;
  --gold:     #D4A24C;

  --font-display: 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1140px;
  --shadow: 0 2px 10px rgba(14,42,77,.06), 0 1px 2px rgba(14,42,77,.08);
  --shadow-lg: 0 16px 40px rgba(14,42,77,.16);
  --grad-brand: linear-gradient(135deg, var(--blue-1), var(--blue-2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--chrome-1);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--navy);
}

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- Header ---------- */
/* ---------- Topbar (phone + bots, above main header) ---------- */
.topbar { background: var(--navy); font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.topbar-social { display: flex; gap: 22px; }
.topbar .cl { min-height: 36px; }

.site-header {
  background: linear-gradient(180deg, #FBFCFD, var(--chrome-2));
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  position: sticky; top: 0; z-index: 30;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand .brand-text { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.brand .brand-text .accent { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-soft); transition: color .15s; }
.nav a:hover { color: var(--blue-1); }
/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--chrome-1) 0%, var(--chrome-2) 100%); padding: 52px 0 40px; overflow: hidden; }
.hero-grid { max-width: 640px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.02; }
.hero h1 .accent { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.hero p { color: var(--ink-soft); font-size: 17px; max-width: 46ch; margin: 16px 0 0; }
.badge-row { display: flex; gap: 22px; flex-wrap: wrap; margin: 22px 0 26px; }
.badge-row .badge { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--navy); }
.badge-row .badge .ico {
  width: 34px; height: 34px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--blue-1);
}
.badge-row .badge .ico svg { width: 18px; height: 18px; }
.btn-hero {
  display: flex; width: 100%; justify-content: center; box-sizing: border-box;
  align-items: center; gap: 8px; background: var(--grad-brand); color: #fff;
  padding: 16px 30px; border-radius: var(--radius-sm); font-weight: 700; font-size: 16px; text-decoration: none;
  box-shadow: 0 10px 24px rgba(30,95,168,.28); border: none; cursor: pointer;
}

/* ---------- Feature strip ---------- */
.feature-strip {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 10px; margin: -28px 0 0; position: relative; z-index: 4;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.feature-strip .f-item { text-align: center; padding: 6px 14px; border-left: 1px solid var(--line); }
.feature-strip .f-item:first-child { border-left: none; }
.feature-strip .f-ico {
  width: 44px; height: 44px; border-radius: 50%; background: var(--chrome-1); color: var(--blue-1);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 10px;
}
.feature-strip .f-ico svg { width: 22px; height: 22px; }
.feature-strip h3 { font-size: 14.5px; margin-bottom: 4px; }
.feature-strip p { margin: 0; font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Calculator ---------- */
.calc-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 26px; margin: 40px 0; scroll-margin-top: 90px; }
.calc-card h2 { font-size: 21px; margin-bottom: 4px; }
.calc-sub { color: var(--ink-soft); font-size: 14px; margin: 0 0 18px; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.calc-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.calc-field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 15px; color: var(--ink); background: var(--white); appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235B6478' stroke-width='1.6' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.calc-field select:focus { border-color: var(--blue-1); }
.btn-calc { padding: 12px 26px; border: none; border-radius: var(--radius-sm); background: var(--grad-brand); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; }
.btn-calc:hover { filter: brightness(1.06); }
.calc-result { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: none; }
.calc-result.show { display: block; }
.calc-result .cr-route { font-family: var(--font-display); font-size: 18px; color: var(--navy); margin-bottom: 10px; }
.calc-result table { width: 100%; border-collapse: collapse; }
.calc-result td { padding: 8px 4px; font-size: 14px; border-bottom: 1px solid var(--line); }
.calc-result td.num { text-align: right; font-weight: 700; color: var(--navy); }
.calc-result .cr-cta { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.calc-empty { color: var(--ink-soft); font-size: 14px; }
.calc-empty a { color: var(--blue-1); font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: 50px 0; }
section.alt { background: var(--white); }
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-1); margin: 0 0 8px; }
h2.section-title { font-size: clamp(24px, 3.2vw, 32px); margin: 0; }

/* ---------- Route cards (gradient banner instead of photo) ---------- */
.route-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.route-card {
  display: block; text-decoration: none; color: var(--ink); background: var(--white);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s;
}
.route-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.route-card .rc-banner { background: var(--grad-brand); color: #fff; padding: 20px 16px; font-family: var(--font-display); font-weight: 700; font-size: 15px; position: relative; overflow: hidden; min-height: 62px; display: flex; align-items: center; }
.route-card .rc-banner .rc-title-text { position: relative; z-index: 2; }
.route-card .rc-banner .arrow { color: var(--gold); }
.route-card .rc-body { padding: 14px 16px 16px; }
.route-card .rc-meta { font-size: 13px; color: var(--ink-soft); }
.route-card .rc-price { font-family: var(--font-display); font-weight: 700; color: var(--blue-1); font-size: 18px; margin-top: 6px; }

/* ---------- Steps: circular numbered, connected ---------- */
.steps-circ { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; }
.step-circ { text-align: center; padding: 0 10px; position: relative; }
.step-circ .sc-num {
  width: 68px; height: 68px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow);
  border: 2px solid var(--chrome-2); display: flex; align-items: center; justify-content: center;
  color: var(--blue-1); margin: 0 auto 14px; position: relative; z-index: 2;
}
.step-circ .sc-num svg { width: 28px; height: 28px; }
.step-circ .sc-badge {
  position: absolute; top: -6px; left: 50%; margin-left: 20px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--grad-brand); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center; z-index: 3; box-shadow: 0 2px 6px rgba(14,42,77,.3);
}
.step-circ::after {
  content: ''; position: absolute; top: 30px; left: calc(50% + 40px); width: calc(100% - 80px); height: 2px;
  background: var(--chrome-2); z-index: 1;
}
.step-circ:last-child::after { display: none; }
.step-circ h3 { font-size: 15.5px; margin-bottom: 6px; }
.step-circ p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Car classes ---------- */
.class-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.class-card { background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.class-card h3 { font-size: 16px; margin-bottom: 4px; }
.class-card .models { color: var(--ink-soft); font-size: 13px; margin: 0 0 10px; }
.class-card .rate { font-family: var(--font-display); font-weight: 700; color: var(--blue-1); font-size: 15px; }

/* ---------- Route detail hero ---------- */
.route-hero { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin: 20px 0; }
.route-hero h1 { font-size: clamp(24px, 3.6vw, 32px); }
.route-hero .arrow { color: var(--gold); }
.route-facts { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 16px; }
.route-facts .fact b { display: block; font-family: var(--font-display); font-size: 20px; color: var(--navy); }
.route-facts .fact span { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.back-link { display: inline-block; margin: 20px 0 4px; font-size: 14px; color: var(--blue-1); text-decoration: none; font-weight: 600; }
.back-link:hover { text-decoration: underline; }

.tariff-table { width: 100%; border-collapse: collapse; margin: 18px 0 8px; background: var(--white); }
.tariff-table th, .tariff-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.tariff-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); font-weight: 700; }
.tariff-table td.num { text-align: right; font-weight: 700; color: var(--navy); }
/* Заголовок колонки с ценами — по тому же краю, что и цифры под ним */
.tariff-table th.num { text-align: right; }
.nw { white-space: nowrap; }
.tariff-table tr:last-child td { border-bottom: none; }

/* ---------- CTA buttons ---------- */
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px; text-decoration: none; transition: filter .12s; }
.btn:hover { filter: brightness(1.08); }
.btn-max { background: #6B4EFF; color: #fff; }
.btn-tg { background: #2AABEE; color: #fff; }
.btn-ghost { background: var(--white); border: 1.5px solid var(--line); color: var(--navy); }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item h3 { font-size: 16px; margin-bottom: 6px; }
.faq-item p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.faq-callout { background: var(--chrome-1); border: 1px dashed var(--blue-1); border-radius: var(--radius); padding: 18px; margin-top: 16px; font-size: 14px; }
.faq-callout b { color: var(--navy); }
/* Заголовок после рамки прилипал к ней: у h2.section-title нулевой отступ */
.faq-callout + h2.section-title { margin-top: 32px; }

/* ---------- Related / hub list ---------- */
.related-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.related-list a { text-decoration: none; background: var(--white); border: 1px solid var(--line); color: var(--navy); padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.related-list a:hover { border-color: var(--blue-1); color: var(--blue-1); }
.city-hub-list { columns: 3; column-gap: 28px; margin: 8px 0; }
.city-hub-list a { display: block; break-inside: avoid; padding: 7px 0; text-decoration: none; color: var(--ink); border-bottom: 1px dotted var(--line); font-size: 15px; font-weight: 500; }
.city-hub-list a:hover { color: var(--blue-1); }

/* ---------- Final CTA band ---------- */
.final-cta {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: -30px; position: relative; z-index: 4;
}
.final-cta h3 { font-size: 19px; margin-bottom: 4px; }
.final-cta p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(160deg, var(--navy), #08192F); color: rgba(255,255,255,.72); padding: 56px 0 30px; margin-top: 40px; font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.site-footer h4 { font-family: var(--font-display); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #fff; margin: 0 0 10px; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.site-footer .contacts { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer .contacts h4 { margin-bottom: 4px; }
.site-footer .cl { min-height: 32px; }
/* Телефоны и боты: значок + подпись, в шапке и подвале один вид */
a.cl { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
a.cl svg { width: 15px; height: 15px; flex-shrink: 0; }
a.cl:hover { color: #fff; opacity: .8; }
.disclaimer { color: rgba(255,255,255,.5); }
section .disclaimer { color: var(--ink-soft); }

/* ---------- Responsive ---------- */
.mobile-menu-btn {
  display: none; background: none; border: none; padding: 6px; color: var(--navy); cursor: pointer;
  align-items: center; justify-content: center;
}
.mobile-nav {
  display: none; flex-direction: column; background: var(--white); border-top: 1px solid var(--line);
  padding: 4px 20px 14px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  text-decoration: none; color: var(--ink); font-size: 16px; font-weight: 500;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.mobile-nav a.mobile-nav-cta { color: var(--blue-1); font-weight: 700; border-bottom: none; }

@media (max-width: 860px) {
  .hero-grid { max-width: none; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .feature-strip .f-item:nth-child(3) { border-left: none; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .calc-row { grid-template-columns: 1fr; }
  .city-hub-list { columns: 1; }
  .route-facts { gap: 20px; }
  .steps-circ { grid-template-columns: 1fr; }
  .step-circ::after { display: none; }
  .final-cta { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.estimate-min { margin-top: 6px; font-size: 14px; color: #8a6d1f; background: #fff8e1;
                border-radius: 8px; padding: 8px 10px; }

.min-order-note { margin: 10px 0 18px; padding: 12px 14px; border-radius: 10px;
                  background: #fff8e1; color: #5d4a12; font-size: 15px; line-height: 1.5; }


.geo-block, .pop-block { margin: 44px 0 8px; }
.geo-intro { color: #4a5568; margin: 0 0 20px; line-height: 1.6; }
.geo-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.geo-card { background: #fff; border: 1px solid #e3e9f2; border-radius: 16px; padding: 18px 20px;
            box-shadow: 0 2px 10px rgba(22,54,92,.05); }
.geo-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.geo-ico { font-size: 22px; }
.geo-card-head h3 { margin: 0; font-size: 17px; color: #16365c; flex: 1; }
.geo-count { background: #eef3fb; color: #2b6cb0; border-radius: 20px;
             padding: 2px 10px; font-size: 13px; font-weight: 700; }
.geo-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.geo-chip { background: #f3f7fc; color: #33475f; border-radius: 8px;
            padding: 5px 10px; font-size: 14px; white-space: nowrap; }

.pop-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.pop-card { background: linear-gradient(135deg,#1f5fa8,#2b7fd4); color: #fff;
            border-radius: 16px; padding: 18px 20px; box-shadow: 0 4px 14px rgba(22,54,92,.14); }
.pop-route { font-size: 17px; line-height: 1.4; }
.pop-arrow { margin: 0 8px; opacity: .8; }
.pop-meta { margin-top: 8px; font-size: 14px; opacity: .85; }
.pop-price { margin-top: 10px; font-size: 22px; font-weight: 800; }

.city-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
.city-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none;
             background: #fff; border: 1px solid #e3e9f2; border-radius: 14px;
             padding: 16px 16px 14px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.city-card:hover { transform: translateY(-2px); border-color: #b8d0ee;
                   box-shadow: 0 6px 16px rgba(22,54,92,.10); }
.city-ico { font-size: 22px; line-height: 1; }
.city-name { font-size: 17px; font-weight: 700; color: #16365c; }
.city-cnt { font-size: 13px; color: #7a8899; }

.route-map { position: relative; height: 260px; margin: 0 0 18px; border-radius: 14px;
             overflow: hidden; background: #eef2f7; }
.map-hint { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
            color: #7a8899; font-size: 14px; text-align: center; padding: 0 20px; }
.field-with-btn { position: relative; }
.field-with-btn input { width: 100%; padding-right: 42px; }
/* Стрелка живёт внутри поля, а не отдельной кнопкой сбоку */
.geo-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
           width: 32px; height: 32px; display: flex; align-items: center;
           justify-content: center; border: 0; background: transparent;
           border-radius: 8px; cursor: pointer; color: #9aa7b6; padding: 0;
           transition: color .15s, background .15s; }
.geo-btn:hover { color: #2b6cb0; background: #f0f5fb; }
.geo-btn svg { transform: rotate(-45deg); }
.geo-btn:hover { background: #f2f7fd; border-color: #b8d0ee; }
.geo-btn.busy { opacity: .5; pointer-events: none; }
.ac-hint { display: block; font-size: 12px; color: #8a96a5; margin-top: 2px; }

.map-dbg { margin: -12px 0 14px; padding: 8px 10px; border-radius: 8px;
           background: #fff4e5; color: #7a5b1a; font-size: 13px; font-family: monospace; }

/* Кнопки на страницах «Тарифы» и «Водителям»: цвет шапки и подвала,
   форма и ширина — как у «Рассчитать стоимость». Отдельный класс, чтобы
   не задеть такие же кнопки на страницах маршрутов. */
.cta-row.cta-stack { flex-direction: column; flex-wrap: nowrap; }
.cta-stack .btn {
  display: flex; width: 100%; box-sizing: border-box; justify-content: center; align-items: center;
  padding: 16px 30px; border-radius: var(--radius-sm); font-weight: 700; font-size: 16px;
  background: var(--navy); color: #fff; border: none; text-decoration: none;
  box-shadow: 0 10px 24px rgba(14,42,77,.28);
}
.cta-stack .btn:hover { background: #163a66; }

/* ---------- Поехать вместе ---------- */
.btn-hero-alt { background: var(--navy); margin-top: 12px; box-shadow: 0 10px 24px rgba(14,42,77,.25); }
.trips-sub { color: #4a5568; margin: 0 0 18px; line-height: 1.6; }
.trips-search { display: grid; gap: 10px; grid-template-columns: 1fr 1fr 170px auto; margin-bottom: 20px; }
.trips-search input { padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
                      font-size: 15px; font-family: inherit; min-width: 0; }
.trips-search .btn-calc { white-space: nowrap; }


.trips-results { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
                  -webkit-overflow-scrolling: touch; padding: 4px 2px 18px; scrollbar-width: thin; }
.trips-results::-webkit-scrollbar { height: 6px; }
.trips-results::-webkit-scrollbar-thumb { background: #d6dfea; border-radius: 3px; }
.trip-card { flex: 0 0 300px; scroll-snap-align: start; }
@media (max-width: 480px) { .trip-card { flex-basis: 85%; } }
.trips-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
             min-height: 38px; color: #7a8899; font-size: 14px; }
.trips-arrows { display: flex; gap: 8px; }
.trips-arrow { width: 38px; height: 38px; border: 1.5px solid var(--line); background: var(--white);
               color: var(--navy); border-radius: var(--radius-sm); font-size: 22px; line-height: 1;
               cursor: pointer; transition: border-color .12s, color .12s, opacity .12s; }
.trips-arrow:hover:not(:disabled) { border-color: var(--blue-1); color: var(--blue-1); }
.trips-arrow:disabled { opacity: .35; cursor: default; }
@media (hover: none) { .trips-arrows { display: none; } }
.trips-empty { flex: 1 1 100%; padding: 22px; background: #f7f9fc; border-radius: var(--radius-sm);
               color: #55606e; text-align: center; }
.trip-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
             overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.trip-head { background: var(--navy); color: #fff; padding: 16px 18px; }
.trip-route { font-size: 17px; font-weight: 700; line-height: 1.35; }
.trip-route .arrow { opacity: .65; margin: 0 4px; }
.trip-when { font-size: 13px; opacity: .8; margin-top: 4px; }
.trip-rows { padding: 14px 18px 0; }
.trip-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0;
            border-bottom: 1px dashed var(--line); font-size: 14px; }
.trip-row:last-child { border-bottom: none; }
.trip-row span { color: #7a8899; }
.trip-row b { color: var(--navy); font-weight: 600; text-align: right; }
.trip-price { padding: 12px 18px 14px; font-size: 26px; font-weight: 800; color: var(--navy);
              display: flex; align-items: baseline; gap: 7px; }
.trip-price span { font-size: 13px; font-weight: 600; color: #7a8899; }
.trip-btns { display: flex; flex-direction: column; gap: 8px; padding: 0 18px 18px; }
.trip-book { display: block; padding: 14px; text-align: center;
             background: var(--navy); color: #fff; border-radius: var(--radius-sm);
             font-weight: 700; font-size: 15px; text-decoration: none; transition: background .12s; }
.trip-book:hover { background: #163a66; }
.trips-search { grid-template-columns: 1fr 1fr 1fr auto auto; }
.btn-reset { padding: 12px 20px; border: 1.5px solid var(--line); background: var(--white);
             color: var(--navy); border-radius: var(--radius-sm); font-size: 15px; font-weight: 600;
             font-family: inherit; cursor: pointer; white-space: nowrap; transition: border-color .12s, color .12s; }
.btn-reset:hover { border-color: var(--blue-1); color: var(--blue-1); }

@media (max-width: 860px) { .trips-search { grid-template-columns: 1fr; } }

/* Поля поиска рейсов: все одной ширины, включая дату — на телефоне
   браузер иначе рисует её по ширине содержимого */
.trips-search .autocomplete-wrap { min-width: 0; }
.trips-search .autocomplete-wrap input,
.trips-search input[type="date"] { display: block; width: 100%; box-sizing: border-box; min-width: 0; }
.trips-search input[type="date"] { min-height: 46px; background: var(--white); color: var(--navy); }

/* Карточки рейсов — на 35% меньше */
.trip-card { flex: 0 0 195px; }
@media (max-width: 480px) { .trip-card { flex-basis: 56%; } }
.trip-head { padding: 10px 12px; }
.trip-route { font-size: 13px; }
.trip-when { font-size: 11px; margin-top: 2px; }
.trip-rows { padding: 8px 12px 0; }
.trip-row { font-size: 11px; padding: 4px 0; gap: 6px; }
.trip-price { padding: 8px 12px 9px; font-size: 18px; gap: 4px; }
.trip-price span { font-size: 10px; }
.trip-btns { gap: 5px; padding: 0 12px 12px; }
.trip-book { padding: 9px 6px; font-size: 11px; }

.hero-actions { margin-top: 0; }

/* Контакты: две колонки; на узком телефоне номер в колонку не влезал
   и страница уезжала вбок — там одна колонка. */
.contacts-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .contacts-grid { grid-template-columns: 1fr; } }

/* ---------- Главный экран: без дубля названия, вплотную к меню ---------- */
/* Название уже есть в шапке. Заголовком страницы (h1) стала строка-описание:
   для поиска она полезнее, чем повтор бренда. */
.hero { padding: 18px 0 44px; }
.hero h1.hero-lead {
  font-family: var(--font-body); font-weight: 400; font-size: 17px; line-height: 1.55;
  letter-spacing: normal; color: var(--ink-soft); margin: 0; max-width: none;
}
.hero .badge-row { margin: 16px 0 20px; }
@media (min-width: 761px) {
  .hero { padding: 26px 0 52px; }
  .hero h1.hero-lead { font-size: 19px; }
  /* Кнопки в один ряд на всю ширину: вдвое ниже, край в край с блоком под ними */
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero-actions .btn-hero-alt { margin-top: 0; }
}

/* ---------- Классы авто: пять в ряд на компьютере, цены на одной линии ---------- */
.classes-5 .class-card { display: flex; flex-direction: column; }
.classes-5 .class-card .rate { margin-top: auto; }
@media (min-width: 900px) {
  .classes-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
}

/* Заголовок раздела прилипал к сетке под ним (классы авто, три шага) */
h2.section-title + .class-grid,
h2.section-title + .steps-circ { margin-top: 22px; }
/* На телефоне три преимущества — столбиком, без лишних просветов */
@media (max-width: 760px) { .hero .badge-row { gap: 10px 22px; } }
/* Шапка на телефоне: палец попадает в 44px; узкие экраны — мельче шрифт */
@media (max-width: 760px) {
  .topbar .cl { min-height: 44px; }
  .site-footer .cl { min-height: 40px; }
}
@media (max-width: 380px) { .topbar { font-size: 13px; } .topbar-social { gap: 16px; } }
@media (max-width: 350px) { .topbar { font-size: 12px; } .topbar .wrap { padding: 0 14px; } .topbar-social { gap: 12px; } .topbar .cl { gap: 5px; } }

/* Приложение в Google Play: полоса внизу главной и в контактах. Значок — официальный, с сервера Google;
   в PNG есть прозрачные поля, отрицательный отступ их убирает. В самом приложении (режим приложения) их нет */
.gp-card { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 20px;
  background: #EEF4FB; border: 1px solid #D3E2F2; border-radius: var(--radius); }
.final-cta + .gp-card { margin-top: 42px; }   /* 30 нахлёста «Готовы к поездке?» + 12 */
.gp-card .gp-txt { flex: 1; min-width: 0; }
.gp-card h3 { margin: 0; font-size: 16px; }
.gp-card p { margin: 2px 0 0; color: var(--ink-soft); font-size: 14px; }
.gp-badge { display: block; flex: none; width: 194px; margin: -12px; }
.gp-badge img { display: block; width: 194px; height: 75px; }
@media (max-width: 600px) {
  .gp-card { gap: 10px; padding: 12px 14px; }
  .gp-card h3 { font-size: 13.5px; }
  .gp-card p { font-size: 12px; }
  .gp-card .gp-badge { width: 104px; margin: -7px; }
  .gp-card .gp-badge img { width: 104px; height: 40px; }
}
@media (display-mode: standalone), (display-mode: fullscreen) { .gp-app { display: none; } }
