/* ============================================================
   Каршеринг Drive — справочный портал. Общие стили.
   Визуальный язык: сдержанный экспертный справочник.
   ============================================================ */

/* ---------- Tokens ---------- */
:root{
  --bg:        #F6F7F9;
  --surface:   #FFFFFF;
  --surface-2: #F1F3F7;
  --border:    #E7E9F0;
  --border-2:  #D7DBE6;

  --ink:   #10151D;   /* заголовки */
  --text:  #2B313C;   /* основной текст */
  --muted: #69727F;   /* вторичный */
  --faint: #97A0AE;

  --accent:      #2C5DF0;  /* нейтральный акцент портала */
  --accent-dark: #1E48CE;
  --accent-soft: #EAF0FE;
  --accent-line: #CBD9FB;

  --success: #16A75C;
  --success-soft: #E6F6EE;

  --warn-bg:  #FFF6E6;
  --warn-bd:  #F3D9A6;
  --warn-ink: #8A5800;

  /* бренды сервисов */
  --c-city:  #6A2BFF; --c-city-soft:  #F0EAFF;
  --c-yndx:  #111316; --c-yndx-acc:   #FFCD00; --c-yndx-soft:#FFF7D1;
  --c-deli:  #E11B5C; --c-deli-soft:  #FCE7EE;
  --c-belka: #FF6A13; --c-belka-soft: #FFEEDF;

  --r-xs: 8px; --r-sm: 11px; --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --pill: 999px;

  --shadow-xs: 0 1px 2px rgba(16,21,29,.05);
  --shadow-sm: 0 2px 8px rgba(16,21,29,.06);
  --shadow-md: 0 8px 26px rgba(16,21,29,.09);
  --shadow-lg: 0 20px 50px rgba(16,21,29,.13);

  --maxw: 1200px;
  --gut: 24px;

  --font-display: "Onest", system-ui, sans-serif;
  --font-text: "Golos Text", system-ui, sans-serif;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:108px; }
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--font-text);
  font-size:17px; line-height:1.65;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color:var(--accent); text-decoration:none; }
a:hover{ color:var(--accent-dark); }

h1,h2,h3,h4{ font-family:var(--font-display); color:var(--ink); margin:0; line-height:1.12; letter-spacing:-.01em; font-weight:700; }
h1{ font-size:clamp(34px,4.8vw,52px); font-weight:800; }
h2{ font-size:clamp(26px,3.1vw,34px); }
h3{ font-size:21px; }
p{ margin:0 0 1em; text-wrap:pretty; }

.container{ max-width:var(--maxw); margin:0 auto; padding:0 var(--gut); }
.narrow{ max-width:760px; }
section{ scroll-margin-top:108px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:9px; justify-content:center;
  font-family:var(--font-text); font-weight:600; font-size:16px;
  padding:13px 22px; border-radius:var(--r-sm); border:1px solid transparent;
  cursor:pointer; transition:.15s ease; white-space:nowrap; line-height:1;
}
.btn svg{ width:18px; height:18px; }
.btn-primary{ background:var(--accent); color:#fff; }
.btn-primary:hover{ background:var(--accent-dark); color:#fff; box-shadow:var(--shadow-sm); }
.btn-ghost{ background:var(--surface); color:var(--ink); border-color:var(--border-2); }
.btn-ghost:hover{ border-color:var(--accent); color:var(--accent); }
.btn-dark{ background:var(--ink); color:#fff; }
.btn-dark:hover{ background:#000; color:#fff; }
.btn-sm{ padding:9px 15px; font-size:14px; border-radius:var(--r-xs); }
.btn-lg{ padding:16px 28px; font-size:17px; }
.btn-block{ width:100%; }

/* ---------- Tags / pills ---------- */
.pill{
  display:inline-flex; align-items:center; gap:7px;
  padding:7px 14px; border-radius:var(--pill); font-size:14px; font-weight:500;
  background:var(--surface); border:1px solid var(--border); color:var(--text);
  transition:.15s;
}
a.pill:hover{ border-color:var(--accent); color:var(--accent); background:var(--accent-soft); }
.tag{
  display:inline-flex; align-items:center; gap:6px; padding:4px 11px;
  border-radius:var(--pill); font-size:12.5px; font-weight:600; letter-spacing:.01em;
}
.tag-soft{ background:var(--accent-soft); color:var(--accent-dark); }
.tag-success{ background:var(--success-soft); color:var(--success); }
.eyebrow{
  font-family:var(--font-text); font-weight:700; font-size:13px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--accent); margin:0 0 12px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position:sticky; top:0; z-index:60; background:rgba(255,255,255,.86);
  backdrop-filter:saturate(140%) blur(12px); border-bottom:1px solid var(--border);
}
.header-inner{ display:flex; align-items:center; gap:22px; height:72px; }
.brand{ display:flex; align-items:center; gap:11px; flex-shrink:0; }
.brand-mark{ width:38px; height:38px; flex-shrink:0; }
.brand-name{ font-family:var(--font-display); font-weight:800; font-size:19px; color:var(--ink); letter-spacing:-.02em; line-height:1; }
.brand-name span{ color:var(--accent); }
.brand-tld{ display:block; font-family:var(--font-text); font-weight:500; font-size:11px; color:var(--faint); letter-spacing:.04em; margin-top:3px; }

.main-nav{ display:flex; align-items:center; gap:4px; margin-left:6px; }
.nav-item{ position:relative; }
.nav-link{
  display:inline-flex; align-items:center; gap:5px; padding:9px 13px; border-radius:var(--r-xs);
  color:var(--text); font-weight:600; font-size:15.5px; cursor:pointer; transition:.13s;
}
.nav-link:hover{ background:var(--surface-2); color:var(--ink); }
.nav-link svg{ width:15px; height:15px; opacity:.55; transition:transform .18s; }
.nav-item.open .nav-link svg{ transform:rotate(180deg); }
.nav-item.open .nav-link{ background:var(--surface-2); color:var(--ink); }

.mega{
  position:absolute; top:calc(100% + 12px); left:50%; transform:translateX(-50%) translateY(6px);
  width:560px; background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  box-shadow:var(--shadow-lg); padding:14px; opacity:0; visibility:hidden; transition:.18s;
}
.nav-item.open .mega{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.mega-grid{ display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.mega-card{ display:flex; gap:12px; align-items:center; padding:12px; border-radius:var(--r); transition:.13s; }
.mega-card:hover{ background:var(--surface-2); }
.svc-badge{
  width:42px; height:42px; border-radius:11px; flex-shrink:0; display:grid; place-items:center;
  font-family:var(--font-display); font-weight:800; font-size:20px; color:#fff;
}
.svc-badge.city{ background:var(--c-city); }
.svc-badge.yndx{ background:var(--c-yndx-acc); color:var(--c-yndx); }
.svc-badge.deli{ background:var(--c-deli); }
.svc-badge.belka{ background:var(--c-belka); }
.mega-card b{ display:block; color:var(--ink); font-size:15.5px; font-family:var(--font-text); }
.mega-card small{ color:var(--muted); font-size:13px; }
.mega-foot{ display:flex; justify-content:space-between; align-items:center; margin-top:10px; padding:12px 12px 4px; border-top:1px solid var(--border); }
.mega-foot a{ font-weight:600; font-size:14.5px; }

.header-search{
  margin-left:auto; display:flex; align-items:center; gap:9px; flex:0 1 280px;
  background:var(--surface-2); border:1px solid var(--border); border-radius:var(--pill);
  padding:10px 16px; color:var(--muted); transition:.15s; cursor:text;
}
.header-search:focus-within{ background:var(--surface); border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.header-search svg{ width:17px; height:17px; flex-shrink:0; }
.header-search input{ border:0; background:transparent; outline:none; font-family:var(--font-text); font-size:15px; color:var(--ink); width:100%; }
.header-search kbd{
  font-family:var(--font-text); font-size:11px; font-weight:600; color:var(--faint);
  border:1px solid var(--border-2); border-radius:5px; padding:2px 6px; background:var(--surface);
}
/* ---- Поиск: выпадающий список ---- */
.search-dropdown{
  position:absolute; top:calc(100% + 8px); left:0; right:0; z-index:80;
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-sm,14px); box-shadow:0 12px 40px rgba(16,24,40,.16);
  padding:6px; display:none; max-height:min(70vh,440px); overflow-y:auto;
}
.search-dropdown.open{ display:block; }
.hero-search .search-dropdown{ left:0; right:0; }
.search-item{
  display:flex; flex-direction:column; gap:2px; padding:10px 12px;
  border-radius:10px; text-decoration:none; color:var(--ink); transition:.12s;
}
.search-item:hover, .search-item.active{ background:var(--surface-2); }
.search-item .search-cat{
  font-size:11px; font-weight:600; letter-spacing:.02em; text-transform:uppercase;
  color:var(--accent);
}
.search-item .search-title{ font-size:15px; font-weight:500; line-height:1.3; }
.search-item mark{ background:var(--accent-soft); color:var(--accent); padding:0 1px; border-radius:3px; }
.search-empty{ padding:16px; text-align:center; color:var(--muted); font-size:14px; }

.burger{ display:none; margin-left:auto; width:42px; height:42px; border:1px solid var(--border-2); background:var(--surface); border-radius:var(--r-xs); cursor:pointer; }
.burger span{ display:block; width:18px; height:2px; background:var(--ink); margin:3px auto; border-radius:2px; }

/* mobile drawer */
.mobile-menu{ display:none; }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.crumbs{ padding:18px 0 2px; font-size:13.5px; color:var(--muted); }
.crumbs ol{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.crumbs li{ display:flex; align-items:center; gap:8px; }
.crumbs li::after{ content:"/"; color:var(--faint); }
.crumbs li:last-child::after{ content:""; }
.crumbs a{ color:var(--muted); }
.crumbs a:hover{ color:var(--accent); }
.crumbs li:last-child span{ color:var(--text); font-weight:600; }

/* ============================================================
   CARDS / GENERIC
   ============================================================ */
.card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg); }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:26px; }
.section-head p{ color:var(--muted); margin:8px 0 0; font-size:16px; max-width:620px; }
.section-link{ font-weight:600; font-size:15px; white-space:nowrap; display:inline-flex; align-items:center; gap:6px; }
.section-pad{ padding:64px 0; }
.section-pad-sm{ padding:44px 0; }
.bg-soft{ background:var(--surface-2); }

/* summary / answer box (AEO) */
.answer{
  background:var(--accent-soft); border:1px solid var(--accent-line); border-radius:var(--r);
  padding:20px 22px; display:flex; gap:14px; align-items:flex-start;
}
.answer .ic{ width:24px; height:24px; flex-shrink:0; color:var(--accent); margin-top:2px; }
.answer b{ color:var(--ink); }
.answer p{ margin:0; }
.answer p+p{ margin-top:.5em; }

/* updated / editorial meta */
.meta-row{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; color:var(--muted); font-size:14px; }
.meta-row .dot{ width:4px; height:4px; border-radius:50%; background:var(--border-2); }
.meta-chip{ display:inline-flex; align-items:center; gap:7px; }
.meta-chip svg{ width:16px; height:16px; opacity:.7; }
.verified{ color:var(--success); font-weight:600; }

/* disclaimer */
.disclaimer{
  display:flex; gap:13px; align-items:flex-start; background:var(--warn-bg); border:1px solid var(--warn-bd);
  border-radius:var(--r); padding:16px 18px; color:var(--warn-ink); font-size:14.5px; line-height:1.55;
}
.disclaimer svg{ width:20px; height:20px; flex-shrink:0; margin-top:1px; }
.disclaimer b{ color:var(--warn-ink); }

/* ---------- FAQ accordion ---------- */
.faq{ border-top:1px solid var(--border); }
.faq-item{ border-bottom:1px solid var(--border); }
.faq-q{
  width:100%; text-align:left; background:none; border:0; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center; gap:20px;
  padding:22px 4px; font-family:var(--font-display); font-weight:700; font-size:18px; color:var(--ink);
}
.faq-q .pm{ width:26px; height:26px; flex-shrink:0; position:relative; }
.faq-q .pm::before,.faq-q .pm::after{ content:""; position:absolute; background:var(--accent); border-radius:2px; transition:.2s; }
.faq-q .pm::before{ left:5px; right:5px; top:12px; height:2px; }
.faq-q .pm::after{ top:5px; bottom:5px; left:12px; width:2px; }
.faq-item.open .pm::after{ transform:scaleY(0); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .28s ease; }
.faq-a .inner{ padding:0 4px 24px; color:var(--text); max-width:780px; }
.faq-a p{ margin:0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{ background:var(--ink); color:#C4CBD6; margin-top:72px; }
.footer-top{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:36px; padding:56px 0 44px; }
.footer-brand .brand-name{ color:#fff; }
.footer-brand .brand-name span{ color:#6E97FF; }
.footer-about{ color:#8C95A4; font-size:14.5px; margin:16px 0 0; max-width:300px; line-height:1.6; }
.footer-col h4{ color:#fff; font-size:14px; font-family:var(--font-text); letter-spacing:.04em; text-transform:uppercase; margin:0 0 16px; }
.footer-col ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:11px; }
.footer-col a{ color:#AEB6C2; font-size:15px; }
.footer-col a:hover{ color:#fff; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.1); padding:22px 0; display:flex; flex-wrap:wrap; justify-content:space-between; gap:14px; align-items:center; font-size:13px; color:#7C8593; }
.footer-bottom .legal-note{ max-width:680px; line-height:1.5; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1080px){
  .header-search{ flex-basis:200px; }
}
@media (max-width:900px){
  body{ font-size:16px; }
  .main-nav, .header-search{ display:none; }
  .burger{ display:block; }
  .footer-top{ grid-template-columns:1fr 1fr; gap:32px 24px; }
  .footer-brand{ grid-column:1 / -1; }
  .section-pad{ padding:48px 0; }
  .section-head{ flex-direction:column; align-items:flex-start; gap:6px; }
}
@media (max-width:560px){
  :root{ --gut:16px; }
  .footer-top{ grid-template-columns:1fr; }
  .btn{ font-size:15px; }
}

/* mobile menu open */
body.menu-open{ overflow:hidden; }
.mobile-menu{
  position:fixed; inset:0; z-index:80; background:var(--surface);
  transform:translateX(100%); transition:transform .25s ease; padding:18px; overflow:auto;
  display:flex; flex-direction:column; gap:6px;
}
body.menu-open .mobile-menu{ display:flex; transform:translateX(0); }
.mm-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.mm-close{ width:42px; height:42px; border:1px solid var(--border-2); background:var(--surface); border-radius:var(--r-xs); font-size:22px; cursor:pointer; color:var(--ink); }
.mm-search{ display:flex; gap:9px; align-items:center; background:var(--surface-2); border:1px solid var(--border); border-radius:var(--pill); padding:12px 16px; margin-bottom:10px; color:var(--muted); }
.mm-search svg{ width:18px; height:18px; }
.mm-search input{ border:0; background:transparent; outline:none; width:100%; font-family:var(--font-text); font-size:16px; }
.mm-link{ padding:14px 12px; border-radius:var(--r-xs); font-weight:600; font-size:17px; color:var(--ink); border-bottom:1px solid var(--border); }
.mm-sub{ display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:8px 0 14px; }
