/* ============================================================
   БРЕНД-ПЕРЕМЕННЫЕ  ← здесь меняем всё оформление
   Бренд: тёмно-синий + золото. Фон — нежно-голубой.
   ============================================================ */
:root {
  --color-bg:            #F1F7FB;  /* фон страницы (нежно-голубой) */
  --color-surface:       #FFFFFF;  /* карточки, формы */
  --color-tinted:        #E3EDF6;  /* блоки с заливкой (голубой поглубже) */
  --color-text:          #1E2E3E;  /* основной текст (тёмно-синий графит) */
  --color-muted:         #5E6B79;  /* второстепенный текст */
  --color-primary:       #1C3A5C;  /* основной цвет бренда (тёмно-синий) */
  --color-primary-dark:  #132A44;  /* при наведении */
  --color-primary-soft:  #E7F0F8;  /* светло-голубой фон акцента */
  --color-accent:        #BF9A42;  /* акцент (золото, тонкие детали) */
  --color-accent-soft:   #F3E9CE;  /* светлое золото */
  --color-border:        #D8E3EC;  /* голубовато-серая граница */

  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Nunito Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius:      16px;
  --radius-sm:   10px;
  --radius-pill: 999px;
  --shadow:      0 12px 34px rgba(28, 58, 92, 0.10);
  --shadow-sm:   0 4px 16px rgba(28, 58, 92, 0.07);
  --container:   1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background:
    radial-gradient(46% 34% at 12% 6%, rgba(168, 205, 232, .45), transparent 60%),
    radial-gradient(42% 30% at 88% 20%, rgba(198, 224, 240, .55), transparent 62%),
    radial-gradient(50% 40% at 70% 95%, rgba(180, 212, 234, .35), transparent 65%),
    linear-gradient(180deg, #F1F7FB 0%, #E7F1F8 100%);
  background-attachment: fixed;
  line-height: 1.5;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; line-height: 1.12; margin: 0 0 .4em; letter-spacing: .2px; }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; font-weight: 800; color: var(--color-primary); margin: 0 0 .6rem; }
.section { padding: 58px 0; position: relative; }
.section-tinted { background: linear-gradient(180deg, #E8F1F8 0%, #DCE9F3 100%); }
.section-head { max-width: 680px; margin: 0 auto 32px; text-align: center; }
.section-sub { color: var(--color-muted); font-size: 1.05rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: 14px 26px; border-radius: var(--radius-pill); font-family: var(--font-body); font-weight: 800; font-size: 1rem; cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-ghost { background: rgba(255,255,255,.6); color: var(--color-primary); border-color: var(--color-border); }
.btn-ghost:hover { border-color: var(--color-primary); background: #fff; }
.btn-sm { padding: 10px 20px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(241, 247, 251, .82); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; align-items: center; gap: 22px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 40px; width: auto; }
.brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem; color: var(--color-text); }
.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-nav a { color: var(--color-muted); font-weight: 600; font-size: .98rem; transition: color .2s; white-space: nowrap; }
.site-nav a:hover { color: var(--color-primary); }
/* «Войти» — голубая кнопка того же размера, что и «Записаться», на одной линии */
.header-login { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 22px; border-radius: var(--radius-pill); background: var(--color-primary-soft); color: var(--color-primary); font-weight: 800; font-size: .95rem; transition: background .2s; white-space: nowrap; }
.header-login:hover { background: #d6e6f5; }
.header-cta { height: 42px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: var(--color-text); border-radius: 2px; transition: .2s; }

/* ============ ГЕРОЙ: яблоко «парит» справа без рамки ============ */
.hero { padding: 52px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy .lede { font-size: 1.16rem; color: var(--color-muted); max-width: 36ch; margin-bottom: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 1.4rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-trust li { position: relative; padding-left: 22px; color: var(--color-muted); font-weight: 600; font-size: .95rem; }
.hero-trust li::before { content: "✓"; position: absolute; left: 0; top: -1px; color: var(--color-accent); font-weight: 900; }
.hero-media { position: relative; }
.hero-media::before {
  content: ""; position: absolute; inset: 2% 6%;
  background: radial-gradient(circle at 50% 45%, rgba(191, 154, 66, .10), transparent 68%);
  border-radius: 50%; z-index: 0;
}
.hero-emblem { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }
.hero-logo-mark { width: 100%; max-width: 480px; height: auto; filter: drop-shadow(0 20px 44px rgba(28, 58, 92, .16)); }
.hero-emblem.is-empty::after { content: "Школа осознанного питания"; color: var(--color-muted); font-weight: 700; text-align: center; font-family: var(--font-heading); font-size: 1.5rem; line-height: 1.2; }

/* ============ КАРТОЧКИ / СЕТКИ ============ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: .3em; }
.card p { color: var(--color-muted); margin: 0; }
.feature { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 28px 24px; }
.feature-ic { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--color-primary-soft); color: var(--color-primary); font-weight: 800; font-size: 1.05rem; margin-bottom: 16px; }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--color-muted); margin: 0; font-size: .98rem; }

/* ============ ПРОГРАММА ============ */
.program-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.program-list li { display: flex; gap: 18px; align-items: flex-start; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px 24px; }
.program-list .week { flex: none; font-family: var(--font-heading); font-weight: 700; color: var(--color-accent); font-size: 1.05rem; padding-top: 2px; min-width: 82px; }
.program-list h3 { font-size: 1.1rem; margin-bottom: 0; }
.program-list p { margin: 0; color: var(--color-muted); font-size: .96rem; }
.program-subtitle { text-align: center; font-size: 1.55rem; margin: 0 0 22px; color: var(--color-primary); }
.program-list + .program-subtitle { margin-top: 44px; }
.program-note { max-width: 680px; margin: 0 auto; text-align: center; color: var(--color-muted); }

/* ============ БИБЛИОТЕКА ============ */
.lib-list { display: grid; gap: 9px; margin-top: 4px; }
.lib-list li { position: relative; padding-left: 26px; color: var(--color-muted); font-size: .98rem; }
.lib-list li::before { content: "✓"; position: absolute; left: 0; color: var(--color-accent); font-weight: 900; }

/* ============ АВТОР ============ */
.author-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.author-media { position: relative; }
.author-media::before { content: ""; position: absolute; inset: 4% 4% 0; background: radial-gradient(circle at 50% 42%, rgba(28, 58, 92, .12), transparent 66%); border-radius: 50%; z-index: 0; }
.author-photo { position: relative; z-index: 1; width: 100%; height: auto; filter: drop-shadow(0 20px 44px rgba(28, 58, 92, .20)); }
.author-role { color: var(--color-accent); font-weight: 700; margin-top: -.4rem; }
.author-facts { display: flex; gap: 30px; margin-top: 20px; }
.author-facts li { color: var(--color-muted); }
.author-facts strong { display: block; font-family: var(--font-heading); font-size: 1.6rem; color: var(--color-text); }
.media-placeholder { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: linear-gradient(135deg, var(--color-primary-soft), #dfeaf4); border: 1px dashed var(--color-border); border-radius: var(--radius); color: var(--color-muted); font-weight: 700; box-shadow: var(--shadow); }
.media-square { aspect-ratio: 1 / 1; }

/* ============ ОТЗЫВЫ ============ */
.review { margin: 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); }
.review p { font-size: 1.05rem; }
.review footer { color: var(--color-muted); font-weight: 700; }

/* ============ СТОИМОСТЬ ============ */
.pricing-card { max-width: 640px; margin: 0 auto; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px; text-align: center; }
.pricing-name { font-weight: 800; font-size: 1.15rem; }
.pricing-price { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 700; color: var(--color-primary); margin: .2em 0; }
.price-old { color: var(--color-muted); text-decoration: line-through; font-size: 1.5rem; margin-right: .3em; }
.pricing-note { color: var(--color-muted); font-size: .9rem; }
.pricing-list { display: inline-flex; flex-direction: column; gap: 10px; text-align: left; margin: 24px 0 28px; }
.pricing-list li { position: relative; padding-left: 28px; }
.pricing-list li::before { content: "✓"; position: absolute; left: 0; color: var(--color-accent); font-weight: 900; }
.pricing-pay-note { color: var(--color-muted); font-size: .9rem; margin: 18px 0 0; }
.pricing-pay-note a { color: var(--color-primary); font-weight: 700; }
.pay-options { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; text-align: left; }
.pay-option { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 18px 20px; border: 1px solid var(--color-border); border-radius: 16px; background: linear-gradient(180deg, #F4F9FD 0%, #E9F2FA 100%); }
.pay-option-title { font-weight: 800; font-size: 1.08rem; color: var(--color-text); margin: 0; }
.pay-option-sub { color: var(--color-muted); font-size: .9rem; margin: 4px 0 0; }
.pay-option-action { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.pay-option-amount { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; color: var(--color-primary); margin: 0; white-space: nowrap; }
.pay-option .btn { white-space: nowrap; }
@media (max-width: 560px) {
  .pay-option { flex-direction: column; align-items: stretch; text-align: center; }
  .pay-option-action { margin-left: 0; flex-direction: column; gap: 10px; }
  .pay-option-action .btn { width: 100%; }
}

/* ============ ФОРМА ЗАЯВКИ ============ */
.section-signup { background: linear-gradient(160deg, #1C3A5C 0%, #16324f 100%); color: #fff; }
.section-signup .eyebrow { color: #cfe1f0; }
.signup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.signup-copy h2 { color: #fff; }
.signup-copy p { color: rgba(255,255,255,.85); }
.signup-points { margin-top: 18px; display: grid; gap: 10px; }
.signup-points li { position: relative; padding-left: 26px; color: rgba(255,255,255,.9); }
.signup-points li::before { content: "✓"; position: absolute; left: 0; color: #cfe1f0; font-weight: 900; }
.signup-form { background: var(--color-surface); color: var(--color-text); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field .opt { color: var(--color-muted); font-weight: 400; }
.field input, .field textarea { width: 100%; padding: 13px 15px; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--color-text); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-soft); }
.field textarea { resize: vertical; }
.field-hint { color: var(--color-muted); font-size: .85rem; margin: -4px 0 14px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--color-muted); margin-bottom: 20px; }
.consent input { margin-top: 3px; flex: none; width: 17px; height: 17px; accent-color: var(--color-primary); }
.consent a { color: var(--color-primary); text-decoration: underline; }
.form-status { margin: 14px 0 0; font-weight: 700; font-size: .95rem; min-height: 1.2em; }
.form-status.is-error { color: #B4442E; }
.form-status.is-success { color: var(--color-primary); }

/* ============ FAQ ============ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; font-size: 1.4rem; color: var(--color-primary); transition: transform .2s; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--color-muted); }

/* ============ ПОДВАЛ ============ */
.site-footer { background: var(--color-primary-dark); color: #c4cdd8; padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { color: #9fb0c2; margin-top: 8px; }
.footer-title { color: #fff; font-weight: 800; margin-bottom: 12px; }
.footer-col a { display: block; color: #c4cdd8; margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 20px; font-size: .85rem; color: #8397ab; }

/* ============ АДАПТИВ ============ */
@media (max-width: 960px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .author-grid, .signup-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { order: -1; max-width: 380px; margin: 0 auto; }
  .program-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 44px 0; }
  .cards-3, .cards-4 { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-nav.is-open { display: flex; flex-direction: column; gap: 4px; position: absolute; top: 72px; left: 0; right: 0; background: var(--color-surface); padding: 16px 24px; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow); }
  .signup-form { padding: 24px; }
  .pricing-card { padding: 28px 22px; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============ АНИМАЦИИ ============ */
.site-header.scrolled { box-shadow: 0 6px 22px rgba(28, 58, 92, .10); }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .reveal.is-visible { opacity: 1; transform: none; }
  .hero-copy > *, .hero-media { animation: fadeUp .85s both; }
  .hero-copy .eyebrow { animation-delay: .05s; }
  .hero-copy h1 { animation-delay: .12s; }
  .hero-copy .lede { animation-delay: .20s; }
  .hero-copy .hero-actions { animation-delay: .28s; }
  .hero-copy .hero-trust { animation-delay: .36s; }
  .hero-media { animation-delay: .18s; }
  .hero-logo-mark { animation: floatY 6s ease-in-out infinite; }
  .card, .feature, .review { transition: transform .25s ease, box-shadow .25s ease; }
  .card:hover, .feature:hover, .review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
