:root {
  --bg: #08111d;
  --bg-2: #0d1826;
  --surface: rgba(21, 34, 48, 0.76);
  --surface-2: rgba(28, 42, 58, 0.82);
  --text: #f5f8ff;
  --muted: #9aa6b8;
  --soft: #d5dbea;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --accent: #138fc7;
  --accent-2: #6d5cff;
  --accent-soft: rgba(19, 143, 199, 0.18);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --radius-lg: 34px;
  --radius-md: 24px;
  --radius-sm: 16px;
  --container: 1480px;
}

html[data-theme="light"] {
  --bg: #212936;
  --bg-2: #2b3542;
  --surface: rgba(57, 68, 83, 0.72);
  --surface-2: rgba(68, 80, 96, 0.82);
  --text: #f9fbff;
  --muted: #c2c9d5;
  --soft: #ffffff;
  --line: rgba(255, 255, 255, 0.18);
  --line-strong: rgba(255, 255, 255, 0.28);
  --accent-soft: rgba(19, 143, 199, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(19, 143, 199, 0.22), transparent 34%),
    radial-gradient(circle at 78% 8%, rgba(109, 92, 255, 0.14), transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-shell {
  overflow: hidden;
}

.topbar {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 clamp(20px, 4vw, 58px);
  background: rgba(12, 22, 36, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
}

html[data-theme="light"] .topbar {
  background: rgba(36, 45, 58, 0.82);
}

.brand,
.top-actions,
.desktop-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 16px;
  min-width: fit-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #05080e;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-weight: 900;
}

.brand-name {
  font-size: clamp(21px, 2.2vw, 34px);
  font-weight: 900;
  letter-spacing: 0;
}

.desktop-nav {
  gap: clamp(18px, 4vw, 62px);
  color: var(--soft);
  font-size: 20px;
  font-weight: 600;
}

.desktop-nav a {
  opacity: 0.82;
  transition: 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--text);
  opacity: 1;
}

.top-actions {
  gap: 12px;
}

.theme-toggle,
.language-button,
.menu-toggle {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: 0.2s ease;
}

.theme-toggle:hover,
.language-button:hover,
.menu-toggle:hover {
  border-color: rgba(19, 143, 199, 0.8);
  background: rgba(19, 143, 199, 0.14);
}

.theme-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 21px;
}

html[data-theme="dark"] .theme-icon.sun,
html[data-theme="light"] .theme-icon.moon {
  display: none;
}

.language-switcher {
  position: relative;
}

.language-button {
  height: 58px;
  min-width: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
}

.chevron {
  font-size: 24px;
  line-height: 1;
}

.language-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 260px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(30, 42, 58, 0.98);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: 0.2s ease;
}

.language-switcher.open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 15px 14px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
}

.language-menu button:hover {
  background: rgba(19, 143, 199, 0.15);
  color: #72d4ff;
}

.top-cta,
.primary-button,
.price-card a {
  background: linear-gradient(135deg, var(--accent), #0cb6d2 70%);
  color: white;
  box-shadow: 0 16px 46px rgba(19, 143, 199, 0.24);
}

.top-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 32px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
}

.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.mobile-menu {
  position: fixed;
  z-index: 90;
  top: 98px;
  left: 16px;
  right: 16px;
  display: none;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: rgba(15, 26, 42, 0.98);
  box-shadow: var(--shadow);
}

.mobile-menu.open {
  display: grid;
}

.mobile-menu a {
  padding: 15px;
  border-radius: 14px;
  color: var(--soft);
  font-weight: 800;
}

.mobile-menu a:hover {
  background: rgba(19, 143, 199, 0.14);
}

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 130px clamp(20px, 4vw, 48px);
  position: relative;
}

.hero {
  min-height: 100vh;
  padding-top: 188px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  align-items: center;
  gap: clamp(40px, 6vw, 86px);
}

.hero-glow {
  position: absolute;
  pointer-events: none;
  filter: blur(50px);
  opacity: 0.7;
}

.hero-glow-one {
  width: 420px;
  height: 420px;
  left: -80px;
  top: 220px;
  background: rgba(19, 143, 199, 0.24);
}

.hero-glow-two {
  width: 300px;
  height: 300px;
  right: 80px;
  top: 170px;
  background: rgba(109, 92, 255, 0.18);
}

.eyebrow {
  margin: 0 0 18px;
  color: #55c8ff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 13px;
}

.hero h1,
.section-header h2 {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(54px, 8vw, 112px);
  max-width: 760px;
}

.hero-text {
  max-width: 680px;
  margin: 30px 0 0;
  color: var(--soft);
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1.45;
  opacity: 0.86;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 44px;
}

.primary-button,
.secondary-button {
  min-height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 32px;
  border-radius: 22px;
  font-size: 19px;
  font-weight: 900;
}

.button-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--soft);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 640px;
  margin-top: 46px;
}

.hero-stats a {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  color: inherit;
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.hero-stats a:hover {
  transform: translateY(-3px) scale(1.025);
  border-color: rgba(19,143,199,.75);
  background: linear-gradient(145deg, rgba(19,143,199,.12), rgba(91,72,214,.055));
  box-shadow: 0 18px 42px rgba(19,143,199,.12);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 26px;
  font-weight: 900;
}

.hero-stats span {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
}

.hero-visual {
  min-height: 570px;
  position: relative;
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 20% 30%, rgba(19, 143, 199, 0.28), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(109, 92, 255, 0.22), transparent 28%);
  z-index: 0;
}

.picture-card {
  position: absolute;
  inset: 28px;
  opacity: 0;
  transform: translateX(20px) scale(0.98);
  transition: 0.45s ease;
  z-index: 1;
}

.picture-card.active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.picture-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 30px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(8, 17, 29, 0.65), rgba(19, 143, 199, 0.12)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 12px, transparent 12px 24px);
}

.picture-placeholder span {
  display: block;
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 900;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.9);
}

.picture-placeholder p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 700;
}

.hero-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  filter: saturate(1.04) contrast(1.03) brightness(0.92);
}

.hero-photo-me {
  object-position: 48% 42%;
}

.hero-photo-slides {
  object-position: center center;
}

.picture-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(85, 200, 255, .12), transparent 28%),
    linear-gradient(180deg, transparent 58%, rgba(5, 10, 20, .38));
}

.visual-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.24);
  color: white;
  font-size: 54px;
  line-height: 1;
  cursor: pointer;
}

.visual-prev { left: 26px; }
.visual-next { right: 26px; }

.visual-dots {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.visual-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.visual-dots span.active {
  width: 42px;
  background: var(--accent);
}

.section-header {
  max-width: 900px;
  margin-bottom: 70px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(44px, 6vw, 82px);
}

.section-header p:not(.eyebrow) {
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.45;
}

.process-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 70px;
  align-items: center;
}

.timeline {
  position: relative;
  display: grid;
  gap: 56px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 39px;
  top: 58px;
  bottom: 58px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(var(--accent), #f1b64a, var(--accent-2));
}

.timeline-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 30px;
  align-items: start;
  opacity: 0.58;
  transition: 0.2s ease;
}

.timeline-item:hover,
.timeline-item.active {
  opacity: 1;
}

.timeline-icon {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 3px solid var(--line-strong);
  font-size: 32px;
}

.timeline-item span {
  color: rgba(255, 255, 255, 0.24);
  font-weight: 900;
}

.timeline-item h3 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.45;
}

.lesson-preview-card,
.feature-card,
.price-card {
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.lesson-preview-card {
  overflow: hidden;
}

.window-bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.18);
}

.window-bar span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.window-bar span:nth-child(1) { background: #ff5d63; }
.window-bar span:nth-child(2) { background: #ffc34f; }
.window-bar span:nth-child(3) { background: #3dd96b; }

.window-bar p {
  margin: 0 auto;
  color: var(--muted);
  font-weight: 800;
}

.lesson-slide {
  padding: clamp(26px, 5vw, 58px);
  min-height: 420px;
}

.slide-chip {
  display: inline-flex;
  padding: 9px 14px;
  border-radius: 999px;
  color: #84dcff;
  background: rgba(19, 143, 199, 0.16);
  font-weight: 900;
}

.lesson-slide h3 {
  max-width: 650px;
  margin: 26px 0 28px;
  font-size: clamp(34px, 5vw, 66px);
  letter-spacing: 0;
  line-height: 1;
}

.word-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.word-grid span {
  padding: 16px;
  border-radius: 16px;
  text-align: center;
  background: rgba(255,255,255,0.065);
  border: 1px solid var(--line);
  color: var(--soft);
  font-weight: 800;
}

.lesson-slide p {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.4;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.feature-card {
  min-height: 360px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  transition: 0.2s ease;
}

.feature-card:hover,
.price-card:hover {
  transform: translateY(-5px);
  border-color: rgba(19, 143, 199, 0.55);
}

.feature-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(19, 143, 199, 0.16);
  font-size: 30px;
}

.feature-icon.purple { background: rgba(109, 92, 255, 0.18); }
.feature-icon.pink { background: rgba(255, 108, 186, 0.18); }
.feature-icon.cyan { background: rgba(20, 201, 221, 0.16); }
.feature-icon.yellow { background: rgba(245, 190, 58, 0.16); }
.feature-icon.blue { background: rgba(86, 117, 255, 0.16); }

.feature-card h3 {
  margin: 34px 0 14px;
  font-size: 25px;
  letter-spacing: 0;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
}

.feature-card a {
  margin-top: auto;
  padding-top: 28px;
  color: #4cc9ff;
  font-weight: 800;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.price-card {
  position: relative;
  padding: 38px 30px;
  min-height: 545px;
  display: flex;
  flex-direction: column;
  transition: 0.2s ease;
}

.price-card.popular {
  border: 3px solid var(--accent);
  border-style: solid;
}

.popular-badge {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.price-card h3 {
  margin: 0;
  font-size: 27px;
  letter-spacing: 0;
}

.price {
  margin: 28px 0 24px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.price span {
  font-size: clamp(44px, 5vw, 68px);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: 0;
}

.price small {
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  padding-bottom: 7px;
}

.price-card p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
  color: var(--soft);
  font-weight: 700;
}

.price-card li {
  position: relative;
  padding-left: 32px;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #30c8ff;
}

.price-card a {
  margin-top: auto;
  min-height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-weight: 900;
}

.footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 38px clamp(20px, 4vw, 48px) 70px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer a {
  color: #4cc9ff;
  font-weight: 900;
}

.scroll-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 80;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  color: white;
  font-size: 32px;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero,
  .process-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 500px;
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar {
    height: 82px;
    padding: 0 14px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .top-cta,
  .theme-toggle {
    display: none;
  }

  .language-button {
    height: 48px;
    min-width: 88px;
    padding: 0 12px;
    font-size: 14px;
  }

  .mobile-menu {
    top: 82px;
  }

  .section {
    padding: 88px 18px;
  }

  .hero {
    padding-top: 128px;
    min-height: auto;
  }

  .hero-buttons,
  .footer {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-stats,
  .features-grid,
  .pricing-grid,
  .word-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 390px;
    border-radius: 28px;
  }

  .picture-card {
    inset: 18px;
  }

  .visual-arrow {
    width: 48px;
    height: 48px;
    font-size: 40px;
  }

  .timeline::before {
    left: 27px;
  }

  .timeline-item {
    grid-template-columns: 60px 1fr;
    gap: 18px;
  }

  .timeline-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .feature-card,
  .price-card {
    min-height: auto;
    padding: 28px;
  }

  .scroll-top {
    width: 52px;
    height: 52px;
    right: 18px;
    bottom: 18px;
  }
}


/* =========================
   V2 refinements
   ========================= */
:root {
  --accent: #0b82c4;
  --accent-2: #5b48d6;
  --container: 1500px;
}

.topbar {
  height: 86px;
  gap: 18px;
  padding: 0 clamp(18px, 3vw, 42px);
}

.brand { gap: 13px; }
.brand-mark { width: 38px; height: 38px; font-size: 16px; }
.brand-name { font-size: clamp(20px, 1.8vw, 29px); letter-spacing: 0; }

.desktop-nav {
  gap: clamp(18px, 3vw, 44px);
  font-size: clamp(15px, 1.35vw, 18px);
  white-space: nowrap;
}

.top-actions { gap: 10px; }
.theme-toggle { width: 52px; height: 52px; font-size: 19px; }
.language-button { height: 52px; min-width: 96px; padding: 0 17px; }
.top-cta { min-height: 52px; padding: 0 27px; font-size: 17px; }
.menu-toggle { display: none; }
.mobile-menu { top: 86px; }

.section { padding: 112px clamp(20px, 3.3vw, 42px); }

.hero {
  min-height: 100vh;
  padding-top: 142px;
  grid-template-columns: minmax(0, 0.9fr) minmax(470px, 1.05fr);
  gap: clamp(30px, 4vw, 58px);
}

.hero h1 { font-size: clamp(46px, 6.6vw, 92px); max-width: 680px; }
.hero-text { font-size: clamp(17px, 1.65vw, 23px); max-width: 620px; margin-top: 24px; }
.eyebrow { font-size: 12px; margin-bottom: 15px; }
.hero-buttons { margin-top: 34px; gap: 14px; }
.primary-button, .secondary-button { min-height: 58px; padding: 0 27px; border-radius: 20px; font-size: 17px; }
.button-arrow { width: 34px; height: 34px; }
.hero-stats { margin-top: 34px; gap: 12px; max-width: 560px; }
.hero-stats a { padding: 16px; border-radius: 18px; }
.hero-stats strong { font-size: 22px; }
.hero-stats span { font-size: 14px; }

.hero-visual {
  min-height: 500px;
  border-radius: 32px;
}
.picture-card { inset: 24px; }
.picture-placeholder { border-radius: 26px; }
.picture-placeholder span { font-size: clamp(38px, 5.4vw, 72px); }
.picture-placeholder p { font-size: 17px; }
.visual-arrow { width: 54px; height: 54px; font-size: 46px; }
.visual-prev { left: 22px; }
.visual-next { right: 22px; }

.section-header { margin-bottom: 56px; }
.section-header h2 { font-size: clamp(38px, 5.2vw, 68px); }
.section-header p:not(.eyebrow) { font-size: clamp(16px, 1.6vw, 22px); margin-top: 18px; }

.process-layout { gap: 52px; }
.timeline { gap: 44px; }
.timeline-item { grid-template-columns: 72px 1fr; gap: 24px; }
.timeline-icon { width: 72px; height: 72px; font-size: 28px; }
.timeline::before { left: 34px; }
.timeline-item h3 { font-size: clamp(24px, 3.4vw, 40px); }
.timeline-item p { font-size: 18px; }
.lesson-slide { min-height: 360px; }
.lesson-slide h3 { font-size: clamp(30px, 4.1vw, 52px); }
.lesson-slide p { font-size: 18px; }

.feature-card { min-height: 320px; padding: 30px; }
.feature-icon { width: 62px; height: 62px; font-size: 26px; }
.feature-card h3 { margin-top: 28px; font-size: 22px; }
.feature-card p { font-size: 17px; }

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: center;
}
.price-card {
  min-height: 560px;
  padding: 34px 24px;
  border-radius: 28px;
}
.price-card.popular {
  min-height: 590px;
  transform: scale(1.025);
  z-index: 2;
}
.price-card.popular:hover { transform: scale(1.025) translateY(-5px); }
.price-card h3 { font-size: clamp(20px, 1.75vw, 25px); }
.price span { font-size: clamp(36px, 4vw, 58px); }
.price-card p { font-size: 16px; }
.price-card ul { gap: 15px; font-size: 15.5px; }

/* Keep desktop menu visible longer; only collapse when it really cannot fit. */
@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .hero, .process-layout { grid-template-columns: 1fr; }
  .hero-visual { min-height: 460px; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .price-card.popular { transform: none; min-height: 560px; }
  .price-card.popular:hover { transform: translateY(-5px); }
}

@media (min-width: 981px) and (max-width: 1280px) {
  .topbar { padding: 0 22px; }
  .brand-name { font-size: 22px; }
  .desktop-nav { gap: 22px; font-size: 15px; }
  .top-cta { padding: 0 22px; }
  .theme-toggle, .language-button { height: 48px; }
  .theme-toggle { width: 48px; }
  .hero { grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1fr); }
  .hero-visual { min-height: 430px; }
}

/* =========================
   V3 refinements
   ========================= */
html { scroll-padding-top: 92px; }

.topbar {
  height: 86px;
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr) auto;
  gap: clamp(16px, 2.2vw, 34px);
  padding: 0 clamp(22px, 3vw, 48px);
}

.brand-name {
  font-size: clamp(20px, 1.8vw, 30px);
}

.desktop-nav {
  width: 100%;
  min-width: 0;
  justify-content: space-evenly;
  gap: clamp(14px, 2.4vw, 46px);
  font-size: clamp(15px, 1.25vw, 18px);
}

.desktop-nav a {
  position: relative;
  padding: 32px 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
}

.desktop-nav a:hover::after { transform: scaleX(1); }

.top-actions {
  justify-content: flex-end;
  min-width: max-content;
}

.hero.section {
  max-width: none;
  min-height: 100vh;
  padding: 156px clamp(24px, 4.2vw, 60px) 74px;
  grid-template-columns: minmax(420px, 0.78fr) minmax(520px, 1.22fr);
  gap: clamp(34px, 4.8vw, 82px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 86px 0 0;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 35%, rgba(11, 130, 196, 0.30), transparent 36%),
    radial-gradient(circle at 76% 26%, rgba(91, 72, 214, 0.18), transparent 34%),
    linear-gradient(105deg, rgba(8, 17, 29, 0.97) 0%, rgba(10, 28, 45, 0.92) 42%, rgba(15, 24, 51, 0.94) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 86px 0 0;
  z-index: -1;
  opacity: .22;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.18) 1px, transparent 0);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, black, transparent 88%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(52px, 7.2vw, 112px);
  max-width: 720px;
}

.hero-text {
  max-width: 680px;
}

.hero-visual {
  min-height: clamp(430px, 39vw, 620px);
  border-radius: 32px;
  transform: translateY(8px);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 68%, rgba(8,17,29,.5));
  z-index: 2;
}

.picture-placeholder {
  border-style: solid;
  background:
    linear-gradient(135deg, rgba(7, 12, 22, 0.80), rgba(11, 130, 196, 0.14)),
    radial-gradient(circle at 72% 22%, rgba(91, 72, 214, .18), transparent 34%);
}

/* The lesson flow items no longer glow permanently. They light up only when hovered. */
.timeline-item,
.timeline-item.active {
  opacity: .46;
}

.timeline-item h3,
.timeline-item p,
.timeline-item span,
.timeline-icon {
  transition: color .22s ease, opacity .22s ease, text-shadow .22s ease, border-color .22s ease, background .22s ease, transform .22s ease;
}

.timeline-item:hover {
  opacity: 1;
}

.timeline-item:hover .timeline-icon {
  transform: scale(1.04);
  border-color: rgba(85, 200, 255, .75);
  background: rgba(19, 143, 199, .16);
  box-shadow: 0 0 34px rgba(19, 143, 199, .22);
}

.timeline-item:hover h3 {
  color: var(--text);
  text-shadow: 0 0 28px rgba(85, 200, 255, .28);
}

.timeline-item:hover p {
  color: var(--soft);
}

.timeline-item:hover span {
  color: rgba(85, 200, 255, .8);
}

.pricing-grid {
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  align-items: center;
}

.price-card.popular {
  transform: scale(1.035);
}

.price-card.popular:hover {
  transform: scale(1.035) translateY(-5px);
}

@media (min-width: 981px) and (max-width: 1280px) {
  .topbar {
    grid-template-columns: auto minmax(330px, 1fr) auto;
    gap: 14px;
    padding: 0 20px;
  }
  .desktop-nav { gap: 16px; font-size: 14px; }
  .brand-name { font-size: 21px; }
  .top-cta { padding: 0 20px; }
  .hero.section {
    grid-template-columns: minmax(340px, .86fr) minmax(430px, 1.14fr);
    gap: 34px;
    padding-left: 32px;
    padding-right: 32px;
  }
  .hero h1 { font-size: clamp(48px, 6vw, 78px); }
}

@media (max-width: 980px) {
  .topbar {
    display: flex;
    height: 86px;
  }
  .hero.section {
    max-width: var(--container);
    grid-template-columns: 1fr;
    padding-top: 132px;
  }
}

/* =========================
   V4 trust section
   ========================= */
.trust {
  position: relative;
  max-width: none;
  padding-top: 86px;
  padding-bottom: 104px;
  border-top: 1px solid rgba(52, 175, 237, .18);
  background:
    radial-gradient(circle at 16% 6%, rgba(11, 130, 196, .18), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(91, 72, 214, .12), transparent 34%),
    linear-gradient(180deg, rgba(13, 31, 48, .96), rgba(8, 18, 29, .98));
  overflow: hidden;
}

html[data-theme="light"] .trust {
  background:
    radial-gradient(circle at 16% 6%, rgba(11, 130, 196, .14), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(91, 72, 214, .10), transparent 34%),
    linear-gradient(180deg, rgba(31, 43, 55, .96), rgba(24, 34, 45, .98));
}

.trust::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.20) 1px, transparent 0);
  background-size: 36px 36px;
  pointer-events: none;
}

.trust > * {
  position: relative;
  z-index: 1;
}

.trust-numbers {
  width: min(1120px, calc(100vw - 48px));
  margin: 0 auto 92px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 5vw, 120px);
}

.trust-number {
  text-align: center;
}

.trust-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(19, 143, 199, .20);
  border: 1px solid rgba(85, 200, 255, .22);
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
  font-size: 24px;
}

.trust-number strong {
  display: block;
  color: var(--text);
  font-size: clamp(42px, 5vw, 68px);
  line-height: .9;
  letter-spacing: 0;
}

.trust-number strong span {
  color: var(--accent);
  margin-left: 4px;
}

.trust-number p {
  margin-top: 16px;
  color: var(--muted);
  font-weight: 700;
  font-size: 17px;
}

.trust-header {
  width: min(960px, calc(100vw - 48px));
  margin-left: auto;
  margin-right: auto;
}

.trust-grid {
  width: min(1320px, calc(100vw - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.trust-card {
  min-height: 290px;
  padding: 26px 22px;
  border-radius: 28px;
  background: rgba(255,255,255,.035);
  border: 1px dashed rgba(207, 225, 244, .20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.trust-card:hover {
  transform: translateY(-5px);
  border-color: rgba(85, 200, 255, .48);
  background: rgba(19, 143, 199, .08);
  box-shadow: 0 26px 64px rgba(0,0,0,.20);
}

.trust-card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(19, 143, 199, .18);
  margin-bottom: 30px;
  font-size: 24px;
}

.trust-card h3 {
  color: var(--text);
  font-size: clamp(19px, 1.55vw, 24px);
  line-height: 1.08;
  letter-spacing: 0;
}

.trust-card p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
}

@media (min-width: 981px) and (max-width: 1280px) {
  .trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trust-card.wide { grid-column: span 2; }
}

@media (max-width: 980px) {
  .trust { padding-top: 72px; }
  .trust-numbers { grid-template-columns: 1fr 1fr; margin-bottom: 68px; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-card.wide { grid-column: span 2; }
}

@media (max-width: 620px) {
  .trust-numbers,
  .trust-grid { width: min(100%, calc(100vw - 32px)); }
  .trust-numbers { gap: 14px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-card.wide { grid-column: auto; }
  .trust-card { min-height: auto; }
}

/* =========================
   V5 trust section: list layout
   ========================= */
.trust {
  padding-bottom: 96px;
}

.trust-numbers {
  margin-bottom: 76px;
}

.trust-list-wrap {
  width: min(1080px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 28px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  border: 1px dashed rgba(207, 225, 244, .20);
  box-shadow: 0 26px 80px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.045);
}

.trust-list {
  list-style: none;
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
}

.trust-list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 22px 24px;
  border-radius: 24px;
  background: rgba(5, 14, 24, .28);
  border: 1px solid rgba(207, 225, 244, .08);
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.trust-list li:hover {
  transform: translateX(6px);
  border-color: rgba(85, 200, 255, .40);
  background: rgba(19, 143, 199, .075);
  box-shadow: 0 22px 60px rgba(0,0,0,.18);
}

.trust-list-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(19, 143, 199, .18);
  border: 1px solid rgba(85, 200, 255, .16);
  font-size: 23px;
}

.trust-list strong {
  display: block;
  color: var(--text);
  font-size: clamp(21px, 1.7vw, 28px);
  line-height: 1.08;
  letter-spacing: 0;
}

.trust-list p {
  margin-top: 8px;
  color: var(--muted);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.5;
  font-weight: 650;
}

html[data-theme="light"] .trust-list-wrap {
  background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
}

html[data-theme="light"] .trust-list li {
  background: rgba(255,255,255,.055);
}

@media (max-width: 720px) {
  .trust-numbers {
    margin-bottom: 44px;
  }

  .trust-list-wrap {
    width: min(100%, calc(100vw - 32px));
    padding: 14px;
    border-radius: 26px;
  }

  .trust-list li {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 16px;
    border-radius: 20px;
  }

  .trust-list-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    font-size: 20px;
  }
}

/* =========================
   V6 top menu + CTA hover
   ========================= */
.topbar {
  grid-template-columns: minmax(210px, auto) minmax(470px, 1fr) minmax(330px, auto);
  gap: clamp(10px, 1.4vw, 24px);
}

.desktop-nav {
  display: flex;
  width: 100%;
  min-width: 0;
  justify-content: space-between;
  gap: clamp(8px, 1.1vw, 22px);
  font-size: clamp(12px, 0.98vw, 16px);
  font-weight: 800;
}

.desktop-nav a {
  white-space: nowrap;
  padding-left: 2px;
  padding-right: 2px;
}

.top-actions {
  gap: clamp(8px, 1vw, 12px);
}

.theme-toggle {
  width: 50px;
  height: 50px;
}

.language-button {
  height: 50px;
  min-width: 92px;
  padding: 0 15px;
}

.top-cta {
  min-height: 50px;
  padding: 0 clamp(20px, 2vw, 30px);
}

.primary-button {
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease, background .22s ease;
}

.primary-button .button-arrow {
  transition: transform .22s ease, background .22s ease;
}

.primary-button:hover {
  transform: scale(1.035);
  filter: brightness(1.12);
  box-shadow: 0 20px 58px rgba(19, 143, 199, 0.38), 0 0 34px rgba(91, 72, 214, 0.18);
}

.primary-button:hover .button-arrow {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.24);
}

@media (min-width: 1051px) {
  .desktop-nav { display: flex !important; }
  .menu-toggle { display: none !important; }
}

@media (min-width: 1051px) and (max-width: 1350px) {
  .topbar {
    grid-template-columns: minmax(190px, auto) minmax(420px, 1fr) minmax(300px, auto);
    padding-left: 18px;
    padding-right: 18px;
  }
  .brand-name { font-size: clamp(18px, 1.55vw, 22px); }
  .brand-mark { width: 36px; height: 36px; }
  .desktop-nav { font-size: 12.5px; gap: 8px; }
  .theme-toggle { width: 46px; height: 46px; }
  .language-button { height: 46px; min-width: 84px; padding: 0 12px; }
  .top-cta { min-height: 46px; padding: 0 18px; font-size: 15px; }
}

@media (max-width: 1050px) {
  .desktop-nav { display: none !important; }
  .menu-toggle { display: block; }
}

/* =========================
   V7 fixed menu + Q&A
   ========================= */
html { scroll-padding-top: 92px; }

.topbar {
  position: fixed !important;
  top: 0 !important;
  transform: none !important;
  height: 86px;
  display: grid !important;
  grid-template-columns: minmax(220px, auto) minmax(520px, 1fr) minmax(260px, auto);
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
  padding: 0 clamp(18px, 3vw, 46px);
}

.desktop-nav {
  display: flex !important;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
  min-width: 0;
  gap: clamp(8px, 1.2vw, 24px);
  font-size: clamp(12px, 0.95vw, 16px);
  font-weight: 850;
}

.desktop-nav a {
  white-space: nowrap;
  padding: 31px 0;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: clamp(8px, 1vw, 12px);
}

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

.top-cta,
.price-card a {
  transition: transform .22s ease, filter .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.top-cta:hover,
.price-card a:hover {
  transform: translateY(-2px) scale(1.035);
  filter: brightness(1.12);
  box-shadow: 0 20px 56px rgba(19, 143, 199, 0.36), 0 0 30px rgba(91, 72, 214, 0.18);
}

.top-cta:active,
.price-card a:active {
  transform: translateY(0) scale(0.99);
}

.features-grid .feature-card a {
  cursor: pointer;
}

.qa {
  max-width: var(--container);
  padding-top: 120px;
}

.qa-list {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin: 52px auto 0;
}

.qa-item {
  border: 1px dashed var(--line-strong);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.qa-item:hover {
  border-color: rgba(19,143,199,.75);
  background: linear-gradient(145deg, rgba(19,143,199,.095), rgba(91,72,214,.045));
  transform: translateY(-2px);
}

.qa-item summary {
  cursor: pointer;
  list-style: none;
  padding: 26px 30px;
  color: var(--text);
  font-size: clamp(20px, 2vw, 29px);
  font-weight: 900;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.qa-item summary::-webkit-details-marker { display: none; }

.qa-item summary::after {
  content: "+";
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 26px;
  line-height: 1;
  transition: transform .2s ease;
}

.qa-item[open] summary::after {
  content: "–";
  transform: rotate(180deg);
}

.qa-item p {
  padding: 0 30px 28px;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.6;
  max-width: 820px;
}

@media (max-width: 1280px) {
  .topbar {
    grid-template-columns: minmax(190px, auto) minmax(450px, 1fr) minmax(240px, auto);
    padding-left: 18px;
    padding-right: 18px;
  }
  .brand-name { font-size: clamp(18px, 1.65vw, 24px); }
  .brand-mark { width: 36px; height: 36px; }
  .desktop-nav { font-size: clamp(11px, 0.9vw, 14px); gap: 8px; }
  .theme-toggle { width: 44px; height: 44px; }
  .language-button { height: 44px; min-width: 78px; padding: 0 10px; }
  .top-cta { min-height: 44px; padding: 0 18px; font-size: 14px; }
}

@media (max-width: 980px) {
  .topbar {
    height: auto;
    min-height: 96px;
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand actions" "nav nav";
    row-gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .brand { grid-area: brand; }
  .top-actions { grid-area: actions; }
  .desktop-nav {
    grid-area: nav;
    justify-content: space-between;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .desktop-nav::-webkit-scrollbar { display: none; }
  .desktop-nav a { padding: 7px 0; }
  html { scroll-padding-top: 126px; }
  .hero.section { padding-top: 150px; }
}

@media (max-width: 640px) {
  .brand-name { font-size: 17px; }
  .brand { gap: 9px; }
  .theme-toggle, .language-button { height: 40px; }
  .theme-toggle { width: 40px; }
  .language-button { min-width: 74px; font-size: 13px; }
  .top-cta { min-height: 40px; padding: 0 14px; font-size: 13px; }
  .desktop-nav { font-size: 11.5px; gap: 12px; }
}

/* V8 adjustments */
.brand-mark {
  overflow: hidden;
  padding: 0;
  background: #02050b;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.desktop-nav {
  display: flex !important;
  flex: 1 1 auto;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 36px);
  font-size: clamp(15px, 1.08vw, 20px);
  white-space: nowrap;
  min-width: 0;
}

.desktop-nav a {
  font-weight: 900;
  letter-spacing: 0;
}

.topbar {
  justify-content: flex-start;
  gap: clamp(18px, 2vw, 34px);
}

.top-actions {
  margin-left: auto;
  flex: 0 0 auto;
}

.top-cta {
  min-height: 66px;
  padding: 0 clamp(34px, 3.2vw, 54px);
  font-size: clamp(18px, 1.35vw, 24px);
  min-width: 132px;
}

.top-cta:hover {
  transform: translateY(-2px) scale(1.055);
  filter: brightness(1.16) saturate(1.08);
}

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

.window-bar p {
  display: none !important;
}

.price-card a {
  transition: transform .22s ease, filter .22s ease, box-shadow .22s ease, background .22s ease;
}

.price-card a:hover {
  transform: translateY(-3px) scale(1.045);
  filter: brightness(1.15) saturate(1.08);
}

.footer {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 58px;
}

.footer-book-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 70px;
  min-width: min(520px, 100%);
  padding: 0 42px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), #0cb6d2 70%);
  color: #fff !important;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 900;
  box-shadow: 0 20px 60px rgba(19,143,199,.28);
  transition: transform .22s ease, filter .22s ease, box-shadow .22s ease;
}

.footer-book-button:hover {
  transform: translateY(-3px) scale(1.035);
  filter: brightness(1.16) saturate(1.08);
  box-shadow: 0 26px 72px rgba(19,143,199,.4), 0 0 36px rgba(91,72,214,.20);
}

@media (max-width: 1180px) {
  .topbar { gap: 12px; padding-inline: 18px; }
  .brand-name { font-size: clamp(18px, 2vw, 25px); }
  .brand-mark { width: 40px; height: 40px; }
  .desktop-nav {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 18px;
    font-size: 14px;
  }
  .desktop-nav::-webkit-scrollbar { display: none; }
  .top-cta { min-height: 54px; min-width: 110px; padding: 0 24px; font-size: 17px; }
}

@media (max-width: 760px) {
  .topbar {
    height: auto;
    min-height: 92px;
    flex-wrap: wrap;
    padding-block: 12px;
  }
  .brand { order: 1; }
  .top-actions { order: 2; }
  .desktop-nav {
    order: 3;
    width: 100%;
    flex-basis: 100%;
    padding: 4px 0 2px;
    font-size: 13px;
    gap: 18px;
  }
  .theme-toggle, .language-button { min-height: 44px; }
  .top-cta { min-height: 46px; min-width: 92px; padding: 0 18px; font-size: 15px; }
  .site-shell { padding-top: 132px; }
}

/* Service terms and merchant information */
.terms {
  border-top: 1px solid var(--line);
}

.terms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: var(--container);
  margin: 54px auto 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.terms-item {
  position: relative;
  min-height: 260px;
  padding: 38px clamp(26px, 4vw, 58px) 42px;
}

.terms-item:nth-child(odd) {
  border-right: 1px solid var(--line-strong);
}

.terms-item:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line-strong);
}

.terms-number {
  display: block;
  margin-bottom: 26px;
  color: #4cc8ef;
  font-size: 14px;
  font-weight: 800;
}

.terms-item h3 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: 0;
}

.terms-item p {
  color: var(--muted);
  line-height: 1.75;
}

.terms-item p {
  max-width: 660px;
  margin: 18px 0 0;
  font-size: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-identity {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 760px;
}

.footer-identity p {
  margin: 0;
  line-height: 1.6;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
}

.footer-contact span {
  color: var(--muted);
  font-weight: 700;
}

.footer-contact a {
  overflow-wrap: anywhere;
}

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

  .terms-item {
    min-height: auto;
  }

  .terms-item:nth-child(odd) {
    border-right: 0;
  }

  .terms-item:not(:last-child) {
    border-bottom: 1px solid var(--line-strong);
  }
}

@media (max-width: 480px) {
  .brand-name { font-size: 17px; }
  .brand-mark { width: 36px; height: 36px; }
  .top-actions { gap: 6px; }
  .theme-toggle { width: 42px; height: 42px; }
  .language-button { padding: 0 12px; font-size: 13px; }
  .top-cta { min-width: 82px; min-height: 42px; padding: 0 14px; font-size: 14px; }
  .desktop-nav { font-size: 12px; gap: 15px; }
}


/* V9 adjustments */
.contact-invite {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.contact-invite p {
  color: var(--soft);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
}

.qa-item:target {
  border-color: rgba(19,143,199,.95);
  box-shadow: 0 0 0 1px rgba(19,143,199,.28), 0 22px 70px rgba(19,143,199,.16);
}

/* =========================
   V11 pricing language + UA discount toggle
   ========================= */
[hidden] { display: none !important; }

.price {
  flex-wrap: wrap;
  row-gap: 8px;
}

.price .price-normal {
  flex-basis: 100%;
  min-height: 20px;
  font-size: clamp(18px, 1.6vw, 25px);
  line-height: 1;
  color: rgba(207, 225, 244, .56);
  text-decoration: line-through;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .22s ease, transform .22s ease;
}

.price.discounted .price-normal {
  opacity: 1;
  transform: translateY(0);
}

.price .price-current {
  transition: color .22s ease, text-shadow .22s ease, transform .22s ease;
}

.price.discounted .price-current {
  color: #7bddff;
  text-shadow: 0 0 22px rgba(48, 200, 255, .52), 0 0 56px rgba(114, 60, 255, .28);
  transform: translateY(-1px);
}

.military-discount-wrap {
  margin: 34px auto 0;
  display: flex;
  justify-content: center;
}

.military-discount-toggle {
  min-height: 72px;
  min-width: min(480px, calc(100vw - 48px));
  border: 1px solid rgba(85, 200, 255, .38);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(18, 158, 220, .95), rgba(18, 190, 205, .95));
  color: white;
  font: inherit;
  font-weight: 950;
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 20px 58px rgba(0, 170, 255, .22), inset 0 1px 0 rgba(255,255,255,.20);
  transition: transform .22s ease, filter .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.military-discount-toggle:hover {
  transform: translateY(-3px) scale(1.025);
  filter: brightness(1.12);
  box-shadow: 0 28px 82px rgba(0, 190, 255, .34), inset 0 1px 0 rgba(255,255,255,.26);
}

.military-discount-toggle.active {
  border-color: rgba(181, 138, 255, .62);
  background: linear-gradient(135deg, rgba(80, 130, 255, .94), rgba(148, 82, 255, .88));
  box-shadow: 0 26px 92px rgba(93, 83, 255, .32), inset 0 1px 0 rgba(255,255,255,.22);
}

html[data-theme="light"] .price .price-normal {
  color: rgba(54, 69, 91, .54);
}

@media (max-width: 760px) {
  .military-discount-toggle {
    min-height: 62px;
    border-radius: 20px;
  }
}

/* V12: second highlighted plan */
.price-card.best-value {
  border: 3px solid rgba(36, 211, 137, 0.88);
  border-style: solid;
  transform: scale(1.035);
  box-shadow: 0 0 0 1px rgba(36, 211, 137, 0.12), 0 24px 70px rgba(20, 150, 112, 0.16);
}

.price-card.best-value:hover {
  transform: scale(1.035) translateY(-5px);
  border-color: rgba(48, 240, 160, 0.95);
}

.value-badge {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #20c97a, #19a98f);
  color: white;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.price-card.best-value .price-current {
  text-shadow: 0 0 30px rgba(36, 211, 137, 0.2);
}

.price-card.best-value li::before {
  color: #2ee89b;
}

@media (max-width: 980px) {
  .price-card.best-value { transform: none; min-height: 560px; }
  .price-card.best-value:hover { transform: translateY(-5px); }
}

/* V13: longer pricing CTA text */
.price-card a {
  width: 100%;
  max-width: 260px;
  min-height: 64px;
  padding-inline: 18px;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.15;
  text-align: center;
}

/* V14: pack discount banner below pricing */
.pack-discount-banner {
  width: min(1180px, calc(100% - 48px));
  margin: 34px auto 0;
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 34px;
  border-radius: 28px;
  border: 1px solid rgba(85, 200, 255, .35);
  background:
    radial-gradient(circle at 18% 20%, rgba(0, 180, 255, .16), transparent 35%),
    radial-gradient(circle at 82% 10%, rgba(122, 80, 255, .14), transparent 36%),
    rgba(16, 29, 42, .72);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255,255,255,.08);
  text-align: center;
}

.pack-discount-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 18px;
  background: rgba(37, 178, 229, .16);
  border: 1px solid rgba(85, 200, 255, .24);
  font-size: 25px;
}

.pack-discount-banner p {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0;
  font-size: clamp(21px, 2vw, 32px);
  text-shadow: 0 0 34px rgba(42, 194, 255, .16);
}

html[data-theme="light"] .pack-discount-banner {
  background:
    radial-gradient(circle at 18% 20%, rgba(0, 145, 215, .13), transparent 35%),
    radial-gradient(circle at 82% 10%, rgba(122, 80, 255, .11), transparent 36%),
    rgba(235, 240, 247, .72);
}

@media (max-width: 700px) {
  .pack-discount-banner {
    flex-direction: column;
    width: min(100% - 32px, 1180px);
    padding: 24px 18px;
    border-radius: 24px;
  }
}

/* V18: UA military toggle moved directly below pricing title + tighter price headers */
.pricing-header-discount {
  margin: 14px auto 18px;
}

.pricing-header-discount .military-discount-toggle {
  min-height: 58px;
  min-width: min(420px, calc(100vw - 48px));
  border-radius: 20px;
  font-size: clamp(18px, 1.55vw, 24px);
}

.price-card h3 {
  margin-bottom: 0 !important;
}

.price {
  margin-top: 12px !important;
  margin-bottom: 22px;
}

.price .price-normal {
  min-height: 0;
  margin-bottom: -2px;
}

.price-card.popular .price,
.price-card.best-value .price {
  margin-top: 10px !important;
}

@media (max-width: 760px) {
  .pricing-header-discount {
    margin: 12px auto 16px;
  }
  .pricing-header-discount .military-discount-toggle {
    min-height: 54px;
    min-width: min(360px, calc(100vw - 36px));
  }
}


/* V22: three pricing cards only — 1-1 left, group best value middle, video right */
@media (min-width: 981px) {
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* V23: new Bohdan Tutor identity assets */
.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: 0 8px 26px rgba(76, 39, 255, .20), 0 0 22px rgba(244, 38, 228, .12);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

@media (max-width: 1180px) {
  .brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 12px;
  }
  .brand-mark img { border-radius: 12px; }
}

@media (max-width: 760px) {
  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 11px;
  }
  .brand-mark img { border-radius: 11px; }
}

/* V24: balanced desktop hero and pricing geometry */
.hero-content,
.hero-visual {
  min-width: 0;
}

.hero h1 {
  max-width: 100%;
}

.price-card a {
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 981px) {
  .pricing-grid {
    align-items: stretch;
  }

  .price-card.best-value,
  .price-card.best-value:hover {
    transform: none;
  }
}

@media (min-width: 981px) and (max-width: 1400px) {
  .hero.section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 38px;
  }

  .hero h1 {
    font-size: 64px;
    line-height: 1.02;
  }

  html[lang="uk"] .hero h1 {
    font-size: 58px;
  }
}
