/* ========================================
   ТЕНТЫ-ЛУГАНСК - PREMIUM THEME
   Версия: 2.0 (Без Google API)
   Совместимость: Bootstrap 5.3.0+
   ======================================== */

/* ========================================
   1. ПЕРЕМЕННЫЕ (Design Tokens)
   ======================================== */

:root {
    /* Основные цвета */
    --primary: #0d6efd;
    --primary-hover: #0b5ed7;
    --primary-dark: #0a58ca;
    --secondary: #6c757d;
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #0dcaf0;
    
    /* Нейтральные */
    --dark: #212529;
    --gray: #6c757d;
    --light: #f8f9fa;
    --white: #ffffff;
    --black: #000000;
    
    /* Брендовые */
    --brand-primary: #0d6efd;
    --brand-secondary: #1a1a2e;
    --brand-accent: #e94560;
    --brand-gold: #f0b429;
    
    /* Тени */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 15px 35px rgba(13, 110, 253, 0.2);
    
    /* Скругления */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Шрифты (системные, без Google) */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    /* Переходы */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ========================================
   2. БАЗОВЫЕ СТИЛИ
   ======================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    color: var(--dark);
    background: var(--light);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ========================================
   3. УТИЛИТЫ
   ======================================== */

.min-vh-75 {
    min-height: 75vh;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--brand-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-hover {
    transition: box-shadow var(--transition-base);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-hover);
}

/* ========================================
   4. ТИПОГРАФИЯ
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.8rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.lead {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--gray);
}

.display-1, .display-2, .display-3, .display-4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* ========================================
   5. КНОПКИ
   ======================================== */

.btn {
    position: relative;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all var(--transition-base);
    overflow: hidden;
    border-radius: var(--radius-md);
    padding: 0.65rem 2rem;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: width var(--transition-slow), height var(--transition-slow);
    transform: translate(-50%, -50%);
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(13, 110, 253, 0.35);
}

.btn-outline-dark {
    border-width: 2px;
}

.btn-outline-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(255, 255, 255, 0.3);
}

.btn-lg {
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
}

/* ========================================
   6. НАВИГАЦИЯ (БЕЗ КОНФЛИКТОВ)
   ======================================== */

/* ========================================
   ВЫПАДАЮЩЕЕ МЕНЮ (ПРОСТАЯ ВЕРСИЯ)
   ======================================== */

.navbar .dropdown-menu {
    background: #1a1a2e;
    border: none;
    border-radius: 12px;
    padding: 8px;
    min-width: 230px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    margin-top: 8px;
}

.navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.navbar .dropdown-item:hover {
    background: rgba(13, 110, 253, 0.15) !important;
    color: #ffffff !important;
}

.navbar .dropdown-item.active {
    background: rgba(13, 110, 253, 0.2) !important;
    color: #ffffff !important;
    font-weight: 600;
}
/* ========================================
   7. HERO СЕКЦИЯ
   ======================================== */

.hero-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(13, 110, 253, 0.05), transparent 70%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section .display-4 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
}

.hero-section .text-primary {
    color: var(--primary) !important;
}

/* ========================================
   8. КАРТОЧКИ
   ======================================== */

.card {
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--gray);
    font-size: 0.95rem;
}

.card-footer {
    background: transparent !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.5rem;
}

/* ========================================
   9. ГАЛЕРЕЯ
   ======================================== */

.gallery-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
    z-index: 10;
}

/* Модальное окно для галереи */
.modal-content.bg-transparent {
    background: transparent !important;
}

#imageModal .modal-dialog {
    cursor: pointer;
    max-width: 90vw;
}

#imageModal .modal-content {
    cursor: default;
    background: transparent !important;
}

#imageModal .modal-body {
    padding: 0;
    position: relative;
}

#imageModal .modal-body img {
    max-height: 85vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   10. КАРУСЕЛЬ
   ======================================== */

#heroCarousel {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

#heroCarousel img {
    height: 380px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* ========================================
   11. СПИСОК ПРЕИМУЩЕСТВ
   ======================================== */

.check-list {
    list-style: none;
    padding-left: 0;
}

.check-list li {
    margin-bottom: 0.8rem;
    padding: 0.5rem 0 0.5rem 2.8rem;
    position: relative;
    font-size: 1rem;
    transition: transform var(--transition-fast);
}

.check-list li:hover {
    transform: translateX(5px);
}

.check-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

/* ========================================
   12. СОЦИАЛЬНЫЕ ИКОНКИ
   ======================================== */

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    transition: all var(--transition-bounce);
    color: var(--primary);
    background: rgba(13, 110, 253, 0.08);
    text-decoration: none;
    font-size: 20px;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.05);
    background: var(--primary);
    color: var(--white) !important;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

.social-icon img {
    transition: all var(--transition-bounce);
}

.social-icon:hover img {
    filter: brightness(0) invert(1);
}

.social-links a {
    transition: all var(--transition-base);
}

.social-links a:hover {
    color: var(--primary) !important;
    transform: translateY(-2px);
}

/* ========================================
   13. БЛОК ПРЕИМУЩЕСТВ
   ======================================== */

.benefits-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0.05));
    transition: all var(--transition-base);
}

.benefits-icon i {
    font-size: 2.5rem;
    color: var(--primary);
    transition: all var(--transition-base);
}

.benefits-item:hover .benefits-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.2);
}

.benefits-item:hover .benefits-icon i {
    transform: scale(1.1);
}

/* ========================================
   14. ФУТЕР
   ======================================== */

footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

footer h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: var(--radius-full);
}

footer ul {
    padding-left: 0;
}

footer ul li {
    list-style: none;
    margin-bottom: 0.6rem;
}

footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-block;
}

footer ul li a:hover {
    color: var(--white);
    transform: translateX(5px);
}

footer .social-icon {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    width: 40px;
    height: 40px;
    font-size: 18px;
}

footer .social-icon:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

footer hr {
    border-color: rgba(255, 255, 255, 0.08);
    margin: 2rem 0;
}

footer .small {
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   15. КНОПКА "НАВЕРХ"
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-bounce);
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(13, 110, 253, 0.5);
}

.back-to-top i {
    font-size: 1.2rem;
}

/* ========================================
   16. КАРТА
   ======================================== */

.map-container {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========================================
   17. ФОРМЫ
   ======================================== */

.form-control {
    border-radius: var(--radius-md);
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all var(--transition-base);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.4rem;
}

/* ========================================
   18. АНИМАЦИИ
   ======================================== */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Задержки для анимаций */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ========================================
   19. ГОРОДА (City Selector)
   ======================================== */

.city-selector .dropdown-toggle,
.city-selector-mobile .dropdown-toggle {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
    transition: all var(--transition-base);
}

.city-selector .dropdown-toggle:hover,
.city-selector-mobile .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.city-selector .dropdown-menu,
.city-selector-mobile .dropdown-menu {
    max-height: 350px;
    overflow-y: auto;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
}

.city-selector .dropdown-item,
.city-selector-mobile .dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all var(--transition-fast);
}

.city-selector .dropdown-item:hover,
.city-selector-mobile .dropdown-item:hover {
    background: rgba(13, 110, 253, 0.15);
    color: var(--white) !important;
    transform: translateX(3px);
}

.city-selector .dropdown-item.active,
.city-selector-mobile .dropdown-item.active {
    background: var(--primary) !important;
    color: var(--white) !important;
}

/* ========================================
   20. КАСТОМНЫЕ БЛОКИ
   ======================================== */

/* Блок для городов */
.city-specific-content {
    padding: 1.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05), rgba(13, 110, 253, 0.02));
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

.city-header .city-name {
    font-weight: 700;
    color: var(--primary);
}

/* Call to Action */
/* Call to Action */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-section .btn-light {
    position: relative;
    z-index: 2;
}

/* ✅ ФИКС: Белый текст в CTA-блоке */
.cta-section h2,
.cta-section p,
.cta-section .lead {
    color: #ffffff !important;
}

.cta-section h2 {
    color: #ffffff !important;
}

/* ========================================
   21. АДАПТИВНОСТЬ
   ======================================== */

/* Планшеты и маленькие десктопы */
@media (max-width: 991px) {
    .hero-section {
        padding: 60px 0;
    }
    
    #heroCarousel img {
        height: 300px;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .gallery-img {
        height: 200px;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
        text-align: center;
    }
    
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    #heroCarousel img {
        height: 250px;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .gallery-img {
        height: 180px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
    
    .map-container {
        height: 300px;
    }
    
    footer h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .check-list li {
        padding-left: 2.5rem;
        font-size: 0.95rem;
    }
}

/* Маленькие мобильные */
@media (max-width: 576px) {
    .hero-section {
        padding: 30px 0;
    }
    
    .hero-section .display-4 {
        font-size: 1.75rem;
    }
    
    #heroCarousel img {
        height: 200px;
    }
    
    .card-img-top {
        height: 160px;
    }
    
    .gallery-img {
        height: 150px;
        border-radius: var(--radius-sm);
    }
    
    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .back-to-top {
        width: 36px;
        height: 36px;
        bottom: 15px;
        right: 15px;
    }
}

/* ========================================
   22. ПЕЧАТЬ
   ======================================== */

@media print {
    .back-to-top,
    .navbar-toggler,
    .btn {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .hero-section {
        padding: 20px 0 !important;
    }
}

/* ========================================
   23. ДОПОЛНИТЕЛЬНО: ЛОКАЛЬНЫЕ ШРИФТЫ
   ======================================== */

/* 
   Если хотите использовать кастомные шрифты без Google,
   скачайте их и подключите локально:
*/

/*
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.woff2') format('woff2'),
         url('../fonts/Roboto-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

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

/* ========================================
   24. КОНЕЦ
   ======================================== */

   /* ========================================
   ФИКС DROPDOWN ДЛЯ ВСЕХ ЭКРАНОВ
   ======================================== */

/* Базовое состояние — скрыто */
.navbar .dropdown-menu {
    display: none;
}

/* Состояние "открыто" — Bootstrap добавляет класс .show */
.navbar .dropdown-menu.show {
    display: block !important;
}

/* Для десктопа — с анимацией */
@media (min-width: 992px) {
    .navbar .dropdown-menu.show {
        animation: dropdownFade 0.25s ease;
    }
}

/* Для мобильных — без анимации */
@media (max-width: 991px) {
    .navbar .dropdown-menu.show {
        animation: none;
    }
}

.bg-primary * { color: #ffffff !important; }

/* Белый текст в CTA */
.bg-primary:not(.btn):not(.btn *) h2,
.bg-primary:not(.btn):not(.btn *) p,
.bg-primary:not(.btn):not(.btn *) .lead {
    color: #ffffff !important;
}

/* Кнопка в CTA — синяя на белом фоне */
.bg-primary .btn-light {
    color: #0d6efd !important;
    background: #ffffff !important;
    border: 2px solid #ffffff !important;
}

.bg-primary .btn-light:hover {
    color: #ffffff !important;
    background: #0b5ed7 !important;
    border-color: #0b5ed7 !important;
}