/* to-sun.ru/efir/ — общая страница записи на эфир школы «К Солнцу». Вид — как у главной to-sun.ru
   (monolith frontend/client/src/components/landing-journey): бумага, зелёный, оранжевый, Manrope, объёмные кнопки.
   Записывает окно контура training-sales (widget.js): его цвета задают переменные --efir-* ниже. */
:root {
  color-scheme: light;
  --ink: #1a1a1a;
  --muted: #5c6670;
  --paper: #fafafa;
  --card: #ffffff;
  --line: #e8eaed;
  --green: #245f55;
  --green-2: #3f8f80;
  --green-3: #1b4a42;
  --green-light: #e8f1ed;
  --orange: #ff6b35;
  --gold: #c89b45;
  --radius: clamp(18px, 3vw, 28px);
  --shadow: 0 14px 34px rgb(35 59 52 / 11%), 0 4px 10px rgb(35 59 52 / 5%);
  --wrap: 1180px;
  --font: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --efir-font: var(--font);
  --efir-ink: var(--ink);
  --efir-accent: var(--green);
  --efir-accent-2: var(--green-2);
  --efir-accent-3: var(--green-3);
  --efir-link: var(--green);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 500 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 8% 6%, rgb(254 115 19 / 11%), transparent 40%),
    radial-gradient(circle at 92% 10%, rgb(177 203 255 / 16%), transparent 38%),
    radial-gradient(circle at 14% 62%, rgb(36 95 85 / 7%), transparent 40%),
    var(--paper);
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 14px; }
h3 { font-size: 20px; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0 0 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sec { padding-block: clamp(48px, 7vw, 84px); }
.kick {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px;
  color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.kick::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--orange), var(--gold)); }
.lead { color: var(--muted); font-size: clamp(17px, 1.8vw, 21px); max-width: 38em; }
.hl { color: var(--green); }

/* Кнопка — как pill3d главной */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 0 34px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: 800 18px/1.1 var(--font); color: #fff; letter-spacing: -0.01em;
  background: linear-gradient(180deg, #2f7a6c 0%, var(--green) 52%, var(--green-3) 100%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 28%) inset, 0 -3px 0 rgb(0 0 0 / 14%) inset, 0 14px 30px rgb(36 95 85 / 30%), 0 5px 12px rgb(36 95 85 / 18%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn_sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* Шапка */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.top__logo img { width: min(200px, 44vw); height: auto; }
.top__right { display: flex; gap: 10px; align-items: center; }
.partner {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid rgb(36 95 85 / 22%);
  border-radius: 999px; background: rgb(255 255 255 / 72%); color: var(--green); font-size: 15px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
}
.partner:hover { border-color: var(--green); background: #fff; }

/* Первый экран */
.hero { display: grid; gap: clamp(28px, 5vw, 64px); padding-block: clamp(20px, 4vw, 48px) clamp(40px, 6vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 68px); }
.hero .lead { margin-top: 18px; }
.when {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 24px 0 18px; font-weight: 700; font-size: clamp(16px, 1.4vw, 19px);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgb(255 107 53 / 16%); flex: none; }
.count { display: flex; gap: 10px; margin: 0 0 26px; }
.count div {
  min-width: 70px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 16px; background: rgb(255 255 255 / 85%);
  text-align: center; box-shadow: var(--shadow);
}
.count b { display: block; font-size: 26px; font-weight: 800; color: var(--green); line-height: 1.1; }
.count span { font-size: 12px; color: var(--muted); }
.note { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.hero__card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow);
}
.hero__card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; background: #fff; }
.hero__badge {
  position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 14px 16px; border-radius: 18px;
  background: rgb(255 255 255 / 92%); backdrop-filter: blur(6px); font-size: 14px; color: var(--muted);
}
.hero__badge b { display: block; color: var(--ink); font-size: 17px; }

/* Цифры */
.facts { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.facts li { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgb(255 255 255 / 85%); box-shadow: var(--shadow); color: var(--muted); font-size: 15px; }
.facts b { display: block; color: var(--green); font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }

/* Карточки */
.cards { display: grid; gap: 16px; margin-top: 28px; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.card__n { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--green-light); color: var(--green); font-weight: 800; }
.card p { color: var(--muted); margin: 8px 0 0; }

/* Ведущая */
.author { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.author__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.author__photo img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.quote { margin: 18px 0; padding: 18px 20px; border-left: 4px solid var(--orange); border-radius: 0 18px 18px 0; background: rgb(255 255 255 / 80%); font-weight: 600; }
.awards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.awards--column { margin-top: 0; }
@media (min-width: 960px) { .awards--column { grid-template-columns: minmax(0, 1fr); } }
.awards figure { margin: 0; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.awards img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; background: #fff; }
.awards figcaption { padding: 10px 12px; font-size: 13px; color: var(--muted); }

/* Отзывы */
.reviews { display: grid; gap: 16px; margin-top: 28px; }
.review { border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.review video { width: 100%; aspect-ratio: 9 / 12; object-fit: cover; background: #10201d; }
.review__t { padding: 16px 18px; }
.review__t b { display: block; }
.review__t span { font-size: 13px; color: var(--muted); }
.review__t p { margin: 8px 0 0; font-size: 15px; }

/* Маршрут */
.path { counter-reset: s; display: grid; gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; }
.path li { position: relative; padding: 20px 20px 20px 72px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.path li::before {
  counter-increment: s; content: counter(s); position: absolute; left: 20px; top: 20px; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(180deg, #2f7a6c, var(--green)); color: #fff; font-weight: 800;
}
.path p { margin: 6px 0 0; color: var(--muted); }

/* Вопросы */
.faq { display: grid; gap: 12px; margin-top: 24px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.faq summary { padding: 16px 18px; cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--green); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* Финал */
.final { text-align: center; padding: clamp(40px, 6vw, 72px) 20px; border-radius: var(--radius); background: linear-gradient(160deg, #2f7a6c, var(--green) 55%, var(--green-3)); color: #fff; }
.final h2 { color: #fff; }
.final p { color: rgb(255 255 255 / 85%); }
.final .btn { background: #fff; color: var(--green); box-shadow: 0 14px 30px rgb(0 0 0 / 18%); }

/* Подвал */
.foot { padding-block: 36px 48px; color: var(--muted); font-size: 14px; text-align: center; }
.foot a { color: inherit; }
.foot p { margin: 4px 0; }

.sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; display: none; }
.sticky--off { visibility: hidden; opacity: 0; }
.sticky .btn { width: 100%; }

@media (max-width: 599px) {
  .partner__long { display: none; }
  .hero .btn { width: 100%; }
  .count div { min-width: 0; flex: 1; }
  .sticky { display: block; }
  .foot { padding-block-end: 96px; }
}
@media (min-width: 600px) { .partner__short { display: none; } }
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); }
  .author { grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
