/* Натали Ярулина — стили.
   Палитра из фотографий: альпийское озеро, снег, хвоя, закатное золото. */
:root {
  /* Палитра Натали: молочный бежевый, шампань, благородный винный, приглушённое золото */
  --milk: #F5EFE5;         /* основной фон */
  --white: #FFFBF6;        /* карточки, форма */
  --latte: #EFE3D6;        /* светлая шампань: чередующиеся секции */
  --champagne: #DCC3AF;    /* шампань: карточки и мягкие переходы */
  --champagne-soft: #E8D7C8;
  --wine: #874652;         /* винный: кнопки, акценты, курсивные подзаголовки */
  --wine-deep: #6F3843;    /* винный при наведении */
  --gold: #C5A36C;         /* приглушённое золото: тонкие линии и детали (не для текста) */
  --pine: #4F6B4A;         /* успешная отправка формы */
  --ink: #3B2C2A;          /* основной текст и заголовки */
  --muted: #6E5D57;        /* второстепенный текст */
  --line: #E3D3C2;

  --serif: "Playfair Display", "Didot", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --header-h: 68px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
  --radius-lg: 28px;
  --radius-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  background: var(--milk);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--wine); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
section[id] { scroll-margin-top: var(--header-h); }

/* ---------- Типографика ---------- */
.h2 {
  font: 400 clamp(30px, 4vw, 48px)/1.15 var(--serif);
  letter-spacing: -0.005em;
  margin-bottom: 0.6em;
  max-width: 20ch;
}
.h2 .line { display: block; }
.h3 { font: 500 clamp(21px, 2vw, 25px)/1.3 var(--serif); margin-bottom: 0.5em; }
.h4 { font: 600 18px/1.4 var(--sans); margin: 1.4em 0 0.6em; }
.kicker { font: 600 13px/1.4 var(--sans); color: var(--wine); margin-bottom: 1.1em; letter-spacing: 0.16em; text-transform: uppercase; }
.text-lg { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; max-width: 62ch; }
.quote { font: italic 400 clamp(20px, 2vw, 24px)/1.45 var(--serif); color: var(--wine); }

/* ---------- Кнопки ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions--stack { flex-direction: column; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 50px; padding: 12px 26px;
  font: 600 15px/1.3 var(--sans); letter-spacing: 0.01em;
  color: #fff; background: linear-gradient(180deg, #934D5A 0%, var(--wine) 100%);
  border: 1.5px solid var(--wine); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--wine-deep); border-color: var(--wine-deep); }
.btn--ghost { background: transparent; color: var(--wine); }
.btn--ghost:hover { background: var(--wine); color: #fff; }
.btn--bronze { /* главная кнопка — винная */ }

.btn--light { background: transparent; color: var(--wine); }
.btn--light:hover { background: var(--wine); color: #fff; }
.btn--small { min-height: 44px; padding: 8px 20px; font-size: 15px; }
.btn--wide { width: 100%; }
.btn.is-disabled { opacity: .6; cursor: default; pointer-events: none; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(247, 240, 230, .94);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(226, 211, 193, .8);
}
.header--static { position: sticky; top: 0; }
.header__in { height: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font: 500 22px/1 var(--serif); text-decoration: none; color: var(--ink); white-space: nowrap; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu ul { display: flex; gap: 24px; }
.menu ul a { text-decoration: none; font-size: 15px; color: var(--ink); padding: 10px 0; }
.menu ul a:hover { color: var(--wine); text-decoration: underline; text-underline-offset: 6px; }
.burger { display: none; }

@media (max-width: 1023px) {
  .burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin-right: -10px; background: none; border: 0; cursor: pointer;
  }
  .burger__lines, .burger__lines::before, .burger__lines::after {
    display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background .2s;
  }
  .burger__lines::before, .burger__lines::after { content: ""; position: absolute; left: 0; }
  .burger__lines::before { top: -7px; } .burger__lines::after { top: 7px; }
  .burger[aria-expanded="true"] .burger__lines { background: transparent; }
  .burger[aria-expanded="true"] .burger__lines::before { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] .burger__lines::after { transform: translateY(-7px) rotate(-45deg); }

  .menu {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 12px var(--gutter) 28px; background: var(--milk);
    border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(51, 36, 26, .30);
    display: none;
  }
  .menu.is-open { display: flex; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu ul a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
}

/* ---------- 01 Первый экран ---------- */
.hero { padding: calc(var(--header-h) + clamp(28px, 6vw, 72px)) 0 clamp(56px, 8vw, 110px); position: relative; overflow: hidden; }
.hero::after { /* линия горизонта озера */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: linear-gradient(180deg, rgba(238, 226, 210, 0) 0%, var(--latte) 100%);
  z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero__name {
  font: 400 clamp(46px, 7vw, 96px)/1.0 var(--serif);
  letter-spacing: -0.02em; color: var(--ink);
  margin-bottom: 0.28em;
}
.hero__role { font: 600 14px/1.4 var(--sans); color: var(--wine); margin-bottom: 1.8em; letter-spacing: 0.18em; text-transform: uppercase; }
.hero__lead { font: 400 clamp(22px, 2.3vw, 28px)/1.35 var(--serif); max-width: 24ch; margin-bottom: 0.7em; }
.hero__sub { font-size: 18px; color: var(--muted); max-width: 44ch; }
.hero__media { justify-self: end; width: 100%; max-width: 460px; }

.arch img { width: 100%; aspect-ratio: 4 / 5.4; object-fit: cover; object-position: 50% 30%; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); }
.rounded img { border-radius: var(--radius-lg); }

@media (max-width: 899px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; justify-self: center; max-width: 360px; }
  .arch img { aspect-ratio: 4 / 4.6; }
}

/* ---------- Секции ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--latte { background: var(--latte); }
.section--dark { background: linear-gradient(180deg, var(--latte) 0%, var(--milk) 100%); color: var(--ink); }
.section--dark .h2 { color: var(--ink); }
.section--dark .kicker { color: var(--wine); }

/* 02 Интенсив */
.intensive { display: grid; grid-template-columns: 1.25fr 0.85fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.intensive .h2 { max-width: 18ch; }
.intensive .h2 .line + .line { color: var(--wine); font-style: italic; }
.intensive__outro { margin-top: 1.6em; font: italic 400 20px/1.5 var(--serif); color: var(--wine); max-width: 40ch; }
.ticket { background: var(--white); border: 1px solid var(--champagne); box-shadow: 0 30px 60px -40px rgba(135, 70, 82, .35); border-radius: var(--radius-lg); padding: 14px 14px 26px; position: sticky; top: calc(var(--header-h) + 24px); }
.ticket__facts { margin: 22px 12px 4px; display: grid; gap: 14px; }
.ticket__facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.ticket__facts dt { color: var(--muted); font-size: 15px; }
.ticket__facts dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.ticket__price { font: 500 40px/1 var(--serif) !important; color: var(--wine) !important; }
.ticket__tbd dd { color: var(--wine); }
.ticket .actions { margin: 22px 12px 0; }

.ticks li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.ticks li::before { /* маленький пик горы, золото */
  content: ""; position: absolute; left: 2px; top: 0.55em; width: 14px; height: 9px;
  background: currentColor; opacity: .55;
  clip-path: polygon(0 100%, 38% 15%, 55% 50%, 70% 0, 100% 100%);
}
.section--dark .ticks li::before { background: var(--gold); opacity: 1; }

@media (max-width: 899px) {
  .intensive { grid-template-columns: 1fr; }
  .ticket { position: static; }
}

/* 03 Школа, 08 Обо мне */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split__text p { max-width: 60ch; }
.split--about { grid-template-columns: 1fr 1fr; }
.about__role { color: var(--wine); font-weight: 500; margin-top: -0.6em; margin-bottom: 1.4em; }
@media (max-width: 899px) { .split, .split--about { grid-template-columns: 1fr; } }

/* 04 Направления */
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px clamp(24px, 4vw, 56px); margin-top: 12px; }
.topic { border-top: 1px solid var(--gold); padding-top: 22px; }
.topic p { color: var(--muted); margin: 0; }
@media (max-width: 1023px) { .topics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .topics { grid-template-columns: 1fr; gap: 32px; } }

/* 05 Для кого */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px clamp(24px, 5vw, 72px); padding: 28px 0; border-bottom: 1px solid var(--line); }
.row__title { font: 400 clamp(21px, 2.1vw, 26px)/1.35 var(--serif); color: var(--ink); }
.row p { margin: 0; color: var(--muted); max-width: 52ch; }
@media (max-width: 767px) { .row { grid-template-columns: 1fr; padding: 22px 0; } }

/* 06 Результаты */
.results { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.peaks li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; font-size: 18px; }
.peaks li::before {
  content: ""; position: absolute; left: 0; top: 1.25em; width: 18px; height: 12px; background: var(--gold);
  clip-path: polygon(0 100%, 38% 15%, 55% 50%, 70% 0, 100% 100%);
}
.goal { background: var(--white); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); position: relative; }
.goal::before { content: ""; display: block; width: 56px; height: 3px; background: var(--gold); margin-bottom: 22px; }
.goal .h3 { font-size: clamp(27px, 2.6vw, 33px); color: var(--ink); }
.disclaimer { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1em; margin: 1.4em 0 0; }
@media (max-width: 899px) { .results { grid-template-columns: 1fr; } }

/* 07 Форматы */
.band { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: clamp(28px, 4vw, 48px); }
.band img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 45%; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(59,44,42,0) 40%, rgba(59,44,42,.72) 100%); }
.band__title { position: absolute; left: clamp(20px, 4vw, 48px); bottom: clamp(16px, 3vw, 36px); z-index: 1; color: #fff; margin: 0; max-width: 16ch; }
@media (max-width: 639px) { .band img { aspect-ratio: 4 / 3.4; } }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; }
.plan--dark { background: linear-gradient(160deg, var(--champagne-soft) 0%, var(--champagne) 100%); border-color: var(--champagne); color: var(--ink); }
.plan--dark .h3 { color: var(--ink); }
.plan__price { font: 500 clamp(40px, 4.6vw, 54px)/1 var(--serif); color: var(--wine); margin: 6px 0 18px; }
.plan--dark .plan__price { color: var(--wine); }
.example { font: 500 13px/1 var(--sans); vertical-align: middle; padding: 5px 9px; border-radius: 999px; background: #FFF1C9; color: #6B4E0E; }
.plan__terms { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.plan--dark .plan__terms { border-color: rgba(135, 70, 82, .25); }
.plan__terms li { font-weight: 500; padding: 3px 0; }
.plan .ticks { margin-bottom: 24px; flex: 1; }
.plan .btn { align-self: flex-start; }
.plan--dark .ticks li::before { background: var(--wine); opacity: .8; }
@media (max-width: 767px) { .plans { grid-template-columns: 1fr; } .plan .btn { align-self: stretch; } }

/* 09 Консультация */
.consult { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.steps { counter-reset: s; }
.step { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 8px 0 20px; position: relative; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 25px; top: 60px; bottom: 0; width: 1px; background: var(--line); }
.step__n { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--wine); color: var(--wine); font: 500 22px/1 var(--serif); }
.step .h4 { margin-top: 10px; }
.step p { color: var(--muted); margin: 0; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 44px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select {
  width: 100%; min-height: 50px; padding: 12px 14px; font: 400 17px/1.3 var(--sans); color: var(--ink);
  background: var(--milk); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--wine) 50%), linear-gradient(135deg, var(--wine) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus { border-color: var(--wine); outline: none; box-shadow: 0 0 0 3px rgba(135, 70, 82, .18); }
.field.has-error input, .field.has-error select { border-color: #B3261E; }
.field__err { color: #B3261E; font-size: 14px; margin: 6px 0 0; min-height: 0; }
.field__err:empty { display: none; }
.field--check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--wine); }
.field--check label { font-weight: 400; font-size: 15px; margin: 0; }
.field--check .field__err { grid-column: 2; }
.form__status { margin: 16px 0 0; font-weight: 500; }
.form__status.is-ok { color: var(--pine); }
.form__status.is-err { color: #B3261E; }
@media (max-width: 899px) { .consult { grid-template-columns: 1fr; } }

/* 10 Финал */
.final { text-align: left; }
.final__title { font: 400 clamp(36px, 5.6vw, 72px)/1.1 var(--serif); color: var(--ink); max-width: 15ch; margin-bottom: 0.5em; letter-spacing: -0.015em; }
.final__values { font: italic 400 clamp(20px, 2.3vw, 27px)/1.5 var(--serif); color: var(--wine); max-width: 40ch; }

/* Подвал */
.footer { background: var(--latte); color: var(--muted); padding: 44px 0; border-top: 1px solid var(--gold); }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer__name { font: 500 23px/1 var(--serif); color: var(--ink); margin: 0 0 6px; }
.footer__role { margin: 0; font-size: 15px; }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--champagne); border-radius: 999px; text-decoration: none; color: var(--wine); font-size: 15px; background: var(--white); }
.social a:hover { background: var(--wine); color: #fff; border-color: var(--wine); }
.footer__legal { margin: 0; font-size: 14px; }

/* ---------- Заглушки фото ---------- */
.ph { width: 100%; aspect-ratio: 1 / 1; }
.ph--wide { aspect-ratio: 3 / 2; }
.ph--text { aspect-ratio: auto; margin: 24px 0; }
.ph__box {
  width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  text-align: center; padding: 20px; border-radius: var(--radius-lg);
  background: repeating-linear-gradient(135deg, #DCE5EA 0 12px, #E7EEF1 12px 24px);
  border: 2px dashed #8EA4B0; color: var(--ink);
}
.section--dark .ph__box { background: repeating-linear-gradient(135deg, #24546F 0 12px, #1F4B63 12px 24px); border-color: #6F93A6; color: #E3EDF2; }
.ph__word { font: 600 26px/1.1 var(--serif); }
.ph__id { font-weight: 600; font-size: 14px; letter-spacing: .04em; }
.ph__subject { font-size: 15px; max-width: 34ch; }
.ph__fmt { font-size: 13px; opacity: .8; }

/* ---------- Служебные пометки (только DEMO_MODE) ---------- */
.note {
  margin-top: 28px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: #FFF6D8; color: #4A3A10; border: 1px dashed #C9A13C; font-size: 15px; max-width: 76ch;
}

.prose { max-width: 760px; padding-top: 40px; }

/* Поля не прячутся под фиксированной шапкой при переходе фокуса к ошибке */
.field input, .field select { scroll-margin-top: calc(var(--header-h) + 72px); }

/* Мобильная версия: шапка не закреплена — уезжает вверх вместе со страницей */
@media (max-width: 1023px) {
  .header { position: absolute; }
  .menu { position: absolute; }
  section[id] { scroll-margin-top: 0; }
  .field input, .field select { scroll-margin-top: 24px; }
}

/* Фото в карточке интенсива (афиша — показываем целиком, без обрезки) */
.ticket__poster img { width: 100%; height: auto; border-radius: calc(var(--radius-lg) - 8px); }
/* Вертикальное фото в блоке «Школа» */
.tall img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
@media (max-width: 899px) { .tall img { aspect-ratio: 4 / 5; object-position: 50% 70%; } }
/* Старая цена */
.plan__old { display: block; font: 500 0.42em/1.2 var(--sans); color: var(--muted); text-decoration-thickness: 1.5px; margin-bottom: 6px; }
.plan--dark .plan__old { color: var(--muted); }

/* Блок «Живой интенсив» — выделен шампанью с винным отсветом */
#intensive.section--dark {
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(135, 70, 82, .22) 0%, rgba(135, 70, 82, 0) 70%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(135, 70, 82, .12) 0%, rgba(135, 70, 82, 0) 70%),
    linear-gradient(160deg, #EAD9CA 0%, var(--champagne) 60%, #D5B5A4 100%);
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}
#intensive .text-lg, #intensive .ticks li { color: var(--ink); }
#intensive .ticket { border-color: rgba(135, 70, 82, .25); box-shadow: 0 40px 70px -45px rgba(111, 56, 67, .55); }
