/* ==========================================================================
   UZBEK MADE EASY — DESIGN SYSTEM & STYLESHEET
   Brand: Uzbek Made Easy (Davron Ochilboev)
   Tagline: "Learn Uzbek the way Uzbeks use it."
   Color Palette Sampled Directly from the Official Book Cover:
     - Navy: #0b2b59 (from "UZBEK" and bottom banner)
     - Midnight Navy: #071f42 (banner background)
     - Teal: #08637b (from "MADE EASY")
     - Gold: #cca044 (from the arch border trim & divider dot)
     - Warm Sky/Cream: #faf6f0 (from the top cloud sky background)
     - Clean Paper: #ffffff (for cards and contrast)
   Typography: Strictly 2 Fonts (Plus Jakarta Sans as Primary, Fraunces as Secondary).
   ========================================================================== */

:root {
  /* Book Cover Color Tokens */
  --navy: #0b2b59;
  --navy-deep: #071f42;
  --navy-light: #133c78;
  --navy-surface: rgba(11, 43, 89, 0.05);
  --navy-border: rgba(11, 43, 89, 0.14);

  --teal: #08637b;
  --teal-dark: #054e61;
  --teal-light: #e7f2f5;
  --teal-surface: rgba(8, 99, 123, 0.08);
  --teal-border: rgba(8, 99, 123, 0.22);

  --gold: #8fb4c4;
  --gold-light: #8fb4c4;
  --gold-tint: #e6ebf1;
  --gold-border: rgba(143, 180, 196, 0.35);

  --cream: #faf6f0;
  --cream-tint: #f3ece1;
  --cream-dark: #e8dece;

  --paper: #ffffff;
  --paper-soft: #fcfbf9;

  /* Registan Square Hero Backdrop Tokens (Mobile First Defaults) */
  --hero-registan-opacity: 0.11;
  --hero-registan-pos-x: center;
  --hero-registan-pos-y: 75%;
  --hero-registan-scale: 1.05;

  /* Functional Tokens */
  --color-bg: var(--cream);
  --color-surface: var(--paper);
  --color-text: var(--navy);
  --color-text-muted: #425875;
  --color-accent: var(--teal);
  --color-accent-gold: var(--gold);
  --color-border: var(--navy-border);

  /* Placeholders */
  --color-todo-bg: #f4f8fa;
  --color-todo-border: var(--teal);

  /* TYPOGRAPHY (Strictly 2 Font Families) */
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: 'Fraunces', Georgia, serif;
  --font-heading: var(--font-primary);
  --font-body: var(--font-primary);
  --font-uzbek: var(--font-primary);

  /* Type Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.5rem;
  --text-4xl: 3.25rem;
  --text-hero: 4rem;

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Geometry & Design Tokens: Unified Border-Radius & Sizing System */
  --max-width: 1200px;
  --max-width-narrow: 860px;
  --max-width-wide: 1360px;
  --radius-control: 12px;
  --radius-card: 16px;
  --radius-review: 20px;
  --control-height: 44px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Transitions */
  --transition-fast: 160ms cubic-bezier(0.2, 0, 0.2, 1);
  --transition-normal: 260ms cubic-bezier(0.2, 0, 0.2, 1);
  --transition-smooth: 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Baseline Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------------
   Typography: ALL SANS-SERIF
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
.font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, var(--text-hero));
  font-weight: 800;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, var(--text-3xl));
  margin-bottom: var(--space-4);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.3rem, 2.4vw, var(--text-xl));
  margin-bottom: var(--space-2);
  font-weight: 700;
}

h4 {
  font-size: var(--text-md);
  font-weight: 600;
}

p {
  margin-bottom: var(--space-4);
  max-width: 68ch;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  color: var(--navy-light);
  font-weight: 400;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: var(--space-3);
}

/* --------------------------------------------------------------------------
   Book Signature Divider: Thin rule with centered gold dot
   -------------------------------------------------------------------------- */
.book-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-4) 0 var(--space-6) 0;
  width: 100%;
  max-width: 320px;
}

.book-divider-line {
  flex-grow: 1;
  height: 1px;
  background-color: var(--gold);
  opacity: 0.7;
}

.book-divider-dot {
  width: 6px;
  height: 6px;
  background-color: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.asymmetric-rule {
  width: 54px;
  height: 3px;
  background-color: var(--teal);
  margin: var(--space-4) 0 var(--space-6) 0;
  border: none;
  border-radius: 2px;
}

/* Uzbek Geometric Ornament Band - Removed */
.ikat-band {
  display: none !important;
  height: 0 !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

/* --------------------------------------------------------------------------
   Signature Element: Sweeping Golden Arch Banner (echoing Book Cover)
   -------------------------------------------------------------------------- */
.arch-bottom-banner {
  position: relative;
  background-color: var(--navy-deep);
  color: #ffffff;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: var(--space-8);
  margin-top: auto;
  border-top: 3px solid var(--gold);
}

/* Watermark geometric girih star pattern */
.arch-bottom-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 50%, #ffffff 12%, transparent 12.5%),
    linear-gradient(45deg, transparent 48%, #ffffff 48%, #ffffff 52%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, #ffffff 48%, #ffffff 52%, transparent 52%);
  background-size: 40px 40px;
}

/* --------------------------------------------------------------------------
   Signature Element: Pointed-Arch Portrait Frame with Concentric Gold Trim
   -------------------------------------------------------------------------- */
.arch-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding: 12px;
  background-color: var(--paper);
  border: 2px solid var(--navy);
  border-radius: 190px 190px 8px 8px;
  box-shadow: 0 10px 30px rgba(11, 43, 89, 0.09);
}

.arch-frame::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 1.5px solid var(--gold);
  border-radius: 185px 185px 5px 5px;
  pointer-events: none;
}

.arch-photo-container {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 175px 175px 4px 4px;
  overflow: hidden;
  background-color: var(--cream-tint);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6);
}

/* Book Cover Display Card */
.book-cover-showcase {
  max-width: 360px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(11, 43, 89, 0.18);
  border: 1px solid var(--navy-border);
  transition: transform var(--transition-normal);
}

.book-cover-showcase:hover {
  transform: translateY(-4px);
}

/* --------------------------------------------------------------------------
   Uzbek Latin Orthography Support (All Sans)
   -------------------------------------------------------------------------- */
.uzbek-term {
  font-family: var(--font-uzbek);
  font-style: italic;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Visible DATA-TODO Placeholders (Hard Rule: No fake content)
   -------------------------------------------------------------------------- */
[data-todo] {
  position: relative;
  background: var(--color-todo-bg);
  border: 1.5px dashed var(--teal);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  color: var(--navy);
}

[data-todo]::before {
  content: "Client asset needed: " attr(data-todo);
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background-color: var(--teal);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: var(--space-2);
}

.todo-banner {
  background-color: var(--teal-light);
  border-left: 4px solid var(--teal);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--navy);
  margin-bottom: var(--space-6);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* --------------------------------------------------------------------------
   Layout Containers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

.container-narrow {
  width: 100%;
  max-width: var(--max-width-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

.section {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.section-paper {
  background-color: var(--paper);
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
}

/* --------------------------------------------------------------------------
   Header, Navigation & Logo (Aligned with Book Cover)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 246, 240, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--navy-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

/* Clean Brand Logo: UZBEK in Navy, MADE EASY in Teal */
.brand-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand-uzbek {
  font-weight: 800;
  color: var(--navy);
}

.brand-made-easy {
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.04em;
}

.nav-desktop,
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-link {
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
  padding: var(--space-1) 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: var(--teal);
}

.header-controls-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Language and Yangi Imlo Switchers */
.lang-switch-box {
  display: inline-flex;
  align-items: center;
  height: var(--control-height, 44px);
  background-color: var(--paper);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-control, 12px);
  padding: 3px;
  box-sizing: border-box;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  height: 100%;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  padding: 0 12px;
  cursor: pointer;
  border-radius: 9px;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-btn.active {
  background-color: var(--navy);
  color: #ffffff;
}

.yangi-imlo-toggle {
  display: none !important;
}

/* Header WhatsApp CTA button harmonization */
.site-header .btn-navy {
  height: var(--control-height, 44px);
  min-height: var(--control-height, 44px);
  padding: 0 18px;
  border-radius: var(--radius-control, 12px);
  border: 1px solid var(--navy);
  font-size: 14px;
  font-weight: 600;
}

/* Mobile Nav Toggle - Handled by nav-v4.js */
.mobile-nav-toggle {
  display: none !important;
}

.mobile-menu-drawer {
  display: none !important;
}

.mobile-menu-link {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--navy-border);
}

.mobile-menu-link.active {
  color: var(--teal);
}

/* --------------------------------------------------------------------------
   Buttons (Navy & Teal, with subtle Gold touch)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--control-height, 44px);
  min-height: var(--control-height, 44px);
  padding: 0 18px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-control, 12px);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-sizing: border-box;
}

.btn:active {
  transform: translateY(1px);
}

.btn-navy {
  background-color: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.btn-navy:hover {
  background-color: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
}

.btn-navy svg {
  fill: currentColor;
  width: 18px;
  height: 18px;
}

.btn-secondary {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--navy-border);
}

.btn-secondary:hover {
  background-color: var(--navy-surface);
  color: var(--navy-deep);
  border-color: var(--navy);
}

.btn-teal {
  background-color: var(--teal);
  color: #ffffff;
  border-color: var(--teal);
}

.btn-teal:hover {
  background-color: var(--teal-dark);
  border-color: var(--teal-dark);
}

.btn-sm {
  height: var(--control-height, 44px);
  min-height: var(--control-height, 44px);
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-control, 12px);
}

/* --------------------------------------------------------------------------
   HERO SECTION & REGISTAN SQUARE AESTHETIC BACKDROP
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--navy-border);
  background-color: var(--cream);
}

/* Registan Square Aesthetic Atmospheric Backdrop */
.hero-registan-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-registan-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-registan-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-registan-pos-x) var(--hero-registan-pos-y);
  opacity: var(--hero-registan-opacity);
  mix-blend-mode: multiply;
  filter: contrast(1.1) saturate(1.15);
  transform: scale(var(--hero-registan-scale));
  transition: opacity var(--transition-slow), transform 1.2s ease-out;
}

/* Dual Soft-Vignette Overlay: protects left-side typography contrast while letting architecture breathe */
.hero-registan-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(250, 246, 240, 0.95) 0%,
      rgba(250, 246, 240, 0.88) 35%,
      rgba(250, 246, 240, 0.52) 70%,
      rgba(250, 246, 240, 0.28) 100%),
    linear-gradient(180deg,
      rgba(250, 246, 240, 0.5) 0%,
      transparent 22%,
      transparent 78%,
      rgba(250, 246, 240, 0.95) 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 960px) {
  :root {
    --hero-registan-opacity: 0.16;
    --hero-registan-pos-y: 60%;
    --hero-registan-scale: 1.02;
  }

  .hero-grid {
    grid-template-columns: 1.25fr 0.85fr;
    gap: var(--space-12);
  }
}

.greeting-rotator {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-family: var(--font-heading);
}

.greeting-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
}

.greeting-display {
  display: inline-block;
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  font-weight: 700;
  color: var(--navy);
  min-height: 1.3em;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.greeting-translation {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: normal;
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .greeting-display {
    transition: none !important;
  }
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 4.8vw, 3.8rem);
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: var(--space-4);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.hero-tagline em {
  font-style: normal;
  color: var(--teal);
}

.hero-subhead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: var(--navy-light);
  margin-bottom: var(--space-8);
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-8);
}

.stats-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.stat-pill {
  display: inline-flex;
  flex-direction: column;
  background-color: var(--paper);
  border: 1px solid var(--navy-border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.stat-pill-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.1;
}

.stat-pill-label {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Cards: Who It's For, Lessons, Reviews, Phrases
   -------------------------------------------------------------------------- */
.who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

@media (min-width: 680px) {
  .who-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .who-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .who-grid .who-card:last-child {
    grid-column: span 2;
  }
}

/* ==========================================================================
   TARGETED TUTORING: PURE CSS/JS EXCLUSIVE ACCORDION
   ========================================================================== */
.tutoring-accordion {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: var(--space-8);
}

.tutoring-card {
  width: 100%;
  box-sizing: border-box;
  border-radius: var(--radius-card, 16px);
  overflow: hidden;
  margin-bottom: 12px;
  background-color: var(--paper);
  border: 1px solid var(--navy-border);
  box-shadow: 0 2px 8px rgba(11, 43, 89, 0.03);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.tutoring-card:hover {
  border-color: var(--teal-border);
  box-shadow: 0 4px 16px rgba(8, 99, 123, 0.08);
}

/* Active / Open state: Rich primary dark navy / secondary warm amber-gold accent styling */
.tutoring-card.is-open {
  border-color: var(--gold);
  box-shadow: 0 8px 28px -4px rgba(11, 43, 89, 0.12), 0 0 0 1px rgba(204, 160, 68, 0.35);
}

.tutoring-card__header {
  appearance: none;
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-primary);
  box-sizing: border-box;
  transition: background-color 0.25s ease;
}

.tutoring-card__header:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}

.tutoring-card.is-open .tutoring-card__header {
  background-color: rgba(11, 43, 89, 0.04);
  border-bottom: 1px solid rgba(11, 43, 89, 0.08);
}

.tutoring-card__header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.tutoring-card__num {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  background-color: var(--teal-light);
  border: 1px solid var(--teal-border);
  padding: 4px 10px;
  border-radius: 8px;
  flex-shrink: 0;
  line-height: 1;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.tutoring-card.is-open .tutoring-card__num {
  background-color: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.tutoring-card__icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  transition: color 0.25s ease;
}

.tutoring-card:hover .tutoring-card__icon {
  color: var(--teal-dark);
}

.tutoring-card.is-open .tutoring-card__icon {
  color: var(--gold);
}

.tutoring-card__emoji {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.tutoring-card__title {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.01em;
}

@media (max-width: 580px) {
  .tutoring-card__title {
    font-size: 16px;
  }

  .tutoring-card__header {
    padding: 16px 18px;
    gap: 12px;
  }
}

.tutoring-card__arrow {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.3s ease, color 0.25s ease;
  display: block;
}

.tutoring-card.is-open .tutoring-card__arrow {
  transform: rotate(180deg);
  color: var(--gold);
}

.tutoring-card__body {
  display: none;
  padding: 22px 24px 26px 24px;
  box-sizing: border-box;
}

.tutoring-card.is-open .tutoring-card__body {
  display: block;
}

.tutoring-card__desc {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  max-width: none;
}

.tutoring-card__quote {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  font-size: var(--text-sm);
  color: var(--navy);
  font-style: italic;
  line-height: 1.5;
}

.tutoring-card__quote .quote-mark {
  font-family: var(--font-secondary);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--gold);
  font-style: normal;
  flex-shrink: 0;
}

/* ==========================================================================
   PREPLY REVIEWS: APPLE-STYLE 3:1 INFINITE CSS MARQUEE
   ========================================================================== */
.reviews-marquee-section {
  position: relative;
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
}

.marquee-wrapper {
  width: 100%;
  overflow-x: hidden;
  position: relative;
  padding: 16px 0 24px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: 20px;
  animation: marqueeScroll 720s linear infinite;
  will-change: transform;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 10px));
  }
}

/* Review Card: 3:1 landscape proportions & 20px radius */
.review-card {
  width: 480px;
  height: 168px;
  flex-shrink: 0;
  border-radius: 20px;
  box-sizing: border-box;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--navy-border);
  box-shadow: 0 4px 18px -2px rgba(11, 43, 89, 0.06), 0 2px 6px -1px rgba(11, 43, 89, 0.03);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  user-select: none;
}

.review-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal-border);
  box-shadow: 0 8px 26px -4px rgba(8, 99, 123, 0.12);
}

.review-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-family: var(--font-primary);
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--teal-border);
  letter-spacing: -0.02em;
  position: relative;
}

.review-card__avatar .avatar-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.review-card__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.review-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.review-card__nickname {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.review-card__stars {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.review-card__text {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--color-text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .review-card {
    width: 360px;
    height: 135px;
    padding: 14px 18px;
    gap: 14px;
  }

  .review-card__avatar {
    width: 44px;
    height: 44px;
    font-size: 15px;
  }

  .review-card__nickname {
    font-size: 15px;
  }

  .review-card__text {
    font-size: 13px;
    line-height: 1.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .review-card {
    scroll-snap-align: start;
  }
}

/* ==========================================================================
   Reviews Page Static Grid (.review-grid-card)
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6, 24px);
  margin-top: var(--space-6, 24px);
}

.review-grid-card {
  display: flex;
  flex-direction: column;
  background-color: var(--paper, #fff5e9);
  border: 1px solid var(--navy-border, rgba(11, 43, 89, 0.14));
  border-radius: var(--radius-card, 16px);
  padding: 24px;
  box-shadow: 0 4px 18px -2px rgba(11, 43, 89, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

.review-grid-card:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 42, 99, 0.28);
  box-shadow: 0 10px 24px -4px rgba(11, 43, 89, 0.10);
}

.rg-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.rg-card__user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rg-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy, #062a63);
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(6, 42, 99, 0.18);
}

.rg-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rg-card__name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy, #062a63);
  line-height: 1.25;
}

.rg-card__flag {
  font-style: normal;
  margin-left: 4px;
}

.rg-card__meta {
  margin: 0;
  font-size: 12.5px;
  color: var(--color-text-muted, #64748b);
  line-height: 1.3;
}

.rg-card__stars {
  color: #e59819;
  font-size: 14px;
  letter-spacing: 2px;
  flex-shrink: 0;
  padding-top: 2px;
}

.rg-card__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-text, #14182b);
  flex-grow: 1;
}

.review-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--teal);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.review-quote {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--navy);
  margin-bottom: var(--space-5);
  flex-grow: 1;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--navy-border);
  padding-top: var(--space-3);
  margin-top: auto;
}

.author-name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--navy);
}

.author-country {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Audio Showcase */
.audio-card {
  background-color: var(--paper);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-top: var(--space-6);
}

.audio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-4);
}

@media (min-width: 768px) {
  .audio-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.audio-track-box {
  background-color: var(--cream);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
}

.audio-track-box h4 {
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.audio-player-mock {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding: var(--space-3);
  background-color: var(--paper);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
}

.audio-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--navy);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.audio-wave-bar {
  flex-grow: 1;
  height: 6px;
  background-color: var(--cream-tint);
  border-radius: 3px;
  overflow: hidden;
}

.audio-wave-progress {
  width: 35%;
  height: 100%;
  background-color: var(--teal);
}

.audio-time-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-family: monospace;
}

/* Lessons Cards */
.lessons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-8);
  align-items: stretch;
}

@media (min-width: 768px) {
  .lessons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .lessons-grid {
    grid-template-columns: 1fr;
  }
}

.lesson-card {
  background-color: var(--paper);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.lesson-card-price-section {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

.lesson-card-price-section ~ .btn,
.lesson-card-price-section ~ a.btn,
.lesson-card-price-section ~ button.btn {
  margin-top: 0;
}

.lesson-card > .btn:first-of-type:not(.lesson-card-price-section ~ .btn) {
  margin-top: auto;
}

.lesson-card.featured {
  border-color: var(--teal);
  box-shadow: 0 4px 20px rgba(8, 99, 123, 0.1);
}

.lesson-badge {
  position: absolute;
  top: -12px;
  right: var(--space-6);
  background-color: var(--teal);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 3px;
}

.lesson-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}

.lesson-goal {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  line-height: 1.5;
}

.lesson-meta-list {
  list-style: none;
  border-top: 1px solid var(--navy-border);
  border-bottom: 1px solid var(--navy-border);
  padding: var(--space-4) 0;
  margin-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.lesson-meta-item {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
}

.lesson-meta-item strong {
  color: var(--navy);
}

.lesson-meta-item span {
  color: var(--color-text-muted);
}

.lesson-card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.lesson-price {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
}

.lesson-price-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Textbook Showcase Card in Lessons */
.textbook-showcase-box {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  margin-bottom: var(--space-5);
}

.textbook-cover-frame {
  width: 140px;
  min-width: 140px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(6, 42, 99, 0.16);
  border: 1px solid var(--navy-border);
  background: linear-gradient(145deg, #f7f3ec 0%, #eae2d3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--transition-normal, 0.2s ease);
}

.textbook-cover-frame:hover {
  transform: translateY(-3px) scale(1.02);
}

.textbook-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.textbook-features {
  flex: 1;
  min-width: 0;
}

.textbook-meta-list {
  border-top: none;
  border-bottom: none;
  padding: 0;
  margin-bottom: 0;
}

@media (max-width: 560px) {
  .textbook-showcase-box {
    flex-direction: column;
    text-align: center;
  }
  .textbook-cover-frame {
    width: 150px;
    margin: 0 auto var(--space-3);
  }
  .textbook-features {
    width: 100%;
  }
}

.textbook-perk-callout {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background-color: var(--teal-light, #e7f2f5);
  color: var(--teal-dark, #054e61);
  border: 1px solid var(--teal-border, rgba(8, 99, 123, 0.25));
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: var(--space-4, 16px);
}

.textbook-perk-callout svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--teal, #08637b);
}

.lesson-card-subnote {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background-color: rgba(6, 42, 99, 0.04);
  color: var(--navy, #062a63);
  border: 1px solid rgba(6, 42, 99, 0.1);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: var(--space-4, 16px);
}

.lesson-card-subnote svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--teal, #08637b);
}

.textbook-sample-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs, 0.8rem);
  font-weight: 600;
  color: var(--teal, #08637b);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.textbook-sample-link:hover {
  color: var(--teal-dark, #054e61);
}

/* Timezone Banner */
.timezone-card {
  background-color: var(--paper);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .timezone-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.timezone-clocks {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.clock-item {
  display: flex;
  flex-direction: column;
}

.clock-label {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--teal);
  letter-spacing: 0.05em;
}

.clock-time {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}

.clock-tz {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Alphabet Grid */
.alphabet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.letter-card {
  background-color: var(--paper);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  text-align: center;
}

.letter-card.highlight {
  border-color: var(--teal);
  background-color: var(--teal-light);
}

.letter-glyph {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 2px;
}

.letter-card.highlight .letter-glyph {
  color: var(--teal-dark);
}

.letter-name {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 600;
}

.letter-example {
  font-size: var(--text-xs);
  color: var(--navy);
  margin-top: var(--space-2);
  font-style: italic;
}

/* Reform Comparison Table */
.reform-table-wrap {
  overflow-x: auto;
  margin-top: var(--space-6);
  background: var(--paper);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.reform-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.reform-table th,
.reform-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--navy-border);
}

.reform-table th {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  font-weight: 700;
}

/* Phrases */
.phrase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

@media (min-width: 768px) {
  .phrase-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.phrase-card {
  background-color: var(--paper);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
}

.phrase-uzbek {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-1);
}

.phrase-english {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.phrase-context {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.faq-item {
  background-color: var(--paper);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(6, 42, 99, 0.28);
}

.faq-item h3 {
  font-size: 1.15rem;
  margin: 0;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  user-select: none;
}

.faq-item h3::after,
.faq-item h3::before {
  content: none !important;
  display: none !important;
}

.faq-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--navy);
  background: rgba(6, 42, 99, 0.06);
  transition: transform 0.25s ease, background-color 0.2s ease;
}

.faq-item:hover .faq-chevron {
  background: rgba(6, 42, 99, 0.12);
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-top: var(--space-4);
  margin-bottom: 0;
  display: none;
}

.faq-item.is-open p {
  display: block;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
  margin-bottom: var(--space-8);
}

.filter-btn {
  background-color: transparent;
  border: 1px solid var(--navy-border);
  color: var(--navy);
  padding: 6px 14px;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

/* Footer (Arch Bottom Banner) */
.site-footer {
  background-color: var(--navy-deep);
  color: var(--cream);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: var(--space-8);
  margin-top: auto;
  border-top: 3px solid var(--gold);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: var(--space-12);
  }
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: var(--space-2);
  font-weight: 800;
}

.footer-brand p {
  color: var(--cream-tint);
  font-size: var(--text-sm);
  max-width: 44ch;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-link {
  color: var(--cream);
  text-decoration: none;
  font-size: var(--text-sm);
}

.footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(250, 246, 240, 0.12);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--cream-tint);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.uzbek-orthography-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--teal-light);
}

/* Video Modal Dialog */
.video-modal-dialog {
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-card, 16px);
  padding: 0;
  background: var(--paper);
  box-shadow: 0 25px 60px -15px rgba(7, 31, 66, 0.4);
  max-width: 520px;
  width: 90vw;
  margin: auto;
}

.video-modal-dialog::backdrop {
  background: rgba(7, 31, 66, 0.65);
  backdrop-filter: blur(8px);
}

.video-modal-content {
  padding: 24px;
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.video-modal-header h3 {
  font-family: var(--font-secondary);
  font-size: 1.35rem;
  color: var(--navy);
  margin: 0;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Contact Page Mobile Responsive Email */
.contact-email-link {
  font-family: var(--font-sans, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
  font-size: clamp(0.95rem, 4vw, 1.15rem) !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  max-width: 100%;
}

/* Steps Timeline Spacing */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-6, 24px);
  margin-top: var(--space-6, 24px);
}

.step-item {
  position: relative;
  padding-left: 32px !important;
  padding-top: 4px;
  padding-bottom: 4px;
}

.step-item .step-num {
  font-family: var(--font-heading, inherit);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal, #08637b);
  margin-bottom: 6px;
}

.step-item h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--navy, #062a63);
}

.step-item p {
  margin: 0;
  line-height: 1.6;
  color: var(--color-text, #2d3748);
}

/* Ensure main pushes footer to viewport bottom */
main, #main-content {
  flex: 1 0 auto;
}

/* Trial Floating Widget & Card - Never in document flow, hidden by default */
.trial-floating-widget {
  position: fixed !important;
  right: 24px !important;
  bottom: 20px !important;
  z-index: 999 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  pointer-events: none !important;
}

.trial-widget-card {
  position: fixed !important;
  bottom: 76px !important;
  right: 24px !important;
  z-index: 1000 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.trial-floating-widget[data-expanded="true"] .trial-widget-card,
.trial-widget-card.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}


