:root {
    --black: #000000;
    --white: #ffffff;
    --gray: #f4f4f4;
    --border: #e0e0e0;
}

{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.9);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span { color: #888; }

.menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.menu a {
    text-decoration: none;
    color: var(--black);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 1px;
}

.cta-button {
    background: var(--black);
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: 0.3s;
}

.cta-button:hover {
    background: #333;
}

/* Hero */
.hero {
    padding: 20px 0;
    text-align: left;
}

h1 {
    font-size: 80px;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -2px;
    margin-bottom: 30px;
}

.hero-subline {
    font-size: 24px;
    max-width: 900px;
    color: #666;
}

/* Sections */
.section {
    padding: 30px 0;
}

.bg-black {
    background: var(--black);
    color: var(--white);
}

h2 {
    font-size: 35px;
    font-weight: 900;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.white-text { color: var(--white); }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px;
}

.card {
    border: 1px solid #333;
    padding: 20px;
    transition: 0.4s;
    color: var(--white);
    text-decoration: none;
}

.card a {
    color: var(--white);
    text-decoration: none;
}

.card:hover {
    background: #222;
}

.card h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-grid7 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
}

.gal-item {
    background: var(--gray);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.gal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.5s;
}

.gal-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.gallery-grid1 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

.gal-item1 {
    background: var(--gray);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.gal-item1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0%);
    transition: 0s;
}

.gal-item1:hover img {
    filter: grayscale(0%);
    transform: scale(1);
}

.specs {
    margin-top: 30px;
    list-style: none;
    font-weight: 700;
}

/* Footer */
.footer {
    padding: 50px 0;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
}

.footer-grid h3 {
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-grid a {
    color: var(--black);
    text-decoration: none;
}

.copyright {
    margin-top: 50px;
    font-size: 12px;
    color: #999;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 2.5s ease-out;
}

/* Mobile */
@media (max-width: 768px) {
    h1 { font-size: 60px; letter-spacing: -2px; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .menu { display: none; }
}

/* --- Раздел FAQ --- */

#faq-section {
    margin: 40px 0; /* Отступы сверху и снизу */
    padding: 0 15px; /* Небольшие отступы по бокам, если нужно */
}

#faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em; /* Или ваш стандартный размер заголовка */
    color: #333; /* Цвет заголовка */
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd; /* Легкая рамка вокруг каждого вопроса */
    border-radius: 8px;
    background-color: #f9f9f9; /* Светлый фон для блока */
}

.faq-question {
    background-color: transparent;
    border: none;
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex; /* Используем flex для выравнивания текста и иконки */
    justify-content: space-between; /* Размещаем иконку справа */
    align-items: center;
    transition: color 0.3s ease; /* Плавное изменение цвета при наведении */
}

.faq-question:hover {
    color: #e84a5f; /* Цвет при наведении, например, акцентный цвет вашего сайта */
}

/* Иконка для сворачивания/разворачивания */
.faq-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #e84a5f; /* Цвет иконки */
    border-radius: 50%; /* Делаем ее круглой */
    position: relative;
    margin-left: 15px; /* Отступ от текста */
    transition: transform 0.3s ease; /* Плавное вращение */
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: white; /* Цвет палочек */
    transition: background-color 0.3s ease;
}

/* Горизонтальная палочка */
.faq-icon::before {
    top: 7px;
    left: 3px;
    width: 10px;
    height: 2px;
}

/* Вертикальная палочка (для раскрытия) */
.faq-icon::after {
    top: 3px;
    left: 7px;
    width: 2px;
    height: 10px;
}

/* Стиль кнопки, когда она раскрыта (aria-expanded="true") */
.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg); /* Поворачиваем крестик */
}

.faq-question[aria-expanded="true"] {
    color: #e84a5f; /* Цвет текста при раскрытии */
}

/* Ответ */
.faq-answer {
    padding: 0 20px 20px 20px; /* Отступы внутри блока ответа */
    font-size: 1em;
    color: #555; /* Цвет текста ответа */
    line-height: 1.6;
    border-top: 1px solid #eee; /* Разделитель между вопросом и ответом */
    background-color: #fff; /* Фон для раскрытого блока */
    border-bottom-left-radius: 8px; /* Скругление внизу */
    border-bottom-right-radius: 8px;
}

.faq-answer p {
    margin-bottom: 15px;
}

.faq-answer ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.faq-answer li {
    margin-bottom: 8px;
}

/* Скрытый блок по умолчанию */
.faq-answer {
    display: none;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    #faq-section h2 {
        font-size: 1.8em;
    }
    .faq-question {
        font-size: 1em;
        padding: 12px 15px;
    }
    .faq-answer {
        padding: 0 15px 15px 15px;
        font-size: 0.95em;
    }
    .faq-icon {
        width: 14px;
        height: 14px;
        margin-left: 10px;
    }
    .faq-icon::before { top: 6px; left: 3px; width: 8px; height: 2px; }
    .faq-icon::after { top: 2px; left: 6px; width: 2px; height: 10px; }
    .faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
}

/* --- Плавающая кнопка мессенджера --- */

.floating-messenger-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Анимация появления всей кнопки при загрузке страницы */
    animation: slideInUp 1s ease-out;
}

.floating-messenger-button a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #28A745;
    color: white;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    /* Постоянная анимация покачивания (раз в 5 секунд) */
    animation: wiggle 5s infinite;
}

/* Эффект пульсации (расходящиеся круги) */
.pulse-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: #28A745;
    border-radius: 50%;
    z-index: 1;
    animation: pulse-animation 2s infinite;
}

.floating-messenger-button a:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #218838;
}

.floating-messenger-button .messenger-icon {
    width: 32px;
    height: 32px;
}

/* --- АНИМАЦИИ --- */

/* Анимация пульсирующего круга */
@keyframes pulse-animation {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Анимация легкого покачивания, чтобы привлечь внимание */
@keyframes wiggle {
    0%, 90%, 100% { transform: rotate(0); }
    92% { transform: rotate(-10deg); }
    94% { transform: rotate(10deg); }
    96% { transform: rotate(-10deg); }
    98% { transform: rotate(10deg); }
}

/* Анимация выезда снизу при загрузке */
@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Адаптация для смартфонов */
@media (max-width: 768px) {
    .floating-messenger-button {
        bottom: 20px;
        right: 20px;
    }
    .floating-messenger-button a, .pulse-ring {
        width: 50px;
        height: 50px;
    }
    .floating-messenger-button .messenger-icon {
        width: 26px;
        height: 26px;
    }
}

/* Стили для миниатюр на странице */
.zoom-img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.zoom-img:hover {
    transform: scale(1.03); /* Легкий эффект при наведении */
}

/* Фон модального окна (затемнение) */
.modal-overlay {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Глубокое затемнение */
    backdrop-filter: blur(5px); /* Эффект размытия фона */
    cursor: zoom-out;
    animation: fadeIn 0.3s ease;
}

/* Само увеличенное изображение */
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%; /* Ограничение 90% по ширине */
    max-height: 90%; /* Ограничение 90% по высоте */
    position: relative;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    border: 10px solid white; /* Элегантная белая рамка */
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border-radius: 4px;
    animation: zoomEffect 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Кнопка закрытия (крестик) */
.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 60px;
    font-weight: 200;
    cursor: pointer;
    line-height: 1;
}

/* АНИМАЦИИ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomEffect {
    from { transform: translateY(-50%) scale(0.5); opacity: 0; }
    to { transform: translateY(-50%) scale(1); opacity: 1; }
}

/* Оптимизация для мобильных устройств */
@media (max-width: 768px) {
    .modal-content {
        max-width: 80%; /* На телефонах лучше делать чуть шире */
        max-height: 70%;
        border-width: 5px; /* Рамка поменьше */
    }
    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 50px;
    }
}

/* Общий контейнер магазина -------------------------- */
.shop-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.shop-header {
    text-align: center;
    margin-bottom: 50px;
}

.shop-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.shop-header p {
    color: #777;
    font-style: italic;
}

/* Сетка товаров */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Авто-подбор колонок */
    gap: 30px;
}

/* Карточка товара */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Фото товара */
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Чтобы фото не искажалось */
    border-bottom: 1px solid #eee;
}

/* Инфо блок */
.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    color: #222;
}

.product-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Футер карточки (цена и кнопка) */
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.price {
    font-weight: 700;
    font-size: 1.2rem;
    color: #28A745;
}

.price del {
    font-size: 0.9rem;
    color: #aaa;
    margin-right: 5px;
}

/* Кнопка купить */
.buy-btn {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.buy-btn:hover {
    background-color: #28A745;
}

/* Бейджики (New/Sale) */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #28A745;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
}

.product-badge.sale {
    background: #d9534f;
}

/* Инфо о доставке */
.shop-delivery-info {
    margin-top: 50px;
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    color: #555;
}

/* Состояние проданного товара */
.product-card.sold-out {
    opacity: 0.8; /* Делаем карточку чуть прозрачной */
}

/* Накладываем серый фильтр на фото */
.product-card.sold-out img {
    filter: grayscale(100%); /* Полностью ч/б фото */
    opacity: 0.6; /* Еще больше прозрачности для фото */
}

/* Стиль для бейджика "Продано" */
.product-badge.sold {
    background: #777 !important; /* Серый цвет вместо зеленого */
}

/* Изменяем кнопку для проданного товара */
.product-card.sold-out .buy-btn {
    background-color: #999; /* Серая кнопка */
    cursor: default;
    pointer-events: none; /* Делаем кнопку некликбельной */
}

/* Мобильная адаптация */
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr; /* Одна колонка на малых экранах */
    }
    
    .shop-header h1 {
        font-size: 1.8rem;
    }
}
