/* ПДД-коуч — лендинг, редизайн 10.08.2026. Vanilla CSS, no framework, no CDN.
   Живёт отдельно от /lp/style.css (тот остался нетронутым вместе с картинками
   и иконками в /lp/). Шрифты не дублируются — линкуются в /app/fonts/, как и
   в кабинете мини-аппа.

   Что поменялось против первой версии: Unbounded теперь несёт всю крупную
   типографику (h1/h2/h3, цифры, цены), а не только h1; появился воздух
   (секции 72→112px), тёмный акцент-блок «что внутри», сравнение картинок
   было/стало, телефонные рамки со скринами кабинета и свитчер инструкторов.
   Палитра прежняя, брендовая: синий #2f6bff + солнечный #ff9500. */

@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;
  --ink-deep: #0b1020; /* тёмный акцент-блок, тот же тон что --ink, глубже */
  --hairline: rgba(16, 20, 28, 0.09);
  --shadow: 0 18px 44px rgba(23, 37, 74, 0.1), 0 2px 6px rgba(23, 37, 74, 0.05);
  --shadow-sm: 0 6px 20px rgba(23, 37, 74, 0.07);

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

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --maxw: 1120px;
}

* {
  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.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 8px;
}

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

.section {
  padding: 72px 20px;
}
.section.alt {
  background: var(--page-alt);
}

/* Шапка секции: надзаголовок + крупный заголовок + подводка. */
.eyebrow {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.h-section {
  font-size: clamp(27px, 6.2vw, 42px);
  line-height: 1.08;
  text-align: center;
  max-width: 20ch;
  margin: 0 auto;
}
.sub-section {
  text-align: center;
  max-width: 52ch;
  margin: 16px auto 0;
  color: var(--ink-soft);
  font-size: 16px;
}
.h-section + .grid-gap,
.sub-section + .grid-gap {
  margin-top: 40px;
}

/* ---- кнопки ---- */
.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 8px 22px rgba(47, 107, 255, 0.3);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(47, 107, 255, 0.34);
}
.btn:active {
  transform: translateY(1px);
}
.btn.secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 1.5px solid var(--hairline);
}
.btn.secondary:hover {
  transform: translateY(-2px);
  box-shadow: none;
}
.btn-lg {
  padding: 17px 28px;
  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.55);
  backdrop-filter: blur(6px);
}

/* ---- плашка платформ (сейчас Telegram, скоро MAX) ---- */
.platforms {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
}
.platforms b {
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.platforms svg {
  flex-shrink: 0;
}
.platforms i {
  font-style: normal;
  opacity: 0.45;
}
.hero .platforms {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(10, 14, 22, 0.34);
  color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
}
.hero .platforms b {
  color: #fff;
}

/* ---- hero ---- */
.hero {
  position: relative;
  min-height: 94vh;
  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.5) 0%,
    rgba(10, 14, 22, 0.2) 30%,
    rgba(10, 14, 22, 0.6) 66%,
    rgba(6, 9, 15, 0.92) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 72px;
  padding-bottom: 56px;
}
.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffd9a3;
  background: rgba(255, 149, 0, 0.2);
  border: 1px solid rgba(255, 191, 61, 0.3);
  padding: 8px 15px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(36px, 9vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 14ch;
}
.hero-sub {
  margin-top: 20px;
  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;
}
.hero-note {
  margin: 18px 0 0;
  max-width: 46ch;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.68);
}
.hero-platforms {
  margin-top: 22px;
}

/* ---- карточки боли ---- */
.cards-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.card-ico {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  margin-bottom: 16px;
  color: var(--brand);
  background: linear-gradient(140deg, rgba(255, 149, 0, 0.14), rgba(47, 107, 255, 0.12));
}
.card h3 {
  font-size: 19px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.card p {
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ---- шаги ---- */
.steps-4 {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.steps-4 li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 24px 24px;
  box-shadow: var(--shadow-sm);
}
.step-n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: var(--brand);
  background: linear-gradient(140deg, rgba(255, 149, 0, 0.14), rgba(47, 107, 255, 0.12));
}
.steps-4 h3 {
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.steps-4 p {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---- «что внутри»: тёмный акцент-блок ---- */
.dark-block {
  background: var(--ink-deep);
  color: #fff;
  border-radius: 0;
  padding: 84px 20px;
  position: relative;
  overflow: hidden;
}
.dark-block::before {
  /* тёплое пятно света в углу, чтобы блок не читался как чёрный прямоугольник */
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -180px;
  top: -280px;
  background: radial-gradient(circle, rgba(255, 149, 0, 0.18), transparent 65%);
  pointer-events: none;
}
.dark-block .eyebrow {
  color: var(--sun2);
}
.dark-block .h-section {
  color: #fff;
}
.dark-block .sub-section {
  color: rgba(255, 255, 255, 0.6);
}
.facts-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.fact {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-lg);
  padding: 24px 18px;
  text-align: center;
}
.fact-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 8vw, 40px);
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(140deg, var(--sun2), #7ea6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fact-num svg {
  color: var(--sun2);
}
.fact-lbl {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.62);
}

/* ---- было → стало ---- */
.compare-list {
  display: grid;
  gap: 18px;
}
.compare {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.cmp-pane {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #f6f8fc;
  border: 1px solid var(--hairline);
}
.cmp-pane img {
  width: 100%;
  /* height:auto обязателен: без него атрибут height="..." в разметке остаётся
     презентационной подсказкой и aspect-ratio просто не применяется. */
  height: auto;
  aspect-ratio: 604 / 225;
  object-fit: cover;
}
.cmp-tag {
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(16, 20, 28, 0.72);
  color: #fff;
  backdrop-filter: blur(6px);
}
.cmp-pane.after .cmp-tag {
  background: var(--green);
}
.compare-cap {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 2px 6px 4px;
}

/* ---- телефонные рамки со скринами кабинета ---- */
.phones {
  display: flex;
  gap: 22px;
  justify-content: flex-start;
  overflow-x: auto;
  padding: 6px 20px 22px;
  margin: 0 -20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.phones::-webkit-scrollbar {
  display: none;
}
.phone-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 246px;
  text-align: center;
}
.phone {
  position: relative;
  border-radius: 42px;
  padding: 9px;
  background: linear-gradient(160deg, #232936, #0d1119);
  box-shadow: 0 28px 60px rgba(11, 16, 32, 0.28), 0 2px 0 rgba(255, 255, 255, 0.12) inset;
}
.phone-screen {
  border-radius: 34px;
  overflow: hidden;
  background: #eff2f9;
  aspect-ratio: 390 / 800;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.phone-cap {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---- инструктор: свитчер ---- */
.persona-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.persona-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 7px;
  border-radius: 999px;
  border: 1.5px solid var(--hairline);
  background: var(--card);
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.persona-tab img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.persona-tab:hover {
  transform: translateY(-2px);
}
.persona-tab[aria-selected="true"] {
  border-color: var(--brand);
  box-shadow: 0 8px 22px rgba(47, 107, 255, 0.2);
}
.persona-panel {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  max-width: 860px;
  margin: 0 auto;
}
.persona-panel[hidden] {
  display: none;
}
.persona-photo {
  width: calc(100% - 32px);
  height: auto; /* см. коммент у .cmp-pane img — иначе aspect-ratio не сработает */
  aspect-ratio: 4 / 5;
  max-height: 420px;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 20px;
  margin: 16px 16px 0;
}
.persona-body {
  padding: 22px 26px 28px;
}
.persona-body h3 {
  font-size: 24px;
  margin-bottom: 6px;
}
.persona-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.persona-meta span {
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--page);
  color: var(--ink-soft);
}
.persona-body p {
  color: var(--ink-soft);
  font-size: 16px;
  margin-bottom: 22px;
}

/* ---- цены ---- */
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 560px;
  margin: 0 auto;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.price-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.price-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 46px;
  letter-spacing: -0.04em;
  margin: 10px 0 12px;
}
.price-desc {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 20px;
}
.price-card .btn {
  width: 100%;
}
.price-card.premium {
  background: linear-gradient(155deg, #ff9f1c, #ff7a00);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(255, 122, 0, 0.32);
}
.price-card.premium .price-name {
  color: rgba(255, 255, 255, 0.85);
}
.price-plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 18px;
}
.price-plan > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 12px 15px;
}
.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: 14px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

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

/* ---- финальный CTA ---- */
.final-cta {
  text-align: center;
  padding-top: 88px;
  padding-bottom: 88px;
}
.final-cta h2 {
  font-size: clamp(28px, 7vw, 48px);
  line-height: 1.05;
  margin: 0 auto 14px;
  max-width: 16ch;
}
.final-cta p {
  color: var(--ink-soft);
  font-size: 16.5px;
  margin: 0 auto 28px;
  max-width: 44ch;
}
.final-platforms {
  margin-top: 22px;
}

/* ---- футер ---- */
.footer {
  text-align: center;
  padding: 12px 20px 48px;
}
.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: 14px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 13px;
}
.footer-legal a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.footer-sub {
  color: var(--ink-soft);
  font-size: 12px;
}

/* ---- адаптив ---- */
@media (min-width: 700px) {
  .section {
    padding: 96px 20px;
  }
  .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;
  }
  .steps-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .compare {
    grid-template-columns: 1fr 1fr;
    padding: 18px;
  }
  .phones {
    justify-content: center;
    overflow-x: visible;
    margin: 0;
    padding: 6px 0 8px;
  }
}
@media (min-width: 900px) {
  .section {
    padding: 112px 20px;
  }
  .persona-panel {
    grid-template-columns: 320px 1fr;
    align-items: stretch;
  }
  .persona-photo {
    max-height: none;
    height: calc(100% - 32px);
    margin: 16px 0 16px 16px;
    width: calc(100% - 16px);
  }
  .persona-body {
    padding: 34px 38px;
    align-self: center;
  }
  .persona-body h3 {
    font-size: 28px;
  }
  .phone-item {
    width: 262px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
