/* ═══════════════════════════════════════════
   SECTIONS — стили всех секций обоих страниц
   + glow-эффекты из бренд-гайда
═══════════════════════════════════════════ */

/* ─── ОБЩАЯ СЕКЦИЯ ─── */
.section { padding: 5rem 5%; }
.section-alt { background: var(--ivory); }
.section-dark { background: var(--espresso); }

/* ─── GLOW ФОН (бренд-гайд: роза + терракот на креме) ─── */
.glow-bg {
  position: relative;
  overflow: hidden;
}
.glow-bg::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 65% 75% at 20% 55%, rgba(200,154,161,.22) 0%, transparent 58%),
    radial-gradient(ellipse 45% 55% at 78% 35%, rgba(168,104,64,.12) 0%, transparent 52%);
}

/* ══════════════════════════════
   ГЛАВНАЯ СТРАНИЦА (index.html)
══════════════════════════════ */

/* ─── HERO — ГЛАВНАЯ ─── */
.hero-home {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 5rem) 5% 5rem;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-home::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 15% 60%, rgba(200,154,161,.3) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 82% 30%, rgba(168,104,64,.16) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 60% 80%, rgba(178,132,73,.1) 0%, transparent 45%);
}
.hero-home-inner {
  max-width: 1240px; margin: 0 auto; width: 100%;
  position: relative; z-index: 1;
}
.hero-home-content { max-width: 680px; }

.hero-home .hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem 1.2rem;
  border: 1px solid rgba(168,104,64,.4);
  color: var(--terracotta);
  font-size: .67rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0; animation: fadeUp .8s forwards .15s;
}
.hero-home .hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--terracotta); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-home h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400; font-style: italic;
  color: var(--espresso); line-height: 1.05;
  margin-bottom: 1.25rem;
  opacity: 0; animation: fadeUp .9s forwards .3s;
}
.hero-home h1 em { font-style: italic; color: var(--terracotta); }

.hero-home .hero-sub {
  font-size: 1rem; color: var(--muted);
  max-width: 500px; line-height: 1.8;
  margin-bottom: 2.5rem;
  opacity: 0; animation: fadeUp .9s forwards .5s;
}
.hero-home .hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .9s forwards .7s;
}

/* Мандала-декор hero главной */
.hero-home-mandala {
  position: absolute; right: -2%; top: 50%;
  transform: translateY(-50%);
  width: min(48%, 600px); opacity: .06;
  animation: spin 70s linear infinite;
}

/* ─── СЕКЦИЯ КУРСЫ ─── */
.courses-section { padding: 6rem 5%; background: var(--cream); }
.courses-header { margin-bottom: 3.5rem; }
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px,1fr));
  gap: 2rem;
}

/* Заглушка «скоро» для будущих курсов */
.course-card-soon {
  background: var(--ivory); border: 1px dashed var(--beige);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 3rem 2rem;
  min-height: 200px; color: var(--muted-lt);
}
.course-card-soon span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; color: var(--beige);
  margin-bottom: .5rem; display: block;
}
.course-card-soon p { font-size: .8rem; letter-spacing: .08em; }

/* ─── ОБ АВТОРЕ (главная, краткая) ─── */
.about-home {
  padding: 6rem 5%; background: var(--ivory);
  position: relative; overflow: hidden;
}
.about-home::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 65% at 85% 50%, rgba(200,154,161,.18) 0%, transparent 55%);
}
.about-home-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 380px 1fr;
  gap: 5rem; align-items: center;
  position: relative; z-index: 1;
}

.author-photo-box {
  position: relative;
  isolation: isolate;
}
.author-photo-img {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover; display: block;
}
.author-photo-placeholder {
  width: 100%; aspect-ratio: 3/4;
  background: var(--beige);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: var(--terracotta);
}
.author-photo-frame {
  position: absolute; top: 1rem; left: 1rem;
  right: -1rem; bottom: -1rem;
  border: 2px solid var(--terracotta);
  opacity: .4; z-index: -1;
}

.about-home-text .section-title { margin-top: .5rem; }
.about-home-text p {
  font-size: .92rem; color: var(--muted);
  line-height: 1.85; margin-bottom: 1.2rem;
}

/* ─── CTA ГЛАВНОЙ ─── */
.cta-home {
  padding: 6rem 5%; background: var(--espresso);
  text-align: center; position: relative; overflow: hidden;
}
.cta-home::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(168,104,64,.07) 0%, transparent 65%);
}
.cta-home-inner { position: relative; z-index: 1; }
.cta-home .label { color: rgba(168,104,64,.7); }
.cta-home .section-title { color: var(--ivory); margin-top: .75rem; }
.cta-sub {
  font-size: .9rem; color: rgba(245,239,230,.5);
  max-width: 440px; margin: 0 auto 2.5rem;
  line-height: 1.8;
}

/* ══════════════════════════════
   СТРАНИЦА КУРСА
══════════════════════════════ */

/* ─── HERO КУРСА ─── */
.hero-course {
  min-height: 100vh;
  background: var(--espresso);
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 5rem) 5% 5rem;
  position: relative; overflow: hidden;
}
.hero-course::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 65% 70% at 75% 50%, rgba(168,104,64,.09) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 15% 80%, rgba(200,154,161,.06) 0%, transparent 50%);
}
.hero-course-inner {
  max-width: 1240px; margin: 0 auto; width: 100%;
  position: relative; z-index: 1;
}
.hero-course-content { max-width: 680px; }

.hero-course-video {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0,0,0,.5);
  outline: 1px solid rgba(178,132,73,.25);
  width: 100%;
  max-width: 480px;
  height: 360px;
  justify-self: end;
  align-self: center;
  position: relative;
  flex-shrink: 0;
}
.hero-course-video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.hero-course .hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .45rem 1.2rem;
  border: 1px solid rgba(178,132,73,.5);
  color: var(--gold);
  font-size: .67rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: 2rem;
  opacity: 0; animation: fadeUp .8s forwards .15s;
}
.hero-course .hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-course h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400; color: var(--ivory);
  line-height: 1.05; margin-bottom: 1.2rem;
  opacity: 0; animation: fadeUp .9s forwards .3s;
}
.hero-course h1 em { color: var(--terracotta); font-style: italic; }

.hero-course .hero-sub {
  font-size: 1rem; color: rgba(245,239,230,.55);
  max-width: 500px; line-height: 1.8;
  margin-bottom: .75rem;
  opacity: 0; animation: fadeUp .9s forwards .5s;
}
.hero-course .hero-meta {
  font-size: .8rem; color: rgba(178,132,73,.8);
  letter-spacing: .05em; margin-bottom: 2.5rem;
  opacity: 0; animation: fadeUp .9s forwards .65s;
}
.hero-course .hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .9s forwards .8s;
}

/* Мандала hero курса */
.hero-course-mandala {
  position: absolute; right: -4%; top: 50%;
  transform: translateY(-50%);
  width: min(58%, 720px); opacity: .04;
  animation: spin 80s linear infinite;
}

/* Индикатор скролла */
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(245,239,230,.28);
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  opacity: 0; animation: fadeUp 1s forwards 1.2s;
}
.scroll-line {
  width: 1px; height: 42px;
  background: linear-gradient(to bottom, rgba(168,104,64,.6), transparent);
  transform-origin: top center;
  animation: scrollLine 2s ease-in-out infinite 1.5s;
}

/* ─── FOR WHOM ─── */
.fw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px,1fr));
  gap: 1.25rem; margin-top: 3rem;
}
.fw-card {
  background: var(--ivory);
  padding: 2rem 1.75rem;
  border-left: 3px solid var(--terracotta);
  transition: transform .3s ease, box-shadow .3s ease;
}
.fw-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 44px rgba(168,104,64,.1);
}
.fw-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.fw-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 500;
  margin-bottom: .4rem; color: var(--espresso);
}
.fw-card p { font-size: .83rem; color: var(--muted); line-height: 1.7; }

/* ─── О КУРСЕ ─── */
.about-course-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.about-course-text p {
  color: var(--muted); margin-bottom: 1.4rem; line-height: 1.85;
  font-size: .92rem;
}
.about-features { display: flex; flex-direction: column; gap: .85rem; margin-top: 2rem; }
.feature-item { display: flex; align-items: flex-start; gap: .85rem; }
.feature-dot {
  width: 6px; height: 6px; background: var(--terracotta);
  border-radius: 50%; flex-shrink: 0; margin-top: .5rem;
}
.feature-item p { font-size: .87rem; color: var(--muted); margin: 0; line-height: 1.65; }

/* Мандала «О курсе» */
.mandala-visual { position: relative; }
.mandala-box {
  aspect-ratio: 1;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  padding: 2.5rem; position: relative; overflow: visible;
}
.mandala-svg { width: 100%; animation: rotate 35s linear infinite; }
.mandala-badge {
  position: absolute; bottom: -1.5rem; left: -1.5rem;
  background: var(--terracotta); color: var(--ivory);
  padding: 1.25rem 1.5rem; text-align: center;
  box-shadow: 0 8px 24px rgba(168,104,64,.3);
}
.mandala-badge-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem; font-weight: 600;
  display: block; line-height: 1; color: var(--ivory);
}
.mandala-badge-txt {
  font-size: .65rem; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(245,239,230,.8);
}

/* ─── ПРОГРАММА ─── */
.curriculum-top {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 3rem;
  flex-wrap: wrap; gap: 1rem;
}
.curriculum-meta { font-size: .83rem; color: var(--muted); }

/* ─── АВТОР (полная версия) ─── */
.author-grid {
  display: grid; grid-template-columns: 360px 1fr;
  gap: 5rem; align-items: start;
}
.author-photo-wrap { position: relative; isolation: isolate; }
.author-photo-img-full {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block;
}
.author-photo-placeholder-full {
  aspect-ratio: 3/4; background: var(--beige);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: var(--terracotta);
}
.author-frame {
  position: absolute; top: 1rem; left: 1rem;
  right: -1rem; bottom: -1rem;
  border: 2px solid var(--terracotta); opacity: .35; z-index: -1;
}

.author-info .label { margin-top: 0; }
.author-name {
  font-size: 2.6rem; font-weight: 400;
  margin-bottom: .35rem; color: var(--espresso);
}
.author-role {
  display: block; color: var(--terracotta);
  font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 2rem;
}
.author-bio {
  font-size: .92rem; color: var(--muted);
  line-height: 1.85; margin-bottom: 1rem;
}

/* ─── ОТЗЫВЫ ─── */
.reviews-section {
  background: var(--cream); padding: 6.5rem 5%;
  position: relative; overflow: hidden;
}
.reviews-section::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 80% 40%, rgba(200,154,161,.2) 0%, transparent 55%);
}
.reviews-inner { max-width: 1240px; margin: 0 auto; position: relative; z-index: 1; }

/* ─── CTA КУРСА ─── */
.cta-course {
  padding: 6.5rem 5%; background: var(--espresso);
  text-align: center; position: relative; overflow: hidden;
}
.cta-course::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(168,104,64,.07) 0%, transparent 65%);
}
.cta-course-inner { position: relative; z-index: 1; }
.cta-course .label { color: rgba(168,104,64,.7); }
.cta-course .section-title { color: var(--ivory); margin-top: .75rem; }
.cta-course .cta-sub { color: rgba(245,239,230,.5); }

/* ─── FOOTER ─── */
.site-footer {
  background: #1A1210;
  padding: 1.75rem 5%;
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: .72rem; color: rgba(245,239,230,.25); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-link {
  font-size: .72rem; color: rgba(245,239,230,.35);
  text-decoration: none; transition: color var(--transition);
}
.footer-link:hover { color: var(--terracotta); }

/* ═══════════════════════════
   АНИМАЦИИ
═══════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* spin — для абсолютно позиционированных мандал (top:50% + translateY) */
@keyframes spin {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}
/* rotate — для мандал без translateY (секция О курсе) */
@keyframes rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes pulse {
  0%,100%{ opacity: 1; transform: scale(1); }
  50%    { opacity: .4; transform: scale(.6); }
}
@keyframes scrollLine {
  0%,100%{ transform: scaleY(1); opacity: 1; }
  50%    { transform: scaleY(.4); opacity: .4; }
}

/* ═══════════════════════════
   АДАПТИВ СЕКЦИЙ
═══════════════════════════ */
@media (max-width: 960px) {
  .about-course-grid { grid-template-columns: 1fr; gap: 3rem; }
  .author-grid       { grid-template-columns: 1fr; gap: 3rem; }
  .about-home-inner  { grid-template-columns: 1fr; gap: 3rem; }
  .author-photo-img-full,
  .author-photo-placeholder-full { aspect-ratio: 4/3; }
  .hero-home-mandala { display: none; }
  .hero-course-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-course-video { order: -1; max-width: 480px; margin: 0 auto; width: 100%; }
}
@media (max-width: 768px) {
  .section { padding: 4.5rem 5%; }
  .hero-home, .hero-course { padding-bottom: 4rem; }
  .hero-home .hero-actions,
  .hero-course .hero-actions { flex-direction: column; }
  .hero-home .hero-actions .btn,
  .hero-course .hero-actions .btn { text-align: center; }
  .curriculum-top { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .courses-grid { grid-template-columns: 1fr; }
  .fw-grid { grid-template-columns: 1fr; }
}
