/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #2d2d2d;  /* тёмно-серый фон */
    color: #fff;                 /* белый текст по умолчанию */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Шапка (sticky) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr auto 1fr;  /* три колонки: левая, центр, правая */
    align-items: center;
    padding: 10px 20px;
    background-color: #3a3a3a;
    border-bottom: 2px solid #f0b90b;
    min-height: 80px;  /* фиксированная высота для десктопа */
}

.header-left {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-self: start;
}

/* Единый стиль для всех кнопок-иконок */
.icon-button {
    background-color: #4a4a4a;
    color: #f0b90b;
    font-size: 24px;
    line-height: 1;
    width: 44px;           /* фиксированная ширина */
    height: 44px;          /* фиксированная высота */
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    padding: 0;            /* убираем внутренние отступы */
}

.icon-button:hover {
    background-color: #5a5a5a;
}

.back-button {
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    line-height: 1;
    padding: 5px 12px;
    border-radius: 30px;
    background-color: #4a4a4a;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.back-button:hover {
    background-color: #5a5a5a;
}

/* Специфические стили для кнопки меню (бургер) */
.menu-button {
    font-size: 28px;       /* чуть больше для бургера */
}

.menu-button:hover {
    background-color: #5a5a5a;
}

/* Логотип */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo a {
    display: block;
    line-height: 0;        /* убираем лишние отступы */
}

.logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s;
    display: block;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Правый пустой блок для баланса */
.header-right {
    justify-self: end;
    width: 44px;           /* такая же ширина, как у кнопок слева */
    height: 44px;
}

/* Основной контент */
.main-content {
    flex: 1;
    padding: 30px 20px;
}

.content-block {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Заголовки */
h1, h2, h3 {
    color: #fff;
    margin-bottom: 20px;
    text-align: center;           /* все заголовки по центру */
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

/* Модальное окно (оставим прежним, но адаптируем цвета) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-menu {
    background: #3a3a3a;
    border-radius: 40px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid #f0b90b;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #f0b90b;
}

.modal-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-link {
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 40px;
    background-color: #4a4a4a;
    transition: background-color 0.3s;
    text-align: center;
    border: 1px solid #f0b90b;
}

.modal-link:hover {
    background-color: #5a5a5a;
}

/* Разделитель в модальном меню */
.modal-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #f0b90b, transparent);
    margin: 20px 0 10px;
    width: 100%;
}

/* Кнопка "В главное меню" - можно сделать немного отличающейся */
.modal-link.home-link {
    background-color: #4a4a4a;
    border: 2px solid #f0b90b;
    font-weight: 700;
    margin-top: 5px;
}

.modal-link.home-link:hover {
    background-color: #5a5a5a;
    border-color: #ffd700;
}

/* Можно добавить иконку домика через псевдоэлемент, но она уже есть в тексте */

/* Описание на главной */
.description {
    text-align: center;
    margin-bottom: 50px;
    color: #fff;
}

.description h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #f0b90b;               /* жёлтый заголовок */
}

.description p {
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Кнопки (жёлтые) */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    min-width: 200px;
    flex: 1 1 200px;
    max-width: 300px;
    background-color: #f0b90b;     /* жёлтый фон */
    color: #2d2d2d;                 /* тёмный текст */
    text-decoration: none;
    border-radius: 60px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
}

.button:hover {
    background-color: #ffd700;      /* ярче при наведении */
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    color: #1a1a1a;
}

/* FAQ */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 20px;
    overflow: hidden;
    background-color: #3a3a3a;
    border: 1px solid #5a5a5a;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    position: relative;
    transition: background-color 0.3s;
    background-color: #3a3a3a;
}

.faq-question:hover {
    background-color: #4a4a4a;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    font-weight: 300;
    color: #f0b90b;
    transition: transform 0.3s;
}

.faq-question.active::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
    border-top: 1px solid #5a5a5a;
    background-color: #333;
}

.faq-answer.show {
    display: block;
}

.faq-answer-content {
    padding: 25px 25px 30px 25px;
    text-align: center;           /* центрирование текста */
    max-width: 800px;
    margin: 0 auto;
}

.faq-answer-content p {
    margin-bottom: 15px;
    text-align: center;           /* центрирование каждого параграфа */
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

/* Контакты */
.contacts-list {
    list-style: none;
    padding: 0;
    font-size: 1.2rem;
    color: #fff;
    text-align: center;
}

.contacts-list li {
    margin: 15px 0;
}

.contacts-list a {
    color: #f0b90b;
    text-decoration: underline;
}

/* Мерч: общие стили для всех страниц мерча */
.merch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 350px));
    gap: 30px;
    margin: 40px auto;
    justify-content: center;
}

.merch-card {
    background-color: #3a3a3a;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
    border: 1px solid #5a5a5a;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.merch-card:hover {
    transform: translateY(-10px);
}

.merch-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 2px solid #f0b90b;
}

.merch-card h3 {
    font-size: 1.8rem;
    margin: 20px 20px 10px;
    color: #fff;
}

.merch-card p {
    font-size: 1rem;
    color: #ccc;
    margin: 0 20px 15px;
}

.merch-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f0b90b;
    margin: 10px 20px;
}

.merch-card .button {
    display: inline-block;
    margin: 20px auto;
    padding: 12px 30px;
    background-color: #f0b90b;
    color: #2d2d2d;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s;
    border: none;
    max-width: 200px;
}

.merch-card .button:hover {
    background-color: #ffd700;
}

.merch-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0 10px 15px;
}

/* Вариации */
.variations-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 300px));
    gap: 25px;
    margin: 30px auto;
    justify-content: center;
}

.variation-card {
    background-color: #3a3a3a;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #5a5a5a;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.variation-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
    border: 2px solid #f0b90b;
}

.variation-card h3 {
    font-size: 1.5rem;
    margin: 10px 0;
    color: #fff;
    flex-shrink: 0;
}

.variation-card .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f0b90b;
    margin: 10px 0;
    flex-shrink: 0;
}

.variation-card .in-stock,
.variation-card .out-of-stock {
    font-size: 1rem;
    margin: 5px 0 10px;
    flex-shrink: 0;
}

/* Кнопка "Выбрать" в карточках вариаций */
.variation-card .button {
    display: inline-block;
    width: auto;
    min-width: 0;
    max-width: none;
    flex: none;
    padding: 12px 35px;
    margin: 10px auto 5px;
    background-color: #f0b90b;
    color: #2d2d2d;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1.3rem;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    align-self: center;
    line-height: 1.2;
    box-shadow: none;
    text-transform: none;
    letter-spacing: normal;
}

.variation-card .button:hover {
    background-color: #ffd700;
    transform: none;
    box-shadow: none;
    color: #2d2d2d;
}

/* Детальная страница вариации (галерея) */
.variation-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2d2d2d;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Страница галереи */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
    justify-content: center;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #f0b90b;
    background-color: #333;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

/* Формы (оформление заказа) */
.order-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #3a3a3a;
    padding: 40px;
    border-radius: 30px;
    border: 2px solid #f0b90b;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #f0b90b;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #5a5a5a;
    border-radius: 15px;
    background-color: #2d2d2d;
    color: #fff;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #f0b90b;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23f0b90b' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.hint {
    display: block;
    color: #ccc;
    font-size: 0.9rem;
    margin-top: 5px;
}

.order-button {
    width: 100%;
    padding: 18px;
    font-size: 1.3rem;
    background-color: #f0b90b;
    color: #2d2d2d;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.order-button:hover {
    background-color: #ffd700;
}

/* Стеклянный эффект для карточек */
.glass-effect {
    background: rgba(58, 58, 58, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(240, 185, 11, 0.3);
}

/* Страница оплаты */
.payment-details {
    max-width: 600px;
    margin: 0 auto;
    background-color: #3a3a3a;
    padding: 40px;
    border-radius: 30px;
    border: 2px solid #f0b90b;
    text-align: center;
}

.payment-details h2 {
    color: #f0b90b;
    margin-bottom: 20px;
}

.payment-details .price {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin: 20px 0;
}

.payment-details .price strong {
    color: #f0b90b;
    font-size: 2.5rem;
    display: block;
    margin-top: 5px;
}

.payment-receipt {
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    text-align: left;
    background: rgba(45, 45, 45, 0.8);  /* полупрозрачный тёмный фон */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(240, 185, 11, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.payment-receipt h3 {
    color: #f0b90b;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
}

.payment-receipt ul {
    list-style: none;
    padding: 0;
}

.payment-receipt li {
    margin: 15px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: baseline;
    border-bottom: 1px solid rgba(240, 185, 11, 0.2);
    padding-bottom: 10px;
}

.payment-receipt strong {
    color: #f0b90b;
    min-width: 120px;
    display: inline-block;
}

.payment-receipt .label {
    color: #f0b90b;
    min-width: 120px;
    font-weight: 600;
}

.payment-receipt .value {
    color: #fff;
    flex: 1;
    text-align: right;
    font-family: monospace;
    font-size: 1.1rem;
}

.important {
    font-size: 1.2rem;
    color: #f0b90b;
    font-weight: 700;
    margin-top: 25px;
    text-align: center;
    padding: 15px;
    background: rgba(240, 185, 11, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(240, 185, 11, 0.3);
}

.pay-button {
    display: inline-block;        /* чтобы кнопка была по ширине содержимого */
    width: auto;                  /* авто-ширина */
    min-width: 250px;             /* минимальная ширина для красоты */
    padding: 18px 40px;
    font-size: 1.5rem;
    background-color: #27ae60;    /* зелёный цвет */
    color: #ffffff !important;    /* белый текст */
    border: none;
    border-radius: 60px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin: 20px auto;            /* центрирование через auto */
    text-align: center;
    box-shadow: 0 10px 20px rgba(39, 174, 96, 0.3);
}

.pay-button:hover {
    background-color: #2ecc71;    /* более светлый зелёный при наведении */
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(39, 174, 96, 0.4);
    color: #ffffff !important;
}

.pay-button:active {
    transform: translateY(0);
}

.note {
    color: #ccc;
    font-size: 0.9rem;
    margin-top: 20px;
    font-style: italic;
}

/* Страница успеха */
.success-message {
    text-align: center;
    font-size: 1.3rem;
    margin: 40px 0;
    padding: 40px;
    background-color: #3a3a3a;
    border-radius: 30px;
    border: 2px solid #f0b90b;
    color: #fff;
}

.success-message h1 {
    color: #f0b90b;
}

/* Кнопка назад внизу (дублирующая) */
.back-link {
    text-align: center;
    margin-top: 40px;
}

.back-link a {
    display: inline-block;
    padding: 12px 30px;
    background-color: #4a4a4a;
    color: #fff;
    text-decoration: none;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s;
    border: 1px solid #f0b90b;
}

.back-link a:hover {
    background-color: #5a5a5a;
}


/* Специально для страницы вариации */
.variation-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.variation-detail {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 50px;
    margin: 40px 0;
    align-items: start;
    justify-content: center;  /* центрирование сетки внутри контейнера */
}

.variation-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;  /* вертикальный прямоугольник 3:4 */
    background-color: #333;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #f0b90b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.main-image-container .no-image {
    color: #fff;
    font-size: 1.2rem;
}

/* Стрелки навигации */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #f0b90b;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-arrow {
    left: 10px;
}

.next-arrow {
    right: 10px;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail.active {
    border-color: #f0b90b;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Правая колонка */
.variation-info {
    color: #fff;
    text-align: left;  /* текст внутри выровнен влево */
}

.variation-info h1 {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #f0b90b;
}

.variation-info h2 {
    text-align: left;
    font-size: 1.8rem;
    color: #ccc;
    margin-bottom: 20px;
}

.variation-info .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #f0b90b;
    margin: 20px 0;
}

.variation-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0 10px 15px;
}

/* Кнопки действий */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.action-buttons .button {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    font-size: 1.1rem;
    text-align: center;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
}

.photo-button {
    background-color: #4a4a4a;
    color: #fff;
    border: 1px solid #f0b90b;
}

.photo-button:hover {
    background-color: #5a5a5a;
}

.select-button {
    background-color: #f0b90b;
    color: #2d2d2d;
}

.select-button:hover {
    background-color: #ffd700;
}

/* Альбомы контента */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 350px));
    gap: 30px;
    margin: 40px auto;
    justify-content: center;
}

.album-card {
    background-color: #3a3a3a;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
    border: 1px solid #5a5a5a;
    text-align: center;
}

.album-card:hover {
    transform: translateY(-10px);
    border-color: #f0b90b;
}

.album-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.album-card .cover {
    width: 100%;
    aspect-ratio: 1 / 1;  /* это делает изображение вертикальным */
    overflow: hidden;
}

.album-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* фото заполнит контейнер, возможно обрезаясь */
    display: block;
}

.album-card h3 {
    font-size: 1.5rem;
    margin: 20px 15px;
    color: #fff;
    transition: color 0.3s;
}

.album-card:hover h3 {
    color: #f0b90b;
}

.album-card .no-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4a4a4a;
    color: #aaa;
    font-size: 1.2rem;
}

/* Кнопка-домик */
.home-button {
    background-color: #4a4a4a;
    color: #f0b90b;
    font-size: 24px;
    line-height: 1;
    padding: 5px 12px;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-button:hover {
    background-color: #5a5a5a;
}

/* Бас-туры */
/* Бас-туры - полная аналогия с мерчем */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 300px));
    gap: 25px;
    margin: 40px auto;
    justify-content: center;
    padding: 0 15px;
}

.tour-card {
    background-color: #3a3a3a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, border-color 0.3s;
    border: 1px solid #5a5a5a;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tour-card:hover {
    transform: translateY(-6px);
    border-color: #f0b90b;
    box-shadow: 0 12px 25px rgba(240, 185, 11, 0.15);
}

.tour-card .poster {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #2d2d2d;
    border-bottom: 2px solid #f0b90b;
}

.tour-card .poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    display: block;
}

.tour-card:hover .poster img {
    transform: scale(1.05);
}

.tour-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 16px 16px 8px;
    color: #fff;
    line-height: 1.3;
}

.tour-card .description {
    font-size: 0.95rem;
    color: #ccc;
    margin: 0 16px 12px;
    line-height: 1.5;
    flex-grow: 1;
}

/* Кнопка "Перейти" для бас-туров - исправленная версия */
.tour-button {
    display: inline-block;
    margin: 0 20px 20px 20px;
    padding: 12px 40px;
    background-color: #f0b90b;
    color: #2d2d2d;
    border-radius: 40px;  /* вернули как в мерче */
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    align-self: center;
    min-width: 160px;
    text-align: center;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;  /* убрали uppercase, если он был */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tour-button:hover {
    background-color: #ffd700;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(240, 185, 11, 0.3);
}

.tour-button:active {
    transform: translateY(0);
}

.tour-button.disabled {
    background-color: #5a5a5a;
    color: #aaa;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.tour-card .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #4a4a4a;
    color: #aaa;
    font-size: 1.2rem;
}
.tour-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f0b90b;  /* жёлтый цвет */
    margin: 0 16px 12px;
}

/* Мероприятия - аналогично турам */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 300px));
    gap: 25px;
    margin: 40px auto;
    justify-content: center;
    padding: 0 15px;
}

.event-card {
    background-color: #3a3a3a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s, border-color 0.3s;
    border: 1px solid #5a5a5a;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card:hover {
    transform: translateY(-6px);
    border-color: #f0b90b;
    box-shadow: 0 12px 25px rgba(240, 185, 11, 0.15);
}

.event-card .poster {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #2d2d2d;
    border-bottom: 2px solid #f0b90b;
}

.event-card .poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    display: block;
}

.event-card:hover .poster img {
    transform: scale(1.05);
}

.event-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 16px 16px 8px;
    color: #fff;
    line-height: 1.3;
}

.event-card .event-date {
    color: #f0b90b;
    font-size: 1rem;
    margin: 5px 15px;
    font-weight: 600;
}

.event-card .venue {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0 15px 10px;
}

.event-card .description {
    font-size: 0.9rem;
    margin: 0 15px 10px;
    color: #ccc;
    flex-grow: 1;
}

.event-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f0b90b;
    margin: 5px 15px 15px;
}

.event-button {
    display: inline-block;
    margin: 0 20px 20px 20px;
    padding: 12px 40px;
    background-color: #f0b90b;
    color: #2d2d2d;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    align-self: center;
    min-width: 160px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.event-button:hover {
    background-color: #ffd700;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(240, 185, 11, 0.3);
}

.faq-button {
    display: inline-block;
    margin: 5px auto;
    padding: 6px 12px;
    background-color: #4a4a4a;
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.3s;
    border: 1px solid #5a5a5a;
}

.event-actions {
    margin-top: auto;           /* прижимает блок к низу карточки */
    display: flex;
    flex-direction: column;     /* кнопки вертикально */
    align-items: center;        /* центрируем по горизонтали */
    gap: 10px;                  /* отступ между кнопками */
    width: 100%;
}

/* Стили для модальных окон */
.category-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    background-color: #4a4a4a;
    border: 1px solid #f0b90b;
    color: white;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.category-btn:hover:not(:disabled) {
    background-color: #5a5a5a;
    transform: translateX(5px);
}

.category-btn.disabled,
.category-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tier-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.tier-name {
    font-weight: bold;
    color: #f0b90b;
}

.tier-price {
    font-size: 1.2rem;
    color: #fff;
}

.tier-available {
    font-size: 0.9rem;
    color: #aaa;
    width: 100%;
    margin-top: 5px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.quantity-btn {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background-color: #4a4a4a;
    border: 2px solid #f0b90b;
    color: #f0b90b;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.quantity-btn:hover:not(:disabled) {
    background-color: #5a5a5a;
    transform: scale(1.1);
}

.quantity-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#quantity {
    font-size: 28px;
    font-weight: bold;
    color: #f0b90b;
    min-width: 50px;
    text-align: center;
}

.total-price {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin: 20px 0;
    text-align: center;
}

.total-price span {
    color: #f0b90b;
    font-size: 32px;
}

.loader {
    border: 5px solid #3a3a3a;
    border-top: 5px solid #f0b90b;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.event-info {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0b90b;
}

.event-info h2 {
    color: #f0b90b;
    margin-bottom: 10px;
}

.event-info p {
    color: #ccc;
}

.faq-button:hover {
    background-color: #5a5a5a;
}


/* Адаптивность */
/* ===== ТЕЛЕФОНЫ В ПОРТРЕТНОЙ ОРИЕНТАЦИИ (все модели) ===== */
@media (orientation: portrait) {
    .site-header {
        min-height: 90px;           /* шапка чуть выше */
        padding: 8px 15px;
    }
    .icon-button {
        width: 48px;                 /* чуть больше на телефонах */
        height: 48px;
        font-size: 26px;
    }
    .menu-button {
        font-size: 30px;
    }
    .logo img {
        height: 70px;                /* чуть меньше на телефонах */
    }
    .header-right {
        width: 48px;
        height: 48px;
    }

    /* ----- ГЛАВНАЯ СТРАНИЦА ----- */
    .button-row {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
    }
    .button {
        width: 100%;
        max-width: min(400px, 80vw);
        min-width: 0;
        flex: none;
        padding: 18px 25px;
        font-size: 1.3rem;
        margin: 0 auto;
    }

    /* ----- СЕТКИ (мерч, вариации, альбомы) ----- */
    .merch-grid,
    .variations-grid,
    .albums-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }

    /* ----- ПЛИТКИ МЕРЧА ----- */
    .merch-card {
        padding: 0 0 15px 0;
    }
    .merch-card img {
        height: auto;
        aspect-ratio: 4 / 3;  /* вертикальные 4:3 (высота меньше ширины) */
        width: 100%;
        object-fit: cover;
    }
    .merch-card h3 {
        font-size: 1.1rem;
        margin: 8px 8px 5px;
    }
    .merch-card p {
        font-size: 0.85rem;
        margin: 0 8px 8px;
    }
    .merch-card .price {
        font-size: 1.1rem;
        margin: 5px 8px;
    }
    .merch-card .button {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 20px;
        font-size: 1rem;
        min-width: 120px;
        margin: 0 auto;               /* горизонтальное центрирование */
        max-width: 80%;
    }

    /* ----- ПЛИТКИ ВАРИАЦИЙ ----- */
    .variation-card {
        padding: 10px;
    }
    .variation-card img {
        height: auto;
        aspect-ratio: 4 / 3;  /* вертикальные 4:3 */
        width: 100%;
        object-fit: cover;
        border-radius: 12px;
    }
    .variation-card h3 {
        font-size: 1.1rem;
        margin: 8px 0;
    }
    .variation-card .price {
        font-size: 1.2rem;
        margin: 5px 0;
    }
    .variation-card .button {
        padding: 12px 20px;
        font-size: 1rem;
        min-width: 120px;
        margin: 8px auto;
    }
    /* ----- ПЛИТКИ АЛЬБОМОВ ----- */
    .album-card .cover {
        aspect-ratio: 4 / 3;  /* вертикальные 4:3 */
    }
    .album-card h3 {
        font-size: 1.1rem;
        margin: 12px 8px;
    }

    /* ----- СТРАНИЦА ВАРИАЦИИ (галерея) ----- */
    .variation-detail {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .main-image-container {
        max-width: 100%;
        margin: 0 auto;
    }
    .variation-info {
        text-align: center;
    }
    .variation-info h1,
    .variation-info h2 {
        text-align: center;
        font-size: 1.8rem;
    }
    .variation-info h2 {
        font-size: 1.3rem;
    }
    .variation-info .price {
        font-size: 2rem;
    }
    .action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .action-buttons .button {
        width: 100%;
        max-width: 280px;
        padding: 15px 25px;
        font-size: 1.2rem;
        min-width: 0;
    }

    /* ----- ФОРМЫ ----- */
    .order-form,
    .payment-details,
    .success-message {
        padding: 20px;
    }
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 14px 18px;
        font-size: 1rem;
    }
    .order-button,
    .pay-button {
        padding: 16px 25px;
        font-size: 1.3rem;
    }

    /* ----- ШАПКА ----- */
    .site-header {
        padding: 8px 12px;
    }
    .logo img {
        height: 45px;
    }
    .menu-button {
        font-size: 24px;
        padding: 6px 14px;
    }
    .back-button,
    .home-button {
        font-size: 22px;
        padding: 6px 14px;
    }

    /* ----- FAQ ----- */
    .faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .faq-question::after {
        font-size: 22px;
        right: 15px;
    }
    .faq-answer-content {
        padding: 15px;
        font-size: 0.95rem;
    }
    .tours-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }
    .tour-card h3 {
        font-size: 1.1rem;
        margin: 12px 10px 6px;
    }
    .tour-card .description {
        font-size: 0.85rem;
        margin: 0 10px 8px;
    }
    .tour-card .price {
        font-size: 1.1rem;          /* ещё меньше для мобильных */
        font-weight: 700;
        color: #f0b90b;
        margin: 0 10px 12px;        /* можно чуть уменьшить отступы по бокам */
    }
    .tour-button {
        padding: 10px 25px;        /* более узкая на телефонах */
        font-size: 1rem;            /* чуть меньше, чем на десктопе, но всё ещё крупно */
        min-width: 130px;
        margin: 0 15px 18px 15px;
        font-weight: 700;
    }

    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }

    .event-card h3 {
        font-size: 1.1rem;
        margin: 10px 10px 4px;      /* уменьшен верхний отступ */
    }

    .event-card .event-date {
        font-size: 0.85rem;
        margin: 4px 10px;
    }

    .event-card .venue {
        font-size: 0.8rem;
        margin: 0 10px 4px;
    }

    .event-card .description {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.85rem;
        margin: 0 10px 8px;
        line-height: 1.3;
        /* убираем flex-grow, чтобы описание не растягивало карточку */
        flex-grow: 0;
        /* добавляем максимальную высоту на всякий случай */
        max-height: 2.6em; /* 2 строки * 1.3 = 2.6 */
    }

    .event-card .price {
        font-size: 1.1rem;
        margin: 4px 10px 8px;
    }

    .event-button {
        padding: 10px 25px;
        font-size: 1rem;
        min-width: 130px;
        margin: 0 15px 18px 15px;
    }

    .event-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    }

    .faq-button {
        align-self: center;
        width: fit-content;          /* ширина по содержимому */
        min-width: 0;                /* сбрасываем возможные min-width */
        max-width: 80%;              /* но не больше ширины родителя */
        margin: 5px auto;
        padding: 6px 12px;
        font-size: 0.9rem;
        background-color: #4a4a4a;
        color: #fff;
        border-radius: 20px;
        text-decoration: none;
        transition: background-color 0.3s;
        border: 1px solid #5a5a5a;
    }
}
