:root {
    --primary-color: #D4AF37;
    --bg-light: #FDFBF9;
    --text-dark: #333333;
    --text-gray: #777777;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    margin-bottom: 50px;
    text-align: center;
}

/* Navigation */
/* --- ФИНАЛЬНАЯ НАВИГАЦИЯ: Лого слева, Меню центр, Кнопка справа --- */

.nav {
    background: linear-gradient(135deg, #ffffff 0%, #faeddb 100%); 
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(212, 163, 115, 0.15);
    border-bottom: 2px solid var(--primary-color);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Расталкивает лого и кнопку по краям */
    position: relative; /* База для центровки меню */
}

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 24px; 
    text-decoration: none;
    color: var(--text-dark);
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 10;
    flex: 1; /* Занимает левую часть */
}

.logo span {
    color: var(--primary-color);
}

/* МЕНЮ: СТРОГО ПО ЦЕНТРУ ЭКРАНА */
/* --- СТАБИЛЬНАЯ НАВИГАЦИЯ: CSS GRID --- */

.nav {
    background: linear-gradient(135deg, #ffffff 0%, #faeddb 100%); 
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(212, 163, 115, 0.15);
    border-bottom: 2px solid var(--primary-color);
}

.nav-row {
    display: grid; 
    /* Создаем 3 колонки: боковые гибкие (1fr), центральная по размеру контента (auto) */
    grid-template-columns: 1fr auto 1fr; 
    align-items: center;
    justify-items: stretch;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 24px; 
    text-decoration: none;
    color: var(--text-dark);
    letter-spacing: 1px;
    text-transform: uppercase;
    justify-self: start; /* Прижимаем логотип к левому краю своей колонки */
    transition: var(--transition);
}

.logo span {
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
    justify-self: center; /* Ставим меню строго по центру своей колонки */
    margin: 0;
    padding: 0;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-list a:hover {
    color: var(--primary-color);
}

.nav-list a:hover::after {
    width: 100%;
}

.btn-nav {
    background: var(--primary-color);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(212, 163, 115, 0.3);
    transition: all 0.3s ease;
    justify-self: end; /* Прижимаем кнопку к правому краю своей колонки */
    text-align: center;
}

.btn-nav:hover {
    background: #bc8a5f;
    transform: translateY(-2px);
}

/* Адаптация для мобильных */
@media (max-width: 992px) {
    .nav-row {
        display: flex; /* На мобильных переключаемся на обычный flex */
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .nav-list {
        justify-content: center;
    }
    .logo, .btn-nav {
        justify-self: center;
        text-align: center;
    }
}


/* Адаптация для мобильных устройств */
@media (max-width: 992px) {
    .nav-row {
        flex-direction: column;
        gap: 15px;
    }
    .nav-list {
        position: static; /* Возвращаем в обычный поток */
        transform: none;
        left: auto;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}



/* Hero */
.hero {
    min-height: 100vh;
    background:
        linear-gradient(rgba(255,255,255,0.55), rgba(255,255,255,0.55)),
        url('./images/combs-scissors-copy-space.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 120px 0 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.btn-main {
    display: inline-block;
    background: var(--text-dark);
    color: #fff;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    transition: 0.3s ease;
}

.btn-main:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* About */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about__wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.about__text p {
    color: var(--text-gray);
    margin-bottom: 16px;
    max-width: 560px;
}

.about__image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Services */
.services {
    padding: 100px 0;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-img {
    height: 250px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-gray);
    font-size: 15px;
}

/* Advantages */
.advantages {
    padding: 40px 0 100px;
    background: var(--bg-light);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.advantage-card {
    background: #fff;
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-8px);
}

.advantage-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    margin-bottom: 12px;
}

.advantage-card p {
    color: var(--text-gray);
    font-size: 15px;
}

/* Booking */
.booking {
    padding: 100px 0;
    background-color: #fcf9f7;
    text-align: center;
}

.booking-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    outline: none;
    background: #fff;
    color: var(--text-dark);
}

.booking-form textarea {
    min-height: 120px;
    resize: vertical;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-submit:hover {
    background: var(--text-dark);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    background: var(--text-dark);
    color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
    .about__wrapper {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        position: static;
        background: rgba(253, 251, 249, 0.95);
        backdrop-filter: blur(8px);
    }

    .nav-row {
        flex-direction: column;
    }

    .nav-list {
        justify-content: center;
        gap: 16px;
    }

    .hero {
        min-height: 100svh;
        padding: 90px 0 70px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title {
        font-size: 34px;
        margin-bottom: 30px;
    }

    .services,
    .about,
    .advantages,
    .booking {
        padding: 70px 0;
    }

    .services-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .booking-wrapper {
        padding: 24px;
        border-radius: 20px;
    }

    .input-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo {
        font-size: 22px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .btn-main,
    .btn-nav,
    .btn-submit {
        width: 100%;
    }

    .nav-list {
        gap: 12px;
    }

    .service-img {
        height: 210px;
    }
}

.consent {
    display: flex;
    flex-direction: column; /* Теперь элементы идут друг под другом */
    gap: 15px;
    font-size: 14px;
    color: var(--text-gray);
    text-align: left;
}

.consent__check {
    display: flex;
    align-items: center; /* Центрируем галочку по вертикали с текстом */
    gap: 10px;
    cursor: pointer;
}

.consent__check input {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.consent__text {
    line-height: 1.4;
    opacity: 0.8; /* Делаем юридический текст чуть менее ярким, чтобы не отвлекал */
}


.consent input {
    margin-top: 4px;
    flex-shrink: 0;
}

.link-btn {
    border: none;
    background: none;
    padding: 0;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.is-open {
    display: flex;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal__content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    width: calc(100% - 32px);
    background: #fff;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal__content h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 16px;
}

.modal__content p {
    color: var(--text-gray);
}

.modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: none;
    background: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-dark);
}


.modal {
    position: fixed;
    inset: 0;
    display: flex; /* Всегда flex */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0; /* Скрыто */
    visibility: hidden; /* Недоступно для кликов */
    transition: all 0.3s ease;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

/* Исправление для мобильной версии модальных окон */
@media (max-width: 768px) {
    .modal {
        /* Меняем центрирование, чтобы окно не обрезалось сверху при большом размере */
        align-items: flex-start; 
        padding-top: 40px; /* Отступ сверху, чтобы окно не прилипало к краю */
        overflow-y: auto; /* Позволяет скроллить само окно, если оно всё же слишком длинное */
    }

    .modal__content {
        width: calc(100% - 32px); /* Оставляем небольшие отступы по бокам */
        padding: 24px;            /* Немного уменьшаем внутренние отступы для экономии места */
        
        /* ГЛАВНОЕ: ограничиваем высоту окна */
        max-height: 85vh;         /* Окно не будет занимать больше 85% высоты экрана */
        overflow-y: auto;         /* Если текста много — внутри окна появляется прокрутка */
        
        /* Чтобы скругление углов выглядело лучше на мобилках */
        border-radius: 16px; 
    }

    .modal__close {
        top: 10px;
        right: 12px;
        font-size: 28px; /* Чуть уменьшаем крестик */
    }
}
/* --- СТИЛИ ДЛЯ БЛОКА ЦЕНЫ --- */
/* --- ИДЕАЛЬНО ВЫРОВНЕННЫЙ БЛОК ЦЕНЫ --- */
.prices {
    background-color: #fff;
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.price-category {
    background: #fdfbf9;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--accent-color);
    transition: var(--transition);
}

.price-category:hover {
    box-shadow: 0 10px 30px rgba(212, 163, 115, 0.1);
    transform: translateY(-5px);
}

.price-category h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 1.4rem; /* Чуть уменьшили заголовок */
}

.price-item {
    display: flex;
    align-items: baseline; /* Выравнивание по нижней линии текста */
    margin-bottom: 12px;
    font-size: 14px; /* Уменьшили шрифт для аккуратности */
    color: var(--text-dark);
}

/* Название услуги */
.price-item span:first-child {
    flex-shrink: 0; /* Запрещаем сжиматься названию */
    padding-right: 8px;
    line-height: 1.4;
}

/* МАГИЯ ПУНКТИРНОЙ ЛИНИИ */
.price-item::after {
    content: "";
    flex: 1; /* Линия забирает всё свободное место */
    border-bottom: 1px dotted #ccc; /* Четкий пунктир */
    margin: 0 8px;
    position: relative;
    top: -4px; /* Поднимаем линию чуть выше, чтобы она была по центру текста */
    order: 2;
}

/* Цена */
.price-value {
    order: 3;
    font-weight: 600;
    white-space: nowrap; /* Цена никогда не переносится */
    flex-shrink: 0;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .prices-grid {
        grid-template-columns: 1fr;
    }
    .price-category {
        padding: 20px;
    }
}

/* --- СТИЛИ ДЛЯ БЛОКА ОТЗЫВОВ --- */
.reviews {
    background: var(--accent-color);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    text-align: center;
}

.review-stars {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
}

.review-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: px;
    line-height: 1.6;
}

.review-author {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .prices-grid, .reviews-grid {
        grid-template-columns: 1fr;
    }
}
/* --- МОБИЛЬНАЯ НАВИГАЦИЯ --- */

/* Скрываем мобильную версию кнопки внутри списка на ПК */
.mobile-only {
    display: none;
}

/* Скрываем кнопку-бургер на ПК */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1100;
}

.burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
    border-radius: 3px;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 992px) {
    .desktop-only {
        display: none; /* Скрываем кнопку Записаться справа */
    }

    .mobile-only {
        display: block; /* Показываем кнопку внутри меню */
        margin-top: 20px;
    }

    .nav-row {
        display: flex; 
        justify-content: space-between; 
        align-items: center;
    }

    .burger {
        display: flex; /* Показываем бургер */
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%; /* Прячем меню за правым краем экрана */
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1050;
    }

    .nav-list.active {
        right: 0; /* Выдвигаем меню при клике */
    }

    /* Анимация бургера в крестик */
    .burger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    .burger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Дополнительные правки для других блоков на мобилках */
    .hero h1 {
        font-size: 2rem;
    }
    .about__wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about__image img {
        box-shadow: 10px 10px 0 var(--accent-color);
    }
}

/* Стили для заблокированной кнопки */
.btn-submit:disabled {
    background-color: #ccc !important; /* Серый цвет */
    color: #888 !important;
    cursor: not-allowed; /* Курсор в виде перечеркнутого круга */
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.7;
}

