/* ===== style.css — ОБЩИЕ СТИЛИ ДЛЯ ВСЕГО САЙТА ===== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Raleway:wght@200;300;400;500;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #d3b289;
    --card-bg: rgba(223, 191, 151, 0.35);
    --card-bg-hover: rgba(223, 191, 151, 0.65);
    --text: #3d2b1f;
    --text-mid: #5a3d2b;
    --text-light: #7a5c42;
    --accent: #c08a0a;
    --accent-light: #fef7db;
    --accent-mid: #231913;
    --overlay-dark: rgba(30, 20, 15, 0.35);
    --section-bg: #f6f3ea;
    --white: #ffffff;
}

body {
    font-family: 'Raleway', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

html { scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
img { max-width: 100%; height: auto; display: block; }

/* ===== HERO ===== */
.hero {
    position: relative;
    background: linear-gradient(to right, #f6f3ea 0%, #dec5a6 20%, #dec5a6 80%, #f6f3ea 100%);
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ИСПРАВЛЕНО: убран pointer-events: none, чтобы имена были кликабельны */
.hero-image-bg {
    position: absolute; top: 0; left: 50%;
    transform: translateX(-50%) scale(0.92);
    width: 65vw; height: auto; min-height: 85vh;
    overflow: hidden; z-index: 1;
    opacity: 0;
    animation: slideDownIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s forwards;
}
@keyframes slideDownIn {
    to { transform: translateX(-50%) scale(1); opacity: 1; }
}
.hero-image-bg img {
    width: 100%; height: auto; min-height: 100%;
    object-fit: cover; object-position: top center; display: block;
}
.image-glow {
    position: absolute; top: 75%; left: 50%;
    transform: translate(-50%, -50%);
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, rgba(223,191,151,0.7) 40%, transparent 75%);
    border-radius: 50%; pointer-events: none; z-index: 2;
}

/* ИСПРАВЛЕНО: добавлен pointer-events: auto и повышен z-index */
.names-overlay {
    position: absolute; top: 70%; left: 0; right: 0; text-align: center; z-index: 5;
    pointer-events: auto;
}
.names-overlay a {
    pointer-events: auto;
    cursor: pointer;
    position: relative;
    z-index: 10;
    display: inline-block;
}
.names-overlay a:hover .name {
  
    text-decoration: underline;
}
.names-overlay .name {
    font-family: 'Cormorant Garamond', serif; font-size: 2.1rem; color: var(--text);
    text-shadow: 0 2px 8px rgba(255,255,255,0.8); opacity: 0.95;font-weight: bold;
    transition: color 0.3s, text-decoration 0.3s;
}
.names-overlay .name-separator {
    display: inline-block; width: 4px; height: 4px;
    background: var(--accent-light); border-radius: 50%; margin: 0 10px; vertical-align: middle;
}
.hero-left, .hero-right {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; max-width: 260px; opacity: 0;
}
.hero-left {
    left: 4%; align-items: flex-start; display: flex; flex-direction: column;
    animation: slideInLeft 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}
.hero-right {
    right: 4%; align-items: flex-end; display: flex; flex-direction: column;
    animation: slideInRight 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
}
@keyframes slideInLeft {
    from { transform: translate(-30px, -50%); opacity: 0; }
    to   { transform: translate(0, -50%); opacity: 1; }
}
@keyframes slideInRight {
    from { transform: translate(30px, -50%); opacity: 0; }
    to   { transform: translate(0, -50%); opacity: 1; }
}
.logo h1 {
    font-family: 'Cormorant Garamond', serif; font-size: 5.8rem; font-weight: 300; line-height: .5;
    color: var(--text); margin-bottom: 6px;
}
.logo h1 span { display: block; font-weight: 600; color: var(--accent); }
.logo-subtitle {
    font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 300; font-style: italic;
    color: var(--text-mid); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; margin-top: 6px;
}
.logo-tagline {
    font-size: 0.88rem; color: var(--text-light); line-height: 1.6; max-width: 240px;
}
.logo-tagline span { display: block; width: 25px; height: 1px; background: var(--accent); margin: 10px 0; }
.nav-menu { list-style: none; text-align: right; }
.nav-menu li { margin-bottom: 6px; }
.nav-menu a {
    font-family: 'Cormorant Garamond', serif; font-size: 2rem; color: var(--text-mid);
    text-decoration: none; display: block; transition: color 0.3s;
}
.nav-menu a:hover { color: var(--accent); }
.nav-divider { width: 50px; height: 1px; background: var(--accent); margin: 12px 0; align-self: flex-end; }
.cta-button {
    padding: 12px 28px; background: transparent; border: 1px solid var(--accent); color: var(--accent);
    font-size: 1rem; letter-spacing: 1px;
    text-transform: uppercase; cursor: pointer; align-self: flex-end; transition: all 0.3s;
}
.cta-button:hover { background: var(--accent); color: var(--bg); }

/* ===== SPARKS ===== */
#sparks-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9999; pointer-events: none; overflow: hidden;
}
.spark {
    position: absolute; width: var(--size, 5px); height: var(--size, 5px);
    background: radial-gradient(circle, #ffffff 20%, #fff3d4 60%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(255,255,255,0.4), 0 0 4px var(--accent-light), 0 0 6px var(--accent);
    opacity: 0; pointer-events: none; animation: floatToSky var(--dur) linear forwards;
}
@keyframes floatToSky {
    0% { opacity: 0; transform: translateY(0) translateX(0) scale(0.3); }
    10% { opacity: 0.25; transform: translateY(-50px) translateX(var(--sway)) scale(0.8); }
    40% { transform: translateY(-35vh) translateX(calc(var(--sway) * -1)) scale(1); opacity: 0.3; }
    70% { transform: translateY(-70vh) translateX(var(--sway)) scale(0.9); opacity: 0.2; }
    100% { opacity: 0; transform: translateY(-120vh) translateX(0) scale(0.3); }
}

/* ===== SLIDER: IMAGE AS BACKGROUND — ИСПРАВЛЕННЫЙ ===== */
.parallax-slider {
    position: relative; width: 100%; height: 100vh; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.slider-track {
    display: flex; width: 100%; height: 100%;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.slide {
    min-width: 100%; height: 100%; position: relative;
    display: flex; align-items: center; justify-content: center;
}
/* Фон слайда — через ::before */
.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--slide-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    transition: transform 0.8s ease;
    transform: scale(var(--bg-scale, 1));
}
/* Затемнение для читаемости текста */
.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 228, 165, 0.7) 0%, rgba(30,20,15,0.4) 50%, transparent 100%);
    z-index: 2;
}
/* Контент поверх фона */
.slide-content-wrapper {
    position: relative;
    z-index: 3;
    padding: 40px;
    max-width: 700px;
    text-align: center;
    color: #fff;
}
.slide-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}
.slide-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.slide-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}
.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: var(--accent);
    color: var(--white);
    font-size: 1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--accent);
    border-radius: 2px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(192,138,10,0.3);
}
.slide-btn:hover {
    background: transparent;
    color: #fff;
    box-shadow: 0 6px 30px rgba(255,255,255,0.25);
    transform: translateY(-2px);
}
.slide-btn svg {
    width: 14px; height: 14px;
    stroke: currentColor; fill: none; stroke-width: 2;
    transition: transform 0.3s;
}
.slide-btn:hover svg { transform: translateX(4px); }

/* Навигация слайдера */
.slider-nav {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 12px; z-index: 4;
}
.slider-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.4); border: 2px solid rgba(255,255,255,0.7);
    cursor: pointer; transition: all 0.3s;
}
.slider-dot.active {
    background: var(--accent); border-color: var(--accent);
    transform: scale(1.15); box-shadow: 0 0 0 3px rgba(192,138,10,0.25);
}
.slider-arrows {
    position: absolute; top: 50%; width: 100%; display: flex; justify-content: space-between;
    padding: 0 30px; z-index: 4; transform: translateY(-50%); pointer-events: none;
}
.slider-arrow {
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.4);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; pointer-events: auto; transition: all 0.3s; color: #fff;
}
.slider-arrow:hover {
    background: var(--accent); border-color: var(--accent); transform: scale(1.05);
}
.slider-arrow svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ===== PRACTICE CARDS ===== */
.practice-section { padding: 100px 40px; background: var(--section-bg); text-align: center; }
.practice-header { margin-bottom: 60px; }
.practice-header h2 {
    font-family: 'Cormorant Garamond', serif; font-size: 3rem; font-weight: 300;
    color: var(--text); margin-bottom: 16px; letter-spacing: 2px;
}
.practice-header p {
    font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; line-height: 1.6;
}
.practice-cards {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto;
}
.practice-card-link { display: block; text-decoration: none; color: inherit; outline: none; }
.practice-card {
    position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4/3;
    cursor: pointer; transition: transform 0.4s;
}
.practice-card-link:hover .practice-card {
    transform: translateY(-8px); box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.practice-card img {
    width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s;
}
.practice-card-link:hover .practice-card img { transform: scale(1.05); }
.practice-card-overlay {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 30px;
    background: linear-gradient(to top, rgba(30,20,15,0.9), transparent); color: #fff;
}
.practice-card-title {
    font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 400;
    letter-spacing: 3px; text-transform: uppercase;
}

/* ===== ABOUT & INFO SECTIONS ===== */
.about-section, .info-section { padding: 100px 40px; background: var(--bg); }
.info-section:nth-child(even) { background: var(--section-bg); }
.about-container, .info-container { max-width: 1000px; margin: 0 auto; }
.section-title {
    font-family: 'Cormorant Garamond', serif; font-size: 3rem; font-weight: 300;
    text-align: center; margin-bottom: 50px; color: var(--text);
}
.about-content { font-size: 1.3rem; line-height: 1.5; color: var(--text-mid); text-indent: 3em; }
.info-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px; margin-top: 40px;
}
.info-card {
    background: #fff; padding: 30px; border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06); transition: all 0.3s;
}
.info-card:hover { transform: translateY(-5px); box-shadow: 0 10px 40px rgba(0,0,0,0.12); }
.info-card h4 {
    font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--text); margin-bottom: 12px;
}
.info-card p { font-size: 0.95rem; color: var(--text-light); line-height: 1.6; }
.info-card .price {
    font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--accent);
    margin-top: 10px; font-weight: 600;
}

/* ===== CONTACTS & FOOTER ===== */
.contacts-section { padding: 100px 40px; background: var(--section-bg); }
.contacts-container { max-width: 800px; margin: 0 auto; text-align: center; }
.contacts-content {
    background: #fff; padding: 60px; border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.contacts-content h3 {
    font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; margin-bottom: 10px; color: var(--text);
}
.contacts-content .subtitle { font-size: 1rem; color: var(--text-light); margin-bottom: 40px; }
.contact-item { margin: 20px 0; font-size: 1.05rem; line-height: 1.7; }
.contact-item strong {
    color: var(--text); display: block; margin-bottom: 5px;
    font-family: 'Cormorant Garamond', serif; font-size: 1.2rem;
}
.contact-link { color: var(--accent); text-decoration: none; transition: color 0.3s; }
.contact-link:hover { color: var(--text); }
.map-link {
    display: inline-block; margin-top: 30px; padding: 14px 36px;
    background: var(--accent); color: var(--white);
    font-size: 1.3rem; text-decoration: none;
    border-radius: 2px; transition: all 0.3s;
}
.map-link:hover { background: var(--text); color: #fff; transform: translateY(-2px); }
.bottom-quote { text-align: center; padding: 60px 20px; background: var(--bg); }
.bottom-quote p {
    font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-style: italic; color: var(--text-light);
}
.bottom-quote p em { color: var(--accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 950px) {
    .hero-left, .hero-right {
        position: relative; top: auto; transform: none; left: auto; right: auto;
        max-width: 100%; text-align: center; align-items: center; padding: 20px;
        animation: none !important; opacity: 1;
    }
    .hero-image-bg {
        position: relative; width: 90vw; min-height: 60vh; margin: 20px auto 40px;
        animation: none !important; opacity: 1; transform: none;
    }
    .nav-menu { text-align: center; }
    .nav-divider, .cta-button { align-self: center; }
    .practice-cards { grid-template-columns: 1fr; }
    .contacts-content { padding: 40px 25px; }
}
@media (max-width: 768px) {
    .slide-content h3 { font-size: 2.4rem; }
    .slide-content p { font-size: 1.1rem; }
    .slide-btn { padding: 12px 28px; font-size: 0.9rem; }
    .slider-nav { bottom: 25px; }
    .slider-dot { width: 10px; height: 10px; }
    .slider-arrows { display: none; }
    .practice-header h2, .section-title { font-size: 2.2rem; }
}
@media (max-width: 480px) {
    .slide-content h3 { font-size: 2rem; }
    .slide-content p { font-size: 1rem; }
    .practice-card-title { font-size: 1.4rem; letter-spacing: 2px; }
}


/* ===== MOBILE HEADER & MENU ===== */

/* Кнопка гамбургер */
.menu-toggle {
    display: none; /* Скрыта на ПК */
    position: fixed; /* Фиксируем, чтобы не уезжала */
    top: 20px;
    right: 20px;
    z-index: 9999; /* Всегда сверху */
    width: 48px;
    height: 48px;
    background: var(--accent);
    border: none;
    border-radius: 50%; /* Сделаем круглой для красоты */
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.menu-toggle:active {
    transform: scale(0.95);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff; /* Белые полоски */
    border-radius: 2px;
    transition: all 0.3s;
}

/* Состояние "Крестик" */
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Мобильное меню */
.nav-mobile {
    position: fixed;
    top: 0;
    right: -100%; /* Скрыто справа */
    width: 85%; /* Шире */
    max-width: 350px;
    height: 100vh;
    background: #fdf8f0; /* Светлый фон */
    padding: 80px 30px 30px;
    z-index: 9990;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    overflow-y: auto;
}

.nav-mobile.active {
    right: 0;
}

.nav-mobile ul { list-style: none; padding: 0; margin: 0; }
.nav-mobile li { margin-bottom: 5px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.nav-mobile a {
    display: block;
    padding: 15px 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}
.nav-mobile a:hover { color: var(--accent); padding-left: 10px; }

/* Затемнение */
.menu-overlay {
    position: fixed; inset: 0;
    background: rgba(30,20,15, 0.7);
    z-index: 9980;
    opacity: 0; visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(2px);
}
.menu-overlay.active { opacity: 1; visibility: visible; }

/* ===== МОБИЛЬНАЯ ВЕРСИЯ HERO (ОБНОВЛЁННАЯ) ===== */
@media (max-width: 950px) {
    /* Фиксируем высоту и скрываем лишние отступы */
    .hero {
        position: relative;
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
        display: block; /* Убираем flex, чтобы контролировать позиционирование абсолютно */
    }

    /* 1. КАРТИНКА: на весь экран, по центру, крупная */
    .hero-image-bg {
        position: absolute !important;
        top: 0 !important; left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
        margin: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        animation: none !important;
        z-index: 1;
        pointer-events: none; /* Картинка не должна ловить клики */
    }
    /* НО имена внутри должны быть кликабельны */
    .hero-image-bg .names-overlay,
    .hero-image-bg .names-overlay a {
        pointer-events: auto !important;
    }
    
    .hero-image-bg img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        pointer-events: none;
    }

    /* 2. СВЕТЛЫЙ ГРАДИЕНТ ВНИЗУ (чтобы тёмный текст читался) */
    .hero::after {
        content: '';
        position: absolute;
        bottom: 0; left: 0; right: 0;
        height: 55%;
        background: linear-gradient(to top, rgba(246,243,234,0.98) 0%, rgba(246,243,234,0) 100%);
        z-index: 2;
        pointer-events: none;
    }

    /* 3. ИМЕНА: показываем поверх градиента, делаем кликабельными */
    .names-overlay {
        display: block !important;
        position: absolute !important;
        bottom: 200px !important; /* Над логотипом */
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        z-index: 6 !important; /* Выше градиента (z-index: 2) */
        pointer-events: auto !important;
        text-align: center;
    }
    .names-overlay a {
        pointer-events: auto !important;
        cursor: pointer;
        position: relative;
        z-index: 10;
    }
    .names-overlay .name {
        font-size: 1.2rem !important;
        color: var(--text) !important; /* Тёмный цвет на светлом фоне */
        text-shadow: 0 1px 3px rgba(255,255,255,0.8) !important;
    }
    .names-overlay .name-separator {
        background: var(--accent) !important;
    }

    /* 4. ТЕКСТ: спускаем вниз, центрируем */
    .hero-left {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        transform: none !important;
        max-width: 100% !important;
        padding: 20px 20px 90px 20px; /* Отступ снизу под безопасную зону */
        text-align: center !important;
        align-items: center !important;
        z-index: 3 !important;
        animation: none !important;
        opacity: 1 !important;
    }

    /* Адаптация шрифтов логотипа */
    .logo h1 {
        font-size: 2.8rem !important;
        line-height: 1.1 !important;
        color: var(--text) !important;
    }
    .logo h1 span {
        font-size: 3rem !important;
        color: var(--accent) !important;
    }
    .logo-subtitle {
        font-size: 0.95rem !important;
        margin-top: 4px !important;
        color: var(--text-mid) !important;
    }
    .logo-tagline {
        font-size: 0.85rem !important;
        color: var(--text-light) !important;
        max-width: 100% !important;
        margin-top: 12px !important;
    }
    .logo-tagline span {
        margin: 8px auto !important;
    }

    /* Десктопное меню скрываем */
    .hero-right { display: none !important; }

    /* Показываем гамбургер */
    .menu-toggle { display: flex; }
}

/* Ультра-мобильные (iPhone SE и аналоги) */
@media (max-width: 480px) {
    .hero-left { padding-bottom: 70px; }
    .logo h1 { font-size: 2.4rem !important; }
    .logo h1 span { font-size: 2.6rem !important; }
    .logo-tagline { font-size: 0.8rem !important; }
    .names-overlay {
        bottom: 180px !important;
    }
    .names-overlay .name {
        font-size: 1rem !important;
    }
}