/* =========================================
   1. ОБЩИЕ СТИЛИ (BASE & RESET)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lato:wght@300;400;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lato', sans-serif;
    color: #333;
    background-color: #f9f9f9;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. HEADER & FOOTER
   ========================================= */
.site-header, .site-footer {
    background-color: #222;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.site-header {
    border-bottom: 5px solid #d4af37;
}

.site-footer {
    margin-top: auto;
}

/* =========================================
   3. BANNER & STEPPER
   ========================================= */
.stepper-banner {
    width: 100%;
    height: 140px;
    background-image: url('https://book.wbstudiotour.com/build/assets/wbstl_desktop_banner-BUwR7iE3.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-color: #0c2a4b;
}

.stepper-container {
    background-color: #fff;
    padding: 24px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.stepper-wrapper {
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    flex-shrink: 0;
}

.step-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #0c2a4b;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.step-circle.empty {
    background-color: transparent;
    border: 1px solid #999;
}

.step-label {
    font-size: 0.9rem;
    color: #000;
    font-weight: 400;
}

.step-line {
    flex-grow: 1;
    height: 1px;
    background-color: #d1d5db;
    margin-top: 8px;
    min-width: 20px;
}

/* =========================================
   4. СЕТКА (LAYOUT)
   ========================================= */
.selection-section {
    padding-bottom: 60px;
}

.layout-grid {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.col-tickets {
    flex: 2; 
    width: 100%;
}

.col-sidebar {
    flex: 1;
    width: 100%;
    min-width: 300px;
}

/* =========================================
   5. СПИСОК БИЛЕТОВ (ЛЕВАЯ КОЛОНКА)
   ========================================= */
.tickets-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #0c2a4b;
    margin-bottom: 10px;
}

.tickets-header p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.5;
}

.ticket-row {
    background-color: #fff;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ticket-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.t-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
}

.t-desc {
    font-size: 1rem;
    font-weight: 300;
    color: #666;
}

.info-icon {
    width: 18px;
    height: 18px;
    cursor: pointer;
    vertical-align: middle;
}

.ticket-price {
    font-size: 0.9rem;
    color: #222;
}

.ticket-price span { font-weight: 400; color: #555; }
.ticket-price strong { font-weight: 700; }

/* КНОПКИ (+ / -) */
.ticket-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-circle svg { width: 18px; height: 18px; }

/* Активная желтая кнопка */
.btn-plus, .btn-minus {
    background-color: #fdb913; 
    color: #000;
}
.btn-plus:hover, .btn-minus:hover {
    background-color: #e5a812;
}

/* Отключенная кнопка */
.btn-minus:disabled {
    background-color: #faeebf;
    color: #cbbaa0;
    cursor: not-allowed;
    box-shadow: none;
}

.counter-value {
    font-size: 1.2rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* =========================================
   6. САЙДБАР (ПРАВАЯ КОЛОНКА)
   ========================================= */
.sticky-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
}

/* Таймер */
.sidebar-timer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #006E63;
    font-weight: 700;
    font-size: 0.95rem;
}

.timer-countdown {
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.timer-text span {
    color: #666;
    font-weight: 400;
}

/* Summary Card */
.summary-card {
    background-color: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.summary-header {
    background-color: #f0f6f8;
    padding: 15px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #0c2a4b;
    text-transform: uppercase;
    border-bottom: 1px solid #e0e0e0;
}

.summary-content {
    padding: 20px;
    min-height: 80px;
    font-size: 0.9rem;
    color: #444;
}

.summary-footer {
    padding: 20px;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.btn-continue {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-continue:disabled {
    background-color: #d1d5db;
    color: #888;
    cursor: not-allowed;
}

.btn-continue:not(:disabled) {
    background-color: #0c2a4b;
    color: #fff;
}
.btn-continue:not(:disabled):hover {
    background-color: #1a4b7c;
}

/* Стили списка внутри корзины */
.summary-list-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eee;
}
.summary-list-item:last-child { border-bottom: none; }
.summary-total-block {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #eee;
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
}

/* =========================================
   7. FAQ (ACCORDION)
   ========================================= */
.faq-section {
    background-color: #fff;
    padding: 30px;
    margin-top: 30px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #0c2a4b;
    margin-bottom: 20px;
}

.faq-item { border-bottom: 1px solid #e0e0e0; }

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 15px 0;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question:hover { color: #006E63; }

.faq-icon {
    position: relative;
    width: 24px;
    height: 24px;
    color: #333;
}

.icon-plus, .icon-minus {
    position: absolute;
    top: 0; left: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.icon-minus { opacity: 0; transform: rotate(-90deg); }
.icon-plus { opacity: 1; }

.faq-item.active .icon-plus { opacity: 0; transform: rotate(90deg); }
.faq-item.active .icon-minus { opacity: 1; transform: rotate(0); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}
.faq-answer p { padding-bottom: 20px; }

.faq-footer { margin-top: 20px; }
.btn-faq-all {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.btn-faq-all:hover {
    background-color: #0c2a4b;
    color: #fff;
    border-color: #0c2a4b;
}

/* =========================================
   8. КАЛЕНДАРЬ И ЛЕГЕНДА (VISIT.PHP)
   ========================================= */
.calendar-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
}

.cal-header-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #0c2a4b;
    margin-bottom: 15px;
}

/* Легенда цветов */
.cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
}

.legend-item { display: flex; align-items: center; gap: 10px; }
.legend-box {
    width: 24px; height: 24px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.type-best { background-color: #004b7a; border-color: #004b7a; }
.type-last { 
    background: linear-gradient(135deg, #004b7a 50%, #eefbfd 50%);
    border-color: #004b7a;
}
.type-sold { background-color: #fff; border-color: #e0e0e0; }
.type-closed { 
    background-color: #fff; border-color: #e0e0e0; 
    position: relative; overflow: hidden;
}
.type-closed .cross-line {
    position: absolute; height: 1px; width: 150%;
    background-color: #e0e0e0;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Обертка календаря */
.cal-wrapper {
    background-color: #fff;
    padding: 20px 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: relative;
}

.cal-months-container {
    display: flex;
    gap: 40px;
    flex-grow: 1;
}

.cal-month { flex: 1; }

.month-name {
    text-align: center;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

.cal-nav-btn {
    background: none; border: none;
    font-size: 1.5rem; color: #333;
    cursor: pointer; margin-top: 50px;
}

/* Сетки */
.weekdays-grid, .days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}
.weekdays-grid { margin-bottom: 10px; font-size: 0.8rem; color: #666; font-weight: 700; }
.days-grid { gap: 6px; }

/* Ячейки дня */
.cal-day {
    aspect-ratio: 1;
    display: flex;
    padding: 4px 0 0 6px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
}

.day-sold { background-color: #fff; border-color: #e0e0e0; color: #aaa; cursor: default; }
.day-best { background-color: #004b7a; color: #fff; border-color: #004b7a; }
.day-best:hover { background-color: #00385c; }
.day-last {
    background: linear-gradient(135deg, #004b7a 50%, #eefbfd 50%);
    color: #fff; border-color: #004b7a;
}
.day-last:hover { opacity: 0.9; }
.day-selected {
    background-color: #004b7a !important; color: #fff !important;
    border: 3px solid #d4af37 !important;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.day-empty { visibility: hidden; }

/* =========================================
   9. MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
    .layout-grid {
        flex-direction: column;
        gap: 20px;
    }
    .col-tickets, .col-sidebar {
        flex: auto; width: 100%;
    }
    .col-sidebar { order: -1; }
    .sidebar-timer { justify-content: center; }
    .cal-months-container { flex-direction: column; gap: 20px; }
}
/* =========================================
   EXTRAS PAGE STYLES (Карточки с картинками)
   ========================================= */

.extras-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #000;
    margin-bottom: 5px;
}

.extras-header p {
    color: #666;
    margin-bottom: 25px;
}

/* Карточка услуги */
.extra-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden; /* Чтобы картинка не вылезала */
    display: flex;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

/* Картинка слева */
.extra-img {
    width: 200px;
    min-width: 200px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    /* На мобильных картинка уйдет наверх */
}

/* Контент справа */
.extra-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.extra-info h3 {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.extra-info p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 15px;
}

/* Нижняя часть карточки (Цена и кнопки) */
.extra-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #eee;
    padding-top: 15px;
    margin-top: auto; /* Прижимает к низу */
}

.extra-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #006E63; /* Зеленый цвет цены */
}

/* АДАПТИВНОСТЬ ДЛЯ EXTRAS */
@media (max-width: 768px) {
    .extra-card {
        flex-direction: column;
    }
    .extra-img {
        width: 100%;
        height: 150px; /* Фиксируем высоту на мобилках */
    }
}
/* =========================================
   CHECKOUT PAGE STYLES
   ========================================= */

.checkout-block {
    margin-bottom: 30px;
    background-color: #fff; /* Возможно нужен прозрачный фон, если блоки идут просто текстом, но обычно формы на белом */
}

/* На заголовках формы нет белого фона в дизайне, 
   но сами поля ввода лежат просто в потоке. 
   Если нужно выделить блоки как на скрине (Deliver, Payment, Details) - они разделены.
*/

.checkout-title {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: #000;
    margin-bottom: 15px;
    border-bottom: none;
}

/* Delivery Options Cards */
.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.delivery-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.delivery-card:hover {
    border-color: #bbb;
}

.delivery-card.selected {
    border: 2px solid #006E63; /* Зеленая рамка при выборе */
    background-color: #fafffe;
}

/* Скрываем стандартную радиокнопку */
.delivery-card input[type="radio"] {
    display: none; 
}

.del-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    color: #555;
    font-size: 1.2rem;
}

.del-info {
    font-size: 0.95rem;
    color: #333;
}

.del-name { font-weight: 700; }

/* Payment Method Card */
.payment-method-card {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.pm-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #006E63;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.pm-dot {
    width: 10px;
    height: 10px;
    background-color: #006E63;
    border-radius: 50%;
}

.pm-text {
    font-weight: 700;
    margin-right: auto;
}

.pm-icons {
    display: flex;
    gap: 10px;
    font-size: 1.5rem;
}

/* FORMS (Inputs) */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    width: 100%;
}

.form-row.half {
    display: flex;
    gap: 15px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
    outline: none;
    font-family: 'Lato', sans-serif;
}

.form-input:focus {
    border-color: #006E63;
}

/* Input with Icon (Card number) */
.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

/* Date group MM/YY */
.date-group {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
}
.date-group span { color: #888; }

select.form-input {
    background-color: #fff;
    cursor: pointer;
}