/* ═══════════════════════════════════════════════════════ 
   VARIABLES & RESET 
   ═══════════════════════════════════════════════════════ */
:root {
    --bg: #0c0c0e;
    --surface: #141416;
    --border: rgba(255, 255, 255, 0.08);
    --gold: #c8a96e;
    --gold-lt: #e4cc9b;
    --white: #f0ece4;
    --muted: #787570;
    --green: #4caf82;
    --red: #e05a5a;
    --radius: 16px;
    --font-head: 'Cormorant Garamond', serif;
    --font-body: 'DM Sans', sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════ 
   LAYOUT & WIZARD 
   ═══════════════════════════════════════════════════════ */
#wizard {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.step {
    display: none; /* Скрываем все шаги по умолчанию */
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.5s var(--ease);
    position: relative;
}

.step.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* VK ID badge (step 4, top-right corner, VK mode only) */
.vk-id-badge {
    position: absolute;
    top: -500px;
    right: 0px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 11px;
    color: var(--white);
    z-index: 1;
}

.vk-id-label {
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.vk-id-value {
    font-family: monospace;
    letter-spacing: 0.5px;
}

.btn-copy-vkid {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gold);
    padding: 0;
    display: flex;
    align-items: center;
    transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
    line-height: 1;
}

.btn-copy-vkid:hover {
    opacity: 0.7;
}

.btn-copy-vkid.copied {
    color: var(--green);
}

/* Header Styles */
.step-meta {
    position: sticky;
    top: 0;
    z-index: 200;
    width: 100%;
    text-align: center;
    background: var(--bg);
    padding: 10px 0 8px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold);
}

.step-header {
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.step-title {
    font-family: var(--font-head);
    font-size: clamp(27px, 5vw, 32px);
    font-weight: 300;
    line-height: 34px;
    color: var(--white);
}

.step-title em, .step-subtitle em {
    font-style: italic;
    color: var(--gold);
}

/* ═══════════════════════════════════════════════════════ 
   CARDS & GRIDS (Step 1 & 2)
   ═══════════════════════════════════════════════════════ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    width: 100%;
}

.hall-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    position: relative; /* Добавлено для работы абсолютного позиционирования */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 210px; /* Опционально: чтобы карточки были одной высоты */
}

.hall-features {
    padding-bottom: 25px;
}

.hall-card-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: linear-gradient(to top, rgba(20, 20, 22, 0.95) 0%, rgba(20, 20, 22, 0) 100%); /* Градиент для читаемости */
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}

.hall-card-actions button {
    margin: 0;
    z-index: 2;
}

.hall-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hall-card.selected {
    border-color: var(--gold);
    background: rgba(200, 169, 110, 0.05);
}

.hall-card h3 {
    font-family: var(--font-head);
    font-size: 24px;
    margin-bottom: 0px;
}

.addr { color: var(--muted); font-size: 14px; margin-bottom: 15px; }

.hall-price {
    color: var(--gold-lt);
    font-weight: 500;
    margin-top: 0px;
}

.feat-tag {
    display: inline-block;
    font-size: 11px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 20px;
    margin: 5px 5px 0 0;
    color: var(--muted);
}

/* Duration Cards (Step 2) */
.duration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 9px;
    width: 100%;
}

.dur-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 5px;
    text-align: center;
    border-radius: var(--radius);
    cursor: pointer;
    transition: 0.3s;
}

.dur-price {
    color: var(--gold);
    font-size: 14px;
}    

.dur-card:hover { border-color: var(--gold-lt); }
.dur-card.selected {
    border-color: var(--gold-lt);
}

/* ═══════════════════════════════════════════════════════ 
   SLOTS (Step 3)
   ═══════════════════════════════════════════════════════ */
.day-switcher {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.day-btn {
    padding: 5px 5px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--gold);
    cursor: pointer;
}

.day-btn.active {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    width: 100%;
}

.slot {
    padding: 7px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.slot.busy {
    opacity: 0.3;
    text-decoration: line-through;
    cursor: not-allowed;
}

.slot:hover {
    border-color: var(--gold);
}

.slot.selected {
    border-color: var(--gold);
}

/* ═══════════════════════════════════════════════════════ 
   FORMS (Step 4)
   ═══════════════════════════════════════════════════════ */
.contact-form {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.booking-summary {
    background: var(--surface);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.booking-summary p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 15px;
}

input, textarea, select {
    width: 100%;
    padding: 9px;
    margin-bottom: -10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--white);
    font-size: 16px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--gold);
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c8a96e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

select option {
    background: var(--surface);
    color: var(--white);
}

/* ═══════════════════════════════════════════════════════
   CONSENT TOGGLE (Step 4)
   ═══════════════════════════════════════════════════════ */
.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: auto;
}

.consent-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
    margin-top: 1px;
}

.consent-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.consent-slider {
    position: absolute;
    inset: 0;
    background: #4a4a4a;
    border-radius: 24px;
    transition: background 0.2s;
}

.consent-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

.consent-toggle input:checked + .consent-slider { background: var(--gold); }
.consent-toggle input:checked + .consent-slider::before { transform: translateX(20px); }

.consent-label {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

.consent-label a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.consent-label a:hover {
    color: var(--gold-lt);
}

/* ═══════════════════════════════════════════════════════
   DOCUMENT MODALS (rules / pd)
   ═══════════════════════════════════════════════════════ */
.doc-modal {
    max-width: 700px;
    display: flex;
    flex-direction: column;
    padding: 0;
    max-height: 85vh;
    overflow: hidden;
}

.doc-modal-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--gold);
    padding: 24px 50px 16px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.doc-modal-body {
    padding: 20px 24px 24px;
    overflow-y: auto;
    flex: 1;
    color: var(--white);
    font-size: 14px;
    line-height: 1.75;
}

.doc-modal-body p { margin-bottom: 10px; }
.doc-modal-body strong { color: var(--gold-lt); }
.doc-modal-body h1,
.doc-modal-body h2,
.doc-modal-body h3 { margin: 16px 0 8px; color: var(--gold-lt); }
.doc-modal-body ul,
.doc-modal-body ol  { margin: 8px 0 12px 20px; }
.doc-modal-body li  { margin-bottom: 5px; }
.doc-modal-body a   { color: var(--gold); }

/* ═══════════════════════════════════════════════════════
   BUTTONS & UTILS
   ═══════════════════════════════════════════════════════ */
.step-footer {
    position: sticky;
    bottom: 0;
    z-index: 100;
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 16px 0 20px;
    background: linear-gradient(to bottom, transparent, var(--bg) 35%);
}

.btn-primary {
    background: var(--gold);
    color: var(--bg);
    padding: 14px 20px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover:not(:disabled) {
    background: var(--gold-lt);
    transform: scale(1.05);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-back {
    background: var(--gold);
    color: var(--bg);
    padding: 14px 20px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.error-banner {
    color: var(--red);
    background: rgba(224, 90, 90, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.error-banner.show { display: block; }

/* Success Screen */
.success-wrap {
    text-align: center;
    padding: 40px;
}

.success-icon {
    font-size: 60px;
    color: var(--gold);
    margin-bottom: 20px;
}


/* Стили для модального окна "Подробнее" */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-window-large {
    background: var(--surface);
    color: var(--white);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: var(--radius);
    padding: 30px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--border);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
}

.modal-close:hover {
    color: var(--gold);
}

.modal-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.modal-info-section h2 {
    font-family: var(--font-head);
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 28px;
}

.modal-meta p {
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--muted);
}

.modal-meta strong {
    color: var(--white);
}

.modal-description h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--gold-lt);
}

.modal-description p, .modal-meta p {
    line-height: 1.6;
    color: #ccc;
}

.modal-gallery-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--gold-lt);
}

.btn-detail, .btn-select {
    border: 1px solid var(--border);
    border-radius: 5px;
    border-color: var(--gold);
    background: rgba(200, 169, 110, 0.05);
    color: white;
    padding: 3px;
    cursor: pointer;
}


.sl-overlay {
    background: rgba(0, 0, 0, 0.85)!important;
}
.sl-wrapper .sl-counter, .sl-navigation, .sl-prev, .sl-next, .sl-close {
    color: white!important;
}

/* Если нужно, чтобы слайдер был поверх всего, включая оверлей модального окна */
.modal-overlay {
    z-index: 999;
}

/* Галерея фотографий зала */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Чуть меньше карточки */
    gap: 10px;
}

.gallery-grid a {
    display: block;
    overflow: hidden;
    transition: transform 0.2s;
}

.gallery-grid a:hover {
    transform: scale(1.02);
    border-color: var(--gold);
}

.gallery-grid img {
    /* width: 100%;*/
    height: 120px; /* Фиксированная высота для превью */
    margin: auto;
    object-fit: cover;
    display: block;
}




/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .modal-window-large {
        padding: 20px;
        max-height: 95vh;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* ═══════════════════════════════════════════════════════
   OCCUPANCY CALENDAR CARD & MODAL
   ═══════════════════════════════════════════════════════ */
.hall-card-occ {
    border-style: dashed;
    border-color: rgba(200, 169, 110, 0.35);
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 210px;
    cursor: pointer;
    gap: 10px;
}

.hall-card-occ:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.occ-card-icon {
    font-size: 40px;
    line-height: 1;
    margin-bottom: 6px;
}

.hall-card-occ h3 {
    font-family: var(--font-head);
    font-size: 22px;
    color: var(--gold-lt);
    margin-bottom: 4px;
}

.hall-card-occ .addr {
    font-size: 13px;
}

/* Модальное окно — расширенная ширина для календаря */
.occ-modal-window {
    max-width: 1100px;
}

.occ-modal-title {
    font-family: var(--font-head);
    font-size: 26px;
    color: var(--gold);
    margin-bottom: 16px;
    padding-right: 36px;
}

/* Фильтр залов */
.occ-hall-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.occ-hall-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    border-radius: 5px;
    border: none;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    /* background и color задаются inline из bg_color/font_color зала */
}

.occ-hall-btn:hover {
    filter: brightness(1.1);
}

/* Чекбокс */
.occ-hall-chk {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: background 0.15s;
}

.occ-hall-btn.active .occ-hall-chk {
    background: currentColor;
}

.occ-hall-btn:not(.active) .occ-hall-chk {
    background: transparent;
}

.occ-hall-btn.active .occ-hall-chk svg {
    display: block;
}

.occ-hall-btn:not(.active) .occ-hall-chk svg {
    display: none;
}

/* Текст внутри события — только время */
.occ-ev-time {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    padding: 1px 2px;
    white-space: nowrap;
    overflow: hidden;
}

/* ── FullCalendar dark theme overrides ─────────────────── */
#occ-calendar .fc {
    color: var(--white);
    font-family: var(--font-body);
}

#occ-calendar .fc-toolbar-title {
    font-family: var(--font-head);
    font-size: 20px;
    color: var(--gold-lt);
}

#occ-calendar .fc-button-primary {
    background: rgba(200, 169, 110, 0.12);
    border-color: rgba(200, 169, 110, 0.4);
    color: var(--gold-lt);
    font-size: 13px;
}

#occ-calendar .fc-button-primary:hover {
    background: rgba(200, 169, 110, 0.25);
    border-color: var(--gold);
    color: var(--white);
}

#occ-calendar .fc-button-primary:not(:disabled):focus,
#occ-calendar .fc-button-primary:not(:disabled).fc-button-active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg);
    box-shadow: none;
}

#occ-calendar .fc-button-primary:disabled {
    opacity: 0.4;
}

#occ-calendar .fc-col-header-cell {
    background: #0C0C0E;
    border-color: var(--border);
}

#occ-calendar .fc-col-header-cell-cushion {
    color: var(--gold-lt);
    font-size: 13px;
    padding: 6px 4px;
    text-decoration: none;
}

#occ-calendar .fc-timegrid-slot {
    height: 30px;
    border-color: var(--border);
}

#occ-calendar .fc-timegrid-slot-label-cushion {
    font-size: 11px;
    color: var(--muted);
}

#occ-calendar .fc-scrollgrid,
#occ-calendar .fc-scrollgrid-section > td,
#occ-calendar .fc-scrollgrid-section > th,
#occ-calendar table,
#occ-calendar td,
#occ-calendar th {
    border-color: var(--border);
    background: #0C0C0E;
}

#occ-calendar .fc-view-harness {
    background: var(--bg);
}

#occ-calendar .fc-timegrid-now-indicator-line {
    border-color: var(--gold);
}

#occ-calendar .fc-timegrid-now-indicator-arrow {
    border-top-color: var(--gold);
    border-bottom-color: var(--gold);
}

#occ-calendar .fc-event {
    border-radius: 4px;
    border: none;
    cursor: default;
}

#occ-calendar .fc-event-main {
    padding: 1px 3px;
}

#occ-calendar .fc-day-today {
    background: #0C0C0E;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .card-grid { grid-template-columns: 1fr; }
    .step-title { font-size: 23px; }
    .step-subtitle { font-size: 15px; line-height: 22px;}
    .duration-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════════
   FLATPICKR — тема мастера бронирования
   ═══════════════════════════════════════════════════════ */

/* Центрирование по экрану */
.flatpickr-calendar.open {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 9999;
}

/* Убираем стрелку-указатель — она не нужна при центрировании */
.flatpickr-calendar::before,
.flatpickr-calendar::after { display: none !important; }

/* Основной фон и рамка */
.flatpickr-calendar {
    background: #141416;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    border-radius: 16px;
    font-family: 'DM Sans', sans-serif;
}

/* Заголовок с месяцем */
.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {
    background: #141416;
}

/* Стрелки навигации по месяцу */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    color: #c8a96e;
    fill: #c8a96e;
}
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg { fill: #e4cc9b; }

/* Подписи дней недели */
span.flatpickr-weekday {
    background: #141416;
    color: rgba(200, 169, 110, 0.55);
}

/* Дни */
.flatpickr-day { color: #f0ece4; border-color: transparent; }

.flatpickr-day:hover,
.flatpickr-day:focus {
    background: rgba(200, 169, 110, 0.15);
    border-color: rgba(200, 169, 110, 0.3);
    color: #f0ece4;
    outline: 0;
}

.flatpickr-day.today { border-color: #c8a96e; color: #c8a96e; }
.flatpickr-day.today:hover,
.flatpickr-day.today:focus {
    background: rgba(200, 169, 110, 0.15);
    border-color: #c8a96e;
    color: #c8a96e;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
    background: #c8a96e;
    border-color: #c8a96e;
    color: #0c0c0e;
    box-shadow: none;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay,
.flatpickr-day.notAllowed {
    color: rgba(240, 236, 228, 0.18);
    background: transparent;
    border-color: transparent;
    cursor: default;
}

/* ═══════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════ */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    pointer-events: none;
}

.toast {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    color: #fff;
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.3s, transform 0.3s;
    max-width: 300px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    pointer-events: auto;
}

.toast.show { opacity: 1; transform: translateX(0); }

.toast-success { background: #2ecc71; }
.toast-error   { background: #e74c3c; }

/* ═══════════════════════════════════════════════════════
   REGISTER — индикатор сложности пароля и поле логина
   ═══════════════════════════════════════════════════════ */
.pw-strength-wrap {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.pw-strength-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.25s ease, background 0.25s ease;
}

.pw-strength-bar.pw-s1 { background: #e74c3c; }
.pw-strength-bar.pw-s2 { background: #e67e22; }
.pw-strength-bar.pw-s3 { background: #f1c40f; }
.pw-strength-bar.pw-s4 { background: #2ecc71; }

.pw-strength-msg {
    font-size: 12px;
    margin-top: 6px;
    min-height: 16px;
    color: var(--muted);
}

.pw-strength-msg.pw-msg-warn { color: #e67e22; }
.pw-strength-msg.pw-msg-ok   { color: #2ecc71; }

.reg-login-wrap {
    position: relative;
}

.reg-login-status {
    font-size: 12px;
    margin-top: 6px;
    min-height: 16px;
    color: var(--muted);
}

/* --- Индикатор загрузки --- */
.loading-area {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Блок скидки --- */
.discount-note {
    font-size: 13px;
    color: var(--gold-lt);
    margin-top: 6px;
    min-height: 18px;
}

/* --- Строка кнопок шага 4 --- */
.btn-row {
    position: sticky;
    bottom: 0;
    z-index: 100;
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding: 16px 0 20px;
    background: linear-gradient(to bottom, transparent, var(--bg) 35%);
}

.flatpickr-innerContainer {
    background-color: var(--bg)!important;
    color: var(--white)!important;
}
.flatpickr-months {
    background-color: var(--gold)!important;
}
.flatpickr-day {
    color: var(--white)!important;
}
.flatpickr-weekday {
    color: var(--white)!important;
}
.flatpickr-day.flatpickr-disabled {
    color: var(--muted)!important;
}
.flatpickr-day.selected {
    background-color: var(--gold)!important;
    color: var(--bg)!important;
}

/* ═══════════════════════════════════════════════════════
   SITE FOOTER
   ═══════════════════════════════════════════════════════ */
.site-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    margin-top: 48px;
}

.site-footer-logo img {
    height: 36px;
    width: auto;
    opacity: 0.75;
    display: block;
}

.site-footer-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.05em;
}

.brand-click73 { font-weight: 600; }
.brand-num { color: var(--gold); }

@media (max-width: 600px) {
    .site-footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 28px 20px;
    }
}