/* ==========================================================================
   TRANSFEROK — Design system
   Signature motif: «маршрут» — пунктирная линия A→B с двумя точками.
   Поддержка тёмной (по умолчанию) и светлой темы через [data-theme].
   ========================================================================== */

/* Fonts are loaded once from the document head. */

:root{
  --red-700:#a8121b;
  --red-600:#e11f28;
  --red-500:#ff4b52;
  --red-400:#ff7a80;
  --ok:#1c8a4b;
  --star:#ffb020;

  --grad-red: linear-gradient(135deg, var(--red-500) 0%, var(--red-700) 100%);
  --grad-dark: linear-gradient(150deg, #0a0a0d 0%, #1d1114 45%, #3a1218 78%, var(--red-700) 145%);

  --f-display:'Manrope', system-ui, sans-serif;
  --f-body:'Manrope', system-ui, sans-serif;

  --r-sm:10px;
  --r-md:16px;
  --r-lg:22px;
  --r-xl:28px;
  --r-pill:999px;

  --nav-h: 72px;
  --tab-h: 64px;
  --container: 1160px;

  --ease: cubic-bezier(.22,1,.36,1);
}

/* ---------- ТЁМНАЯ ТЕМА (по умолчанию) ---------- */
:root, [data-theme="dark"]{
  --bg:#0c0c0e;
  --bg-soft:#111113;
  --surface:#17171a;
  --surface-2:#1e1e22;
  --border:rgba(255,255,255,.09);
  --border-strong:rgba(255,255,255,.16);
  --text:#f4f4f5;
  --text-soft:#a6a6ad;
  --text-faint:#6f6f77;
  --topbar-bg:rgba(13,13,16,.72);
  --tabbar-bg:rgba(15,15,18,.88);
  --footer-bg:#08080a;
  --input-bg:#1c1c20;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.24), 0 6px 16px rgba(0,0,0,.22);
  --shadow-md: 0 8px 20px rgba(0,0,0,.28), 0 24px 48px rgba(0,0,0,.38);
  --shadow-red: 0 10px 24px rgba(225,31,40,.28), 0 2px 8px rgba(225,31,40,.22);
  --pending-bg:#3a2c10; --pending-fg:#ffbf5c;
  --approved-bg:#123522; --approved-fg:#57d98c;
  --rejected-bg:#3a1418; --rejected-fg:#ff8a8f;
  --completed-bg:#0f2a3d; --completed-fg:#6cc2ff;
  color-scheme: dark;
}

/* ---------- СВЕТЛАЯ ТЕМА ---------- */
[data-theme="light"]{
  --bg:#ffffff;
  --bg-soft:#f7f6f7;
  --surface:#ffffff;
  --surface-2:#f2f0f1;
  --border:#e7e5e6;
  --border-strong:#d8d5d6;
  --text:#0b0b0d;
  --text-soft:#5c5c62;
  --text-faint:#8f8f96;
  --topbar-bg:rgba(255,255,255,.78);
  --tabbar-bg:rgba(255,255,255,.9);
  --footer-bg:#0b0b0d;
  --input-bg:#f7f6f7;
  --shadow-sm: 0 1px 2px rgba(11,11,13,.04), 0 4px 12px rgba(11,11,13,.05);
  --shadow-md: 0 6px 16px rgba(11,11,13,.06), 0 20px 40px rgba(11,11,13,.09);
  --shadow-red: 0 10px 24px rgba(225,31,40,.18);
  --pending-bg:#fff4e0; --pending-fg:#b5760a;
  --approved-bg:#e5f6ea; --approved-fg:#1c8a4b;
  --rejected-bg:#fde8e8; --rejected-fg:#e11f28;
  --completed-bg:#e6f2fb; --completed-fg:#1568a6;
  color-scheme: light;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0;
  font-family:var(--f-body);
  color:var(--text);
  background:var(--bg);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  transition:background .25s ease, color .25s ease;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }
input,select,textarea{ font-family:inherit; font-size:16px; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p{ margin:0; }
:focus-visible{ outline:2px solid var(--red-600); outline-offset:3px; }

[data-icon]{ display:inline-flex; align-items:center; justify-content:center; width:1.2em; height:1.2em; }
[data-icon] svg{ width:100%; height:100%; display:block; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

.container{ width:100%; max-width:var(--container); margin:0 auto; padding:0 16px; }
@media (min-width:640px){ .container{ padding:0 24px; } }
.section{ padding:40px 0; }
@media (min-width:768px){ .section{ padding:64px 0; } }
/* Между соседними секциями не должно быть двойного отступа (padding-bottom + padding-top) */
.section + .section{ padding-top:0; }
.section-head{ margin-bottom:28px; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--f-display); font-size:11px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--red-500); font-weight:600; margin-bottom:12px;
}
.eyebrow::before{ content:''; width:16px; height:2px; background:var(--red-500); border-radius:2px; }
h1,h2,h3{ font-family:var(--f-display); font-weight:700; letter-spacing:-.015em; }
h2{ font-size:clamp(23px,4.5vw,34px); }
h3{ font-size:clamp(17px,3vw,20px); }
.lead{ color:var(--text-soft); font-size:15px; line-height:1.6; max-width:56ch; }

/* --- Кнопки --- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 22px; border-radius:var(--r-pill); border:none;
  font-weight:700; font-size:14px; letter-spacing:.01em;
  transition:transform .22s var(--ease), box-shadow .22s var(--ease), background .18s ease, color .18s ease, border-color .18s ease;
  white-space:nowrap;
}
.btn:active{ transform:scale(.96); }
.btn-primary{ background:var(--red-600); color:#fff; box-shadow:none; }
.btn-primary:hover{ background:var(--red-700); transform:translateY(-1px); }
.btn-dark{ background:var(--text); color:var(--bg); }
.btn-dark:hover{ opacity:.86; transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn-ghost{ background:transparent; color:var(--text); border:1.5px solid var(--border-strong); }
.btn-ghost:hover{ border-color:var(--text); background:var(--surface); transform:translateY(-2px); }
.btn-ghost-light{ background:rgba(255,255,255,.09); color:#fff; border:1.5px solid rgba(255,255,255,.28); backdrop-filter:blur(8px); }
.btn-ghost-light:hover{ background:rgba(255,255,255,.18); border-color:rgba(255,255,255,.5); transform:translateY(-2px); }
.btn-block{ width:100%; }
.btn-sm{ padding:9px 15px; font-size:12.5px; }
.btn-wa{ background:#25D366; color:#fff; box-shadow:0 12px 26px rgba(37,211,102,.32); }
.btn-wa:hover{ transform:translateY(-1px); box-shadow:0 16px 32px rgba(37,211,102,.4); }
.btn-icon{ width:50px; height:50px; padding:0; border-radius:50%; flex-shrink:0; }
.btn-icon [data-icon]{ width:20px; height:20px; }
.btn-icon [data-icon] svg{ width:20px; height:20px; }
.btn [data-icon] svg{ width:18px; height:18px; }
.btn[disabled]{ opacity:.55; pointer-events:none; }

.icon-btn{
  width:40px; height:40px; border-radius:50%; border:1px solid var(--border);
  background:var(--surface); color:var(--text); display:flex; align-items:center; justify-content:center;
  flex-shrink:0; transition:border-color .15s, background .15s, transform .15s;
}
.icon-btn:hover{ border-color:var(--border-strong); background:var(--surface-2); }
.icon-btn:active{ transform:scale(.92); }
.icon-btn svg{ width:19px; height:19px; }

/* --- Карточки --- */
.card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  box-shadow:var(--shadow-sm); transition:transform .26s var(--ease), box-shadow .26s var(--ease), background .25s ease, border-color .25s ease;
}
.card-hover:hover{ transform:translateY(-2px); box-shadow:var(--shadow-sm); border-color:var(--border-strong); }

/* --- Шапка --- */
.topbar{
  position:sticky; top:0; z-index:50;
  min-height:var(--nav-h); display:flex; align-items:center;
  background:var(--topbar-bg); backdrop-filter:blur(18px) saturate(1.4);
  -webkit-backdrop-filter:blur(18px) saturate(1.4);
  border-bottom:1px solid var(--border);
  padding:9px 0;
}
.topbar .container{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.logo{ display:flex; align-items:center; gap:9px; font-family:var(--f-display); font-weight:700; font-size:15px; color:var(--text); flex-shrink:0; transition:opacity .15s ease; }
.logo:hover{ opacity:.82; }
.logo-mark{ width:34px; height:34px; flex-shrink:0; }
.logo-mark img{ width:100%; height:100%; display:block; }
.logo b{ font-weight:800; }
.logo .brand-ok{ color:var(--red-500); }
.nav-desktop{ display:none; align-items:center; gap:28px; }
.nav-desktop a{ position:relative; font-size:13.5px; font-weight:600; color:var(--text-soft); transition:color .15s; padding:4px 0; }
.nav-desktop a::after{ content:''; position:absolute; left:0; right:100%; bottom:-2px; height:2px; background:var(--red-500); border-radius:2px; transition:right .22s var(--ease); }
.nav-desktop a:hover{ color:var(--text); }
.nav-desktop a:hover::after{ right:0; }
.nav-actions{ display:none; align-items:center; gap:8px; }
.head-controls{ display:flex; align-items:center; gap:6px; }
.burger{ width:38px; height:38px; border:1px solid var(--border); border-radius:var(--r-sm); background:var(--surface); color:var(--text); display:flex; align-items:center; justify-content:center; flex-shrink:0; }

@media (min-width:900px){
  .nav-desktop{ display:flex; }
  .nav-actions{ display:flex; }
  .burger{ display:none; }
}

/* --- Мобильное выпадающее меню --- */
.mobile-drop{
  position:fixed; inset:var(--nav-h) 0 0 0; z-index:55; background:var(--bg);
  padding:18px 16px; overflow-y:auto; animation:dropIn .18s ease;
}
@keyframes dropIn{ from{ opacity:0; transform:translateY(-6px);} to{ opacity:1; transform:translateY(0);} }
.mobile-drop a.mnav{ display:flex; align-items:center; gap:10px; padding:14px 4px; font-size:16px; font-weight:700; border-bottom:1px solid var(--border); color:var(--text); }
.mobile-drop .mnav-actions{ display:flex; flex-direction:column; gap:10px; margin-top:18px; }
@media (min-width:900px){ .mobile-drop{ display:none !important; } }

/* --- Переключатель темы --- */
.theme-toggle{ position:relative; }
.theme-toggle svg{ position:absolute; inset:0; margin:auto; transition:opacity .2s ease, transform .3s ease; }
.theme-toggle .ic-sun{ opacity:0; transform:rotate(-60deg) scale(.5); }
.theme-toggle .ic-moon{ opacity:1; transform:rotate(0) scale(1); }
[data-theme="light"] .theme-toggle .ic-sun{ opacity:1; transform:rotate(0) scale(1); }
[data-theme="light"] .theme-toggle .ic-moon{ opacity:0; transform:rotate(60deg) scale(.5); }

/* --- Переключатель языка --- */
.lang-wrap{ position:relative; }
.lang-btn{ font-size:12.5px; font-weight:800; letter-spacing:.02em; width:auto; padding:0 12px; border-radius:var(--r-pill); }
.lang-menu{
  position:absolute; top:calc(100% + 8px); right:0; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-md); box-shadow:var(--shadow-md); padding:6px; min-width:132px; z-index:80;
  opacity:0; transform:translateY(-6px) scale(.97); pointer-events:none; transition:all .16s ease;
}
.lang-menu.open{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.lang-menu button{
  display:flex; align-items:center; justify-content:space-between; width:100%; padding:9px 10px; border-radius:var(--r-sm);
  background:transparent; border:none; color:var(--text); font-size:13.5px; font-weight:600; text-align:left;
}
.lang-menu button:hover{ background:var(--surface-2); }
.lang-menu button.active{ color:var(--red-500); }
.lang-menu button .lc{ font-size:11px; font-weight:800; color:var(--text-faint); }

/* --- Нижнее мобильное меню --- */
.tabbar{
  position:fixed; left:0; right:0; bottom:0; z-index:60;
  height:var(--tab-h); background:var(--tabbar-bg); backdrop-filter:blur(16px);
  border-top:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-around;
  padding-bottom:env(safe-area-inset-bottom);
}
.tabbar a{
  display:flex; flex-direction:column; align-items:center; gap:3px;
  font-size:10.5px; font-weight:600; color:var(--text-faint); flex:1; padding:6px 0;
  transition:color .15s;
}
.tabbar a svg{ width:21px; height:21px; }
.tabbar a.active{ color:var(--red-500); }
@media (min-width:900px){ .tabbar{ display:none; } }
.tab-spacer{ height:calc(var(--tab-h) + 16px); }
@media (min-width:900px){ .tab-spacer{ display:none; } }

/* --- Хиро --- */
.hero{
  position:relative; overflow:hidden;
  background:var(--grad-dark); color:#fff;
  padding:52px 0 60px;
}
.hero::before{
  content:''; position:absolute; inset:0; opacity:.5; mix-blend-mode:overlay; pointer-events:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/></svg>");
}
.hero::after{
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(55% 50% at 88% 6%, rgba(255,75,82,.32), transparent 60%),
    radial-gradient(45% 40% at 8% 95%, rgba(255,75,82,.14), transparent 65%);
  pointer-events:none;
}
.hero-grid{ position:relative; z-index:1; display:grid; gap:22px; }
/* Реальный контент hero всегда должен быть выше декоративных ::before/::after
   (шум + градиенты) — раньше это обеспечивал только .hero-grid на главной,
   а простой .container (about/routes/маршруты) красился ПОД ::after, что было
   незаметно на слабом узоре, но стало проблемой с плотной затемняющей подложкой
   у .route-cover: кнопки и текст оказывались "под вуалью". Правим на уровне
   .hero, чтобы больше не наступать на эти грабли. */
.hero > .container{ position:relative; z-index:1; }
.hero .eyebrow{ color:var(--red-400) !important; }
.hero .eyebrow::before{ background:var(--red-400); }
.hero h1{ font-size:clamp(29px,6.5vw,50px); line-height:1.08; }
.hero h1 em{ font-style:normal; background:linear-gradient(100deg,var(--red-400),var(--red-500) 60%); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero p.lead{ color:rgba(255,255,255,.72); margin-top:14px; font-size:16px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:26px; }
.hero-stats{ display:flex; gap:28px; margin-top:34px; flex-wrap:wrap; padding-top:26px; border-top:1px solid rgba(255,255,255,.12); }
.hero-stat b{ display:block; font-family:var(--f-display); font-size:24px; font-weight:700; }
.hero-stat span{ font-size:12px; color:rgba(255,255,255,.55); }

/* --- Обложка страницы маршрута (фоновое фото направления) ---
   Подключается модификатором .route-cover поверх .hero только на
   страницах отдельных маршрутов; сам .hero не трогаем, чтобы не задеть
   главную, "О сервисе", аренду и хаб /routes. Картинка задаётся через
   CSS-переменную --cover-img инлайн-стилем на самой секции. */
.hero.route-cover{
  background-image: var(--cover-img);
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
  padding-top: 112px;
  padding-bottom: 72px;
}
.hero.route-cover::before{ opacity:.3; }
.hero.route-cover::after{
  background:
    linear-gradient(180deg, rgba(4,4,6,.82) 0%, rgba(4,4,6,.68) 45%, rgba(4,4,6,.93) 100%),
    radial-gradient(55% 50% at 88% 6%, rgba(255,75,82,.22), transparent 60%);
}
@media (max-width:639px){
  .hero.route-cover{ padding-top:84px; padding-bottom:48px; background-position: center 66%; }
}

.route{ position:relative; height:56px; margin:22px 0 4px; }
.route svg{ width:100%; height:100%; }
.route-dash{ stroke-dasharray:6 8; animation:dashmove 2.4s linear infinite; }
@keyframes dashmove{ to{ stroke-dashoffset:-140; } }
.route-pin{ transform-box:fill-box; transform-origin:center; animation:pulse 2.2s ease-in-out infinite; }
@keyframes pulse{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.15); } }
.route-car-img{ filter:drop-shadow(0 3px 5px rgba(0,0,0,.55)); }

/* Машинки-оверлей: разные классы по очереди "летают" поверх всего hero-блока.
   Две версии переключаются по тому же брейкпоинту (900px), что и остальная
   навигация сайта — на мобильном полоса ниже и машинки в ней крупнее
   относительно узкого экрана, иначе они были еле заметны. */
.hero-route-overlay{
  position:absolute; left:0; right:0; bottom:2px; height:64px;
  pointer-events:none; z-index:0; overflow:hidden;
}
.hero-route-overlay svg{ position:relative; width:100%; height:100%; display:block; }

.hero-route-overlay-mobile{ display:block; height:82px; }
.hero-route-overlay-desktop{ display:none; }
@media (min-width:900px){
  .hero-route-overlay-mobile{ display:none; }
  .hero-route-overlay-desktop{ display:block; }
}

/* --- Секции преимуществ --- */
.perks{ display:grid; gap:16px; grid-template-columns:1fr; }
@media (min-width:560px){ .perks{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1000px){ .perks{ grid-template-columns:repeat(4,1fr); } }
.perk{ padding:24px 22px; }
.perk-ic{
  width:46px; height:46px; border-radius:14px;
  background:linear-gradient(150deg, rgba(225,31,40,.14), rgba(225,31,40,.05));
  border:1px solid rgba(225,31,40,.16);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px;
  color:var(--red-500); line-height:1;
}
.perk-ic svg{ width:22px; height:22px; }
.perk h3{ font-size:15.5px; margin-bottom:7px; }
.perk p{ font-size:13px; color:var(--text-soft); line-height:1.55; }

/* --- Поиск / фильтры --- */
.filters{
  display:flex; flex-wrap:wrap; gap:9px; padding:14px; margin:16px 0 24px;
  background:var(--surface); border-radius:var(--r-lg); border:1px solid var(--border);
  box-shadow:var(--shadow-md); position:relative; z-index:2;
}
.field{ flex:1; min-width:130px; }
.field label{ display:block; font-size:10.5px; font-weight:700; color:var(--text-faint); text-transform:uppercase; letter-spacing:.04em; margin-bottom:6px; }
.input, select.input{
  width:100%; padding:12px 14px; border-radius:12px; border:1.5px solid var(--border);
  background:var(--input-bg); color:var(--text); font-size:14px; transition:border-color .15s, background .15s, box-shadow .15s;
}
.input::placeholder{ color:var(--text-faint); }
.input:focus, select.input:focus{ border-color:var(--red-600); background:var(--surface); box-shadow:0 0 0 3px rgba(225,31,40,.12); outline:none; }
select.input{ appearance:none; -webkit-appearance:none;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat:no-repeat; background-position:right 12px center; background-size:16px; padding-right:34px;
}
.filters .btn{ align-self:flex-end; }

/* --- Список водителей --- */
.drivers-grid{ display:grid; gap:12px; grid-template-columns:repeat(3,1fr); }
@media (min-width:560px){ .drivers-grid{ gap:16px; grid-template-columns:repeat(4,1fr); } }
@media (min-width:820px){ .drivers-grid{ grid-template-columns:repeat(5,1fr); } }
@media (min-width:1100px){ .drivers-grid{ grid-template-columns:repeat(6,1fr); } }

.driver-card{ overflow:hidden; position:relative; }
.driver-card .media{ position:relative; height:164px; overflow:hidden; background:var(--surface-2); }
.driver-card .media img{ width:100%; height:100%; object-fit:cover; transition:transform .5s var(--ease); }
.driver-card:hover .media img{ transform:scale(1.07); }
.driver-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-md); border-color:var(--border-strong); }

/* --- Выделение профиля (платная услуга): золотая переливающаяся рамка --- */
/* Используем box-shadow, а не ::before — у .driver-card overflow:hidden
   (для обрезки картинки по скруглённым углам), который обрезал бы псевдоэлемент. */
.driver-card.featured{
  border-color:transparent;
  animation:goldPulse 2.6s ease-in-out infinite;
}
.featured-badge{
  position:absolute; top:11px; left:11px; z-index:4; display:inline-flex; align-items:center; gap:4px;
  background:linear-gradient(135deg,#fff0bd,#e0aa2e); color:#3a2a00; font-size:11px; font-weight:800;
  padding:5px 9px; border-radius:var(--r-pill); box-shadow:0 4px 12px rgba(212,160,23,.4);
}
.featured-badge svg{ width:12px; height:12px; }
@keyframes goldPulse{
  0%,100%{ box-shadow:0 0 0 2px #ffd76a, 0 0 14px 2px rgba(255,215,90,.35), var(--shadow-sm); }
  50%{ box-shadow:0 0 0 3px #ffe9a8, 0 0 24px 6px rgba(255,215,90,.55), var(--shadow-sm); }
}
@media (prefers-reduced-motion: reduce){ .driver-card.featured{ animation:none; box-shadow:0 0 0 2px #ffd76a, 0 0 14px 2px rgba(255,215,90,.35); } }
.driver-card .avatar{
  position:absolute; left:16px; top:132px; width:54px; height:54px; border-radius:50%;
  border:3px solid var(--surface); box-shadow:var(--shadow-sm); overflow:hidden; background:var(--surface-2); z-index:2;
}
.driver-card .avatar img{ width:100%; height:100%; object-fit:cover; }
.online-dot{
  position:absolute; right:-2px; bottom:-2px; width:13px; height:13px; border-radius:50%;
  background:var(--ok); border:2.5px solid var(--surface); z-index:3;
}
.online-badge{
  display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:700; color:var(--ok);
}
.online-badge::before{ content:''; width:7px; height:7px; border-radius:50%; background:var(--ok); box-shadow:0 0 0 3px rgba(28,138,75,.16); }
.online-badge.on-dark{ color:#8fe6ab; }
.online-badge.on-dark::before{ background:#5be27a; box-shadow:0 0 0 3px rgba(91,226,122,.25); }
.price-chip{
  position:absolute; top:11px; right:11px; background:rgba(11,11,13,.72); color:#fff;
  font-size:11.5px; font-weight:700; padding:6px 10px; border-radius:var(--r-pill); backdrop-filter:blur(4px);
}
.driver-card .body{ padding:32px 15px 16px; }
.driver-card .name{ font-family:var(--f-display); font-size:15.5px; font-weight:700; }
.driver-card .loc{ font-size:12px; color:var(--text-soft); margin-top:2px; display:flex; align-items:center; gap:5px; }
.driver-card .loc svg{ width:13px; height:13px; }
.driver-card .rating{ display:flex; align-items:center; gap:6px; margin-top:9px; font-size:12.5px; font-weight:700; }
.driver-card .rating b{ color:var(--red-500); font-family:var(--f-display); }
.driver-card .rating span{ color:var(--text-soft); font-weight:500; }
.driver-card .tags{ display:flex; gap:6px; margin-top:9px; flex-wrap:wrap; }
.tag{ font-size:10.5px; font-weight:700; padding:4px 9px; border-radius:var(--r-pill); background:var(--surface-2); color:var(--text-soft); }
.driver-card .cta{ margin-top:13px; }

/* --- Карточка-фото водителя (раздел «Зарегистрированные водители») --- */
.driver-photo-card{
  position:relative; display:block; aspect-ratio:1/1; border-radius:var(--r-lg); overflow:hidden;
  background:var(--surface-2); box-shadow:var(--shadow-sm);
  transition:transform .2s ease, box-shadow .2s ease;
}
.driver-photo-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-md); }
.driver-photo-card img{ width:100%; height:100%; object-fit:cover; display:block; }
.driver-photo-card.featured{ box-shadow:0 0 0 2px #ffd76a, 0 0 14px 2px rgba(255,215,90,.35); }
.driver-photo-card .featured-badge{ position:absolute; top:8px; left:8px; z-index:2; font-size:10px; padding:4px 8px; }
.driver-photo-card .online-dot{
  position:absolute; top:10px; right:10px; width:12px; height:12px; border-radius:50%;
  background:var(--ok); border:2px solid #fff; z-index:2; box-shadow:0 0 0 3px rgba(28,138,75,.25);
}
.driver-photo-name{
  position:absolute; left:0; right:0; bottom:0; padding:22px 8px 9px; z-index:1;
  background:linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 100%);
  color:#fff; font-size:12px; font-weight:700; text-align:center; line-height:1.25;
}

/* --- FAQ --- */
.faq-list{ display:flex; flex-direction:column; gap:10px; max-width:760px; }
.faq-item{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-md);
  padding:16px 18px; box-shadow:var(--shadow-sm);
}
.faq-item summary{
  cursor:pointer; font-weight:700; font-size:14.5px; color:var(--text);
  list-style:none; display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:'+'; font-size:20px; font-weight:400; color:var(--text-soft); flex-shrink:0;
  transition:transform .2s ease;
}
.faq-item[open] summary::after{ transform:rotate(45deg); }
.faq-item p{ margin-top:12px; font-size:13.5px; color:var(--text-soft); line-height:1.65; }

/* --- Форма --- */
.auth-wrap{
  min-height:100dvh; display:flex; align-items:center; justify-content:center;
  padding:28px 16px; background:var(--bg-soft);
  background-image: radial-gradient(80% 60% at 100% 0%, rgba(225,31,40,.08), transparent 60%);
}
.auth-card{ width:100%; max-width:430px; padding:30px 24px; position:relative; }
/* Раньше переключатель темы/языка лежал абсолютно в правом верхнем углу
   карточки (top:16;right:16), поверх центрированного логотипа/заголовка —
   на узких экранах и просто на ширине самой карточки (430px) блок
   TRANSFEROK визуально наезжал на кнопку темы, буквы «OK» скрывались под
   кружком. Теперь это обычная строка в потоке, прижатая вправо, — заголовок
   просто идёт ниже неё, без наложения на любой ширине. */
.auth-corner{ display:flex; justify-content:flex-end; gap:6px; margin-bottom:10px; }
.auth-head{ text-align:center; margin-bottom:24px; }
.auth-head .logo{ justify-content:center; margin-bottom:14px; }
.form-row{ margin-bottom:15px; }
.form-row label{ display:block; font-size:12.5px; font-weight:700; margin-bottom:7px; }
.form-grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:420px){ .form-grid-2{ grid-template-columns:1fr; } }

/* --- Удобства (переключатели Да/Нет) --- */
.amenity-list{ display:flex; flex-direction:column; gap:2px; }
.amenity-row{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:13px 4px; border-bottom:1px solid var(--border); cursor:pointer;
}
.amenity-row:last-child{ border-bottom:none; }
.amenity-label{ display:flex; align-items:center; gap:10px; font-size:14px; font-weight:600; color:var(--text); }
.amenity-label [data-icon]{ width:20px; height:20px; color:var(--text-soft); flex-shrink:0; }
.switch{ position:relative; width:44px; height:26px; flex-shrink:0; }
.switch input{ position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer; z-index:1; }
.switch-track{
  position:absolute; inset:0; border-radius:var(--r-pill); background:var(--surface-2);
  border:1px solid var(--border-strong); transition:background .18s ease, border-color .18s ease;
}
.switch-track::after{
  content:''; position:absolute; top:2px; left:2px; width:20px; height:20px; border-radius:50%;
  background:#fff; box-shadow:var(--shadow-sm); transition:transform .18s ease;
}
.switch input:checked + .switch-track{ background:var(--grad-red); border-color:transparent; }
.switch input:checked + .switch-track::after{ transform:translateX(18px); }
.switch input:focus-visible + .switch-track{ box-shadow:0 0 0 3px rgba(225,31,40,.25); }

/* --- Значки удобств на публичной странице водителя --- */
.amenity-badges{ display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.amenity-badge{
  display:inline-flex; align-items:center; gap:6px; padding:8px 13px; border-radius:var(--r-pill);
  background:var(--surface-2); border:1px solid var(--border); font-size:12.5px; font-weight:600; color:var(--text-soft);
}
.amenity-badge [data-icon]{ width:15px; height:15px; color:var(--red-500); }
.help{ font-size:12px; color:var(--text-soft); margin-top:6px; }
.auth-foot{ text-align:center; font-size:13px; color:var(--text-soft); margin-top:16px; }
.auth-foot a{ color:var(--red-500); font-weight:700; }
.divider-or{ display:flex; align-items:center; gap:10px; margin:18px 0; color:var(--text-faint); font-size:12px; }
.divider-or::before,.divider-or::after{ content:''; flex:1; height:1px; background:var(--border); }

.toast{
  position:fixed; bottom:calc(var(--tab-h) + 18px); left:50%; transform:translate(-50%,20px);
  background:var(--surface-2); color:var(--text); border:1px solid var(--border-strong); padding:12px 18px; border-radius:var(--r-pill);
  font-size:13px; font-weight:600; display:flex; align-items:center; gap:9px;
  box-shadow:var(--shadow-md); z-index:200; opacity:0; pointer-events:none; transition:all .3s ease; max-width:90vw;
}
.toast.show{ opacity:1; transform:translate(-50%,0); }
.toast svg{ width:16px; height:16px; color:#5be27a; flex-shrink:0; }
@media (min-width:900px){ .toast{ bottom:24px; } }

/* --- Личный кабинет --- */
.dash-head{
  background:var(--grad-dark); color:#fff; padding:32px 0 60px; position:relative; overflow:hidden;
}
.dash-head::after{ content:''; position:absolute; inset:0; background:radial-gradient(50% 50% at 90% 0%, rgba(255,75,82,.22), transparent 60%); }
.dash-head .container{ position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; }
.dash-head-save{ flex-shrink:0; }
@media (max-width:640px){ .dash-head-save{ width:100%; } }
.dash-shell{ margin-top:-40px; position:relative; z-index:2; }
.dash-tabs{ display:flex; gap:8px; overflow-x:auto; padding-bottom:4px; margin-bottom:18px; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.dash-tabs::-webkit-scrollbar{ display:none; }
.dash-tab{
  padding:10px 16px; border-radius:var(--r-pill); font-size:13px; font-weight:700;
  background:var(--surface); border:1px solid var(--border); color:var(--text-soft); white-space:nowrap; transition:all .15s;
}
.dash-tab.active{ background:var(--text); color:var(--bg); border-color:var(--text); }
.panel{ padding:20px; margin-bottom:16px; }
.status-badge{ display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:700; padding:5px 12px; border-radius:var(--r-pill); }
.status-badge.draft{ background:var(--surface-2); color:var(--text-faint); }
.status-badge.pending{ background:var(--pending-bg); color:var(--pending-fg); }
.status-badge.approved{ background:var(--approved-bg); color:var(--approved-fg); }
.status-badge.rejected{ background:var(--rejected-bg); color:var(--rejected-fg); }
.status-badge.completed{ background:var(--completed-bg); color:var(--completed-fg); }
.panel-title{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; gap:10px; flex-wrap:wrap; }
.upload-box{
  border:1.5px dashed var(--border-strong); border-radius:var(--r-md); padding:16px; text-align:center;
  background:var(--bg-soft); cursor:pointer; transition:border-color .15s;
  display:flex; align-items:center; gap:14px;
}
.upload-box:hover{ border-color:var(--red-600); }
.upload-box .ic{ width:42px; height:42px; border-radius:var(--r-sm); background:var(--surface); display:flex; align-items:center; justify-content:center; color:var(--red-500); flex-shrink:0; }
.upload-preview{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.upload-preview .thumb{ width:62px; height:62px; border-radius:var(--r-sm); overflow:hidden; position:relative; }
.upload-preview .thumb img{ width:100%; height:100%; object-fit:cover; }
.upload-preview .thumb button{ position:absolute; top:2px; right:2px; width:18px; height:18px; border-radius:50%; background:rgba(11,11,13,.7); color:#fff; border:none; font-size:11px; line-height:1; }

.link-box{
  display:flex; align-items:center; gap:10px; padding:13px 15px; border-radius:var(--r-md);
  background:var(--bg-soft); border:1px solid var(--border); font-size:13px;
}
.link-box code{ flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--red-500); font-weight:700; }

.stat-row{ display:grid; grid-template-columns:1fr 1fr 1.5fr; gap:10px; margin-bottom:16px; }
.stat-box{ padding:16px 10px; text-align:center; min-width:0; }
.stat-box b{
  display:block; font-family:var(--f-display); font-size:20px;
  overflow-wrap:break-word; word-break:break-word; line-height:1.15;
}
.stat-box span{ font-size:11px; color:var(--text-soft); }
@media (max-width:380px){ .stat-box b{ font-size:16px; } }
/* Третья карточка показывает не число, а слово-статус («Опубликовано»,
   «На модерации», «Отклонено») — при том же крупном размере шрифта, что и
   у чисел 4.8/34, длинное слово переносилось прямо посреди слова
   (word-break:break-word) и карточка становилась заметно выше соседних.
   Отдельный меньший размер именно для этой подписи — слово помещается в
   одну-две строки аккуратно, высота карточек снова одинаковая. */
#statViewsLabel{ font-size:14px; }

/* --- Страница водителя --- */
.driver-hero{ position:relative; height:320px; overflow:hidden; background:var(--surface-2); }
.driver-hero img{ width:100%; height:100%; object-fit:cover; }
.driver-hero::after{ content:''; position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 45%, transparent 70%); }
.driver-hero .info{
  position:absolute; left:0; right:0; bottom:0; padding:20px 18px 24px; color:#fff; z-index:1;
  display:flex; flex-direction:column; align-items:center; text-align:center;
}
.driver-hero .avatar-lg{ width:96px; height:96px; border-radius:50%; border:3px solid #fff; overflow:hidden; box-shadow:var(--shadow-md); margin:0 0 12px; }
.driver-hero .avatar-lg img{ width:100%; height:100%; object-fit:cover; }
.driver-hero h1{ font-size:22px; }
.driver-hero-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.driver-hero-actions .btn{ padding:11px 18px; font-size:13.5px; }
.driver-hero.featured .avatar-lg{
  border-color:#ffd76a;
  box-shadow:0 0 0 4px rgba(255,215,90,.35), var(--shadow-md);
}
.driver-hero .featured-badge{ position:absolute; top:14px; left:14px; z-index:2; }
.driver-hero .featured-badge-avatar{ position:static; margin:0 0 10px; }
.driver-hero .online-badge{ margin-top:8px; }

/* На телефоне раньше 3 кнопки (Позвонить/Написать/Забронировать) переносились
   вразнобой на новую строку (flex-wrap с разной шириной кнопок), из-за чего
   общая высота блока .info вырастала и — поскольку у .driver-hero фиксированная
   высота и overflow:hidden — верх блока (бейдж «Топ», иногда и аватар) обрезался.
   Решение: на мобильном кнопки — сеткой в один ряд одинаковой ширины (никогда
   не переносятся), плюс с запасом увеличена высота секции. */
@media (max-width:639px){
  .driver-hero{ height:380px; }
  .driver-hero h1{ font-size:19px; }
  .driver-hero-actions{
    display:grid; grid-template-columns:repeat(3,1fr); gap:8px; width:100%; margin-top:14px;
  }
  .driver-hero-actions .btn{
    padding:10px 4px; font-size:11px; gap:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  .driver-hero-actions .btn [data-icon] svg{ width:15px; height:15px; }
}

/* --- Галерея автомобиля: свайп-карусель --- */
.car-gallery{ position:relative; }
.car-gallery .g-track{
  display:flex; overflow-x:auto; scroll-snap-type:x mandatory; gap:0; border-radius:var(--r-md);
  -webkit-overflow-scrolling:touch; scrollbar-width:none; scroll-behavior:smooth;
}
.car-gallery .g-track::-webkit-scrollbar{ display:none; }
.car-gallery .g-slide{
  flex:0 0 100%; scroll-snap-align:start; aspect-ratio:4/3; background:var(--surface-2);
  position:relative; cursor:zoom-in;
}
.car-gallery .g-slide img{ width:100%; height:100%; object-fit:cover; }
.car-gallery .g-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:3;
  width:38px; height:38px; border-radius:50%; background:rgba(11,11,13,.55); color:#fff; border:none;
  display:flex; align-items:center; justify-content:center; backdrop-filter:blur(4px); transition:background .15s;
}
.car-gallery .g-arrow:hover{ background:rgba(11,11,13,.78); }
.car-gallery .g-arrow.prev{ left:10px; }
.car-gallery .g-arrow.next{ right:10px; }
.car-gallery .g-arrow svg{ width:18px; height:18px; }
@media (hover:none){ .car-gallery .g-arrow{ display:none; } }
.car-gallery .g-counter{
  position:absolute; top:10px; right:10px; z-index:3; background:rgba(11,11,13,.6); color:#fff;
  font-size:11.5px; font-weight:700; padding:5px 10px; border-radius:var(--r-pill); backdrop-filter:blur(4px);
}
.car-gallery .g-dots{ display:flex; gap:6px; justify-content:center; margin-top:10px; }
.car-gallery .g-dots button{ width:6px; height:6px; border-radius:50%; background:var(--border-strong); border:none; padding:0; transition:all .2s; }
.car-gallery .g-dots button.active{ background:var(--red-500); width:18px; border-radius:4px; }
.car-gallery .g-thumbs{ display:flex; gap:8px; margin-top:10px; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.car-gallery .g-thumbs::-webkit-scrollbar{ display:none; }
.car-gallery .g-thumbs img{ width:58px; height:58px; object-fit:cover; border-radius:var(--r-sm); flex:0 0 auto; opacity:.5; transition:opacity .2s, outline-color .2s; cursor:pointer; outline:2px solid transparent; outline-offset:2px; }
.car-gallery .g-thumbs img.active{ opacity:1; outline-color:var(--red-500); }

/* Лайтбокс */
.lightbox{
  position:fixed; inset:0; z-index:300; background:rgba(4,4,5,.96);
  display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition:opacity .2s ease;
}
.lightbox.open{ opacity:1; pointer-events:auto; }
.lightbox .lb-track{ display:flex; width:100%; height:100%; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
.lightbox .lb-track::-webkit-scrollbar{ display:none; }
.lightbox .lb-slide{ flex:0 0 100%; scroll-snap-align:start; display:flex; align-items:center; justify-content:center; padding:20px; }
.lightbox .lb-slide img{ max-width:100%; max-height:100%; object-fit:contain; border-radius:8px; }
.lightbox .lb-close{
  position:absolute; top:16px; right:16px; z-index:5; width:42px; height:42px; border-radius:50%;
  background:rgba(255,255,255,.12); color:#fff; border:none; display:flex; align-items:center; justify-content:center;
}
.lightbox .lb-close svg{ width:20px; height:20px; }
.lightbox .lb-counter{
  position:absolute; top:24px; left:50%; transform:translateX(-50%); z-index:5; color:#fff; font-size:13px; font-weight:700;
  background:rgba(255,255,255,.12); padding:6px 14px; border-radius:var(--r-pill);
}
.lightbox .g-arrow{ background:rgba(255,255,255,.14); }
.lightbox .g-arrow.prev{ left:16px; } .lightbox .g-arrow.next{ right:16px; }
@media (min-width:640px){ .lightbox .g-arrow{ width:46px; height:46px; } }

/* На мобильном порядок в разметке = порядок на экране: сперва «О водителе» +
   галерея, затем форма бронирования, отзывы — в самом конце (не отвлекают от
   брони). На десктопе те же три блока раскладываем по сетке именованными
   областями — блок бронирования (sticky) растягивается на всю правую колонку
   независимо от того, что в DOM он идёт раньше отзывов. */
@media (min-width:960px){
  #driverColumns{
    grid-template-columns:2fr 1fr !important;
    grid-template-areas:"about booking" "reviews booking";
    align-items:start;
  }
  .driver-col-about{ grid-area:about; }
  .driver-col-booking{ grid-area:booking; }
  .driver-col-reviews{ grid-area:reviews; }
}
/* Без min-width:0 колонка-грид растягивается по min-content самого широкого
   потомка — а внутри лежит свайп-галерея (.g-track), у которой все слайды
   идут в ряд без переноса и «в развёрнутом виде» шире экрана. Из-за этого
   вся страница профиля водителя становилась чуть шире экрана и слегка
   скроллилась вбок по горизонтали. min-width:0 — стандартный способ сказать
   грид-колонке ориентироваться на доступную ширину, а не на контент. */
#driverColumns > div{ min-width:0; }

.info-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
@media (min-width:560px){ .info-grid{ grid-template-columns:repeat(3,1fr); } }
.info-item{ padding:13px; background:var(--bg-soft); border-radius:var(--r-md); }
.info-item span{ display:block; font-size:10.5px; color:var(--text-faint); text-transform:uppercase; letter-spacing:.04em; margin-bottom:4px; }
.info-item b{ font-size:14px; }

.trip-estimate{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:4px 0 15px; }
.trip-estimate .info-item.accent{ background:rgba(225,31,40,.1); border:1px solid rgba(225,31,40,.25); }
.trip-estimate .info-item.accent b{ color:var(--red-600); }
.trip-estimate .info-item b{ font-size:15px; }

.review{ padding:15px 0; border-bottom:1px solid var(--border); }
.review:last-child{ border-bottom:none; }
.review-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; gap:8px; }
.review-name{ font-weight:700; font-size:13.5px; }
.review-rating{ font-size:12px; font-weight:800; color:var(--red-500); background:var(--surface-2); padding:3px 9px; border-radius:var(--r-pill); flex-shrink:0; }
.review p{ font-size:13px; color:var(--text-soft); }

.rating-input{ display:flex; gap:8px; }
.rating-input button{
  width:38px; height:38px; border-radius:50%; border:1.5px solid var(--border-strong);
  background:var(--surface); color:var(--text-soft); font-weight:700; font-size:14px; transition:all .15s;
}
.rating-input button.on{ background:var(--grad-red); border-color:transparent; color:#fff; }

/* --- Footer --- */
.footer{ background:var(--footer-bg); color:rgba(255,255,255,.68); padding:48px 0 24px; margin-top:20px; position:relative; }
.footer::before{ content:''; position:absolute; top:0; left:0; right:0; height:1px; background:linear-gradient(90deg, transparent, rgba(225,31,40,.5), transparent); }
.footer-grid{ display:grid; gap:30px; grid-template-columns:1fr; margin-bottom:30px; }
@media (min-width:700px){ .footer-grid{ grid-template-columns:2fr 1fr 1fr 1fr; } }
.footer h4{ color:#fff; font-size:12.5px; margin-bottom:14px; text-transform:uppercase; letter-spacing:.06em; }
.footer a{ display:flex; align-items:center; font-size:13.5px; padding:6px 0; color:rgba(255,255,255,.58); transition:color .15s, transform .15s; }
.footer a:hover{ color:#fff; transform:translateX(2px); }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.1); padding-top:20px; font-size:12px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; color:rgba(255,255,255,.4); }

/* --- 404 --- */
.page-404{ min-height:70dvh; display:flex; align-items:center; justify-content:center; text-align:center; padding:40px 20px; }
.code-404{ font-family:var(--f-display); font-size:clamp(70px,20vw,140px); font-weight:800; background:var(--grad-red); -webkit-background-clip:text; background-clip:text; color:transparent; line-height:1; }

/* --- Utility --- */
.mt-8{ margin-top:8px; } .mt-16{ margin-top:16px; } .mt-24{ margin-top:24px; } .mt-32{ margin-top:32px; }
.flex{ display:flex; } .items-center{ align-items:center; } .justify-between{ justify-content:space-between; } .gap-8{ gap:8px; } .gap-12{ gap:12px; }
.text-muted{ color:var(--text-soft); }
.hidden{ display:none !important; }
.skeleton{ background:linear-gradient(90deg,var(--surface-2) 25%,var(--surface) 37%,var(--surface-2) 63%); background-size:400% 100%; animation:sk 1.4s ease infinite; border-radius:var(--r-md); }
@keyframes sk{ 0%{background-position:100% 0;} 100%{background-position:0 0;} }
.empty-state{ text-align:center; padding:46px 20px; color:var(--text-soft); }
.empty-state svg{ width:46px; height:46px; margin-bottom:14px; color:var(--border-strong); }

.fade-up{ opacity:0; transform:translateY(16px); transition:opacity .5s ease, transform .5s ease; }
.fade-up.in{ opacity:1; transform:translateY(0); }

/* --- Подсказки адресов (OpenStreetMap Nominatim, driver.html, форма бронирования) --- */
.addr-field{ position:relative; }
.addr-suggestions{
  position:absolute; top:calc(100% + 4px); left:0; right:0;
  background:var(--surface);
  border:1px solid var(--border-strong);
  border-radius:var(--r-md);
  box-shadow:var(--shadow-sm);
  overflow:hidden;
  z-index:50;
  max-height:230px;
  overflow-y:auto;
}
.addr-suggestions .addr-item{
  padding:9px 12px;
  font-size:13px;
  line-height:1.35;
  color:var(--text-soft);
  cursor:pointer;
  border-top:1px solid var(--border);
}
.addr-suggestions .addr-item:first-child{ border-top:none; }
.addr-suggestions .addr-item:hover,
.addr-suggestions .addr-item.active{ background:var(--bg-soft); color:var(--text); }
.addr-suggestions .addr-empty{ padding:10px 12px; font-size:12.5px; color:var(--text-faint); }
.addr-suggestions .addr-attrib{
  padding:6px 12px; font-size:10px; color:var(--text-faint);
  border-top:1px solid var(--border); background:var(--bg-soft);
}
.addr-suggestions .addr-attrib a{ color:var(--text-faint); text-decoration:underline; }

/* --- Выбор класса автомобиля (главная страница) --- */
.class-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-top:6px;
}
@media (min-width:640px){ .class-grid{ grid-template-columns:repeat(3,1fr); } }
@media (min-width:900px){ .class-grid{ grid-template-columns:repeat(6,1fr); gap:14px; } }
.class-card{
  background:var(--surface); border:1.5px solid var(--border); border-radius:var(--r-lg);
  padding:18px 12px 16px; display:flex; flex-direction:column; align-items:center; text-align:center;
  cursor:pointer; font-family:inherit; color:var(--text); appearance:none; box-shadow:var(--shadow-sm);
  transition:border-color .2s ease, transform .22s var(--ease), box-shadow .22s var(--ease), background .15s ease;
}
.class-card:hover{ border-color:var(--border-strong); transform:translateY(-4px); box-shadow:var(--shadow-md); }
.class-card.active{
  border-color:var(--red-600); background:var(--surface-2);
  box-shadow:0 0 0 1.5px var(--red-600), 0 12px 28px rgba(225,31,40,.22);
  transform:translateY(-2px);
}
.class-card-img{
  width:100%; aspect-ratio:16/10; display:flex; align-items:center; justify-content:center; margin-bottom:10px;
}
.class-card-img img{ max-width:100%; max-height:100%; object-fit:contain; filter:drop-shadow(0 8px 12px rgba(0,0,0,.4)); }
.class-card-title{ font-family:var(--f-display); font-weight:700; font-size:14px; }
.class-card-desc{ font-size:11px; color:var(--text-soft); margin-top:4px; line-height:1.35; }
.class-card.active .class-card-title{ color:var(--red-500); }

/* На телефоне карточки показываем ровной сеткой, а не горизонтальной
   прокруткой: при прокрутке карточки не помещались точно по ширине экрана
   и последняя визуально «обрезалась» о край экрана без отступа. Сетка
   распределяет ширину контейнера поровну — все карточки видны целиком
   сразу, без свайпа.

   .class-grid переиспользуется в двух местах с разным числом карточек:
   выбор класса на главной (ровно 3) и выбор модели на странице аренды
   (4 и больше, список будет расти) — поэтому колонок здесь по умолчанию 2
   (безопасно для любого количества карточек, последний неполный ряд не
   остаётся кривым «сирота один в ряду»), а на главной для #classGrid
   отдельно задаём именно 3, раз там всегда ровно 3 варианта. */
@media (max-width:639px){
  .class-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
  #classGrid{ grid-template-columns:repeat(3,1fr); }
  .class-grid .class-card{ padding:12px 6px 10px; }
  .class-grid .class-card-img{ aspect-ratio:1/1; margin-bottom:6px; }
  .class-grid .class-card-title{ font-size:12px; }
  .class-grid .class-card-desc{ display:none; }
  /* Описание класса авто (Комфорт/Бизнес/Минивэн) — как на ПК, показываем
     и на телефоне, только чуть мельче шрифтом под узкую карточку. Карточки
     моделей на странице аренды (#rentalClassGrid) описание не используют
     на мобильном — там их и так больше, оставляем как было. */
  #classGrid .class-card-desc{ display:block; font-size:9.5px; }
}

.class-route{
  margin-top:24px; padding:20px; background:var(--bg-soft); border:1px solid var(--border); border-radius:var(--r-lg);
  animation:fadeSlideIn .3s var(--ease);
}
.class-route .form-grid-2{ margin-bottom:0; }
.class-route .help{ margin-top:10px; margin-bottom:0; }
@keyframes fadeSlideIn{ from{ opacity:0; transform:translateY(-6px); } to{ opacity:1; transform:translateY(0); } }

.class-results{ margin-top:22px; display:grid; gap:16px; grid-template-columns:1fr; scroll-margin-top:calc(var(--nav-h) + 16px); }
@media (min-width:640px){ .class-results{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:980px){ .class-results{ grid-template-columns:repeat(3,1fr); } }

.trip-price-chip{
  position:absolute; top:11px; right:11px; z-index:2;
  background:linear-gradient(135deg,var(--red-600),var(--red-700)); color:#fff;
  padding:6px 10px; border-radius:var(--r-md); text-align:right; line-height:1.25;
  box-shadow:0 4px 14px rgba(225,31,40,.4);
}
.trip-price-chip b{ display:block; font-size:13.5px; font-family:var(--f-display); font-weight:800; }
.trip-price-chip span{ display:block; font-size:9.5px; font-weight:700; opacity:.9; margin-top:1px; }

/* --- Карточка заявки/бронирования (кабинет клиента и водителя) --- */
.booking-card{
  padding:16px; margin-bottom:12px; display:flex; flex-direction:column; gap:10px;
}
.booking-card .booking-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.booking-card .booking-who{ display:flex; align-items:center; gap:10px; }
.booking-card .booking-avatar{ width:40px; height:40px; border-radius:50%; overflow:hidden; background:var(--surface-2); flex-shrink:0; }
.booking-card .booking-avatar img{ width:100%; height:100%; object-fit:cover; }
.booking-card .booking-name{ font-weight:700; font-size:14px; }
.booking-card .booking-city{ font-size:11.5px; color:var(--text-soft); }
.booking-card .booking-route{ font-size:13px; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.booking-card .booking-route b{ font-weight:700; }
.booking-card .booking-meta{ display:flex; gap:14px; flex-wrap:wrap; font-size:12px; color:var(--text-soft); }
.booking-card .booking-price{ font-size:14px; font-weight:800; color:var(--red-500); }
.booking-card .booking-actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:2px; }

/* --- Значок Verified (водитель прошёл проверку документов) --- */
.verified-badge{
  display:inline-flex; align-items:center; justify-content:center;
  width:20px; height:20px; margin-left:7px; border-radius:50%;
  background:#1868c9; color:#fff; vertical-align:middle; flex-shrink:0;
}
.verified-badge svg{ width:12px; height:12px; }
h1 .verified-badge{ width:24px; height:24px; }
h1 .verified-badge svg{ width:14px; height:14px; }

/* --- Загрузка документов верификации (кабинет водителя) --- */
.doc-grid{ display:grid; grid-template-columns:1fr; gap:12px; }
@media (min-width:640px){ .doc-grid{ grid-template-columns:repeat(2,1fr); } }
.doc-upload{
  display:flex; align-items:center; gap:12px; padding:12px;
  background:var(--bg-soft); border:1px solid var(--border); border-radius:var(--r-md);
}
.doc-upload-preview{
  width:52px; height:52px; flex-shrink:0; border-radius:var(--r-sm);
  background:var(--surface-2); display:flex; align-items:center; justify-content:center;
  color:var(--text-faint); font-size:11px; text-align:center; overflow:hidden;
}
.doc-upload-preview svg{ width:22px; height:22px; }
.doc-upload-info{ flex:1; min-width:0; }
.doc-upload-info b{ display:block; font-size:12.5px; line-height:1.3; }
.doc-preview-link{ font-size:11px; font-weight:700; text-decoration:underline; }

/* --- Cookie-баннер (информационный) --- */
.cookie-banner{
  position:fixed; left:12px; right:12px; bottom:calc(var(--tab-h) + env(safe-area-inset-bottom) + 12px); z-index:60;
  background:var(--surface); border:1px solid var(--border-strong); border-radius:var(--r-lg);
  box-shadow:var(--shadow-md); padding:14px 16px; display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  max-width:720px; margin:0 auto; animation:fadeSlideIn .3s ease;
}
.cookie-banner p{ flex:1; min-width:200px; font-size:12.5px; color:var(--text-soft); margin:0; line-height:1.5; }
.cookie-banner a{ color:var(--text); text-decoration:underline; }
@media (min-width:900px){ .cookie-banner{ bottom:16px; } }

/* --- Приглашение войти как клиент (над формой бронирования) --- */
.client-account-prompt{
  padding:10px 12px; background:var(--bg-soft); border:1px solid var(--border); border-radius:var(--r-md);
}
.client-account-prompt p{ margin:0; font-size:12.5px; line-height:1.5; }
.client-account-prompt a{ font-weight:700; text-decoration:underline; }

/* --- Развилка регистрации (join.html): клиент / водитель / гость --- */
.join-options{ display:flex; flex-direction:column; gap:10px; }
.join-option{
  display:flex; align-items:center; gap:14px; padding:14px 16px;
  background:var(--bg-soft); border:1.5px solid var(--border); border-radius:var(--r-lg);
  color:var(--text); transition:border-color .15s ease, transform .15s ease, background .15s ease;
}
.join-option:hover{ border-color:var(--red-500); transform:translateY(-2px); background:var(--surface-2); }
.join-option-icon{
  width:42px; height:42px; flex-shrink:0; border-radius:50%; background:var(--surface);
  display:flex; align-items:center; justify-content:center; color:var(--red-500);
}
.join-option-icon svg{ width:20px; height:20px; }
.join-option-text{ display:flex; flex-direction:column; gap:2px; }
.join-option-text b{ font-size:14.5px; font-family:var(--f-display); }
.join-option-text span{ font-size:12px; color:var(--text-soft); line-height:1.4; }
.join-option-guest{ opacity:.85; }
.join-option-guest:hover{ opacity:1; }

/* =========================================================================
   --- Аренда автомобилей (rent.html / rent-listing.html / rent-add.html) ---
   ========================================================================= */

/* Выбор автомобиля переиспользует .class-grid/.class-card с главной страницы
   один в один (те же карточки на прозрачном фоне, тот же drop-shadow) —
   отдельных стилей для этого блока не требуется, см. «Выбор класса
   автомобиля (главная страница)» выше в этом файле.

   Сетка объявлений аренды */
.rental-grid{ margin-top:20px; display:grid; gap:16px; grid-template-columns:1fr; }
@media (min-width:640px){ .rental-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:980px){ .rental-grid{ grid-template-columns:repeat(3,1fr); } }

.rental-card{ overflow:hidden; position:relative; display:flex; flex-direction:column; }
.rental-card .rc-cover{
  position:relative; aspect-ratio:4/3; background:var(--surface-2);
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.rental-card .rc-cover img{ width:100%; height:100%; object-fit:cover; transition:transform .5s var(--ease); }
.rental-card .rc-cover.contain img{ width:88%; height:88%; object-fit:contain; filter:drop-shadow(0 10px 14px rgba(0,0,0,.35)); }
.rental-card:hover .rc-cover img{ transform:scale(1.06); }
.rental-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-md); border-color:var(--border-strong); }
.rental-card .rc-body{ padding:15px; display:flex; flex-direction:column; gap:8px; flex:1; }
.rental-card .rc-title{ font-family:var(--f-display); font-weight:700; font-size:15px; }
.rental-card .rc-loc{ font-size:12px; color:var(--text-soft); display:flex; align-items:center; gap:5px; }
.rental-card .rc-loc svg{ width:13px; height:13px; }
.rental-card .rc-tags{ display:flex; gap:6px; flex-wrap:wrap; }
.rental-card .rc-foot{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:10px; padding-top:6px; }
.rental-card .rc-price b{ display:block; font-family:var(--f-display); font-size:17px; color:var(--red-500); }
.rental-card .rc-price span{ font-size:10.5px; color:var(--text-faint); }
.rental-card .rc-deposit{ font-size:11px; color:var(--text-soft); }
.example-badge{
  position:absolute; top:11px; left:11px; z-index:2; display:inline-flex; align-items:center; gap:4px;
  background:rgba(11,11,13,.72); color:#fff; font-size:10.5px; font-weight:800; letter-spacing:.03em; text-transform:uppercase;
  padding:5px 10px; border-radius:var(--r-pill); backdrop-filter:blur(4px);
}

/* Карточка объявления в разделе «Мои объявления» */
.rental-manage-card{ padding:14px; display:flex; gap:12px; align-items:center; }
.rental-manage-card .rm-thumb{ width:74px; height:56px; border-radius:var(--r-sm); overflow:hidden; background:var(--surface-2); flex-shrink:0; }
.rental-manage-card .rm-thumb img{ width:100%; height:100%; object-fit:cover; }
.rental-manage-card .rm-info{ flex:1; min-width:0; }
.rental-manage-card .rm-title{ font-weight:700; font-size:14px; }
.rental-manage-card .rm-meta{ font-size:12px; color:var(--text-soft); margin-top:2px; }
.rental-manage-card .rm-actions{ display:flex; gap:6px; flex-wrap:wrap; flex-shrink:0; }

/* Цена и залог на странице объявления */
.rental-price-box{ display:flex; gap:10px; flex-wrap:wrap; }
.rental-price-box .info-item{ flex:1; min-width:120px; }
.rental-price-box .info-item.accent{ background:rgba(225,31,40,.1); border:1px solid rgba(225,31,40,.25); }
.rental-price-box .info-item.accent b{ color:var(--red-600); }
.rental-price-box .info-item b{ font-size:18px; }
