/* Общие сбросы и базовая стилизация */
:root {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary: #2563eb;
    --primary-light: #e0e7ff;
    --primary-hover: #1d4ed8;
    --border-color: #e2e8f0;
    --input-focus: #3b82f6;

    --radius-lg: 1rem;
    --radius-md: 0.75rem;
    --transition: all 0.2s ease-in-out;
    --toolbar-height: 64px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(135deg, #d5d7db 0%, #c6cedb 100%) no-repeat center center fixed;
    background-size: cover;
    transition: background-image 0.8s ease-in-out;
}

/* Центральный контент */
main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

ol, ul, menu {
    list-style: none;
}

a {
    outline: none;
    color: inherit;
    text-decoration: none;
    background-color: transparent;
}

.caps-text {
    text-transform: uppercase;
}

/* Современная стеклянная/матовая карточка формы */
.card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.card-header {
    text-align: center;
    margin-bottom: 28px;
}
.card-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
}
.card-header p {
    font-size: 14px;
    color: #64748b;
    margin-top: 8px;
}

/* Формы и поля ввода */
.form-group {
    margin-bottom: 20px;
}
.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
}
input, textarea {
    width: 100%;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #0f172a;
    transition: all 0.2s ease;
    outline: none;
}
input:focus, textarea:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 211, 0.1);
}
textarea {
    resize: none;
    height: 120px;
}

/* Кнопки и ссылки */
.btn {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 8px;
}
.btn:hover {
    background: #1d4ed8;
}
.link {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}
.link:hover {
    text-decoration: underline;
}
.text-center {
    text-align: center;
    margin-top: 20px;
}

.toolbar {
    width: 100%;
    height: var(--toolbar-height);
    min-height: 64px;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
}

/* ПОДВАЛ (FOOTER) */
footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: #475569;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.wrap-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Верхняя часть футера: Блоки выстраиваются в строчку */
.footer-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 15px;
}
.footer-col {
    flex: 1;
}
.footer-col h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0f172a;
    margin-bottom: 16px;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col a, .footer-bottom a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-col a:hover,
.footer-bottom a:hover {
    color: #2563eb;
}

/* Кнопки магазинов */
.store-badge {
    margin-right: 8px;
    margin-bottom: 8px;
}
.store-badge:hover {
    opacity: 50%;
}
.store-badge img {
    height: 48px;
}

/* Соцсети в строчку */
.footer-social{
    flex: 0.5;
    justify-items: right;
}

.social-links {
    display: flex;
    gap: 12px;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    font-weight: bold;
}
.social-links a:hover {
    background: #e0f2fe;
}

/* Нижняя часть футера */
.footer-bottom {
    border-top: 1px solid #f1f5f9;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #94a3b8;
}
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 24px;
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: #475569;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .footer-grid {
        /*flex-direction: column;*/
        gap: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-links a {
        margin: 0 12px;
    }

    .footer-social {
        display: inline-flex;
        justify-content: start;
        align-items: center;
        flex: 1;
        justify-items: inherit;
    }

    .footer-social h3 {
        margin-bottom: 0;
        margin-right: 16px;
    }
}

@media (max-width: 768px) {
    main {
        padding: 0;
    }

    body {
        background: none;
    }

    .card {
        width: 100%;
        padding: 40px;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }

    footer {
        background: rgba(255, 255, 255, 0.92);
    }
}

.bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--text-muted);
}

/* Системные уведомления */
.error-message { color: #dc2626; font-size: 13px; margin-top: 6px; display: none; }
.status-container { text-align: center; }
.status-icon { font-size: 48px; margin-bottom: 16px; }
.status-success { color: #16a34a; }
.status-error { color: #dc2626; }

/* Переключение шагов */
.step { display: none; }
.step.active { display: block; }

.alert {
    position: relative;
    padding: 14px 20px !important;
    margin-bottom: 20px !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important; /* Мягкие скругленные углы */
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

/* Модификатор: Синий алерт (Инфо) — для пустых списков, системных справок */
.alert-info {
    background-color: #eef4ff !important;
    color: #3538cd !important;
    border-color: rgba(53, 56, 205, 0.1) !important;
    border-left: 4px solid #298DF2 !important;
}
.alert-info b, .alert-info strong {
    color: #1e217d !important;
}