/* --- Базовые переменные и стили --- */
:root {
    --color-primary: #79745a;
    /* Темный хаки */
    --color-primary-dark: #625e48;
    --color-background: #f5f1e6;
    /* Темный бело-бежевый */
    --color-surface: #faf8f5;
    --color-text: #1e1e1c;
    --color-text-light: #4a4943;
    --color-accent: #c29d29;
    /* Темное золото */

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 4px 6px rgba(44, 56, 46, 0.05);
    --shadow-md: 0 8px 15px rgba(44, 56, 46, 0.08);
    --shadow-lg: 0 15px 30px rgba(44, 56, 46, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
}

p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title span {
    font-style: italic;
    color: var(--color-primary);
}

.bg-light {
    background-color: #f3f1eb;
}

.text-center {
    text-align: center;
}

/* --- Кнопки --- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-text {
    background-color: transparent;
    color: var(--color-text);
    padding: 14px 0;
    position: relative;
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--color-text);
    transition: var(--transition);
}

.btn-text:hover::after {
    width: 100%;
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- Хедер и Навигация --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(250, 249, 245, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.header.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Logo text is now solid color */

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link:not(.btn):hover {
    color: var(--color-primary);
}

/* Бургер меню */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition);
}

/* --- Главный экран (Hero) --- */
.hero {
    position: relative;
    padding-top: 150px;
    padding-bottom: 100px;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 500px;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-image-placeholder {
    flex: 0 1 300px;
    height: 350px;
    background-color: #e8e3da;
    border-radius: 20px 100px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

.placeholder-content {
    text-align: center;
    color: var(--color-primary-dark);
    font-size: 0.9rem;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
}

.hero-shape {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 50vw;
    height: 50vw;
    background-color: rgba(121, 116, 90, 0.08);
    border-radius: 50%;
    z-index: 1;
}

/* --- О нас --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image-placeholder {
    flex: 1;
    height: 500px;
    background-color: #e8e3da;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--color-primary);
}

.about-text {
    flex: 1;
}

.features-list {
    margin-top: 30px;
}

.features-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.feature-icon {
    font-size: 1.5rem;
    background-color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

/* --- Занятия --- */
.section-header {
    margin-bottom: 60px;
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.class-card {
    background: var(--color-surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.class-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.card-image-placeholder {
    height: 250px;
    background-color: #e8e3da;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
    font-size: 0.9rem;
    border-bottom: 1px dashed var(--color-primary);
}

.class-card-content {
    padding: 30px;
}

.class-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* --- Контакты и Карта --- */
.contact-container {
    display: flex;
    gap: 50px;
}

.location-info {
    flex: 1.2;
}

.address-card {
    background: var(--color-surface);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.address-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.address-item:last-child {
    margin-bottom: 0;
}

.address-item h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 2px;
}

.address-item p,
.address-item a {
    font-weight: 500;
    color: var(--color-text);
}

.map-placeholder {
    width: 100%;
    height: 350px;
    background-color: #e8e3da;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px dashed var(--color-primary);
}

.map-link-demo {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.8rem;
    text-decoration: underline;
    color: var(--color-text);
}

.booking-form-wrapper {
    flex: 1;
}

.form-card {
    background: var(--color-surface);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fcfcfc;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(121, 116, 90, 0.1);
}

.form-success {
    text-align: center;
    padding: 30px 20px;
    animation: fadeIn 0.5s ease;
}

.hidden {
    display: none;
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

/* --- Футер --- */
.footer {
    background-color: var(--color-text);
    color: white;
    padding: 60px 0 30px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* Footer logo text is now solid color */

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-placeholder:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

/* --- Адаптивность --- */
@media (max-width: 992px) {

    .hero-container,
    .about-container,
    .contact-container {
        flex-direction: column;
    }

    .hero-image-placeholder {
        width: 100%;
        max-width: 300px;
        height: 300px;
        order: -1;
        border-radius: 20px;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .about-image-placeholder {
        width: 100%;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-background);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    /* Анимация бургера */
    .burger-menu.active .burger-line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .burger-menu.active .burger-line:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active .burger-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .section-title {
        font-size: 2rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}