/* --- Глобальные настройки --- */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    background-color: #faf7f5; /* Нежный оттенок фона */
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Шапка сайта (Header) --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: #fff;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap; /* Разрешаем перенос элементов на узких экранах */
    gap: 10px;
}

.logo img {
    height: 80px; 
    width: auto;
    display: block;
}

.menu-links {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    gap: 10px; /* Используем gap вместо margin у ссылок для лучшей гибкости */
}

.menu-links a {
    text-decoration: none;
    color: #4a4a4a;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    white-space: nowrap; /* Запрещаем тексту пунктов меню переноситься на новую строчку */
}

.menu-links a:hover {
    color: #d87093;
}

/* --- Адаптация шапки для мобильных телефонов --- */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column; /* Выстраиваем лого, меню и кнопку вертикально */
        padding: 15px 10px;
    }

    .logo img {
        height: 55px; /* Уменьшаем логотип на смартфонах, чтобы не занимал много места */
    }

    .menu-links {
        flex-direction: row; /* Ссылки оставляем в строчку, если помещаются, либо делаем justify-content: center */
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 15px;
    }

    .menu-links a {
        font-size: 12px; /* Чуть уменьшаем шрифт для компактности */
        letter-spacing: 0.5px;
    }

    .btn-primary {
        padding: 10px 18px; /* Немного уменьшаем кнопку на мобильных */
        font-size: 12px;
    }
}

/* --- Кнопка --- */
.btn-primary {
    background-color: #d87093;
    color: white !important;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

/* --- Герой-блок (Hero Section) --- */
.hero-banner {
    background-color: #faf7f5; 
    background-size: cover; 
    background-repeat: no-repeat;
    background-position: center;
    height: 450px;
    width: 90%;
    margin: 40px auto;
    border-radius: 25px;
    display: flex;
    align-items: center;
    padding-left: 80px;
}

.hero-content h1 {
    color: #ffffff;
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-section-new {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
    gap: 40px;
}

.hero-text-side {
    flex: 1;
    padding-right: 20px;
}

.hero-image-side {
    flex: 1;
    height: 450px;
}

.hero-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 25px;
}

/* --- Страница "Обо мне" --- */
.about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.about-text h1 {
    margin-top: 0;
}

.about-text h3 {
    color: #d87093;
    margin-top: 30px;
}

.about-text ul {
    list-style-type: none;
    padding: 0;
}

.about-text ul li::before {
    content: "•";
    color: #d87093;
    font-weight: bold;
    margin-right: 10px;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.about-photo img {
    margin-top: 0;
    display: block;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    object-fit: cover;
    height: 450px;
}

@media (max-width: 768px) {
    .about-wrapper { grid-template-columns: 1fr; }
    .about-photo img { height: auto; }
}

/* --- Галерея работ --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

/* --- Модальное окно --- */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 10000; /* Увеличиваем приоритет до 10000, чтобы перекрыть слайдер Swiper */
    isolation: isolate; /* Изолируем слой модального окна, чтобы слайдеры не просвечивали */
}

.modal-content {
    background: #fff;
    margin: 15% auto;
    padding: 30px;
    width: 300px;
    text-align: center;
    border-radius: 12px;
    position: relative; 
    z-index: 10001; /* Содержимое окна держим выше его собственной тени/фона */
}

.close-btn { float: right; cursor: pointer; font-size: 24px; }

.contact-links a {
    display: block;
    margin: 15px 0;
    padding: 12px;
    background: #d87093;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

.contacts-wrapper {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 30px;
}

.contacts-info {
    padding: 30px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #f4ecec;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.social-links a {
    display: block;
    padding: 12px 20px;
    background: #faf7f5;
    color: #d87093;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: 0.3s;
    border: 1px solid #efe5e5;
}

.social-links a:hover {
    background: #d87093;
    color: white;
}

@media (max-width: 768px) {
    .contacts-wrapper { grid-template-columns: 1fr; }
}

.contacts-map {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.btn-cta {
    display: inline-block;
    padding: 12px 25px;
    background: #d87093;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-cta:hover {
    background: #b55a78;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(216, 112, 147, 0.3);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

/* Приветственный блок лендинга */
.hero-landing {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 25px;
    margin-bottom: 40px;
}

/* Блок слайдера */
.works-slider {
    width: 100%;
    padding: 30px 0 50px 0;
    text-align: center;
    overflow: hidden;
    margin: 0 auto;
}

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

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.swiper-slide {
    flex-shrink: 0;
    width: 350px !important;
    height: 450px !important;
    border-radius: 20px;
    overflow: hidden;
    transition: 0.4s;
    opacity: 0.5;
    transform: scale(0.9);
}

.swiper-slide-active {
    opacity: 1 !important;
    transform: scale(1) !important;
    z-index: 10;
}

/* --- ВИДЕО БЛОК: Безопасное растягивание --- */
.video-cta-safe {
    width: 100%;
    height: 50vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 50px 0;
}

.video-cta-safe .bg-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

.video-cta-safe .video-overlay {
    position: absolute;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.video-cta-safe .content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
}

/* --- Сетка для карточек отзывов --- */
.reviewsSwiper .swiper-slide {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.reviewsSwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

/* --- Сетка для карточек процедур (чистая и безопасная) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0;
    margin: 0 auto;
    max-width: 1000px;
}

/* Сама карточка */
.service-card {
    display: block;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #f0e4e4;
    border-radius: 16px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* Эффект при наведении */
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(216, 112, 147, 0.2);
    border-color: #d87093;
    background-color: #fffafb;
}

.service-card h3 {
    margin-top: 0;
    color: #d87093;
}

.price {
    font-weight: bold;
    margin-top: 20px;
    font-size: 1.1em;
    color: #333;
}

/* --- Сетка категорий услуг (Плитка с фоном и градиентом) --- */
.services-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-size: cover;
    background-position: center;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(216, 112, 147, 0.3);
}

.category-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(216, 112, 147, 0.2) 80%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.category-info {
    position: relative;
    z-index: 2;
    padding: 25px;
    width: 100%;
}

.category-info h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.category-info p {
    margin: 0;
    font-size: 13px;
    color: #f0f0f0;
    line-height: 1.4;
    font-weight: 300;
}

/* --- Страница деталей конкретной услуги --- */
.service-details-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr; /* Делаем правую часть с картинкой шире левой */
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.service-text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #222;
}

.service-text-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

.service-image-container {
    width: 100%;
}

.wide-service-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px; /* Скругление углов в стиле сайта */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); /* Легкая тень для объема */
}

@media (max-width: 768px) {
    .service-details-grid {
        grid-template-columns: 1fr; /* На мобильных ставим текст и картинку друг под друга */
        gap: 25px;
    }
}

/* Компактный размер только для страницы эстетики */
.service-image-container.esthetics-compact {
    max-width: 380px; /* Уменьшаем ширину контейнера */
    margin: 0 auto;
    width: 100%;
}
