/* Theme Name: ShampoKot Final 7.0 (Main Styles) */

/* 1. ПОДКЛЮЧЕНИЕ ЛОКАЛЬНЫХ ШРИФТОВ (v32) */
/* Убедитесь, что файлы лежат в assets/fonts/ */

@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    src: local('Nunito Regular'), local('Nunito-Regular'),
         url('../fonts/nunito-v32-cyrillic_latin-regular.woff2') format('woff2'), 
         url('../fonts/nunito-v32-cyrillic_latin-regular.woff') format('woff'); 
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 700;
    src: local('Nunito Bold'), local('Nunito-Bold'),
         url('../fonts/nunito-v32-cyrillic_latin-700.woff2') format('woff2'), 
         url('../fonts/nunito-v32-cyrillic_latin-700.woff') format('woff'); 
    font-display: swap;
}

@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 900;
    src: local('Nunito Black'), local('Nunito-Black'),
         url('../fonts/nunito-v32-cyrillic_latin-900.woff2') format('woff2'), 
         url('../fonts/nunito-v32-cyrillic_latin-900.woff') format('woff'); 
    font-display: swap;
}

/* --- ОСНОВНЫЕ СТИЛИ --- */
* { box-sizing: border-box; }
body, h1, p, h2, h3 { margin: 0; padding: 0; }
body { font-family: 'Nunito', sans-serif; color: #333; overflow-x: hidden; background-color: #fff; }
a { text-decoration: none; transition: 0.3s; }

/* ФОНОВЫЕ ПУЗЫРИ */
.chaos-bubbles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.chaos-bubbles span { position: absolute; border-radius: 50%; background: #ffeebb; opacity: 0.8; }
.chaos-bubbles span:nth-child(odd) { width: 100px; height: 100px; top: 10%; left: 5%; }
.chaos-bubbles span:nth-child(even) { width: 60px; height: 60px; top: 40%; left: 80%; background: #fff4dd; }

/* КОНТЕЙНЕРЫ */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }
.section-transparent { padding: 40px 0; background: transparent; }

/* --- ВОЛНЫ НА ЗАДНЕМ ПЛАНЕ (С АНИМАЦИЕЙ) --- */
.section-with-wave { position: relative; padding: 60px 0; background: transparent; overflow: hidden; }

.wave-bg {
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    height: 100%;
    z-index: -1; /* Уходит за контент */
    pointer-events: none;
}

.wave-bg svg {
    width: 100%;
    height: 100%;
    opacity: 0.5;
    fill: none;
    stroke: #ff9f43;
    stroke-width: 3;
    animation: wave-sway 8s ease-in-out infinite alternate;
}

@keyframes wave-sway {
    0% { transform: translateX(0) scaleY(1); }
    100% { transform: translateX(-30px) scaleY(1.1); }
}

/* ЗАГОЛОВКИ */
.service-header { text-align: center; margin-bottom: 30px; }
.service-header h2 { font-size: 2rem; color: #ff9f43; text-transform: uppercase; font-weight: 900; margin-bottom: 10px; line-height: 1.1; text-shadow: 2px 2px 0px #fff; }
.service-desc p { font-size: 1.1rem; line-height: 1.6; color: #444; margin: 0 auto; max-width: 800px; background: rgba(255,255,255,0.8); padding: 5px 15px; border-radius: 15px; display: inline-block; }

/* --- ШАПКА (HERO) --- */
.hero-section { 
    position: relative; 
    width: 100%; 
    min-height: auto; 
    background-color: #ff9f43; 
    padding-top: 40px; 
    padding-bottom: 100px; 
    display: flex; 
    align-items: center; 
}
.hero-bottom-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: auto;
    line-height: 0;
    z-index: 1;
}
.hero-bottom-wave svg { width: 100%; height: 80px; display: block; fill: #fff; }

.hero-content-wrapper { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; }
.hero-text { width: 55%; color: #ffffff; text-align: left; padding-right: 20px; }
.hero-text h1 { font-size: 2.2rem; line-height: 1.2; font-weight: 900; text-transform: uppercase; margin-bottom: 15px; text-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.hero-text p { font-size: 1.1rem; font-weight: 600; opacity: 0.95; line-height: 1.5; }
.hero-image { width: 40%; display: flex; justify-content: center; }
.hero-image img { max-width: 100%; height: auto; max-height: 200px; filter: drop-shadow(0 10px 20px rgba(255, 159, 67, 0.4)); }

/* --- МЕНЮ --- */
.menu-section { margin-top: -70px; margin-bottom: 40px; position: relative; z-index: 10; }
.main-menu { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.menu-item { background: white; padding: 12px 30px; border-radius: 50px; color: #ff9f43; font-weight: 900; text-transform: uppercase; font-size: 0.85rem; box-shadow: 0 10px 20px rgba(0,0,0,0.1); border: 2px solid transparent; }
.menu-item:hover { transform: translateY(-3px); background: #fff4dd; color: #e67e22; box-shadow: 0 15px 25px rgba(255, 159, 67, 0.3); }

/* --- УСЛУГИ И ГАЛЕРЕИ --- */
.service-layout { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.service-section:nth-of-type(even) .service-layout { flex-direction: row-reverse; }
.service-text-col { flex: 0 0 35%; text-align: left; }
.service-gallery-col { flex: 1; min-width: 0; }
.btn-cta { display: inline-block; background: #ff9f43; color: white; padding: 10px 25px; border-radius: 50px; font-weight: 800; box-shadow: 0 5px 15px rgba(255, 159, 67, 0.3); }
.btn-cta:hover { transform: translateY(-2px); background: #e67e22; }

.gallery-wrapper { position: relative; display: flex; align-items: center; }
.compact-gallery { display: flex; gap: 15px; overflow-x: auto; padding: 10px 5px; scrollbar-width: none; scroll-behavior: smooth; width: 100%; }
.compact-gallery::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 auto; width: 200px; height: 200px; border-radius: 15px; overflow: hidden; cursor: pointer; background: white; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: transform 0.3s; }
.gallery-item:hover { transform: translateY(-5px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { background: #ff9f43; color: white; border: none; width: 35px; height: 35px; border-radius: 50%; font-weight: bold; cursor: pointer; z-index: 5; flex-shrink: 0; box-shadow: 0 3px 10px rgba(0,0,0,0.1); }

/* --- ВИДЕО --- */
.video-card { flex: 0 0 auto; width: 300px; border-radius: 15px; overflow: hidden; background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.1); margin-bottom: 10px; cursor: pointer; }
.video-poster { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #eee; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 50px; height: 50px; background: rgba(255, 159, 67, 0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; }
.play-btn svg { width: 20px; height: 20px; margin-left: 3px; }
.video-title { padding: 15px; font-weight: 700; font-size: 0.95rem; text-align: center; color: #333; }
.no-preview-bg { width: 100%; height: 100%; background: linear-gradient(135deg, #2c3e50, #4ca1af); }

/* --- ДОСТАВКА (На главной) --- */
.delivery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 30px; }
.del-card { background: rgba(255,255,255,0.9); padding: 20px; border-radius: 15px; border: 2px solid #ff9f43; text-align: center; transition: 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.del-card:hover { transform: translateY(-5px); background: #fff; box-shadow: 0 10px 25px rgba(255, 159, 67, 0.2); }
.del-title { font-weight: 900; color: #333; font-size: 1.1rem; margin-bottom: 5px; text-transform: uppercase; }
.del-time { color: #666; font-size: 0.9rem; margin-bottom: 10px; }
.del-price { display: inline-block; background: #ff9f43; color: white; padding: 4px 10px; border-radius: 5px; font-weight: bold; }

/* Кликабельные ссылки доставки */
a.del-card { text-decoration: none; display: block; color: inherit; cursor: pointer; }
a.del-card:hover { border-color: #ff9f43; transform: translateY(-5px); box-shadow: 0 10px 25px rgba(255, 159, 67, 0.2); }

/* --- ФУТЕР --- */
.site-footer { position: relative; background: #2d3436; color: white; padding: 40px 0 20px; margin-top: 40px; }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.footer-col { flex: 1; min-width: 200px; }
.footer-col h4 { color: #ff9f43; font-size: 1.1rem; margin-bottom: 15px; text-transform: uppercase; }
.footer-links a { display: block; color: #ccc; margin-bottom: 8px; font-size: 0.95rem; }
.footer-links a:hover { color: #ff9f43; padding-left: 5px; }

/* Выбор города */
.footer-city-select { position: relative; display: inline-block; }
.footer-city-btn { background: none; border: none; color: #ccc; padding: 0; font-size: 0.95rem; cursor: pointer; border-bottom: 1px dashed #777; transition: 0.3s; }
.footer-city-btn:hover, .footer-city-btn.active { color: #ff9f43; border-bottom-color: #ff9f43; }
.footer-city-dropdown { display: none; position: absolute; bottom: 120%; left: 0; background: white; width: 280px; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.4); z-index: 1000; overflow: hidden; padding-top: 10px; }
.footer-city-dropdown.show { display: block; animation: fadeInUp 0.2s ease-out; }
.city-search-wrap { padding: 0 15px 10px 15px; border-bottom: 1px solid #eee; }
.city-search-input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; outline: none; }
.city-search-input:focus { border-color: #ff9f43; }
.city-list-scroll { max-height: 250px; overflow-y: auto; }
.city-list-scroll a { display: block; color: #333; padding: 10px 15px; font-size: 14px; border-bottom: 1px solid #f9f9f9; }
.city-list-scroll a:hover { background: #fff4dd; color: #e67e22; padding-left: 20px; }
.city-list-scroll a.hidden { display: none; }

.social-links { display: flex; gap: 15px; margin-top: 10px; }
.social-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; color: white; font-weight: bold; transition: 0.3s; }
.social-btn:hover { background: #ff9f43; transform: scale(1.1); }
.social-btn.vk:hover { background: #0077FF; }
.social-btn.tg:hover { background: #229ED9; }
.social-btn.av:hover { background: #98ce00; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* МОДАЛКИ (Включая новое окно выбора города) */
.lightbox { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); justify-content: center; align-items: center; }
.lightbox-content { max-width: 90%; max-height: 90%; }
.close-btn { position: absolute; top: 20px; right: 30px; color: white; font-size: 50px; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; color: white; font-size: 50px; cursor: pointer; background: none; border: none; padding: 20px; }
.lb-nav.prev { left: 10px; } .lb-nav.next { right: 10px; }
#video-modal { background: rgba(0,0,0,0.9); }
.video-modal-content { width: 90%; max-width: 900px; aspect-ratio: 16/9; background: #000; }

/* Окно выбора города */
.city-modal-content { background: white; width: 90%; max-width: 500px; border-radius: 15px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5); padding: 20px; text-align: left; }
.city-modal-header { font-size: 1.2rem; font-weight: bold; margin-bottom: 15px; border-bottom: 2px solid #ff9f43; padding-bottom: 10px; display: flex; justify-content: space-between; }
.city-modal-close { cursor: pointer; font-size: 24px; color: #777; line-height: 1; }
.city-modal-list { max-height: 60vh; overflow-y: auto; }
.city-modal-list a { display: block; padding: 10px; color: #333; border-bottom: 1px solid #eee; font-size: 1rem; }
.city-modal-list a:hover { background: #fff4dd; color: #e67e22; padding-left: 15px; }

/* АДАПТИВ */
@media (max-width: 900px) {
    .hero-section { flex-direction: column; text-align: center; padding-bottom: 80px; min-height: auto; }
    .hero-content-wrapper { flex-direction: column; margin-top: 0; }
    .hero-text { width: 100%; padding: 0; margin-bottom: 20px; }
    .hero-text h1 { font-size: 1.8rem; }
    .hero-image { width: 80%; }
    .service-layout { flex-direction: column; gap: 20px; text-align: center; }
    .service-section:nth-of-type(even) .service-layout { flex-direction: column; } 
    .service-text-col { width: 100%; }
    .gallery-nav { display: none; }
    .compact-gallery .video-card { width: 260px; }
    .footer-content { flex-direction: column; gap: 30px; text-align: center; }
    .social-links { justify-content: center; }
    .footer-city-select { width: 100%; }
    .footer-city-dropdown { bottom: auto; top: 100%; width: 100%; background: #333; border: 1px solid #444; }
    .city-search-input { background: #444; border: 1px solid #555; color: white; }
    .city-list-scroll a { color: #ccc; border-bottom: 1px solid #444; }
    .city-list-scroll a:hover { background: #444; color: white; }
}