/* ============================================================
   Zen Modernist — единая дизайн-система внутренних страниц
   kundaliniyogaonline.com (кабинет, тренинги, уроки, форум…)
   На основе макета главной zen-modernist.html
   ============================================================ */

:root {
  --canvas: #F9F4E9;
  --mist: #F4F7F7;
  --sand: #EADFC8;
  --ink: #141412;
  --ink-60: rgba(20, 20, 18, 0.6);
  --ink-70: rgba(20, 20, 18, 0.7);
  --gold: #f5a442;
  --gold-soft: #f8bb6d;
  --gold-deep: #d9871c;
  --teal: #2D5A5A;
  --warn: #a86b11;
  --danger: #a73d26;
  --white: #ffffff;
  --ambient: 0 10px 40px rgba(20, 20, 18, 0.05);
  --max: 1200px;
  --gutter: clamp(18px, 4vw, 34px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--white);
  color: var(--ink);
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-color: rgba(245, 164, 66, 0.65); text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--gold); }

h1, h2, h3 { font-family: 'Montserrat', 'Manrope', Arial, sans-serif; }

h1 {
  max-width: 900px;
  margin: clamp(24px, 4vw, 44px) 0 14px;
  font-size: clamp(2.5rem, 5.4vw, 4.2rem);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: -0.03em;
}

h1 em { font-style: normal; font-weight: 600; color: var(--gold); }

/* киккер над заголовком страницы */
.page-kicker {
  display: block;
  margin-top: clamp(24px, 4vw, 40px);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.page-kicker + h1 { margin-top: 12px; }

h2 { margin: 0 0 18px; font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.2; font-weight: 400; }
h3 { margin: 0 0 8px; font-size: 1.05rem; line-height: 1.3; font-weight: 600; }
p { margin-top: 0; }

/* ---------- шапка: стеклянная, как на главной ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--ambient);
}

.header-row {
  max-width: 1560px;
  margin-inline: auto;
  padding: 14px clamp(20px, 2.5vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 1.6vw, 28px);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-decoration: none;
  white-space: nowrap;
}

.brand strong {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.brand span {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.main-nav { display: flex; align-items: center; gap: clamp(12px, 1.4vw, 26px); }

.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: 6px;
  transition: color 0.25s;
  white-space: nowrap;
}

.main-nav a:hover { color: var(--gold); }

.main-nav a[aria-current="page"] {
  color: var(--gold-deep);
  text-decoration: underline;
  text-decoration-color: rgba(245, 164, 66, 0.72);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.55em;
}

.header-cta { display: flex; align-items: center; gap: 10px; white-space: nowrap; flex-shrink: 0; }
.header-cta form { margin: 0; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--sand);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}

.burger span { display: block; width: 18px; height: 1.6px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.burger.open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

@media (max-width: 1000px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--sand);
    padding: 8px var(--gutter) 18px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--mist); }
  .burger { display: flex; }
}

@media (max-width: 640px) {
  .brand { white-space: normal; }
  .brand strong { font-size: 0.8rem; line-height: 1.2; }
  .brand span { font-size: 0.52rem; }
  .header-cta .button.secondary { display: none; }
  .header-cta .button, .header-cta button { padding: 8px 14px; font-size: 0.6rem; }
}

@media (max-width: 360px) {
  .header-row { padding-inline: 12px; gap: 8px; }
  .header-cta { gap: 6px; }
  .header-cta > .button:not(.secondary) {
    max-width: 96px;
    padding-inline: 8px;
    white-space: normal;
    text-align: center;
  }
}

/* ---------- каркас страницы ---------- */

main { display: block; }

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(70px, 9vw, 120px);
}

.shell > .muted:first-of-type {
  max-width: 760px;
  margin-bottom: 34px;
  font-size: 1.05rem;
}

.muted { color: var(--ink-60); }

/* «← назад» над заголовком */
.shell > p:first-child a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-decoration: none;
}
.shell > p:first-child { margin: 22px 0 0; }
.shell > p:first-child a:hover { color: var(--ink); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(22px, 3vw, 34px);
}

.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }

/* ---------- панели-карточки: как на главной ---------- */

.panel {
  position: relative;
  border: 1px solid rgba(234, 223, 200, 0.85);
  border-radius: 20px;
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--white);
  transition: border-color 0.25s;
}

.panel:hover { border-color: var(--gold); }

.panel > h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 12px;
}

/* полоса-подложка: тёплый канвас во всю ширину, как секции главной */
.band {
  margin: clamp(30px, 4vw, 52px) calc(var(--gutter) * -1) 0;
  padding: clamp(30px, 5vw, 56px) var(--gutter);
  border-block: 1px solid var(--sand);
  background: var(--canvas);
}

.band .panel { background: var(--white); }

/* ---------- списки уроков / записей ---------- */

.item { padding: 18px 0; border-top: 1px solid rgba(234, 223, 200, 0.75); }
.item:first-child { padding-top: 0; border-top: 0; }
.item:last-child { padding-bottom: 0; }
.item h3 { font-size: 1.12rem; font-weight: 500; }
.item h3 a { text-decoration: none; }
.item h3 a:hover { color: var(--gold-deep); }

/* превью класса перед названием */
.item.with-thumb { display: flex; gap: 16px; align-items: flex-start; }
.item.with-thumb .item-body { flex: 1; min-width: 0; }

.thumb {
  flex-shrink: 0;
  position: relative;
  width: 118px; height: 78px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--sand);
  background-size: cover;
  background-position: center;
}

.thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(16, 15, 13, 0.55));
}

.thumb b {
  position: absolute;
  z-index: 1;
  left: 9px; bottom: 5px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* мини-превью в боковом списке уроков */
.item .mini-thumb {
  flex-shrink: 0;
  display: inline-block;
  width: 58px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--sand);
  background-size: cover;
  background-position: center;
  vertical-align: middle;
}

.item.with-mini { display: flex; gap: 12px; align-items: center; }

@media (max-width: 560px) {
  .thumb { width: 94px; height: 62px; }
}

.training-parts {
  display: grid;
  gap: 18px;
}

.training-part {
  padding: 0;
  overflow: hidden;
}

.training-part-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: clamp(20px, 2.3vw, 28px);
  border-bottom: 1px solid rgba(234, 223, 200, 0.85);
  background: linear-gradient(135deg, rgba(249, 244, 233, 0.92), rgba(255, 255, 255, 0.96));
}

.training-part-head h3 {
  margin: 0;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
}

.part-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-deep);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.part-count {
  flex-shrink: 0;
  padding: 7px 10px;
  border: 1px solid var(--sand);
  border-radius: 999px;
  color: var(--ink-60);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.training-lesson-list {
  display: grid;
}

.training-lesson-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 18px clamp(20px, 2.3vw, 28px);
  border-top: 1px solid rgba(234, 223, 200, 0.62);
}

.training-lesson-row:first-child {
  border-top: 0;
}

.lesson-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--sand);
  border-radius: 999px;
  color: var(--gold-deep);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

.lesson-row-body {
  min-width: 0;
}

.lesson-row-body h4 {
  margin: 0 0 6px;
  font-family: 'Montserrat', 'Manrope', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 600;
}

.lesson-row-body h4 a {
  text-decoration: none;
}

.lesson-row-body h4 a:hover {
  color: var(--gold-deep);
}

.lesson-row-body p {
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.lesson-nav-part {
  padding: 14px 0;
  border-top: 1px solid rgba(234, 223, 200, 0.75);
}

.lesson-nav-part:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.lesson-nav-part:last-child {
  padding-bottom: 0;
}

.lesson-nav-part h3 {
  margin: 0 0 10px;
  color: var(--ink-70);
  font-size: 0.86rem;
  line-height: 1.35;
}

.lesson-nav-item {
  margin: 0 -10px;
  border-radius: 10px;
  color: var(--ink-60);
  font-size: 0.86rem;
  line-height: 1.35;
}

.lesson-nav-item a,
.lesson-nav-item span {
  display: block;
  padding: 8px 10px;
  text-decoration: none;
}

.lesson-nav-item a:hover {
  color: var(--ink);
}

.lesson-nav-item.current {
  background: var(--canvas);
  color: var(--ink);
  font-weight: 700;
}

/* ---------- фирменная деталь: нить малы ----------
   разделители секций заканчиваются тремя золотыми бусинами */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: clamp(26px, 4vw, 42px) 0 18px;
}

.sec-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.sec-head::after {
  content: '';
  flex: 1;
  height: 10px;
  align-self: center;
  min-width: 48px;
  background:
    radial-gradient(circle 3.5px at calc(100% - 4px) 50%, var(--gold) 97%, transparent),
    radial-gradient(circle 2.6px at calc(100% - 15px) 50%, var(--gold-soft) 97%, transparent),
    radial-gradient(circle 2px at calc(100% - 24px) 50%, #d9c69a 97%, transparent),
    linear-gradient(var(--sand), var(--sand)) 0 50% / calc(100% - 32px) 1px no-repeat;
}

/* чипы-метаданные: как категории на главной */
.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--ink-60);
  font-size: 0.85rem;
}

.meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 14px;
  border-radius: 999px;
  background: rgba(45, 90, 90, 0.07);
  color: var(--teal);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.meta .status { background: rgba(245, 164, 66, 0.14); color: var(--gold-deep); }

.status { color: var(--teal); font-weight: 700; text-decoration: none; }
.status.warn { color: var(--warn); }

/* ---------- кнопки: пилюли главной ---------- */

.button,
button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--gold);
  border-radius: 9999px;
  background: var(--gold);
  color: var(--white);
  padding: 0.6rem 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(245, 164, 66, 0.35);
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}

.button.secondary,
button.secondary {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover,
button.secondary:hover {
  background: var(--ink);
  color: var(--white);
  box-shadow: none;
}

.button.small,
button.small {
  min-height: 32px;
  padding: 0.42rem 0.85rem;
  font-size: 0.62rem;
  letter-spacing: 0.07em;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.inline-actions form {
  margin: 0;
}

.topic-actions {
  margin: 16px 0 22px;
}

.payment-flow {
  margin-top: 18px;
}

.payment-flow > form.panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
}

.payment-screen {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(234, 223, 200, 0.9);
  border-radius: 18px;
  background: var(--white);
}

.payment-screen-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  max-width: 820px;
}

.payment-screen-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.18rem, 1.9vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0;
}

.payment-screen-head .muted {
  max-width: 680px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.step-label {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.payment-flow input {
  width: 100%;
}

.payment-flow .panel {
  min-width: 0;
}

.plan-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.plan-option {
  position: relative;
  display: grid;
  min-height: 190px;
  padding: 18px;
  border: 1px solid var(--sand);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.plan-option input {
  position: absolute;
  inset: 16px 16px auto auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--gold-deep);
}

.plan-option-body {
  display: grid;
  align-content: space-between;
  gap: 14px;
}

.plan-option strong {
  display: block;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  color: var(--ink);
  text-transform: none;
}

.plan-price {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.plan-price-regular {
  color: var(--ink-60);
  font-size: 0.86rem;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.plan-discount-breakdown {
  display: grid;
  gap: 2px;
  color: var(--ink-60);
  font-size: 0.76rem;
  line-height: 1.45;
}

.plan-discount-total {
  color: var(--teal);
  font-weight: 700;
}

.plan-price-hint {
  max-width: 34ch;
  color: var(--ink-60);
  font-size: 0.76rem;
  line-height: 1.45;
}

.plan-travel-total {
  max-width: 38ch;
  color: var(--ink-60);
  font-size: 0.78rem;
  line-height: 1.5;
}

.plan-travel-total b { color: var(--teal); }

.plan-copy {
  max-width: 46ch;
  color: var(--ink-70);
  font-family: 'Manrope', sans-serif;
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.plan-option:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 164, 66, 0.64);
}

.plan-option:has(input:checked) {
  border-color: rgba(245, 164, 66, 0.9);
  box-shadow: 0 0 0 3px rgba(245, 164, 66, 0.16), 0 20px 45px rgba(55, 44, 26, 0.08);
}

.payment-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.payment-title {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  margin-bottom: 8px;
}

.payment-lead {
  margin: 0;
}

.payment-qr-page {
  align-items: start;
}

.payment-qr-box {
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
}

.payment-qr-img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto 12px;
}

.payment-qr-details {
  display: grid;
  gap: 14px;
  align-content: start;
}

.payment-qr-details h2 {
  margin: 0;
  max-width: 24ch;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.18;
}

.payment-eyebrow {
  color: var(--gold-deep);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.payment-amount {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin: 0;
  line-height: 1;
}

.payment-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.payment-status-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(42, 93, 86, 0.08);
  color: var(--teal);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.payment-contact {
  display: grid;
  gap: 4px;
  color: var(--ink-70);
  font-size: 0.95rem;
}

.payment-copy-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.payment-copy-box input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(234, 223, 200, 0.95);
  border-radius: 12px;
  background: rgba(247, 247, 244, 0.8);
  padding: 12px 14px;
  color: var(--ink);
  font: 500 0.95rem/1.3 'Manrope', sans-serif;
  box-sizing: border-box;
}

.payment-copy-box button {
  min-height: 48px;
  white-space: nowrap;
}

.payment-hint {
  margin-top: -4px;
  font-size: 0.9rem;
}

.payment-actions button {
  min-height: 50px;
  padding-inline: 2rem;
}

button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

/* ---------- прогресс ---------- */

.progress {
  height: 8px;
  margin: 14px 0 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--mist);
  border: 1px solid var(--sand);
}

.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

/* ---------- сообщения ---------- */

.messages { margin: 22px 0 0; }

.message {
  padding: 14px 18px;
  border: 1px solid var(--sand);
  border-radius: 16px;
  background: var(--canvas);
  color: var(--ink-70);
}

/* ---------- формы: как в модалках главной ---------- */

form.compact { display: grid; gap: 14px; }

label {
  display: grid;
  gap: 7px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-60);
}

input,
textarea,
select {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--sand);
  border-radius: 10px 10px 0 0;
  padding: 12px 15px;
  background: var(--mist);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s;
}

input:focus,
textarea:focus,
select:focus { border-bottom-color: var(--gold); }

input[type="hidden"] { display: none; }
textarea { min-height: 120px; resize: vertical; }
textarea[readonly] {
  min-height: 170px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.86rem;
}

/* ---------- видео урока ---------- */

video {
  width: 100%;
  max-height: 70vh;
  border-radius: 24px;
  background: #050504;
  box-shadow: var(--ambient);
}

ul { padding-left: 1.15rem; }
li + li { margin-top: 0.45rem; }

/* ---------- футер: тёмный, как на главной ---------- */

.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: clamp(40px, 6vw, 64px) 0 0;
  margin-top: clamp(60px, 8vw, 100px);
}

.footer-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: clamp(30px, 4vw, 44px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.footer-brand p { margin: 10px 0 0; color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; max-width: 36ch; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: flex-start; }

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover { color: var(--white); }

.footer-legal {
  max-width: var(--max);
  margin-inline: auto;
  padding: 20px var(--gutter) 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

.footer-legal a { color: inherit; text-decoration: none; }
.footer-legal a:hover { color: var(--gold-soft); }

/* ---------- адаптив ---------- */

@media (max-width: 920px) {
  .span-8, .span-6, .span-4 { grid-column: span 12; }
  .payment-flow > form.panel,
  .plan-options,
  .payment-fields {
    grid-template-columns: 1fr;
  }
  .payment-screen {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  h1 { font-size: 2rem; }
  .panel { border-radius: 18px; }
  .payment-screen {
    padding: 22px;
    border-radius: 18px;
  }
  .payment-screen-head {
    grid-template-columns: 1fr;
  }
  .plan-option {
    min-height: 180px;
  }
  .payment-actions button {
    width: 100%;
  }
  .payment-copy-box {
    grid-template-columns: 1fr;
  }
  .payment-copy-box button {
    width: 100%;
  }
}
