:root {
    --gold: #C4A76D;
    --light-gold: #F0E6D2;
    --dark: #1A1A1A;
    --light: #F9F7F4;
    --gray: #E8E5DF;
    --transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    letter-spacing: 0.8px;
    line-height: 1.2;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header - исправленная версия */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(249, 247, 244, 0.98);
    backdrop-filter: blur(12px);
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gold);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.logo {
    font-size: clamp(20px, 5vw, 26px);
    color: var(--dark);
    letter-spacing: 1px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1001;
    flex-shrink: 0;
}

.logo-icon {
    width: 28px;
    height: 28px;
    background-color: var(--gold);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L4 12l8 10 8-10z'/%3E%3C/svg%3E") no-repeat center;
    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: rotate(15deg);
}

/* Navigation - исправленная версия */
nav {
    transition: all 0.3s ease;
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition);
    text-transform: uppercase;
    white-space: nowrap;
}

nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background: var(--gold);
    transition: var(--transition);
}

nav a:hover {
    color: var(--gold);
}

nav a:hover:after {
    width: 100%;
}

/* Burger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 0;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.phone {
    font-size: 15px;
    color: var(--dark);
    font-weight: 400;
    letter-spacing: 1px;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.phone:hover {
    color: var(--gold);
}

.btn {
    display: inline-flex;
    padding: 12px 24px;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
    white-space: nowrap;
}

.btn:hover {
    background: var(--gold);
    color: var(--light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.whatsapp-btn {
    background: rgba(37, 211, 102, 0.9);
    border: 1px solid rgba(33, 190, 90, 0.9);
    color: white;
}

.whatsapp-btn:hover {
    background: rgba(33, 190, 90, 0.9);
    color: white;
}

.whatsapp-text {
    display: inline;
}

/* Hero Section */
.hero {
    height: 70vh;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    overflow: hidden;
    background: url('/assets/img/hero-bg.jpg') no-repeat center/cover;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(28,28,28,0.8) 0%, rgba(28,28,28,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 40px;
    text-align: center;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--light-gold);
    margin-bottom: 20px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 400;
}

.hero-title {
    font-size: clamp(42px, 7vw, 72px);
    margin-bottom: 25px;
    color: white;
    line-height: 1.1;
}

.hero-text {
    font-size: clamp(16px, 3vw, 18px);
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255,255,255,0.9);
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--light);
    position: relative;
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
}

.about-img {
    width: 100%;
    min-height: 400px;
    background: url('/assets/img/avrora.png') no-repeat center/contain;
    position: relative;
}

.about-img:before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.about-content {
    width: 100%;
}

.section-subtitle {
    font-size: 14px;
    color: var(--gold);
    margin-bottom: 15px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 400;
}

.section-title {
    font-size: clamp(36px, 5vw, 48px);
    margin-bottom: 25px;
    position: relative;
    color: var(--dark);
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--gold);
}

.about-text {
    margin-bottom: 25px;
    font-size: 16px;
    font-weight: 300;
    color: var(--dark);
    line-height: 1.7;
}

.brand-features {
    list-style: none;
    margin-bottom: 30px;
}

.brand-features li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    color: var(--dark);
    font-size: 16px;
    line-height: 1.6;
}

.brand-features li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--gold);
    transform: rotate(45deg);
}

/* Brands Section */
.brands {
    padding: 80px 0;
    background: var(--light);
}

.brands-header {
    text-align: center;
    margin-bottom: 60px;
}

.brand-card {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
    padding: 40px;
    transition: var(--transition);
    background: white;
    border-radius: 4px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.brand-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold);
    transition: var(--transition);
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.brand-card:hover:before {
    width: 6px;
}

/* Contacts Section */
.contacts {
    padding: 100px 0;
    background: var(--light);
    position: relative;
}

.contacts-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.contacts-info, .contacts-form {
    width: 100%;
}

.contacts-list {
    list-style: none;
    margin-top: 40px;
}

.contacts-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contacts-icon {
    font-size: 20px;
    color: var(--gold);
    margin-top: 3px;
    flex-shrink: 0;
}

.contacts-title {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 500;
}

.contacts-text {
    font-size: 16px;
    font-weight: 300;
    color: var(--dark);
    line-height: 1.6;
}

.contacts-form {
    background: white;
    padding: 50px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.contacts-form:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--gold);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
    color: var(--dark);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--light-gold);
    color: var(--dark);
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--gold);
    padding: 12px 15px;
}

/* Footer */
footer {
    background: var(--dark);
    padding: 60px 0 30px;
    color: rgba(255,255,255,0.7);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-about {
    flex: 1;
}

.footer-logo {
    font-size: 24px;
    color: white;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
}

.footer-logo-icon {
    width: 28px;
    height: 28px;
    background-color: var(--gold);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2L4 12l8 10 8-10z'/%3E%3C/svg%3E") no-repeat center;
}

.footer-text {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-column {
    flex: 1;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-column a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
    text-decoration: none;
}

.footer-column a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-3px);
}

.copyright {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 15px;
    text-align: center;
}

.warning {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
}

/* Yandex Map */
.map-container {
    width: 100%;
    height: 400px;
    margin-top: 40px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

#yandex-map {
    width: 100%;
    height: 100%;
}

/* Age Check */
.age-check {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 20px;
}

.age-check.hidden {
    display: none;
}

.age-check-content {
    max-width: 100%;
    width: 500px;
    background: var(--light);
    padding: 60px 40px;
    border-radius: 4px;
    box-shadow: var(--shadow-hover);
    position: relative;
    overflow: hidden;
}

.age-check-content:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--gold);
}

.age-check-title {
    font-size: clamp(28px, 5vw, 42px);
    margin-bottom: 20px;
    color: var(--dark);
    font-family: 'Cormorant Garamond', serif;
}

.age-check-text {
    font-size: 16px;
    margin-bottom: 40px;
    color: var(--dark);
    line-height: 1.6;
}

.age-check-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.age-btn {
    padding: 14px 24px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    border: none;
    border-radius: 4px;
}

.age-confirm {
    background: var(--gold);
    color: var(--light);
    box-shadow: var(--shadow);
}

.age-confirm:hover {
    background: #a8936b;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.age-decline {
    background: transparent;
    color: var(--dark);
    border: 1px solid var(--dark);
}

.age-decline:hover {
    background: rgba(45, 45, 43, 0.1);
}

/* Chat Widget */
#chat-widget {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9999;
    font-family: 'Montserrat', sans-serif;
}

#chat-toggle {
    background: var(--gold);
    color: white;
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(196, 167, 109, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}

#chat-toggle:hover {
    transform: scale(1.1);
}

#chat-toggle .pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
    top: 0;
    left: 0;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

#chat-window {
    display: none;
    width: 380px;
    max-height: 80vh;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    flex-direction: column;
}

#chat-header {
    background: linear-gradient(90deg, var(--gold) 0%, #D4B87B 100%);
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#chat-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 18px;
}

#chat-status {
    font-size: 12px;
    background: #4CAF50;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    margin-left: auto;
    margin-right: 15px;
}

#chat-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    transition: var(--transition);
}

#chat-close:hover {
    transform: rotate(90deg);
}

#chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--light);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 18px;
    line-height: 1.5;
    animation: fadeIn 0.3s ease-out;
    font-size: 14px;
}

.user-message {
    align-self: flex-end;
    background: var(--gold);
    color: white;
    border-bottom-right-radius: 5px;
}

.operator-message {
    align-self: flex-start;
    background: #f1f1f1;
    color: #333;
    border-bottom-left-radius: 5px;
}

.system-message {
    align-self: center;
    background: #e3f2fd;
    color: #1976d2;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 8px;
}

#chat-input-area {
    display: flex;
    padding: 20px;
    border-top: 1px solid var(--light-gold);
    background: white;
    gap: 12px;
}

#chat-input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid var(--light-gold);
    border-radius: 24px;
    outline: none;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

#chat-input:focus {
    border-color: var(--gold);
}

#chat-send {
    background: var(--gold);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

#chat-send:hover {
    background: #a8936b;
    transform: rotate(30deg);
}

#chat-send svg {
    width: 20px;
    height: 20px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Scrollbar */
#chat-messages::-webkit-scrollbar {
    width: 6px;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: rgba(196, 167, 109, 0.5);
    border-radius: 3px;
}

#chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Анимация для плавного появления карточек */
.brand-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease;
}

.brand-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.cookie-consent.active {
    display: block;
}

.cookie-consent p {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--dark);
}

.cookie-consent-buttons {
    display: flex;
    gap: 10px;
}

.cookie-consent-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-consent-accept {
    background: var(--gold);
    color: white;
    border: none;
}

.cookie-consent-accept:hover {
    background: #a8936b;
}

.cookie-consent-decline {
    background: transparent;
    color: var(--dark);
    border: 1px solid var(--dark);
}

.cookie-consent-decline:hover {
    background: rgba(45, 45, 43, 0.1);
}

/* Стили для выбора региона */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}
        
.region-checkbox {
    display: none;
}
        
.region-label {
    display: block;
    padding: 12px 15px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 14px;
}
        
.region-checkbox:checked + .region-label {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 500;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}
        
.region-label:hover {
    border-color: var(--accent);
}

.region-required {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* ===== СТИЛИ ДЛЯ КАРТОЧЕК ТОВАРОВ ===== */
.brand-image-wrapper {
    flex: 0 0 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.brand-image {
    width: 100%;
    max-width: 550px;
    height: auto;
    margin-bottom: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.brand-image:hover {
    transform: scale(1.02);
}

.brand-image-caption {
    font-size: 16px;
    color: var(--gold);
    font-weight: 500;
    text-align: center;
    margin-top: 5px;
}

.brand-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--light-gold);
    padding-bottom: 15px;
}

.tab-button {
    background: none;
    border: 1px solid transparent;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 30px;
    letter-spacing: 0.5px;
}

.tab-button:hover {
    color: var(--gold);
    border-color: var(--light-gold);
}

.tab-button.active {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

.product-list {
    display: none;
    margin-bottom: 25px;
}

.product-list.active {
    display: block;
}

.product-list h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.product-items {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-selector {
    background: var(--light);
    border: 1px solid var(--gray);
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 14px;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.product-selector:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: white;
    box-shadow: var(--shadow);
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    margin: auto;
    animation: zoomIn 0.3s ease-out;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border: 4px solid var(--gold);
    border-radius: 15px;
    background: white;
    padding: 30px;
    box-shadow: 0 0 60px rgba(196, 167, 109, 0.6);
}

.modal-close {
    position: absolute;
    top: -50px;
    right: -50px;
    color: white;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(196, 167, 109, 0.4);
    border: 2px solid var(--gold);
    z-index: 10001;
}

.modal-close:hover {
    transform: rotate(90deg);
    background: var(--gold);
    color: var(--dark);
}

.modal-caption {
    position: absolute;
    bottom: -45px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 20px;
    font-weight: 500;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    border-radius: 10px;
    letter-spacing: 1px;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: #d4af37;
    width: 0%;
    z-index: 1001;
    transition: width 0.1s;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 120px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.scroll-top:hover {
    transform: translateY(-5px);
    background: #a8936b;
}

/* ===== ДЕСКТОП (от 1200px) ===== */
@media (min-width: 1200px) {
    .about-container {
        flex-direction: row;
    }

    .about-img {
        flex: 1;
    }

    .about-content {
        flex: 1;
    }

    .brand-card {
        flex-direction: row;
        gap: 60px;
        padding: 60px;
    }

    .brand-card:nth-child(odd) {
        flex-direction: row;
    }

    .brand-card:nth-child(even) {
        flex-direction: row-reverse;
    }

    .contacts-container {
        flex-direction: row;
    }

    .contacts-info {
        flex: 1;
    }

    .contacts-form {
        flex: 1;
    }

    .footer-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .footer-about {
        flex: 0 0 30%;
    }

    .footer-links {
        flex: 0 0 60%;
        flex-direction: row;
        gap: 60px;
    }
    
    .brand-image-wrapper {
        flex: 0 0 600px;
    }
    
    .brand-image {
        max-width: 550px;
    }
}

/* ===== НОУТБУКИ (993px - 1199px) ===== */
@media (min-width: 993px) and (max-width: 1199px) {
    .about-container {
        flex-direction: row;
    }

    .about-img {
        flex: 1;
    }

    .about-content {
        flex: 1;
    }

    .brand-card {
        flex-direction: row;
        gap: 50px;
        padding: 50px;
    }

    .brand-card:nth-child(odd) {
        flex-direction: row;
    }

    .brand-card:nth-child(even) {
        flex-direction: row-reverse;
    }

    .contacts-container {
        flex-direction: row;
    }

    .contacts-info {
        flex: 1;
    }

    .contacts-form {
        flex: 1;
    }

    .footer-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .footer-about {
        flex: 0 0 30%;
    }

    .footer-links {
        flex: 0 0 60%;
        flex-direction: row;
        gap: 50px;
    }
    
    .brand-image-wrapper {
        flex: 0 0 500px;
    }
    
    .brand-image {
        max-width: 450px;
    }
}

/* ===== ПЛАНШЕТЫ (768px - 992px) ===== */
@media (min-width: 768px) and (max-width: 992px) {
    .brand-card {
        flex-direction: column !important;
        padding: 40px;
    }
    
    .brand-image-wrapper {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        padding: 20px;
    }
    
    .brand-image {
        max-width: 450px;
    }
    
    .brand-tabs {
        justify-content: center;
    }
    
    .product-items {
        justify-content: center;
    }
}

/* ===== МОБИЛЬНЫЕ ТЕЛЕФОНЫ (до 767px) ===== */
@media (max-width: 767px) {
    
    .brands {
        padding: 0;
    }
    
    .brands-header {
        margin-bottom: 0;
        padding: 20px 15px 10px;
    }
    
    .brand-card {
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 0 15px 0 !important;
        gap: 0;
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid var(--light-gold);
    }
    
    .brand-card:last-child {
        margin-bottom: 0 !important;
        border-bottom: none;
    }
    
    .brand-card .brand-image-wrapper {
        order: 1;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 20px 20px 5px 20px;
    }
    
    .brand-card .brand-image {
        max-width: 100%;
        width: auto;
        max-height: 300px;
        margin: 0 auto;
        display: block;
    }
    
    .brand-card .brand-image-caption {
        font-size: 14px;
        margin: 8px 0 0;
        padding: 0;
    }
    
    .brand-card .brand-content {
        order: 2;
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0 20px 20px;
    }
    
    .brand-card .brand-title {
        order: 1;
        text-align: center;
        font-size: 26px;
        margin: 0 0 8px;
    }
    
    .brand-card .brand-description {
        order: 2;
        text-align: center;
        font-size: 14px;
        margin: 0 0 15px;
        line-height: 1.4;
    }
    
    .brand-card .brand-tabs {
        order: 3;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        margin: 0 0 15px;
        padding: 0 0 10px;
        border-bottom: 1px solid var(--light-gold);
    }
    
    .brand-card .tab-button {
        padding: 8px 14px;
        font-size: 13px;
        margin: 0;
    }
    
    .brand-card .product-list {
        order: 4;
        margin: 0 0 15px;
    }
    
    .brand-card .product-list h4 {
        text-align: center;
        font-size: 15px;
        margin: 0 0 10px;
    }
    
    .brand-card .product-items {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin: 0;
        padding: 0;
    }
    
    .brand-card .product-selector {
        padding: 8px 14px;
        font-size: 13px;
        margin: 0;
    }
    
    .brand-card .brand-features {
        order: 5;
        margin: 0;
        padding: 15px 0 0;
        border-top: 1px solid var(--light-gold);
    }
    
    .brand-card .brand-features li {
        font-size: 13px;
        padding-left: 20px;
        margin-bottom: 6px;
    }
    
    .brand-card .brand-features li:before {
        top: 6px;
        width: 6px;
        height: 6px;
    }
    
    .brand-card .btn {
        order: 6;
        align-self: center;
        margin: 15px auto 0;
        width: 100%;
        max-width: 260px;
        justify-content: center;
        padding: 12px 18px;
        font-size: 13px;
    }
    
    .modal-close {
        top: -40px;
        right: 5px;
        font-size: 40px;
        width: 45px;
        height: 45px;
    }
    
    .modal-caption {
        bottom: -40px;
        font-size: 16px;
        padding: 10px;
    }
}

/* ===== МАЛЕНЬКИЕ ТЕЛЕФОНЫ (до 480px) ===== */
@media (max-width: 480px) {
    
    .brands-header {
        padding: 15px 10px 5px;
    }
    
    .brand-card {
        margin: 0 0 10px 0 !important;
    }
    
    .brand-card .brand-image-wrapper {
        padding: 15px 15px 2px 15px;
    }
    
    .brand-card .brand-image {
        max-height: 240px;
    }
    
    .brand-card .brand-image-caption {
        font-size: 12px;
        margin: 5px 0 0;
    }
    
    .brand-card .brand-content {
        padding: 0 15px 15px;
    }
    
    .brand-card .brand-title {
        font-size: 22px;
        margin: 0 0 5px;
    }
    
    .brand-card .brand-description {
        font-size: 12px;
        margin: 0 0 12px;
    }
    
    .brand-card .brand-tabs {
        gap: 4px;
        margin: 0 0 12px;
        padding: 0 0 8px;
    }
    
    .brand-card .tab-button {
        flex: 1 1 calc(50% - 4px);
        padding: 6px 2px;
        font-size: 11px;
        text-align: center;
    }
    
    .brand-card .product-items {
        gap: 4px;
    }
    
    .brand-card .product-selector {
        flex: 1 1 calc(50% - 4px);
        padding: 6px 2px;
        font-size: 11px;
        text-align: center;
    }
    
    .brand-card .product-list h4 {
        font-size: 13px;
        margin: 0 0 8px;
    }
    
    .brand-card .brand-features {
        padding: 10px 0 0;
    }
    
    .brand-card .brand-features li {
        font-size: 11px;
        padding-left: 16px;
        margin-bottom: 4px;
    }
    
    .brand-card .btn {
        max-width: 220px;
        padding: 10px 14px;
        font-size: 11px;
        margin-top: 12px;
    }
}

/* Header mobile - исправленная версия для правильного порядка */
@media (max-width: 992px) {
    header {
        padding: 10px 0;
        height: 60px;
    }

    .menu-toggle {
        display: flex !important;
        order: 3;
    }

    nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(249, 247, 244, 0.98);
        backdrop-filter: blur(12px);
        padding: 40px 20px;
        z-index: 1000;
        transition: left 0.3s ease;
        display: block !important;
        overflow-y: auto;
        order: initial;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    nav a {
        font-size: 16px;
        display: block;
        padding: 10px 0;
        white-space: normal;
    }

    .header-cta {
        order: 2;
        margin-right: 0;
        display: flex;
        gap: 10px;
    }

    .logo {
        order: 1;
        font-size: 18px;
    }

    .phone, .whatsapp-btn {
        display: none; /* Скрываем на мобильных, они будут в меню */
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 16px;
    }
    
    .logo-icon {
        width: 24px;
        height: 24px;
    }
}

/* Fix for anchor links */
html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 80px;
    padding-top: 20px;
}

body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}
/* ===== УЛУЧШЕННОЕ МАСШТАБИРОВАНИЕ HERO ===== */
.hero {
    height: 70vh;
    min-height: 600px;
    max-height: 800px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    overflow: hidden;
    background: url('/assets/img/hero-bg.jpg') no-repeat center/cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
    text-align: center;
}

.hero-title {
    font-size: clamp(32px, 5vw, 72px);
    margin-bottom: 20px;
    color: white;
    line-height: 1.1;
    word-wrap: break-word;
}

.hero-text {
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 300;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
}

/* Адаптация hero для разных экранов */
@media (max-width: 1200px) {
    .hero {
        min-height: 550px;
    }
}

@media (max-width: 992px) {
    .hero {
        min-height: 500px;
    }
    .hero-title {
        font-size: clamp(28px, 4vw, 48px);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 450px;
        height: 60vh;
    }
    .hero-content {
        padding: 0 15px;
    }
    .hero-title {
        font-size: clamp(24px, 6vw, 36px);
        margin-bottom: 15px;
    }
    .hero-text {
        font-size: 14px;
        margin-bottom: 25px;
    }
    .hero .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 400px;
        height: 50vh;
    }
    .hero-title {
        font-size: clamp(20px, 7vw, 28px);
    }
    .hero-text {
        font-size: 13px;
        margin-bottom: 20px;
    }
    .hero .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* ===== УЛУЧШЕННАЯ ФОРМА ОТПРАВКИ ===== */
.contacts-form {
    background: white;
    padding: 40px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.contacts-form h2 {
    font-size: clamp(20px, 3vw, 24px);
    margin-bottom: 25px;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    word-wrap: break-word;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.form-label {
    display: block;
    font-size: 12px;
    margin-bottom: 8px;
    color: var(--dark);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--light-gold);
    color: var(--dark);
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--gold);
    padding: 10px 12px;
}

.form-input[type="text"],
.form-input[type="tel"],
.form-input[type="email"],
.form-input[type="number"],
.form-input select,
.form-input textarea {
    width: 100%;
    box-sizing: border-box;
}

/* ===== УЛУЧШЕННЫЕ КНОПКИ РЕГИОНОВ ===== */
.regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin-top: 10px;
    width: 100%;
}

.region-checkbox {
    display: none;
}

.region-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 13px;
    line-height: 1.2;
    min-height: 44px;
    word-break: break-word;
    height: 100%;
}

.region-checkbox:checked + .region-label {
    background: var(--light-gold);
    border-color: var(--gold);
    color: var(--gold);
    font-weight: 500;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.region-label:hover {
    border-color: var(--gold);
    background: #fff;
}

.region-required {
    color: #e74c3c;
    font-size: 11px;
    margin-top: 5px;
    display: block;
}

#region-error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 8px;
    display: none;
}

/* Адаптация для планшетов */
@media (max-width: 992px) {
    .contacts-form {
        padding: 30px;
    }
    
    .regions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .region-label {
        font-size: 12px;
        padding: 10px 5px;
    }
}

/* Адаптация для телефонов */
@media (max-width: 768px) {
    .contacts-form {
        padding: 25px 15px;
    }
    
    .regions-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .region-label {
        font-size: 13px;
        padding: 12px 10px;
        justify-content: flex-start;
        text-align: left;
    }
    
    .region-checkbox:checked + .region-label {
        background: var(--light-gold);
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-input {
        font-size: 14px;
        padding: 10px 0;
    }
    
    .contacts-form .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .contacts-form {
        padding: 20px 12px;
    }
    
    .contacts-form h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .region-label {
        font-size: 12px;
        padding: 10px 8px;
    }
    
    .form-label {
        font-size: 11px;
    }
    
    .form-input {
        font-size: 13px;
        padding: 8px 0;
    }
    
    .contacts-form .btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* Улучшенный WhatsApp блок в форме */
.contacts-form .whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    border-color: #25D366;
    color: white;
    margin-top: 15px;
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
}

.contacts-form .whatsapp-btn:hover {
    background: #20b358;
    border-color: #20b358;
}

@media (max-width: 768px) {
    .contacts-form .whatsapp-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* Фикс для контейнера */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 8px;
    }
}

/* Улучшенные отступы для секций */
section {
    scroll-margin-top: 70px;
    padding: 40px 0;
}

@media (max-width: 768px) {
    section {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .section-subtitle {
        font-size: 12px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 25px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
}
/* ===== АДАПТАЦИЯ ЧАТА ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ ===== */
#chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Montserrat', sans-serif;
}

#chat-toggle {
    background: var(--gold);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(196, 167, 109, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}

#chat-toggle svg {
    width: 28px;
    height: 28px;
}

#chat-toggle .pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
    top: 0;
    left: 0;
    z-index: -1;
}

#chat-window {
    display: none;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    flex-direction: column;
    position: absolute;
    bottom: 80px;
    right: 0;
}

#chat-window.active {
    display: flex;
}

#chat-header {
    background: linear-gradient(90deg, var(--gold) 0%, #D4B87B 100%);
    padding: 15px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#chat-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: 16px;
    margin: 0;
}

#chat-status {
    font-size: 11px;
    background: #4CAF50;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: auto;
    margin-right: 10px;
}

#chat-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: var(--light);
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
}

.message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    line-height: 1.4;
    animation: fadeIn 0.3s ease-out;
    font-size: 13px;
    word-wrap: break-word;
}

.user-message {
    align-self: flex-end;
    background: var(--gold);
    color: white;
    border-bottom-right-radius: 4px;
}

.operator-message {
    align-self: flex-start;
    background: #f1f1f1;
    color: #333;
    border-bottom-left-radius: 4px;
}

.system-message {
    align-self: center;
    background: #e3f2fd;
    color: #1976d2;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 8px;
    max-width: 90%;
}

#chat-input-area {
    display: flex;
    padding: 12px;
    border-top: 1px solid var(--light-gold);
    background: white;
    gap: 8px;
}

#chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--light-gold);
    border-radius: 24px;
    outline: none;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
}

#chat-input:focus {
    border-color: var(--gold);
}

#chat-send {
    background: var(--gold);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

#chat-send:hover {
    background: #a8936b;
    transform: rotate(30deg);
}

#chat-send svg {
    width: 18px;
    height: 18px;
}

/* Адаптация для планшетов */
@media (max-width: 992px) {
    #chat-widget {
        bottom: 15px;
        right: 15px;
    }
    
    #chat-toggle {
        width: 55px;
        height: 55px;
    }
    
    #chat-toggle svg {
        width: 26px;
        height: 26px;
    }
    
    #chat-window {
        width: 320px;
        max-height: 450px;
        bottom: 70px;
    }
    
    #chat-messages {
        max-height: 280px;
    }
}

/* Адаптация для телефонов */
@media (max-width: 768px) {
    #chat-widget {
        bottom: 10px;
        right: 10px;
    }
    
    #chat-toggle {
        width: 50px;
        height: 50px;
    }
    
    #chat-toggle svg {
        width: 24px;
        height: 24px;
    }
    
    #chat-window {
        width: 300px;
        max-height: 400px;
        bottom: 65px;
    }
    
    #chat-header {
        padding: 12px;
    }
    
    #chat-header h3 {
        font-size: 14px;
    }
    
    #chat-status {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    #chat-messages {
        padding: 12px;
        max-height: 250px;
        gap: 8px;
    }
    
    .message {
        max-width: 90%;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    #chat-input-area {
        padding: 10px;
    }
    
    #chat-input {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    #chat-send {
        width: 36px;
        height: 36px;
    }
    
    #chat-send svg {
        width: 16px;
        height: 16px;
    }
}

/* Адаптация для маленьких телефонов */
@media (max-width: 480px) {
    #chat-widget {
        bottom: 8px;
        right: 8px;
    }
    
    #chat-toggle {
        width: 45px;
        height: 45px;
    }
    
    #chat-toggle svg {
        width: 22px;
        height: 22px;
    }
    
    #chat-window {
        width: calc(100vw - 30px);
        max-width: 280px;
        max-height: 380px;
        bottom: 58px;
        right: 0;
    }
    
    #chat-header {
        padding: 10px;
    }
    
    #chat-header h3 {
        font-size: 13px;
    }
    
    #chat-status {
        font-size: 9px;
        padding: 2px 6px;
        margin-right: 5px;
    }
    
    #chat-close {
        font-size: 16px;
        width: 25px;
        height: 25px;
    }
    
    #chat-messages {
        padding: 10px;
        max-height: 220px;
    }
    
    .message {
        max-width: 95%;
        padding: 7px 10px;
        font-size: 11px;
    }
    
    #chat-input-area {
        padding: 8px;
        gap: 5px;
    }
    
    #chat-input {
        padding: 7px 10px;
        font-size: 11px;
    }
    
    #chat-send {
        width: 32px;
        height: 32px;
    }
    
    #chat-send svg {
        width: 14px;
        height: 14px;
    }
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 360px) {
    #chat-window {
        width: calc(100vw - 20px);
        max-width: 260px;
        right: -5px;
    }
    
    #chat-header h3 {
        font-size: 12px;
    }
    
    .message {
        font-size: 10px;
        padding: 6px 8px;
    }
    
    #chat-input {
        font-size: 10px;
        padding: 6px 8px;
    }
}

/* Анимация для чата */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#chat-window.active {
    animation: slideIn 0.3s ease-out;
}

/* Улучшенный скролл для сообщений */
#chat-messages::-webkit-scrollbar {
    width: 4px;
}

#chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: rgba(196, 167, 109, 0.3);
    border-radius: 2px;
}

#chat-messages::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Уведомление о новом сообщении */
.chat-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
}

/* Затемнение фона при открытом чате на мобильных */
@media (max-width: 768px) {
    body.chat-open {
        overflow: hidden;
    }
    
    body.chat-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        animation: fadeIn 0.3s ease-out;
    }
    
    #chat-widget {
        z-index: 9999;
    }
}
