:root {
    --bg-deep: #0a0e14;
    --text-main: #f4f1ea;
    --accent-gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.4);
}

html { scroll-behavior: smooth; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { line-height: 1.2; }

.container {
    width: 100%; 
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.relative-z { position: relative; z-index: 10; }

.bg-psi {
    position: fixed;
    top: 40%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80vh;
    font-family: serif;
    color: rgba(255, 255, 255, 0.015);
    z-index: -1;
    user-select: none;
    animation: pulseBg 8s ease-in-out infinite;
}

@keyframes pulseBg {
    0%, 100% { opacity: 0.015; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.04; transform: translate(-50%, -50%) scale(1.05); text-shadow: 0 0 50px var(--gold-glow); }
}

.top-nav {
    width: 100%;
    padding: 30px 0;
    position: absolute;
    top: 0; left: 0;
    z-index: 100;
}

.nav-container { display: flex; justify-content: flex-start; align-items: center; }
.brand-logo { display: flex; align-items: center; gap: 12px; }
.brand-icon { font-size: 2.2rem; color: var(--accent-gold); line-height: 1; }

.brand-text-minimal { display: flex; flex-direction: column; gap: 2px; }
.bt-top { font-family: 'Montserrat', sans-serif; font-size: 0.95rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #ffffff; line-height: 1.2;}
.bt-bottom { font-family: 'Montserrat', sans-serif; font-size: 0.8rem; font-weight: 400; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent-gold); line-height: 1.2;}

/* =========================================
   ГЛАВНЫЙ ЭКРАН
========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('golova.jpg');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to right, #0a0e14 0%, rgba(10, 14, 20, 0.8) 45%, transparent 80%);
    z-index: 1;
}

.hero-layout { position: relative; z-index: 2; width: 100%; padding-top: 50px; }
.hero-text { max-width: 580px; text-align: left; }
.hero-text h1 { font-size: 4rem; font-weight: 300; margin-bottom: 20px; }
.hero-text h1 span { color: var(--accent-gold); font-weight: 500; text-shadow: 0 0 20px var(--gold-glow); }
.hero-text p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 20px; line-height: 1.5; max-width: 500px;}

.hero-stats {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    padding-left: 15px;
    border-left: 2px solid var(--accent-gold);
}
.hero-stats strong { color: var(--accent-gold); font-size: 1.2rem; }

/* Кнопки */
.btn {
    display: inline-block;
    padding: 16px 36px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: 0.4s ease;
    margin: 10px 10px 10px 0;
    cursor: pointer;
    border: none;
}
.btn-small { padding: 12px 24px; font-size: 0.8rem; margin: 0; }
.btn-primary { background: linear-gradient(135deg, #d4af37, #b8860b); color: var(--bg-deep); box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3); }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(212, 175, 55, 0.6); transform: translateY(-3px); }
.btn-glass { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--text-main); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--accent-gold); transform: translateY(-3px); }

/* =========================================
   ИЗОЛИРОВАННЫЙ ФОН
========================================= */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    position: relative;
    transition: 0.4s ease;
    overflow: hidden;
}

.card { padding: 30px; width: 100%; max-width: 350px; text-align: left; }

.wide-banner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    gap: 30px;
}

.faq-item { padding: 30px; width: 100%; }

/* =========================================
   ШИРОКИЕ ПЛАШКИ (Внутренности)
========================================= */
.wb-content { text-align: left; flex: 1; }
.wb-content h4 { font-size: 1.3rem; margin-bottom: 8px; color: var(--accent-gold); font-weight: 500;}
.wb-content p { font-size: 0.95rem; opacity: 0.85; margin: 0; line-height: 1.5; }
.wb-action { flex-shrink: 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.vip-badge { 
    display: inline-block; 
    background: var(--accent-gold); 
    color: var(--bg-deep); 
    font-size: 0.75rem; 
    font-weight: 600; 
    text-transform: uppercase; 
    padding: 4px 10px; 
    border-radius: 20px; 
    margin-bottom: 10px; 
    letter-spacing: 1px;
}

/* =========================================
   БАЗОВЫЕ СЕКЦИИ И СЕТКА КАРТОЧЕК
========================================= */
.section { padding: 80px 20px; text-align: center; }
.section h2 { font-size: 2.8rem; font-weight: 300; margin-bottom: 15px; }
.subtitle { font-size: 1.1rem; opacity: 0.7; margin-bottom: 50px; }
.mt-50 { margin-top: 50px; }

.cards-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }

.card-glow {
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: 0.5s ease;
    pointer-events: none;
}

.glass-card h3 { font-size: 1.3rem; color: var(--accent-gold); margin-bottom: 10px; font-weight: 500; }
.intro-text { font-size: 0.95rem; opacity: 0.9; margin-bottom: 0; line-height: 1.6; }

/* =========================================
   РАСКРЫТИЕ КАРТОЧЕК ПРИ НАВЕДЕНИИ
========================================= */
.hover-card { cursor: pointer; }
.hover-indicator { font-size: 0.8rem; color: rgba(255,255,255,0.4); font-style: italic; transition: 0.3s; margin-top: 15px;}
.hover-content { max-height: 0; opacity: 0; overflow: hidden; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.hover-content p { font-size: 0.95rem; opacity: 0.9; margin: 0; line-height: 1.6; }

.hover-card:hover { transform: translateY(-5px); border-color: rgba(212, 175, 55, 0.4); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); background: rgba(255, 255, 255, 0.05); }
.hover-card:hover .hover-indicator { opacity: 0; max-height: 0; margin: 0; }
.hover-card:hover .hover-content { max-height: 350px; opacity: 1; margin-top: 15px; }
.hover-card:hover .card-glow { opacity: 1; }

.course-list { list-style: none; }
.course-list li { margin-bottom: 10px; padding-left: 12px; position: relative; font-size: 0.95rem; opacity: 0.9; line-height: 1.4;}
.course-list li::before { content: "•"; color: var(--accent-gold); position: absolute; left: 0; }

/* =========================================
   ШАГИ РАБОТЫ И ОТЗЫВЫ
========================================= */
.therapy-steps { max-width: 900px; margin-left: auto; margin-right: auto; padding: 40px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: left; }
.step-item { position: relative; padding-top: 15px; }
.step-num { font-size: 4rem; font-weight: 700; color: rgba(212, 175, 55, 0.15); position: absolute; top: -35px; left: -10px; z-index: -1; }
.step-item h4 { color: var(--text-main); font-size: 1.2rem; margin-bottom: 10px; }
.step-item p { font-size: 0.95rem; opacity: 0.8; }

.review-card { padding: 30px; }
.review-block { padding-bottom: 15px; }
.review-divider { border: 0; border-top: 1px solid rgba(255,255,255,0.1); margin: 15px 0; }
.stars { color: var(--accent-gold); font-size: 1.2rem; margin-bottom: 10px; letter-spacing: 2px; }
.review-text { font-style: italic; font-size: 0.9rem; opacity: 0.9; line-height: 1.5; margin-bottom: 15px; }
.review-author { font-weight: 600; color: var(--accent-gold); font-size: 0.85rem; text-align: right; margin: 0; }

/* =========================================
   FAQ
========================================= */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}
.faq-item h3 { font-size: 1.15rem; color: var(--accent-gold); margin: 0; font-weight: 500;}
.faq-item .hover-content p { margin-top: 15px; }

/* =========================================
   О МАКСИМЕ И ПОДВАЛ
========================================= */
.about-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; text-align: left; background: rgba(255, 255, 255, 0.02); padding: 50px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.05); }
.expert-photo { width: 100%; max-width: 400px; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5)); transition: 0.4s ease; }
.expert-photo:hover { transform: translateY(-5px); filter: drop-shadow(0 25px 40px rgba(212, 175, 55, 0.2)); }
.about-text p { font-size: 1.1rem; opacity: 0.85; }

.footer { background-color: #05070a; border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 60px 20px; margin-top: 50px; }
.footer-layout { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 40px; }
.footer-contacts h4 { color: var(--accent-gold); font-weight: 400; margin-bottom: 15px; font-size: 1.2rem; }
.footer-contacts p { color: rgba(255,255,255,0.7); margin-bottom: 8px; font-size: 0.95rem; }
.footer-contacts a { color: rgba(255,255,255,0.7); text-decoration: none; transition: 0.3s; }
.footer-contacts a:hover { color: var(--accent-gold); }

.fade-in-scroll, .fade-in-up { animation: fadeInUp 1s ease-out forwards; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   АДАПТАЦИЯ ДЛЯ ТЕЛЕФОНОВ (ИСПРАВЛЕНИЯ)
========================================= */
@media (max-width: 768px) {
    /* 1. ИДЕАЛЬНО ЦЕНТРИРУЕМ ЛОГОТИП */
    .nav-container { justify-content: center; }
    .brand-logo { flex-direction: column; justify-content: center; align-items: center; gap: 8px; margin-bottom: 20px; }
    .brand-text-minimal { align-items: center; text-align: center; }
    .bt-top { font-size: 0.75rem; letter-spacing: 1px; text-align: center; }
    .bt-bottom { font-size: 0.55rem; letter-spacing: 2px; text-align: center; }
    
    /* 2. ПОДМЕНЯЕМ КАРТИНКУ НА ТЕЛЕФОНЕ НА golova-mob.jpg */
    .hero { 
        background-image: url('golova-mob.jpg'); 
        background-position: center; 
    }
    .hero-overlay { background: rgba(10, 14, 20, 0.85); } 
    .hero-text { text-align: center; margin: 0 auto; max-width: 100%; }
    .hero-text h1 { font-size: 2.8rem; }
    
    /* 3. Уменьшаем интервалы в огромных заголовках */
    .section h2 { font-size: 2.2rem; line-height: 1.2; margin-bottom: 15px; }
    
    /* 4. Центрируем плашки */
    .wide-banner { flex-direction: column; text-align: center; padding: 30px 20px; gap: 20px; }
    .wb-action { width: 100%; flex-direction: column; }
    .wb-action .btn { margin: 0; width: 100%; }
    
    /* 5. Вопросы в столбик, чтобы читались на телефоне */
    .faq-grid { grid-template-columns: 1fr; gap: 15px; } 
    
    .steps-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .step-num { left: 50%; transform: translateX(-50%); top: -45px; }
    
    .about-layout { grid-template-columns: 1fr; text-align: center; padding: 30px 20px; }
    .footer-layout { justify-content: center; text-align: center; flex-direction: column; gap: 20px; }
}
/* --- Стили для модального окна с квизом --- */
.modal {
  display: none; 
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85); /* Затемнение фона */
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 750px;
  position: relative;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.close-btn {
  color: #fff;
  position: absolute;
  top: 0px;
  right: 15px;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close-btn:hover {
  color: #ffd700; /* Золотистый при наведении */
}