:root {
    --primary: #d52b1e;
    --primary-dark: #a61e13;
    --text: #333333;
    --text-light: #666666;
    --background: #f8f9fa;
    --white: #ffffff;
    --border-radius: 8px;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --primary-color: #649ad4;
    --secondary-color: #f8ebc0;
    --accent-color: #d46a64;
}

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

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 20px 0;
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

/* Navigation */
.nav__list {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav__link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav__link:hover {
    opacity: 0.8;
}

/* Hero section */
.hero {
    padding: 60px 0;
    text-align: center;
    background-color: var(--white);
}

.hero__title {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary);
}

.hero__subtitle {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Button styles */
.button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.button--outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.button--outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Form styles */
.form {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form__input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form__input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Card styles */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.card__title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary);
}

.card__text {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Grid system */
.grid {
    display: grid;
    gap: 30px;
}

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

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

/* Responsive design */
@media (max-width: 768px) {
    .grid--2,
    .grid--3 {
        grid-template-columns: 1fr;
    }

    .hero__title {
        font-size: 36px;
    }

    .hero__subtitle {
        font-size: 18px;
    }

    .nav__list {
        display: none;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.modal__content {
    position: relative;
    background-color: var(--white);
    margin: 50px auto;
    padding: 30px;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.modal__close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal__close:hover {
    color: var(--primary);
}

.modal__title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary);
}

/* Section styles */
.section {
    padding: 60px 0;
    background-color: var(--white);
}

.section:nth-child(even) {
    background-color: var(--background);
}

.section__title {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--primary);
}

/* Price styles */
.card__price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0;
}

footer {
    font-size: 0.9rem;
    background: #30363d;
    color: #f6f6f6;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Arsenal', sans-serif;
    font-weight: 700;
}

.bg-lightgray {
    background: #f5f5f5;
    color: #323232;
}

.desc {
    font-family: 'Didact Gothic', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover {
    background-color: #4a8ac9 !important;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
}

/* Стили для формы */
.form-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #444;
}

.form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(100, 154, 212, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

.invalid-feedback {
    font-size: 0.85rem;
    color: #dc3545;
}

.valid-feedback {
    font-size: 0.85rem;
    color: #28a745;
}

/* Стили для модального окна */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-title {
    font-weight: 700;
    color: #333;
}

.modal-body {
    padding: 1.5rem 2rem;
}

.modal-footer {
    border-top: none;
    padding-top: 0;
}

/* Стили для билетов */
.ticket-type {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.ticket-type:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ticket-price {
    min-width: 90px;
    text-align: right;
    white-space: nowrap;
}

.quantity-control {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: #e0e0e0;
}

.quantity-input {
    width: 50px;
    text-align: center;
    margin: 0 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.25rem;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Прогресс шагов */
.step-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.step-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #eee;
    z-index: 1;
    transform: translateY(-50%);
}

.step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.step.active {
    background: var(--primary-color);
    color: white;
}

.step.completed {
    background: #28a745;
    color: white;
}

.step-label {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.85rem;
    color: #666;
}

.step.active .step-label,
.step.completed .step-label {
    color: #333;
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 767.98px) {
    .bg-img {
        padding: 100px 0;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

/* Кастомные чекбоксы */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Стили для успешного бронирования */
.booking-success {
    text-align: center;
    padding: 2rem;
}

.booking-success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1.5rem;
}

/* Стили для календаря */
.datepicker {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.datepicker table tr td.active.active,
.datepicker table tr td.active.highlighted.active,
.datepicker table tr td.active.highlighted:active,
.datepicker table tr td.active:active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.datepicker table tr td.today {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.datepicker table tr td.disabled,
.datepicker table tr td.disabled:hover {
    color: #ccc;
    cursor: not-allowed;
}

/* Стили для поля ввода даты */
#date {
    background-color: #fff;
    cursor: pointer;
}

#date:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Стили для выпадающего списка времени */
#time {
    cursor: pointer;
}

#time:disabled {
    cursor: not-allowed;
}

/* Стили для тегов */
.tagify {
    --tags-border-color: #ddd;
    --tags-hover-border-color: #ccc;
    --tags-focus-border-color: var(--primary-color);
}

.bg-img {
    padding: 165px 0;
    background-image: url("/img/bg.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    color: #f6f6f6;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.modal-backdrop {
    z-index: 1040 !important;
}
.modal.show, .modal.fade.show {
    z-index: 1055 !important;
}

#bookingCurtain.hidden {
    display: none !important;
} 