/* ═══════════════════════════════════════════════
   UzNeyro EDU — учебный Telegram-бот (оригинальная архитектура)
   ═══════════════════════════════════════════════ */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --card: #eef1f6;
  --text: #10131c;
  --muted: #6b7280;
  --border: #e6e8ef;
  --blue: #2f6fe0;
  --edu: #11998e;            /* фирменный «учебный» бирюзовый */
  --edu2: #38ef7d;
  --grad: linear-gradient(135deg, #11998e, #38ef7d);
  --r: 16px;
  --r-lg: 24px;
  --container: 1160px;
  --shadow-sm: 0 1px 2px rgba(16, 19, 28, .06), 0 1px 3px rgba(16, 19, 28, .05);
  --shadow: 0 10px 30px rgba(16, 19, 28, .08);
  --shadow-lg: 0 24px 60px rgba(16, 19, 28, .14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 800px; }
:where(a, button, summary):focus-visible { outline: 2px solid var(--edu); outline-offset: 3px; }

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .82rem 1.6rem; border: none; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; transition: transform .18s, box-shadow .18s, filter .18s, background .18s; }
.btn--edu { background: var(--grad); color: #fff; }
.btn--edu:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn--white { background: #fff; color: var(--edu); box-shadow: var(--shadow); }
.btn--white:hover { background: #eef9f5; transform: translateY(-1px); }
.btn--lg { padding: 1rem 2.1rem; font-size: 1.05rem; }
.btn--block { width: 100%; white-space: normal; }

/* ─── Navbar (бренд UzNeyro → главная) ─── */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 100; padding: 0 16px; }
.nav__inner { max-width: var(--container); margin: 0 auto; display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: 999px; padding: .55rem .6rem .55rem 1.4rem; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--text); }
.brand__mark { display: inline-flex; }
.brand__name { font-size: 1.2rem; letter-spacing: -.02em; }
.nav__links { display: none; gap: 1.75rem; margin: 0 auto; }
.nav__links a { color: #3a3f4b; font-weight: 500; font-size: .9rem; transition: color .15s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.lang { position: relative; }
.lang__btn { display: inline-flex; align-items: center; gap: .4rem; background: transparent; border: none; border-radius: 999px; height: 44px; padding: 0 .5rem; cursor: pointer; transition: background .15s; }
.lang__btn:hover { background: var(--bg-alt); }
.lang__flag { width: 24px; height: 18px; border-radius: 3px; overflow: hidden; display: block; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(16, 19, 28, .09); }
.lang__flag svg { display: block; width: 100%; height: 100%; }
.lang__chev { color: var(--muted); transition: transform .2s; }
.lang__btn[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }
.lang__menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 194px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 200; }
.lang__menu[hidden] { display: none; }
.lang__opt { display: flex; align-items: center; gap: .65rem; width: 100%; background: transparent; border: none; border-radius: 10px; padding: .6rem .7rem; font: inherit; font-weight: 500; font-size: .95rem; color: var(--text); cursor: pointer; text-align: left; transition: background .12s, color .12s; }
.lang__opt:hover { background: var(--bg-alt); }
.lang__opt[aria-checked="true"] { color: var(--edu); font-weight: 700; background: rgba(17, 153, 142, .09); }
@media (min-width: 900px) { .nav__links { display: flex; } .brand { flex: 1 1 0; } .nav__actions { flex: 1 1 0; justify-content: flex-end; } }
@media (max-width: 560px) { .nav__actions .btn--edu { display: none; } .nav__inner { padding: .5rem .5rem .5rem .9rem; gap: .5rem; } .brand__name { display: none; } .nav__actions { gap: .35rem; } .nav__actions .btn--dark { padding: .58rem .7rem; } .nav__actions .btn--dark .btn__txt { display: none; } .nav__actions .btn--dark .btn__pl { display: block; } }

/* ─── Hero (текст + демо-чат) ─── */
.hero { position: relative; overflow: hidden; padding: 140px 0 90px; background: #e7f6f1; }
.hero__bg { position: absolute; inset: 0; background: radial-gradient(circle at 15% 15%, rgba(17, 153, 142, .18), transparent 45%), radial-gradient(circle at 85% 25%, rgba(56, 239, 125, .20), transparent 45%), linear-gradient(180deg, #eefaf5, #fbfffe); }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.02fr .98fr; gap: 3rem; } }
.badge { display: inline-flex; align-items: center; gap: .45rem; background: #fff; color: var(--edu); border: 1px solid rgba(17, 153, 142, .28); font-weight: 700; font-size: .82rem; letter-spacing: .03em; padding: .4rem .9rem; border-radius: 999px; box-shadow: var(--shadow-sm); }
.badge svg { width: 15px; height: 15px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin: 1.2rem 0 0; text-wrap: balance; }
.hero__grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero__sub { color: #4a4f5e; font-size: clamp(1rem, 1.7vw, 1.18rem); max-width: 480px; margin: 1.1rem 0 1.9rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero__note { color: var(--muted); font-size: .9rem; display: block; margin-top: .9rem; }

/* демо-чат */
.hchat { background: #fff; border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow-lg); padding: 1.1rem 1.1rem 1.3rem; max-width: 440px; margin: 0 auto; }
.hchat__top { display: flex; align-items: center; gap: .6rem; padding: .2rem .3rem .9rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.hchat__ava { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .95rem; }
.hchat__name { font-weight: 700; font-size: .95rem; }
.hchat__name span { display: block; font-weight: 500; font-size: .78rem; color: var(--muted); }
.bubble { max-width: 88%; padding: .7rem .95rem; border-radius: 16px; font-size: .95rem; line-height: 1.45; margin-bottom: .7rem; }
.bubble--q { background: var(--grad); color: #fff; margin-left: auto; border-bottom-right-radius: 5px; }
.bubble--a { background: var(--card); color: var(--text); border-bottom-left-radius: 5px; }
.bubble--a b { color: var(--edu); }
.hchat__name span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; margin-right: 5px; vertical-align: middle; }

/* ─── Sections / head ─── */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.head { text-align: center; max-width: 660px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.14; letter-spacing: -.025em; text-wrap: balance; }
.head p { color: var(--muted); font-size: 1.02rem; margin-top: .6rem; }

/* ─── Сценарии «когда пригодится» ─── */
.scenarios { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .scenarios { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .scenarios { grid-template-columns: repeat(4, 1fr); } }
.scen { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.scen__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: rgba(17, 153, 142, .12); margin-bottom: 1rem; }
.scen h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: .4rem; }
.scen p { color: var(--muted); font-size: .95rem; }

/* ─── Плитки предметов ─── */
.subtiles { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 620px) { .subtiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .subtiles { grid-template-columns: repeat(6, 1fr); } }
.subtile { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 1.3rem .8rem; text-align: center; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.subtile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.subtile__emo { font-size: 1.8rem; display: block; margin-bottom: .5rem; }
.subtile span:last-child { font-weight: 700; font-size: .92rem; }

/* ─── Как работает (поток) ─── */
.flow { display: grid; gap: 1.5rem; grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; }
@media (min-width: 760px) { .flow { grid-template-columns: repeat(3, 1fr); position: relative; } }
.flowstep { text-align: center; position: relative; }
.flowstep__n { width: 60px; height: 60px; margin: 0 auto 1rem; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; box-shadow: 0 10px 24px rgba(17, 153, 142, .32); }
.flowstep h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .35rem; }
.flowstep p { color: var(--muted); font-size: .96rem; }
@media (min-width: 760px) { .flowstep:not(:last-child)::after { content: ""; position: absolute; top: 30px; transform: translateY(-50%); left: calc(50% + 38px); width: calc(100% + 1.5rem - 76px); height: 2px; background: linear-gradient(90deg, rgba(17, 153, 142, .4), rgba(56, 239, 125, .15)); } }

/* ─── Почему EDU ─── */
.why { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why { grid-template-columns: repeat(4, 1fr); } }
.whyc { background: var(--bg-alt); border-radius: var(--r-lg); padding: 1.7rem; }
.whyc__ico { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; margin-bottom: 1rem; }
.whyc__ico svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.whyc h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: .35rem; }
.whyc p { color: var(--muted); font-size: .93rem; }

/* ─── FAQ ─── */
.faq { display: flex; flex-direction: column; gap: .9rem; }
.faq__item { background: var(--card); border-radius: 20px; transition: border-radius .2s; }
@media (min-width: 760px) { .faq__item:not([open]) { border-radius: 999px; } }
.faq__item[open] { border-radius: var(--r-lg); }
.faq__item summary { list-style: none; cursor: pointer; padding: 1.2rem 1.7rem; font-weight: 700; font-size: 1.04rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.6rem; font-weight: 300; color: var(--text); flex-shrink: 0; line-height: 1; }
.faq__item[open] summary::after { content: "×"; }
.faq__item p { padding: 0 1.7rem 1.4rem; color: var(--muted); }

/* ─── Waitlist CTA ─── */
.wait { padding: clamp(3rem, 7vw, 5rem) 0; }
.wait__box { background: var(--grad); border-radius: 32px; padding: clamp(2.5rem, 5vw, 4rem) 1.5rem; text-align: center; color: #fff; box-shadow: var(--shadow-lg); }
.wait__box h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; max-width: 640px; margin: 0 auto; text-wrap: balance; }
.wait__box p { color: rgba(255, 255, 255, .9); margin: .8rem auto 1.8rem; max-width: 480px; }

/* ─── Footer ─── */
.foot { background: var(--bg-alt); padding: clamp(3rem, 6vw, 4.5rem) 0 0; border-top: 1px solid var(--border); }
.foot__grid { display: grid; grid-template-columns: 1fr; gap: 2.4rem; padding-bottom: 2.6rem; }
.foot__brand p { color: var(--muted); font-size: .9rem; margin-top: .5rem; max-width: 320px; }
.foot__social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.foot__social-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); color: var(--text); transition: background .15s, color .15s, transform .15s; }
.foot__social-ico:hover { background: #111318; color: #fff; transform: translateY(-2px); }
.foot__col { display: flex; flex-direction: column; gap: .85rem; }
.foot__title { font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.foot__col a { color: var(--text); font-size: .95rem; transition: color .15s; }
.foot__col a:hover { color: var(--blue); }
.foot__bottom { border-top: 1px solid var(--border); padding: 1.5rem 0; display: flex; flex-direction: column; gap: .6rem; }
.foot__copy { color: var(--muted); font-size: .86rem; }
@media (min-width: 640px) {
  .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .foot__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 980px) { .foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } .btn:hover, .subtile:hover { transform: none; } }

/* ─── Кнопка «вверх» ─── */
.totop { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border: none; border-radius: 50%; background: var(--grad); color: #fff; cursor: pointer; box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s, filter .2s; }
.totop.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.totop:hover { filter: brightness(1.06); transform: translateY(-2px); }

/* ─── Kurslar (обложки курсов → EDU-бот) ─── */
.btn--ghost { background: rgba(17, 153, 142, .09); color: var(--edu); }
.btn--ghost:hover { background: rgba(17, 153, 142, .16); transform: translateY(-1px); }
.courses { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .courses { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .courses { grid-template-columns: repeat(3, 1fr); } }
.course { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.course__cover { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; }
.course__cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .28), transparent 55%); }
.course__emo { position: relative; z-index: 1; font-size: 3.2rem; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .18)); }
.course__cover--1 { background: linear-gradient(135deg, #11998e, #38ef7d); }
.course__cover--2 { background: linear-gradient(135deg, #0f8b9e, #3ad0e0); }
.course__cover--3 { background: linear-gradient(135deg, #12967e, #7be08a); }
.course__cover--4 { background: linear-gradient(135deg, #0e9488, #5fe0c0); }
.course__cover--5 { background: linear-gradient(135deg, #0ba360, #38ef7d); }
.course__cover--6 { background: linear-gradient(135deg, #147a67, #38ef7d); }
.course__body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.4rem 1.5rem; }
.course__body h3 { font-size: 1.2rem; font-weight: 800; }
.course__body p { color: var(--muted); font-size: .93rem; margin: .35rem 0 1rem; flex: 1; }
.course__go { font-weight: 700; color: var(--edu); font-size: .95rem; display: inline-flex; align-items: center; gap: .3rem; transition: gap .15s; }
.course:hover .course__go { gap: .55rem; }
.courses--single { max-width: 420px; margin: 0 auto; }
.course__flag { position: relative; z-index: 1; font-size: 4rem; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .16)); }
.course__cover--ru { background: linear-gradient(135deg, #11998e, #38ef7d); }
/* Английский — фиолетовая обложка, под лого его бота и под акцент страницы
   edu-english. Русский курс остаётся зелёным: обложка в каталоге и цвет
   страницы курса обязаны совпадать, иначе переход выглядит как уход на
   чужой сайт. */
.course__cover--en { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
/* Курсы по темам — чёрно-серая обложка, по тому же правилу: совпадает со
   страницей edu-courses, а она монохромная. Само правило лежит НЕ здесь, а в
   конце файла: смотри комментарий у `.courses .course__cover` в блоке
   «Figma polish». */

/* ─── Появление при скролле ─── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.16, .8, .34, 1), transform .6s cubic-bezier(.16, .8, .34, 1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ─── Карточка-тест в hero (демо продукта) ─── */
.qcard { background: #fff; border: 1px solid var(--border); border-radius: 26px; box-shadow: var(--shadow-lg); padding: 1.2rem 1.2rem 1.3rem; max-width: 440px; margin: 0 auto; }
.qcard__top { display: flex; align-items: center; gap: .6rem; padding-bottom: .9rem; border-bottom: 1px solid var(--border); margin-bottom: 1.1rem; }
.qcard__ava { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .95rem; flex-shrink: 0; }
.qcard__meta { display: flex; flex-direction: column; line-height: 1.25; }
.qcard__meta b { font-size: .92rem; }
.qcard__meta span { font-size: .76rem; color: var(--muted); }
.qcard__q { font-weight: 800; font-size: 1.05rem; margin-bottom: 1rem; }
.qopts { display: flex; flex-direction: column; gap: .55rem; }
.qopt { border: 1px solid var(--border); border-radius: 14px; padding: .7rem .95rem; font-size: .95rem; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.qopt--ok { border-color: var(--edu); background: rgba(17, 153, 142, .08); color: var(--edu); }
.qopt--ok svg { width: 18px; height: 18px; stroke: var(--edu); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.qcard__fb { margin-top: 1rem; text-align: center; font-weight: 700; font-size: .9rem; color: var(--edu); background: rgba(17, 153, 142, .08); border-radius: 12px; padding: .55rem; }

/* ═══════ Редизайн EDU (макет UzNeyro Materials) ═══════ */
.btn--dark { background: #111318; color: #fff; }
.btn--dark:hover { background: #000; transform: translateY(-1px); }
@media (min-width: 561px) { .nav__actions .btn--dark .btn__pl { display: none; } }
.btn--soft { background: var(--card); color: var(--text); }
.btn--soft:hover { background: #e4e7ef; transform: translateY(-1px); }

/* Hero: анимированный фон + телефон */
.hero__canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__inner { z-index: 2; }
.hero__media { display: grid; place-items: center; }
.hero__phone { max-width: 344px; width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(17, 153, 142, .28)); animation: floatY 6s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .hero__phone { animation: none; } }

/* Обложки курсов: маскот на градиенте */
.course__mascot { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); height: 52%; width: auto; z-index: 1; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .16)); }
.courses__more { text-align: center; margin-top: 2.2rem; }

/* Предметы — цветные плитки */
.subjects2 { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .subjects2 { grid-template-columns: repeat(4, 1fr); } }
.subj { display: flex; flex-direction: column; justify-content: space-between; gap: 1.4rem; min-height: 100px; border-radius: 18px; padding: 1.15rem 1.25rem; color: #fff; font-weight: 800; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.subj:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.subj__name { font-size: 1.06rem; }
.subj__emo { align-self: flex-end; font-size: 1.55rem; line-height: 1; }
.subj--c1 { background: linear-gradient(135deg, #6366f1, #818cf8); }
.subj--c2 { background: linear-gradient(135deg, #12b76a, #22c55e); }
.subj--c3 { background: linear-gradient(135deg, #f43f5e, #fb7185); }
.subj--c4 { background: linear-gradient(135deg, #a855f7, #c084fc); }
.subj--c5 { background: linear-gradient(135deg, #f97316, #fb923c); }
.subj--c6 { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.subj--c7 { background: linear-gradient(135deg, #0e9488, #2dd4bf); }
.subj--more { background: var(--card); color: #4b5563; justify-content: center; align-items: center; text-align: center; }

/* Пробный доступ */
.trial { background: var(--grad); padding: clamp(3rem, 7vw, 5rem) 0; }
.trial__head { text-align: center; color: #fff; margin-bottom: 2rem; }
.trial__head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.trial__head p { color: rgba(255, 255, 255, .92); margin-top: .5rem; }
.pricecard { background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); max-width: 440px; margin: 0 auto; padding: 1.9rem; }
.pricecard__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.pricecard__tag { font-weight: 800; font-size: .78rem; letter-spacing: .06em; color: var(--edu); }
.pricecard__days { font-size: .76rem; font-weight: 700; color: #fff; background: var(--grad); padding: .26rem .65rem; border-radius: 999px; }
.pricecard__price { font-size: 2.5rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 1.1rem; }
.pricecard__price span { font-size: 1rem; color: var(--muted); font-weight: 600; }
.pricelist { list-style: none; margin-top: 1.3rem; display: flex; flex-direction: column; gap: .75rem; }
.pricelist li { display: flex; align-items: flex-start; gap: .6rem; font-size: .93rem; color: var(--text); }
.tick { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: rgba(17, 153, 142, .12); display: grid; place-items: center; margin-top: 1px; }
.tick svg { width: 12px; height: 12px; stroke: var(--edu); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Окно выбора бота */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 20, 18, .55); }
.modal__dialog { position: relative; background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); max-width: 620px; width: 100%; padding: 2.2rem; animation: modalIn .2s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal__x { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border: none; background: var(--card); border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--text); }
.modal__x:hover { background: #e4e7ef; }
.modal__title { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; text-align: center; letter-spacing: -.02em; }
.modal__sub { text-align: center; color: var(--muted); margin: .4rem 0 1.6rem; }
.modal__grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .modal__grid { grid-template-columns: 1fr 1fr; } }
.pchoice { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; border: 1px solid var(--border); border-radius: 18px; transition: border-color .15s, transform .15s, box-shadow .15s; }
.pchoice:hover { border-color: var(--edu); transform: translateY(-2px); box-shadow: var(--shadow); }
.pchoice__ico { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; margin-bottom: .3rem; }
.pchoice__ico img { width: 100%; height: 100%; object-fit: cover; }
.pchoice__ico--ayro { border-radius: 50%; }
.pchoice__ico--edu { background: var(--grad); }
.pchoice__ico--edu img { width: 62%; height: 62%; object-fit: contain; }
.pchoice__name { font-weight: 800; font-size: 1.15rem; }
.pchoice__desc { color: var(--muted); font-size: .92rem; flex: 1; }
.pchoice__go { font-weight: 700; color: var(--edu); font-size: .92rem; }

/* ═══ Figma hero (точь-в-точь) ═══ */
.hero { padding: 128px 0 78px; background: linear-gradient(155deg, #dff5ed 0%, #f6fcfa 40%, #ffffff 58%, #eafaf3 100%); }
.hero__bg { background: radial-gradient(78% 66% at 90% 96%, rgba(38, 211, 150, .22), transparent 60%); }
.hero__inner { align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.55rem); line-height: 1.08; letter-spacing: -.025em; margin: 0; color: #10131c; }
.hero__grad { background: none; -webkit-background-clip: initial; background-clip: initial; -webkit-text-fill-color: #1aad8a; color: #1aad8a; }
.hero__sub { color: #5a6270; max-width: 440px; margin: 1.2rem 0 1.9rem; }
.hero__start { background: #1aad8a; color: #fff; border-radius: 14px; padding: .95rem 1.75rem; font-size: 1.04rem; font-weight: 700; box-shadow: 0 12px 26px rgba(26, 173, 138, .28); }
.hero__start:hover { background: #158f73; transform: translateY(-1px); }
.hero__media { display: grid; place-items: end center; }
.hero__phone { width: 100%; max-width: 290px; height: auto; margin: 0 auto; filter: drop-shadow(0 30px 55px rgba(17, 153, 142, .25)); animation: none; }
@media (min-width: 900px) { .hero__phone { max-width: 460px; height: 600px; object-fit: cover; object-position: top center; } }

/* ═══ Figma polish (ревью uzneyro-figma) ═══ */
/* Это правило красит ВСЕ обложки каталога в зелёный градиент и тем самым
   отменяет модификаторы --ru/--en/--cr, объявленные выше: специфичность у него
   выше (два класса против одного). Из-за него английская обложка показывается
   зелёной, хотя рядом с --en написано, что она фиолетовая.
   Обложку курсов приходится возвращать здесь же, ниже по файлу — при равной
   специфичности побеждает последнее правило. */
.courses .course__cover { background: var(--grad); }
/* Тот же янтарный, что и на самой странице курсов: карточка на хабе — её
   витрина, и разный цвет читался бы как разные продукты. */
.courses .course__cover--cr { background: linear-gradient(135deg, #b45309, #f59e0b); }
.scen__ico { background: var(--grad); border-radius: 50%; }
.pricecard { padding: 0; overflow: hidden; }
.pricecard__head { background: var(--grad); color: #fff; padding: 1.8rem; }
.pricecard__tag { color: rgba(255, 255, 255, .95); }
.pricecard__days { color: #fff; background: rgba(255, 255, 255, .22); }
.pricecard__price { color: #fff; margin-bottom: 1.1rem; }
.pricecard__price span { color: rgba(255, 255, 255, .85); }
.pricecard__head .btn--white { color: #10131c; }
.pricelist { padding: 1.4rem 1.8rem 1.7rem; margin-top: 0; }
.tick { background: rgba(38, 52, 110, .1); }
.tick svg { stroke: #2f3d86; }
.trial { background: linear-gradient(155deg, #c4efe4, #82ddc2); }
.trial__head { color: var(--text); }
.trial__head p { color: rgba(16, 19, 28, .6); }
.wait { padding: 0; background: linear-gradient(115deg, #8ad7c4, #3ec78a); }
.wait__box { background: none; border-radius: 0; box-shadow: none; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.wait__box .btn--white { color: #22317a; }
@media (min-width: 900px) { .hero__phone { max-width: 500px; height: 620px; } }

/* ═══ Hero: фото телефона-в-руке (FinalPhone1) ═══ */
.hero__phone { max-width: 340px; }
@media (min-width: 900px) { .hero__phone { max-width: 720px; height: auto; object-fit: initial; margin: 0 -24px -95px auto; } }

/* ═══ Fanlar: крупные стикеры справа-по-центру (Figma) ═══ */
.subj { position: relative; display: block; min-height: 120px; gap: 0; }
.subj__name { position: relative; z-index: 1; font-size: 1.12rem; }
.subj__emo { position: absolute; right: 1.15rem; top: 50%; transform: translateY(-50%); font-size: 3.5rem; line-height: 1; align-self: auto; }
.subj--more { display: grid; place-items: center; min-height: 120px; }

/* ─── Окно бота: EDU в разработке ─── */
button.pchoice { background: #fff; font: inherit; text-align: left; width: 100%; cursor: pointer; }
.pchoice__go--soon { color: var(--muted); }
.botview[data-view="soon"] { text-align: center; }
.soon__ico { width: 60px; height: 60px; border-radius: 16px; background: linear-gradient(135deg, #11998e, #38ef7d); display: grid; place-items: center; margin: 0 auto 1.1rem; }
.soon__ico img { width: 60%; height: 60%; object-fit: contain; }
.soon__actions { display: flex; flex-direction: column; gap: .7rem; align-items: center; max-width: 320px; margin: 1.6rem auto 0; }
.soon__cta { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: .9rem 1.6rem; border-radius: 999px; font-weight: 700; background: #111318; color: #fff; transition: background .15s, transform .15s; }
.soon__cta:hover { background: #000; transform: translateY(-1px); }
.soon__back { background: none; border: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; padding: .3rem; }
.soon__back:hover { color: var(--text); }

.pchoice__ico--edu, .soon__ico { border-radius: 50%; }

