/* app.css - стили страницы регистрации */
/* МИСС ФЕСТИВАЛЬ ПИТЕР МОТО ФЕСТ 2026 */
/* Шрифты и цвета идентичны pitermotofest.art */

/* CSS-переменные как на pitermotofest.art */
:root {
    --t-headline-font: 'Wadik', Arial, sans-serif;
    --t-text-font: 'Commissioner', Arial, sans-serif;

    /* Цвета из pitermotofest.art */
    --primary-yellow: #ffc546;
    --dark-bg: #0f0f0f;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --form-bg: #ffffff;

    /* Кнопки — CSS-переменные как на оригинале */
    --uc-button-color: #0f0f0f;
    --uc-button-bgcolor: #ffc546;
    --uc-button-radius: 5px;
    --uc-button-bgcolorhover: #ffffff;
    --uc-button-speedhover: 0.2s;
    --uc-button-fontfamily: 'Wadik', Arial, sans-serif;
    --uc-button-fontweight: 600;
    --uc-button-lineheight: 1.55;
    --uc-button-fontsize: 20px;
}

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

body {
    font-family: var(--t-text-font);
    font-weight: 300;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ════════════════════════════════════════════════════════════
   ЭКРАН АВТОРИЗАЦИИ — «ПРАВИЛА УЧАСТИЯ»
   ════════════════════════════════════════════════════════════ */

.rules-hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 0 80px 80px 80px;
}

/* Фоновое изображение */
.rules-hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/____.jpg.webp');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Затемнение снизу — как на pitermotofest.art */
.rules-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to bottom,
            rgba(15, 15, 15, 0) 0%,
            rgba(15, 15, 15, 0.85) 100%
    );
}

.rules-hero__content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    color: #fff;
}

/* Заголовок «/ ПРАВИЛА УЧАСТИЯ» — Wadik, точно как на pitermotofest.art */
.rules-hero__heading {
    font-family: var(--t-text-font);
    font-size: 40px;
    font-weight: 500;
    letter-spacing: 0;
    margin-bottom: 40px;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.2;
}

.rules-hero__slash {
    color: var(--primary-yellow, #ffc546);
}

/* Подзаголовок — Commissioner, как на оригинальном сайте */
.rules-hero__subheading {
    font-family: var(--t-text-font);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 28px;
    text-transform: uppercase;
    color: #fff;
}

/* Полупрозрачный блок с правилами — как glassmorphism-карточки на pitermotofest.art */
.rules-hero__box {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border-radius: 5px;
    padding: 20px 20px 20px 20px;
    margin-bottom: 60px;
    color: #fff;
    font-family: var(--t-text-font);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 400;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.8);
}

.rules-hero__intro {
    margin-bottom: 14px;
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
}

.rules-hero__list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.rules-hero__list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 12px;
    font-weight: 400;
}

.rules-hero__list li:last-child {
    margin-bottom: 0;
}

.rules-hero__list li::before {
    content: '•';
    position: absolute;
    left: 4px;
    top: -2px;
    color: #fff;
    font-size: 20px;
    line-height: 1.5;
}

/* Слот для кнопки */
.rules-hero__btn-slot {
    margin-bottom: 10px;
}

/* Скрываем иконку Газпрома — SDK вставляет её через ::before */
#gid-button button::before,
.rules-hero__btn-slot button::before,
[class*="-gidbtn-standard"]::before,
[class*="-gidbtn-primary"]::before {
    display: none !important;
}

/* Жёлтая кнопка «ПОДАТЬ ЗАЯВКУ» — Wadik, точно как на pitermotofest.art */
.rules-hero__btn-slot .gid-popup-button,
.rules-hero__btn-slot button,
#gid-button button {
    background-color: var(--primary-yellow, #ffc546) !important;
    background-image: none !important;
    color: var(--uc-button-color) !important;
    border: none !important;
    border-radius: var(--uc-button-radius) !important;
    padding: 0 !important;
    height: 60px !important;
    width: 360px !important;
    font-family: var(--uc-button-fontfamily) !important;
    font-size: var(--uc-button-fontsize) !important;
    font-weight: var(--uc-button-fontweight) !important;
    line-height: var(--uc-button-lineheight) !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
    cursor: pointer;
    transition: background-color var(--uc-button-speedhover) ease-in-out,
    color var(--uc-button-speedhover) ease-in-out !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.rules-hero__btn-slot .gid-popup-button:hover,
.rules-hero__btn-slot button:hover,
#gid-button button:hover {
    background-color: var(--uc-button-bgcolorhover) !important;
    color: var(--uc-button-color) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Контейнер кнопок действий: «Подать заявку» + «Отдать голос» в ряд */
.rules-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 10px;
    max-width: 740px;
}
.rules-hero__actions .rules-hero__btn-slot {
    margin-bottom: 0;
    flex: 1 1 0;
    min-width: 220px;
    max-width: 50%;
}
/* В ряду кнопки тянутся на всю ширину своего слота (а не фикс. 360px) */
.rules-hero__actions .rules-hero__btn-slot button,
.rules-hero__actions #gid-button button,
.rules-hero__actions #gid-button-vote button {
    width: 100% !important;
}

/* Кнопка «ОТДАТЬ ГОЛОС» — контурный (вторичный) стиль, чтобы отличать от жёлтой */
.rules-hero__btn-slot .gid-popup-button--vote,
#gid-button-vote button {
    background-color: #ffffff !important;
    color: var(--primary-yellow, #ffc546) !important;
    border: 0px solid var(--primary-yellow, #ffc546) !important;
    height: 60px !important;
}
.rules-hero__btn-slot .gid-popup-button--vote:hover,
#gid-button-vote button:hover {
    background-color: var(--primary-yellow, #ffc546) !important;
    color: #0f0f0f !important;
}

/* Тестовый вход */
.rules-hero__test-btn {
    display: block;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    padding: 8px 18px;
    margin-top: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    font-family: var(--t-text-font);
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.25s;
}

.rules-hero__test-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

/* Ссылка «ПРАВИЛА УЧАСТИЯ» под кнопкой */
.rules-hero__link {
    display: inline-block;
    color: var(--primary-yellow, #ffc546);
    font-family: var(--t-text-font);
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.25s;
    margin-top: 10px;
}

.rules-hero__link:hover {
    color: #ffca3a;
}

/* Сообщение об ошибке авторизации */
.rules-hero__error {
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(220, 53, 69, 0.85);
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    max-width: 500px;
    font-family: var(--t-text-font);
}

/* Адаптив */
@media (max-width: 1199px) {
    .rules-hero {
        padding: 0 40px 80px 40px;
    }
}

@media (max-width: 959px) {
    .rules-hero {
        padding: 0 20px 80px 20px;
    }

    .rules-hero__bg::after {
        background: linear-gradient(
                to bottom,
                rgba(15, 15, 15, 0) 0%,
                rgba(15, 15, 15, 0.9) 100%
        );
    }

    .rules-hero__content {
        max-width: 100%;
    }

    .rules-hero__heading {
        font-size: 20px;
    }

    .rules-hero__subheading {
        font-size: 20px;
    }

    .rules-hero__box {
        font-size: 14px;
    }

    #gid-button button,
    .rules-hero__btn-slot button {
        width: 100% !important;
    }
}

@media (max-width: 639px) {
    .rules-hero {
        padding: 0 20px 60px 20px;
    }

    .rules-hero__heading {
        font-size: 20px;
    }

    .rules-hero__subheading {
        font-size: 16px;
    }

    .rules-hero__box {
        padding: 16px 18px;
        font-size: 13px;
    }
}

@media (max-width: 479px) {
    .rules-hero__heading {
        font-size: 20px;
    }

    #gid-button button,
    .rules-hero__btn-slot button {
        width: 100% !important;
        height: 60px !important;
    }
}

/* В режиме iframe: убираем фиксированные элементы и отступы */
body.iframe-mode {
    background-color: transparent;
    overflow: visible;
}

body.iframe-mode .site-header {
    position: relative;
}

body.iframe-mode .hero-section {
    padding-top: 30px;
}

/* В iframe НЕЛЬЗЯ использовать 100vh для hero — высота вьюпорта внутри iframe
   равна высоте самого iframe, которую задаёт родитель. min-height:100vh + авторесайз
   создают петлю обратной связи (контент бесконечно растёт). Высоту определяет контент. */
body.iframe-mode .rules-hero {
    min-height: 0;
    align-items: flex-start;
    padding-top: 40px;
}

/* ==================== HEADER ==================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    height: 40px;
    max-width: 200px;
}

.social-icon {
    color: var(--text-light);
    font-size: 20px;
    margin: 0 8px;
    transition: color 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    color: var(--primary-yellow, #ffc546);
}

.btn-tickets {
    background: var(--primary-yellow, #ffc546);
    color: #000;
    font-family: var(--t-headline-font);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.btn-tickets:hover {
    background: #ffffff;
    color: #0f0f0f;
}

/* ==================== STATUS SCREEN (внутри hero) ==================== */
/* Статус теперь показывается внутри hero-блока, ниже правил */

body.show-status-banner .form-section {
    display: none;
}

.screen-status {
    width: 100%;
    padding: 0;
    margin-top: 32px;
}

/* Статус как отдельная нижняя секция (после выноса из hero) */
.status-section {
    width: 100%;
    background: var(--dark-bg, #0f0f0f);
    padding: 50px 70px 70px;
    box-sizing: border-box;
}
body.iframe-mode .status-section {
    padding: 30px 20px 50px;
}

.status-banner {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    background: var(--primary-yellow, #ffc546);
    padding: 40px 32px;
    text-align: center;
    border-radius: 5px;
    box-sizing: border-box;
}

.status-banner__title {
    font-family: var(--t-headline-font);
    font-size: 56px;
    font-weight: 400;
    color: #0f0f0f;
    margin: 0 0 30px;
    letter-spacing: 0;
    line-height: 1.1;
    text-transform: uppercase;
}

.status-banner__message {
    font-family: var(--t-text-font);
    font-size: 22px;
    color: #1a1a1a;
    line-height: 1.5;
    margin-bottom: 50px;
    font-weight: 400;
}

.status-banner__meta {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 14px 22px;
    margin: 0 auto 40px;
    max-width: 600px;
    font-size: 14px;
    font-family: var(--t-text-font);
    color: #1a1a1a;
    text-align: left;
    line-height: 1.7;
}

.status-banner__meta strong {
    color: #000;
    margin-right: 8px;
}

.status-banner__btn {
    display: block;
    width: 100%;
    max-width: 100%;
    background: #0f0f0f;
    color: var(--primary-yellow, #ffc546);
    border: none;
    padding: 24px 40px;
    font-size: 20px;
    font-weight: 600;
    font-family: var(--t-headline-font);
    letter-spacing: 0;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    border-radius: 5px;
}

.status-banner__btn:hover {
    background: #ffffff;
    color: #0f0f0f;
}

/* Кнопка «Голосовать» на экране статуса — жёлтая, выделяется; стоит над «Выйти» */
.status-banner__btn--vote {
    background: var(--primary-yellow, #ffc546);
    color: #0f0f0f;
    margin-bottom: 14px;
    border: 2px solid #0f0f0f;
}
.status-banner__btn--vote:hover {
    background: #0f0f0f;
    color: var(--primary-yellow, #ffc546);
}

@media (max-width: 991px) {
    .status-banner { padding: 50px 24px 36px; }
    .status-banner__title { font-size: 36px; }
    .status-banner__message { font-size: 16px; margin-bottom: 36px; }
    .status-banner__btn { font-size: 18px; padding: 18px 24px; }
}

@media (max-width: 575px) {
    .status-banner { padding: 40px 16px 28px; }
    .status-banner__title { font-size: 26px; margin-bottom: 20px; }
    .status-banner__message { font-size: 14px; margin-bottom: 28px; }
    .status-banner__btn { font-size: 16px; padding: 16px 20px; }
}

/* ════════════════════════════════════════════════════════════
   ФОРМА ЗАЯВКИ — по утверждённому дизайну
   ════════════════════════════════════════════════════════════ */

.form-section {
    background: var(--dark-bg);
    padding: 70px 0 90px;
    width: 100%;
}

body.iframe-mode .form-section {
    padding: 40px 0 60px;
}

.form-wrap {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 70px;
    box-sizing: border-box;
}

/* ── Шапка формы (тёмный фон) ── */
.form-head {
    margin-bottom: 40px;
}

.form-head__title {
    font-family: var(--t-text-font);
    font-weight: 600;
    font-size: 40px;
    line-height: 1.1;
    color: #fff;
    text-transform: uppercase;
    margin: 0 0 36px;
    letter-spacing: 0;
}

.form-head__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 80px;
}

.form-head__col p {
    color: #fff;
    font-family: var(--t-text-font);
    font-weight: 300;
    font-size: 18px;
    line-height: 1.45;
    margin: 0 0 18px;
}

.form-head__lead {
    font-weight: 400 !important;
}

.form-head__accent {
    color: var(--primary-yellow, #ffc546) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 17px !important;
    line-height: 1.35 !important;
}

.form-head__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.form-head__list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 16px;
    color: #fff;
    font-family: var(--t-text-font);
    font-weight: 300;
    font-size: 15px;
    line-height: 1.45;
}

.form-head__list li::before {
    content: '/';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-yellow, #ffc546);
    font-weight: 600;
}

/* ── Белая карточка ── */
.form-card {
    background: #fff;
    border-radius: 14px;
    padding: 50px 60px 55px;
    box-sizing: border-box;
}

/* Строка выхода из Газпром ID */
.form-logout-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.form-logout-row .gid-user-name {
    font-family: var(--t-text-font);
    font-size: 14px;
    color: #888;
}

.btn-logout {
    background: transparent;
    color: #777;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-family: var(--t-text-font);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: #f5f5f5;
    color: #dc3545;
    border-color: #dc3545;
}

/* ── Двухколоночная сетка полей ── */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 80px;
}

.form-col {
    min-width: 0;
}

/* ── Поле ── */
.field {
    margin-bottom: 26px;
}

.field__label {
    display: block;
    font-family: var(--t-text-font);
    font-weight: 400;
    font-size: 16px;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 12px;
}

.field__hint {
    font-family: var(--t-text-font);
    font-weight: 300;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    margin: 0 0 6px;
}

.field__hint--ol {
    padding-left: 20px;
    margin-bottom: 10px;
}

.field__hint--ol li {
    margin-bottom: 2px;
}

.field__input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 14px 16px;
    font-family: var(--t-text-font);
    font-size: 16px;
    font-weight: 300;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field__input::placeholder {
    color: #b0b0b0;
}

.field__input:focus {
    outline: none;
    border-color: var(--primary-yellow, #ffc546);
    box-shadow: 0 0 0 3px rgba(255, 197, 70, 0.18);
}

.field__textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.5;
}

.field__counter {
    text-align: right;
    font-size: 12px;
    font-family: var(--t-text-font);
    color: #999;
    margin-top: 6px;
}

/* ── Загрузка файла ── */
.upload {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 16px 18px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 12px;
}

.upload:last-child {
    margin-bottom: 0;
}

.upload:hover {
    border-color: var(--primary-yellow, #ffc546);
    background: rgba(255, 197, 70, 0.04);
}

.upload__icon {
    color: #9a9a9a;
    font-size: 20px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.upload.has-file .upload__icon {
    color: var(--primary-yellow, #ffc546);
}

.upload__text {
    font-family: var(--t-text-font);
    font-size: 15px;
    font-weight: 300;
    color: #888;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload.has-file .upload__text {
    color: #1a1a1a;
    font-weight: 400;
}

.upload input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    z-index: -1;
}

/* ── Соцсети ── */
.socials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
}

.social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social__icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    border-radius: 6px;
}

.social__icon--vk   { color: #0077FF; }
.social__icon--tg   { color: #29A9EB; }
.social__icon--max  { color: #6E4FF5; font-family: var(--t-text-font); }
.social__icon--dzen { color: #FF6B00; font-family: var(--t-text-font); }
.social__icon--yt   { color: #FF0000; }

.social .field__input {
    padding: 12px 14px;
    font-size: 15px;
}

/* ── Радио / чекбоксы ── */
.check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 14px;
    user-select: none;
}

.check input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.check__box {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 1.5px solid #c5c5c5;
    border-radius: 5px;
    background: #fff;
    position: relative;
    transition: all 0.15s;
    margin-top: 1px;
}

.check input[type="radio"] + .check__box {
    border-radius: 50%;
}

.check input:checked + .check__box {
    border-color: var(--primary-yellow, #ffc546);
    background: var(--primary-yellow, #ffc546);
}

.check input:checked + .check__box::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #0f0f0f;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.check input[type="radio"]:checked + .check__box::after {
    left: 6px;
    top: 6px;
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background: #0f0f0f;
    transform: none;
}

.check__text {
    font-family: var(--t-text-font);
    font-size: 15px;
    font-weight: 300;
    color: #1a1a1a;
    line-height: 1.4;
}

.check--sm .check__box {
    width: 18px;
    height: 18px;
}

.check--sm .check input:checked + .check__box::after,
.check--sm input:checked + .check__box::after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
}

.check--sm .check__text {
    font-size: 12px;
    color: #777;
    line-height: 1.35;
}

/* ── Футер формы: согласия + кнопка ── */
.form-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.form-footer__consents {
    flex: 1;
    min-width: 260px;
}

.form-footer__consents .check {
    margin-bottom: 10px;
}

/* ── Кнопка отправки ── */
.btn-submit {
    background-color: var(--primary-yellow, #ffc546);
    color: #0f0f0f;
    font-family: var(--t-headline-font);
    font-weight: 600;
    font-size: 20px;
    line-height: 1;
    padding: 0 50px;
    height: 60px;
    border-radius: 6px;
    border: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-submit:hover {
    background-color: #ffffff;
    color: #0f0f0f;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Сообщения формы ── */
.form-message {
    margin-top: 24px;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--t-text-font);
    font-weight: 400;
}

.form-message--success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.form-message--error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

/* ── Адаптив формы ── */
@media (max-width: 1199px) {
    .form-wrap { padding: 0 40px; }
    .form-card { padding: 40px 40px 45px; }
    .form-grid { gap: 0 48px; }
}

@media (max-width: 991px) {
    .form-head__title { font-size: 30px; }
    .form-head__cols { grid-template-columns: 1fr; gap: 24px; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .socials { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .form-section { padding: 40px 0 50px; }
    .form-wrap { padding: 0 16px; }
    .form-card { padding: 28px 20px 32px; border-radius: 10px; }
    .form-head__title { font-size: 24px; margin-bottom: 24px; }
    .form-footer { flex-direction: column; align-items: stretch; }
    .btn-submit { width: 100%; }
}

@media (max-width: 575px) {
    .logo { height: 30px; }
    .btn-tickets { font-size: 12px; padding: 6px 15px; }
    .field__label { font-size: 15px; }
}

/* ── Валидация ── */
.was-validated .field__input:invalid {
    border-color: #dc3545;
}
.was-validated .field__input:valid {
    border-color: #d0d0d0;
}

/* Подсветка незаполненных обязательных полей */
.field--error .field__input {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.field--error .field__label {
    color: #dc3545;
}

.upload--error {
    border-color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.04);
}

.upload--error .upload__icon {
    color: #dc3545;
}

.check--error .check__box {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.check--error .check__text {
    color: #dc3545;
}

/* ==================== LOADER ==================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loader .spinner-border {
    width: 60px;
    height: 60px;
    border-width: 5px;
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: #0f0f0f;
    padding: 50px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 50px;
    max-width: 200px;
}

.footer-venue {
    font-size: 13px;
    font-family: var(--t-text-font);
    line-height: 1.6;
    color: var(--text-gray);
}

.footer-venue strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-light);
    display: block;
    margin-bottom: 5px;
}

.footer-contacts {
    font-size: 14px;
    font-family: var(--t-text-font);
    color: var(--text-gray);
}

.footer-contacts strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
}

.footer-contacts a {
    color: var(--primary-yellow, #ffc546);
    text-decoration: none;
}

.footer-contacts a:hover { text-decoration: underline; }

.footer-link {
    color: var(--text-gray);
    font-family: var(--t-text-font);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-link:hover { color: var(--primary-yellow, #ffc546); }
/* ==================== LOADING STATE ==================== */
.btn-submit.loading {
    position: relative;
    color: transparent;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid #000;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* ==================== TOAST ==================== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: #fff;
    border-left: 4px solid var(--primary-yellow, #ffc546);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.toast.success { border-left-color: #28a745; }
.toast.error { border-left-color: #dc3545; }

/* ════════════════════════════════════════════════════════════
   ОНЛАЙН-ГОЛОСОВАНИЕ — список карточек участниц
   ════════════════════════════════════════════════════════════ */

.vote-section {
    background: var(--dark-bg);
    padding: 70px 0 90px;
    width: 100%;
}

body.iframe-mode .vote-section {
    padding: 40px 0 60px;
}

.vote-wrap {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 70px;
    box-sizing: border-box;
}

/* Шапка списка: текст слева, кнопка «Подать заявку» справа */
.vote-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.vote-head__text { min-width: 0; }

.vote-head__apply-btn {
    flex-shrink: 0;
    background-color: var(--primary-yellow, #ffc546);
    color: #0f0f0f;
    font-family: var(--t-headline-font);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    padding: 0 26px;
    height: 52px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.vote-head__apply-btn:hover {
    background-color: #fff;
}

.vote-head__title {
    font-family: var(--t-headline-font);
    font-weight: 400;
    font-size: 56px;
    line-height: 1;
    color: var(--primary-yellow, #ffc546);
    text-transform: uppercase;
    margin: 0 0 12px;
    letter-spacing: 0;
}

.vote-head__sub {
    font-family: var(--t-text-font);
    font-weight: 600;
    font-size: 22px;
    color: #fff;
    text-transform: uppercase;
    /*margin: 0 0 40px;*/
}

/* Сетка карточек */
.vote-grid {
    display: grid;
    /* Максимум 3 карточки в ряд. repeat(3,...) даёт ровно 3 колонки;
       на средних/узких экранах ниже в медиа-запросах — 2 и 1. */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: start;
}

.vote-empty {
    color: #aaa;
    font-family: var(--t-text-font);
    font-size: 16px;
    padding: 40px 0;
}

/* ── Карточка ── */
.vcard {
    position: relative;
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 26px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    /* min-width:0 обязателен: grid-элементы по умолчанию имеют min-width:auto,
       из-за чего широкий контент (фото/длинный текст) распирает колонку и она
       вылезает за пределы экрана. */
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

/* Развёрнутая карточка поднимается поверх соседей и не двигает сетку */
.vcard.is-raised {
    z-index: 20;
}

/* ── Слайдер фото ── */
.vcard__slider {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    max-width: 320px;
    margin: 0 auto 18px;
    border-radius: 10px;
    background: #0c0c0c;
}
.vcard__photo {
    border-radius: 10px;
}

.vcard__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vcard__slider--empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vcard__noimg { color: #555; font-size: 14px; font-family: var(--t-text-font); }

.vcard__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #0f0f0f;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: background 0.15s;
    padding: 0;
}
.vcard__arrow svg { width: 18px; height: 18px; display: block; }
.vcard__arrow:hover { background: var(--primary-yellow, #ffc546); color: #ffffff;}
.vcard__arrow--prev { left: -40px; transform: translate(-50%, -50%);  color: #FFC546;}
.vcard__arrow--next { right: -40px; transform: translate(50%, -50%); color: #FFC546;}

@media (max-width: 639px) {
    .vcard__arrow--prev { left: 0px; transform: translate(-50%, -50%);  color: #FFC546;}
    .vcard__arrow--next { right: 0px; transform: translate(50%, -50%); color: #FFC546;}
}


.vcard__dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.vcard__dot {
    width: 18px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.4);
    transition: background 0.2s;
}
.vcard__dot.is-active { background: var(--primary-yellow, #ffc546); }

/* ── Имя ── */
.vcard__name {
    font-family: var(--t-text-font);
    font-weight: 400;
    font-size: 22px;
    color: #fff;
    margin: 0 0 16px;
}

/* ── Текстовые блоки ── */
.vcard__block { margin-bottom: 16px; }

.vcard__block-title {
    font-family: var(--t-text-font);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: var(--primary-yellow, #ffc546);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.vcard__text {
    font-family: var(--t-text-font);
    font-weight: 300;
    font-size: 14px;
    line-height: 1.5;
    color: #d8d8d8;
    /* Свёрнутое состояние: 3 строки с многоточием */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vcard__block.is-expanded .vcard__text {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
}

.vcard__toggle {
    background: none;
    border: none;
    color: var(--primary-yellow, #ffc546);
    font-family: var(--t-text-font);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    padding: 6px 0 0;
}
.vcard__toggle:hover { text-decoration: underline; }

/* ── Соцсети ── */
.vcard__socials {
    display: flex;
    gap: 16px;
    margin: 6px 0 20px;
    flex-wrap: wrap;
}

.vcard__social {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-yellow, #ffc546);
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s;
}
.vcard__social svg { width: 26px; height: 26px; display: block; }
.vcard__social:hover { opacity: 0.75; transform: translateY(-2px); }

/* ── Футер: кнопка + счётчик ── */
.vcard__footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px 14px;
    margin-top: auto;
    padding-top: 10px;
    flex-wrap: wrap;
}

.vcard__vote-btn {
    background-color: var(--primary-yellow, #ffc546);
    color: #0f0f0f;
    font-family: var(--t-headline-font);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    height: 52px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, transform 0.1s;
    white-space: nowrap;
    /* Кнопка сжимается при нехватке места, но не выталкивает счётчик */
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vcard__vote-btn:hover:not(:disabled) { background-color: #fff; }
.vcard__vote-btn:active:not(:disabled) { transform: scale(0.97); }
.vcard__vote-btn.is-voted {
    background: #2a2a2a;
    color: var(--primary-yellow, #ffc546);
    cursor: default;
}
.vcard__vote-btn.is-disabled {
    background: #2a2a2a;
    color: #777;
    cursor: not-allowed;
}

.vcard__counter {
    font-family: var(--t-text-font);
    font-size: 15px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.vcard__heart {
    color: var(--primary-yellow, #ffc546);
    font-size: 18px;
    display: inline-block;
}
.vcard__heart.pulse { animation: vheart-pulse 0.6s ease; }
@keyframes vheart-pulse {
    0% { transform: scale(1); }
    35% { transform: scale(1.5); }
    60% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.vcard__count.bump { animation: vcount-bump 0.4s ease; }
@keyframes vcount-bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); color: var(--primary-yellow, #ffc546); }
    100% { transform: scale(1); }
}

/* Летящее сердечко при голосовании */
.vcard__fly-heart {
    position: absolute;
    left: 40px;
    bottom: 20px;
    color: var(--primary-yellow, #ffc546);
    font-size: 24px;
    pointer-events: none;
    animation: vfly 0.9s ease-out forwards;
}
@keyframes vfly {
    0%   { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-70px) scale(1.8); }
}

/* Тост */
.vote-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #2a2a2a;
    color: #fff;
    font-family: var(--t-text-font);
    font-size: 14px;
    padding: 14px 22px;
    border-radius: 10px;
    border-left: 3px solid var(--primary-yellow, #ffc546);
    box-shadow: 0 6px 24px rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 9999;
}
.vote-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Адаптив ── */
@media (max-width: 1199px) {
    .vote-wrap { padding: 0 40px; }
    .vote-grid { gap: 24px; }
    .vote-head__title { font-size: 42px; }
}

/* Планшеты — 2 колонки */
@media (max-width: 991px) {
    .vote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rules-hero__actions .rules-hero__btn-slot {
        max-width: 100%;
    }
}

@media (max-width: 639px) {
    .vote-wrap { padding: 0 16px; }
    /* Телефоны — 1 колонка */
    .vote-grid { grid-template-columns: 1fr; gap: 20px; }
    .vote-head__title { font-size: 30px; }
    .vote-head__sub { font-size: 16px; margin-bottom: 28px; }
    .vote-head { flex-direction: column; }
    .vote-head__apply-btn { width: 100%; order: -1; margin-bottom: 4px; }
    .vcard__footer { flex-direction: column; align-items: stretch; gap: 12px; }
    .vcard__vote-btn { width: 100%; }
    .vcard__counter { justify-content: center; }
    .rules-hero__actions .rules-hero__btn-slot {
        max-width: 100%;
    }

}




.desc {
    width: 100%;
    height: 127px;
    opacity: 1;
    border-radius: 5px;
    border-width: 1px;
    padding: 20px;
    border: 1px solid #FFC546;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

.desc svg {
    flex-shrink: 0;
    margin-right: 20px;
}

.desc-item {
    position: relative;
    display: block;
    float: left;
    width: 50%;
    text-transform: uppercase;
    font-size: 20px;
    padding-right: 15px;
    box-sizing: border-box;
}

.desc-item2 {
    position: relative;
    display: block;
    float: left;
    width: 50%;
    text-transform: none;
    font-size: 20px;
    padding-left: 15px;
    box-sizing: border-box;
}
.desc-item2 a {
    padding-top: 15px!important;
}

.desc-item-color {
    position: relative;
    display: inline;
    color: #FFC546;
}

/* Очистка float */
.desc:after {
    content: "";
    display: table;
    clear: both;
}
/* ── Блок розыгрыша (.desc) на мобильных ──
   Десктоп: иконка слева + 2 колонки текста. На узких экранах
   фиксированная высота 127px + float:50% ломали верстку (текст
   обрезался и «расплывался»). Делаем вертикальный поток. */
@media (max-width: 767px) {
    .desc {
        height: auto;              /* было 127px — обрезало текст */
        flex-direction: column;    /* иконка сверху, текст под ней */
        align-items: flex-start;
        overflow: visible;
        padding: 18px;
    }
    .desc svg {
        margin-right: 0;
        margin-bottom: 12px;
    }
    .desc-content { width: 100%; }
    .desc-item,
    .desc-item2 {
        float: none;               /* убираем колонки */
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        font-size: 16px;
    }
    .desc-item { margin-bottom: 12px; }
    .desc-item2 { padding-top: 4px; }
}
