/* ============================================================
   bd222 — Emerald Trust Gaming UI Design System
   Visual Style: Premium Bangladesh Gaming Platform
   ============================================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Colors */
  --color-primary: #0d6e3f;
  --color-primary-dark: #094e2c;
  --color-primary-soft: #e8f5ee;
  --color-secondary: #1a1a2e;
  --color-accent: #f5a623;
  --color-bg: #f7f8fa;
  --color-bg-soft: #eef1f5;
  --color-surface: #ffffff;
  --color-surface-strong: #f0f2f5;
  --color-card: #ffffff;
  --color-card-alt: #f8fafb;
  --color-border: #e2e6ea;
  --color-border-strong: #c8cdd3;
  --color-text: #1a1a2e;
  --color-text-soft: #4a5568;
  --color-text-muted: #8a94a6;
  --color-success: #28a745;
  --color-warning: #f5a623;
  --color-danger: #dc3545;
  --color-footer-bg: #111827;
  --color-footer-text: #c9d1d9;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #0d6e3f 0%, #1a1a2e 100%);
  --gradient-hero-soft: linear-gradient(135deg, #e8f5ee 0%, #eef1f5 100%);
  --gradient-button: linear-gradient(135deg, #0d6e3f 0%, #28a745 100%);
  --gradient-button-hover: linear-gradient(135deg, #094e2c 0%, #1e8e3e 100%);
  --gradient-cta: linear-gradient(135deg, #f5a623 0%, #e8960f 100%);
  --gradient-footer: linear-gradient(180deg, #111827 0%, #0a0e17 100%);

  /* Shadows */
  --shadow-header: 0 2px 12px rgba(0,0,0,.08);
  --shadow-card: 0 2px 8px rgba(0,0,0,.06);
  --shadow-card-hover: 0 8px 24px rgba(0,0,0,.12);
  --shadow-button: 0 2px 6px rgba(13,110,63,.2);
  --shadow-soft: 0 1px 3px rgba(0,0,0,.04);
  --shadow-menu: 0 8px 32px rgba(0,0,0,.18);

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --radius-card: 14px;

  /* Typography */
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: var(--font-base);
  --fs-h1: clamp(28px, 4vw, 48px);
  --fs-h2: clamp(22px, 3vw, 36px);
  --fs-h3: clamp(18px, 2vw, 24px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-nav: clamp(13px, .84vw, 15px);
  --fs-button: 15px;
  --lh-heading: 1.25;
  --lh-body: 1.75;

  /* Spacing */
  --container-max: 1200px;
  --container-wide: 1400px;
  --container-narrow: 820px;
  --section-y: clamp(48px, 6vw, 80px);
  --section-y-sm: clamp(32px, 4vw, 56px);
  --gap-xs: 6px;
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 32px;
  --gap-xl: 48px;
  --header-h: 72px;
  --mobile-header-h: 60px;
  --card-padding: clamp(16px, 2vw, 28px);

  /* Motion */
  --motion-fast: .15s;
  --motion-normal: .25s;
  --motion-slow: .4s;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--motion-fast); }
a:hover { color: var(--color-primary-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-header);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  width: 100%;
  max-width: none;
  padding-left: clamp(10px, 1.2vw, 20px);
  padding-right: clamp(10px, 1.2vw, 20px);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(10px, 1vw, 18px);
}

.brand-wrap {
  flex: 0 0 auto;
  margin-right: clamp(4px, .8vw, 14px);
  display: flex;
  align-items: center;
}

.site-logo {
  display: block;
  width: auto;
  height: clamp(32px, 3vw, 42px);
  max-width: clamp(118px, 10vw, 168px);
  object-fit: contain;
}

.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(6px, .72vw, 14px);
  white-space: nowrap;
  overflow: visible;
}

.primary-nav a {
  flex: 0 1 auto;
  min-width: 0;
  padding: 9px clamp(6px, .65vw, 12px);
  font-size: var(--fs-nav);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: color var(--motion-fast), background var(--motion-fast);
}

.primary-nav a:hover {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.primary-nav a.active {
  color: var(--color-primary);
  font-weight: 600;
  background: var(--color-primary-soft);
}

.header-actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px, .6vw, 10px);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--motion-fast);
}

.nav-toggle:hover { background: var(--color-bg-soft); }

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--motion-normal) var(--ease-out), opacity var(--motion-fast);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 12px;
  right: 12px;
  max-height: calc(100vh - var(--header-h) - 24px);
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-menu);
  z-index: 999;
  padding: 12px;
}

.mobile-menu.is-open { display: block; }

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-menu-inner a {
  display: block;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: background var(--motion-fast);
}

.mobile-menu-inner a:hover { background: var(--color-primary-soft); color: var(--color-primary); }

/* ============================================================
   HERO
   ============================================================ */
.home-hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: clamp(48px, 8vw, 96px) 0;
  position: relative;
  overflow: hidden;
}

.home-hero .hero-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--gap-xl);
  align-items: center;
}

.home-hero h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  font-weight: 700;
  margin-bottom: 16px;
  grid-column: 1;
}

.hero-lead {
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.7;
  opacity: .92;
  margin-bottom: 24px;
  grid-column: 1;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  grid-column: 1;
}

.hero-trust {
  font-size: 13px;
  opacity: .7;
  margin-top: 16px;
  grid-column: 1;
}

.hero-visual {
  grid-column: 2;
  grid-row: 1 / span 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
  max-height: 380px;
  object-fit: cover;
}

/* Page-level hero variants */
.page-intro {
  background: var(--gradient-hero-soft);
  padding: var(--section-y-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.page-intro h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  font-weight: 700;
  color: var(--color-text);
}

.page-lead {
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.7;
  color: var(--color-text-soft);
  margin-top: 12px;
  max-width: var(--container-narrow);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: var(--fs-button);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--motion-normal) var(--ease-out);
  white-space: nowrap;
  min-height: 44px;
}

.btn-primary {
  background: var(--gradient-button);
  color: #fff;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  background: var(--gradient-button-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13,110,63,.3);
}

.btn-secondary {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
}

.btn-secondary:hover {
  background: rgba(255,255,255,.25);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-block { width: 100%; }

/* ============================================================
   SECTIONS & CONTENT
   ============================================================ */
.content-section, .home-trust-strip, .home-feature-grid,
.home-guide-panel, .home-safety-section, .home-promo-highlight,
.home-mobile-section, .home-payment-section, .home-community-section,
.home-final-cta, .related-pages, .related-articles {
  padding: var(--section-y) 0;
}

.alt-bg { background: var(--color-bg-soft); }

.content-section h2, [data-seo-body] h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 18px;
}

.content-section h3, [data-seo-body] h3 {
  font-size: var(--fs-h3);
  line-height: 1.35;
  font-weight: 600;
  color: var(--color-text);
  margin: 28px 0 12px;
}

.content-section p, [data-seo-body] p {
  font-size: 16px;
  line-height: var(--lh-body);
  color: var(--color-text-soft);
  margin-bottom: 16px;
  max-width: var(--container-narrow);
}

.content-section ul, [data-seo-body] ul {
  margin: 12px 0 20px 0;
  padding-left: 0;
}

.content-section li, [data-seo-body] li {
  position: relative;
  padding: 8px 0 8px 24px;
  line-height: 1.6;
  color: var(--color-text-soft);
}

.content-section li::before, [data-seo-body] li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

.content-img {
  border-radius: var(--radius-lg);
  margin: 24px 0;
  box-shadow: var(--shadow-card);
}

/* Content with image layout */
.content-with-image {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--gap-xl);
  align-items: start;
}

.content-with-image.reverse { grid-template-columns: .9fr 1.1fr; }
.content-with-image.reverse .image-block { order: -1; }

.image-block img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  width: 100%;
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap-lg);
  margin-top: 28px;
}

.feature-card {
  background: var(--color-card);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--motion-normal), transform var(--motion-normal);
}

.feature-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 10px;
}

.feature-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-soft);
  margin-bottom: 16px;
}

.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

.card-link:hover { text-decoration: underline; }

/* ============================================================
   FAQ
   ============================================================ */
.home-faq, .page-faq { padding: var(--section-y) 0; background: var(--color-bg-soft); }

.home-faq h2,
.page-faq h2 {
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.faq-list {
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  background: var(--color-surface);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 48px 18px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
  transition: color var(--motion-fast);
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--color-text-muted);
  transition: transform var(--motion-normal);
}

.faq-question[aria-expanded="true"]::after {
  content: '−';
  transform: translateY(-50%);
}

.faq-question:hover { color: var(--color-primary); }

.faq-answer {
  display: none;
  padding: 0 20px 18px;
}

.faq-answer.is-open { display: block; }

.faq-answer p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-soft);
}

/* ============================================================
   FORMS & AUTH
   ============================================================ */
.auth-layout { padding: var(--section-y) 0; }

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: start;
}

.auth-form-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: var(--gap-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.auth-form-card h2 { margin-bottom: 8px; }

.auth-info-panel {
  padding: var(--gap-lg);
}

.auth-info-panel h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}

.auth-benefits {
  padding-left: 0;
}

.auth-benefits li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--color-text-soft);
  font-size: 15px;
}

.auth-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.auth-security-note {
  margin-top: 28px;
  padding: 20px;
  background: var(--color-primary-soft);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
}

.auth-security-note p { margin-bottom: 0; }

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast);
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13,110,63,.12);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-check input[type="checkbox"] { margin-top: 4px; flex-shrink: 0; }
.form-check label { font-size: 13px; font-weight: 400; }

.auth-switch { margin-top: 16px; font-size: 14px; color: var(--color-text-muted); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding: 14px 0;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: clamp(16px, 3vw, 32px);
  padding-right: clamp(16px, 3vw, 32px);
}

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumb li { font-size: 13px; color: var(--color-text-muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; }
.breadcrumb a { color: var(--color-primary); }

/* ============================================================
   ARTICLE
   ============================================================ */
.article-container { max-width: var(--container-narrow); }

.article-meta-bar {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 14px 0 20px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 28px;
}

.article-body p { max-width: none; }
.article-body h2 { margin-top: 36px; }

.article-img {
  border-radius: var(--radius-lg);
  margin: 24px 0;
  box-shadow: var(--shadow-card);
}

.article-lead {
  font-size: 18px !important;
  line-height: 1.7;
  color: var(--color-text) !important;
}

.article-footer-nav {
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
  margin-top: 36px;
}

.back-to-blog { font-weight: 600; }

.article-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 20px;
  background: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.card-img { border-radius: var(--radius-md); object-fit: cover; width: 100%; height: 180px; }

.article-card h3 { font-size: 20px; margin-bottom: 8px; }
.article-meta { font-size: 13px; color: var(--color-text-muted); margin-bottom: 10px; }
.read-more { font-size: 14px; font-weight: 600; color: var(--color-primary); }

/* ============================================================
   POLICY PAGE
   ============================================================ */
.policy-body { background: var(--color-surface); }
.policy-body p { max-width: none; }
.policy-updated {
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 8px 16px;
  background: var(--color-bg-soft);
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 20px;
}

/* ============================================================
   CTA SECTIONS
   ============================================================ */
.home-final-cta {
  background: var(--gradient-hero);
  color: #fff;
  text-align: center;
}

.home-final-cta h2 { color: #fff; }
.home-final-cta p { color: rgba(255,255,255,.88); max-width: 700px; margin-left: auto; margin-right: auto; }

.cta-buttons { display: flex; gap: 16px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gradient-footer);
  color: var(--color-footer-text);
  padding: clamp(40px, 6vw, 72px) 0 0;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--gap-lg);
}

.footer-logo { margin-bottom: 16px; filter: brightness(1.2); }

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-footer-text);
  max-width: 320px;
}

.footer-links-group h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links-group ul { list-style: none; }

.footer-links-group li { margin-bottom: 8px; }

.footer-links-group a {
  color: var(--color-footer-text);
  font-size: 14px;
  transition: color var(--motion-fast);
}

.footer-links-group a:hover { color: #fff; }

.footer-bottom {
  margin-top: var(--gap-xl);
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}

.footer-safety {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,.5);
  margin-bottom: 12px;
}

.footer-safety strong { color: var(--color-accent); }

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,.4);
}

/* ============================================================
   ERROR PAGE
   ============================================================ */
.error-section {
  padding: 120px 0;
  text-align: center;
}

.error-section h1 { margin-bottom: 16px; }
.error-section p { margin-bottom: 28px; color: var(--color-text-soft); }

/* ============================================================
   SWIPER DEGRADATION
   ============================================================ */
.swiper:not(.swiper-initialized) {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 16px;
}

.swiper:not(.swiper-initialized) .swiper-slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* AOS Degradation - ensure content visible without JS */
[data-aos] { opacity: 1 !important; transform: none !important; }
.aos-animate[data-aos] { opacity: 1; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1180px) {
  .primary-nav { display: none; }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-left: 2px;
  }

  .header-inner {
    width: 100%;
    max-width: none;
    padding-left: clamp(8px, 2.4vw, 14px);
    padding-right: clamp(8px, 2.4vw, 14px);
    justify-content: flex-start;
    gap: clamp(6px, 1.8vw, 10px);
    min-height: var(--mobile-header-h);
  }

  .brand-wrap {
    flex: 0 1 auto;
    margin-right: 0;
  }

  .site-logo {
    height: clamp(30px, 8vw, 40px);
    max-width: clamp(104px, 27vw, 138px);
  }

  .header-actions {
    margin-left: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: clamp(5px, 1.6vw, 8px);
  }

  .mobile-menu { top: var(--mobile-header-h); }
}

@media (max-width: 900px) {
  .home-hero .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual { grid-column: 1; grid-row: auto; margin-top: 24px; }
  .hero-cta-group { justify-content: center; }

  .content-with-image, .content-with-image.reverse {
    grid-template-columns: 1fr;
  }

  .content-with-image.reverse .image-block { order: 0; }

  .auth-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--gap-lg); }

  .article-card { grid-template-columns: 1fr; }
  .card-img { height: 200px; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 640px) {
  .feature-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; max-width: 320px; }
}

@media (max-width: 414px) {
  body { font-size: 15px; }
  .container { padding: 0 14px; }

  :root {
    --section-y: 40px;
    --section-y-sm: 28px;
    --fs-h1: 26px;
    --fs-h2: 22px;
  }
}

@media (max-width: 375px) {
  .header-inner {
    padding-left: 8px;
    padding-right: 8px;
    gap: 6px;
  }

  .site-logo { max-width: 104px; }

  .nav-toggle {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .container { padding: 0 12px; }
  .btn { padding: 11px 20px; font-size: 14px; }
}
