﻿/* ✅ Глобальное увеличение шрифта */
html {
    font-size: 19px;
}

/* --- Основные настройки --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #FAFAF9;
    --text-primary: #2D2D2D;
    --text-secondary: #6B6B6B;
    --accent: #D4AF37;
    --accent-soft: #E8D5A3;
    --accent-light: #F4E9C9;
    --white: #FFFFFF;
    --tg-blue: #24A1DE;
}

body {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.9;
    overflow-x: hidden;
}

/* --- Шапка (Header) --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.4rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(250, 250, 249, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.4s ease;
}

.logo {
    font-size: 2.4rem;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

header.scrolled .logo {
    opacity: 1;
    transform: translateY(0);
}

.logo .dot {
    position: relative;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
    margin: 0 10px;
    bottom: 1px;
    vertical-align: middle;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.4);
        box-shadow: 0 0 12px var(--accent);
    }
}

/* ✅ Метка "скоро" */
.soon {
    font-size: 0.7em;
    color: var(--text-secondary);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.05em;
    margin-left: 0.3em;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 300;
    transition: color 0.3s ease;
}

    nav a:hover {
        color: var(--text-primary);
    }

/* --- Главный экран (Hero) --- */
.hero {
    min-height: 96vh;
    margin-top: -2vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

    .hero-waves svg {
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
    }

.wave-gradient {
    stop-color: var(--accent);
}

.wave-gradient-soft {
    stop-color: var(--accent-soft);
}

.wave-gradient-light {
    stop-color: var(--accent-light);
}

.wave-path {
    fill: none;
    stroke: url(#waveGradient);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.45;
}

.wave-1 {
    opacity: 0.55;
    stroke-width: 2.5;
}

.wave-2 {
    opacity: 0.4;
    stroke-width: 2;
}

.wave-3 {
    opacity: 0.35;
    stroke-width: 1.5;
}

.wave-4 {
    opacity: 0.42;
    stroke-width: 1.8;
}

.wave-container {
    animation: waveBreathe 10s ease-in-out infinite;
    transform-origin: center;
}

    .wave-container:nth-child(2) {
        animation-delay: -3s;
    }

    .wave-container:nth-child(3) {
        animation-delay: -6s;
    }

    .wave-container:nth-child(4) {
        animation-delay: -9s;
    }

@keyframes waveBreathe {
    0%, 100% {
        transform: scale(1) rotate(0deg) translate(0, 0);
        opacity: inherit;
    }

    25% {
        transform: scale(1.015) rotate(0.2deg) translate(2px, -3px);
        opacity: calc(inherit * 1.08);
    }

    50% {
        transform: scale(1.025) rotate(0.4deg) translate(0, -5px);
        opacity: calc(inherit * 1.12);
    }

    75% {
        transform: scale(1.015) rotate(0.2deg) translate(-2px, -3px);
        opacity: calc(inherit * 1.08);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    margin-top: -8vh;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
}

    .hero-title .dot {
        position: relative;
        width: 6px;
        height: 6px;
        background-color: var(--accent);
        border-radius: 50%;
        display: inline-block;
        margin: 0 10px;
        bottom: 0;
        vertical-align: middle;
        animation: pulse 3s ease-in-out infinite;
    }

.hero-subtitle {
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* --- Кнопки --- */
.btn {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    border: 2px solid var(--text-primary);
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 300;
    letter-spacing: 0.1em;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

    .btn:hover {
        background: rgba(212, 175, 55, 0.08);
        border-color: var(--text-primary);
        color: var(--text-primary);
        box-shadow: 0 4px 25px rgba(212, 175, 55, 0.25);
    }

/* ✅ Кнопка Telegram */
.tg-btn {
    background: var(--tg-blue);
    border-color: var(--tg-blue);
    color: var(--white);
    margin-top: 1.5rem;
}

    .tg-btn:hover {
        background: transparent;
        color: var(--tg-blue);
        box-shadow: 0 4px 25px rgba(36, 161, 222, 0.3);
    }

.tg-handle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.8rem;
    font-style: italic;
}

/* --- Обо мне (About) --- */
.about {
    padding: 2rem 5% 8rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-image {
    width: 100%;
    height: 650px;
    background: linear-gradient(135deg, #F5F5F0 0%, #E8E8E3 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1.2rem;
}

    .about-image::after {
        content: '';
        position: absolute;
        width: 80%;
        height: 80%;
        border: 1px solid var(--accent);
        top: 10%;
        left: 10%;
        z-index: -1;
        opacity: 0.4;
    }

.about-text h2 {
    font-size: 2.8rem;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 1.8rem;
    letter-spacing: 0.1em;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.4rem;
    font-weight: 300;
    font-size: 1.2rem;
    line-height: 1.8;
}

/* --- Сеансы (Sessions) - НОВАЯ СТРУКТУРА --- */
.sessions {
    padding: 6rem 5% 8rem;
    background: var(--white);
    position: relative;
    z-index: 1;
}

.sessions-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.sessions-image {
    width: 100%;
    height: 650px;
    background: linear-gradient(135deg, #F5F5F0 0%, #E8E8E3 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1.2rem;
}

    .sessions-image::after {
        content: '';
        position: absolute;
        width: 80%;
        height: 80%;
        border: 1px solid var(--accent);
        top: 10%;
        left: 10%;
        z-index: -1;
        opacity: 0.4;
    }

.sessions-text h2 {
    font-size: 2.8rem;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.sessions-text .intro {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.session-details {
    background: rgba(245, 245, 240, 0.6);
    padding: 2rem;
    border-left: 2px solid var(--accent);
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    margin-bottom: 1.2rem;
    gap: 1rem;
}

    .detail-item:last-child {
        margin-bottom: 0;
    }

.detail-label {
    font-weight: 400;
    color: var(--text-primary);
    min-width: 140px;
}

.detail-value {
    color: var(--text-secondary);
    font-weight: 300;
}

/* --- Обучение (Training) --- */
.training {
    padding: 6rem 5% 8rem;
    background: var(--bg-color);
    position: relative;
    z-index: 1;
}

    .training h2 {
        font-size: 2.8rem;
        font-weight: 300;
        font-style: italic;
        text-align: center;
        margin-bottom: 3.5rem;
        letter-spacing: 0.1em;
    }

.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.training-card {
    padding: 2.8rem 2rem;
    border: 1px solid #E8E8E3;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    font-style: italic;
    font-weight: 300;
    background: rgba(255,255,255,0.9);
}

    .training-card:hover {
        border-color: var(--accent);
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(212, 175, 55, 0.12);
    }

    .training-card h3 {
        font-size: 1.8rem;
        font-weight: 400;
        font-style: italic;
        margin-bottom: 1rem;
        letter-spacing: 0.09em;
    }

    .training-card p {
        color: var(--text-secondary);
        font-size: 1.15rem;
        font-weight: 300;
        margin-bottom: 1.5rem;
        line-height: 1.8;
    }

    .training-card .dot-small {
        width: 4px;
        height: 4px;
        background: var(--accent);
        border-radius: 50%;
        display: inline-block;
    }

/* --- Подвал (Footer) --- */
footer {
    padding: 4rem 5%;
    text-align: center;
    border-top: 1px solid #E8E8E3;
    position: relative;
    z-index: 1;
    background: rgba(250, 250, 249, 0.98);
}

    footer .logo-small {
        font-size: 1.7rem;
        font-style: italic;
        font-weight: 300;
        letter-spacing: 0.12em;
        margin-bottom: 1rem;
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        color: var(--text-primary);
        text-decoration: none;
    }

        footer .logo-small .dot {
            width: 4px;
            height: 4px;
            background: var(--accent);
            border-radius: 50%;
            display: inline-block;
            margin: 0 6px;
            bottom: 1px;
            position: relative;
        }

    footer p {
        color: var(--text-secondary);
        font-size: 1.05rem;
        font-weight: 300;
        margin-top: 0.5rem;
        font-style: italic;
    }

.footer-tg a {
    color: var(--tg-blue);
    text-decoration: none;
}

    .footer-tg a:hover {
        text-decoration: underline;
    }

/* --- Адаптивность --- */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .about {
        grid-template-columns: 1fr;
        padding: 4rem 5% 6rem;
    }

    .about-image {
        height: 350px;
        order: -1;
        font-size: 1.1rem;
    }

    .hero {
        min-height: 88vh;
        margin-top: -1vh;
    }

    .hero-content {
        margin-top: -6vh;
    }

    .logo {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .btn {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }

    .about-text h2 {
        font-size: 2.4rem;
    }

    .about-text p {
        font-size: 1.1rem;
    }

    /* ✅ Сеансы на мобильных */
    .sessions-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sessions-image {
        height: 350px;
        order: -1;
    }

    .sessions {
        padding: 4rem 5% 6rem;
    }

    .detail-item {
        flex-direction: column;
        gap: 0.3rem;
    }

    .detail-label {
        min-width: auto;
    }

    .training h2 {
        font-size: 2.4rem;
    }

    .training-card h3 {
        font-size: 1.5rem;
    }

    .training-card p {
        font-size: 1.05rem;
    }

    .wave-container:nth-child(3),
    .wave-container:nth-child(4) {
        display: none;
    }
}

html {
    scroll-behavior: smooth;
}
