/* ============================================================
   fd77 Design System – Emerald Trust Gaming UI
   Visual Style: Premium, Trust-focused, Bangladesh-optimized
   ============================================================ */

:root {
  /* Color Tokens */
  --color-primary: #0891b2;
  --color-primary-dark: #065a73;
  --color-primary-soft: #cff4fc;
  --color-secondary: #38bdf8;
  --color-accent: #06b6d4;
  --color-bg: #e8f4f8;
  --color-bg-soft: #f0f9ff;
  --color-surface: #ffffff;
  --color-surface-strong: #f7fcfe;
  --color-card: #ffffff;
  --color-card-alt: #f0faff;
  --color-border: #bde8f5;
  --color-border-strong: #7cc8de;
  --color-text: #0e2a3a;
  --color-text-soft: #2d5a74;
  --color-text-muted: #6b8fa3;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-footer-bg: #0c2d42;
  --color-footer-text: #a8d8ea;

  /* Gradient Tokens */
  --gradient-hero: linear-gradient(135deg, #065a73 0%, #0891b2 45%, #38bdf8 100%);
  --gradient-hero-soft: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  --gradient-button: linear-gradient(135deg, #06b6d4, #38bdf8);
  --gradient-button-hover: linear-gradient(135deg, #0891b2, #06b6d4);
  --gradient-cta: linear-gradient(90deg, #0891b2, #38bdf8);
  --gradient-footer: linear-gradient(135deg, #081e2e 0%, #0c3d5a 100%);
  --gradient-responsible: linear-gradient(135deg, #065a73 0%, #0891b2 100%);

  /* Shadow Tokens */
  --shadow-header: 0 2px 16px rgba(6,182,212,0.18);
  --shadow-card: 0 4px 20px rgba(6,182,212,0.1);
  --shadow-card-hover: 0 12px 36px rgba(6,182,212,0.2);
  --shadow-button: 0 4px 14px rgba(6,182,212,0.25);
  --shadow-soft: 0 2px 8px rgba(0,0,0,0.06);

  /* Radius Tokens */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 50px;
  --radius-card: 16px;

  /* Typography */
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Noto Sans Bengali", sans-serif;
  --fs-h1: clamp(1.75rem, 4vw, 2.5rem);
  --fs-h2: clamp(1.4rem, 3vw, 1.9rem);
  --fs-h3: clamp(1.1rem, 2vw, 1.35rem);
  --fs-body: 1.05rem;
  --fs-small: 0.92rem;
  --fs-nav: clamp(13px, 0.84vw, 15px);
  --lh-heading: 1.35;
  --lh-body: 1.85;

  /* Spacing */
  --container-max: 1200px;
  --section-y: clamp(48px, 6vw, 80px);
  --section-y-sm: clamp(32px, 4vw, 56px);
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 32px;
  --header-h: 72px;
  --mobile-header-h: 64px;

  /* Motion */
  --motion-fast: 0.15s;
  --motion-normal: 0.25s;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  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; }
h1, h2, h3, h4, h5, h6 { line-height: var(--lh-heading); font-weight: 700; color: var(--color-text); }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
}

/* ── FOCUS ── */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-surface);
  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, 0.8vw, 14px);
}
.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(4px, 0.6vw, 12px);
  white-space: nowrap;
  overflow: visible;
}
.primary-nav a {
  flex: 0 1 auto;
  min-width: 0;
  padding: 8px clamp(5px, 0.55vw, 10px);
  font-size: var(--fs-nav);
  line-height: 1;
  white-space: nowrap;
  color: var(--color-text-soft);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--motion-fast), color var(--motion-fast);
  text-decoration: none;
}
.primary-nav a:hover,
.primary-nav a.active {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}
.header-actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px, 0.6vw, 10px);
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all var(--motion-normal) var(--ease-out);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  min-height: 42px;
}
.btn-login {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-login:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn-register {
  background: var(--gradient-button);
  color: #fff;
  box-shadow: var(--shadow-button);
}
.btn-register:hover {
  background: var(--gradient-button-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6,182,212,0.3);
  color: #fff;
}
.btn-primary-hero {
  background: #fff;
  color: var(--color-primary-dark);
  font-weight: 700;
  padding: 14px 32px;
  font-size: 1.05rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
}
.btn-primary-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  color: var(--color-primary-dark);
}
.btn-outline-hero {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
  padding: 12px 28px;
  font-size: 1.05rem;
}
.btn-outline-hero:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}
.btn-cta {
  background: var(--gradient-button);
  color: #fff;
  padding: 12px 28px;
  font-weight: 700;
  box-shadow: var(--shadow-button);
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6,182,212,0.3);
  color: #fff;
}
.btn-light-cta {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  padding: 12px 28px;
  font-weight: 700;
}
.btn-light-cta:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* Nav Toggle (Mobile) */
.nav-toggle {
  display: none;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  margin-left: 2px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--motion-normal), opacity var(--motion-normal);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity var(--motion-normal);
}
.mobile-menu.is-open {
  display: block;
  opacity: 1;
}
.mobile-nav {
  background: var(--color-surface);
  max-height: calc(100vh - var(--header-h) - 20px);
  overflow-y: auto;
  margin: 10px;
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav a {
  display: block;
  padding: 14px 16px;
  color: var(--color-text);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--motion-fast);
  text-decoration: none;
}
.mobile-nav a:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: var(--fs-h2); color: var(--color-primary-dark); margin-bottom: 8px; }
.section-header p { color: var(--color-text-muted); font-size: 1.05rem; }
.section-header-light h2 { color: #fff; }
.section-header-light p { color: rgba(255,255,255,0.85); }
.divider-line {
  width: 56px;
  height: 4px;
  background: var(--gradient-button);
  border-radius: 2px;
  margin: 0 auto 16px;
}

/* ============================================================
   HOME HERO
   ============================================================ */
.home-hero {
  background: var(--gradient-hero);
  color: #fff;
  padding: clamp(60px, 8vw, 100px) 0 clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  margin-bottom: 16px;
}
.home-hero h1 {
  font-size: var(--fs-h1);
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.hero-lead {
  font-size: 1.1rem;
  opacity: 0.93;
  margin-bottom: 28px;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-visual img {
  border-radius: var(--radius-lg);
  border: 3px solid rgba(255,255,255,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.home-trust-strip {
  background: var(--color-surface);
  padding: var(--section-y) 0;
}
.home-trust-strip h2 { font-size: var(--fs-h2); color: var(--color-primary-dark); margin-bottom: 20px; }
.home-trust-strip p { color: var(--color-text-soft); margin-bottom: 16px; }

/* ============================================================
   FEATURE GRID
   ============================================================ */
.home-feature-grid {
  background: var(--color-bg-soft);
  padding: var(--section-y) 0;
}
.feature-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 20px;
  text-align: center;
  transition: transform var(--motion-normal) var(--ease-out), box-shadow var(--motion-normal);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}
.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary-soft), #b2ebf2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.6rem;
  color: var(--color-primary-dark);
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  margin: 0;
}

/* ============================================================
   CONTENT VISUAL
   ============================================================ */
.home-content-visual {
  background: var(--color-bg);
  padding: var(--section-y-sm) 0;
}
.content-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}
.content-visual-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.content-visual-text h2 {
  font-size: var(--fs-h2);
  color: var(--color-primary-dark);
  margin-bottom: 16px;
}
.content-visual-text p {
  color: var(--color-text-soft);
  margin-bottom: 14px;
}

/* ============================================================
   GUIDE PANEL / STEPS
   ============================================================ */
.home-guide-panel {
  background: var(--color-bg-soft);
  padding: var(--section-y) 0;
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
.step-card {
  background: var(--color-card);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.step-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--gradient-button);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(6,182,212,0.3);
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step-card p { color: var(--color-text-muted); margin: 0; font-size: var(--fs-small); }
.steps-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

/* ============================================================
   COMPARE TABLE
   ============================================================ */
.home-compare-section {
  background: var(--color-surface);
  padding: var(--section-y) 0;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.compare-table th, .compare-table td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.compare-table thead th {
  background: var(--color-primary-dark);
  color: #fff;
  font-weight: 700;
}
.compare-table thead th.highlight {
  background: var(--gradient-cta);
}
.compare-table td:first-child { text-align: left; font-weight: 500; }
.compare-table td.highlight { background: rgba(6,182,212,0.05); }
.compare-table tbody tr:hover { background: var(--color-primary-soft); }
.check { color: var(--color-accent); font-size: 1.1rem; }
.cross { color: var(--color-danger); font-size: 1.1rem; }

/* ============================================================
   GALLERY
   ============================================================ */
.home-gallery {
  background: var(--color-bg);
  padding: var(--section-y-sm) 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-grid img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ============================================================
   ABOUT DEEP
   ============================================================ */
.home-about-deep {
  background: var(--color-surface);
  padding: var(--section-y) 0;
}
.about-deep-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.about-deep-main h2 { font-size: var(--fs-h2); color: var(--color-primary-dark); margin-bottom: 16px; }
.about-deep-main h3 { font-size: var(--fs-h3); color: var(--color-text); margin: 28px 0 10px; }
.about-deep-main p { color: var(--color-text-soft); margin-bottom: 14px; }
.stats-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 20px;
}
.stats-card h3 { font-size: 1.1rem; color: var(--color-primary-dark); margin-bottom: 16px; }
.stats-card ul { list-style: none; }
.stats-card li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.stat-badge {
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-weight: 700;
  font-size: var(--fs-small);
}
.privacy-notice-card {
  background: linear-gradient(135deg, var(--color-primary-soft), var(--color-bg-soft));
  border-left: 5px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 20px;
}
.privacy-notice-card h3 { color: var(--color-primary-dark); font-size: 1.05rem; margin-bottom: 10px; }
.privacy-notice-card p { color: var(--color-text-soft); margin: 0; font-size: var(--fs-small); }
.sidebar-image { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); width: 100%; }

/* ============================================================
   REVIEWS
   ============================================================ */
.home-review-band {
  background: var(--color-bg);
  padding: var(--section-y) 0;
}
.review-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
  position: relative;
}
.review-card::before {
  content: '\201C';
  font-size: 3.5rem;
  color: var(--color-accent);
  line-height: 1;
  position: absolute;
  top: 8px;
  left: 16px;
  opacity: 0.2;
}
.review-stars { color: var(--color-warning); font-size: 1rem; margin-bottom: 8px; }
.review-text { color: var(--color-text-soft); font-size: var(--fs-small); line-height: 1.7; margin-bottom: 14px; }
.review-author { font-weight: 700; color: var(--color-text); }
.review-city { font-size: 0.85rem; color: var(--color-text-muted); }
.review-city i { color: var(--color-accent); }

/* ============================================================
   RESPONSIBLE GAMING
   ============================================================ */
.home-responsible {
  background: var(--gradient-responsible);
  color: #fff;
  padding: var(--section-y) 0;
}
.responsible-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.responsible-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-card);
  padding: 22px 18px;
  backdrop-filter: blur(4px);
}
.responsible-icon { font-size: 2rem; margin-bottom: 12px; }
.responsible-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: #fff; }
.responsible-card p { font-size: var(--fs-small); opacity: 0.9; margin: 0; }
.responsible-cta { text-align: center; }

/* ============================================================
   FAQ
   ============================================================ */
.home-faq {
  background: var(--color-bg);
  padding: var(--section-y) 0;
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
  font-family: var(--font-base);
  text-align: left;
  gap: 12px;
}
.faq-question i {
  transition: transform var(--motion-normal);
  color: var(--color-accent);
  flex-shrink: 0;
}
.faq-question[aria-expanded="true"] i { transform: rotate(180deg); }
.faq-question[aria-expanded="true"] {
  background: linear-gradient(90deg, var(--color-primary-soft), var(--color-bg-soft));
  color: var(--color-primary-dark);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--motion-normal) var(--ease-out);
}
.faq-answer.is-open { max-height: 500px; }
.faq-answer p { padding: 0 22px 18px; color: var(--color-text-soft); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.home-final-cta {
  background: var(--color-bg-soft);
  padding: var(--section-y-sm) 0;
}
.final-cta-card {
  background: var(--gradient-cta);
  border-radius: var(--radius-xl);
  color: #fff;
  padding: clamp(28px, 4vw, 48px);
  text-align: center;
}
.final-cta-card h2 { font-size: var(--fs-h2); color: #fff; margin-bottom: 16px; }
.final-cta-card p { opacity: 0.92; margin-bottom: 24px; max-width: 700px; margin-left: auto; margin-right: auto; }

/* ============================================================
   INNER PAGE HERO (Breadcrumb + Title style)
   ============================================================ */
.inner-hero {
  background: var(--gradient-hero-soft);
  color: #fff;
  padding: clamp(40px, 5vw, 60px) 0;
}
.inner-hero h1 {
  font-size: var(--fs-h1);
  color: #fff;
  margin-bottom: 12px;
}
.inner-hero .hero-lead {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 700px;
}
.breadcrumb-nav {
  margin-bottom: 16px;
  font-size: var(--fs-small);
}
.breadcrumb-nav a { color: rgba(255,255,255,0.7); }
.breadcrumb-nav a:hover { color: #fff; }
.breadcrumb-nav span { color: rgba(255,255,255,0.5); margin: 0 6px; }

/* ============================================================
   INNER PAGE CONTENT
   ============================================================ */
.inner-content {
  padding: var(--section-y) 0;
}
.inner-content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}
.inner-body h2 { font-size: var(--fs-h2); color: var(--color-primary-dark); margin: 32px 0 14px; }
.inner-body h2:first-child { margin-top: 0; }
.inner-body h3 { font-size: var(--fs-h3); margin: 24px 0 10px; }
.inner-body p { color: var(--color-text-soft); margin-bottom: 14px; }
.inner-body ul, .inner-body ol { margin: 0 0 14px 20px; }
.inner-body li { color: var(--color-text-soft); margin-bottom: 6px; list-style: disc; }
.inner-body ol li { list-style: decimal; }
.inner-sidebar { position: sticky; top: calc(var(--header-h) + 20px); }

/* Info Card */
.info-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 20px;
}
.info-card h3 { font-size: 1.1rem; color: var(--color-primary-dark); margin-bottom: 14px; }

/* Warning Box */
.warning-box {
  background: linear-gradient(135deg, #fef3c7, #fffbeb);
  border-left: 4px solid var(--color-warning);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
}
.warning-box p { color: #92400e; margin: 0; font-size: var(--fs-small); }

/* ============================================================
   AUTH PAGES (Login/Register)
   ============================================================ */
.auth-hero {
  background: linear-gradient(135deg, #040f1a 0%, #0c2d42 60%, #0891b2 100%);
  color: #fff;
  padding: clamp(40px, 5vw, 60px) 0;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: var(--section-y) 0;
}
.auth-form-card {
  background: var(--color-card);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  align-self: start;
}
.page-register .inner-sidebar {
  position: static;
  order: -1;
}
.page-register .register-form-card {
  max-width: 100%;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-text);
}
.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-base);
  transition: border-color var(--motion-fast);
  background: var(--color-bg-soft);
}
.form-group input:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(6,182,212,0.15);
}
.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--gradient-button);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-base);
  transition: all var(--motion-normal);
}
.form-submit:hover {
  background: var(--gradient-button-hover);
  box-shadow: var(--shadow-button);
}
.form-note {
  margin-top: 16px;
  font-size: 0.92rem;
  color: #6b8fa3;
}
.form-note a { font-weight: 700; }

/* ============================================================
   POLICY / ARTICLE PAGES
   ============================================================ */
.policy-layout {
  max-width: 860px;
  margin: 0 auto;
  padding: var(--section-y) 0;
}
.policy-body h2 { font-size: var(--fs-h2); color: var(--color-primary-dark); margin: 32px 0 14px; }
.policy-body h3 { font-size: var(--fs-h3); margin: 24px 0 10px; }
.policy-body p { color: var(--color-text-soft); margin-bottom: 14px; }
.policy-toc {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.policy-toc h3 { margin-top: 0; font-size: 1.05rem; }
.policy-toc ul { margin: 0; padding: 0; }
.policy-toc li { margin-bottom: 6px; list-style: none; }
.policy-toc a { color: var(--color-primary); font-size: var(--fs-small); }
.policy-note {
  background: var(--color-primary-soft);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
}
.policy-note p { color: var(--color-primary-dark); margin: 0; font-size: var(--fs-small); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gradient-footer);
  color: var(--color-footer-text);
  padding: 48px 0 24px;
}
.footer-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 clamp(16px, 3vw, 24px); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-logo {
  height: 38px;
  width: auto;
  margin-bottom: 14px;
}
.footer-desc { font-size: var(--fs-small); color: #7fb8d0; line-height: 1.65; margin-bottom: 12px; }
.footer-email { font-size: var(--fs-small); color: var(--color-footer-text); }
.footer-email i { color: var(--color-accent); margin-right: 6px; }
.footer-links-group h6 {
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 1rem;
}
.footer-links-group a {
  display: block;
  color: var(--color-footer-text);
  font-size: var(--fs-small);
  margin-bottom: 8px;
  transition: color var(--motion-fast);
  text-decoration: none;
}
.footer-links-group a:hover { color: var(--color-accent); }
.footer-contact-text { font-size: var(--fs-small); color: #7fb8d0; line-height: 1.65; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #5a8fa5;
}
.footer-warning { font-size: 0.8rem; color: #4a7d96; margin-top: 6px; }
.footer-bottom-links { margin-top: 10px; }
.footer-bottom-links a { color: #6fa8c0; margin: 0 8px; font-size: 0.85rem; }
.footer-bottom-links a:hover { color: var(--color-accent); }

/* ============================================================
   AOS DEGRADE
   ============================================================ */
[data-aos] { opacity: 1 !important; transform: none !important; }
.aos-animate[data-aos] { opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .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; gap: clamp(5px, 1.6vw, 8px); }
  .header-actions .btn { min-height: 38px; padding: 8px clamp(10px, 2.6vw, 14px); font-size: clamp(12px, 3.2vw, 14px); }
  .nav-toggle { flex: 0 0 40px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
  .content-visual-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .about-deep-grid { grid-template-columns: 1fr; }
  .review-cards { grid-template-columns: 1fr; }
  .responsible-cards { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .inner-content-grid { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .feature-cards { grid-template-columns: 1fr; }
  .responsible-cards { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 375px) {
  .header-inner { padding-left: 8px; padding-right: 8px; gap: 6px; }
  .site-logo { max-width: 104px; }
  .header-actions .btn { min-height: 36px; padding: 6px 8px; font-size: 12px; }
  .nav-toggle { flex-basis: 38px; width: 38px; height: 38px; }
  body { font-size: 0.98rem; }
}

/* Print */
@media print {
  .site-header, .site-footer, .mobile-menu, .nav-toggle, .hero-actions, .btn { display: none !important; }
}
