/* ========== ОБЩИЕ СТИЛИ ========== */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: #faf7f2;
    color: #4a3729;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== ШАПКА И НАВИГАЦИЯ ========== */
.main {
    width: 100%;
    position: relative;
    background-color: #FFEBDC;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    transition: background-color 0.3s ease;
}

/* НАВИГАЦИЯ - СВЕТЛАЯ ТЕМА (ПО УМОЛЧАНИЮ) */
nav {
    background-color: #2c1a12;
    width: 100%;
    min-height: 137px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
    flex-wrap: nowrap;
    top: 0;
    left: 0;
    z-index: 102;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.logo-container {
    flex-shrink: 0;
    position: relative;
    z-index: 104;
    margin-right: 15px;
}

.logo {
    width: 160px;
    height: 110px;
    display: block;
}

.nav-links-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 5px 15px;
    flex: 1;
}

.nav-links-container a {
    color: white;
    font-size: 22px;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.nav-links-container a:hover {
    text-decoration: none;
}
.nav-links-container .nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #FFD8B0;
    border-radius: 2px;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    position: relative;
    z-index: 104;
    margin-left: 15px;
}

/* ========== НАВИГАЦИЯ - ТЕМНАЯ ТЕМА ========== */
body.dark-theme nav {
    background-color: #1a0f0a;
}

body.dark-theme .nav-links-container a {
    color: #e8dcd0;
}

body.dark-theme .nav-links-container a:hover,
body.dark-theme .nav-links-container a.active {
    color: #d4a373 !important;
}

/* ========== БУРГЕР-МЕНЮ ========== */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 30px;
    cursor: pointer;
    z-index: 105;
    position: relative;
}

.burger-line {
    width: 100%;
    height: 4px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: absolute;
    left: 0;
}

.burger-line:nth-child(1) {
    top: 0;
}

.burger-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.burger-line:nth-child(3) {
    bottom: 0;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg);
    top: 13px;
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 13px;
}

body.dark-theme .burger-line {
    background-color: #e8dcd0;
}

/* ========== МОБИЛЬНОЕ МЕНЮ ========== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #2c1a12;
    z-index: 103;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding-top: 157px;
    box-sizing: border-box;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu a {
    color: white;
    font-size: 28px;
    font-family: inherit;
    text-decoration: none;
    padding: 12px 25px;
    width: 80%;
    max-width: 300px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

body.dark-theme .mobile-menu {
    background-color: #1a0f0a;
}

body.dark-theme .mobile-menu a {
    color: #e8dcd0;
    border-bottom-color: rgba(212, 163, 115, 0.2);
}

body.dark-theme .mobile-menu a:hover {
    background-color: rgba(212, 163, 115, 0.15);
}

.mobile-theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: none;
    border: 2px solid white;
    border-radius: 40px;
    padding: 12px 30px;
    margin-top: 20px;
    margin-bottom: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    min-width: 200px;
}

.mobile-theme-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.mobile-theme-btn span {
    color: white;
    font-size: 24px;
    font-weight: 500;
}

body.dark-theme .mobile-theme-btn {
    border-color: #d4a373;
}

body.dark-theme .mobile-theme-btn span {
    color: #e8dcd0;
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 102;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ========== ПЛАВАЮЩАЯ КОРЗИНА ========== */
.floating-cart {
    display: flex;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background-color: #2c1a12;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 107;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 2px solid white;
}

.floating-cart:hover {
    transform: scale(1.1);
}

.floating-cart img {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
}

.floating-cart .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4444;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    border: 2px solid white;
}

body.dark-theme .floating-cart {
    background-color: #1a0f0a;
    border-color: #d4a373;
}

/* ========== ФУТЕР ========== */
.footer {
    width: 100%;
    background-color: #2c1a12;
    color: white;
    padding: 50px 0 20px 0;
    margin-top: 60px;
    flex-shrink: 0;
    position: relative;
    left: 0;
    right: 0;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-text {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: white;
    letter-spacing: 1px;
}

.footer-logo-desc {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    max-width: 250px;
}

.footer-navigation {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-item {
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    width: fit-content;
}

.nav-item:hover {
    transform: translateX(5px);
    opacity: 0.9;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

.footer-contacts-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: white;
}

.footer-phone,
.footer-email,
.footer-address {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 8px 0;
    transition: opacity 0.3s ease;
}

.footer-phone:hover,
.footer-email:hover {
    opacity: 0.8;
    cursor: pointer;
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 30px 0 25px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    text-decoration: none;
}

.footer-link:hover {
    color: white;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: white;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.social-media-icons {
    display: flex;
    gap: 15px;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.social-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

/* ========== ФУТЕР - ТЕМНАЯ ТЕМА ========== */
body.dark-theme .footer {
    background-color: #1a0f0a;
}

body.dark-theme .footer-logo-text,
body.dark-theme .footer-contacts-title,
body.dark-theme .nav-item {
    color: #e8dcd0;
}

body.dark-theme .footer-logo-desc,
body.dark-theme .footer-phone,
body.dark-theme .footer-email,
body.dark-theme .footer-address {
    color: rgba(232, 220, 208, 0.8);
}

body.dark-theme .footer-link {
    color: rgba(232, 220, 208, 0.7);
}

body.dark-theme .footer-link:hover {
    color: #d4a373;
}

body.dark-theme .social-icon-link {
    background-color: rgba(212, 163, 115, 0.15);
}

body.dark-theme .social-icon-link:hover {
    background-color: #d4a373;
}

body.dark-theme .footer-divider {
    background-color: rgba(212, 163, 115, 0.3);
}

/* ========== КНОПКИ ========== */
.btn {
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: inherit;
    display: inline-block;
}

.btn-outline {
    background: transparent;
    border: 2px solid #b87c4a;
    color: #b87c4a;
}

.btn-outline:hover {
    background: #b87c4a;
    color: white;
}

.btn-primary {
    background: #b87c4a;
    color: white;
    border: 2px solid #b87c4a;
}

.btn-primary:hover {
    background: #5d3a1a;
    border-color: #5d3a1a;
    transform: translateY(-2px);
}

.btn-disabled {
    background: #e6d5c0;
    color: #9b7a5a;
    border: none;
    cursor: not-allowed;
}

body.dark-theme .btn-outline {
    border-color: #d4a373;
    color: #d4a373;
}

body.dark-theme .btn-outline:hover {
    background: #d4a373;
    color: #1a120e;
}

body.dark-theme .btn-primary {
    background: #b87c4a;
    border-color: #b87c4a;
}

body.dark-theme .btn-primary:hover {
    background: #d4a373;
    border-color: #d4a373;
}

/* ========== АКТИВНАЯ ССЫЛКА В НАВИГАЦИИ ========== */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link.active {
    color: #FFD8B0 !important;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #FFD8B0, #b87c4a);
    border-radius: 3px;
    animation: underlineSlide 0.3s ease;
}

@keyframes underlineSlide {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 100%;
        opacity: 1;
    }
}

.mobile-menu .nav-link {
    position: relative;
}

.mobile-menu .nav-link.active {
    background: linear-gradient(135deg, rgba(255, 216, 176, 0.2), rgba(184, 124, 74, 0.2));
    border-radius: 12px;
    border-bottom: none;
}

.mobile-menu .nav-link.active::after {
    display: none;
}

.nav-links-container .nav-link:hover {
    color: #FFD8B0 !important;
}

.nav-links-container .nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #FFD8B0;
    border-radius: 2px;
}

.mobile-menu a {
    position: relative;
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    background-color: rgba(255, 216, 176, 0.15);
    border-radius: 12px;
}

/* ========== СТИЛЬ ДЛЯ ССЫЛКИ АДМИН-ПАНЕЛИ ========== */
.nav-link.admin-link {
    background: rgba(255, 216, 176, 0.15);
    border-radius: 30px;
    padding: 5px 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-link.admin-link i {
    font-size: 14px;
}

.nav-link.admin-link:hover {
    background: rgba(255, 216, 176, 0.3);
}

.nav-link.admin-link.active {
    background: rgba(255, 216, 176, 0.3);
    color: #FFD8B0 !important;
}

.mobile-menu .admin-link {
    background: rgba(255, 216, 176, 0.15);
    margin-top: 5px;
    margin-bottom: 5px;
}

.mobile-menu .admin-link:hover {
    background: rgba(255, 216, 176, 0.3);
}

body.dark-theme .nav-link.admin-link {
    background: rgba(212, 163, 115, 0.15);
}

body.dark-theme .nav-link.admin-link:hover {
    background: rgba(212, 163, 115, 0.3);
}

body.dark-theme .nav-link.admin-link.active {
    background: rgba(212, 163, 115, 0.3);
    color: #d4a373 !important;
}

/* ========== КРАСИВЫЙ TOGGLE SWITCH ДЛЯ ТЕМЫ ========== */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 85px;
    height: 45px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #e6d5c0, #d4c0a8);
    transition: 0.4s;
    border-radius: 45px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.slider:before {
    position: absolute;
    content: "";
    height: 37px;
    width: 37px;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #fff, #f5f5f5);
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* Иконки внутри слайдера */
.slider .sun-icon,
.slider .moon-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    transition: 0.3s;
    z-index: 1;
}

/* Луна - всегда справа */
.slider .moon-icon {
    right: 12px;
    color: #5d3a1a;
    opacity: 1;
}

/* Солнце - всегда слева */
.slider .sun-icon {
    left: 12px;
    color: #d4a373;
    opacity: 0;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

/* Активное состояние (темная тема) - для слайдера */
input:checked+.slider {
    background: linear-gradient(135deg, #4a2e20, #2c1a12);
}

input:checked+.slider:before {
    transform: translateX(40px) translateY(-50%);
    background: linear-gradient(135deg, #d4a373, #b87c4a);
}

/* В темной теме: луна исчезает, солнце появляется */
input:checked+.slider .moon-icon {
    opacity: 0;
}

input:checked+.slider .sun-icon {
    opacity: 1;
}

/* Эффекты при наведении */
.theme-switch:hover .slider:before {
    transform: translateY(-50%) scale(1.05);
}

input:checked+.slider:hover:before {
    transform: translateX(40px) translateY(-50%) scale(1.05);
}

/* Адаптивность */
@media screen and (max-width: 671px) {
    .theme-switch {
        width: 70px;
        height: 38px;
    }

    .slider:before {
        height: 30px;
        width: 30px;
        left: 4px;
    }

    input:checked+.slider:before {
        transform: translateX(32px) translateY(-50%);
    }

    .slider .sun-icon,
    .slider .moon-icon {
        font-size: 16px;
    }

    .slider .moon-icon {
        right: 10px;
    }

    .slider .sun-icon {
        left: 10px;
    }
}

/* ========== ТЕМНАЯ ТЕМА (КОФЕЙНО-ТЕРРАКОТОВАЯ) ========== */

/* Общие стили для темной темы */
body.dark-theme {
    background: #1a120e;
    color: #e8dcd0;
}

body.dark-theme .main {
    background-color: #0d0a08;
}

/* Карточки в темной теме */
body.dark-theme .room-card,
body.dark-theme .service-card,
body.dark-theme .review-card,
body.dark-theme .promotion-card,
body.dark-theme .admin-card,
body.dark-theme .stat-card,
body.dark-theme .form-section,
body.dark-theme .rooms-table,
body.dark-theme .slides-table {
    background: #2c1a12;
    border-color: #4a2e20;
}

body.dark-theme .room-card-title,
body.dark-theme .service-name,
body.dark-theme .review-name,
body.dark-theme .promotion-card h3,
body.dark-theme .admin-card h3 {
    color: #e8dcd0;
}

body.dark-theme .room-card-specs span,
body.dark-theme .service-description,
body.dark-theme .review-text {
    color: #c4b8aa;
}

body.dark-theme .room-card-price {
    color: #d4a373;
}

body.dark-theme .room-footer {
    border-top-color: #4a2e20;
}

/* Секции в темной теме */
body.dark-theme .services-section,
body.dark-theme .reviews-section,
body.dark-theme .promotions-section,
body.dark-theme .aboutUs,
body.dark-theme .benefits-section,
body.dark-theme .faq-section,
body.dark-theme .subscribe-section,
body.dark-theme .rooms-section,
body.dark-theme .newsletter-block {
    background-color: #1a120e;
}

body.dark-theme .services-section {
    background-color: #0d0a08;
}

body.dark-theme .services-title,
body.dark-theme .reviews-title,
body.dark-theme .promotions-title,
body.dark-theme .benefits-title,
body.dark-theme .faq-title,
body.dark-theme .rooms-title {
    color: #e8dcd0;
}

body.dark-theme .services-title::after,
body.dark-theme .reviews-title::after,
body.dark-theme .promotions-title::after,
body.dark-theme .benefits-title::after,
body.dark-theme .faq-title::after,
body.dark-theme .rooms-title::after {
    background: linear-gradient(90deg, #d4a373, #4a2e20);
}

/* Акции в темной теме */
body.dark-theme .promotion-card.discount {
    background: linear-gradient(135deg, #8B4513 0%, #5C2D0E 100%);
}

body.dark-theme .promotion-card.breakfast {
    background: linear-gradient(135deg, #9B6B3A 0%, #6B4A25 100%);
}

body.dark-theme .promotion-card.massage {
    background: linear-gradient(135deg, #7A4E3A 0%, #5A3525 100%);
}

body.dark-theme .promotion-card.pool {
    background: linear-gradient(135deg, #6B4F34 0%, #4A3520 100%);
}

body.dark-theme .promotion-card.early-booking {
    background: linear-gradient(135deg, #B87C4A 0%, #8B5A2B 100%);
}

body.dark-theme .promotion-card.long-stay {
    background: linear-gradient(135deg, #9B7A5A 0%, #6B4F34 100%);
}

/* Услуги в темной теме */
body.dark-theme .services-footer {
    background: linear-gradient(135deg, #4a2e20, #2c1a12);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

body.dark-theme .services-footer-text {
    color: #e8dcd0;
}

/* Формы в темной теме */
body.dark-theme .form-group input,
body.dark-theme .form-group textarea,
body.dark-theme .form-group select {
    background: #2c1a12;
    border-color: #4a2e20;
    color: #e8dcd0;
}

body.dark-theme .form-group input:focus,
body.dark-theme .form-group textarea:focus,
body.dark-theme .form-group select:focus {
    border-color: #d4a373;
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.2);
}

body.dark-theme .form-group label {
    color: #c4b8aa;
}

body.dark-theme .checkbox-group {
    background: #1a120e;
    border-color: #4a2e20;
}

body.dark-theme .checkbox-group label {
    color: #c4b8aa;
}

/* Таблицы в темной теме */
body.dark-theme th {
    background: #2c1a12;
    color: #e8dcd0;
    border-bottom-color: #4a2e20;
}

body.dark-theme td {
    border-bottom-color: #4a2e20;
    color: #c4b8aa;
}

body.dark-theme tr:hover td {
    background: #3d261a;
}

/* Подписка в темной теме */
body.dark-theme .subscribe-card {
    background: linear-gradient(135deg, #2c1a12 0%, #1a120e 100%);
}

body.dark-theme .newsletter-wrapper {
    background: #1a120e;
}

body.dark-theme .newsletter-input {
    color: #e8dcd0;
}

body.dark-theme .newsletter-input::placeholder {
    color: #8a6e58;
}

/* FAQ в темной теме */
body.dark-theme .faq-item {
    background: #2c1a12;
}

body.dark-theme .faq-question {
    background: #2c1a12;
}

body.dark-theme .faq-question:hover {
    background: #3d261a;
}

body.dark-theme .faq-question span {
    color: #e8dcd0;
}

body.dark-theme .faq-answer p {
    color: #c4b8aa;
}

body.dark-theme .faq-item.active .faq-answer {
    border-top-color: #4a2e20;
}

/* Слайдер в темной теме */
body.dark-theme .slide-overlay {
    background: linear-gradient(90deg, rgba(26, 18, 14, 0.8) 0%, rgba(26, 18, 14, 0.4) 50%, rgba(26, 18, 14, 0.1) 100%);
}

body.dark-theme .slide-btn {
    background-color: rgba(212, 163, 115, 0.9);
}

body.dark-theme .slide-btn:hover {
    background-color: #d4a373;
}

/* Скроллбар в темной теме */
body.dark-theme ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body.dark-theme ::-webkit-scrollbar-track {
    background: #2c1a12;
    border-radius: 4px;
}

body.dark-theme ::-webkit-scrollbar-thumb {
    background: #d4a373;
    border-radius: 4px;
}

body.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: #b87c4a;
}

/* ========== АДАПТИВНОСТЬ НАВИГАЦИИ ========== */
@media screen and (min-width: 1600px) {
    .nav-links-container {
        gap: 35px;
    }

    .nav-links-container a {
        font-size: 26px;
    }
}

@media screen and (min-width: 1401px) and (max-width: 1599px) {
    .nav-links-container {
        gap: 30px;
    }

    .nav-links-container a {
        font-size: 24px;
    }
}

@media screen and (min-width: 1201px) and (max-width: 1400px) {
    .nav-links-container {
        gap: 25px;
    }

    .nav-links-container a {
        font-size: 22px;
    }
}

@media screen and (min-width: 1025px) and (max-width: 1200px) {
    nav {
        min-height: 120px;
        padding: 10px 15px;
    }

    .nav-links-container {
        gap: 15px;
    }

    .nav-links-container a {
        font-size: 20px;
    }

    .logo {
        width: 140px;
        height: 96px;
    }
}

@media screen and (min-width: 812px) and (max-width: 1024px) {
    nav {
        min-height: 100px;
        padding: 10px 15px;
    }

    .nav-links-container {
        gap: 12px;
        margin: 0 10px;
    }

    .nav-links-container a {
        font-size: 16px;
    }

    .logo {
        width: 120px;
        height: 82px;
    }

    .nav-actions {
        gap: 10px;
    }
}

@media screen and (min-width: 672px) and (max-width: 812px) {
    nav {
        min-height: 90px;
        padding: 8px 12px;
    }

    .nav-links-container {
        gap: 8px 10px;
        margin: 0 8px;
    }

    .nav-links-container a {
        font-size: 13px;
    }

    .logo {
        width: 90px;
        height: 62px;
    }
}

@media screen and (max-width: 671px) {
    nav {
        min-height: 60px;
        padding: 5px 30px;
        justify-content: space-between;
        z-index: 104;
    }

    .logo {
        width: 70px;
        height: 48px;
    }

    .logo-container {
        z-index: 105;
        margin-right: 5px;
    }

    .nav-links-container {
        display: none !important;
    }

    .nav-actions {
        margin-left: 5px;
    }

    .burger-menu {
        display: flex;
        margin-left: 5px;
        z-index: 106;
    }

    .floating-cart {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
    }

    .floating-cart img {
        height: 28px;
    }

    .mobile-menu {
        display: flex;
        z-index: 103;
        padding-top: 110px;
    }

    .mobile-menu a {
        font-size: 24px;
        padding: 10px 20px;
        max-width: 280px;
    }

    .mobile-theme-btn {
        padding: 10px 25px;
        min-width: 180px;
    }

    .mobile-theme-btn img {
        height: 28px;
    }

    .mobile-theme-btn span {
        font-size: 22px;
    }

    .menu-overlay {
        z-index: 102;
    }
}

@media screen and (max-width: 375px) {
    nav {
        min-height: 55px;
        padding: 4px 8px;
    }

    .logo {
        width: 60px;
        height: 41px;
    }

    .burger-menu {
        width: 30px;
        height: 22px;
        margin-left: 3px;
    }

    .burger-line {
        height: 3px;
    }

    .burger-menu.active .burger-line:nth-child(1) {
        top: 9px;
    }

    .burger-menu.active .burger-line:nth-child(3) {
        bottom: 9px;
    }

    .mobile-menu a {
        font-size: 22px;
        padding: 8px 15px;
    }

    .mobile-theme-btn {
        padding: 8px 20px;
        min-width: 160px;
        gap: 10px;
    }

    .mobile-theme-btn img {
        height: 24px;
    }

    .mobile-theme-btn span {
        font-size: 20px;
    }

    .floating-cart {
        width: 50px;
        height: 50px;
        bottom: 12px;
        right: 12px;
    }

    .floating-cart img {
        height: 25px;
    }

    .floating-cart .cart-count {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .mobile-menu {
        padding-top: 65px;
    }
}

/* ========== ПОДСКАЗКИ ========== */
.field-hint {
    display: block;
    font-size: 11px;
    margin-top: 5px;
    min-height: 16px;
}

.field-hint.error {
    color: #f44336;
}

.field-hint.success {
    color: #4caf50;
}