/* ============================================
   ВНУТРЕННИЕ СТРАНИЦЫ — DARK COSMIC THEME
   ============================================ */

.page-navbar {
    background: hsla(222, 40%, 12%, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid hsla(38, 90%, 55%, 0.15);
    box-shadow: 0 8px 32px hsla(222, 60%, 4%, 0.3);
}

.page-navbar .logo-img {
    height: 28px;
}

.page-header {
    min-height: 280px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/static/img/hero-hotel.jpg') center center / cover no-repeat;
    opacity: 0.15;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, hsla(222, 47%, 6%, 0.8) 0%, hsl(222, 47%, 6%) 100%);
}

.page-header-content {
    position: relative;
    z-index: 2;
    padding: 80px 0 60px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--gold);
}

.breadcrumb-sep {
    color: hsla(215, 20%, 55%, 0.3);
}

.breadcrumb-current {
    color: var(--text-muted);
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

/* ===== PAGE CONTENT (dark bg by default) ===== */
.page-content {
    background: var(--cosmic-deep);
    color: var(--text-light);
    padding-bottom: 60px;
    flex: 1;
}

/* ===== CMS CONTENT ===== */
.cms-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 40px 0;
}
.cms-content h1,
.cms-content h2,
.cms-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    margin-top: 32px;
    margin-bottom: 16px;
}
.cms-content h2 { font-size: 1.5rem; }
.cms-content h3 { font-size: 1.2rem; }
.cms-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}
.cms-content ul,
.cms-content ol {
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-left: 24px;
}
.cms-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}
.cms-content strong {
    color: var(--text-light);
}
.cms-content a {
    color: var(--gold);
    text-decoration: none;
}
.cms-content a:hover {
    text-decoration: underline;
}
.cms-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.cms-content th,
.cms-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--cosmic-border);
    color: var(--text-muted);
}
.cms-content th {
    color: var(--text-light);
    font-weight: 600;
}
.cms-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.cms-gallery-item img {
    width: 100%;
    border-radius: 12px;
    transition: transform 0.3s;
}
.cms-gallery-item img:hover {
    transform: scale(1.02);
}
.cms-gallery-caption {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* ===== LIGHT THEME PAGES (rules, offers) ===== */
.page-content.light-theme {
    background: #f8f9fa;
    color: #333;
}

.light-theme .page-subtitle { color: #666; }

.light-theme .section-icon {
    background: linear-gradient(135deg, hsl(38, 90%, 55%), hsl(38, 80%, 70%));
    color: hsl(222, 47%, 6%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.light-theme .section-icon svg {
    width: 22px;
    height: 22px;
}

/* ===== RULES PAGE LAYOUT ===== */
.light-theme .rules-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
}

.light-theme .rules-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.light-theme .rules-nav {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e0e0e0;
}

.light-theme .rules-nav h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: hsl(222, 47%, 18%);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eee;
}

.light-theme .rules-nav ul {
    list-style: none;
}

.light-theme .rules-nav li {
    margin-bottom: 4px;
}

.light-theme .rules-nav a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.light-theme .rules-nav a:hover {
    background: hsla(38, 90%, 55%, 0.08);
    color: hsl(38, 90%, 55%);
}

.light-theme .rules-nav a.active {
    background: hsla(38, 90%, 55%, 0.12);
    color: var(--gold);
    border-left-color: var(--gold);
}

/* Rules sections */
.light-theme .rules-section {
    background: #fff;
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 30px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.light-theme .rules-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: hsl(222, 47%, 18%) !important;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* Rule cards */
.light-theme .rule-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.light-theme .rule-card {
    padding: 25px;
    background: #f5f5f5;
    border-radius: 10px;
    border-left: 4px solid var(--gold);
}

.light-theme .rule-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(222, 47%, 18%);
    margin-bottom: 10px;
}

.light-theme .rule-card p {
    font-size: 0.95rem;
    color: #555 !important;
    line-height: 1.6;
}

.light-theme .rule-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.light-theme .rule-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

.light-theme .rule-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(222, 47%, 18%);
}

/* Notes */
.light-theme .rule-note {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: hsla(222, 47%, 6%, 0.03);
    border-radius: 10px;
    border-left: 4px solid var(--gold);
    margin-bottom: 20px;
}

.light-theme .rule-note svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.light-theme .rule-note p {
    font-size: 0.95rem;
    color: #555 !important;
    line-height: 1.6;
}

/* Alerts */
.light-theme .alert {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.light-theme .alert-danger {
    background: rgba(231, 76, 60, 0.08);
    border-left: 4px solid #e74c3c;
}

.light-theme .alert-warning {
    background: rgba(243, 156, 18, 0.08);
    border-left: 4px solid #f39c12;
}

.light-theme .alert strong { color: #222 !important; }

/* Quiet hours */
.light-theme .quiet-hours-block {
    background: linear-gradient(135deg, hsl(222, 47%, 18%), hsl(222, 47%, 10%));
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-light);
}

.light-theme .quiet-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.light-theme .quiet-from,
.light-theme .quiet-to {
    font-size: 2.5rem;
    font-weight: 700;
}

.light-theme .quiet-text {
    font-size: 0.95rem;
    opacity: 0.85;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--text-muted) !important;
}

/* Rules list */
.light-theme .rules-list {
    list-style: none;
    counter-reset: rules-counter;
}

.light-theme .rules-list li {
    counter-increment: rules-counter;
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555 !important;
}

.light-theme .rules-list li:last-child {
    border-bottom: none;
}

.light-theme .rules-list-marker {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(222, 40%, 14%);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    margin-top: 2px;
}

.light-theme .rules-list-marker::before {
    content: counter(rules-counter);
}

/* Services grid */
.light-theme .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.light-theme .service-item {
    display: flex;
    gap: 15px;
    padding: 18px;
    background: #f5f5f5;
    border-radius: 10px;
    transition: all 0.2s;
}

.light-theme .service-item:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.light-theme .service-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: hsl(222, 47%, 18%);
    margin-bottom: 5px;
}

.light-theme .service-item p {
    font-size: 0.85rem;
    color: #666 !important;
}

/* CTA */
.light-theme .rules-cta {
    text-align: center;
    padding: 50px 40px;
    background: linear-gradient(135deg, hsl(222, 47%, 18%), hsl(222, 47%, 10%));
    border-radius: 16px;
    color: var(--text-light);
    margin-top: 20px;
}

.light-theme .rules-cta h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.light-theme .rules-cta p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* ===== OFFER PAGE ===== */
.light-theme .legal-content {
    max-width: 850px;
    margin: 0 auto;
}

.light-theme .legal-date {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.light-theme .legal-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555 !important;
    margin-bottom: 40px;
    padding: 25px;
    background: #f5f5f5;
    border-radius: 10px;
    border-left: 4px solid var(--gold);
}

.light-theme .requisites table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.light-theme .requisites th,
.light-theme .requisites td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.light-theme .requisites th {
    width: 280px;
    font-weight: 600;
    color: hsl(222, 47%, 18%);
    background: #f5f5f5;
    vertical-align: top;
}

.light-theme .requisites td {
    color: #555;
    line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .light-theme .rules-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .light-theme .rules-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .page-header h1 { font-size: 32px; }
    .light-theme .rules-section { padding: 25px 20px; }
    .light-theme .rule-cards { grid-template-columns: 1fr; }
    .light-theme .services-grid { grid-template-columns: 1fr; }
}
    color: hsl(222, 47%, 18%) !important;
}

.light-theme p,
.light-theme li {
    color: #555 !important;
}

.light-theme strong {
    color: #222;
}

/* Правила / Оферта — секции */
.light-theme .rules-section {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-lg);
    padding: 35px;
    margin-bottom: 30px;
}

.light-theme .rules-list li {
    border-bottom-color: #eee;
    color: #555;
}

.light-theme .rules-list-marker {
    background: hsl(222, 40%, 14%);
    color: var(--gold);
}

/* Заметки и предупреждения */
.light-theme .rule-note {
    background: hsla(222, 47%, 6%, 0.05);
    border-left-color: var(--gold);
}

.light-theme .alert-danger {
    background: rgba(231, 76, 60, 0.08);
    border-left-color: #e74c3c;
}

.light-theme .alert-warning {
    background: rgba(243, 156, 18, 0.08);
    border-left-color: #f39c12;
}

/* Карточки правил — тёмная тема */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.rule-card {
    background: var(--cosmic-card);
    border: 1px solid var(--cosmic-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.rule-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.rule-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cosmic-deep);
}

.rule-icon svg {
    width: 28px;
    height: 28px;
}

.rule-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.rule-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
}

.rules-content {
    max-width: 850px;
    margin: 0 auto;
}

.rules-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--gold);
    margin-top: 32px;
    margin-bottom: 16px;
}

.rules-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.rules-content ul {
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-left: 24px;
}

.rules-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Партнёры */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.partner-card {
    background: var(--cosmic-card);
    border: 1px solid var(--cosmic-border);
    border-radius: var(--radius-lg);
    padding: 50px 60px;
    text-align: center;
    transition: all 0.3s;
    min-width: 350px;
    max-width: 450px;
    flex: 1;
}

.partner-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.partner-logo {
    max-height: 160px;
    margin-bottom: 24px;
}

.partner-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.partner-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
}

.partner-link:hover {
    text-decoration: underline;
}

.empty-partners {
    text-align: center;
    color: var(--text-muted);
    padding: 60px 0;
    grid-column: 1 / -1;
}

/* Карточки правил — светлая тема */
.light-theme .rule-card {
    background: #f0f0f0;
    border-left-color: var(--gold);
}

.light-theme .rule-card h4 {
    color: hsl(222, 47%, 18%);
}

.light-theme .rule-card p {
    color: #555 !important;
}

/* Время тишины */
.light-theme .quiet-hours-block {
    background: linear-gradient(135deg, hsl(222, 47%, 18%), hsl(222, 47%, 10%));
    color: var(--text-light);
}

/* Сервисы */
.light-theme .services-grid .service-item {
    background: #f0f0f0;
}

.light-theme .services-grid .service-item h4 {
    color: hsl(222, 47%, 18%);
}

.light-theme .services-grid .service-item p {
    color: #666 !important;
}

/* Боковая навигация */
.light-theme .rules-sidebar .rules-nav {
    background: #fff;
    border: 1px solid #e0e0e0;
}

.light-theme .rules-nav a {
    color: #555;
}

.light-theme .rules-nav a:hover {
    background: hsla(38, 90%, 55%, 0.1);
    color: hsl(38, 90%, 55%);
}

.light-theme .rules-nav a.active {
    background: hsla(38, 90%, 55%, 0.15);
    color: var(--gold);
}

/* CTA */
.light-theme .rules-cta {
    background: linear-gradient(135deg, hsl(222, 47%, 18%), hsl(222, 47%, 10%));
    color: var(--text-light);
}

.light-theme .rules-cta p { color: var(--text-muted); }

/* Оферта — таблица реквизитов */
.light-theme .requisites table {
    border: 1px solid #e0e0e0;
}

.light-theme .requisites th {
    background: #f0f0f0;
    color: hsl(222, 47%, 18%);
}

.light-theme .requisites td {
    color: #555;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
    .rules-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .rules-sidebar {
        position: static;
    }
}

@media (max-width: 992px) {
    .light-theme .rules-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .light-theme .rules-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .page-header h1 { font-size: 32px; }
    .light-theme .rules-section { padding: 25px 20px; }
    .light-theme .rule-cards { grid-template-columns: 1fr; }
    .light-theme .services-grid { grid-template-columns: 1fr; }
}
