/* ===== Base ===== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background: #f4f6f9 url('../images/landing-back-1.jpg') center / cover no-repeat fixed;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    min-height: 100vh;
}

/* ===== Container ===== */

.container {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    max-width: 720px;
    padding: 2vw 5vw 1.5vw 5vw;
    border-radius: 1em;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

h1 {
    margin-bottom: 14px;
    font-size: 1.5em;
    font-weight: 600;
    text-align: center;
    color: #222;
}

/* ===== Form ===== */

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.message {
    text-align: center;
}

label {
    font-size: 0.875em;
    margin-bottom: 6px;
    color: #444;
    font-weight: 500;
}

/* ===== Inputs ===== */

input,
textarea {
    padding: 0.7em 1em;
    border-radius: 0.625em;
    border: 1px solid #dcdfe6;
    font-size: 1em;
    transition: all 0.2s ease;
    background: #fafafa;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #4f7cff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===== Radio buttons (styled as pills) ===== */

.radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group label {
    padding: 0.625em 1em;
    border-radius: 999px;
    border: 1px solid #dcdfe6;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
    font-size: 0.875em; 
}

.radio-group input[type="radio"]:checked + span,
.radio-group input[type="radio"]:checked + label {
    background: #4f7cff;
    color: white;
    border-color: #4f7cff;
}

/* Альтернативная поддержка (если label оборачивает input) */
.radio-group label:has(input:checked) {
    background: #4f7cff;
    color: white;
    border-color: #4f7cff;
}

/* ===== Button ===== */

.btn {
    width: 100%;
    max-width: 300px; 
    margin: 20px auto 0;
    padding: 0.875em;
    border: none;
    border-radius: 0.75em;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    background: #4f7cff;
    color: white;
    transition: all 0.2s ease;
    text-align: center;
}

.btn:hover {
    background: #3e67e0;
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

@keyframes btnPulse {
    0% { transform: scale(1); box-shadow: 0 6px 14px rgba(79,124,255,.25); }
    50% { transform: scale(0.96); box-shadow: 0 2px 8px rgba(79,124,255,.15); }
    100% { transform: scale(1); box-shadow: 0 6px 14px rgba(79,124,255,.25); }
}

.btn.loading {
    animation: btnPulse 0.9s ease-in-out infinite;
    cursor: wait;
    opacity: 0.95;
    position: relative;
    padding-right: 2.4em;
}

.btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0.9em;
    width: 1em;
    height: 1em;
    margin-top: -0.5em;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: btnSpin 0.7s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* ===== Responsive ===== */

@media (max-width: 600px) {
    .container {
        padding: 25px;
    }
}


/* ===== hint ===== */
.hint {
    display: none;           /* по умолчанию скрыт */
    font-size: 0.9em;
    line-height: 1.4;
    color: #555;
    margin-top: 0.3em;
    margin-bottom: 0.3em;
    background: #f9f9f9;
    border-left: 0.2em solid #2196f3;
    padding: 0.6em;
    border-radius: 0.25em;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.hint.show {
    display: block;
}
.hint-toggle {
    cursor: pointer;
    margin-left: 5px;
    color: #2196f3;
    font-weight: bold;
}

.required {
    color: #e53935;
    /* margin-left: 1px; */
}

select {
    padding: 0.7em 1em;
    border-radius: 0.625em;
    border: 1px solid #dcdfe6;
    font-size: 1em;
    transition: all 0.2s ease;
    background: #fafafa;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #4f7cff;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.1);
}

/* Стрелка
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: "▾";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.9em;
    color: #666;
} */


/* ======= */
/* LANDING */

/* Горизонтальные кнопки с белым фоном */
.social-buttons {
            display: flex;
            flex-direction: row;
            justify-content: center;
            gap: 20px;
            width: 100%;
            flex-wrap: wrap;
        }
        
        /* Стили для кнопок-ссылок (белый фон) */
        .social-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 10px 24px;
            border-radius: 12px;  /* Уменьшенное скругление */
            font-size: 1rem;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.25s ease;
            cursor: pointer;
            background: #ffffff;
            color: #1e1e2f;
            border: 1px solid #e2e8f0;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
            min-width: 160px;
        }
        
        /* Иконки внутри кнопок */
        .social-icon {
            font-size: 1.2em;
            display: inline-block;
        }

        .social-btn svg,
        .social-btn img {
            pointer-events: none;
        }
        
        /* Кнопка MAX */
        .btn-max {
            background: #ffffff;
            color: #000000;
            border: 1px solid #e2e8f0;
        }
        
        .btn-max:hover {
            background: #f8fafc;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            border-color: #cbd5e1;
        }
        
        /* Кнопка VK */
        .btn-vk {
            background: #ffffff;
            color: #000000;
            border: 1px solid #e2e8f0;
        }
        
        .btn-vk:hover {
            background: #f0f7ff;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 119, 255, 0.1);
            border-color: #0077ff;
        }
        
        /* Кнопка Telegram */
        .btn-telegram {
            background: #ffffff;
            color: #000000;
            border: 1px solid #e2e8f0;
        }
        
        .btn-telegram:hover {
            background: #f0f9ff;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 136, 204, 0.1);
            border-color: #0088cc;
        }
        
        /* Эффект нажатия для обеих кнопок */
        .social-btn:active {
            transform: translateY(1px);
            transition: all 0.05s ease;
        }
        
        /* Блок с информацией о заведении */
        .establishment-card {
            background: transparent;
            border-radius: 16px;
            padding: 0 0 12px 0;
            margin-bottom: 12px;
            text-align: center;
        }
        
        .establishment-label {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            color: #94a3b8;
            font-weight: 600;
            margin-bottom: 6px;
        }
        
        .establishment-name {
            font-size: 1.6rem;
            font-weight: 700;
            color: #0f172a;
            margin-bottom: 0;
            word-break: break-word;
        }
        
        .welcome-text {
            text-align: center;
            font-size: 0.9rem;
            color: #475569;
            margin-bottom: 12px;
            line-height: 1.5;
        }
        
        /* Центрирование всего блока с кнопками */
        .buttons-wrapper {
            display: flex;
            justify-content: center;
            margin-top: 0;
            margin-bottom: 12px;
            margin-bottom: 20px;
        }
        
        /* Анимация появления */
        @keyframes fadeSlideUp {
            from {
                opacity: 0;
                transform: translateY(15px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .social-buttons, .establishment-card {
            animation: fadeSlideUp 0.3s ease-out;
        }
        
        /* Кастомный заголовок страницы */
        .page-subhead {
            text-align: center;
            color: #475569;
            font-size: 0.9rem;
            margin-bottom: 20px;
        }
        
        /* Дополнительный отступ для основного контейнера */
        .container-social {
            text-align: center;
        }
        
        /* Стили для футера */
        .footer-note {
            margin-top: 36px;
            font-size: 0.7rem;
            text-align: center;
            color: #94a3b8;
            border-top: 1px solid #edf2f7;
            padding-top: 20px;
        }
        
        /* Убираем лишние элементы */
        .establishment-icon {
            display: none;
        }
        
        .info-badge {
            display: none;
        }
        
        /* Для мобильных устройств - кнопки становятся вертикальными */
        @media (max-width: 480px) {
            .social-buttons {
                flex-direction: column;
                gap: 12px;
                max-width: 280px;
                margin: 0 auto;
            }
            
            .social-btn {
                width: 100%;
                padding: 12px 20px;
            }
            
            .establishment-name {
                font-size: 1.3rem;
            }
            
            .welcome-text {
                font-size: 0.85rem;
                padding: 0 8px;
            }
        }
        
        /* Для планшетов */
        @media (min-width: 481px) and (max-width: 768px) {
            .social-btn {
                padding: 10px 24px;
                min-width: 140px;
            }
        }