.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.header-inner,
.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand strong,
.site-footer strong {
    display: block;
    color: var(--text);
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.site-nav {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.nav-badge {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--success-soft);
    color: var(--success);
    font-weight: 700;
}

.nav-cta {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    box-shadow: none;
}

.theme-toggle-icon,
.theme-toggle-label {
    color: inherit;
}

.hero {
    padding: 72px 0 40px;
}

.hero-grid,
.converter-layout,
.stats,
.link-grid,
.selector-grid,
.footer-grid {
    display: grid;
    gap: 18px;
}

.hero-grid,
.converter-layout {
    grid-template-columns: 1.2fr 0.8fr;
}

.selector-grid,
.stats,
.link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-actions,
.hero-badges,
.locale-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.section {
    padding: 28px 0 44px;
}

.section-alt {
    background: var(--bg-soft);
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 20px;
}

.route-card,
.stat-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-soft);
}

.route-type {
    display: block;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
}

.route-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.route-list a {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-soft);
}

.site-footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--line);
}

.site-footer a {
    display: block;
    margin-top: 8px;
}

@media (max-width: 920px) {
    .hero-grid,
    .converter-layout,
    .selector-grid,
    .stats,
    .link-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .theme-toggle-label {
        display: none;
    }
}
/* Compact header for mobile */
@media (max-width: 600px) {
  /* 1. Reduce header height */
  .header-inner {
    padding: 8px 0;      /* was 18px 0 */
    gap: 12px;           /* was 24px */
  }

  /* 2. Shrink logo and brand text */
  .brand {
    gap: 8px;           /* was 14px */
  }

  .brand-mark {
    width: 32px;        /* was 44px */
    height: 32px;
    border-radius: 10px;
    font-size: 0.8rem;  /* optional */
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    font-size: 0.75rem;
  }

  /* 3. Tighten nav spacing and buttons */
  .site-nav {
    gap: 8px;          /* was 14px */
  }

  .nav-badge {
    padding: 4px 8px;  /* was 8px 12px */
    font-size: 0.75rem;
  }

  .nav-cta,
  .theme-toggle {
    padding: 6px 10px; /* was 10px 14px */
    font-size: 0.8rem;
  }

  .theme-toggle {
    gap: 4px;          /* was 8px */
  }
}

