/* Responsive layer — mobile nav below 1024px, multi-column grids above. */
@media (max-width: 1199.98px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(86vw, 340px); background: var(--bg); box-shadow: -10px 0 40px rgba(0,0,0,.2); padding: 5rem 1.2rem 2rem; transform: translateX(100%); transition: transform .22s ease; overflow-y: auto; z-index: 60; visibility: hidden; }
  .menu-open .nav { transform: none; visibility: visible; }
  .nav li a { display: block; padding: .8rem .2rem; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav-cta { margin-top: 1.2rem; width: 100%; justify-content: center; }
  .menu-btn { position: relative; z-index: 70; }
  .menu-open .site-header { z-index: 80; }
  .menu-open::before { content: ""; position: fixed; inset: 0; background: rgba(5,12,28,.45); z-index: 55; }
}
@media (max-width: 699.98px) {
  .rt thead { display: none; }
  .rt tr { display: block; border-bottom: 1px solid var(--line); padding: .5rem 0; }
  .rt td { display: block; border: 0; padding: .2rem .75rem; }
  .fare-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fare-table td:first-child { grid-column: 1 / -1; font-size: 1rem; }
  .fare-table td:first-child::before { display: none; }
  .fare-table td { text-align: left !important; white-space: normal !important; font-size: .9rem; }
  .fare-table .group-row { display: block; }
  .fare-table .group-row th { display: block; }
  .rt tbody tr:nth-child(even) td { background: transparent; }
  .rt td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--muted); font-size: .82rem; }
}
@media (min-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .kv { grid-template-columns: 180px 1fr; }
  .kv dt { margin-top: .5rem; }
  .kv dd { margin-top: .5rem; }
}
@media (min-width: 600px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .side-sticky { position: sticky; top: 84px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; }
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 999.98px) {
  .sidebar .ad-slot { display: none !important; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .form-grid.cols-4 { grid-template-columns: repeat(4, 1fr) auto; align-items: end; }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem; align-items: start; }
  .aside-sticky { position: sticky; top: 84px; }
  .hero { padding: 3.5rem 0 4rem; }
}
@media (min-width: 1200px) {
  .nav { display: flex; align-items: center; gap: 1rem; }
  .nav ul { display: flex; gap: .85rem; }
  .nav a { font-size: .88rem; white-space: nowrap; }
  .menu-btn { display: none; }
  .nav-cta { white-space: nowrap; }
  .nav-cta { padding: .5rem .8rem; }
  .nav ul { gap: .75rem; }
  .nav a { font-size: .86rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .topbar, .site-footer, .ad-slot, .toast, .search-panel { display: none !important; }
}
