/* Главная страница (для посетителей до регистрации) */
.landing { padding: 0; }
.landing__messages { padding-top: 16px; }
.accent { color: var(--accent); }
.btn--lg { padding: 14px 26px; font-size: 1.05rem; border-radius: 12px; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #1d1500; }
.btn--gold:hover { background: #ffc629; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark);
  font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.chip--light { background: rgba(255,255,255,.14); color: #fff; }

/* Главный экран */
.hero { position: relative; overflow: hidden; padding: 56px 0 28px;
  background: radial-gradient(1100px 500px at 85% -10%, #dfe7ff 0%, transparent 60%),
              radial-gradient(700px 400px at -10% 110%, #fff3d1 0%, transparent 60%), var(--bg); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
/* элементы сетки могут сжиматься уже своего содержимого — иначе на телефоне страница шире экрана */
.hero__grid > *, .cards > *, .steps-x > *, .teacher > *, .stats > * { min-width: 0; }
.landing { overflow-x: clip; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.1; margin: 16px 0; font-weight: 800; letter-spacing: -.02em; }
.hero__title span { display: block; }
.hero__title .hero__title-main { font-size: 1.25em; }
.hero__title span:last-child { font-size: .78em; color: var(--text); opacity: .85; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 36em; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero__note { color: var(--muted); font-size: .92rem; margin-top: 12px; }
.hero__note::before { content: '✓ '; color: var(--ok); font-weight: 800; }

.hero__visual { position: relative; min-height: 360px; }
.mock { background: var(--card); border-radius: 22px; box-shadow: 0 20px 60px rgba(20,32,59,.16); overflow: hidden;
  width: 100%; max-width: 420px; margin-left: auto; transform: rotate(1.5deg); }
.mock__video { aspect-ratio: 16 / 9; position: relative; background: #e9e4da; overflow: hidden; }
.mock__video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mock__video::after { content: ''; position: absolute; inset: 55% 0 0 0; background: linear-gradient(transparent, rgba(10,16,32,.72)); }
.mock__caption { position: absolute; left: 12px; top: 10px; z-index: 2; background: rgba(20,32,59,.82); color: #fff;
  font-weight: 700; font-size: .82rem; padding: 4px 10px; border-radius: 999px; }
.mock__controls { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 2; display: flex; align-items: center; gap: 10px; color: #fff; }
.mock__btn { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: grid; place-items: center;
  font-size: 12px; padding-left: 2px; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.mock__track { flex: 1; height: 5px; border-radius: 999px; background: rgba(255,255,255,.35); overflow: hidden; }
.mock__track span { display: block; height: 100%; background: #fff; }
.mock__time { font-size: .78rem; font-weight: 700; }
/* Карточка «Так выглядит урок» — ссылка на первый урок (а не плеер). */
.hero__visual--link { display: block; text-decoration: none; color: inherit; }
.mock-tag { display: inline-block; margin: 0 0 10px; padding: 6px 12px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); color: var(--muted); font-size: .85rem; font-weight: 700; }
.mock__video::after { display: none; }
.mock__cta { margin: 0 18px 18px; padding: 12px 16px; border-radius: 12px; background: var(--accent); color: #fff;
  font-weight: 700; text-align: center; transition: background .15s; }
.hero__visual--link:hover .mock__cta { background: var(--accent-dark); }
.mock__label { color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.mock__quiz { padding: 16px 18px 18px; display: grid; gap: 8px; font-size: .92rem; }
.mock__q { font-size: 1rem; margin-bottom: 2px; }
.mock__opt { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.mock__opt--ok { border-color: #9fd8b3; background: var(--ok-bg); color: var(--ok); font-weight: 700; display: flex; justify-content: space-between; }
.mock__bar { height: 8px; background: #eef0f6; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.mock__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #6b8cff); border-radius: 999px; }
.mock__meta { color: var(--muted); font-size: .85rem; }
.badge-float { position: absolute; padding: 10px 14px; border-radius: 14px; font-weight: 700; font-size: .9rem;
  box-shadow: 0 10px 30px rgba(20,32,59,.15); background: #fff; white-space: nowrap; }
.badge-float--gold { left: 0; bottom: -22px; background: #fff7dd; color: #6b4b00; }
.badge-float--blue { left: 0; bottom: -22px; color: var(--accent-dark); }
.hero__visual { padding-bottom: 24px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.stat { background: var(--card); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 1.8rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .92rem; }

/* Общие блоки */
.block { padding: 64px 0; }
.block--soft { background: #fff; border-block: 1px solid var(--line); }
.block__title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.01em; margin: 0 0 8px; }
.block__lead { color: var(--muted); margin: 0 0 28px; }
.block__title + .cards, .block__title + .steps-x, .block__title + .price-card { margin-top: 28px; }
.cards { display: grid; gap: 16px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card-x { background: var(--card); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px; transition: transform .2s, box-shadow .2s; }
.card-x:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20,32,59,.12); }
.card-x h3 { margin: 6px 0 2px; font-size: 1.15rem; }
.card-x p { color: var(--muted); margin: 0 0 8px; flex: 1; }
.card-x__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: var(--accent-soft); }
.card-x--2 .card-x__icon { background: #fff4d6; }
.card-x--3 .card-x__icon { background: #e6f7ee; }
.card-x__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.card-x__meta span { background: var(--bg); border-radius: 999px; padding: 4px 10px; font-size: .85rem; font-weight: 700; color: var(--accent-dark); }

/* Как проходит обучение */
.steps-x { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: none; }
.steps-x li { position: relative; background: var(--bg); border-radius: 20px; padding: 20px 18px; }
.steps-x h3 { margin: 12px 0 6px; font-size: 1.05rem; }
.steps-x p { margin: 0; color: var(--muted); font-size: .95rem; }
.steps-x__n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), #6b8cff); }

/* Гарантии под разделами курса */
.assure { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.assure li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px; color: var(--muted); font-size: .95rem; line-height: 1.5; min-width: 0; }
.assure b { display: block; margin-bottom: 2px; color: var(--text); font-size: 1rem; }
.assure li > span:last-child { font-size: .88rem; }
.assure__icon { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ok-bg, #e7f6ec); color: var(--ok, #1d6b3a); font-weight: 800; }
@media (max-width: 760px) { .assure { grid-template-columns: 1fr; } }

/* Преимущества */
.adv__card { position: relative; background: var(--card); border-radius: 20px; padding: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.adv__card h3 { margin: 10px 0 6px; font-size: 1.1rem; }
.adv__card p { margin: 0; color: var(--muted); font-size: .97rem; }
.adv__n { position: absolute; right: 16px; top: 8px; font-size: 3rem; font-weight: 800; color: var(--accent-soft); line-height: 1; }
.adv__icon { font-size: 30px; }

/* Преподаватель */
.block--dark { background: linear-gradient(135deg, #14203b 0%, #1e3a8a 100%); color: #fff; }
.teacher { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center; }
.teacher__photo { position: relative; }
.teacher__photo img, .teacher__initials { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35); display: block; }
.teacher__initials { display: grid; place-items: center; font-size: 5rem; font-weight: 800; color: #fff;
  background: linear-gradient(160deg, #6b8cff, #2f5bea 55%, #1e3a8a); border: 1px solid rgba(255,255,255,.2); }
.teacher__photo::after { content: '🏅'; position: absolute; right: -14px; bottom: -14px; width: 64px; height: 64px; border-radius: 50%;
  background: var(--gold); display: grid; place-items: center; font-size: 30px; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.teacher h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 14px 0 4px; font-weight: 800; }
.teacher__title { color: #c9d5ff; margin: 0 0 18px; }
.teacher__list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.teacher__list li { padding-left: 32px; position: relative; font-size: 1.05rem; }
.teacher__list li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: #1d1500; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.teacher__badges { display: flex; gap: 14px; flex-wrap: wrap; }
.teacher__badges div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: 16px; padding: 12px 16px; min-width: 150px; }
.teacher__badges b { display: block; font-size: 1.7rem; color: var(--gold); line-height: 1.1; }
.teacher__badges span { color: #dbe3ff; font-size: .9rem; }

/* Instagram */
.insta { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 10px 16px 10px 10px; border-radius: 16px;
  text-decoration: none; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  transition: background .2s, transform .2s; }
.insta:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.insta__icon { width: 44px; height: 44px; border-radius: 12px; padding: 9px; color: #fff; display: inline-block;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.insta__icon--sm { width: 26px; height: 26px; padding: 5px; border-radius: 8px; vertical-align: middle; margin-right: 8px; }
.insta__text { display: flex; flex-direction: column; font-weight: 700; line-height: 1.25; }
.insta__text small { color: #c9d5ff; font-weight: 600; }
.insta__go { margin-left: 8px; font-weight: 700; color: var(--gold); white-space: nowrap; }
.footer__insta { display: inline-flex; align-items: center; }

/* Скриншоты отзывов */
.screens { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 14px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.screens__item { flex: 0 0 auto; width: 220px; height: 400px; scroll-snap-align: start; padding: 0; border: 0; cursor: zoom-in;
  border-radius: 18px; overflow: hidden; background: #0f172e; box-shadow: var(--shadow); position: relative; }
.screens__item img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .3s; }
.screens__item:hover img { transform: scale(1.03); }
.screens__cap { position: absolute; left: 8px; right: 8px; bottom: 8px; background: rgba(255,255,255,.92); border-radius: 10px;
  padding: 6px 8px; font-size: .82rem; font-weight: 700; color: var(--text); }
.screens__nav { display: flex; justify-content: center; align-items: center; gap: 14px; }
.screens__arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.5rem;
  line-height: 1; cursor: pointer; color: var(--accent); box-shadow: var(--shadow); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 16, 32, .82); }
.lightbox img { display: block; max-width: 94vw; max-height: 92vh; border-radius: 14px; }
.lightbox__close { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 14px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; font-size: 1.6rem; cursor: pointer; }
.lightbox__arrow { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.lightbox__arrow--prev { left: 14px; }
.lightbox__arrow--next { right: 14px; }
@media (max-width: 600px) { .lightbox__arrow { width: 40px; height: 40px; font-size: 1.6rem; left: auto; }
  .lightbox__arrow--prev { left: 6px; } .lightbox__arrow--next { right: 6px; } }

/* Отзывы */
.review { background: var(--card); border-radius: 20px; padding: 22px; border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.review__text { margin: 0; font-size: 1rem; }
.review__who { display: flex; gap: 12px; align-items: center; }
.review__who img, .review__ava { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.review__ava { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; }
.review__who b { display: block; }
.review__who span { color: var(--gold-dark); font-size: .9rem; font-weight: 700; }
.empty-reviews { margin-top: 24px; text-align: center; padding: 40px 20px; border: 2px dashed var(--line); border-radius: 20px; color: var(--muted); background: #fff; }
.empty-reviews__icon { font-size: 40px; }

/* Цена */
#price .block__title { text-align: center; }
.price-card { max-width: 640px; margin-inline: auto; background: var(--card); border-radius: 24px; padding: 28px; border: 2px solid var(--accent);
  box-shadow: 0 20px 50px rgba(47,91,234,.15); }
.price-card__head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.price-card__name { font-weight: 700; color: var(--muted); }
.price-card__sum { font-size: 3rem; font-weight: 800; line-height: 1.1; }
.price-card__sum small { font-size: 1.2rem; color: var(--muted); }
.price-card__term { color: var(--muted); }
.price-card__gift { background: #fff7dd; color: #6b4b00; border-radius: 14px; padding: 10px 14px; font-weight: 700; font-size: .92rem; max-width: 240px; }
.price-card__list { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.price-card__list li { padding-left: 30px; position: relative; }
.price-card__list li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* Вопросы */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; margin-top: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--muted); }
.faq .block__title { margin-bottom: 20px; }

/* Призыв и подвал */
.cta-band { background: linear-gradient(120deg, var(--accent) 0%, #5b7cff 100%); color: #fff; padding: 44px 0; }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-band p { margin: 0; color: #e3e9ff; }
.footer { background: #0f172e; color: #c7cfe4; padding: 32px 0 20px; }
.footer__inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__logo { font-weight: 800; color: #fff; }
.footer__muted { margin: 4px 0 0; font-size: .92rem; }
.footer__contacts { display: flex; flex-direction: column; gap: 6px; }
.footer__contacts a { color: #fff; text-decoration: none; font-weight: 600; }
.footer__copy { margin-top: 20px; font-size: .85rem; color: #8590ad; }

/* Телефоны */
@media (max-width: 900px) {
  .hero__grid, .teacher { grid-template-columns: 1fr; }
  .hero__visual { display: none !important; }   /* на телефоне и планшете — без картинки урока */
  .mock { margin: 0 auto; transform: none; }
  .badge-float--gold { position: static; display: block; width: fit-content; margin: 14px auto 0; }
  .mock-tag { display: block; width: fit-content; margin: 0 auto 10px; }
  .badge-float--blue { display: none; }
  .cards--3, .steps-x { grid-template-columns: 1fr 1fr; }
  .steps-x li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .teacher__photo { max-width: 260px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 32px; }
  .cards--3, .steps-x { grid-template-columns: 1fr; }
  .block { padding: 44px 0; }
  .badge-float { white-space: normal; font-size: .82rem; }
  .price-card__sum { font-size: 2.4rem; }
  .screens__item { width: 70vw; height: 128vw; max-height: 440px; }
  .insta__go { display: none; }
}
