html { overflow-x: hidden; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: #0a0a0a; color: #e0e0e0; line-height: 1.6; overflow-x: hidden; width: 100%; max-width: 100%; }
img { max-width: 100%; }
h1, h2, h3, .section-title { font-family: 'Cinzel', serif; font-weight: 700; color: #F4E4A5; }
.gold { color: #D4AF37; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ФОНАРИК */
.flashlight { pointer-events: none; position: fixed; top: 0; left: 0; width: 700px; height: 700px; margin: -350px 0 0 -350px; z-index: 9999; background: radial-gradient(circle closest-side, rgba(212, 175, 55, 0.14) 0%, rgba(212, 175, 55, 0.04) 45%, transparent 100%); transform: translate3d(-2000px, -2000px, 0); will-change: transform; }

/* ШАПКА */
.hero { padding: 150px 0; text-align: center; background: radial-gradient(circle at 50% 0%, #2a2418 0%, #151515 50%, #0a0a0a 100%); border-bottom: 1px solid #2a2418; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: 20%; left: 50%; transform: translateX(-50%); width: min(600px, 100%); height: 300px; background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%); filter: blur(50px); pointer-events: none; }
.hero-content { position: relative; z-index: 10; }
.logo-title { font-family: 'Cinzel', serif; font-size: 56px; font-weight: 900; letter-spacing: 10px; margin-bottom: 30px; text-transform: uppercase; background: linear-gradient(to bottom, #FFF8D6 0%, #D4AF37 50%, #8B6914 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5)); }
.hero h1 { font-size: 40px; margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 18px; color: #a0a0a0; max-width: 600px; margin: 0 auto 40px; }
.hero-buttons { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }

/* КНОПКИ */
.btn-gold { display: inline-block; background: linear-gradient(180deg, #fae491 0%, #e4c155 50%, #c09832 100%); color: #0f0c05; text-decoration: none; padding: 15px 40px; border-radius: 10px; font-weight: 600; font-size: 18px; box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); transition: all 0.3s; border: none; cursor: pointer; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(212, 175, 55, 0.6); }
.btn-outline { display: inline-block; background: transparent; color: #F4E4A5; text-decoration: none; padding: 15px 40px; border-radius: 10px; font-weight: 600; font-size: 18px; border: 2px solid #D4AF37; transition: all 0.3s; cursor: pointer; }
.btn-outline:hover { background: rgba(212, 175, 55, 0.1); transform: translateY(-2px); }

/* СЕКЦИИ */
section { padding: 80px 0; }
.section-title { text-align: center; font-size: 36px; margin-bottom: 40px; }

/* КАК РАБОТАЕТ */
.how-it-works { background-color: #111118; }
.steps { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.step { flex: 1; min-width: 250px; max-width: 350px; text-align: center; background: #1a1a22; padding: 40px 20px; border-radius: 15px; border: 1px solid #2a2418; }
.step-icon { font-size: 48px; margin-bottom: 20px; }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: #888; }

/* 🎯 ПОИСК И КАСТОМНЫЙ ДРОПДАУН (ПАНЕЛЬ) */
.filters-wrapper { 
    display: flex; justify-content: center; align-items: flex-start; gap: 20px; 
    margin-bottom: 50px; flex-wrap: wrap; max-width: 900px; margin-left: auto; margin-right: auto;
    position: relative; z-index: 50;
}

/* Кастомный выпадающий список */
.custom-select { position: relative; width: 320px; flex-shrink: 0; }
.select-btn { 
    width: 100%; padding: 16px 25px; border-radius: 50px; 
    background: linear-gradient(180deg, #15151d 0%, #0a0a0f 100%); 
    border: 1px solid rgba(212, 175, 55, 0.3); color: #F4E4A5; 
    font-size: 15px; font-family: 'Inter', sans-serif; font-weight: 300; 
    letter-spacing: 0.5px; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    transition: all 0.4s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}
.select-btn:hover, .custom-select.active .select-btn { border-color: #D4AF37; box-shadow: 0 4px 25px rgba(212, 175, 55, 0.2); }
.select-btn .chevron { transition: transform 0.3s ease; }
.custom-select.active .select-btn .chevron { transform: rotate(180deg); }

/* 🎯 БОЛЬШАЯ ПАНЕЛЬ В 3 КОЛОНКИ */
.select-menu {
    position: absolute; top: calc(100% + 10px); left: 0; 
    width: 900px; /* Сделали шире (было 600px) */
    background: #111118; border: 1px solid #D4AF37; border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.95); padding: 20px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s ease; z-index: 100;
    max-height: 400px; overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки (было 2) */
    gap: 10px;
}

.custom-select.active .select-menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* Скроллбар */
.select-menu::-webkit-scrollbar { width: 6px; }
.select-menu::-webkit-scrollbar-track { background: #1a1a22; border-radius: 3px; }
.select-menu::-webkit-scrollbar-thumb { background: #D4AF37; border-radius: 3px; }

/* Элементы списка */
.select-option {
    padding: 12px 20px; border-radius: 10px; cursor: pointer;
    color: #ccc; font-size: 14px; font-family: 'Inter', sans-serif;
    transition: all 0.2s; border: 1px solid transparent;
}
.select-option:hover { background: rgba(212, 175, 55, 0.15); color: #F4E4A5; border-color: rgba(212, 175, 55, 0.3); }
.select-option.selected { background: #D4AF37; color: #0f0c05; font-weight: 600; }

/* Поиск */
.search-box { position: relative; width: 450px; flex-shrink: 0; }
.search-box .search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; opacity: 0.7; }
.search-box input { 
    width: 100%; padding: 16px 20px 16px 55px; border-radius: 50px; 
    background: linear-gradient(180deg, #15151d 0%, #0a0a0f 100%);
    border: 1px solid rgba(212, 175, 55, 0.3); color: #F4E4A5; 
    font-size: 15px; font-family: 'Inter', sans-serif; font-weight: 300; 
    letter-spacing: 0.5px; outline: none; transition: all 0.4s ease; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}
.search-box input:focus { border-color: #D4AF37; box-shadow: 0 4px 25px rgba(212, 175, 55, 0.2); }
.search-box input::placeholder { color: #777; font-weight: 300; }

/* ГАЛЕРЕЯ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product-card { background: #1a1a22; border-radius: 15px; border: 1px solid #2a2418; overflow: hidden; transition: transform 0.3s, border-color 0.3s; cursor: pointer; display: flex; flex-direction: column; width: 100%; }
.product-card:hover { transform: translateY(-5px); border-color: #D4AF37; box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1); }
.product-image-wrapper { position: relative; width: 100%; aspect-ratio: 4 / 5; background: #0a0a0a; overflow: hidden; }
.product-image-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform 0.3s; }
.product-card:hover .product-image-wrapper img { transform: scale(1.05); }
.product-info { padding: 15px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.product-info h3 { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 14px; line-height: 1.3; margin-bottom: 8px; color: #F4E4A5; }
.product-size { font-size: 12px; color: #888; margin-bottom: 10px; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 16px; font-weight: 700; color: #D4AF37; }

/* ПАГИНАЦИЯ */
.pagination-container { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 50px; }
.page-btn { background: transparent; color: #D4AF37; border: 1px solid #2a2418; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s; font-family: 'Inter', sans-serif; }
.page-btn:hover { border-color: #D4AF37; background: rgba(212, 175, 55, 0.1); }
.page-btn.active { background: #D4AF37; color: #0f0c05; border-color: #D4AF37; font-weight: 700; box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); }

/* ЦЕНЫ, ОТЗЫВЫ, ПОДВАЛ */
.pricing { background-color: #111118; }
.price-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.price-card { background: #1a1a22; padding: 30px 50px; border-radius: 15px; border: 1px solid #2a2418; text-align: center; min-width: 200px; }
.price { font-family: 'Cinzel', serif; font-size: 28px; color: #D4AF37; margin-top: 10px; }
.delivery { text-align: center; margin-top: 30px; color: #888; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.review-card { background: #1a1a22; padding: 30px; border-radius: 15px; border: 1px solid #2a2418; }
.stars { color: #D4AF37; font-size: 20px; margin-bottom: 15px; }
.review-card p { font-style: italic; color: #ccc; margin-bottom: 15px; }
.review-card span { color: #D4AF37; font-weight: 600; }
footer { padding: 80px 0; text-align: center; background: linear-gradient(0deg, #1a1a1a 0%, #0a0a0a 100%); border-top: 1px solid #2a2418; }
footer h2 { font-size: 32px; margin-bottom: 10px; }
footer p { color: #888; margin-bottom: 30px; }
.copyright { margin-top: 60px; font-size: 14px; color: #444; }

/* МОДАЛЬНОЕ ОКНО */
.modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.92); align-items: center; justify-content: center; }
body.modal-open { overflow: hidden; }
.modal.active { display: flex; }
.modal-content { background: #111118; border: 1px solid #D4AF37; border-radius: 20px; width: 90%; max-width: 850px; position: relative; box-shadow: 0 0 50px rgba(212, 175, 55, 0.2); animation: scaleIn 0.3s ease; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
@keyframes scaleIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.close-modal { position: absolute; top: 15px; right: 20px; color: #D4AF37; font-size: 30px; cursor: pointer; z-index: 10; }
.modal-body { display: flex; gap: 30px; padding: 30px 0 0 30px; flex: 1; min-height: 0; overflow: hidden; }
.modal-image-container { width: 45%; flex-shrink: 0; overflow-y: auto; padding-bottom: 30px; }
.modal-body img { width: 100%; height: auto; object-fit: contain; border-radius: 10px; border: 1px solid #2a2418; }
.modal-details { flex: 1; display: flex; flex-direction: column; min-height: 0; padding-right: 30px; }
.modal-article { font-size: 14px; color: #D4AF37; font-family: 'Inter', sans-serif; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 5px; opacity: 0.8; font-weight: 300; }
.modal-details h2 { font-size: 28px; margin-bottom: 10px; }
.desc-wrapper { position: relative; margin-bottom: 15px; overflow-y: auto; flex: 1; padding-right: 10px; }
.desc-wrapper::-webkit-scrollbar { width: 6px; }
.desc-wrapper::-webkit-scrollbar-track { background: #1a1a22; border-radius: 3px; }
.desc-wrapper::-webkit-scrollbar-thumb { background: #D4AF37; border-radius: 3px; }
.modal-desc { max-height: 100px; overflow: hidden; position: relative; transition: max-height 0.4s ease; line-height: 1.5; color: #888; font-size: 13px; }
.modal-desc:not(.expanded)::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 50px; background: linear-gradient(to bottom, transparent 0%, #111118 100%); pointer-events: none; }
.modal-desc.expanded { max-height: 2000px; }
.read-more-btn { background: transparent; border: none; color: #D4AF37; font-weight: 600; font-size: 13px; cursor: pointer; padding: 5px 0; font-family: 'Inter', sans-serif; transition: color 0.2s; display: block; margin-top: 5px; }
.read-more-btn:hover { color: #F4E4A5; }
.modal-subtitle { color: #ccc; margin-bottom: 10px; font-size: 14px; }
.size-selector { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.size-option { background: #1a1a22; border: 1px solid #2a2418; padding: 12px 20px; border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between; transition: all 0.2s; }
.size-option:hover { border-color: #D4AF37; }
.size-option.selected { background: rgba(212, 175, 55, 0.1); border-color: #D4AF37; }
.size-option .size-label { font-weight: 600; color: #F4E4A5; }
.size-option .size-price { color: #D4AF37; font-weight: bold; }
.modal-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #2a2418; padding: 15px 0; background: #111118; z-index: 10; }
#modal-price { font-size: 32px; font-family: 'Cinzel', serif; font-weight: 700; color: #D4AF37; }

@media (max-width: 768px) {
    .modal-body { flex-direction: column; padding: 20px 20px 0 20px; gap: 15px; }
    .modal-image-container { width: 100%; max-height: 250px; }
    .modal-details { padding-right: 0; }
    .modal-desc { max-height: 80px; }
    .hero-buttons { flex-direction: column; }
    .logo-title { font-size: 32px; letter-spacing: 5px; }
    .hero h1 { font-size: 28px; }
    .filters-wrapper { flex-direction: column; align-items: stretch; }
    .search-box, .custom-select { width: 100%; }
    .select-menu { width: 100%; grid-template-columns: 1fr; } /* На телефонах 1 колонка */
}

/* 🎯 МОБИЛЬНАЯ ВЕРСИЯ: сетка как на ПК — по 2 карточки в ряд */
@media (max-width: 768px) {
    .container { padding: 0 14px; }

    /* Галерея в 2 колонки */
    .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .product-card { border-radius: 12px; }
    .product-card:hover { transform: none; box-shadow: none; }
    .product-card:hover .product-image-wrapper img { transform: none; }
    .product-info { padding: 10px; }
    .product-info h3 { font-size: 12px; line-height: 1.25; margin-bottom: 5px; }
    .product-size { font-size: 11px; margin-bottom: 6px; }
    .product-price { font-size: 13px; }

    /* Отступы секций — компактнее */
    section { padding: 45px 0; }
    /* Шапка: название доминирует, тексты ниже — мельче */
    .hero { padding: 46px 0 54px; }
    .logo-title { font-size: 30px; letter-spacing: 3px; margin-bottom: 18px; }
    .hero h1 { font-size: 17px; line-height: 1.3; margin-bottom: 12px; font-weight: 600; }
    .hero p { font-size: 12.5px; line-height: 1.45; margin-bottom: 24px; }
    .section-title { font-size: 24px; margin-bottom: 26px; }

    .btn-gold, .btn-outline { padding: 13px 26px; font-size: 16px; }
    .hero-buttons { gap: 12px; }

    /* Карточки цен — по 2 в ряд */
    .price-grid { gap: 12px; }
    .price-card { padding: 18px 16px; min-width: 0; flex: 1 1 40%; }
    .price-card h3 { font-size: 15px; }
    .price { font-size: 22px; }

    /* Шаги «как это работает» — 3 в ряд, как на ПК */
    .steps { flex-wrap: nowrap; gap: 8px; }
    .step { flex: 1 1 0; min-width: 0; max-width: none; padding: 16px 8px; border-radius: 12px; }
    .step h3 { font-size: 12px; line-height: 1.25; margin-bottom: 6px; }
    .step p { font-size: 11px; line-height: 1.35; }
    .step-icon { font-size: 26px; margin-bottom: 8px; }

    /* Отзывы — карусель свайпом, по 2 отзыва в кадре */
    .review-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 6px; }
    .review-grid::-webkit-scrollbar { display: none; }
    .review-card { flex: 0 0 calc(50% - 6px); scroll-snap-align: start; padding: 16px; }
    .review-card p { font-size: 13px; line-height: 1.45; margin-bottom: 10px; }
    .review-card span { font-size: 13px; }
    .stars { font-size: 16px; margin-bottom: 10px; }
    footer { padding: 50px 0; }
    footer h2 { font-size: 24px; }
    .copyright { margin-top: 36px; }

    /* Пагинация — крупнее для пальца */
    .pagination-container { gap: 6px; margin-top: 30px; }
    .page-btn { width: 38px; height: 38px; font-size: 14px; }

    /* Модальное окно: картинка целиком, без внутреннего ползунка */
    .modal-content { max-height: 92vh; }
    .modal-body { padding: 14px 14px 0 14px; gap: 10px; }
    .modal-image-container {
        width: 100%; max-height: 34vh; overflow: hidden;
        padding-bottom: 0; display: flex; align-items: center; justify-content: center;
    }
    .modal-body img {
        width: auto; height: auto; max-width: 100%; max-height: 34vh; object-fit: contain;
    }
    .modal-details { overflow-y: auto; padding-right: 0; }
    .modal-details h2 { font-size: 17px; margin-bottom: 8px; }
    .modal-article { font-size: 12px; letter-spacing: 1px; }
    .modal-desc { max-height: 72px; font-size: 12.5px; }
    .size-option { padding: 10px 14px; font-size: 14px; }

    /* Цена и кнопка «Заказать в Telegram» — строго в одну строку */
    .modal-footer { gap: 8px; flex-wrap: nowrap; padding: 12px 0; }
    #modal-price { font-size: 20px; white-space: nowrap; flex-shrink: 0; }
    #modal-buy-btn { white-space: nowrap; padding: 11px 14px; font-size: 13px; flex-shrink: 0; }
}