/* СИСТЕМА (courseseller.io) — лендинг, структура и анимации — стиль
   courseprinter.com (см. SHTAB/landing/stil-courseprinter.md), расположение
   кнопок — другое (см. SHTAB/brif-sistema-2026-09-13.md, раздел «Лендинг»).

   Палитра — первая палитра Димы (дополнение 2026-09-14): бордо #6C171E,
   глубокий зелёный #0D3D3A, кремовый #F4DABF; инверсия между секциями.
   --accent-on-dark: бордо на зелёном даёт контраст 1.02:1 (см. расчёт в
   отчёте директора разработки) — для акцентных элементов на тёмных секциях
   (eyebrow, номера шагов, ссылка-доказательство) вместо бордо используется
   кремовый. Шрифты: Playfair Display (курсивный дисплейный серив,
   замена DM Serif Display) + Golos Text (гротекст с кириллицей, замена
   Space Grotesk) + JetBrains Mono (лейблы/кнопки/цифры, замена Space Mono).
   Анимации — fade-up 40px/~1с/power3.out на IntersectionObserver + CSS,
   без GSAP и внешних библиотек. Уважает prefers-reduced-motion. */

:root {
  --bg-light: #F4DABF;
  --bg-dark: #0D3D3A;
  --text-on-light: #0D3D3A;
  --text-on-dark: #F4DABF;
  --text-muted: rgba(13, 61, 58, .7);
  --text-muted-dark: rgba(244, 218, 191, .68);
  --accent: #6C171E;
  --accent-deep: #6C171E;
  --accent-on-dark: #F4DABF;
  --surface: #E7CBAE;
  --surface-dark: #174744;
  --border-light: rgba(13, 61, 58, .1);
  --border-dark: rgba(244, 218, 191, .12);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --max-wide: 1152px;
  --max-text: 760px;
  --pad-inline: 24px;
  --r-pill: 9999px;
  --r-lg: 24px;
  --r-md: 16px;

  --ease-out: cubic-bezier(.17, .67, .35, 1);   /* ~power3.out */
  --ease-hover: cubic-bezier(.25, .46, .45, .94);
}

@media (min-width: 768px) {
  :root { --pad-inline: 64px; }
}

@media (min-width: 1024px) {
  :root { --pad-inline: 96px; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-light);
  color: var(--text-on-light);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding-left: var(--pad-inline);
  padding-right: var(--pad-inline);
}

.container-text {
  max-width: var(--max-text);
  margin: 0 auto;
  padding-left: var(--pad-inline);
  padding-right: var(--pad-inline);
}

h1, h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.8rem);
  line-height: 1.03;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05;
}

h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  margin: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-muted);
}

.section-dark .lede { color: var(--text-muted-dark); }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .21em;
  font-size: .78rem;
  font-weight: 500;
  color: var(--accent-deep);
  margin: 0 0 1.1em;
}

.section-dark .eyebrow { color: var(--accent-on-dark); }

/* ---------- ритм секций ---------- */

section {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--text-on-dark); }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  background: var(--accent);
  color: var(--bg-light);
  padding: 1.05em 2.1em;
  border-radius: var(--r-pill);
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: transform .45s var(--ease-hover), opacity .45s var(--ease-hover);
}

.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(.98); }

.btn-ghost {
  background: transparent;
  color: var(--text-on-light);
  border-color: var(--border-light);
}

.section-dark .btn-ghost {
  color: var(--text-on-dark);
  border-color: var(--border-dark);
}

/* бордо на зелёном — 1.02:1, не проходит: на тёмных секциях кнопка
   становится кремовой с бордовым текстом (см. отчёт директора разработки). */
.section-dark .btn {
  background: var(--bg-light);
  color: var(--accent);
  border-color: var(--bg-light);
}

.btn:disabled { opacity: .6; cursor: default; transform: none; }

/* ---------- шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px var(--pad-inline);
  display: flex;
  justify-content: center;
}

.site-header .pill {
  width: 100%;
  max-width: calc(var(--max-wide) + 2 * var(--pad-inline) - 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(244, 218, 191, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: var(--r-pill);
  padding: 10px 10px 10px 22px;
}

.logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-on-light);
}

.header-note {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: none;
}

@media (min-width: 640px) {
  .header-note { display: inline; }
}

.header-cta {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--text-on-light);
  color: var(--bg-light);
  padding: .8em 1.4em;
  border-radius: var(--r-pill);
  white-space: nowrap;
  transition: transform .45s var(--ease-hover);
}

.header-cta:hover { transform: scale(1.03); }

/* ---------- герой ---------- */

.hero {
  padding: clamp(2.2rem, 6vw, 3.4rem) 0;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
}

.hero .container-text { text-align: center; max-width: 920px; margin-left: auto; margin-right: auto; }

/* HERO_TITLE v3 длиннее, чем в v2 — на десктопе h1 нужен контейнер шире,
   чтобы уложиться в 3 строки (проверено getBoundingClientRect,
   SHTAB/landing/teksty-v3.md). Подзаголовок, кнопка и заметка держат
   свою прежнюю ширину — их max-width задан отдельно (.hero-sub). */
.hero h1 { max-width: 1000px; margin-left: auto; margin-right: auto; }

@media (min-width: 1024px) {
  .hero .container-text { max-width: var(--max-wide); }
}

.hero h1 {
  margin-bottom: .5em;
  font-size: clamp(2.3rem, 4.6vw, 3.75rem);
  line-height: 1.08;
}

.hero-sub {
  max-width: 620px;
  margin: 0 auto 2rem;
}

.hero-note {
  margin-top: 1.6em;
  font-size: .88rem;
  color: var(--text-muted);
}

.hero-note b { color: var(--accent-deep); font-weight: 600; }

/* ---------- формула ---------- */

.formula-scheme {
  margin-top: 2.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}

.formula-step {
  flex: 1 1 200px;
  padding: 1.8rem 1.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}

.formula-step + .formula-step { border-top: 1px solid var(--border-light); }

@media (min-width: 760px) {
  .formula-step + .formula-step { border-top: none; border-left: 1px solid var(--border-light); }
}

.formula-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--accent);
}

.formula-label {
  font-size: .92rem;
  color: var(--text-muted);
}

.formula-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .4rem;
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.1rem;
  flex: 0 0 auto;
}

@media (max-width: 759px) {
  .formula-arrow { transform: rotate(90deg); padding: .2rem 0; }
}

.formula-note {
  margin-top: 1.4rem;
  font-size: .9rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- для кого / не для кого ---------- */

.whom-grid {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pad-inline);
}

@media (min-width: 800px) {
  .whom-grid { grid-template-columns: 1fr 1fr; }
}

.whom-card {
  padding: 1.9rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-light);
}

.whom-card.is-yes { background: var(--surface); }
.whom-card.is-no { background: transparent; }

.whom-card h3 { margin-bottom: 1em; }
.whom-card.is-yes h3 { color: var(--accent-deep); }

.whom-list { list-style: none; margin: 0; padding: 0; }

.whom-list li {
  padding: .7em 0;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: .8em;
  color: var(--text-muted);
}

.whom-list li:first-child { border-top: none; }

.whom-list li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
}

/* ---------- как работает ---------- */

.steps {
  margin-top: 2.6rem;
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: var(--pad-inline);
  padding: 1.7rem 0;
  align-items: start;
}

.step + .step { border-top: 1px solid var(--border-dark); }

.step-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent-on-dark);
  line-height: 1.3;
}

.step h3 { margin-bottom: .4em; }
.step p { color: var(--text-muted-dark); margin: 0; }

/* ---------- что получаете ---------- */

.get-grid {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
}

@media (min-width: 700px) {
  .get-grid { grid-template-columns: 1fr 1fr 1fr; /* три карточки после правки 2026-09-22 */ }
}

.get-item {
  background: var(--bg-light);
  padding: 1.8rem;
}

.get-item h3 { margin-bottom: .5em; color: var(--accent-deep); }
.get-item p { color: var(--text-muted); margin: 0; }

/* ---------- что получаете: приписка про тариф 2 ---------- */

.get-tariff2 {
  margin-top: 1.4rem;
  padding: 1.3rem 1.6rem;
  border: 1px dashed var(--border-light);
  border-radius: var(--r-lg);
}

.get-tariff2-title {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--accent-deep);
  margin: 0 0 .5em;
}

.get-tariff2-text {
  font-size: .9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- что нужно, чтобы поставить (новая секция v3) ---------- */

.need-list {
  list-style: none;
  margin: 2.6rem 0 0;
  padding: 0;
}

.need-list li {
  padding: 1em 0;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
}

.need-list li:first-child { border-top: none; }

.need-list b { color: var(--text-on-light); font-weight: 700; }

/* Пометка для пунктов, статус которых ждёт технической проверки
   (Windows, украинский язык — NEED_2/NEED_4 в teksty-v3.md). Не иконка
   и не предупреждение — просто визуально тише основного текста, как и
   просил Дима («честный тон, без предупреждающих иконок»). */
.pending-tech {
  font-style: italic;
  opacity: .75;
}

/* ---------- доказательство ---------- */

.proof .container-text { text-align: center; }

.proof-link {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin-top: 1.8em;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: .02em;
  color: var(--text-on-dark);
  text-decoration: none;
  border: 1px solid var(--border-dark);
  border-radius: var(--r-pill);
  padding: .9em 1.6em;
  transition: transform .45s var(--ease-hover), border-color .45s var(--ease-hover);
}

.proof-link:hover { transform: scale(1.03); border-color: var(--accent-on-dark); }

.proof-caveat {
  margin-top: 1.4em;
  font-size: .86rem;
  color: var(--text-muted-dark);
}

/* ---------- форма ---------- */

.form-section .container-text { text-align: center; }

.form-card {
  margin-top: 2.4rem;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: clamp(1.7rem, 5vw, 2.8rem);
  text-align: left;
}

.form-row { margin-bottom: 1.15rem; }

.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .55em;
}

.form-row input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: .85em 1em;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  color: var(--text-on-light);
  border-radius: var(--r-md);
}

.form-row input::placeholder { color: rgba(13, 61, 58, .35); }

.form-row input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row .field-error {
  display: none;
  font-size: .82rem;
  color: var(--accent-deep);
  margin-top: .45em;
}

.form-row.has-error input { border-color: var(--accent); }
.form-row.has-error .field-error { display: block; }

.form-submit { margin-top: .8rem; }
.form-submit .btn { width: 100%; justify-content: center; }

.form-note {
  margin-top: 1.1rem;
  font-size: .82rem;
  color: var(--text-muted);
  text-align: center;
}

.form-status {
  margin-top: 1.2rem;
  padding: .95em 1.1em;
  font-size: .9rem;
  border-radius: var(--r-md);
  display: none;
}

.form-status.show { display: block; }
.form-status.status-ok { background: rgba(108, 23, 30, .08); border: 1px solid rgba(108, 23, 30, .3); color: var(--accent-deep); }
.form-status.status-error { background: rgba(108, 23, 30, .08); border: 1px solid rgba(108, 23, 30, .5); color: var(--accent-deep); }
.form-status.status-test { background: rgba(13, 61, 58, .04); border: 1px dashed var(--border-light); color: var(--text-muted); }

/* ---------- футер ---------- */

.site-footer {
  background: var(--bg-dark);
  color: var(--text-muted-dark);
  padding: 2.2rem 0 calc(2.2rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: .85rem;
}

.site-footer a { color: var(--text-on-dark); text-decoration: underline; }

/* ---------- липкая CTA на мобиле ---------- */

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(244, 218, 191, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-light);
  transform: translateY(110%);
  transition: transform .35s var(--ease-hover);
  display: none;
}

.sticky-cta.is-visible { transform: translateY(0); }

.sticky-cta .btn { width: 100%; justify-content: center; }

@media (max-width: 767px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 0; }
}

/* ---------- анимации: fade-up на пересечении вьюпорта ---------- */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .header-cta, .proof-link, .sticky-cta {
    transition: none !important;
  }
  .btn:hover, .header-cta:hover, .proof-link:hover { transform: none; }
}

/* ---------- адаптив общий ---------- */

@media (max-width: 620px) {
  .step { grid-template-columns: 3rem 1fr; gap: 1rem; }
  .step-num { font-size: 1.2rem; }
  .site-header .pill { padding: 8px 8px 8px 18px; }
}

/* ---- Цена: старая перечёркнута, новая подсвечена (v5, 2026-09-23) ---- */
.price {
  margin: .4rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  line-height: 1.1;
}
.price-old { opacity: .5; font-weight: 400; text-decoration-thickness: 2px; }
.price .price-old { font-size: .6em; margin-right: .3em; }
.price-new {
  color: var(--accent);
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 0 .3em;
}
.btn .price-old, .header-note s { opacity: .6; margin-right: .15em; }
