/* Лендинг Great Tutor (views/pages/landing.ejs): один шрифт (Inter), фирменный индиго, снимки продукта в рамках «браузер» и «телефон».
   Содержимое видно всегда; плавное появление — только если браузер умеет (html.rv-on, landing.js). */
:root { --p: #4f46e5; --pd: #4338ca; --pl: #eef2ff; --pm: #c7d2fe; --g: #22c55e; --t: #0f172a; --t2: #334155; --ts: #64748b; --line: #e5e7eb; --bg2: #f6f7fb; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--t); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); }
section[id] { scroll-margin-top: 92px; } /* переход по меню — заголовок не под шапкой */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; border: 0; cursor: pointer; }
.btn-p { background: var(--p); color: #fff; box-shadow: 0 14px 30px -14px rgba(79,70,229,.8); }
.btn-p:hover { background: var(--pd); color: #fff; }
@media (hover: hover) { .btn-p:hover { transform: translateY(-1px); } }
.btn-l { background: #fff; color: var(--t); border: 1px solid var(--line); }
.btn-l:hover { border-color: var(--pm); color: var(--p); }
.h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; margin-bottom: 14px; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ts); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }

/* ---------- шапка ---------- */
.nav { position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); left: 0; right: 0; z-index: 100; padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.nav-in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 18px; border-radius: 18px; background: rgba(255,255,255,.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(15,23,42,.06); box-shadow: 0 10px 30px -18px rgba(15,23,42,.25); }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.035em; color: var(--t); white-space: nowrap; }
.logo > span { color: var(--p); } /* как знак: Great — индиго (G), Tutor — зелёный (T); везде одинаково, и в подвале */
.logo b { color: var(--g); font-weight: 800; }
.ft .logo { font-size: 19px; padding: 0; gap: 9px; }
.ft .logo:hover { color: var(--t); }
.logo svg { width: 28px; height: 28px; flex: none; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ts); font-weight: 600; font-size: 14.5px; padding: 9px 13px; border-radius: 10px; }
.nav-links a:hover { color: var(--p); background: var(--pl); }
.nav-act { display: flex; gap: 6px; align-items: center; }
.nav-act .btn { height: 42px; padding: 0 18px; font-size: 14.5px; border-radius: 12px; }
.nav-login { text-decoration: none; font-weight: 700; font-size: 14.5px; padding: 0 14px; color: var(--t); }
.nav-login:hover { color: var(--p); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--bg2); color: var(--t); font-size: 18px; }
.mob { display: none; max-width: 1120px; margin: 8px auto 0; padding: 10px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(15,23,42,.3); }
.mob.open { display: block; }
.mob a { display: block; padding: 13px 14px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.mob a:hover { background: var(--pl); color: var(--p); }
.mob .btn { width: 100%; margin-top: 6px; }

/* ---------- первый экран ---------- */
.hero { padding: 140px 0 60px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto; height: 900px; background: radial-gradient(600px 400px at 20% 20%, rgba(199,210,254,.55), transparent 70%), radial-gradient(600px 400px at 85% 10%, rgba(221,214,254,.55), transparent 70%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 50px; align-items: center; }
.hero-grid > *, .cards > *, .step > *, .ft-grid > * { min-width: 0; } /* длинная кнопка или слово не распирают колонку */
.hero-text { text-align: center; max-width: 820px; margin: 0 auto; }
.hero h1 { font-size: clamp(36px, 6vw, 66px); line-height: 1.04; letter-spacing: -.045em; font-weight: 900; margin-bottom: 20px; }
.hero h1 span { background: linear-gradient(90deg, var(--p), #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 0 auto 28px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 22px; color: var(--ts); font-size: 14.5px; font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust i { color: var(--g); }
.hero-shot { position: relative; max-width: 1100px; margin: 0 auto; padding-bottom: 40px; }
.hero-shot .phone { position: absolute; right: -2%; bottom: 0; width: 23%; min-width: 150px; }
.float { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 14px; font-weight: 700; box-shadow: 0 18px 40px -22px rgba(15,23,42,.45); white-space: nowrap; }
.float i { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; flex: none; }
.float small { display: block; font-size: 12px; color: var(--ts); font-weight: 600; }
.float.f1 { left: 40%; top: 11%; }
.float.f1 i { background: var(--g); }
.float.f2 { left: 33%; bottom: 7%; }
.float.f2 i { background: var(--p); }

/* рамки для снимков */
.browser { border-radius: 16px; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 50px 100px -40px rgba(30,41,59,.45), 0 4px 14px rgba(15,23,42,.06); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #f8fafc; border-bottom: 1px solid #eef0f4; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e2e8f0; }
.browser-bar i:nth-child(1) { background: #fca5a5; } .browser-bar i:nth-child(2) { background: #fcd34d; } .browser-bar i:nth-child(3) { background: #86efac; }
.browser-bar span { margin-left: 12px; height: 24px; flex: 0 1 340px; border-radius: 8px; background: #fff; border: 1px solid #eef0f4; font-size: 12px; color: var(--ts); display: flex; align-items: center; padding: 0 10px; gap: 6px; white-space: nowrap; overflow: hidden; }
.browser img { width: 100%; height: auto; }
.phone { border-radius: 38px; background: #0f172a; padding: 9px; box-shadow: 0 40px 80px -30px rgba(15,23,42,.55); }
.phone img { border-radius: 30px; width: 100%; height: auto; }

/* ---------- секции ---------- */
.sec { padding: 90px 0; }
.sec.alt { background: var(--bg2); }

/* ---------- возможности ----------
   Без скрипта — список блоков сверху вниз. .on (скрипт, если блок помещается по высоте экрана): раздел встаёт (sticky),
   блоки в ряд и едут вбок от прокрутки страницы. c1/c2/c3 — по очереди прячут подзаголовок, пункты, абзац, чтобы уместиться. */
.fxs { padding: 90px 0 20px; }
.fxs-head { margin-bottom: 36px; }
.fxs-track { display: flex; flex-direction: column; gap: 20px; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.fx-slide { min-width: 0; display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; padding: 44px; border-radius: 28px; background: var(--bg2); }
.fx-slide > * { min-width: 0; }
.feat-text h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -.03em; font-weight: 800; margin-bottom: 14px; }
.feat-text p { color: var(--ts); font-size: 17px; margin-bottom: 18px; }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--t2); font-weight: 500; }
.ticks li i { width: 24px; height: 24px; border-radius: 50%; background: #dcfce7; color: #15803d; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex: none; margin-top: 1px; }
.feat-shot { position: relative; }
.feat-shot.has-phone { padding-right: 12%; padding-bottom: 8%; }
.feat-shot .phone { position: absolute; right: 0; bottom: 0; width: 30%; }
.fx-slide .browser { box-shadow: 0 30px 60px -32px rgba(30,41,59,.45), 0 3px 10px rgba(15,23,42,.06); }
.fxs.on { padding: 0; position: relative; }
.fxs.on .fxs-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: var(--navh, 84px) 0 14px; }
.fxs.on .fxs-head { margin-bottom: 26px; flex: none; }
.fxs.on .fxs-track { flex-direction: row; align-items: stretch; max-width: none; margin: 0; padding: 0 0 0 var(--side); gap: var(--gap); will-change: transform; }
.fxs.on .fx-slide { flex: 0 0 var(--sw); }
.fxs.c1 .fxs-head .lead { display: none; }
.fxs.c1 .fxs-head { margin-bottom: 18px; }
.fxs.c2 .ticks { display: none; }
.fxs.c2 .feat-text p { margin-bottom: 0; }
.fxs.c3 .feat-text p { display: none; }
.fxs.c3 .feat-text h3 { margin-bottom: 0; }
.fxs.c4 .fxs-head { display: none; }
/* телефон/планшет (.sw): ряд карточек листается пальцем вбок, со щелчком на каждой; следующая выглядывает справа */
.fxs.sw .fxs-head { margin-bottom: 22px; }
.fxs.sw .fxs-track { flex-direction: row; align-items: stretch; max-width: none; margin: 0; padding: 4px var(--side) 14px; gap: var(--gap); overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scroll-padding: 0 var(--side); overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.fxs.sw .fxs-track::-webkit-scrollbar { display: none; }
.fxs.sw .fxs-track::after { content: ''; flex: 0 0 1px; }
.fxs.sw .fx-slide { flex: 0 0 var(--sw); scroll-snap-align: start; scroll-snap-stop: always; }
.fxs.sw .fx-card, .fxs.sw .fx-front { height: 100%; }
.fxs.flipc .fx-front .feat-text p, .fxs.flipc .fx-front .ticks { display: none; }
.fxs.flipc .fx-front .feat-text h3 { margin-bottom: 0; }
/* карточка: на ПК лицо и обёртка «прозрачны» для сетки блока, оборота нет */
.fx-card, .fx-front { display: contents; }
.fx-back, .fx-hint { display: none; }
/* телефон: текст не влез (.cards) — карточка-перевёртыш как в шаблоне ДЗ: лицо — снимок и заголовок, по нажатию
   поворачивается, на обороте абзац и пункты */
.fxs.flipc .fx-slide { -webkit-user-select: none; user-select: none; display: block; padding: 0; background: none; border-radius: 0; perspective: 1400px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fxs.flipc .fx-card { display: block; position: relative; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.fxs.flipc .fx-slide.flip .fx-card { transform: rotateY(180deg); }
.fxs.flipc .fx-card, .fxs.flipc .fx-front { height: 100%; } /* все карточки — по самой высокой */
.fxs.flipc .fx-front { align-content: start; display: grid; grid-template-columns: 1fr; gap: 14px; padding: 14px 14px 16px; border-radius: 22px; background: var(--bg2);
    -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.fxs.flipc .fx-front .feat-shot { order: -1; }
.fxs.flipc .fx-back { display: block; position: absolute; inset: 0; overflow: hidden; border-radius: 22px; background: #eef2ff; color: #312e81;
    transform: rotateY(180deg); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.fxs.flipc .fx-scroll { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 20px 18px 18px; overflow-y: auto; }
/* оборот не перехватывает касания, пока карточка лицом (иначе свайп по карточке листал невидимый текст, а не страницу);
   у перевёрнутой текст долистал — дальше листается страница (без overscroll-behavior: contain) */
.fxs.flipc .fx-back { pointer-events: none; }
.fxs.flipc .fx-slide.flip .fx-back { pointer-events: auto; }
.fxs .fx-back .fx-h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; margin: 0; color: #1e1b4b; }
.fxs .fx-back p { display: block; margin: 0; font-size: 15px; color: #4338ca; }
.fxs .fx-back .ticks { display: flex; gap: 8px; }
.fxs .fx-back .ticks li { font-size: 14.5px; color: #312e81; }
.fxs .fx-back .ticks li i { background: #dcfce7; color: #15803d; } /* зелёные, как на ПК */
.fxs.flipc .fx-hint { display: block; justify-self: start; padding: 0; background: none; color: var(--p); font-size: 13px; font-weight: 600; } /* просто текст слева, как «Забыли пароль?» */
/* прокрутка оборота: тонкая полоса в цвет карточки, текст мягко тает у края, пока есть что листать */
.fxs.flipc .fx-scroll { scrollbar-width: thin; scrollbar-color: #a5b4fc transparent; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.fxs.flipc .fx-scroll::-webkit-scrollbar { width: 4px; }
.fxs.flipc .fx-scroll::-webkit-scrollbar-thumb { background: #a5b4fc; border-radius: 4px; }
.fxs.flipc .fx-scroll::-webkit-scrollbar-track { background: transparent; margin: 16px 0; }
.fxs.flipc .fx-scroll.fb { -webkit-mask-image: linear-gradient(#000 calc(100% - 44px), transparent); mask-image: linear-gradient(#000 calc(100% - 44px), transparent); }
.fxs.flipc .fx-scroll.ft { -webkit-mask-image: linear-gradient(transparent, #000 36px); mask-image: linear-gradient(transparent, #000 36px); }
.fxs.flipc .fx-scroll.ft.fb { -webkit-mask-image: linear-gradient(transparent, #000 36px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(transparent, #000 36px, #000 calc(100% - 44px), transparent); }
@media (prefers-reduced-motion: reduce) { .fxs.flipc .fx-card { transition: none; } }
.sec-cards { padding-top: 40px; }
.sec-cards .cards { margin-top: 0; }

/* ---------- ещё возможности ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; transition: border-color .2s, box-shadow .2s, transform .2s; }
@media (hover: hover) { .card:hover { border-color: var(--pm); box-shadow: 0 24px 50px -32px rgba(79,70,229,.45); transform: translateY(-2px); } }
.card { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; align-content: start; }
.card i.ic { width: 46px; height: 46px; border-radius: 13px; background: var(--pl); color: var(--p); display: inline-flex; align-items: center; justify-content: center; font-size: 19px; } /* значок — слева от названия */
.card h4 { font-size: 17.5px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.card p { grid-column: 1 / -1; margin-top: 12px; font-size: 15px; color: var(--ts); }
/* телефон: карточки по две (одна над другой) — листаются пальцем вбок, если захочется; страница — как обычно вверх-вниз */
@media (max-width: 680px) {
  .sec-cards .cards { grid-template-columns: none; grid-template-rows: auto auto; grid-auto-flow: column; grid-auto-columns: calc(100% - 22px); gap: 12px;
      margin: 0 -20px; padding: 4px 20px 14px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding: 0 20px;
      overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .sec-cards .cards::-webkit-scrollbar { display: none; }
  .sec-cards .card:nth-child(odd) { scroll-snap-align: start; scroll-snap-stop: always; }
}
@media (max-width: 380px) { .sec-cards .cards { margin: 0 -16px; padding: 4px 16px 14px; scroll-padding: 0 16px; } }

/* ---------- шаги ---------- */
.steps { display: flex; flex-direction: column; max-width: 640px; margin: 44px auto 0; }
/* лесенка: кружок с цифрой, справа текст; от кружка вниз — линия к следующему */
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; column-gap: 22px; padding-bottom: 36px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ''; position: absolute; left: 27px; top: 60px; bottom: 4px; width: 2px; border-radius: 2px; background: linear-gradient(var(--p), var(--pm)); }
.step:last-child::before { display: none; }
.step b.n { grid-row: 1 / span 2; width: 56px; height: 56px; border-radius: 50%; background: var(--p); color: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-size: 21px; font-weight: 800; box-shadow: 0 0 0 6px var(--pl), 0 12px 24px -10px rgba(79,70,229,.6); position: relative; z-index: 1; }
.step h4 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin: 6px 0 6px; }
.step p { color: var(--ts); font-size: 15.5px; }

/* ---------- тариф ---------- */
.price { max-width: 520px; margin: 44px auto 0; background: #fff; border: 2px solid var(--p); border-radius: 26px; padding: 34px; position: relative; box-shadow: 0 40px 80px -46px rgba(79,70,229,.6); }
.price-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--g); color: #fff; font-weight: 800; font-size: 13px; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.price-sum { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 6px 0 22px; }
.price-sum b { font-size: 58px; letter-spacing: -.04em; font-weight: 900; }
.price-sum span { color: var(--ts); font-weight: 600; }
.price .ticks { margin-bottom: 26px; }
.price .btn { width: 100%; }

/* ---------- вопросы ---------- */
.faq { max-width: 820px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq details[open] { border-color: var(--pm); }
.faq summary { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--pl); color: var(--p); font-size: 13px;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), background .2s, color .2s; }
.faq details[open]:not(.closing) summary .chev { transform: rotate(180deg); background: var(--p); color: #fff; }
@media (hover: hover) { .faq summary:hover .chev { background: #e0e7ff; } .faq details[open]:not(.closing) summary:hover .chev { background: var(--pd); } }
.faq summary:focus-visible { outline: 2px solid var(--pm); outline-offset: 4px; border-radius: 8px; }
.faq details { transition: border-color .25s, box-shadow .25s; }
.faq details[open]:not(.closing) { box-shadow: 0 18px 40px -30px rgba(79,70,229,.45); }
.faq details.closing { border-color: var(--line); }
.faq-a { overflow: hidden; }
.faq details p { color: var(--ts); padding: 0 0 18px; font-size: 15.5px; }

/* ---------- о разработчике ---------- */
.about { max-width: 860px; margin: 40px auto 0; display: grid; grid-template-columns: 180px 1fr; gap: 32px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; align-items: start; }
.about img { width: 180px; height: 180px; border-radius: 24px; object-fit: cover; }
.about h3 { font-size: 22px; font-weight: 800; }
.about .role { color: var(--p); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.about p { color: var(--t2); font-size: 15.5px; margin-bottom: 10px; }
.about-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.about-links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 9px 14px; border-radius: 12px; background: var(--bg2); font-weight: 700; font-size: 14px; }
.about-links a:hover { background: var(--pl); color: var(--p); }

/* ---------- финал и подвал ---------- */
.final { margin: 0 20px 70px; border-radius: 30px; padding: 70px 24px; text-align: center; color: #fff; background: radial-gradient(500px 300px at 15% 10%, rgba(255,255,255,.18), transparent 70%), linear-gradient(135deg, #4f46e5, #6d28d9); }
.final .h2 { color: #fff; }
.final p { color: rgba(255,255,255,.85); max-width: 520px; margin: 0 auto 26px; font-size: 17px; }
.final .btn { background: #fff; color: var(--p); }
.final .btn:hover { color: var(--pd); }
.ft { border-top: 1px solid var(--line); padding: 46px 0 28px; }
.ft-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
.ft p { color: var(--ts); font-size: 14.5px; margin-top: 12px; max-width: 320px; }
.ft h5 { font-size: 14px; font-weight: 800; margin-bottom: 12px; }
.ft-col a { display: flex; align-items: center; gap: 8px; color: var(--ts); text-decoration: none; font-size: 14.5px; padding: 4px 0; }
.ft-col a:hover { color: var(--p); }
.ft-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); color: #94a3b8; font-size: 13.5px; }

/* ---------- появление при прокрутке: только если включено скриптом ---------- */
html.rv-on .rv { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
html.rv-on .rv.vi { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.rv-on .rv { opacity: 1; transform: none; transition: none; } .btn, .card, .faq summary .chev { transition: none; } }

/* ---------- адаптивность ----------
   большие экраны ≥1600 · ноутбук 1081–1440 · планшет альбомный 901–1080 · планшет 681–900 · телефон ≤680 · маленький ≤380 ·
   телефон лёжа (низкий экран) — отдельно */
@media (min-width: 1600px) {
  .wrap { max-width: 1300px; }
  .nav-in, .mob { max-width: 1260px; }
  .hero-shot { max-width: 1200px; }
  .hero h1 { font-size: 72px; }
  .hero-text { max-width: 960px; }
}
/* ПК: первый экран в две колонки — текст слева, снимок урока справа (планшет и телефон — друг под другом) */
@media (min-width: 1181px) {
  .hero { padding: 128px 0 64px; }
  .hero-grid { grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); gap: 48px; }
  .hero-text { text-align: left; max-width: none; margin: 0; }
  .hero h1 { font-size: 46px; } /* колонка ~520px до 1600 — «Все уроки, задания» в одну строку */
  .hero h1 span { display: block; } /* три ровные строки: «Все уроки, задания / и ученики — / в одном окне» */
  .float.f1 { left: 34%; top: 31%; } /* пустое место доски правее «F = m · a» — не на панели кнопок и не на телефоне */
  .hero-cta .btn { padding: 0 20px; font-size: 15px; } /* в ряд, где помещаются; на 1280 — друг под другом, не обрезаются */
  .hero .lead { margin: 0 0 28px; max-width: 560px; }
  .hero-cta, .trust { justify-content: flex-start; }
  .trust { flex-wrap: nowrap; gap: 8px 18px; white-space: nowrap; } /* три коротких — в один ряд */
  .hero-shot { max-width: none; margin: 0; padding-bottom: 7%; padding-right: 8%; }
  .hero-shot .phone { width: 27%; right: 0; min-width: 0; }
}
@media (min-width: 1600px) { .hero h1 { font-size: 54px; } }
@media (max-width: 1179px) { .float { display: none; } } /* на узком снимке плашки закрыли бы доску */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-act { margin-left: auto; }
  .fx-slide { gap: 32px; padding: 36px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .sec { padding: 76px 0; }
  .fxs { padding-top: 76px; }
  .fxs-head { margin-bottom: 28px; }
  .fx-slide { grid-template-columns: 1fr; gap: 22px; padding: 22px; border-radius: 24px; }
  .fx-slide .feat-shot { order: -1; }
  .feat-shot .phone { width: 27%; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .ft-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
}
@media (max-width: 680px) {
  .nav-act { display: none; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .nav-in { padding: 6px 6px 6px 14px; border-radius: 16px; }
  .hero { padding: 108px 0 36px; }
  .hero-grid { gap: 36px; }
  .hero h1 { font-size: clamp(31px, 8.6vw, 46px); letter-spacing: -.04em; margin-bottom: 16px; }
  .hero .lead { margin-bottom: 24px; }
  .btn { min-height: 50px; height: auto; width: 100%; padding: 12px 18px; white-space: normal; text-align: center; line-height: 1.25; }
  .hero-cta { flex-direction: column; gap: 10px; }
  .trust { display: none; } /* в одну строку на телефоне не помещаются — скрыты */
  .float { display: none; }
  .hero-shot { padding-bottom: 14%; padding-right: 8%; }
  .hero-shot .phone { width: 34%; right: -1%; bottom: -2%; border-radius: 26px; padding: 6px; min-width: 0; }
  .hero-shot .phone img { border-radius: 21px; }
  .browser-bar { height: 28px; padding: 0 10px; gap: 5px; }
  .browser-bar i { width: 8px; height: 8px; }
  .browser-bar span { display: none; }
  .browser { border-radius: 12px; box-shadow: 0 30px 60px -30px rgba(30,41,59,.45), 0 3px 10px rgba(15,23,42,.06); }
  .sec { padding: 60px 0; }
  .h2 { margin-bottom: 12px; }
  .fxs { padding-top: 60px; }
  .fxs-head { margin-bottom: 24px; }
  .fxs.on .fxs-head { margin-bottom: 16px; }
  .fxs.on .fxs-head .h2 { font-size: clamp(24px, 6.6vw, 30px); }
  .fxs-track { gap: 14px; }
  .fx-slide { padding: 14px 14px 18px; gap: 16px; border-radius: 22px; }
  .sec-cards { padding-top: 30px; }
  .feat-text h3 { font-size: clamp(24px, 6.6vw, 30px); margin-bottom: 10px; }
  .feat-text p { font-size: 16px; margin-bottom: 16px; }
  .ticks { gap: 9px; }
  .ticks li { font-size: 15px; gap: 10px; }
  .ticks li i { width: 22px; height: 22px; font-size: 10px; }
  .feat-shot.has-phone { padding-right: 14%; padding-bottom: 9%; }
  .feat-shot .phone { width: 31%; min-width: 0; border-radius: 20px; padding: 5px; }
  .feat-shot .phone img { border-radius: 16px; }
  .feat-text { padding: 0 4px; }
  .cards { gap: 12px; margin-top: 32px; }
  .card { padding: 20px; border-radius: 18px; }
  .steps { margin-top: 30px; }
  .step { grid-template-columns: 46px 1fr; column-gap: 16px; padding-bottom: 28px; }
  .step::before { left: 22px; top: 50px; }
  .step b.n { width: 46px; height: 46px; font-size: 18px; box-shadow: 0 0 0 5px var(--pl), 0 10px 20px -10px rgba(79,70,229,.6); }
  .step h4 { font-size: 18px; margin-top: 2px; }
  .step p { font-size: 15px; }
  .price { padding: 28px 20px; margin-top: 34px; }
  .price-sum b { font-size: 48px; }
  .faq { margin-top: 30px; gap: 8px; }
  .faq details { padding: 0 16px; border-radius: 14px; }
  .faq summary { font-size: 15.5px; padding: 16px 0; }
  .faq details p { font-size: 15px; padding-bottom: 16px; }
  /* телефон: фото и имя в одну строку, текст по левому краю, Telegram · Max · Почта — тремя плитками в одну линию */
  .about { grid-template-columns: 64px 1fr; column-gap: 14px; row-gap: 0; align-items: center; text-align: left; padding: 20px 18px; margin-top: 28px; border-radius: 22px; }
  .about > div { display: contents; }
  .about img { grid-row: 1 / span 2; width: 64px; height: 64px; border-radius: 18px; }
  .about h3 { grid-column: 2; align-self: end; font-size: 19px; line-height: 1.2; }
  .about .role { grid-column: 2; align-self: start; margin: 3px 0 0; font-size: 13px; line-height: 1.35; }
  .about p { grid-column: 1 / -1; font-size: 15px; line-height: 1.55; margin: 0; }
  .about p:first-of-type { margin-top: 16px; }
  .about p + p { margin-top: 10px; }
  .about-links { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
  .about-links a { flex-direction: column; justify-content: center; gap: 5px; padding: 10px 4px; border-radius: 14px; font-size: 12.5px; text-align: center; }
  .about-links a i { font-size: 18px; }
  .final { margin: 0 max(12px, env(safe-area-inset-left, 0px)) 50px; padding: 48px 20px; border-radius: 24px; }
  .ft { padding: 36px 0 calc(24px + env(safe-area-inset-bottom, 0px)); }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .ft-bottom { flex-direction: column; gap: 6px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .nav { padding: 0 10px; }
  .hero { padding-top: 98px; }
  .hero .lead { font-size: 15.5px; }
  .btn { font-size: 15.5px; }
  .price { padding: 26px 16px; }
  .price-sum b { font-size: 42px; }
  .card { padding: 18px; }
  .btn i { display: none; }
  .fxs-track { padding: 0 16px; }
  .fx-slide { padding: 12px 12px 16px; }
}
/* телефон лёжа: экран низкий — шапка ближе к краю, первый экран короче */
@media (max-height: 500px) and (orientation: landscape) {
  .nav { top: 8px; }
  .hero { padding-top: 92px; }
  .hero h1 { font-size: clamp(30px, 5vw, 44px); }
  .mob { max-height: calc(100vh - 80px); overflow: auto; }
  .fxs.on .fx-slide { grid-template-columns: 1.1fr .9fr; gap: 20px; padding: 14px 18px; }
  .fxs.on .fx-slide .feat-shot { order: 0; }
  .fxs.on .feat-shot.has-phone { padding: 0; }
  .fxs.on .feat-shot .phone { display: none; }
  .fxs.on .ticks { gap: 6px; }
  .fxs.on .ticks li { font-size: 13.5px; }
  .fxs.on .feat-text h3 { font-size: 22px; }
  .fxs.on .feat-text p { font-size: 14.5px; }
  .fxs.on .fxs-head .h2 { font-size: 26px; }
  /* перевёртыши лёжа: лицо в две колонки — заголовок и «Подробнее» слева, снимок справа (иначе карточка выше экрана) */
  .fxs.flipc .fx-front { grid-template-columns: .9fr 1.1fr; grid-template-rows: 1fr auto 1fr; column-gap: 18px; row-gap: 8px; padding: 12px 16px; }
  .fxs.flipc .fx-front .feat-text { grid-column: 1; grid-row: 2; }
  .fxs.flipc .fx-front .feat-shot { grid-column: 2; grid-row: 1 / span 3; align-self: center; order: 0; }
  .fxs.flipc .fx-front .fx-hint { grid-column: 1; grid-row: 3; align-self: start; }
  .fxs.sw { padding-top: 40px; }
  .fxs.sw .fxs-head { margin-bottom: 14px; }
  .fxs.sw .fxs-head .lead { display: none; }
  .fxs.sw .fx-front { padding: 10px 10px 12px; gap: 10px; }
  .fxs.sw .feat-text h3 { font-size: 18px; }
}

/* iPhone (Safari и все браузеры на нём, в том числе Яндекс): поле ввода со шрифтом мельче 16 px при нажатии приближает
   страницу. На сенсорных экранах поля — не мельче 16 px; масштаб пальцами не запрещаем (мелкий текст можно приблизить). */
@media (hover: none) and (pointer: coarse) {
    input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),
    textarea:not(.tl-text-input), select, .ProseMirror, [contenteditable="true"]:not(.tl-container *) { font-size: max(16px, 1em) !important; }
}

