/* --- 1. Глобальные переменные и сброс --- */
html {
    scroll-behavior: smooth; /* Это делает прокрутку плавной */
    scroll-padding-top: 100px; /* Чтобы шапка не перекрывала заголовок при переходе */
}

/* --- Стили секции О нас --- */
.about-section {
    display: block;
    clear: both;
    margin-top: 80px;      /* Отступ снаружи */
    padding: 100px 20px;   /* Отступ внутри */
    position: relative;
    z-index: 10;
    background-color: var(--bg-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 20px 20px 0px var(--beige-light); /* Декоративная рамка сдвигом */
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.stat strong {
    display: block;
    font-size: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
}

.stat span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Стили контактов */
/* Отлепляем секцию контактов от секции "О нас" */
.contact-section {
    margin-top: 100px; /* Добавляем большой отступ сверху */
    padding: 100px 20px;
    text-align: center;
    background: var(--beige-light);
    position: relative;
}

/* Можно добавить декоративную тонкую линию между секциями */
.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px; /* Короткая стильная линия */
    height: 1px;
    background-color: var(--accent-color);
    opacity: 0.2;
}

.contact-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-family: 'Cormorant Garamond', serif;
}

.contact-section p {
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-muted);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.contact-links a {
    text-decoration: none;
    color: var(--accent-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    padding: 10px 20px;
    font-weight: 500;
    border: 1px solid rgba(0,0,0,0.1); /* Легкая рамка вокруг кнопок связи */
    word-break: break-all;
}

.contact-links a:hover {
    background-color: var(--accent-color);
    color: #fff;
}

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

:root {
    --bg-color: #fcfaf7;
    --accent-color: #2c2c2c;
    --text-muted: #8d8d8d;
    --beige-light: #f4f1ee;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    background-color: var(--bg-color);
    font-family: 'Montserrat', sans-serif;
    color: var(--accent-color);
    line-height: 1.6;
}

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

h1, h2, h3, .logo {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

/* --- 2. Шапка и Hero --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Эффект матового стекла */
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--accent-color);
}

.logo span {
    font-weight: 300;
    color: var(--text-muted);
}
#main-nav {
    display: flex;
    gap: 30px;
}

#main-nav a {
    text-decoration: none;
    color: var(--accent-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

#main-nav a:hover {
    color: var(--text-muted);
}
.header-controls {
    display: flex;
    align-items: center;
    gap: 25px;
}

.icon-btn {
    text-decoration: none;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: 0.3s;
    position: relative;
}

.icon-btn i {
    font-size: 1.1rem;
}

.icon-btn:hover {
    opacity: 0.7;
}

/* Счетчик корзины */
.cart-icon {
    position: relative;
}

.cart-count {
    background: var(--accent-color);
    color: #fff;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: absolute;
    top: -8px;
    right: -10px;
    font-family: 'Montserrat', sans-serif;
}

/* Кнопка меню для мобилок (пока скроем на десктопе) */
.menu-toggle {
    display: none;
    font-size: 1.2rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    #main-nav { display: none; } /* Скрываем меню на мобилках */
    .menu-toggle { display: block; }
    .user-login span { display: none; } /* На мобилках оставляем только иконку человечка */
}
.hero-banner {
    position: relative;
    width: 100%;
    height: 80vh;
    background: url('../images/startbanner2-3.jpg') center/cover fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; color: #fff; text-align: center; width: 100%; }

.hero-section {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; /* Скрыты */
    transition: opacity 1.5s ease-in-out; /* Плавная смена */
    z-index: 1;
}

.hero-slide.active {
    opacity: 1; /* Виден только активный */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10; /* Текст всегда сверху */
}

/* --- 3. Карусель Галереи --- */
.carousel-viewport {
    overflow: hidden;
    width: 100%;
    margin-top: 50px;
}

.art-grid {
    display: flex; /* Только flex для карусели! Никакого grid */
    gap: 30px;
    transition: transform 0.5s ease-in-out;
    padding: 40px 0;
    cursor: grab; /* Курсор "рука" */
    user-select: none; /* Запрещаем выделение текста при перетаскивании */
}

.art-card {
    min-width: calc(33.333% - 20px);
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #f0f0f0;
    transition: var(--transition);
}

.art-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.03); }

.art-image {
    width: 100%;
    height: 400px;
    background-color: var(--beige-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.art-image img { max-width: 90%; max-height: 90%; object-fit: contain; }

/* --- 4. Инфо-блок и Кнопки --- */
.art-info { padding: 20px; }

.art-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--accent-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.spacer { flex-grow: 1; }

.action-btn:hover { color: #000; transform: scale(1.1); }
.like-btn:hover i { color: #e74c3c; font-weight: 900; }

.art-details h3 { font-size: 1.3rem; margin-bottom: 4px; }
.category { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; }
.price { font-weight: 500; margin-top: 10px; }

.carousel-controls { display: flex; justify-content: center; gap: 20px; padding-bottom: 50px; }
.carousel-controls button {
    background: var(--accent-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .art-card { min-width: 100%; }
    .hero-banner { height: 60vh; }
    .hero-banner h1 { font-size: 2.2rem; }
}


.art-grid.active {
    cursor: grabbing; /* Курсор "сжатый кулак" при захвате */
}

.art-card img {
    /* Меняем none на auto, чтобы работал клик лайтбокса */
    pointer-events: auto; 
    cursor: zoom-in;
    max-width: 90%; 
    max-height: 90%; 
    object-fit: contain;
}
.lightbox {
    display: none; /* Скрыт по умолчанию */
    position: fixed;
    z-index: 2500; /* Поднимаем выше всех */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0; /* Для плавной анимации */
    transition: opacity 0.3s ease;
    pointer-events: none; /* Чтобы не мешал, когда скрыт */
}

/* Это критически важный селектор! */
.lightbox.active {
    display: flex; /* Показываем */
    opacity: 1;    /* Делаем видимым */
    pointer-events: auto; /* Включаем клики назад */
}

.lightbox-content {
    max-width: 85%;
    max-height: 80%;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    transform: scale(0.8); /* Начальное состояние для анимации */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1); /* Плавный "вылет" картинки */
}
/* --- Стили Футера --- */
.main-footer {
    background-color: #fff;
    padding: 80px 0 30px;
    border-top: 1px solid #eee;
    color: var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Первая колонка шире */
    gap: 60px;
    margin-bottom: 60px;
}

.footer-column h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: var(--accent-color);
}

.footer-about {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 300px;
    margin: 20px 0;
}

/* Ссылки и списки */
.footer-links, .footer-info {
    list-style: none;
}

.footer-links li, .footer-info li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px; /* Небольшой сдвиг при наведении */
}

.footer-info i {
    color: var(--text-muted);
    width: 18px;
}

/* Соцсети */
.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 35px;
    height: 35px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--accent-color);
    text-decoration: none;
    transition: 0.3s;
}

.footer-social a:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* Нижняя плашка */
.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #f9f9f9;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .footer-about {
        margin: 20px auto;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-bottom .container {
        flex-direction: column;
        gap: 10px;
    }
}
/* --- Стили Секции Подписки --- */
.newsletter {
    background-color: var(--beige-light); /* Используем наш бежевый из :root */
    padding: 80px 0;
    margin-top: 50px;
}

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

.newsletter-text h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-family: 'Cormorant Garamond', serif;
}

.newsletter-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Форма */
.newsletter-form {
    display: flex;
    width: 100%;
    max-width: 500px;
    border-bottom: 1px solid var(--accent-color); /* Линия вместо рамки вокруг инпута */
    padding-bottom: 5px;
}

.newsletter-form input {
    flex-grow: 1;
    background: transparent;
    border: none;
    padding: 12px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    outline: none;
    color: var(--accent-color);
}

.newsletter-form button {
    background: transparent;
    border: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0 20px;
    transition: 0.3s;
}

.newsletter-form button:hover {
    opacity: 0.6;
}

/* Адаптация под мобильные устройства */
@media (max-width: 992px) {
    .newsletter-wrap {
        flex-direction: column;
        text-align: center;
    }
    .newsletter-form {
        margin: 0 auto;
    }
}
/* Оверлей (затемнение фона) */
.cart-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2900;
    display: none;
    backdrop-filter: blur(4px);
}

/* Сама панель */
.cart-drawer {
    position: fixed;
    top: 0; right: -450px; /* Спрятана за экраном */
    width: 400px;
    height: 100%;
    background: #fff;
    z-index: 3000;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    padding: 40px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
}

.cart-drawer.open { right: 0; }
.cart-overlay.open { display: block; }

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
}

/* Стиль карточки товара в корзине */
.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 15px;
}

.cart-item img { width: 70px; height: 70px; object-fit: cover; }

.cart-item-info h4 { font-size: 0.9rem; margin-bottom: 5px; }
.cart-item-info p { font-size: 0.85rem; color: var(--text-muted); }

.remove-item {
    background: none; border: none;
    cursor: pointer; color: #ff4d4d; font-size: 0.8rem;
}

.cart-footer { border-top: 1px solid #eee; padding-top: 20px; }
.cart-total {
    display: flex; justify-content: space-between;
    font-size: 1.2rem; margin-bottom: 20px;
    font-family: 'Cormorant Garamond', serif;
}

.checkout-btn {
    width: 100%; background: var(--accent-color); color: #fff;
    border: none; padding: 15px; cursor: pointer;
    text-transform: uppercase; letter-spacing: 2px;
}
/* --- ГЛАВНЫЙ БАННЕР-СЛАЙДЕР --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 70vh; /* На весь экран */
    overflow: hidden;
    background-color: #000; /* Фон пока грузятся фото */
    margin-bottom: 80px;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Общие стили для слайда */
.slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0; /* Изначально скрыт */
    transition: opacity 1.2s ease-in-out; /* Плавное появление */
    display: flex;
    align-items: center; /* Центрирование контента по вертикали */
    z-index: 1;
}

/* Затемнение фона для читаемости текста */
.slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2); /* 40% затемнения */
    z-index: 2;
}

/* Активный слайд */
.slide.active {
    opacity: 1;
    z-index: 10;
}

/* --- КОНТЕНТ ВНУТРИ СЛАЙДА --- */
.hero-content {
    position: relative;
    z-index: 20; /* Поверх затемнения */
    color: #fff;
    max-width: 650px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out 0.5s; /* Задержка появления текста */
}

.slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.8);
    font-family: 'Montserrat', sans-serif;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: rgba(255,255,255,0.9);
}

/* Кнопка на баннере */
.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #fff;
    color: #000;
}

/* --- НАВИГАЦИЯ (Точки) --- */
.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 100;
}

.dot {
    width: 10px; height: 10px;
    border: 1px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background-color: #fff;
}

/* Адаптация */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content { text-align: center; padding: 0 20px; }
}
.contact-link .email-text {
    transition: all 0.3s ease;
    font-weight: 500;
}

.copy-email {
    cursor: copy; /* Меняем курсор на иконку копирования */
    position: relative;
}

/* Опционально: подсказка при наведении */
.copy-email:hover::after {
    content: 'Нажмите, чтобы скопировать';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    background: #333;
    color: #fff;
    padding: 4px 8px;
    white-space: nowrap;
    border-radius: 2px;
}
/* --- СТИЛИ ПРОМО-БЛОКА --- */
.master-classes {
    padding: 100px 0;
    background-color: #fff; /* Белый фон для контраста с бежевым */
    overflow: hidden;
}

.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Ровно пополам */
    gap: 80px;
    align-items: center;
}

.promo-grid-reverse {
    /* Меняем направление: вторая колонка станет первой */
    direction: ltr; 
}

/* Если хочешь поменять местами именно через Grid (самый надежный способ) */
.promo-grid-reverse .promo-content {
    order: 2; /* Текст уходит вправо */
}

.promo-grid-reverse .promo-image {
    order: 1; /* Фото уходит влево */
}

/* Декоративная рамка для левого фото (сдвигаем её в другую сторону) */
.promo-grid-reverse .promo-image::before {
    left: -20px; /* Сдвиг влево для симметрии */
}

/* Настройка отступов для текста справа */
.promo-grid-reverse .promo-content {
    padding-right: 0;
    padding-left: 20px;
}
.second-promo {
    background-color: var(--bg-color); /* Сделаем чуть другой фон, чтобы они не сливались */
    padding-top: 0; /* Уменьшим отступ, если они идут друг за другом */
}

.promo-content{
    padding-right: 20px;
}

/* Общие стили для подзаголовков в промо-блоке */
.promo-content .promo-subtitle,
.promo-content .promo-subtitle1,
.promo-content .promo-subtitle2 {
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;         /* Уменьшили, чтобы текст читался */
    font-size: 1.2rem;           /* Адекватный размер для подзаголовка */
    line-height: 1.2;            /* Нормальный интервал */
    color: var(--accent-color);
    margin-top: 25px;            /* Отступ сверху от предыдущего блока */
    margin-bottom: 8px;          /* Маленький отступ до описания под ним */
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
}

/* Обязательно добавь это, чтобы на телефонах текст не вылезал за края */
@media (max-width: 768px) {
    .promo-subtitle {
        font-size: 2.5rem;      /* Уменьшаем размер для мобильных */
    }
}
@media (max-width: 768px) {
    .promo-subtitle1 {
        font-size: 2.5rem;      /* Уменьшаем размер для мобильных */
    }
}
@media (max-width: 768px) {
    .promo-subtitle2 {
        font-size: 2.5rem;      /* Уменьшаем размер для мобильных */
    }
}
/* Обнуляем верхний отступ для самого первого заголовка */
.promo-content .promo-subtitle:first-of-type {
    margin-top: 0;
}

.promo-content h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-top: 5px;    /* Притягиваем h2 к гигантским буквам */
    margin-bottom: 20px;
    font-family: 'Cormorant Garamond', serif;
}
.promo-content p:not([class]) {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 0;           /* Убираем лишние дыры */
}


/* Стили кнопки для этого блока (темная) */
.btn-primary-dark {
    display: inline-block;
    margin-top: 50px;
    padding: 18px 40px;
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: var(--transition);
    border: 1px solid var(--accent-color);
}

.btn-primary-dark:hover {
    background-color: transparent;
    color: var(--accent-color);
}

/* Стили изображения */
.promo-image {
    position: relative;
}

.promo-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

/* Декоративный элемент за фото (квадрат) */
.promo-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent-color);
    top: 20px;
    left: 20px;
    z-index: -1;
}

/* Адаптация для мобильных устройств */
@media (max-width: 992px) {
    .promo-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .promo-content {
        padding-right: 0;
        order: 2; /* Текст будет под фото на мобилках */
    }
    
    .promo-image {
        order: 1;
    }

    .promo-image img {
        height: 400px;
    }
}
/* --- СТИЛИ БЛОКА УСЛУГ --- */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Три равные колонки */
    gap: 30px;
}

.service-card {
    background: #fff;
    border: 1px solid #eee;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.service-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: 'Cormorant Garamond', serif;
}

.service-info p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1; /* Чтобы кнопки всегда были на одном уровне */
}

/* Кнопка бронирования */
.book-btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.book-btn:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Адаптация */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* Две колонки на планшетах */
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr; /* Одна колонка на мобильных */
    }
}
/* --- СТИЛИ ИНФО-БЛОКА (БЕЗ КНОПОК) --- */
.info-section {
    padding: 100px 0;
    background-color: #fff; /* Белый фон, чтобы отделиться от бежевого блока услуг */
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px; /* Увеличиваем зазор для "воздуха" */
}

.info-card {
    display: flex;
    flex-direction: column;
    text-align: left; /* Текст по левому краю для строгости */
}

.info-image {
    width: 100%;
    height: 350px; /* Делаем фото чуть выше, чем в блоке с услугами */
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: 2px;
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.5s ease;
}

/* Эффект при наведении: фото становится чуть более насыщенным или контрастным */
.info-card:hover .info-image img {
    filter: brightness(1.05);
}

.info-content h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    color: var(--accent-color);
}

.info-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* Адаптация */
@media (max-width: 992px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 650px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    .info-image {
        height: 400px; /* На мобильных фото можно сделать еще крупнее */
    }
}
/* --- КАРТОЧКА КАРТИНЫ --- */
.art-card {
    position: relative;
    background: #fff;
    border: 1px solid #f0f0f0;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.4s ease;
    overflow: hidden; /* Чтобы иконки выезжали "из ниоткуда" */
}

.art-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* ИКОНКИ СБОКУ (Лайк и корзина) */
.card-overlay {
    position: absolute;
    top: 20px;
    right: -60px; /* Спрятаны за правым краем */
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Плавный выезд с "отскоком" */
    z-index: 10;
}

.art-card:hover .card-overlay {
    right: 20px; /* Выезжают на позицию */
    opacity: 1;
}

.like-btn, .add-to-cart-btn {
    background: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    color: var(--accent-color);
}

.like-btn:hover { color: #e74c3c; transform: scale(1.15); }
.add-to-cart-btn:hover { background: var(--accent-color); color: #fff; transform: scale(1.15); }

/* --- ПЛАВНОСТЬ КАРУСЕЛИ --- */
.art-grid {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    will-change: transform; /* Оставляем для оптимизации */
    /* transition: 0.8s ... <--- УДАЛИТЕ ОТСЮДА, если есть */
}
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
}

.nav-btn {
    background: white;
    border: 1px solid #e0e0e0;
    color: var(--accent-color);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
    font-size: 1rem;
}

.nav-btn:hover:not(:disabled) {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-btn i {
    transition: transform 0.3s ease;
}

.nav-btn.prev:hover i { transform: translateX(-3px); }
.nav-btn.next:hover i { transform: translateX(3px); }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20; /* Поверх всего */
}

.dot {
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Слайды должны иметь transition для плавности */
.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}
/* ВСТАВИТЬ В САМЫЙ КОНЕЦ ФАЙЛА */

@media (max-width: 768px) {
    /* 1. Исправляем сетку контактов */
    .contact-section .contact-links {
        display: flex !important;
        flex-direction: column !important; /* Строго в колонку */
        align-items: center !important;
        gap: 15px !important;
        width: 100%;
    }

    /* 2. Делаем кнопки одинаковыми и красивыми */
    .contact-section .contact-links a {
        width: 100%;
        max-width: 320px; /* Чтобы не были на весь экран */
        justify-content: center;
        text-align: center;
        word-break: normal; /* ОТМЕНЯЕМ разрыв слов для обычного текста */
        padding: 15px;
    }

    /* 3. Разрешаем разрыв только для email-текста внутри */
    .contact-section .contact-links a .email-text {
        word-break: break-all; 
        font-size: 0.9rem;
    }

    /* 4. Убираем возможные конфликты с другими секциями */
    .contact-section {
        padding: 60px 20px !important;
        margin-top: 50px !important;
    }
/* Стили для самого навигационного меню на мобилке */
    #main-nav {
        display: none; /* Изначально скрыто */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Прямо под шапкой */
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        padding: 20px;
        border-bottom: 1px solid #eee;
        z-index: 999;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }

    /* Когда меню активно (добавлено через JS) */
    #main-nav.active {
        display: flex;
    }

    #main-nav a {
        padding: 15px 0;
        border-bottom: 1px solid #f9f9f9;
        width: 100%;
        text-align: center;
    }

    /* Анимация иконки бургера (опционально) */
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px;
    }

}