/* ===== CSS VARIABLES ===== */
:root {
    /* Цветовая палитра */
    --primary: #825339;
    --primary-dark: #672a09;
    --primary-light: #a07861;
    --accent: #795548;
    --success: #22c55e;
    --muted: #6b7280;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* Bootstrap переменные */
    --bs-primary: #825339;
    --bs-primary-rgb: 130, 83, 57;
    --bs-primary-border-subtle: #795548;
    
    /* Фокусы */
    --bs-focus-ring-width: 0.25rem;
    --bs-focus-ring-opacity: 0.25;
    --bs-focus-ring-color: rgba(130, 83, 57, 0.25);
    --bs-focus-ring-blur: 0;
    --input-focus-border-color: #825339;
    --input-focus-box-shadow: 0 0 0 0.25rem rgba(130, 83, 57, 0.25);
    
    /* Фоны и тени */
    --bg: #f5f7fb;
    --card: #ffffff;
    --border: #e5e7eb;
    --shadow-soft: 0 12px 35px rgba(15, 23, 42, 0.12);
    --shadow-strong: 0 22px 60px rgba(15, 23, 42, 0.16);
    --shadow-focus: 0 0 0 0.25rem rgba(130, 83, 57, 0.25);
    
    /* Градиенты */
    --gradient-hero: linear-gradient(135deg, #2b82f6 0%, #6f5bff 45%, #ff6b35 100%);
    --gradient-primary: linear-gradient(135deg, #825339 0%, #672a09 100%);
    
    /* Типографика */
    --font: 'Cuprum', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Russo One', 'Cuprum', sans-serif;
    
    /* Иконки */
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    
    /* Bootstrap Accordion Customization */
    --bs-accordion-btn-focus-border-color: var(--input-focus-border-color);
    --bs-accordion-btn-focus-box-shadow: var(--input-focus-box-shadow);
    --bs-accordion-active-color: var(--primary);
    --bs-accordion-active-bg: rgba(130, 83, 57, 0.1);
    
    /* Bootstrap Button Customization */
    --bs-btn-focus-box-shadow: var(--input-focus-box-shadow);
    
    /* Bootstrap Form Controls */
    --bs-form-control-focus-border-color: var(--input-focus-border-color);
    --bs-form-control-focus-box-shadow: var(--input-focus-box-shadow);
    
    /* Bootstrap Components Colors */
    --bs-primary: var(--primary);
    --bs-secondary: var(--muted);
    --bs-success: var(--success);
    --bs-danger: var(--danger);
    --bs-warning: var(--warning);
    --bs-info: var(--info);
    
    /* Additional Bootstrap variables for better consistency */
    --bs-link-color: var(--primary);
    --bs-link-hover-color: var(--primary-dark);
    --bs-border-color: var(--border);
    --bs-light-border-subtle: rgba(130, 83, 57, 0.1);
    --bs-primary-border-subtle: rgba(130, 83, 57, 0.3);
    --bs-primary-bg-subtle: rgba(130, 83, 57, 0.15);

    
    /* Dropdowns */
    --bs-dropdown-link-active-bg: var(--primary);
    
    /* Progress bars */
    --bs-progress-bar-bg: var(--primary);
    
    /* Alerts */
    --bs-alert-border-color: rgba(130, 83, 57, 0.3);
    --bs-alert-bg: rgba(130, 83, 57, 0.1);
    
    /* Modals */
    --bs-modal-footer-border-color: var(--border);
    --bs-modal-header-border-color: var(--border);
}


/* ===== RESET & BASE STYLES ===== */
* { 
    box-sizing: border-box; 
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: #0f172a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1f2937;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }

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

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== LINKS ===== */
a { 
    color: var(--primary); 
    text-decoration: none; 
    transition: all 0.2s ease; 
}

a:hover { 
    color: var(--primary-dark); 
    text-decoration: underline;
}

/* ===== FOCUS STYLES ===== */
/* Базовый фокус для всех элементов */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

/* Убираем outline для кликов мышью */
:focus:not(:focus-visible) {
    outline: none;
}

/* Кнопки */
.btn:focus-visible,
.btn-primary:focus-visible {
    box-shadow: var(--shadow-focus) !important;
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Формы */
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible,
.form-range:focus-visible {
    border-color: var(--input-focus-border-color);
    box-shadow: var(--input-focus-box-shadow) !important;
}

/* Навигация */
.nav-link:focus-visible {
    color: var(--primary-dark);
    text-decoration: underline;
    text-decoration-color: var(--primary);
}

/* Аккордеон */
.accordion-button:focus-visible {
    border-color: var(--input-focus-border-color);
    box-shadow: 0 0 0 var(--bs-focus-ring-width) var(--bs-focus-ring-color);
}

/* Dropdown */
.dropdown-item:focus-visible {
    background-color: rgba(130, 83, 57, 0.1);
    color: var(--primary-dark);
}

/* Модальные окна */
.btn-close:focus-visible {
    box-shadow: 0 0 0 var(--bs-focus-ring-width) var(--bs-focus-ring-color);
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--font);
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
}

.btn-outline-primary {
    --bs-btn-color: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary);
    --bs-btn-active-border-color: var(--primary);
}

.btn-light {
    --bs-btn-color: var(--primary);
    --bs-btn-bg: #f8f9fa;
    --bs-btn-border-color: #f8f9fa;
    --bs-btn-hover-color: var(--primary);
    --bs-btn-hover-bg: #d3d4d5;
    --bs-btn-hover-border-color: #c6c7c8;
}

.btn-outline-light {
    --bs-btn-color: #f8f9fa;
    --bs-btn-border-color: #f8f9fa;
    border-width: 2px;
    --bs-btn-hover-color: var(--primary);
    --bs-btn-hover-bg: #f8f9fa;
    --bs-btn-hover-border-color: #f8f9fa;
}
.btn-white {
    --bs-btn-color: var(--primary);
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #fff;
    --bs-btn-hover-color: var(--primary);
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: #fff;
}

.btn-gradient {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
}

.btn-gradient:hover {
    background: var(--gradient-primary);
    color: #fff;
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-soft {
    background: rgba(130, 83, 57, 0.1);
    color: var(--primary);
    border: 1px solid rgba(130, 83, 57, 0.2);
}

.btn-soft:hover {
    background: rgba(130, 83, 57, 0.2);
    color: var(--primary-dark);
}

/* ===== NAVIGATION ===== */
.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 800;
    font-family: var(--font-heading);
}

.navbar-brand:focus-visible,
.navbar-brand:hover {
    color: var(--primary);
}

.navbar .nav-link {
    font-weight: 600;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff;
    background: rgba(130, 83, 57, 0.1);
}

.navbar .nav-link:focus-visible {
    background: rgba(130, 83, 57, 0.1);
    color: #fff;
}

/* Mobile bottom navigation */
.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: var(--bs-primary);
    border-top: 1px solid var(--border);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}

.mobile-bottom-nav__item {
    appearance: none;
    border: 0;
    background: none;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 11px;
    padding: 6px 0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-bottom-nav__item i {
    font-size: 18px;
    line-height: 1;
}

.mobile-bottom-nav__item:hover,
.mobile-bottom-nav__item.active {
    color: #fff;
    background: rgba(130, 83, 57, 0.1);
}

.mobile-bottom-nav__item:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

@media (max-width: 991.98px) {
    body { padding-bottom: 72px; }
}

/* ===== CARDS ===== */
.card {
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    background: var(--card);
}

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

.card-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
}

.complex-card .card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.feature-card {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    text-align: center;
}

.tariff-card {
    border-radius: 16px;
    border: 2px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.tariff-card .ribbon {
    position: absolute;
    top: 18px;
    right: -56px;
    background: var(--accent);
    color: #fff;
    padding: 8px 80px;
    transform: rotate(35deg);
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(130, 83, 57, 0.28);
}

/* ===== FORM ELEMENTS ===== */
.form-control,
.form-select {
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    font-family: var(--font);
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--input-focus-border-color);
    box-shadow: var(--input-focus-box-shadow);
}

/* Range slider - важен для #peopleRange */
#peopleRange {
    --bs-form-range-track-bg: var(--border);
    --bs-form-range-thumb-bg: var(--primary);
    --bs-form-range-thumb-border: 2px solid #fff;
    --bs-form-range-thumb-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 0.5rem;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}

#peopleRange:focus-visible {
    outline: none;
}

/* Webkit браузеры (Chrome, Safari, Edge) */
#peopleRange::-webkit-slider-track {
    width: 100%;
    height: 0.5rem;
    background-color: var(--border);
    border-radius: 0.25rem;
}

#peopleRange::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    background-color: var(--primary);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(130, 83, 57, 0.3);
    cursor: pointer;
    margin-top: -0.375rem;
    transition: all 0.2s ease;
}

#peopleRange:focus-visible::-webkit-slider-thumb {
    background-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(130, 83, 57, 0.25);
    transform: scale(1.1);
}

/* Firefox */
#peopleRange::-moz-range-track {
    width: 100%;
    height: 0.5rem;
    background-color: var(--border);
    border-radius: 0.25rem;
}

#peopleRange::-moz-range-thumb {
    width: 1.25rem;
    height: 1.25rem;
    background-color: var(--primary);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(130, 83, 57, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

#peopleRange:focus-visible::-moz-range-thumb {
    background-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(130, 83, 57, 0.25);
    transform: scale(1.1);
}

/* Скрываем стрелки у number input */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Checkbox и Radio */
.form-check-input {
    border: 2px solid var(--border);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus-visible {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(130, 83, 57, 0.25);
}

/* ===== SEARCH FORM ===== */
.search-card .form-control,
.search-card .form-select {
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.8);
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

/* ===== BADGES & TAGS ===== */
.badge {
    font-weight: 600;
    border-radius: 12px;
}

.badge-soft {
    background: rgb(255 255 255 / 41%);
    color: var(--primary);
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 30px;
}

.badge-accent {
    background: rgba(121, 85, 72, 0.12);
    color: var(--accent);
}

.badge-ghost {
    background: rgba(78, 115, 223, .12);
    color: var(--primary);
    padding-top: 8px;
    padding-right: 12px;
    padding-bottom: 8px;
    padding-left: 12px;
    border-radius: 12px;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-weight: 600;
    color: #fff;
}

.pill-badge.soft {
    background: #eef2ff;
    color: #1f2937;
    border: none;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-chip.active {
    background: rgba(130, 83, 57, 0.12);
    color: var(--primary);
    border-color: rgba(130, 83, 57, 0.4);
}

.filter-chip:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Convenience strip (baths conveniences) */
.conv-wrap {
    position: relative;
}

.conv-strip {
    display: flex;
    gap: 8px;
    overflow: hidden;
    scroll-behavior: smooth;
    padding: 4px 34px;
}

.conv-chip {
    white-space: nowrap;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.conv-chip:hover,
.conv-chip.active {
    background: rgba(130, 83, 57, 0.1);
    border-color: var(--primary);
}

.conv-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.10);
}

.conv-badge-free {
    background: #e9f9ee;
    color: #1f7a3f;
}

.conv-badge-paid {
    background: #fff3cd;
    color: #8a6d3b;
}

.conv-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    user-select: none;
    transition: all 0.2s ease;
}

.conv-nav:hover {
    background: rgba(130, 83, 57, 0.1);
    border-color: var(--primary);
}

.conv-nav:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.conv-nav i {
    font-size: 18px;
    line-height: 1;
}

.conv-prev { left: 4px; }
.conv-next { right: 4px; }

.conv-nav.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* ===== SECTIONS ===== */
.hero-section {
    background: var(--gradient-hero);
    color: #fff;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 35%),
                radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.16), transparent 40%);
}

.gradient-hero {
    background: var(--gradient-primary);
}

.bg-primary-dark {
    background-color: var(--primary-dark) !important;
    color: #fff;
}

.cta-banner {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

/* ===== MAP ===== */
.map-container {
    min-height: 500px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

/* Hide Yandex Map copyrights */
ymaps.ymaps-2-1-79-map-copyrights-promo,
ymaps-2-1-79-copyright__layout {
    display: none !important;
}

/* ===== ACCORDION ===== */
.accordion-button {
    font-weight: 600;
    color: #1f2937;
    border-radius: 12px !important;
}

.accordion-button:not(.collapsed) {
    color: var(--accent);
    background-color: rgba(121, 85, 72, 0.1);
    box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color);
}

.accordion-button:focus-visible {
    border-color: var(--input-focus-border-color);
    box-shadow: 0 0 0 var(--bs-focus-ring-width) var(--bs-focus-ring-color);
}

.accordion-item:first-of-type .accordion-button {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* ===== VIEW TOGGLE ===== */
.view-toggle .btn {
    background: transparent;
    color: var(--muted) !important;
    border-color: var(--border) !important;
}

.view-toggle .btn.active,
.view-toggle .btn:active {
    color: #ffffff !important;
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.view-toggle .btn:focus-visible {
    box-shadow: var(--shadow-focus) !important;
}

/* ===== PRELOADER ===== */
#preload {
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: all ease 0.5s;
    opacity: 1;
    visibility: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

#preload .main-content {
    width: 80px;
    height: 80px;
    position: relative;
}

#preload .main-content .circle:nth-child(1) {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: circleScrollMinus 1s linear 0s infinite;
}

#preload .main-content .circle:nth-child(1)::before {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    right: 0;
    bottom: 0;
    border-radius: 0 0 200px 0;
    border-right: 3px solid var(--primary);
    border-bottom: 3px solid var(--primary);
}

#preload .main-content .circle:nth-child(1)::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    left: 0;
    top: 0;
    border-radius: 200px 0 0 0;
    border-left: 3px solid var(--primary);
    border-top: 3px solid var(--primary);
}

#preload .main-content .circle:nth-child(1) span {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #cde8ff;
    filter: blur(60px);
}

#preload .main-content .circle:nth-child(1) .circle-child {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

#preload .main-content .circle:nth-child(1) .circle-child::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    right: 0;
    bottom: 0;
    border-radius: 0 0 200px 0;
    border-right: 3px solid var(--primary);
    border-bottom: 3px solid var(--primary);
}

#preload .main-content .circle:nth-child(1) .circle-child::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 0;
    top: 0;
    border-radius: 200px 0 0 0;
    border-left: 3px solid var(--primary);
    border-top: 3px solid var(--primary);
}

#preload .main-content .circle:nth-child(2) {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transform: rotate(90deg);
    animation: circleScroll2 1s linear 0s infinite;
}

#preload .main-content .circle:nth-child(2)::before {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0;
    bottom: 0;
    border-radius: 0 0 200px 0;
    border-right: 3px solid rgba(238, 175, 255, 0.8078431373);
    border-bottom: 3px solid rgba(238, 175, 255, 0.8078431373);
}

#preload .main-content .circle:nth-child(2)::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    left: 0;
    top: 0;
    border-radius: 200px 0 0 0;
    border-left: 3px solid rgba(238, 175, 255, 0.8078431373);
    border-top: 3px solid rgba(238, 175, 255, 0.8078431373);
}

#preload.fade-out {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
}

/* ===== ANIMATIONS ===== */
@keyframes circleScrollMinus {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes circleScroll2 {
    0% { transform: rotate(90deg); }
    100% { transform: rotate(450deg); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skeleton {
    position: relative;
    overflow: hidden;
    background: #e5e7eb;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

/* ===== UTILITY CLASSES ===== */
.pl-5 { padding-left: 5px; }
.text-muted-2 { color: #9ca3af; }

.mini-badge {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 600;
}

.icon-pill {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(130, 83, 57, 0.1);
    color: var(--primary);
}

.alert-soft {
    border-radius: 12px;
    border: 1px dashed rgba(130, 83, 57, 0.4);
    background: rgba(130, 83, 57, 0.06);
    color: #1f2937;
}

.price-tag {
    font-weight: 800;
    color: var(--primary);
}

.shadow-hover {
    transition: all 0.25s ease;
}

.shadow-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.dashboard-preview {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

/* ===== LISTS ===== */
.list-check {
    list-style: none;
    padding-left: 0;
}

.list-check li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.list-check i {
    color: var(--success);
    margin-top: 3px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== FOOTER ===== */
.footer-nav a,
.footer-links a {
    color: #9ca3af;
    transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-links a:hover {
    color: var(--primary);
}

.footer-nav a:focus-visible,
.footer-links a:focus-visible {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: 100vh;
    background: radial-gradient(circle at 20% 20%, rgba(130, 83, 57, 0.12), transparent 25%),
                radial-gradient(circle at 80% 10%, rgba(255, 107, 53, 0.12), transparent 30%),
                var(--bg);
    display: flex;
    align-items: center;
}

.auth-card {
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #795548;
    color: #fff;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
}

.auth-card .form-control {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
}

.auth-card .form-control:focus {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1);
}

.auth-card .form-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    .hero-section {
        border-radius: 0;
        margin-left: -1rem;
        margin-right: -1rem;
    }
    
    .glass-card {
        margin: 0 -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .mobile-bottom-nav {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .mobile-bottom-nav__item:nth-child(6) {
        display: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .mobile-bottom-nav,
    #preload,
    .btn,
    .form-control,
    .form-select {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt !important;
    }
    
    a {
        color: black !important;
        text-decoration: none !important;
    }
}

.navbar-toggler-icon {
    display: inline-block;
    width: 2em;
    height: 2em;
    vertical-align: middle;
    background-image: url('https://banya-online.ru/assets/img/icons/menu.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

.mr-15 {
 margin-right: 15px;   
 color: var(--primary);
}

.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: 0 0 0 0;
}

.navbar-toggler {
    padding: 0px;
}

/* Стили для мобильного поиска городов */
#citySelectorOffcanvas .offcanvas-body {
    padding-top: 0;
}

#mobileCityList {
    border-radius: 0.5rem;
}

#mobileCityList .list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 0;
}

#mobileCityList .list-group-item:last-child {
    border-bottom: none;
}

#mobileCityList .list-group-item.active {
    background-color: #fff5ef;
    color: #825339;
    border-left: 3px solid #825339;
    border-radius: 12px;
}

#mobileCityList .list-group-item:hover:not(.active) {
    background-color: #f8f9fa;
}

.list-group-header {
    padding: 0.5rem 1rem;
    font-weight: 500;
}

#popularCitiesMobile .btn {
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
}

/* Улучшение отображения для мобильных */
@media (max-width: 576px) {
    #citySelectorOffcanvas {
        border-top-left-radius: 1rem;
        border-top-right-radius: 1rem;
    }
    
    #mobileCitySearch {
        font-size: 16px; /* Предотвращает зум в iOS */
    }
}


.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: #fff;
}

/* Accordion active state */
.accordion-button:not(.collapsed) {
    color: var(--bs-accordion-active-color);
    background-color: var(--bs-accordion-active-bg);
}

/* Active accordion icon color */
.accordion-button:not(.collapsed)::after {
    filter: brightness(0) saturate(100%) invert(23%) sepia(14%) saturate(2844%) hue-rotate(341deg) brightness(95%) contrast(86%);
}

/* Buttons */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--primary-light);
    --bs-btn-disabled-border-color: var(--primary-light);
}

/* Form controls focus */
.form-control:focus,
.form-select:focus {
    border-color: var(--bs-form-control-focus-border-color);
    box-shadow: var(--bs-form-control-focus-box-shadow);
}

/* Links */
a {
    color: var(--bs-link-color);
    text-decoration: none;
}

a:hover {
    color: var(--bs-link-hover-color);
}

/* Pagination active state */
.page-link {
    color: var(--primary);
}

.page-link:hover {
    color: var(--primary-dark);
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Nav tabs active */
.nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}


    
    