/* ПДД-коуч — лендинг. Vanilla CSS, no framework, no CDN.
   Same design language as the /app/ cabinet: self-hosted Unbounded + Golos
   Text (fonts are NOT duplicated here — linked straight to /app/fonts/),
   bright sunny accents, generous radii, light theme only (public page, no
   Telegram theme context to react to). */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/app/fonts/unbounded-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/app/fonts/unbounded-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/app/fonts/golos-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/app/fonts/golos-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2212;
}

:root {
  --font-display: "Unbounded", -apple-system, system-ui, sans-serif;
  --font-text: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --page: #eff2f9;
  --page-alt: #e6eaf4;
  --card: #ffffff;
  --ink: #10141c;
  --ink-soft: #5c6675;
  --hairline: rgba(16, 20, 28, 0.08);
  --shadow: 0 10px 30px rgba(23, 37, 74, 0.09), 0 2px 6px rgba(23, 37, 74, 0.05);
  --shadow-sm: 0 4px 14px rgba(23, 37, 74, 0.07);

  --brand: #2f6bff;
  --brand-ink: #ffffff;
  --sun: #ff9500;
  --sun2: #ffbf3d;
  --green: #21bf5b;

  --r-lg: 24px;
  --r-md: 18px;
  --maxw: 1080px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-text);
  background: var(--page);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding: 56px 20px;
}
.section.alt {
  background: var(--page-alt);
}
.h-section {
  font-size: 28px;
  margin-bottom: 28px;
  text-align: center;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 14px;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-text);
  cursor: pointer;
  background: var(--brand);
  color: var(--brand-ink);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(47, 107, 255, 0.28);
}
.btn:active {
  transform: translateY(1px);
}
.btn.secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn-lg {
  padding: 16px 26px;
  font-size: 17px;
  border-radius: 16px;
}
.price-card .btn.secondary {
  border-color: var(--hairline);
  color: var(--brand);
}
.hero .btn.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

/* ---- hero ---- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 22, 0.55) 0%,
    rgba(10, 14, 22, 0.25) 32%,
    rgba(10, 14, 22, 0.55) 68%,
    rgba(6, 9, 15, 0.88) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 64px;
  padding-bottom: 48px;
}
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffd9a3;
  background: rgba(255, 149, 0, 0.18);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.08;
  max-width: 13ch;
}
.hero-sub {
  margin-top: 18px;
  max-width: 46ch;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.88);
}
.hero-cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- pain cards ---- */
.cards-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow);
}
.card-emoji {
  font-size: 28px;
  margin-bottom: 10px;
}
.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.card p {
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ---- steps ---- */
.steps-4 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  counter-reset: step;
}
.steps-4 li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.step-ico {
  font-size: 26px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.14), rgba(47, 107, 255, 0.1));
}
.steps-4 h3 {
  font-size: 17px;
  margin-bottom: 4px;
}
.steps-4 p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---- facts ---- */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.fact {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.fact-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  background: linear-gradient(140deg, var(--sun), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fact-lbl {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---- instructor ---- */
.instructor-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  max-width: 480px;
  margin: 0 auto;
}
.instructor-photo {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.instructor-text h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.instructor-text p {
  color: var(--ink-soft);
  font-size: 15.5px;
}
.instructor-alt-head {
  text-align: center;
  margin: 40px 0 16px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 600;
}
.persona-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
}
.persona-chip {
  background: var(--card);
  border-radius: 14px;
  padding: 13px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.persona-chip b {
  font-family: var(--font-display);
  font-size: 14.5px;
}
.persona-chip span {
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ---- pricing ---- */
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}
.price-card {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.price-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.price-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  margin: 8px 0 10px;
}
.price-desc {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin-bottom: 18px;
}
.price-card .btn {
  width: 100%;
}
.price-card.premium {
  background: linear-gradient(155deg, #ff9f1c, #ff7a00);
  color: #fff;
  box-shadow: 0 14px 34px rgba(255, 122, 0, 0.34);
}
.price-card.premium .price-name {
  color: rgba(255, 255, 255, 0.85);
}
.price-plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 16px;
}
.price-plan > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 11px 14px;
}
.price-plan b {
  font-family: var(--font-display);
  font-size: 14.5px;
}
.price-plan span {
  font-size: 14.5px;
  text-align: right;
}
.price-plan i {
  display: block;
  font-style: normal;
  font-size: 12px;
  opacity: 0.85;
}
.price-card.premium .price-desc {
  color: rgba(255, 255, 255, 0.9);
}
.price-card.premium .btn {
  background: #fff;
  color: #c85a00;
  box-shadow: none;
}
.price-fine {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

/* ---- faq ---- */
.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
details {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 4px 20px;
  box-shadow: var(--shadow-sm);
}
summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 26px 16px 0;
  font-weight: 600;
  font-size: 15.5px;
  position: relative;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--brand);
  transition: transform 0.2s ease;
}
details[open] summary::after {
  transform: rotate(45deg);
}
details p {
  color: var(--ink-soft);
  font-size: 15px;
  padding-bottom: 18px;
}

/* ---- final CTA ---- */
.final-cta {
  text-align: center;
  padding-top: 64px;
  padding-bottom: 72px;
}
.final-cta h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.final-cta p {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 26px;
}

/* ---- footer ---- */
.footer {
  text-align: center;
  padding: 12px 20px 44px;
}
.support-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 22px;
  margin-bottom: 12px;
  background: var(--card);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.footer-sub {
  color: var(--ink-soft);
  font-size: 12px;
}

/* ---- responsive ---- */
@media (min-width: 640px) {
  .hero h1 {
    font-size: 52px;
  }
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .facts-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .pricing-cards {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }
  .persona-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 860px) {
  .hero h1 {
    font-size: 60px;
    max-width: 15ch;
  }
  .steps-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .instructor-block {
    flex-direction: row;
    text-align: left;
    max-width: 640px;
  }
  .instructor-photo {
    width: 168px;
    height: 168px;
    flex-shrink: 0;
  }
  .persona-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 780px;
  }
}

/* Ранний доступ: честная приписка под геройским CTA (бета ещё закрыта). */
.hero-note {
  margin: 18px 0 0;
  max-width: 46ch;
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.72;
}
