/* ==========================================================================
   СОДЕРЖАНИЕ (TABLE OF CONTENTS):
   1. VARIABLES & RESET      — Переменные, сброс стилей, базовые теги
   2. LAYOUT & UTILITIES     — Контейнеры, универсальные сетки и хелперы
   3. UI COMPONENTS          — Переиспользуемые кнопки, карточки, бейджи
   4. NAVIGATION & HEADER    — Шапка, логотип, контакты и мобильное меню
   5. PAGE SECTIONS          — Hero, About, Gallery, Sliders
   6. INNER PAGES            — Прайс-лист, правила, контакты
   7. MODALS & LIGHTBOX      — Модальные окна и просмотр фото
   8. ADMIN & AUTH           — Логин и панель администратора
   9. MEDIA QUERIES          — Адаптив (1024px, 992px, 768px, 576px, 380px)
   ========================================================================== */


/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    --primary-orange: #ff7a21;
    --primary-green: #34d399;
    --primary-red: #ef4444;
    --text-dark: #222222;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --font-main: 'Montserrat', sans-serif;
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}


/* ==========================================================================
   2. LAYOUT & UTILITIES
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
}

.nowrap {
    white-space: nowrap;
}

.mt-15 {
    margin-top: 15px;
}

.table-container,
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}


/* ==========================================================================
   3. UI COMPONENTS
   ========================================================================== */
/* --- Кнопки --- */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-orange);
    color: var(--text-light);
    padding: 16px 32px;
    border-radius: 30px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-align: center;
}

.btn-primary:hover {
    background-color: #e66a15;
}

.btn-gray {
    display: inline-block;
    background-color: #e2e8f0;
    color: #334155;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    text-align: center;
}

.btn-gray:hover {
    background-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-2px);
}

.link-all {
    color: var(--primary-green);
    font-weight: 500;
    text-decoration: underline;
}

/* --- Инфо-карточки --- */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: -30px;
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.info-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 5px;
    font-weight: 500;
}

.info-text p {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.highlight-card {
    background: linear-gradient(135deg, #ff7a00, #e05500);
    color: #fff;
}

.highlight-card .info-text h4 {
    color: rgba(255, 255, 255, 0.8);
}

.highlight-card .info-text p,
.highlight-card .phone-link {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
}

/* --- Предупреждения и инфо-панели --- */
.alert-box {
    background: #fff1f2;
    border-left: 5px solid #f43f5e;
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.alert-title {
    color: #be123c;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-text {
    color: #9f1239;
    font-size: 14px;
    line-height: 1.6;
}

.alert-panel {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    color: #991b1b;
    margin-top: 15px;
    font-weight: 500;
}

.info-panel {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    color: #166534;
    margin-top: 15px;
    font-weight: 500;
}

.info-panel.center-msg {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-top: 25px;
    border-left: none;
    border-radius: 8px;
}

/* --- Таблицы --- */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 500px;
}

.custom-table th,
.custom-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.custom-table th {
    background-color: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    font-size: 15px;
}

.custom-table tr:hover {
    background-color: #f8fafc;
}


/* ==========================================================================
   4. NAVIGATION & HEADER
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 12px;
    opacity: 0.8;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.contact-info {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.phone {
    font-weight: 600;
    font-size: 18px;
}

.contact-text {
    font-size: 12px;
    opacity: 0.8;
}

.burger-btn {
    width: 50px;
    height: 50px;
    background-color: var(--primary-green);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.burger-btn:hover {
    transform: scale(1.05);
}

.burger-btn span {
    width: 20px;
    height: 2px;
    background-color: var(--text-light);
}

/* --- Мобильное меню --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

.mobile-menu.active {
    right: 0;
    visibility: visible;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mobile-menu.active .mobile-menu-overlay {
    opacity: 1;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85%;
    height: 100%;
    background: #1a212d;
    color: #fff;
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    z-index: 2;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--primary-orange);
}

.menu-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.menu-header .logo-title {
    font-size: 20px;
    font-weight: 700;
}

.menu-header .logo-subtitle {
    font-size: 12px;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 6px;
}

.mobile-nav a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ff7a00;
    padding-left: 20px;
}

.mobile-menu-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff7a00, #e05500);
    color: #fff;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.weather-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.4);
}


/* ==========================================================================
   5. PAGE SECTIONS (HOME & GENERAL)
   ========================================================================== */
/* --- Hero --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-image: url('https://images.unsplash.com/photo-1511497584788-876760111969?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
}

.hero .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 100% !important;
    width: 100%;
    padding: 0 30px;
}

.hero-content {
    margin: auto;
    text-align: center;
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0,0,0,0.7);
    width: 100%;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
    opacity: 0.95;
    max-width: 900px;
}

/* --- Карточки номеров (Home) --- */
.rooms-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.room-card {
    position: relative;
    width: calc(33.333% - 20px);
    height: 450px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.card-2 { margin-top: 50px; }
.card-3 { margin-top: 100px; }

.room-card a {
    display: block;
    height: 100%;
    position: relative;
}

.room-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.room-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: var(--text-light);
}

.room-info h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.room-info p {
    font-size: 14px;
    opacity: 0.8;
}

/* --- О нас --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 500px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.about-description {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-icon {
    font-size: 32px;
    background-color: white;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.feature-text p {
    color: #666;
    font-size: 14px;
}

/* --- Галерея --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 200px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.gallery-item img:hover {
    transform: scale(1.1);
}

.map-item {
    position: relative;
}

.map-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.sauna-gallery {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.sauna-gallery .gallery-item {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- Слайдер номеров --- */
.rooms-slider-wrapper {
    position: relative;
    margin-top: 40px;
    padding: 0 60px;
}

.rooms-slider-window {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.rooms-slider-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
}

.room-catalog-item {
    flex: 0 0 100%;
    min-width: 100%;
    display: flex;
    background: #fff;
    gap: 30px;
    padding: 30px;
    box-sizing: border-box;
}

.room-info-part {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.room-info-part h2 {
    font-size: 28px;
    color: #1e293b;
    margin-bottom: 15px;
    line-height: 1.2;
}

.room-desc {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.6;
}

.room-info-part ul {
    padding-left: 20px;
    margin-bottom: 15px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.room-info-part li {
    margin-bottom: 5px;
}

.room-price {
    font-size: 22px;
    font-weight: 700;
    color: #1a212d;
    margin: 15px 0 25px 0;
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid #ff7a00;
    width: 100%;
}

.room-photos-part {
    flex: 1.5;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    grid-auto-rows: 160px;
    gap: 15px;
    align-content: start;
}

.room-photos-part img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s;
    cursor: zoom-in;
}

.room-photos-part img:hover {
    transform: scale(1.03);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #1a212d;
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: #ff7a00;
}

.slider-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.5;
}

.prev-btn { left: 0; }
.next-btn { right: 0; }


/* ==========================================================================
   6. INNER PAGES (GENERAL, PRICE, RULES, CONTACTS)
   ========================================================================== */
.inner-page {
    background-color: #f8fafc;
}

.page-header {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1540555700478-4be289fbecef?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding-bottom: 70px;
    z-index: 1;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 33, 45, 0.85);
    z-index: -1;
}

.page-title-content {
    margin-top: 60px;
    text-align: center;
}

.page-title-content h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-title-content p {
    color: #a0aec0;
    font-size: 18px;
}

/* Фоны внутренних шапок */
.banya-header { background-image: url('https://images.unsplash.com/photo-1510798831971-661eb04b3739?auto=format&fit=crop&w=1920&q=80'); }
.sauna-header { background-image: url('https://images.unsplash.com/photo-1540555700478-4be289fbecef?auto=format&fit=crop&w=1920&q=80'); }
.gostinica-header { background-image: url('https://images.unsplash.com/photo-1566665797739-1674de7a421a?auto=format&fit=crop&w=1920&q=80'); }
.bereg-header,
.price-header,
.dnp-header { background-image: url('https://images.unsplash.com/photo-1501785888041-af3ef285b470?q=80&w=1920&auto=format&fit=crop'); }
.dsb-header { background-image: url('https://images.unsplash.com/photo-1449844908441-8829872d2607?q=80&w=1920&auto=format&fit=crop'); }

/* --- Прайс-лист --- */
.price-banner {
    background-color: #1e293b;
    padding: 120px 20px 60px;
    text-align: center;
}

.price-banner h1 {
    color: #ffffff;
    font-size: 42px;
    margin-bottom: 10px;
}

.price-banner p {
    color: #94a3b8;
    font-size: 18px;
}

.price-page {
    background-color: #f8fafc;
    padding: 50px 0;
    color: #334155;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.price-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.price-card-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #10b981;
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.price-item:last-child {
    border-bottom: none;
}

.price-name {
    font-size: 15px;
    color: #475569;
    padding-right: 15px;
    line-height: 1.4;
}

.price-subtext {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
}

.price-tag {
    font-weight: 700;
    font-size: 16px;
    color: #0f172a;
    white-space: nowrap;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
}

.price-tag-highlight {
    background: #ecfdf5;
    color: #059669;
}

.goods-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.goods-badge {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    color: #334155;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* --- Правила посещения --- */
body.rules-page {
    background-color: #f8fafc;
}

.rules-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.rule-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.rule-card-header {
    background: #1e293b;
    color: #ffffff;
    padding: 20px 25px;
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.rule-card-body {
    padding: 25px;
    color: #334155;
    line-height: 1.6;
}

.rule-card-body h4 {
    color: #0f172a;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.rule-card-body h4:first-child {
    margin-top: 0;
}

.rule-card-body h4.danger-title {
    color: #ef4444;
    font-weight: bold;
}

.rule-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.rule-list li {
    margin-bottom: 8px;
}

.rule-list.forbidden li::marker {
    color: #ef4444;
}

.capacity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.capacity-item {
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.capacity-item span {
    font-weight: 600;
    color: #0f172a;
}

/* --- Контакты --- */
.contacts-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px;
}

.contact-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.contact-address {
    font-size: 18px;
    color: #1e293b;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 20px;
}

.contact-address span {
    display: block;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 5px;
}

.contact-alert {
    background: #fef2f2;
    border: 2px dashed #ef4444;
    color: #b91c1c;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 30px;
}

.phone-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.phone-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.phone-desc {
    color: #475569;
    font-size: 16px;
    line-height: 1.4;
    flex: 1;
    padding-right: 20px;
}

.phone-link {
    font-size: 22px;
    font-weight: 700;
    color: #10b981;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.phone-link:hover {
    color: #059669;
}


/* ==========================================================================
   7. MODALS & LIGHTBOX
   ========================================================================== */
#lightbox {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    padding: 15px;
}

#lightbox.active {
    display: flex;
}

#lightbox img {
    max-width: 95vw;
    max-height: 85vh;
    border: 3px solid #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    object-fit: contain;
}

/* Общее модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 12px;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 22px;
    cursor: pointer;
    color: #64748b;
    font-weight: bold;
}

.modal-close:hover {
    color: #0f172a;
}
/* ==========================================================================
   8. ADMIN & AUTH
   ========================================================================== */
/* --- Вход (Login) --- */
body.login-body {
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: #f8fafc;
    padding: 20px;
}

.login-card {
    background: #1e293b;
    padding: 35px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1px solid #334155;
}

.login-card h1 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
    color: #38bdf8;
}

.login-card .form-group {
    margin-bottom: 18px;
}

.login-card label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #94a3b8;
}

.login-card input[type="text"],
.login-card input[type="password"],
.login-card input[type="number"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #fff;
    font-size: 16px;
    outline: none;
}

.login-card input:focus {
    border-color: #38bdf8;
}

.login-card .btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #0284c7;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.login-card .btn:hover {
    background: #0369a1;
}

.login-card .error {
    background: #ef444422;
    border: 1px solid #ef4444;
    color: #fca5a5;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

.captcha-box {
    background: #0f172a;
    border: 1px dashed #38bdf8;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 18px;
}

.captcha-box p {
    font-size: 18px;
    font-weight: bold;
    color: #38bdf8;
    margin: 6px 0;
    text-align: center;
}

/* --- Панель управления --- */
body.admin-body {
    background: #f8fafc;
    color: #0f172a;
    padding-bottom: 60px;
}

.admin-header {
    background: #0f172a;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.admin-container {
    max-width: 1150px;
    margin: 20px auto;
    padding: 0 15px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.tab-btn {
    padding: 12px 18px;
    background: #e2e8f0;
    border: none;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    color: #475569;
    flex-shrink: 0;
}

.tab-btn.active {
    background: #0284c7;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.alert {
    background: #dcfce7;
    border: 1px solid #22c55e;
    color: #15803d;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    word-break: break-word;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.card h2 {
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
    color: #1e293b;
}

.form-group {
    margin-bottom: 12px;
}

body.admin-body label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    margin-bottom: 4px;
}

body.admin-body input[type="text"],
body.admin-body input[type="number"],
body.admin-body input[type="password"],
body.admin-body textarea,
body.admin-body select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 16px;
}

body.admin-body textarea {
    resize: vertical;
    min-height: 70px;
}

/* Кнопки админки */
.btn {
    background: #0284c7;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn:hover {
    background: #0369a1;
}

.btn-secondary { background: #64748b; }
.btn-secondary:hover { background: #475569; }
.btn-danger { background: #ef4444; }
.btn-success { background: #16a34a; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

.tmpl-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.tmpl-btn:hover {
    background: #e2e8f0;
}

/* Аккордеон и медиа в админке */
.accordion {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-head {
    background: #f1f5f9;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    gap: 10px;
}

.accordion-body {
    padding: 16px;
    display: none;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.accordion-body.active {
    display: block;
}

.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.photo-item {
    position: relative;
    width: 100px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-item form {
    position: absolute;
    top: 2px;
    right: 2px;
}

.photo-item button {
    background: rgba(239,68,68,0.85);
    color: white;
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.price-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.price-row input[name="title"] { flex: 2; min-width: 140px; }
.price-row input[name="subtitle"] { flex: 1.5; min-width: 120px; }
.price-row input[name="price"] { flex: 1.5; min-width: 100px; }
.price-row select[name="category"] { width: 110px; }

.admin-list {
    margin-top: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.admin-item:last-child {
    border-bottom: none;
}


/* ==========================================================================
   9. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */
/* --- До 1024px (Планшеты Landscape) --- */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 44px;
    }

    .about-container {
        gap: 40px;
    }

    .about-image {
        height: 400px;
    }
}

/* --- До 992px (Планшеты Portrait) --- */
@media (max-width: 992px) {
    .section {
        padding: 60px 0;
    }

    .rooms-grid {
        flex-direction: column;
        gap: 24px;
    }

    .room-card {
        width: 100%;
        height: 350px;
        margin-top: 0 !important;
    }

    .about-container {
        flex-direction: column;
    }

    .about-image {
        width: 100%;
        height: 350px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rooms-slider-wrapper {
        padding: 0 40px;
    }

    .room-catalog-item {
        flex-direction: column;
        padding: 20px;
    }

    .room-photos-part {
        grid-template-rows: auto;
    }
}

/* --- До 768px (Мобильные крупные) --- */
@media (max-width: 768px) {
    .nowrap {
        white-space: normal;
    }

    .container {
        padding: 0 16px;
    }

    .navbar {
        padding: 12px 0;
    }

    .contact-info {
        display: none;
    }

    .logo-title {
        font-size: 20px;
    }

    .hero {
        height: auto;
        min-height: 500px;
        padding: 0 0 40px 0;
    }

    .hero-content {
        padding-top: 40px;
        padding-bottom: 20px;
    }

    .hero-content h1 {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .hero-content p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-header {
        padding-bottom: 50px;
    }

    .page-title-content {
        margin-top: 35px;
    }

    .page-title-content h1 {
        font-size: 30px;
    }

    .page-title-content p,
    .price-banner p {
        font-size: 15px;
    }

    .price-banner {
        padding: 80px 16px 40px;
    }

    .price-banner h1 {
        font-size: 30px;
    }

    .info-cards-grid {
        margin-top: 20px;
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 30px;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .contacts-wrapper {
        padding: 30px 16px;
    }

    .contact-card {
        padding: 20px;
    }

    .phone-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .phone-desc {
        padding-right: 0;
    }

    .phone-link {
        font-size: 18px;
    }

    /* Адаптив админки */
    .admin-header {
        padding: 12px 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-header h2 {
        font-size: 15px;
        line-height: 1.3;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
        margin-top: 5px;
    }

    .admin-container {
        padding: 0 10px;
        margin: 10px auto;
    }

    .card {
        padding: 14px;
        border-radius: 10px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .accordion-head {
        font-size: 14px;
        padding: 10px 12px;
    }

    .price-row {
        background: #f8fafc;
        padding: 10px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        flex-direction: column;
        align-items: stretch;
    }

    .price-row input[name="title"],
    .price-row input[name="subtitle"],
    .price-row input[name="price"],
    .price-row select[name="category"] {
        width: 100%;
        flex: none;
    }

    .price-row .btn-sm {
        padding: 8px 12px;
        font-size: 14px;
    }

    .photo-item {
        width: 75px;
        height: 65px;
    }

    .modal-content {
        padding: 18px;
    }
}

/* --- До 576px (Смартфоны) --- */
@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 26px;
    }

    .room-card {
        height: 280px;
    }

    .about-image {
        height: 220px;
    }

    .about-content h2 {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .about-description {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .feature-item {
        gap: 12px;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 220px;
    }

    .rooms-slider-wrapper {
        padding: 0;
    }

    .slider-btn {
        display: none;
    }

    .rooms-slider-window {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .room-catalog-item {
        scroll-snap-align: start;
    }

    .room-info-part h2 {
        font-size: 22px;
    }

    .room-photos-part {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .room-photos-part img {
        height: 120px;
    }

    .price-grid {
        grid-template-columns: 1fr;
    }

    .price-card {
        padding: 18px;
    }

    .price-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .price-tag {
        align-self: flex-start;
    }

    .table-container {
        padding: 12px;
        border-radius: 12px;
    }

    .success-card,
    .failure-card {
        padding: 30px 16px;
    }

    .success-title,
    .failure-title {
        font-size: 20px;
    }

    .btn-primary,
    .btn-gray {
        width: 100%;
        padding: 14px 20px;
    }
}

/* --- До 380px (Компактные экраны) --- */
@media (max-width: 380px) {
    .logo-title {
        font-size: 18px;
    }

    .logo-subtitle {
        font-size: 10px;
    }

    .hero-content h1 {
        font-size: 22px;
    }

    .room-photos-part,
    .capacity-grid {
        grid-template-columns: 1fr;
    }
}