/* Общий стиль подстраниц (/rooms, /book) — как на главной: фон vr_00 + glass-карточки */

body.public-subpage {
    color: #eaeaea;
    padding-top: var(--vr60-site-header-offset, 72px);
}

body.public-subpage > header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

body.public-subpage nav.main-nav {
    background: transparent !important;
    box-shadow: none !important;
}

@media (min-width: 1101px) {
    body.public-subpage nav.main-nav .nav-links {
        position: static;
        background: transparent !important;
        box-shadow: none !important;
    }
}

@media (max-width: 1100px) {
    body.public-subpage > header {
        z-index: 10050;
    }
}

body.book-embed-cabinet > header {
    display: none !important;
}

/* Лендинг реферального приглашения /p/{token} */
.invite-page .invite-actions-stacked {
    flex-direction: column;
    width: 100%;
}

.invite-page .invite-actions-stacked .book-btn {
    width: 100%;
    text-align: center;
}

.invite-page .invite-viral-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.invite-alert {
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.invite-alert-danger {
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: #fecaca;
}

.invite-alert-success {
    background: rgba(22, 163, 74, 0.2);
    border: 1px solid rgba(74, 222, 128, 0.4);
    color: #bbf7d0;
}

.invite-alert-warning {
    background: rgba(255, 243, 205, 0.95);
    border: 1px solid #ffecb5;
    color: #856404;
}

.invite-alert-warning a {
    color: #664d03;
    font-weight: 600;
}

.invite-page .invite-info-box {
    border-radius: 8px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.invite-page .invite-info-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 10px;
    color: inherit;
}

.invite-page .invite-info-body {
    margin: 0;
    line-height: 1.55;
}

.invite-page .invite-info-body ol {
    margin: 8px 0 0;
    padding-left: 1.25rem;
}

.referral-share-result {
    margin-top: 12px;
}

.referral-share-result p {
    margin: 0 0 8px;
}

.referral-share-qr {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.referral-share-qr img {
    border-radius: 8px;
    background: #fff;
    padding: 8px;
    max-width: 100%;
    height: auto;
}

.referral-share-qr-hint {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.85;
}

.public-subpage-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 16px 64px;
}

.public-subpage-wrap--wide {
    max-width: 960px;
}

.public-back {
    margin-bottom: 16px;
}

.public-back a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    transition: background 0.2s;
}

.public-back a:hover {
    background: rgba(255, 255, 255, 0.18);
}

.public-back-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.public-back-link {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 600;
    font-size: inherit;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    transition: background 0.2s;
    cursor: pointer;
    vertical-align: middle;
}

.public-back-icon,
.public-back-label {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.public-back-icon {
    font-size: 1.05em;
    transform: translateY(-0.02em);
}

button.public-back-link {
    appearance: none;
    -webkit-appearance: none;
}

.public-back-link:hover {
    background: rgba(255, 255, 255, 0.18);
}

.public-page-title {
    margin: 0 0 8px;
    font-size: 1.75rem;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.public-page-lead {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    margin: 0 0 24px;
    max-width: 42rem;
}

.public-glass-card {
    background: rgba(30, 30, 40, 0.72);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    padding: 24px;
    margin-bottom: 16px;
}

.public-glass-card h2,
.public-glass-card h3 {
    color: #fff;
}

.public-muted {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
}

/* Помещения */
.rooms-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.room-card {
    background: rgba(30, 30, 40, 0.72);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

.room-card h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    color: #fff;
}

.room-card p {
    color: rgba(255, 255, 255, 0.82);
}

.room-meta {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.room-feature {
    background: rgba(255, 255, 255, 0.1);
    color: #e9d5ff;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.room-links {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.room-link-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.room-link-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.room-link-btn--primary {
    background: #6d28d9;
    border-color: #7c3aed;
}

.room-link-btn--primary:hover {
    background: #7c3aed;
}

/* Бронирование */
.book-scenario {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.book-title {
    margin: 8px 0 16px;
    font-size: 1.75rem;
    line-height: 1.2;
    color: #fff;
}

.book-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 520px) {
    .book-form-grid {
        grid-template-columns: 1fr;
    }
}

#book-slots-section {
    scroll-margin-top: 48px;
    scroll-margin-bottom: 48px;
}

.book-field label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 4px;
}

.book-field input,
.book-field select,
.book-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.25);
    color: #fff;
    color-scheme: dark;
    font: inherit;
}

.book-field textarea {
    min-height: 84px;
    resize: vertical;
    line-height: 1.45;
}

.book-field input:focus,
.book-field select:focus,
.book-field textarea:focus {
    outline: none;
    border-color: rgba(167, 139, 250, 0.55);
    box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.2);
}

.book-field--full {
    grid-column: 1 / -1;
}

.book-lr-segment-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.book-lr-segment-labels {
    display: grid;
    grid-template-columns: minmax(130px, 1.4fr) minmax(84px, 1fr) minmax(84px, 1fr) 28px;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.book-lr-segment-row--inline {
    display: grid;
    grid-template-columns: minmax(130px, 1.4fr) minmax(84px, 1fr) minmax(84px, 1fr);
    align-items: end;
    gap: 10px;
}

@media (max-width: 560px) {
    .book-lr-segment-labels,
    .book-lr-segment-row--inline {
        grid-template-columns: 1fr 1fr;
    }

    .book-lr-segment-labels .book-lr-field-label:first-child,
    .book-lr-segment-field--date {
        grid-column: 1 / -1;
    }

    .book-lr-segment-remove,
    .book-lr-segment-remove-spacer {
        grid-column: 2;
        justify-self: end;
    }
}

.book-lr-segment-heading {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 6px;
}

.book-lr-segment-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 120px;
    min-width: 0;
}

.book-lr-field-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.72);
}

.book-lr-segment-row .book-lr-date,
.book-lr-segment-field .book-lr-from,
.book-lr-segment-field .book-lr-to {
    width: 100%;
    max-width: none;
}

.book-lr-segment-row .book-lr-date {
    width: 100%;
    max-width: none;
}

.book-equipment-prefs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.book-equipment-pref-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.book-equipment-pref-row label {
    min-width: 72px;
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.72);
}

.book-lr-segments {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
}

.book-lr-segment-times {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.book-lr-segment-times .book-lr-from,
.book-lr-segment-times .book-lr-to {
    flex: 1 1 120px;
    min-width: 0;
}

.book-lr-segment-sep {
    color: rgba(255, 255, 255, 0.5);
    flex: 0 0 auto;
}

.book-lr-segment-remove {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #fca5a5;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    justify-self: end;
    align-self: center;
}

.book-lr-segment-remove:hover {
    background: rgba(239, 68, 68, 0.25);
}

.book-lr-segment-remove-spacer {
    display: block;
    width: 28px;
    height: 28px;
    justify-self: end;
}

.book-lr-segments-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: -4px;
}

.book-lr-participants-hint {
    margin-top: 4px;
    font-size: 0.82rem;
}

.book-lr-form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.book-field select {
    padding-right: 36px;
    min-height: 42px;
    line-height: 1.25;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' stroke='rgba(255,255,255,0.72)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 12px;
}

.book-field select option {
    background-color: #1e1630;
    color: #fff;
}

.book-field input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.book-check label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.85);
}

.book-platform-room-hint {
    margin: -4px 0 8px;
    font-size: 0.875rem;
    line-height: 1.4;
}

.book-psvr-field {
    margin: 4px 0 8px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.book-psvr-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    cursor: pointer;
}

.book-psvr-check input {
    margin-top: 3px;
    flex-shrink: 0;
}

.book-psvr-hint {
    margin: 8px 0 0 28px;
    font-size: 0.82rem;
    line-height: 1.45;
}

.book-cart-item-lines {
    margin-top: 6px;
}

.book-cart-line {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.35;
}

.book-pricing-mode-banner {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(167, 139, 250, 0.35);
    background: rgba(109, 40, 217, 0.12);
    font-size: 0.92rem;
}

.book-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.book-btn {
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.book-btn-primary {
    background: #6d28d9;
    color: #fff;
}

.book-btn-primary:hover:not(:disabled) {
    background: #7c3aed;
}

.book-btn-primary:disabled,
.book-btn-primary[disabled] {
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.42) !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: not-allowed;
    box-shadow: none;
    opacity: 1;
}

.book-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.book-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
}

.book-status {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 12px 0;
    min-height: 1.4em;
}

.book-slots {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.book-slot {
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    color: #fff;
}

.book-slot:hover {
    border-color: #a78bfa;
}

.book-slot.active {
    border-color: #6d28d9;
    box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.25);
}

.book-slot-time {
    display: block;
    font-weight: 600;
}

.book-slot-meta {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-top: 2px;
}

.book-quote-schedule {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.45;
}

.book-quote-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #c4b5fd;
    margin-bottom: 8px;
}

.book-quote-lines {
    margin: 8px 0 12px;
    padding-left: 18px;
    color: rgba(255, 255, 255, 0.85);
}

.book-muted {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.875rem;
}

.book-empty {
    grid-column: 1 / -1;
    color: rgba(255, 255, 255, 0.62);
    padding: 12px 0;
}

.book-auth-ok {
    color: #86efac;
    font-weight: 600;
}

.book-auth h2 {
    color: #fff;
}

.book-status-warn {
    color: #fbbf24;
    font-weight: 500;
}

.book-quote-error {
    color: #fca5a5;
    font-weight: 500;
}

.book-checkout-blocker {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(180, 83, 9, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fde68a;
    font-size: 0.9rem;
    line-height: 1.45;
}

.book-checkout-blocker a {
    color: #e9d5ff;
    font-weight: 600;
    text-decoration: none;
}

.book-checkout-panel {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.book-checkout-steps {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.book-checkout-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
}

.book-checkout-step.is-active {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

.book-checkout-step.is-done {
    color: #86efac;
}

.book-checkout-step.is-error {
    color: #fca5a5;
    font-weight: 600;
}

.book-checkout-step-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.book-checkout-step.is-active .book-checkout-step-icon {
    background: rgba(109, 40, 217, 0.35);
    color: #e9d5ff;
}

.book-checkout-step.is-done .book-checkout-step-icon {
    background: rgba(34, 197, 94, 0.25);
    color: #86efac;
}

.book-checkout-step.is-error .book-checkout-step-icon {
    background: rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.book-checkout-step.is-active .book-checkout-step-icon::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid rgba(196, 181, 253, 0.5);
    border-top-color: #c4b5fd;
    border-radius: 50%;
    animation: book-spin 0.7s linear infinite;
}

.book-checkout-step.is-active .book-checkout-step-icon span {
    display: none;
}

.book-checkout-step.is-done .book-checkout-step-icon::before {
    content: '✓';
}

.book-checkout-step.is-error .book-checkout-step-icon::before {
    content: '!';
}

.book-checkout-step.is-done .book-checkout-step-icon span,
.book-checkout-step.is-error .book-checkout-step-icon span {
    display: none;
}

.book-checkout-status {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    min-height: 1.35em;
}

.book-checkout-status.is-error {
    color: #fca5a5;
    font-weight: 500;
}

.book-checkout-status.is-success {
    color: #86efac;
    font-weight: 500;
}

.book-btn.is-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.88;
}

.book-btn.is-loading .book-btn-label {
    visibility: hidden;
}

.book-btn-spinner {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: book-spin 0.7s linear infinite;
}

.book-success-banner {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(134, 239, 172, 0.45);
    color: #bbf7d0;
    font-weight: 600;
    line-height: 1.45;
}

.book-payment-restricted-notice {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.35);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    line-height: 1.45;
}

.book-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.book-cart-header .book-section-title {
    margin: 0;
}

.book-btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    line-height: 1.2;
    min-height: 0;
}

#book-checkout-card > .book-section-title {
    margin-bottom: 8px;
}

.book-balance-pay-section {
    margin-top: 0;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.book-balance-pay-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
}

.book-balance-pay-row input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    flex-shrink: 0;
    accent-color: #a78bfa;
    cursor: pointer;
}

.book-balance-pay-row.is-disabled {
    opacity: 0.72;
    cursor: default;
}

.book-balance-pay-row.is-disabled input[type="checkbox"] {
    cursor: not-allowed;
}

.book-balance-pay-section .book-balance-hint a {
    color: #c4b5fd;
    text-decoration: underline;
}

.book-balance-pay-section .book-balance-hint {
    margin: 6px 0 0;
    padding-left: calc(1.1rem + 10px);
    font-size: 0.82rem;
    line-height: 1.4;
}

.book-payment-extras {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    gap: 14px;
}

.book-payment-extras .book-field input:disabled,
.book-payment-extras .book-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.book-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.book-inline-actions input {
    flex: 1 1 160px;
}

.book-inline-actions .book-btn {
    flex: 0 0 auto;
}

.book-steps-hint {
    list-style: none;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    gap: 8px;
}

.book-steps-hint li {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.875rem;
    line-height: 1.35;
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.book-steps-hint li span {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 700;
    min-width: 1.25rem;
}

.book-steps-hint li.is-current {
    color: #e9d5ff;
    font-weight: 600;
}

.book-steps-hint li.is-done {
    color: rgba(134, 239, 172, 0.85);
}

.book-legal-consents {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.book-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
}

.book-consent-text {
    flex: 1;
    min-width: 0;
}

.book-consent input {
    margin-top: 3px;
    flex-shrink: 0;
}

.book-consent a {
    color: #c4b5fd;
    white-space: nowrap;
}

#book-hold-btn:disabled .book-btn-label {
    opacity: 1;
}

.book-section-title {
    margin: 0 0 12px;
    font-size: 1.1rem;
}

.book-details {
    margin: 12px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0 12px;
}

.book-details summary {
    cursor: pointer;
    padding: 12px 0;
    font-weight: 600;
    color: #e9d5ff;
}

.book-details-body {
    padding-bottom: 12px;
}

.book-details textarea {
    width: 100%;
    min-height: 64px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    padding: 8px 10px;
    resize: vertical;
}

.book-pending-quote {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.book-cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px 12px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.book-cart-item-title {
    font-weight: 600;
}

.book-cart-item-sub {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 2px;
}

.book-cart-item-price {
    font-weight: 600;
    white-space: nowrap;
}

.book-cart-remove {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fca5a5;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

.book-cart-remove:hover {
    background: rgba(239, 68, 68, 0.25);
}

.book-cart-summary {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.book-cart-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
}

.book-cart-summary:focus {
    outline: none;
}

.book-cart-total-row {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 6px;
}

@media (min-width: 720px) {
    .book-scenario-tab {
        flex: 1 1 0;
        min-width: 120px;
        font-size: 0.82rem;
    }
}

@media (max-width: 640px) {
    .book-scenario-tab {
        flex: 1 1 calc(50% - 6px);
    }
}

#book-auth-card:not([hidden]) {
    scroll-margin-top: 16px;
}

@media (max-width: 640px) {
    .book-cart-item {
        grid-template-columns: 1fr auto;
    }
    .book-cart-remove {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}

.book-game-picker-controls.games-controls {
    margin-bottom: 12px;
}

.book-game-picker-controls .search-box {
    flex-direction: column;
    align-items: stretch;
    max-width: none;
    margin-bottom: 0.75rem;
}

.book-game-picker-controls .search-input-wrap {
    min-width: 0;
    width: 100%;
}

.book-game-picker-controls .search-count {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    margin-left: 0;
    margin-top: 0.35rem;
    min-width: 0;
    white-space: normal;
    text-align: left;
}

.book-game-picker-controls .no-games {
    grid-column: 1 / -1;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
    padding: 16px;
}

.book-scenario-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 20px;
    padding: 6px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.book-scenario-tab {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    padding: 11px 10px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    font-size: 0.78rem;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.book-scenario-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.book-scenario-tab.is-active {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.55), rgba(124, 58, 237, 0.35));
    border-color: rgba(167, 139, 250, 0.55);
    color: #fff;
    box-shadow: 0 2px 12px rgba(109, 40, 217, 0.25);
}

.book-scenario-tab:focus-visible {
    outline: 2px solid rgba(167, 139, 250, 0.8);
    outline-offset: 2px;
}

.book-entity-picker {
    margin-bottom: 16px;
}

.book-picker-label {
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.book-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.book-picker-grid--rooms {
    grid-template-columns: 1fr;
}

.book-picker-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s, border-color 0.2s;
}

.book-picker-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(124, 58, 237, 0.55);
}

.book-picker-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 6px;
}

.book-picker-title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
}

.book-picker-sub {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.35;
}

.book-picker-current {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

.book-picker-change {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

button.book-picker-change {
    font: inherit;
}

.book-picker-change:hover {
    background: rgba(255, 255, 255, 0.14);
}

#book-gift-panel textarea,
#book-gift-card textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font: inherit;
    resize: vertical;
}

@media (max-width: 640px) {
    .book-scenario-tab {
        flex: 1 1 calc(50% - 4px);
    }
}

/* Book page — двухколоночный layout */
.book-page .public-subpage-wrap {
    max-width: 1200px;
}

.book-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 20px;
    align-items: start;
}

.book-sidebar {
    position: sticky;
    top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.book-sidebar-card {
    margin: 0;
}

.book-mode-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.book-mode-switch-item {
    flex: 1 1 180px;
    text-align: center;
    padding: 12px 16px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.78);
    border: 1px solid transparent;
}

.book-mode-switch-item.is-active {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.55), rgba(124, 58, 237, 0.35));
    border-color: rgba(167, 139, 250, 0.55);
    color: #fff;
}

a.book-mode-switch-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.book-hub-lead {
    margin: 0 0 16px;
}

.book-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.book-hub-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.book-hub-card:hover {
    background: rgba(109, 40, 217, 0.18);
    border-color: rgba(167, 139, 250, 0.45);
    color: #fff;
    transform: translateY(-1px);
}

.book-hub-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(109, 40, 217, 0.25);
    color: #c4b5fd;
    font-size: 1.1rem;
}

.book-hub-card-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.book-hub-card-sub {
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
}

.book-rooms-event-banner {
    margin: 0 0 24px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid rgba(167, 139, 250, 0.55);
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.52), rgba(76, 29, 149, 0.38));
    box-shadow: 0 2px 12px rgba(109, 40, 217, 0.22);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.book-rooms-event-banner p {
    margin: 0;
    color: #fff;
    font-weight: 500;
}

.book-room-format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.book-room-format-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s, border-color 0.2s;
}

.book-room-format-card:hover {
    background: rgba(109, 40, 217, 0.18);
    border-color: rgba(167, 139, 250, 0.45);
}

.book-room-format-card.is-selected {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.45), rgba(124, 58, 237, 0.28));
    border-color: rgba(167, 139, 250, 0.65);
    box-shadow: 0 2px 12px rgba(109, 40, 217, 0.22);
}

.book-room-format-card:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.book-room-format-card:disabled:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
}

.book-picker-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 4px;
}

.book-picker-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.book-picker-page-btn:hover:not(:disabled) {
    background: rgba(109, 40, 217, 0.22);
    border-color: rgba(167, 139, 250, 0.45);
}

.book-picker-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.book-picker-page-info {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
}

.book-room-format-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.book-room-format-sub {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.35;
}

#book-auth-card .book-field input,
#book-auth-card .book-field select,
#book-auth-card .book-field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

#book-auth-card .book-form-grid {
    grid-template-columns: 1fr;
}

#book-auth-card .book-actions {
    flex-direction: column;
}

#book-auth-card .book-actions .book-btn {
    width: 100%;
}

.book-top-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.book-top-nav .book-scenario-tabs {
    flex: 1 1 280px;
    margin-bottom: 0;
}

.book-nav-gift-link,
.book-nav-booking-link {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 9px;
    border: 1px solid rgba(167, 139, 250, 0.45);
    background: rgba(109, 40, 217, 0.15);
    color: #e9d5ff;
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    white-space: nowrap;
}

.book-nav-gift-link:hover,
.book-nav-booking-link:hover {
    background: rgba(109, 40, 217, 0.28);
    color: #fff;
}

.book-slots-section {
    margin-top: 8px;
}

.book-slots-heading {
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.book-slot-context {
    margin-bottom: 8px;
    min-height: 1.2em;
}

.book-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.book-slot-tag {
    text-align: center;
    padding: 12px 8px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-slot-tag .book-slot-time {
    font-size: 1rem;
    font-weight: 700;
}

.book-slot-tag.active,
.book-slot-tag.active:hover {
    background: #6d28d9;
    border-color: #7c3aed;
    box-shadow: none;
}

.book-slots-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 16px;
}

.book-btn-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 10px 14px;
}

.book-btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
}

.book-btn-pay {
    width: 100%;
    font-size: 1rem;
    padding: 14px 18px;
}

.book-actions--pay {
    margin-top: 12px;
}

.book-gift-intro {
    margin: 0 0 16px;
}

.book-gift-preview {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(109, 40, 217, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.25);
}

.book-mobile-paybar {
    display: none;
}

@media (max-width: 900px) {
    .book-page-layout {
        grid-template-columns: 1fr;
    }

    .book-sidebar {
        position: static;
    }

    .book-page {
        padding-bottom: 88px;
    }

    .book-mobile-paybar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        background: rgba(18, 18, 18, 0.96);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(8px);
    }

    .book-mobile-paybar-total {
        font-weight: 700;
        font-size: 1.05rem;
        color: #c4b5fd;
    }

    .book-mobile-paybar .book-btn {
        flex: 0 0 auto;
        min-width: 120px;
    }
}

/* /book внутри iframe личного кабинета */
body.book-embed-cabinet {
    padding-top: 0 !important;
    background-color: rgba(10, 10, 14, 1) !important;
}

html body.book-embed-cabinet::before,
html body.book-embed-cabinet::after {
    content: none !important;
    display: none !important;
}

body.book-embed-cabinet .public-back,
body.book-embed-cabinet .book-mode-switch {
    display: none !important;
}

body.book-embed-cabinet .public-subpage-wrap {
    max-width: none;
    padding: 8px 10px 12px;
}
