/* ==========================================================================
   Дизайн-система FEMINA beauty («Quiet Luxury», Mobile-First)
   ========================================================================== */

:root {
  /* Цвета бренда FEMINA beauty */
  --bg-burgundy: #451319;
  /* Основной винно-бордовый */
  --bg-burgundy-dark: #3A0E14;
  /* Глубокий бордовый для блока оплаты и внешнего фона */
  --bg-cream: #FAF8F5;
  /* Молочно-кремовый фон */
  --accent-gold: #D5C295;
  /* Шампань-золото для заголовков и акцентов */
  --accent-gold-btn: #C9B07A;
  /* Золотой градиент кнопок (базовый) */
  --accent-gold-light: #DFC995;
  /* Светлый блик золотой кнопки */
  --accent-gold-deep: #B5995D;
  /* Глубокий золотой для градиента */
  --text-dark: #1F0D10;
  /* Тёмный текст на светлом фоне */
  --text-dark-muted: #5A4145;
  /* Вторичный тёмный текст */
  --text-light: #FAF8F5;
  /* Светлый текст на бордовом фоне */
  --text-light-muted: rgba(250, 248, 245, 0.78);
  /* Мягкий светлый текст */
  --border-gold-subtle: rgba(213, 194, 149, 0.32);
  /* Тонкая золотая обводка */
  --border-dark-subtle: rgba(31, 13, 16, 0.12);
  /* Тонкий разделитель на светлом */
  --error-color: #FFB4AB;
  /* Аккуратный светло-коралловый цвет ошибки на бордовом */

  /* Типографика (Google Fonts) */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  /* Для логотипа и заголовков */
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  /* Для основного текста */

  /* Геометрия и отступы */
  --radius-card: 20px;
  --radius-photo: 24px;
  --radius-btn: 14px;
  --section-padding: 56px 20px;
  --container-max-width: 480px;

  /* Тени и анимации */
  --shadow-soft: 0 12px 32px rgba(20, 4, 7, 0.24);
  --shadow-card: 0 8px 24px rgba(31, 13, 16, 0.08);
  --transition-smooth: 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Базовый сброс */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-burgundy-dark);
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-light);
  background-color: var(--bg-burgundy-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
  color: inherit;
}

/* Центрированная мобильная колонка на десктопе */
.page-shell {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-burgundy);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.45);
  overflow-x: hidden;
}

/* ==========================================================================
   Шапка (только логотип)
   ========================================================================== */
.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 20px 14px;
  background-color: var(--bg-burgundy);
  border-bottom: 1px solid var(--border-gold-subtle);
}

.brand-logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent-gold);
  transition: opacity var(--transition-smooth);
}

.brand-logo:hover {
  opacity: 0.85;
}

/* ==========================================================================
   Общие классы секций и заголовков
   ========================================================================== */
.section {
  padding: var(--section-padding);
}

.section--burgundy {
  background-color: var(--bg-burgundy);
  color: var(--text-light);
}

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

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

.section-header {
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

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

.section-title--gold {
  color: var(--accent-gold);
}

.section-subtitle {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.45;
}

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

/* ==========================================================================
   Кнопки
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 14px 22px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow var(--transition-smooth), background-color var(--transition-smooth), opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn--gold {
  background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold-btn) 55%, var(--accent-gold-deep) 100%);
  color: var(--text-dark);
  box-shadow: 0 8px 22px rgba(201, 176, 122, 0.26);
}

.btn--gold:hover {
  box-shadow: 0 10px 26px rgba(201, 176, 122, 0.36);
}

.btn--outline-gold {
  background: transparent;
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn--outline-gold:hover {
  background-color: rgba(213, 194, 149, 0.1);
}

/* ==========================================================================
   БЛОК 1: HERO
   ========================================================================== */
.hero-section {
  padding-top: 32px;
  padding-bottom: 48px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.06;
  margin-bottom: 14px;
}

.hero-title__main {
  display: block;
  font-size: 34px;
  color: var(--text-light);
}

.hero-title__accent {
  display: block;
  margin-top: 4px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent-gold);
}

.hero-subtitle {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-light-muted);
  max-width: 340px;
  margin-bottom: 24px;
}

.hero-media {
  width: 100%;
  max-width: 310px;
  margin-bottom: 26px;
}

.hero-photo-frame {
  position: relative;
  border-radius: 160px 160px var(--radius-photo) var(--radius-photo);
  padding: 6px;
  border: 1px solid var(--border-gold-subtle);
  background: linear-gradient(180deg, rgba(213, 194, 149, 0.16), rgba(213, 194, 149, 0.03));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 154px 154px calc(var(--radius-photo) - 4px) calc(var(--radius-photo) - 4px);
}

/* Защита портретных фото от перетаскивания и контекстного меню */
.protected-photo {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* ==========================================================================
   БЛОК 2: МОЙ ПУТЬ В БЬЮТИ (КИНЕМАТОГРАФИЧНАЯ СЛАЙД-КАРУСЕЛЬ)
   ========================================================================== */
.story-slider {
  margin-bottom: 24px;
}

.story-stage {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  touch-action: pan-y;
}

.story-card {
  grid-area: 1 / 1;
  width: 100%;
  background-color: #FFFFFF;
  border: 1px solid var(--border-dark-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transform: translate3d(24px, 0, 0) scale(0.95);
  filter: blur(4px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity, filter;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-card.is-prev {
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transform: translate3d(-24px, 0, 0) scale(0.88);
  filter: blur(6px);
}

.story-card.is-next {
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transform: translate3d(24px, 0, 0) scale(0.95);
  filter: blur(4px);
}

.story-card.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0px);
}

.story-card.is-dragging {
  transition: none;
}

.story-card__image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3.8;
  overflow: hidden;
  background-color: #EFEAE2;
}

.story-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.story-card__body {
  padding: 18px 18px 20px;
}

.story-card__year {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--bg-burgundy);
  margin-bottom: 6px;
}

.story-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.story-card__text {
  font-size: 14px;
  line-height: 1.52;
  color: var(--text-dark-muted);
}

/* Панель навигации под карточкой */
.story-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 18px;
}

.story-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--accent-gold);
  background-color: #FFFFFF;
  color: var(--bg-burgundy);
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color var(--transition-smooth), box-shadow var(--transition-smooth), opacity 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.story-arrow:hover:not(:disabled) {
  background-color: rgba(213, 194, 149, 0.18);
}

.story-arrow:active:not(:disabled) {
  transform: scale(0.94);
}

.story-arrow:disabled {
  opacity: 0.32;
  cursor: default;
  box-shadow: none;
  animation: none;
}

.story-arrow--pulse:not(:disabled) {
  animation: pulseGoldGlow 2.2s ease-in-out infinite;
}

@keyframes pulseGoldGlow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(201, 176, 122, 0.42);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(201, 176, 122, 0);
  }
}

.story-indicators {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 72px;
}

.story-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.story-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background-color: rgba(201, 176, 122, 0.35);
  cursor: pointer;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.story-dot.is-active {
  width: 24px;
  background-color: var(--accent-gold-deep);
}

.story-counter {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--text-dark-muted);
}

.story-hint {
  margin-top: 10px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dark-muted);
  min-height: 18px;
  transition: opacity 0.25s ease;
}

.story-highlight {
  padding: 16px 18px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--accent-gold);
  background: linear-gradient(135deg, rgba(213, 194, 149, 0.16), rgba(213, 194, 149, 0.06));
  text-align: center;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--bg-burgundy);
}

/* ==========================================================================
   БЛОК 3: ПРОГРАММА ИНТЕНСИВА
   ========================================================================== */
.program-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.program-card {
  background-color: var(--bg-cream);
  color: var(--text-dark);
  border-radius: var(--radius-card);
  padding: 22px 20px;
  box-shadow: var(--shadow-soft);
}

.program-card__num {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-gold-deep);
  margin-bottom: 10px;
}

.program-card__title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.program-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dark-muted);
}

/* ==========================================================================
   БЛОК 4: ДЛЯ КОГО И ЧАСТЫЕ ВОПРОСЫ
   ========================================================================== */
.audience-block {
  margin-bottom: 44px;
}

.audience-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.audience-item {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-dark);
}

.audience-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--bg-burgundy);
}

.faq-list {
  margin-top: 18px;
  border-top: 1px solid var(--border-dark-subtle);
}

.faq-item {
  border-bottom: 1px solid var(--border-dark-subtle);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: var(--bg-burgundy);
  transform: translate(-50%, -50%);
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.faq-icon::before {
  width: 14px;
  height: 1.5px;
}

.faq-icon::after {
  width: 1.5px;
  height: 14px;
}

.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition-smooth);
}

.faq-item.is-open .faq-answer-wrap {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer {
  padding-bottom: 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dark-muted);
}

/* ==========================================================================
   БЛОК 5: РЕГИСТРАЦИЯ И ОПЛАТА
   ========================================================================== */
.payment-section {
  padding-bottom: 40px;
}

.payment-card {
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-card);
  padding: 26px 18px;
  background: linear-gradient(180deg, rgba(69, 19, 25, 0.55) 0%, rgba(58, 14, 20, 0.92) 100%);
  box-shadow: var(--shadow-soft);
}

.payment-card__header {
  text-align: center;
  margin-bottom: 22px;
}

.payment-card__title {
  font-size: 32px;
}

.payment-price {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--text-light);
}

/* Переключатель вкладок оплаты */
.payment-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border-gold-subtle);
  background-color: rgba(25, 6, 9, 0.45);
  margin-bottom: 22px;
}

.payment-tab {
  min-height: 42px;
  padding: 8px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-light-muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  -webkit-tap-highlight-color: transparent;
}

.payment-tab.is-active {
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold-btn));
  color: var(--text-dark);
}

/* Форма оплаты в 1 клик */
.payment-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-gold);
}

.form-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-gold-subtle);
  background-color: rgba(25, 6, 9, 0.55);
  color: var(--text-light);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-input::placeholder {
  color: rgba(250, 248, 245, 0.42);
}

.form-input:focus {
  border-color: var(--accent-gold);
  background-color: rgba(25, 6, 9, 0.78);
}

.form-input.is-invalid {
  border-color: var(--error-color);
  box-shadow: 0 0 0 3px rgba(255, 180, 171, 0.18);
}

.form-error {
  min-height: 18px;
  font-size: 13px;
  color: var(--error-color);
  text-align: center;
}

.form-error:empty {
  display: none;
}

/* Золотой блок подтверждения оплаты */
.payment-confirm {
  margin-top: 18px;
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--accent-gold);
  background: linear-gradient(135deg, rgba(213, 194, 149, 0.16), rgba(213, 194, 149, 0.05));
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.payment-confirm--qr {
  margin-top: 0;
  margin-bottom: 18px;
}

.payment-confirm.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.payment-confirm__text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--accent-gold);
  margin-bottom: 14px;
}

.payment-confirm__text:last-child {
  margin-bottom: 0;
}

/* Блок QR-кода */
.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-name-field {
  width: 100%;
  text-align: left;
  margin-bottom: 14px;
}

.qr-frame {
  width: 210px;
  padding: 12px;
  background-color: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  margin-bottom: 14px;
}

.qr-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.qr-caption {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-light-muted);
  margin-bottom: 18px;
  max-width: 300px;
}

.qr-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   Подвал
   ========================================================================== */
.site-footer {
  padding: 20px;
  background-color: var(--bg-burgundy-dark);
  border-top: 1px solid rgba(213, 194, 149, 0.14);
  text-align: center;
}

.footer-text {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--text-light-muted);
}

/* ==========================================================================
   Микро-анимации при скролле
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .faq-answer-wrap,
  .faq-icon::before,
  .faq-icon::after,
  .story-card,
  .story-arrow,
  .story-dot {
    transition: none;
  }

  .story-arrow--pulse:not(:disabled) {
    animation: none;
  }
}

/* Тонкая подстройка для узких экранов 360px */
@media (max-width: 374px) {
  .section {
    padding: 46px 16px;
  }

  .hero-title__main {
    font-size: 30px;
  }

  .hero-title__accent {
    font-size: 31px;
  }

  .section-title {
    font-size: 30px;
  }
}