/* Instagram-editorial — «Из минуса в плюс», Алина Максимова
   Никаких обводок: разделение — цветом, воздухом и мягкими тенями. */

:root {
  --bg: #F7F4EF;
  --card: #FFFFFF;
  --sand: #EFE9E0;
  --blush: #F3E5E3;
  --ink: #221F1D;
  --taupe: #7A726A;
  --olive: #3E5649;
  --olive-soft: #4F6B5C;
  --terra: #B55B45;
  --rose: #D8A6A6;
  --shadow-soft: 0 10px 30px rgba(34, 31, 29, 0.05);
  --shadow-btn: 0 14px 30px rgba(62, 86, 73, 0.28);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.65 var(--sans);
}

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 18px 0;
}

/* ── Шапка: логотип без рамок ──────────────────────── */

.brand {
  padding: 18px 8px 6px;
  display: flex;
  justify-content: center;
}

.brand__logo {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
}

/* ── Герой ─────────────────────────────────────────── */

/* Шапка — угловые засечки и мягкая подложка */
.hero {
  position: relative;
  margin: 14px 2px 16px;
  padding: 34px 26px 28px;
  text-align: center;
  background: radial-gradient(
    120% 100% at 50% 0%,
    rgba(243, 229, 227, 0.5),
    rgba(255, 255, 255, 0) 72%
  );
}

/* Лёгкие уголковые засечки — как на книжной врезке */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(181, 91, 69, 0.5), rgba(181, 91, 69, 0.5)) left top / 26px 1px no-repeat,
    linear-gradient(rgba(181, 91, 69, 0.5), rgba(181, 91, 69, 0.5)) left top / 1px 26px no-repeat,
    linear-gradient(rgba(181, 91, 69, 0.5), rgba(181, 91, 69, 0.5)) right top / 26px 1px no-repeat,
    linear-gradient(rgba(181, 91, 69, 0.5), rgba(181, 91, 69, 0.5)) right top / 1px 26px no-repeat,
    linear-gradient(rgba(181, 91, 69, 0.5), rgba(181, 91, 69, 0.5)) left bottom / 26px 1px no-repeat,
    linear-gradient(rgba(181, 91, 69, 0.5), rgba(181, 91, 69, 0.5)) left bottom / 1px 26px no-repeat,
    linear-gradient(rgba(181, 91, 69, 0.5), rgba(181, 91, 69, 0.5)) right bottom / 26px 1px no-repeat,
    linear-gradient(rgba(181, 91, 69, 0.5), rgba(181, 91, 69, 0.5)) right bottom / 1px 26px no-repeat;
}

.hero__title {
  margin: 0;
  font: 600 46px/1.05 var(--serif);
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* Вензель-подчёркивание под названием */
.hero__swash {
  margin: 4px auto 2px;
  width: min(300px, 84%);
}

.hero__swash svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Подпись — рукописная, по центру под вензелем */
.hero__kicker {
  margin: 2px auto 0;
  max-width: 300px;
  font-family: "Marck Script", cursive;
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--terra);
  text-align: center;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__kicker {
    background: linear-gradient(115deg, #B55B45 5%, #D8A6A6 50%, #B55B45 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.hero__lead {
  margin: 0 auto;
  max-width: 420px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--taupe);
}

/* ── Орнамент-разделитель (лотос) ──────────────────── */

.ornament {
  display: flex;
  justify-content: center;
  padding: 26px 0 8px;
  color: var(--rose);
}

.ornament svg { width: 34px; height: 34px; opacity: 0.85; }

/* ── Секции ────────────────────────────────────────── */

.section { padding: 18px 0 6px; }

.section__title {
  margin: 0 0 20px;
  font: 600 30px/1.15 var(--serif);
  text-align: center;
  letter-spacing: 0.01em;
}

/* ── Белые карточки без обводок ────────────────────── */

.card {
  background: var(--card);
  border: none;
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  padding: 26px 22px;
}

.card__label {
  margin: 0 0 20px;
  font: 500 10.5px/1.4 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rose);
  text-align: center;
}

/* ── Условия обучения ──────────────────────────────── */

.conditions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.conditions li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
}

.conditions__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--terra);
  display: flex;
  align-items: center;
  justify-content: center;
}

.conditions__icon svg { width: 21px; height: 21px; }

.conditions__title {
  display: block;
  font: 600 15px/1.35 var(--sans);
  margin-bottom: 3px;
}

.conditions__text {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: var(--taupe);
}

/* ── Программа (аккордеон без обводок) ─────────────── */

.accordion { display: grid; gap: 10px; }

.acc {
  background: var(--card);
  border: none;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.acc:hover { box-shadow: 0 14px 36px rgba(34, 31, 29, 0.07); }

.acc__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 18px 20px;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font: 600 15px/1.45 var(--sans);
  color: var(--ink);
}

.acc__title {
  flex: 1;
  min-width: 0;
}

.acc__num {
  flex: 0 0 auto;
  align-self: center;
  font: 600 15px/1 var(--serif);
  color: var(--rose);
  min-width: 22px;
}

.acc--bonus .acc__num { color: var(--terra); }

.acc--bonus {
  position: relative;
  overflow: visible;
  margin-top: 22px;
  background: linear-gradient(165deg, #F9EAE4, #F3DBD1);
}

.acc--bonus:hover { box-shadow: 0 14px 36px rgba(181, 91, 69, 0.12); }

/* Бейдж «БОНУС» — по центру, на самом верхнем крае карточки */
.acc__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, #B55B45, #9A4A38);
  box-shadow: 0 5px 14px rgba(181, 91, 69, 0.32);
  color: #fff;
  font: 600 9.5px/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.acc__badge svg {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
}

/* Под бейджем оставляем воздух, чтобы не накрывал заголовок */
.acc--bonus .acc__head { padding-top: 26px; }

/* Заголовок бонуса — всегда в одну строку */
.acc--bonus .acc__title {
  white-space: nowrap;
  font-size: clamp(12.5px, 3.7vw, 15px);
}

.acc__chev {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--rose);
  transition: transform 0.3s ease;
}

.acc__head[aria-expanded="true"] .acc__chev { transform: rotate(180deg); }

.acc__body {
  display: none;
  padding: 0 20px 20px 56px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--taupe);
}

.acc__head[aria-expanded="true"] + .acc__body { display: block; }

/* ── Результаты ────────────────────────────────────── */

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

.results li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink);
  letter-spacing: 0.005em;
}

/* Тонкая линейка между пунктами — по колонке текста */
.results li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 25px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(181, 91, 69, 0.14);
}

/* Маркер — маленький ромб */
.results li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  background: var(--terra);
  opacity: 0.78;
  transform: rotate(45deg);
}

.disclaimer {
  margin: 22px 10px 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--taupe);
  opacity: 0.85;
  text-align: center;
}

/* ── Плашка «О курсе»: центрированный текст с лёгким узором ── */

.card--about {
  position: relative;
  overflow: hidden;
  padding: 54px 52px 62px;
  text-align: center;
  background: radial-gradient(130% 100% at 12% -10%, rgba(216, 166, 166, 0.28), var(--card) 58%);
}

.card--about p {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 250px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
}

/* Слева сверху — лепестки, раскрытые веером по краю (центр остаётся свободен) */
.card--about::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 132px;
  height: 132px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 110' fill='none'%3E%3Cpath d='M6 6C24 9 40 17 52 31' stroke='%23C4826F' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M12 8C26 2 46 4 58 12 46 18 26 16 12 8z' fill='%23D8A6A6' fill-opacity='0.62'/%3E%3Cpath d='M20 20C30 12 44 12 54 20 44 28 30 28 20 20z' fill='%23C4826F' fill-opacity='0.52'/%3E%3Cpath d='M8 12C2 26 4 46 12 58 18 46 16 26 8 12z' fill='%23D8A6A6' fill-opacity='0.58'/%3E%3Ccircle cx='64' cy='16' r='1.9' fill='%23B55B45' fill-opacity='0.58'/%3E%3Ccircle cx='18' cy='66' r='1.7' fill='%23B55B45' fill-opacity='0.52'/%3E%3Ccircle cx='48' cy='44' r='1.2' fill='%23D8A6A6' fill-opacity='0.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Справа снизу — цветок на завивающемся стебле (другой силуэт) */
.card--about::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 138px;
  height: 138px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 110' fill='none'%3E%3Cpath d='M102 102C94 84 86 62 78 44' stroke='%23C4826F' stroke-width='1.35' stroke-linecap='round'/%3E%3Cpath d='M88 72c8-2 14-8 15-16-8 2-14 8-15 16z' fill='%23D8A6A6' fill-opacity='0.55'/%3E%3Cpath d='M84 60c-8-1-14-6-16-13 8 1 14 6 16 13z' fill='%23C4826F' fill-opacity='0.48'/%3E%3Cg transform='translate(76,38)'%3E%3Cellipse cx='0' cy='-9' rx='4.6' ry='8.6' fill='%23D8A6A6' fill-opacity='0.6'/%3E%3Cellipse cx='0' cy='-9' rx='4.6' ry='8.6' fill='%23D8A6A6' fill-opacity='0.55' transform='rotate(72)'/%3E%3Cellipse cx='0' cy='-9' rx='4.6' ry='8.6' fill='%23D8A6A6' fill-opacity='0.5' transform='rotate(144)'/%3E%3Cellipse cx='0' cy='-9' rx='4.6' ry='8.6' fill='%23D8A6A6' fill-opacity='0.55' transform='rotate(216)'/%3E%3Cellipse cx='0' cy='-9' rx='4.6' ry='8.6' fill='%23D8A6A6' fill-opacity='0.6' transform='rotate(288)'/%3E%3Ccircle cx='0' cy='0' r='3.1' fill='%23B55B45' fill-opacity='0.58'/%3E%3C/g%3E%3Ccircle cx='62' cy='88' r='1.3' fill='%23D8A6A6' fill-opacity='0.45'/%3E%3Ccircle cx='94' cy='40' r='1.1' fill='%23B55B45' fill-opacity='0.38'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ── Инфо-плашка «Гравюра гильоше + закладка» ── */

.notice {
  margin-bottom: 14px;
  border-radius: 14px;
  background: #F6ECE6;
  border: 1px solid rgba(168, 94, 80, 0.2);
  overflow: hidden;
}

/* Верхняя полоса: волнистый узор гильоше */
.notice__band {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='28' viewBox='0 0 160 28'%3E%3Cg fill='none' stroke='%23945143' stroke-width='0.85' stroke-opacity='0.24'%3E%3Cpath d='M0 6 C10 1 30 1 40 6 C50 11 70 11 80 6 C90 1 110 1 120 6 C130 11 150 11 160 6'/%3E%3Cpath d='M0 6 C10 11 30 11 40 6 C50 1 70 1 80 6 C90 11 110 11 120 6 C130 1 150 1 160 6'/%3E%3Cpath d='M0 14 C10 9 30 9 40 14 C50 19 70 19 80 14 C90 9 110 9 120 14 C130 19 150 19 160 14'/%3E%3Cpath d='M0 14 C10 19 30 19 40 14 C50 9 70 9 80 14 C90 19 110 19 120 14 C130 9 150 9 160 14'/%3E%3Cpath d='M0 22 C10 17 30 17 40 22 C50 27 70 27 80 22 C90 17 110 17 120 22 C130 27 150 27 160 22'/%3E%3Cpath d='M0 22 C10 27 30 27 40 22 C50 17 70 17 80 22 C90 27 110 27 120 22 C130 17 150 17 160 22'/%3E%3C/g%3E%3C/svg%3E") repeat-x center / 160px 28px,
    #F0E0D8;
}

.notice__tag {
  flex: none;
  padding: 3px 8px;
  border-radius: 4px;
  background: #A85E50;
  color: #FFFBF8;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice__caption {
  font-size: 10px;
  line-height: 1.2;
  color: #8D4B3F;
  letter-spacing: 0.06em;
}

.notice__text {
  margin: 0;
  padding: 13px 15px 14px;
  font-size: 12.9px;
  line-height: 1.65;
  color: var(--ink);
}

/* ── Плашка «Результаты» — сдержанная и «дорогая» ── */

.card--results {
  padding: 4px 24px;
  background: linear-gradient(165deg, #FFFFFF 0%, #FCF4F1 100%);
  box-shadow: 0 12px 32px rgba(34, 31, 29, 0.05);
}

/* ── Плашка предложения: акцентная цена по центру ──── */

.offer-card {
  display: grid;
  gap: 22px;
  margin-bottom: 14px;
  padding: 30px 22px;
  background: linear-gradient(165deg, var(--blush), var(--sand));
  box-shadow: none;
  text-align: center;
}

.offer-card__row {
  display: grid;
  gap: 9px;
  justify-items: center;
}

.offer-card__label {
  font: 500 10.5px/1.4 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe);
}

.offer-card__value {
  max-width: 300px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
}

.offer-card__price {
  font: 600 40px/1 var(--sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: var(--olive);
  white-space: nowrap;
}

/* ── Форма без обводок ─────────────────────────────── */

.form { display: grid; gap: 18px; }

.field { display: grid; gap: 8px; }

.field__label {
  font: 500 10.5px/1.4 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe);
  padding-left: 4px;
}

.field__input {
  height: 50px;
  padding: 0 18px;
  border: none;
  border-radius: 16px;
  background: var(--bg);
  font: 400 15px var(--sans);
  color: var(--ink);
  outline: none;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.field__input::placeholder { color: #B4ACA3; }

.field__input:focus {
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(62, 86, 73, 0.14);
}

.field__input.is-invalid { box-shadow: 0 0 0 3px rgba(181, 91, 69, 0.25); }

/* ── Согласие: круглый чекбокс ─────────────────────── */

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  padding: 6px 4px;
}

.consent__box {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: none;
  border-radius: 50%;
  background: var(--sand);
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
}

.consent__box:checked { background: var(--olive); }

.consent__box:checked::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 5px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent__text { font-size: 12.5px; line-height: 1.6; color: var(--taupe); }

.consent__text a { color: var(--olive); text-decoration: none; border-bottom: 1px solid rgba(62, 86, 73, 0.3); }

.consent__optional {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--sand);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
  vertical-align: 1px;
}

/* ── Промокод ──────────────────────────────────────── */

.promo {
  margin-top: 6px;
}

.promo__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.promo__row .field__input {
  flex: 1;
  min-width: 0;
}

.promo__apply {
  flex: none;
  height: 50px;
  padding: 0 20px;
  border: none;
  border-radius: 16px;
  background: #B55B45;
  color: #FFFBF8;
  font: 600 13.5px/1 var(--sans);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.promo__apply:hover { background: #A34F3D; }
.promo__apply:active { transform: scale(0.98); }
.promo__apply:disabled { opacity: 0.65; cursor: default; }

.promo__msg {
  margin: 9px 2px 0;
  font-size: 12.5px;
  line-height: 1.55;
}

.promo__msg--ok { color: var(--olive); }
.promo__msg--error { color: var(--terra); }

.promo__price {
  margin: 4px 2px 0;
  font-size: 13px;
  color: var(--taupe);
}

.promo__price s {
  color: var(--taupe);
  opacity: 0.75;
  margin-right: 7px;
}

.promo__price b {
  color: var(--terra);
  font-size: 15px;
}

/* ── Sticky footer с мягкой кнопкой ────────────────── */

.footer-spacer { height: calc(112px + env(safe-area-inset-bottom)); }

.paybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 60%, rgba(247, 244, 239, 0));
  display: flex;
  justify-content: center;
  z-index: 20;
}

/* Кнопка «тёплый фарфор»: светлая, живой переливающийся свет,
   дышащая тень. Без бликов-мазков и узоров. */
.paybtn {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 54px;
  border: none;
  border-radius: 14px;
  background: #B55B45;
  color: #FFFBF8;
  font: 600 15px/1 var(--sans);
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(181, 91, 69, 0.24);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}

.paybtn:hover {
  transform: translateY(-2px);
  background: #A34F3D;
}

.paybtn:active {
  transform: translateY(0) scale(0.99);
  transition-duration: 0.08s;
}

.paybtn__label {
  position: relative;
  z-index: 1;
}

.paybtn.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

/* ── Тост ──────────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  max-width: 300px;
  padding: 13px 20px;
  border-radius: 16px;
  background: rgba(34, 31, 29, 0.92);
  color: #fff;
  font-size: 13px;
  text-align: center;
  z-index: 30;
  box-shadow: 0 12px 32px rgba(34, 31, 29, 0.25);
}

/* ── Узкие экраны ──────────────────────────────────── */

@media (max-width: 360px) {
  .hero__title { font-size: 37px; }
  .section__title { font-size: 26px; }
}
