:root {
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
}

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


/* ===== ГАЛЕРЕЯ НА ГЛАВНОЙ ===== */
.home-gallery {
    margin-top: 60px;
    width: 100%;
}

.gallery-title {
    text-align: center;
    color: #f0b90b;
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 500;
    letter-spacing: 1px;
}

.gallery-slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(240, 185, 11, 0.3);
    aspect-ratio: 16 / 9;
    background-color: #1a1a1a;
    /* Аппаратное ускорение */
    transform: translateZ(0);
    will-change: transform;
}

.gallery-slider {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Аппаратное ускорение */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.gallery-slide {
    flex: 0 0 100%;
    height: 100%;
    /* Улучшает производительность */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;  /* улучшает качество */
    image-rendering: smooth;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #f0b90b;
    border: 2px solid rgba(240, 185, 11, 0.5);
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    padding: 0;
    line-height: 1;
}

.slider-nav:hover {
    background-color: #f0b90b;
    color: #1a1a1a;
    border-color: #f0b90b;
}

.slider-nav.prev {
    left: 15px;
}

.slider-nav.next {
    right: 15px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(240, 185, 11, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: #f0b90b;
    transform: scale(1.3);
    border-color: #f0b90b;
}

.dot:hover {
    background-color: #f0b90b;
}


/* ===== КРАСИВЫЙ АНИМИРОВАННЫЙ ФОН ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1a1a1a;  /* базовый тёмный фон */
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Анимированный паттерн из логотипа (единственный слой) */
body::after {
    content: '';
    position: fixed;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background-image: url("/static/images/logo-pattern.ccd1c95b6c93.png");
    background-repeat: repeat;
    background-size: 96px 96px;
    background-position: center;
    opacity: 0.35;  /* немного уменьшили прозрачность для мягкости */
    z-index: -1;
    pointer-events: none;
    animation: slowFloat 70s linear infinite;
    /* Сглаживание */
    filter: blur(1.0px);
    -webkit-filter: blur(1.2px);
    /* Аппаратное ускорение */
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    image-rendering: -webkit-optimize-contrast; /* улучшает рендеринг */
}

/* Анимация медленного движения */
@keyframes slowFloat {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-2%, 1%) rotate(-1deg);
    }
    50% {
        transform: translate(1%, -2%) rotate(1deg);
    }
    75% {
        transform: translate(-1%, 2%) rotate(-1deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Дополнительный слой затемнения для лучшей читаемости (опционально) */
.content-overlay {
    position: relative;
    z-index: 1;
}

/* Шапка (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: var(--border-radius-md);
    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: var(--border-radius-md);
    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: var(--border-radius-md);
    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: var(--border-radius-md);
    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: var(--border-radius-md);
    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: var(--border-radius-md);
    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(auto-fit, minmax(250px, 350px));
    gap: 30px;
    margin: 40px auto;
    justify-content: center;
}

.merch-card {
    background-color: #3a3a3a;
    border-radius: var(--border-radius-md);
    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;
}

.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: var(--border-radius-md);
    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;
}

.merch-card .button {
    display: inline-block;
    width: auto;
    min-width: 120px;
    max-width: 180px;
    padding: 10px 20px;
    margin: 10px auto;
    background-color: #f0b90b;
    color: #2d2d2d;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex: none; /* отключаем flex-растяжение */
}

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

.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(auto-fit, minmax(220px, 300px));
    gap: 25px;
    margin: 30px auto;
    justify-content: center;
}

.variation-card {
    background-color: #3a3a3a;
    border-radius: var(--border-radius-md);
    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: var(--border-radius-md);
    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: var(--border-radius-md);
    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: var(--border-radius-md);
    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: var(--border-radius-md);
    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: var(--border-radius-md);
    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: var(--border-radius-md);
    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: var(--border-radius-md);
    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: var(--border-radius-md);
    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: var(--border-radius-md);
    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: var(--border-radius-md);
    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: var(--border-radius-md);
    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: var(--border-radius-md);
    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: var(--border-radius-md);
    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: var(--border-radius-md);
    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: var(--border-radius-md);
    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: var(--border-radius-md);
    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(auto-fit, minmax(250px, 350px));
    gap: 30px;
    margin: 40px auto;
    justify-content: center;
}

.album-card {
    background-color: #3a3a3a;
    border-radius: var(--border-radius-md);
    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;
}

/* Бас-туры */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
    gap: 25px;
    margin: 40px auto;
    justify-content: center;
    padding: 0 15px;
}

.tour-card {
    background-color: #3a3a3a;
    border-radius: var(--border-radius-md);
    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: var(--border-radius-md);
    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(auto-fit, minmax(250px, 300px));
    gap: 25px;
    margin: 40px auto;
    justify-content: center;
    padding: 0 15px;
}

.event-card {
    background-color: #3a3a3a;
    border-radius: var(--border-radius-md);
    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: var(--border-radius-md);
    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: var(--border-radius-md);
    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: var(--border-radius-md);
    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: var(--border-radius-md);
    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;
}

.button.disabled,
.button:disabled {
    background-color: #4a4a4a !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    pointer-events: none;
}

/* Стили для промокода */
.promo-section {
    margin: 20px 0;
    padding: 15px;
    background: #3a3a3a;
    border-radius: var(--border-radius-md);
}

.promo-section label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #f0b90b;  /* жёлтый цвет */
}

.promo-input-wrapper {
    display: flex;
    gap: 10px;
}

.promo-input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #f0b90b;
    background: #2a2a2a;
    color: #fff;
    font-size: 1rem;
}

.promo-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 5px rgba(240, 185, 11, 0.5);
}

.promo-button {
    padding: 12px 20px;
    background: #f0b90b;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    color: #2d2d2d;
    transition: background-color 0.3s;
}

.promo-button:hover {
    background: #ffd700;
}

.promo-message {
    margin-top: 10px;
    font-size: 0.9rem;
}

.promo-message.success {
    color: #4caf50;
}

.promo-message.error {
    color: #f44336;
}

.promo-message.info {
    color: #f0b90b;
}


/* Базовый цвет ссылок */
a {
    color: #f0b90b;  /* твой жёлтый */
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Для ссылок внутри меню, если нужно сохранить белый фон */
.modal-link {
    color: #f0b90b !important;
}

/* Для ссылок в тексте политики и других документах */
.legal-document a {
    color: #f0b90b;
    text-decoration: underline;
}

.legal-document a:hover {
    opacity: 0.8;
}

/* ОФЕРТА */
.legal-document {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.legal-document h1 {
    color: #f0b90b;
    text-align: center;
    margin-bottom: 10px;
}

.legal-document .last-updated {
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.legal-document h2 {
    color: #f0b90b;
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-document section {
    margin-bottom: 30px;
}

.legal-document ul {
    margin: 10px 0 10px 20px;
}

.legal-document li {
    margin-bottom: 8px;
}

.requisites {
    background: #2a2a2a;
    padding: 20px;
    border-radius: var(--border-radius-md);
    list-style: none;
}

.requisites li {
    margin-bottom: 10px;
}

.payment-note {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 10px;
}

/* Сообщения (flash messages) */
.messages {
    max-width: 600px;
    margin: 0 auto 30px auto;
    text-align: center;
}

.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius-md);
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 1rem;
}

.alert-error {
    background-color: #f44336;
    color: white;
    border-left: 5px solid #b71c1c;
}

.alert-success {
    background-color: #4caf50;
    color: white;
    border-left: 5px solid #1b5e20;
}

.alert-warning {
    background-color: #ff9800;
    color: white;
    border-left: 5px solid #e65100;
}

.alert-info {
    background-color: #2196f3;
    color: white;
    border-left: 5px solid #0b3d5f;
}


/* ===== ДЕТАЛЬНАЯ СТРАНИЦА МЕРОПРИЯТИЯ ===== */
.event-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.event-poster-wrapper {
    background-color: #000000;  /* чёрный фон */
    padding: 0 100px;  /* поля по бокам */
    border-radius: var(--border-radius-md);  /* скругление */
    display: flex;  /* меняем на flex для лучшего центрирования */
    justify-content: center;  /* центрируем по горизонтали */
    align-items: center;  /* центрируем по вертикали */
    width: fit-content;  /* ширина по содержимому */
    max-width: 100%;  /* не вылезаем за пределы */
    margin-left: auto !important;  /* принудительно центрируем */
    margin-right: auto !important;  /* принудительно центрируем */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.event-poster {
    border-radius: 0;  /* убираем скругление у самой картинки */
    box-shadow: none;  /* убираем тень у картинки */
    border: none;  /* убираем жёлтую рамку у картинки */
    max-height: 400px;
    display: block;
    margin: 0;  /* убираем любые внешние отступы */
}
}

.no-poster {
    width: 100%;
    height: 300px;
    background-color: #3a3a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    border-radius: var(--border-radius-md);
    border: 2px solid #f0b90b;
}

.event-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 30px 0;
}

.event-left-column {
    /* Левая колонка 2/3 */
}

.event-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    text-align: left;
    line-height: 1.2;
}

.event-action-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.outline-button {
    background-color: transparent;
    border: 2px solid #f0b90b;
    color: #f0b90b;
    box-shadow: none;
    flex: 1;
    min-width: 180px;
}

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

.buy-button-main {
    flex: 1;
    min-width: 180px;
}

.event-description {
    color: #ddd;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: left;
}

.event-right-column {
    /* Правая колонка 1/3 */
}

.event-info-panel {
    background-color: #3a3a3a;
    border-radius: var(--border-radius-md);
    padding: 25px 20px;
    border: 1px solid #5a5a5a;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    color: #fff;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

.info-text {
    font-size: 1.1rem;
    line-height: 1.4;
}

.info-text small {
    color: #aaa;
    font-size: 0.9rem;
}

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

.share-button {
    width: 60%;
    background-color: #4a4a4a;
    border: 1px solid #f0b90b;
}

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

/* Мобильная закреплённая кнопка */
.mobile-sticky-buy {
    display: none;  /* по умолчанию скрыта */
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 500;
}

.buy-button-sticky {
    width: 100%;
    background-color: #27ae60;
    color: #fff;
    border: none;
    padding: 18px;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.5);
}

.buy-button-sticky:hover {
    background-color: #2ecc71;
}

.event-description-desktop {
    display: block;
}
.event-description-mobile {
    display: none;
}


/* ===== СТРАНИЦА СКАНИРОВАНИЯ БИЛЕТОВ ===== */
.scan-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;           /* ограничиваем максимальную ширину */
    margin: 0 auto 20px;        /* центрируем и добавляем отступ снизу */
    border: 3px solid #f0b90b;
    border-radius: 15px;
    overflow: hidden;
    background-color: #000;
}

#video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 300px;          /* ограничиваем высоту */
    object-fit: cover;          /* сохраняем пропорции, обрезая лишнее */
}

#canvas {
    display: none;
}

.scan-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    min-height: 100px;
    max-height: 200px;
    overflow-y: auto;           /* прокрутка внутри результата, если много текста */
}

.scan-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.scan-controls .button {
    flex: 0 1 auto;
    min-width: 180px;
    padding: 12px 25px;
}






/* Адаптивность */
/* ===== ТЕЛЕФОНЫ В ПОРТРЕТНОЙ ОРИЕНТАЦИИ (все модели) ===== */
@media (orientation: portrait) {
    .site-header {
        min-height: 70px;           /* шапка чуть выше */
        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;
        justify-content: center;
    }

    /* ----- ПЛИТКИ МЕРЧА ----- */
    .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: var(--border-radius-md);
    }
    .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;
    }
    .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,
    .tours-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 150px));
        gap: 15px;
        padding: 0 10px;
        justify-content: center;
    }

    .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: var(--border-radius-md);
        text-decoration: none;
        transition: background-color 0.3s;
        border: 1px solid #5a5a5a;
    }
}


@media (max-width: 768px) {
    .home-gallery {
        margin-top: 40px;
    }
    .gallery-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    .gallery-slider-container {
        aspect-ratio: 4 / 3;
        border-radius: 15px;
    }
    .slider-nav {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
    .slider-nav.prev {
        left: 10px;
    }
    .slider-nav.next {
        right: 10px;
    }
    .dot {
        width: 8px;
        height: 8px;
    }
    .event-detail-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

        .event-left-column {
        order: 1;
    }

    .event-right-column {
        order: 2;
        display: flex;
        flex-direction: column;
    }

    /* Плашка с информацией */
    .event-info-panel {
        order: 1;
    }

    /* Описание */
    .event-description {
        order: 2;
        margin: 20px 0;
    }

    /* Кнопка "Поделиться" */
    .share-button {
        order: 3;
    }


    .event-title {
        font-size: 2rem;
        text-align: center;
    }

    .event-action-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    .event-action-buttons .button {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 5px 8px !important;
        font-size: 1.3rem !important;
        font-weight: 500;
        white-space: normal !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
        line-height: 1.0 !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: auto !important;
        min-height: 50px !important;
        text-transform: none !important;
        letter-spacing: 0.3px !important;
        border-radius: var(--border-radius-md);
    }

    /* Для кнопки "Ответы на вопросы" (outline) */
    .outline-button {
        background-color: transparent !important;
        border: 2px solid #f0b90b !important;
        color: #C0C0C0 !important;
        font-weight: 500 !important;
    }

    .outline-button:hover {
        background-color: #f0b90b !important;
        color: #2d2d2d !important;
    }

    /* Для кнопки "Купить билет" */
    .buy-button-main {
        background-color: #f0b90b !important;
        color: #2d2d2d !important;
        font-weight: 700 !important;
        border: none !important;
    }

    .buy-button-main:hover {
        background-color: #ffd700 !important;
    }

    .event-description {
        text-align: left;
    }

    .event-poster {
        max-height: 400px;
    }

    .mobile-sticky-buy {
        display: block;
    }

    .event-description-desktop {
        display: none;
    }
    .event-description-mobile {
        display: block;
        grid-column: 1 / -1;  /* занимает всю ширину сетки */
        margin-top: 20px;
    }
        /* Убираем чёрные поля у афиши на мобильных */
    .event-poster-wrapper {
        background-color: transparent;
        padding: 0;
        box-shadow: none;
        width: 100%;
    }

    .event-poster {
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border: 2px solid #f0b90b;
        width: 100%;
    }

    .video-wrapper {
        max-width: 100%;
    }

    #video {
        max-height: 250px;      /* ещё меньше на мобильных */
    }

    .scan-controls .button {
        min-width: 140px;
        padding: 10px 20px;
        font-size: 1rem;
    }

    .scan-result {
        max-height: 150px;
    }
}