/* Общие настройки */
body {
    background-color: #121212;
    color: #ffffff;
    font-family: 'Cormorant Garamond', serif;
    margin: 0;
    padding: 50px 0; /* Добавляем отступы сверху и снизу */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Убираем height: 100vh и justify-content: center */
    min-height: 100vh;
}


/* Красивый заголовок */
h1 {
    font-size: 4rem;
    letter-spacing: 5px;    /* Растянем буквы для стиля */
    text-transform: uppercase;
    border-bottom: 1px solid #ffffff; /* Тонкая белая линия под названием */
    padding-bottom: 10px;
}

/* Стильная кнопка */
button {
    background: transparent;
    color: white;
    border: 1px solid white;
    padding: 15px 30px;
    font-family: inherit;
    cursor: pointer;
    transition: 0.3s; /* Чтобы плавно менялся цвет */
    margin-top: 20px;
}

/* Эффект при наведении на кнопку */
button:hover {
    background: white;
    color: black;
}

.n2 {
    font-family: 'Cormorant Garamond', serif; /* Элегантный шрифт с засечками */
    font-weight: 300;            /* Делаем буквы тонкими */
    font-style: italic;         /* Добавим легкий наклон для эстетики */
    letter-spacing: 3px;        /* Раздвинем буквы */
    font-size: 1.2rem;          /* Чуть увеличим размер */
    color: rgba(255, 255, 255, 0.8); /* Сделаем текст чуть прозрачным, чтобы он не "кричал" */
    display: block;             /* Чтобы текст вел себя как отдельный блок */
    text-align: center;
    margin-top: 10px;
}

.button-№1 {
    /* Сбрасываем стандартные настройки */
    background: transparent;
    cursor: pointer;

    /* Шрифт и текст */
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #ffffff;

    /* Рамка и отступы */
    border: 1px solid #ffffff;
    padding: 15px 40px;
    margin-top: 30px;

    /* Магия анимации */
    position: relative;
    transition: all 0.4s ease; /* Плавность при наведении */
    overflow: hidden;
}

/* Эффект при наведении */
.button-№1:hover {
    background-color: #ffffff; /* Заливаем белым */
    color: #000000;             /* Текст становится черным */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4); /* Легкое свечение */
    transform: translateY(-3px); /* Кнопка чуть «подпрыгивает» */
}

/* Эффект при нажатии */
.button-№1:active {
    transform: translateY(-1px);
}

.booking-page form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 300px;
}

.booking-page input, .booking-page select {
    background: transparent;
    border: none;
    border-bottom: 1px solid white;
    color: white;
    padding: 10px;
    font-family: 'Cormorant Garamond', serif;
    outline: none;
}

.back-link {
    color: white;
    text-decoration: none;
    margin-top: 20px;
    font-size: 0.8rem;
    opacity: 0.6;
}


/* Сетка услуг */
.services-grid {
    display: flex;
    flex-wrap: wrap; /* Если экран узкий, блоки перенесутся на новую строку */
    justify-content: center;
    gap: 40px;
    margin-top: 80px;
    max-width: 1200px; /* Чтобы сайт не растягивался слишком сильно на весь монитор */
    width: 100%;
}


.service-item {
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    width: 200px;
    transition: 0.5s;
}

.service-item:hover {
    border-color: white; /* Рамка становится ярче при наведении */
}

.service-number {
    font-size: 0.8rem;
    opacity: 0.5;
    display: block;
    margin-bottom: 10px;
}

.service-item h3 {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.5rem;
}

/* Футер */
.site-footer {
    margin-top: 100px;
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.7;
    padding-bottom: 40px;
}

.photo-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden; /* Чтобы фото не вылезало за границы */
    margin-bottom: 20px;
    filter: grayscale(100%); /* Делаем фото черно-белым */
    transition: 0.7s ease;   /* Плавность фильтра */
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Фото заполнит блок без искажений */
    transition: 1s ease;
}

/* Эффект при наведении на весь блок услуги */
.service-item:hover .photo-wrapper {
    filter: grayscale(0%); /* Фото становится цветным при наведении */
}

.service-item:hover img {
    transform: scale(1.1); /* Фото слегка увеличивается (зум) */
}



.detail-section {
    margin-top: 100px;
    width: 100%;
    max-width: 1100px;
}

.detail-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
}

/* Этот класс разворачивает блок (фото справа) */
.detail-block.reverse {
    flex-direction: row-reverse;
}

.detail-image {
    flex: 1;
    height: 500px;
    filter: grayscale(100%);
    transition: 0.8s;
}

.detail-image:hover {
    filter: grayscale(0%);
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-text {
    flex: 1;
    padding: 20px;
}

.detail-text h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.detail-text p {
    line-height: 1.8;
    opacity: 0.8;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.price {
    font-weight: 600;
    letter-spacing: 2px;
    border-bottom: 1px solid white;
    padding-bottom: 5px;
}


/* Адаптация под мобильные устройства (экраны меньше 768px) */
@media (max-width: 768px) {

    /* 1. Уменьшаем главный заголовок, чтобы он не вылезал за края */
    h1 {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }

    /* 2. Сетка услуг: выстраиваем блоки в один столбик */
    .services-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .service-item {
        width: 90%; /* Блок занимает почти всю ширину экрана */
    }

    /* 3. Большие блоки (Маникюр/Макияж): убираем шахматку */
    .detail-block, .detail-block.reverse {
        flex-direction: column; /* Всегда фото сверху, текст снизу */
        gap: 20px;
        margin-bottom: 60px;
    }

    .detail-image {
        height: 300px; /* Уменьшаем высоту фото для телефона */
        width: 100%;
    }

    .detail-text {
        text-align: center;
        padding: 10px;
    }

    .detail-text h2 {
        font-size: 1.8rem;
    }

    /* 4. Анкета: делаем форму на весь экран */
    .booking-page form {
        width: 90%;
    }
}
