/* ============================================================
   DEUTSCHWERK — «Bauhaus Nacht»
   Тепла нічна палітра + один бурштиновий акцент.
   Елевація — світлом і кольором, тіні лише жорсткі (постерні).
   ============================================================ */

:root {
  /* Surfaces — теплий графіт (не синій, як у Mercury) */
  --bg-0: #121210;
  --bg-1: #1a1a17;
  --bg-2: #232320;

  /* Text */
  --ink: #f2efe6;
  --muted: #aaa69a;
  --line: rgba(242, 239, 230, 0.13);

  /* Accent — бурштин (відсилка до золота прапора) */
  --amber: #e8a33d;
  --amber-soft: rgba(232, 163, 61, 0.14);
  --on-amber: #181206;
  /* Червоний — лише у триколорі-підписі, ніде більше */
  --rot: #c8401f;

  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1160px;

  --shadow-hard: 7px 7px 0 rgba(232, 163, 61, 0.22);
  --shadow-hard-hover: 10px 10px 0 rgba(232, 163, 61, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  /* ледь помітна баугауз-сітка */
  background-image:
    linear-gradient(rgba(242, 239, 230, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 239, 230, 0.045) 1px, transparent 1px);
  background-size: 96px 96px;
  background-attachment: fixed;
}

img, svg { display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 820px; }

/* ---------- Триколор-маркер (підпис секцій) ---------- */
.tricolor {
  display: inline-flex;
  gap: 4px;
  margin-right: 10px;
  vertical-align: middle;
}
.tricolor i {
  width: 8px; height: 8px;
  display: inline-block;
}
.tricolor i:nth-child(1) { background: var(--ink); opacity: .55; }
.tricolor i:nth-child(2) { background: var(--rot); }
.tricolor i:nth-child(3) { background: var(--amber); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 16px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
              background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  touch-action: manipulation;
}
.btn-primary {
  background: var(--amber);
  color: var(--on-amber);
  box-shadow: var(--shadow-hard);
}
.btn-primary:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-hard-hover);
}
.btn-primary:active { transform: translate(0, 0); box-shadow: 3px 3px 0 rgba(232,163,61,.25); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-sm { padding: 10px 20px; font-size: 14px; white-space: nowrap; }
.btn-block { width: 100%; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(18, 18, 16, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(18, 18, 16, 0.85);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark { color: var(--amber); }
.logo-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.06em;
}
.logo-text em {
  font-style: normal;
  font-weight: 300;
  color: var(--amber);
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--amber); }
.nav-actions { display: flex; align-items: center; gap: 16px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 140px 0 96px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.shape { position: absolute; will-change: transform; }
.shape-circle {
  width: 420px; height: 420px;
  border: 2px solid rgba(232, 163, 61, 0.25);
  border-radius: 50%;
  top: -90px; right: -100px;
  animation: drift 14s ease-in-out infinite;
}
.shape-circle-fill {
  width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(232,163,61,.28), rgba(232,163,61,0) 70%);
  border-radius: 50%;
  bottom: 16%; right: 22%;
  animation: drift 11s ease-in-out infinite reverse;
}
.shape-triangle {
  width: 0; height: 0;
  border-left: 70px solid transparent;
  border-right: 70px solid transparent;
  border-bottom: 120px solid rgba(200, 64, 31, 0.16);
  top: 24%; right: 14%;
  animation: drift 17s ease-in-out infinite;
}
.shape-square {
  width: 90px; height: 90px;
  border: 2px solid var(--line);
  transform: rotate(18deg);
  bottom: 22%; left: -24px;
  animation: spin-slow 36s linear infinite;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-18px, 22px); }
}
@keyframes spin-slow {
  to { transform: rotate(378deg); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 18px;
  margin-bottom: 36px;
  background: rgba(26, 26, 23, 0.6);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.1rem, 5.4vw, 4.2rem);
  line-height: 1.14;
  letter-spacing: 0.005em;
  max-width: 17ch;
  margin-bottom: 28px;
}
.rotator {
  display: inline-block;
  position: relative;
  color: var(--amber);
  min-width: 6ch;
}
.rotator::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 3px;
  background: var(--amber);
  opacity: 0.5;
}
.rotator-word {
  display: inline-block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.rotator-word.out { opacity: 0; transform: translateY(12px); }

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 40px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 72px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 38px;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat dd {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

/* ---------- MARQUEE ---------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 20px;
  white-space: nowrap;
  color: var(--ink);
}
.marquee-track span i {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  margin-left: 12px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- SECTIONS ---------- */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-1); }
.section-head { margin-bottom: 56px; }
.section-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.18;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 60ch;
}

/* ---------- LEVELS ---------- */
.level { border-bottom: 1px solid var(--line); }
.level:first-child { border-top: 1px solid var(--line); }
.level-head {
  width: 100%;
  display: grid;
  grid-template-columns: 110px 1fr auto 32px;
  align-items: center;
  gap: 24px;
  background: none;
  border: none;
  padding: 28px 8px;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
  transition: background 0.2s ease;
}
.level-head:hover { background: rgba(232, 163, 61, 0.05); }
.level-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--amber);
  transition: color 0.25s ease;
}
.level-head:hover .level-num,
.level-head[aria-expanded="true"] .level-num { color: var(--amber); }
.level-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 21px;
}
.level-meta { color: var(--muted); font-size: 14px; white-space: nowrap; }
.level-chevron {
  width: 12px; height: 12px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  justify-self: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
  flex: none;
}
.level-head[aria-expanded="true"] .level-chevron,
.faq-q[aria-expanded="true"] .level-chevron {
  transform: rotate(225deg);
  border-color: var(--amber);
}
.level-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.level-body p {
  color: var(--muted);
  padding: 0 8px 8px;
  max-width: 70ch;
}
.level-skills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 8px 28px;
}
.level-skills li {
  font-size: 13px;
  font-weight: 500;
  color: var(--amber);
  background: var(--amber-soft);
  border-radius: 100px;
  padding: 6px 14px;
}

/* ---------- BENTO / CARDS ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 163, 61, 0.45);
}
.card-icon {
  display: inline-flex;
  color: var(--amber);
  background: var(--amber-soft);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 20px;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: 15px; }

/* ---------- TEACHERS ---------- */
.teachers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.teacher {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.teacher:hover { transform: translateY(-5px); border-color: rgba(232, 163, 61, 0.45); }
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  color: var(--amber);
  margin-bottom: 22px;
}
.avatar-circle { border: 2px solid var(--amber); border-radius: 50%; }
.avatar-triangle {
  border: 2px solid var(--rot);
  color: var(--rot);
  clip-path: none;
  border-radius: 4px 4px 50% 50%;
}
.avatar-square { border: 2px solid var(--ink); color: var(--ink); border-radius: 8px; }
.teacher h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 6px;
}
.teacher-role {
  color: var(--amber);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.teacher p:not(.teacher-role) { color: var(--muted); font-size: 15px; }

/* ---------- PRICING ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.price-card:hover { transform: translateY(-5px); }
.price-featured {
  border-color: var(--amber);
  box-shadow: var(--shadow-hard);
}
.price-badge {
  position: absolute;
  top: -14px; left: 28px;
  background: var(--amber);
  color: var(--on-amber);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  padding: 5px 14px;
}
.price-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 18px;
}
.price {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 4px;
}
.price span {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}
.price-note { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.price-list {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}
.price-list li {
  position: relative;
  padding: 8px 0 8px 30px;
  color: var(--ink);
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.price-list li:last-child { border-bottom: none; }
.price-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 14px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  transform: rotate(-45deg);
}

/* ---------- REVIEWS ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.review blockquote {
  font-size: 16px;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 24px;
}
.review blockquote::before {
  content: "„";
  display: block;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 0.6;
  color: var(--amber);
  margin-bottom: 16px;
}
.review figcaption strong {
  display: block;
  font-weight: 600;
  font-size: 15px;
}
.review figcaption span { color: var(--muted); font-size: 13px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  padding: 24px 8px;
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq-q:hover { color: var(--amber); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a p {
  color: var(--muted);
  padding: 0 8px 24px;
  max-width: 65ch;
}

/* ---------- CTA ---------- */
.section-cta { padding-bottom: 128px; }
.cta-box {
  background: var(--bg-1);
  border: 1px solid rgba(232, 163, 61, 0.4);
  border-radius: var(--radius);
  padding: 56px 48px;
  box-shadow: var(--shadow-hard);
}
.cta-box .section-title { margin-bottom: 12px; }
.cta-box .section-sub { margin-bottom: 36px; }
.cta-form { display: flex; flex-direction: column; gap: 20px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field input,
.form-field select {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 16px;
  transition: border-color 0.2s ease;
  width: 100%;
}
.form-field input::placeholder { color: rgba(170, 166, 154, 0.6); }
.form-field input:focus, .form-field select:focus {
  border-color: var(--amber);
  outline: none;
}
.form-field input.invalid { border-color: var(--rot); }
.form-status { min-height: 24px; font-size: 14px; }
.form-status.ok { color: var(--amber); }
.form-status.err { color: #e06a48; }

/* ---------- FOOTER ---------- */
.footer { background: var(--bg-1); }
.footer-stripe { display: flex; height: 4px; }
.footer-stripe i { flex: 1; }
.footer-stripe i:nth-child(1) { background: #000; }
.footer-stripe i:nth-child(2) { background: var(--rot); }
.footer-stripe i:nth-child(3) { background: var(--amber); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 48px;
}
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; }
.footer-nav, .footer-contacts { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a, .footer-contacts a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.footer-nav a:hover, .footer-contacts a:hover { color: var(--amber); }
.footer-copy {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 24px;
  border-top: 1px solid var(--line);
}

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- LANG SWITCH ---------- */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 3px;
  background: rgba(26, 26, 23, 0.6);
}
.lang-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { background: var(--amber); color: var(--on-amber); }

/* ---------- HERO VISUAL (chat card) ---------- */
.hero-visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 420px;
}
.chat-card {
  background: rgba(26, 26, 23, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 163, 61, 0.3);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-hard);
  animation: float-card 7s ease-in-out infinite;
}
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.chat-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px var(--amber-soft);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.chat-msg {
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 12px;
  max-width: 92%;
  font-size: 15px;
  line-height: 1.5;
}
.chat-msg strong {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.chat-t { background: var(--bg-2); border: 1px solid var(--line); }
.chat-s {
  background: var(--amber-soft);
  border: 1px solid rgba(232, 163, 61, 0.35);
  margin-left: auto;
}
.chat-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--amber);
  background: var(--amber-soft);
  border-radius: 100px;
  padding: 7px 14px;
  margin-top: 4px;
}
.exam-chip {
  position: absolute;
  right: -14px;
  bottom: -18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--on-amber);
  background: var(--amber);
  border-radius: 100px;
  padding: 10px 18px;
  box-shadow: 5px 5px 0 rgba(18, 18, 16, 0.6);
  animation: float-card 7s ease-in-out infinite reverse;
}

/* hero glow */
.hero-bg::before {
  content: "";
  position: absolute;
  width: 760px; height: 760px;
  left: -200px; top: -180px;
  background: radial-gradient(circle, rgba(232, 163, 61, 0.09), rgba(232, 163, 61, 0) 65%);
  pointer-events: none;
}

/* noise texture — преміум-зерно поверх усього */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* стаггер появи карток */
.bento .card:nth-child(2), .teachers .teacher:nth-child(2),
.reviews .review:nth-child(2), .pricing .price-card:nth-child(2) { transition-delay: 0.08s; }
.bento .card:nth-child(3), .teachers .teacher:nth-child(3),
.reviews .review:nth-child(3), .pricing .price-card:nth-child(3) { transition-delay: 0.16s; }
.bento .card:nth-child(4) { transition-delay: 0.06s; }
.bento .card:nth-child(5) { transition-delay: 0.14s; }
.bento .card:nth-child(6) { transition-delay: 0.22s; }

/* верхній світловий кант карток */
.card, .teacher, .review, .price-card, .chat-card, .cta-box {
  position: relative;
  background-image: linear-gradient(180deg, rgba(242, 239, 230, 0.035), rgba(242, 239, 230, 0) 36%);
}

.price em {
  font-style: normal;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- CONSENT ---------- */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.55;
}
.consent input {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--amber);
  cursor: pointer;
}
.consent a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- LEGAL PAGES ---------- */
.legal-main { padding: 140px 0 96px; }
.legal-main h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin-bottom: 12px;
}
.legal-main h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  margin: 40px 0 12px;
}
.legal-main p, .legal-main li {
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 10px;
  max-width: 75ch;
}
.legal-main ul { padding-left: 22px; margin-bottom: 16px; }
.legal-main a { color: var(--amber); }
.legal-main strong { color: var(--ink); font-weight: 600; }
.legal-note {
  font-size: 13.5px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  margin: 20px 0 28px;
  background: var(--bg-1);
}
.legal-back {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 28px;
  transition: color 0.2s ease;
}
.legal-back:hover { color: var(--amber); }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shape, .marquee-track, .chat-card, .exam-chip, .chat-dot { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .bento, .teachers, .reviews, .pricing { grid-template-columns: repeat(2, 1fr); }
  .price-featured { grid-column: span 2; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { justify-self: start; }
}

@media (max-width: 940px) {
  .nav-links {
    position: fixed;
    inset: 61px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-0);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: none; }
  .burger { display: flex; }
  .nav-actions .btn { display: none; }
  .lang-btn { padding: 5px 9px; font-size: 12px; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 12px 14px; gap: 10px; }
  .logo { gap: 8px; }
  .logo-mark svg { width: 26px; height: 26px; }
  .logo-text { font-size: 13px; }
  .nav-actions { gap: 8px; }
  .lang-btn { padding: 5px 7px; font-size: 11px; }
  .burger { padding: 8px 4px; }
  .nav-links { inset: 51px 0 auto 0; }
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }

  .hero-visual { max-width: 100%; }
  .exam-chip { right: 4px; }

  .hero { padding-top: 120px; }
  .hero-stats { gap: 32px; }
  .stat-num { font-size: 30px; }

  .level-head { grid-template-columns: 64px 1fr 24px; }
  .level-meta { display: none; }
  .level-num { font-size: 30px; }

  .bento, .teachers, .reviews, .pricing { grid-template-columns: 1fr; }
  .price-featured { grid-column: auto; }

  .form-row { grid-template-columns: 1fr; }
  .cta-box { padding: 36px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
