/* ---------- Светлая тема (бело-оранжевая) ---------- */
:root {
  --orange: #ff8a00;
  --orange-dark: #e67600;
  --orange-light: #fff4e6;
  --white: #fff;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f9fafb;
  --surface-soon: #fafafa;
  --muted-bg: #f3f4f6;
  --border: #e5e7eb;
  --divider: #f0f0f0;
  --heading: #1f2937;
  --text: #4b5563;
  --header-bg: rgba(255, 255, 255, 0.95);
  --header-line: #eeeeee;
  --footer-bg: #1f2937;
  --btn-dark: #1f2937;
  --shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
  --shadow-hover: 0 18px 40px rgba(31, 41, 55, 0.12);

  --tag-online-bg: #e0f2fe;  --tag-online: #0369a1;
  --tag-offline-bg: #dcfce7; --tag-offline: #15803d;

  --radius: 18px;
}

/* ---------- Тёмная тема (чёрно-оранжевая) ---------- */
[data-theme="dark"] {
  --orange-light: #2a1a06;

  --bg: #0d0d0d;
  --surface: #181818;
  --surface-alt: #121212;
  --surface-soon: #141414;
  --muted-bg: #222222;
  --border: #2f2f2f;
  --divider: #2a2a2a;
  --heading: #f5f5f5;
  --text: #b5b5b5;
  --header-bg: rgba(13, 13, 13, 0.92);
  --header-line: #222222;
  --footer-bg: #000000;
  --btn-dark: #0d0d0d;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 18px 40px rgba(255, 138, 0, 0.15);

  --tag-online-bg: rgba(14, 165, 233, 0.15);  --tag-online: #7dd3fc;
  --tag-offline-bg: rgba(34, 197, 94, 0.15);  --tag-offline: #86efac;

  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Montserrat", Arial, sans-serif; color: var(--text); line-height: 1.6; background: var(--bg); transition: background .3s, color .3s; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Кнопки */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 50px; border: 2px solid var(--orange);
  background: var(--orange); color: var(--white); font-weight: 700; font-family: inherit; font-size: 15px;
  cursor: pointer; transition: .2s; text-align: center;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-2px); }
.btn--small { padding: 9px 20px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--orange); }
.btn--ghost:hover { background: var(--orange); color: var(--white); }
.btn--dark { background: var(--btn-dark); border-color: var(--btn-dark); }
.btn--dark:hover { background: #000; border-color: #000; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--header-line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { font-size: 22px; font-weight: 600; color: var(--heading); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo b { color: var(--orange); }
.logo--light { color: var(--white); }
.logo__icon { height: 40px; width: auto; flex-shrink: 0; display: block; transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.logo:hover .logo__icon { transform: rotate(-14deg) scale(1.08); }
.nav { display: flex; gap: 28px; font-weight: 600; font-size: 15px; }
.nav a { white-space: nowrap; }
.nav a:hover { color: var(--orange); }
.header__right { display: flex; align-items: center; gap: 12px; }

.lang-switch { display: flex; background: var(--muted-bg); border-radius: 50px; padding: 4px; }
.lang-switch button {
  border: none; background: transparent; padding: 6px 12px; border-radius: 50px; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 13px; color: var(--text); transition: .2s;
}
.lang-switch button.active { background: var(--orange); color: var(--white); }

/* Кнопка темы: луна и солнце сменяют друг друга с вращением */
.theme-toggle {
  position: relative; width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--muted-bg); color: var(--heading); flex-shrink: 0; overflow: hidden;
  transition: background .3s, color .3s, transform .3s, box-shadow .3s;
}
.theme-toggle svg { width: 20px; height: 20px; }
[data-theme="dark"] .theme-toggle { color: var(--orange); }
.theme-toggle:hover { background: var(--orange); color: var(--white); box-shadow: 0 0 0 6px rgba(255,138,0,.18); }
.theme-toggle:active { transform: scale(.88); }
.theme-toggle__icon {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  transition: transform .32s cubic-bezier(.68,-0.55,.27,1.55), opacity .22s;
}
.theme-toggle__icon--sun { transform: translateY(120%) rotate(-180deg) scale(.4); opacity: 0; }
[data-theme="dark"] .theme-toggle__icon--moon { transform: translateY(-120%) rotate(180deg) scale(.4); opacity: 0; }
[data-theme="dark"] .theme-toggle__icon--sun { transform: none; opacity: 1; }
.theme-toggle.pulse { animation: pulse .6s ease-out; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,138,0,.6); }
  100% { box-shadow: 0 0 0 18px rgba(255,138,0,0); }
}

/* Смена темы «круговой волной» от кнопки (View Transitions API) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

.burger { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--heading); }

/* Hero */
/* Общий фон hero + языки: оранжевое свечение плавно уходит вниз и растворяется */
.flow { position: relative; overflow: hidden; isolation: isolate; }
.flow::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 70% 45% at 0% 0%, var(--orange-light), transparent 70%),
    linear-gradient(180deg, var(--orange-light) 0%, transparent 65%);
}
.blob {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
  opacity: var(--blob-opacity, .22); filter: blur(40px);
  animation: drift 16s ease-in-out infinite alternate;
}
.blob--1 { width: 520px; height: 520px; top: -120px; right: 2%; }
.blob--2 { width: 460px; height: 460px; top: 42%; left: -160px; animation-delay: -5s; animation-duration: 20s; }
.blob--3 { width: 380px; height: 380px; top: 70%; right: -140px; opacity: calc(var(--blob-opacity, .22) * .6); animation-delay: -10s; }
[data-theme="dark"] { --blob-opacity: .28; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, 30px) scale(1.08); }
  100% { transform: translate(-30px, 50px) scale(.95); }
}

.hero { padding: 80px 0 100px; }
.hero__inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; }
.badge { display: inline-block; background: var(--surface); color: var(--orange); font-weight: 700; padding: 8px 18px; border-radius: 50px; font-size: 14px; box-shadow: var(--shadow); margin-bottom: 20px; }
.hero h1 { font-size: 52px; font-weight: 800; margin-bottom: 20px; }
.hero p { font-size: 18px; margin-bottom: 32px; max-width: 560px; }
.hero__buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.stats strong { display: block; font-size: 28px; color: var(--orange); font-weight: 800; }
.stats span { font-size: 14px; }

.hero__visual { position: relative; height: 440px; }
.hero__stage { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

/* Главная карточка слова */
.wordcard-wrap { perspective: 1000px; animation: bob 6s ease-in-out infinite; }
.wordcard {
  position: relative; width: 290px; padding: 26px 28px 22px; border-radius: 26px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(31,41,55,.14), 0 0 0 1px rgba(255,138,0,.04);
  transform-style: preserve-3d; transition: transform .5s cubic-bezier(.22,1,.36,1);
  overflow: hidden;
}
.wordcard::before { /* оранжевая полоска сверху */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, #ffb43f, var(--orange), #ff5e00);
}
.wordcard::after { /* мягкий блик, который ездит за курсором */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 0%), rgba(255,255,255,.18), transparent 55%);
}
[data-theme="dark"] .wordcard { box-shadow: 0 30px 70px rgba(0,0,0,.6), 0 0 60px rgba(255,138,0,.12); }

.wordcard__top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.wordcard__flag { width: 34px; height: 23px; object-fit: cover; border-radius: 5px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.wordcard__code { font-size: 12px; font-weight: 800; letter-spacing: 1px; color: var(--text); background: var(--muted-bg); padding: 4px 10px; border-radius: 50px; }
.wordcard__word { font-size: 50px; font-weight: 800; color: var(--heading); line-height: 1.1; min-height: 56px; }
.wordcard__tr { font-size: 16px; color: var(--text); margin-top: 6px; font-style: italic; }
.wordcard__divider { display: flex; align-items: center; gap: 10px; margin: 20px 0 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text); opacity: .7; }
.wordcard__divider::before, .wordcard__divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.wordcard__translation {
  display: inline-block; font-size: 20px; font-weight: 700; color: var(--orange);
  background: var(--orange-light); padding: 8px 18px; border-radius: 14px;
}
.wordcard__body { text-align: center; }
.wordcard__body.flip { animation: flip .75s ease-in-out; }
@keyframes flip {
  0%   { transform: rotateX(0);      opacity: 1; }
  42%  { transform: rotateX(90deg);  opacity: 0; }
  58%  { transform: rotateX(-90deg); opacity: 0; }
  100% { transform: rotateX(0);      opacity: 1; }
}
.wordcard__top { justify-content: center; }
.wordcard__dots { display: flex; justify-content: center; gap: 6px; margin-top: 20px; }
.wordcard__dots span { width: 7px; height: 7px; border-radius: 50px; background: var(--border); transition: width .4s, background .4s; }
.wordcard__dots span.active { width: 22px; background: var(--orange); }

/* Мини-карточки */
.mini {
  position: absolute; z-index: 3; background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.mini b { display: block; color: var(--heading); font-size: 14px; }
.mini small { font-size: 12px; color: var(--text); }
.mini b, .mini small { white-space: nowrap; }
.wordcard__word.is-long { font-size: 34px; line-height: 1.6; }
.mini--lesson { right: 0; top: 0; display: flex; align-items: center; gap: 12px; animation-delay: -2s; }
.mini__live { position: relative; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.mini__live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e; animation: live 1.8s ease-out infinite; }
@keyframes live { to { transform: scale(2.8); opacity: 0; } }

.mini--progress { left: 0; bottom: 0; min-width: 210px; animation-delay: -4s; animation-duration: 7s; }
.mini__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.mini__row small { color: var(--orange); font-weight: 700; }
.mini__bar { height: 8px; border-radius: 50px; background: var(--muted-bg); overflow: hidden; }
.mini__bar span {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, #ffb43f, var(--orange), #ffb43f); background-size: 200% 100%;
  animation: progress 1.8s 1s cubic-bezier(.22,1,.36,1) forwards, shimmer 2.5s linear infinite;
}
@keyframes progress { to { width: 72%; } }
@keyframes shimmer  { to { background-position: -200% 0; } }

@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Облачка-реплики, как сообщения в чате */
.bubble {
  position: absolute; z-index: 2; background: var(--surface); padding: 11px 20px; border-radius: 18px;
  font-weight: 700; color: var(--heading); box-shadow: var(--shadow); font-size: 17px;
  animation: float 5s ease-in-out infinite;
}
.bubble::after {
  content: ""; position: absolute; bottom: -6px; width: 14px; height: 14px;
  background: inherit; transform: rotate(45deg); border-radius: 0 0 4px 0;
}
.bubble--1 { top: 40px; left: 0; border-bottom-left-radius: 4px; }
.bubble--1::after { left: 14px; }
.bubble--2 { top: 48%; right: 0; animation-delay: -1.5s; color: #ef4444; border-bottom-right-radius: 4px; }
.bubble--2::after { right: 14px; }
.bubble--3 { top: 44%; left: 0; animation-delay: -3s; color: #0891b2; border-bottom-left-radius: 4px; }
.bubble--3::after { left: 14px; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(-2deg); } }

/* Секции */
.section { padding: 90px 0; }
.section--alt { background: var(--surface-alt); }
.section--orange { background: var(--orange); color: var(--white); }
.section--orange h2 { color: var(--white); }
.section h2 { font-size: 38px; font-weight: 800; text-align: center; margin-bottom: 14px; }
.section__subtitle { text-align: center; max-width: 620px; margin: 0 auto 32px; font-size: 17px; }

/* Фильтры */
.filters { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.filter { border: 2px solid var(--border); background: var(--surface); padding: 10px 24px; border-radius: 50px; font-family: inherit; font-weight: 600; cursor: pointer; transition: .2s; color: var(--text); }
.filter:hover { border-color: var(--orange); }
.filter.active { background: var(--orange); border-color: var(--orange); color: var(--white); }

/* Карточки языков */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.card { --accent: var(--orange); background: var(--surface); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border-top: 5px solid var(--accent); display: flex; flex-direction: column; transition: .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card__flag {
  width: 60px; height: 40px; object-fit: cover; border-radius: 8px; margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15), inset 0 0 0 1px rgba(0,0,0,.06);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.card { position: relative; }
.card__badge {
  position: absolute; top: 22px; right: 22px; font-size: 12px; font-weight: 800;
  color: #fff; background: var(--accent); padding: 5px 12px; border-radius: 50px;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 40%, transparent);
}
.card:hover .card__flag { transform: rotate(-6deg) scale(1.08); }
.card__soon-icon {
  width: 60px; height: 60px; border-radius: 50%; background: var(--orange-light); color: var(--orange);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.card__soon-icon svg { width: 30px; height: 30px; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.card h3 { font-size: 24px; margin-bottom: 10px; }
.card p { margin-bottom: 18px; }
.card__tags { display: flex; gap: 8px; margin-bottom: 14px; }
.tag { font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 50px; }
.tag--online { background: var(--tag-online-bg); color: var(--tag-online); }
.tag--offline { background: var(--tag-offline-bg); color: var(--tag-offline); }
.card__levels { font-size: 14px; margin-bottom: 24px; }
.card__levels b { color: var(--heading); }
.card__bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--divider); }
.card__price { font-weight: 800; color: var(--heading); white-space: nowrap; }
.card__bottom { flex-wrap: wrap; }
.card--soon { border: 2px dashed var(--border); box-shadow: none; justify-content: center; align-items: center; text-align: center; background: var(--surface-soon); }
.card--soon:hover { transform: none; box-shadow: none; }
/* «Скоро новые языки» — узкая полоса во всю ширину под карточками */
.card--soon { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 6px 18px; padding: 22px 28px; }
.card--soon .card__soon-icon { margin: 0; width: 48px; height: 48px; }
.card--soon h3 { font-size: 19px; margin: 0; }
.card--soon p { margin: 0; }
.empty { text-align: center; grid-column: 1 / -1; }

/* Форматы */
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.format { background: var(--surface); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.format:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.format__icon {
  width: 76px; height: 76px; display: flex; align-items: center; justify-content: center;
  background: var(--orange-light); color: var(--orange); border-radius: 22px; margin-bottom: 22px;
  transition: background .35s, color .35s, transform .5s cubic-bezier(.34,1.56,.64,1);
}
.format__icon svg { width: 42px; height: 42px; }
.format:hover .format__icon { background: var(--orange); color: var(--white); transform: rotate(-8deg) scale(1.06); }
.format__live { animation: blink 1.6s ease-in-out infinite; }
.format__flag { transform-box: fill-box; transform-origin: left center; animation: wave 2.4s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .15; } }
@keyframes wave  { 0%,100% { transform: scaleX(1) skewY(0); } 50% { transform: scaleX(.75) skewY(8deg); } }
.format h3 { font-size: 24px; margin-bottom: 10px; }
.format p { margin-bottom: 18px; }
.format ul { list-style: none; }
.format li { padding: 6px 0 6px 30px; position: relative; }
.format li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 800; }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.step { text-align: center; padding: 20px; }
.step span { display: inline-flex; width: 60px; height: 60px; align-items: center; justify-content: center; border-radius: 50%; background: var(--orange); color: var(--white); font-size: 24px; font-weight: 800; margin-bottom: 16px; box-shadow: 0 8px 20px rgba(255,138,0,.35); }
.step h3 { font-size: 19px; margin-bottom: 8px; }

/* О школе */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.about h2 { text-align: left; margin-bottom: 20px; }
.about__text p { font-size: 18px; margin-bottom: 14px; max-width: 560px; }
.about__text p:first-of-type { font-size: 22px; font-weight: 700; color: var(--heading); line-height: 1.4; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fact {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); transition: transform .3s, border-color .3s;
}
.fact:hover { transform: translateY(-4px); border-color: var(--orange); }
.fact strong { display: block; font-size: 34px; font-weight: 800; color: var(--orange); line-height: 1.1; margin-bottom: 6px; white-space: nowrap; }
.fact span { font-size: 14px; }

/* Почему мы */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.why__item {
  background: var(--surface); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
}
.why__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.why__icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--orange-light); color: var(--orange);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  transition: background .3s, color .3s, transform .5s cubic-bezier(.34,1.56,.64,1);
}
.why__icon svg { width: 28px; height: 28px; }
.why__item:hover .why__icon { background: var(--orange); color: var(--white); transform: rotate(-8deg) scale(1.06); }
.why__item h3 { font-size: 19px; margin-bottom: 8px; }

/* Знакомо? */
.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pain {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 30px 26px 30px; overflow: hidden;
}
.pain::before { /* большая кавычка на фоне */
  content: "“"; position: absolute; top: -18px; right: 18px; font-size: 140px; font-weight: 800;
  color: var(--orange); opacity: .12; line-height: 1;
}
.pain__q { font-size: 20px; font-weight: 700; color: var(--heading); line-height: 1.35; margin-bottom: 14px; }
.pain__q::before { content: "«"; } .pain__q::after { content: "»"; }
.pain__a { position: relative; padding-left: 30px; }
.pain__a::before { content: "→"; position: absolute; left: 0; color: var(--orange); font-weight: 800; }

/* Сами или с нами */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.compare__col { border-radius: var(--radius); padding: 34px; }
.compare__col h3 { font-size: 22px; margin-bottom: 20px; }
.compare__col ul { list-style: none; display: grid; gap: 14px; }
.compare__col li { display: flex; gap: 12px; align-items: flex-start; }
.compare__col li svg { width: 22px; height: 22px; flex-shrink: 0; padding: 3px; border-radius: 50%; margin-top: 1px; }
.compare__col--self { background: var(--surface); border: 1px solid var(--border); }
.compare__col--self li { opacity: .8; }
.compare__col--self li svg { color: #ef4444; background: rgba(239,68,68,.12); }
.compare__col--us {
  background: linear-gradient(135deg, #ff9a1f, var(--orange) 50%, #ff6a00); color: var(--white);
  box-shadow: 0 20px 45px rgba(255,138,0,.3);
}
.compare__col--us h3 { color: var(--white); }
.compare__col--us li { font-weight: 600; }
.compare__col--us li svg { color: var(--orange); background: var(--white); }

/* Частые вопросы */
.faq { max-width: 820px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; transition: border-color .3s, box-shadow .3s; }
.faq__item[open] { border-color: var(--orange); box-shadow: var(--shadow); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; color: var(--heading);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--orange); }
.faq__item p { padding: 0 24px 22px; animation: faq-open .4s ease; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } }
.faq__plus { position: relative; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--orange-light); transition: transform .35s, background .3s; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--orange); transform: translate(-50%, -50%); border-radius: 2px; }
.faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__plus { transform: rotate(45deg); background: var(--orange); }
.faq__item[open] .faq__plus::before, .faq__item[open] .faq__plus::after { background: var(--white); }

/* Форма */
.signup { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.signup h2 { text-align: left; }
.signup > div p { font-size: 18px; opacity: .95; }
.form { background: var(--surface); border-radius: var(--radius); padding: 36px; display: grid; gap: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.15); }
.form label { display: grid; gap: 6px; font-weight: 600; color: var(--heading); font-size: 14px; }
.form input, .form select { padding: 13px 16px; border: 2px solid var(--border); border-radius: 12px; font-family: inherit; font-size: 15px; outline: none; transition: .2s; background: var(--bg); color: var(--heading); }
.form input:focus, .form select:focus { border-color: var(--orange); }
.form__message { font-weight: 600; font-size: 14px; min-height: 20px; }
.form__message.success { color: #16a34a; }
.form__message.error { color: #ef4444; }

/* Подвал */
.footer { background: var(--footer-bg); color: #d1d5db; padding: 50px 0; border-top: 1px solid var(--header-line); }
.footer__inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer h4 { color: var(--white); margin-bottom: 10px; }
.footer__copy { margin-top: 12px; font-size: 14px; }

/* Адаптив */
@media (max-width: 960px) {
  .hero__inner, .signup, .about { grid-template-columns: 1fr; }
  .about { gap: 32px; }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__visual { height: 420px; max-width: 520px; width: 100%; margin: 0 auto; }
  .hero h1 { font-size: 40px; }
  .steps { grid-template-columns: 1fr 1fr; }
}
/* Меню-бургер включается, когда пункты меню перестают помещаться в строку */
@media (max-width: 1100px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 20px; gap: 16px; box-shadow: 0 10px 20px rgba(0,0,0,.08); }
  .nav.open { display: flex; }
  .burger { display: block; }
}
@media (max-width: 640px) {
  .header__right { gap: 8px; }
  .header__right .btn { display: none; }
  .hero { padding: 50px 0 60px; }
  .hero h1 { font-size: 32px; }
  .section { padding: 60px 0; }
  .section h2 { font-size: 30px; }
  .formats, .steps, .why, .pains, .compare { grid-template-columns: 1fr; }
  .fact { padding: 20px 18px; }
  .fact strong { font-size: 26px; }
  .compare__col, .why__item, .pain { padding: 24px; }
  .pain__q { font-size: 18px; }
  .cards { grid-template-columns: 1fr; }
  .logo { font-size: 18px; }
  .stats { gap: 24px; }
  .header .logo__text { display: flex; flex-direction: column; font-size: 16px; line-height: 1.05; }
  .header .logo__text b { font-size: 13px; letter-spacing: .3px; }
  .header .logo__icon { height: 34px; }
  .lang-switch button { padding: 6px 9px; }
  .theme-toggle { width: 36px; height: 36px; }
  .header__inner { gap: 10px; }
  .hero__visual { height: 380px; }
  .wordcard { width: 240px; padding: 22px 20px 18px; }
  .wordcard__word { font-size: 40px; min-height: 46px; }
  .mini--progress { display: none; }
  .mini--lesson { padding: 10px 14px; }
  .wordcard__word.is-long { font-size: 28px; line-height: 1.65; }
  .bubble { font-size: 14px; padding: 8px 14px; }
  .blob--1 { width: 320px; height: 320px; }
  .blob--2, .blob--3 { width: 260px; height: 260px; }
}

/* ---------- Плавное появление ---------- */
/* Шапка выезжает сверху при загрузке */
.header { animation: header-in .8s cubic-bezier(.22,1,.36,1) both; transition: box-shadow .3s, background .3s; }
.header.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.12); }
@keyframes header-in { from { transform: translateY(-100%); opacity: 0; } }

/* Элементы появляются, когда доходят до экрана (класс добавляет JS) */
.js .reveal {
  opacity: 0;
  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1),
              scale .7s cubic-bezier(.34,1.56,.64,1);
  transition-delay: var(--delay, 0s);
}
.js .reveal--up    { transform: translateY(40px); }
.js .reveal--left  { transform: translateX(-50px); }
.js .reveal--right { transform: translateX(50px); }
.js .reveal--zoom  { transform: scale(.85) rotate(-4deg); }
.js .reveal--pop   { scale: .4; } /* отдельное свойство scale — не конфликтует с анимацией парения */
.js .reveal.is-visible { opacity: 1; transform: none; scale: 1; }

/* Полоска прогресса прокрутки */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 100; height: 3px; width: 100%;
  background: linear-gradient(90deg, #ffb43f, var(--orange), #ff5e00);
  transform-origin: left; transform: scaleX(0); pointer-events: none;
  box-shadow: 0 0 10px rgba(255,138,0,.6);
}

/* Для тех, у кого в системе отключены анимации */
@media (prefers-reduced-motion: reduce) {
  .blob, .bubble, .wordcard-wrap, .mini, .mini__live::after, .format__icon *, .card__soon-icon svg { animation: none !important; }
  .mini__bar span { animation: none !important; width: 72%; }
  .theme-toggle__icon { transition: none; }
  .header { animation: none; }
  .js .reveal { opacity: 1; transform: none; scale: 1; transition: none; }
}
