/* Главная — секционные стили */

/* ---- HERO ---- */
.hero{ background:linear-gradient(180deg,#fff 0%, var(--bg) 100%); padding:46px 0 56px; border-bottom:1px solid var(--border); }
.hero-grid{ display:grid; grid-template-columns:1.35fr .9fr; gap:48px; align-items:start; }
.hero-copy h1{ margin:16px 0 0; }
.hero-sub{ font-size:19px; color:var(--muted); margin:18px 0 26px; max-width:560px; }

.hero-search{
  display:flex; align-items:center; gap:10px; background:var(--surface);
  border:1.5px solid var(--border-2); border-radius:var(--pill); padding:7px 7px 7px 20px; max-width:580px;
  box-shadow:var(--shadow-sm); transition:.15s;
}
.hero-search:focus-within{ border-color:var(--accent); box-shadow:0 0 0 4px var(--accent-soft); }
.hero-search svg{ width:20px; height:20px; color:var(--muted); flex-shrink:0; }
.hero-search input{ border:0; background:transparent; outline:none; flex:1; font-family:var(--font-text); font-size:16px; color:var(--ink); min-width:0; }
.hero-search .btn{ flex-shrink:0; }

.hero-chips{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:22px; }
.hero-chips-label{ color:var(--muted); font-size:14px; font-weight:600; }

.hero-answer{ padding:24px; box-shadow:var(--shadow-md); }
.hero-facts{ list-style:none; margin:20px 0 0; padding:18px 0 0; border-top:1px solid var(--border); display:flex; gap:10px; }
.hero-facts li{ flex:1; display:flex; flex-direction:column; gap:3px; }
.hero-facts b{ font-family:var(--font-display); font-size:24px; color:var(--ink); font-weight:800; }
.hero-facts span{ font-size:12.5px; color:var(--muted); line-height:1.3; }

/* ---- SERVICE CARDS ---- */
.svc-cards{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.svc-card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-lg);
  padding:22px; display:flex; flex-direction:column; gap:18px; transition:.18s; position:relative; overflow:hidden;
  color:var(--text);
}
.svc-card::before{ content:""; position:absolute; inset:0 0 auto 0; height:4px; background:var(--bc); }
.svc-card[data-brand=deli]{ --bc:var(--c-deli); }
.svc-card[data-brand=yndx]{ --bc:var(--c-yndx-acc); }
.svc-card[data-brand=city]{ --bc:var(--c-city); }
.svc-card[data-brand=belka]{ --bc:var(--c-belka); }
.svc-card:hover{ border-color:var(--bc); box-shadow:var(--shadow-md); transform:translateY(-3px); }
.svc-card-top{ display:flex; align-items:center; gap:12px; }
.svc-card-name{ font-family:var(--font-display); font-weight:700; font-size:19px; color:var(--ink); }
.svc-card-facts{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:11px; flex:1; }
.svc-card-facts li{ display:flex; justify-content:space-between; align-items:baseline; gap:10px; font-size:14.5px; border-bottom:1px dashed var(--border); padding-bottom:10px; }
.svc-card-facts li:last-child{ border-bottom:0; padding-bottom:0; }
.svc-card-facts span{ color:var(--muted); }
.svc-card-facts b{ color:var(--ink); font-weight:600; text-align:right; }
.svc-card-cta{ display:inline-flex; align-items:center; gap:7px; font-weight:600; color:var(--bc); font-size:15px; }
.svc-card[data-brand=yndx] .svc-card-cta{ color:#caa400; }
.svc-card-cta svg{ width:18px; height:18px; transition:transform .18s; }
.svc-card:hover .svc-card-cta svg{ transform:translateX(4px); }

/* ---- COMPARE TABLE ---- */
.table-wrap{ overflow-x:auto; border:1px solid var(--border); border-radius:var(--r-lg); background:var(--surface); box-shadow:var(--shadow-sm); }
.compare{ width:100%; border-collapse:collapse; min-width:760px; }
.compare th, .compare td{ padding:16px 18px; text-align:center; border-bottom:1px solid var(--border); font-size:15px; transition:background .12s; }
.compare thead th{ position:sticky; top:0; }
.compare thead th{ font-family:var(--font-text); font-weight:700; color:var(--ink); font-size:15px; vertical-align:bottom; }
.compare thead th .svc-badge{ width:30px; height:30px; font-size:15px; border-radius:8px; margin:0 auto 8px; }
.compare .row-label{ text-align:left; color:var(--muted); font-weight:600; font-family:var(--font-text); }
.compare td{ color:var(--text); }
.compare tbody tr:last-child td, .compare tbody tr:last-child th{ border-bottom:0; }
.compare .yes{ color:var(--success); font-style:normal; font-weight:700; font-size:17px; }
.compare .no{ color:var(--faint); font-style:normal; }
.compare .col-hot{ background:var(--accent-soft); }
.compare thead th.col-hot{ background:var(--accent-soft); }
.row-cta td{ padding-top:18px; padding-bottom:18px; }

/* ---- SCENARIOS ---- */
.scenario-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.scenario{ padding:24px; color:var(--text); transition:.18s; display:flex; flex-direction:column; gap:6px; }
.scenario:hover{ border-color:var(--accent); box-shadow:var(--shadow-md); transform:translateY(-3px); }
.scenario-ic{ font-size:30px; line-height:1; margin-bottom:8px; }
.scenario h3{ margin-bottom:2px; }
.scenario p{ color:var(--muted); font-size:14.5px; margin:0 0 14px; flex:1; }

/* ---- TOPICS ---- */
.topic-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.topic{ display:flex; gap:14px; align-items:center; background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:18px; color:var(--text); transition:.15s; }
.topic:hover{ border-color:var(--accent); box-shadow:var(--shadow-sm); }
.topic-ic{ width:44px; height:44px; flex-shrink:0; border-radius:11px; background:var(--accent-soft); color:var(--accent-dark); display:grid; place-items:center; font-size:20px; font-weight:700; }
.topic b{ display:block; color:var(--ink); font-size:16px; }
.topic small{ color:var(--muted); font-size:13.5px; }

/* ---- CITIES ---- */
.city-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.city-chip{ background:var(--surface); border:1px solid var(--border); border-radius:var(--r); padding:18px 20px; color:var(--text); transition:.15s; }
.city-chip:hover{ border-color:var(--accent); box-shadow:var(--shadow-sm); }
.city-chip b{ display:block; color:var(--ink); font-size:17px; font-family:var(--font-display); }
.city-chip span{ color:var(--muted); font-size:13.5px; }
.city-chip.more{ display:grid; place-items:center; background:var(--accent-soft); border-color:var(--accent-line); }
.city-chip.more b{ color:var(--accent-dark); }

/* ---- RESPONSIVE ---- */
@media (max-width:980px){
  .hero-grid{ grid-template-columns:1fr; gap:32px; }
  .svc-cards{ grid-template-columns:1fr 1fr; }
  .scenario-grid{ grid-template-columns:1fr 1fr; }
  .topic-grid{ grid-template-columns:1fr 1fr; }
  .city-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:560px){
  .hero-sub{ font-size:17px; }
  .hero-search{ flex-wrap:wrap; border-radius:var(--r); padding:14px; }
  .hero-search .btn{ width:100%; }
  .svc-cards{ grid-template-columns:1fr; }
  .scenario-grid{ grid-template-columns:1fr; }
  .topic-grid{ grid-template-columns:1fr; }
  .city-grid{ grid-template-columns:1fr 1fr; }
  .hero-facts{ flex-direction:column; gap:14px; }
  .hero-facts li{ flex-direction:row; justify-content:space-between; align-items:center; }
}
