/* ===== CSS ПЕРЕМЕННЫЕ ===== */
:root {
    /* Цвета */
    --primary-color: #6B9BB8;
    --primary-hover: #8bb0cc;
    --bg-color: #222222;
    --bg-light: #2a2a2a;
    --text-color: #f0f0f0;
    --text-secondary: #aaa;
    --text-muted: #777;
    --border-color: #333;
    --border-light: #444;

    /* Карточки */
    --card-bg: rgba(255,255,255,0.03);
    --hover-bg: rgba(107, 155, 184, 0.1);
    --shadow: 0 5px 20px rgba(0,0,0,0.2);

    /* Тени */
    --shadow-light: 0 5px 15px rgba(0,0,0,0.2);

    /* Размеры */
    --container-width: 1200px;
    --border-radius: 4px;
    --border-radius-lg: 8px;

    /* Пространство */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 40px;
}

/* ===== ШРИФТЫ ===== */
@font-face {
    font-family: "Gilroy";
    src: url("gilroy-regular.woff2") format("woff2"),
         url("gilroy-regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gilroy";
    src: url("gilroy-thin.woff2") format("woff2"),
         url("gilroy-thin.woff") format("woff");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gilroy";
    src: url("gilroy-bold.woff2") format("woff2"),
         url("gilroy-bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Gilroy", -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, a:focus {
    color: #fff;
    text-decoration: none;
}

/* Улучшение фокуса для доступности */
a:focus, button:focus, input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== ТИПОГРАФИЯ ===== */
h1 {
    font-family: "Gilroy", sans-serif;
    font-weight: 100;
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--text-color);
}

h2 {
    font-family: "Gilroy", sans-serif;
    font-weight: 400;
    font-size: 2rem;
    margin: 2.5rem 0 1.5rem 0;
    color: var(--text-color);
}

/* ===== ХЕДЕР ===== */
.main-header {
    background-color: var(--bg-color);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.main-header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

/* ===== ЛОГОТИП ===== */
.logo-wrapper {
    display: flex;
    align-items: center;
   /* gap: 20px; */
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.9;
}

.logo-image {
    height: auto;
    width: auto;
    max-width: 100%;
    transition: all 0.3s ease;
}

.logo-desktop {
    display: block;
    width: 340px;
    height: 100px;
}

.logo-mobile {
    display: none;
    width: 200px;
    height: 70px;
}

@media (max-width: 992px) {
    .logo-desktop {
        width: 240px;
        height: 86px;
    }
}

@media (max-width: 768px) {
    .logo-desktop {
        display: none;
    }
    .logo-mobile {
        display: block;
        width: 180px;
        height: 63px;
    }
}

.logo-text {
    font-family: "Gilroy", sans-serif;
    font-size: 28px;
    font-weight: 100;
    color: var(--text-color);
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--primary-color);
}

/* Слоган толщиной 100 */
.slogan-thin {
    font-family: "Gilroy", sans-serif;
    font-weight: 100;
    font-size: 14px;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    border-left: 1px solid var(--border-color);
    padding: 15px 0 0 15px;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .slogan-thin {
        display: none;
    }
}

/* ===== КОНТАКТЫ ===== */
.header-contacts {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.contact-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.contact-icon-link {
    color: var(--primary-color);
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(107, 155, 184, 0.08);
}

.contact-icon-link:hover {
    color: white;
    background: var(--primary-color);
    transform: translateY(-2px);
}

.phone-number {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(107, 155, 184, 0.05);
    border: 1px solid rgba(107, 155, 184, 0.2);
}

@media (max-width: 768px) {
    .phone-number span {
        display: none;
    }

    .contact-icons {
        gap: 5px;
        display: none;
    }

    .contact-icon-link {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

/* ===== НАВИГАЦИЯ ===== */
.main-nav {
    width: 100%;
    margin-top: 15px;
    order: 3;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 0;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--primary-color);
}

.nav-link i {
    font-size: 16px;
}

@media (max-width: 768px) {
    .nav-list {
        gap: 15px;
        justify-content: center;
    }

    .nav-link {
        font-size: 14px;
        padding: 5px 0;
        gap: 5px;
    }

    .nav-link i {
        font-size: 14px;
    }
}

/* ===== ОСНОВНОЙ КОНТЕЙНЕР ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

/* ===== ПОЛЬЗОВАТЕЛЬ ===== */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-greeting {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 500;
}

.user-greeting i {
    font-size: 24px;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

@media (max-width: 768px) {
    .logout-text {
        display: none;
    }

    .logout-btn i {
        font-size: 18px;
    }
}

/* ===== АВТОРИЗАЦИЯ ===== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 250px);
    padding: 20px;
}

.auth-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.auth-header {
    padding: 30px 30px 0;
    text-align: center;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-tabs {
    display: flex;
    gap: 2px;
    background: var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 30px;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    background: var(--bg-light);
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab:hover {
    background: var(--hover-bg);
    color: var(--text-color);
}

.auth-tab.active {
    background: var(--primary-color);
    color: white;
}

.auth-body {
    padding: 0 30px 30px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
}

/* ===== ФОРМЫ ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 155, 184, 0.1);
}

.form-control.error {
    border-color: #ff6b6b;
}

.error-message {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 5px;
    min-height: 20px;
}

/* Чекбокс */
.form-checkbox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-text {
    font-size: 14px;
}

.forgot-link {
    color: var(--primary-color);
    font-size: 14px;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Требования к паролю */
.password-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
    margin-top: 8px;
    font-size: 12px;
}

.req-item {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
}

.req-item.valid {
    color: #4caf50;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

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

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===== DASHBOARD ===== */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.dashboard-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.dashboard-card h3 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.dashboard-card p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.status-active {
    color: #4caf50;
    font-weight: 500;
}

/* Активности */
.info-section {
    margin-top: 40px;
}

.activity-list {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 20px;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-date {
    color: var(--text-muted);
    font-size: 14px;
    min-width: 80px;
}

.activity-text {
    color: var(--text-color);
}

/* ===== ФУТЕР ===== */
/*
.main-footer {
    margin-top: auto;
    padding: 25px 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}
*/

.main-footer {
    margin-top: auto;
    padding: 40px 0 30px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.main-footer .container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-legal-links-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.footer-legal-links-left a {
    color: var(--text-secondary);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-legal-links-left a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-copyright-left {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: auto;
}

.footer-copyright-left i {
    margin-right: 4px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        gap: 20px;
    }

    .footer-legal-links-left {
        gap: 0;
        margin-bottom: 0;
    }

    .footer-legal-links-left a {
        font-size: 0.8rem;
    }

    .footer-copyright-left {
        font-size: 0.8rem;
    }

    .footer-top {
        grid-template-columns: none;
    }
}

/* ===== FLASH СООБЩЕНИЯ ===== */
.flash-messages {
    max-width: var(--container-width);
    margin: 20px auto;
    padding: 0 20px;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.flash-message i {
    font-size: 20px;
}

.flash-info {
    background: rgba(107, 155, 184, 0.2);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.flash-error {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-close:hover {
    color: var(--text-color);
}

/* ===== ССЫЛКИ В ФОРМАХ ===== */
.auth-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-links a {
    color: var(--primary-color);
    font-size: 14px;
}

.auth-links a:hover {
    text-decoration: underline;
}

.text-muted {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 10px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .auth-header {
        padding: 20px 20px 0;
    }

    .auth-body {
        padding: 0 20px 20px;
    }

    .dashboard {
        grid-template-columns: 1fr;
    }

    .activity-item {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .auth-tab {
        padding: 12px 5px;
        font-size: 14px;
    }

    .form-checkbox {
        flex-direction: column;
        align-items: flex-start;
    }

    .password-requirements {
        flex-direction: column;
        gap: 5px;
    }
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card {
    animation: fadeIn 0.5s ease-out;
}

/* Подсказка для логина */
#login-hint {
    font-size: 12px;
    margin-top: 4px;
    min-height: 18px;
    color: var(--text-muted);
}

#login-hint i {
    margin-right: 4px;
    color: var(--primary-color);
}

/* Подсветка поля */
.form-control.phone-detected,
.form-control.email-detected,
.form-control.inn-detected {
    border-color: #4caf50;
}

/* ===== ОШИБКИ ВХОДА ===== */
.login-error-container {
    margin-bottom: 20px;
}

.login-error-message {
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid #ff6b6b;
    color: #ff6b6b;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    animation: shake 0.3s ease-in-out;
}

.login-error-message i {
    font-size: 18px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ===== ПОЛЕ ПАРОЛЯ С ГЛАЗИКОМ ===== */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper .form-control {
    padding-right: 45px; /* Место для кнопки */
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 18px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

.password-toggle:hover {
    color: var(--primary-color);
    background: var(--hover-bg);
}

.password-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.password-toggle i {
    pointer-events: none; /* Чтобы клик проходил через иконку */
}

/* Анимация при нажатии */
.password-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .password-toggle {
        right: 8px;
        width: 40px;
        height: 40px;
    }
}
.badge {
    display: inline-block;
    background: #ff6b6b;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    line-height: 1;
}

/* ===== УВЕДОМЛЕНИЯ ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    background: var(--bg-light);
    border-left: 4px solid;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: #4caf50;
}

.notification-success i {
    color: #4caf50;
}

.notification-error {
    border-left-color: #ff6b6b;
}

.notification-error i {
    color: #ff6b6b;
}

.notification i {
    font-size: 20px;
}

.notification span {
    color: var(--text-color);
    font-size: 14px;
}
.loading {
    text-align: center;
    padding: 40px;
    color: var(--primary-color);
}

.loading i {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Специальные стили для иконок */
.max {
    width: 28px;
    height: 28px;
    background-size: contain;
    background-repeat: no-repeat;

}

.max {
    background-image: url('images/max.svg');
}

.contact-icon-link:hover .max {
    background-image: url('images/max_w.svg');
}
.checkbox-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin: -20px 0 20px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox-hint i {
    color: var(--primary-color);
    font-size: 14px;
}

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

.policy-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.policy-wrapper h1 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.policy-section {
    margin-bottom: 40px;
}

.policy-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 500;
}

.policy-section p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.policy-section .subsection {
    margin-left: 20px;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 2px solid var(--primary-color);
}

.contact-block {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-top: 30px;
}

.contact-block h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.contact-block p {
    margin-bottom: 8px;
}

.contact-block a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
}

.contact-block a:hover {
    color: var(--primary-hover);
    border-bottom: 1px solid var(--primary-hover);
}

@media (max-width: 768px) {
    .policy-wrapper {
        padding: 20px;
    }

    .policy-wrapper h1 {
        font-size: 1.8rem;
    }

    .policy-section h2 {
        font-size: 1.3rem;
    }

    .policy-section .subsection {
        margin-left: 10px;
        padding-left: 10px;
    }
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer .text-muted {
    font-size: 12px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Строгий официальный стиль */
.policy-section ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.policy-section ul li {
    position: relative;
    padding: 8px 0 8px 25px;
    line-height: 1.5;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.policy-section ul li:last-child {
    border-bottom: none;
}

.policy-section ul li::before {
    content: "—";
    position: absolute;
    left: 5px;
    color: var(--primary-color);
    font-weight: 300;
}

/* ===== АДАПТИВНАЯ ТАБЛИЦА ===== */
.table-wrapper {
    width: 100%;
    margin: 2rem 0;
    position: relative;
    border-radius: var(--border-radius-lg);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    overflow: hidden; /* Убираем лишние тени */
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* Убираем псевдоэлемент, который создает тень */
.table-scroll::after {
    display: none;
}

.processing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-color);
    min-width: 800px; /* Минимальная ширина для десктопа */
}

/* Заголовки - ВОЗВРАЩАЕМ ЗАЛИВКУ */
.processing-table thead {
    background: linear-gradient(135deg, var(--primary-color), #4A7A9C);
}

.processing-table th {
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 3;
    background: inherit; /* Наследуем фон от thead */
}

/* Ячейки */
.processing-table th,
.processing-table td {
    padding: 1.2rem 1rem;
    vertical-align: top;
    line-height: 1.5;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-secondary);
}

/* Закрепляем фон для заголовков */
.processing-table th {
    background: linear-gradient(135deg, var(--primary-color), #4A7A9C);
    color: white;
    border-color: rgba(255,255,255,0.1);
}

/* Минимальная ширина колонок */
.processing-table th:nth-child(1),
.processing-table td:nth-child(1) {
    min-width: 200px; /* Цель обработки */
}

.processing-table th:nth-child(2),
.processing-table td:nth-child(2) {
    min-width: 220px; /* Персональные данные */
}

.processing-table th:nth-child(3),
.processing-table td:nth-child(3) {
    min-width: 200px; /* Правовые основания */
}

.processing-table th:nth-child(4),
.processing-table td:nth-child(4) {
    min-width: 250px; /* Виды обработки */
}

/* Все строки одинаковые */
.processing-table tbody tr td {
    background: var(--bg-color);
}

/* При наведении подсвечиваем строку */
.processing-table tbody tr:hover td {
    background: rgba(107, 155, 184, 0.05);
    color: var(--text-color);
}

/* Стили для списков */
.data-list {
    margin: 0;
    padding-left: 1.2rem;
    list-style-type: disc;
}

.data-list li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: inherit;
}

.data-list li:last-child {
    margin-bottom: 0;
}

/* Красивый скроллбар */
.table-scroll::-webkit-scrollbar {
    height: 8px;
}

.table-scroll::-webkit-scrollbar-track {
    background: var(--border-color);
    border-radius: 4px;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.table-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* Для Firefox */
.table-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--border-color);
}

/* Адаптивность */
@media screen and (max-width: 768px) {
    .processing-table th,
    .processing-table td {
        padding: 1rem 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .processing-table th,
    .processing-table td {
        padding: 0.8rem 0.6rem;
        font-size: 0.85rem;
    }
    .form-group {
        margin-bottom: 0px;
    }
}


/* --- COOKIE СОГЛАШЕНИЕ --- */
        .cookie-consent {
            position: fixed;
            bottom: 10px; /* Отступ снизу */
            left: 50px;   /* Отступ слева */
            right: 50px;  /* Отступ справа */
            max-width: calc(100% - 100px); /* Чтобы не выходило за границы с учетом отступов */
            border-radius: 8px; /* Закругленные углы для красоты */
            /* остальные свойства остаются без изменений */
            background-color: rgba(30, 30, 30, 0.95);
            backdrop-filter: blur(10px);
            color: #f0f0f0;
            padding: 20px;
            z-index: 1000;
            border: 1px solid #444;
            display: none;

            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        }

        .cookie-consent__content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 30px;
        }

        .cookie-consent__text {
            margin: 0;
            font-size: 16px;
            line-height: 1.5;
            color: #ccc;
            flex: 1;
        }

        .cookie-consent__link {
            color: #aaa;
            text-decoration: underline;
            transition: color 0.2s ease;
            border-bottom: none;
        }

        .cookie-consent__link:hover {
            color: #fff;
            border-bottom: none;
        }

        .cookie-consent__button {
            background: #444;
            color: #fff;
            border: 1px solid #555;
            padding: 10px 30px;
            font-family: "GilroyRegular", sans-serif;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.2s ease;
            border-radius: 8px;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .cookie-consent__button:hover {
            background: #555;
            border-color: #666;
        }

        .cookie-consent__button:focus {
            outline: 2px solid #4F6FFF;
            outline-offset: 2px;
        }

        /* Адаптивность для мобильных */
        @media (max-width: 768px) {
            .cookie-consent__content {
                flex-direction: column;
                text-align: center;
                gap: 15px;
            }

            .cookie-consent__button {
                width: 100%;
                max-width: 200px;
            }

            .cookie-consent__text {
                font-size: 14px;
            }
        }

        @media (max-width: 480px) {
            .cookie-consent {
                padding: 15px;
            }

            .cookie-consent__text {
                font-size: 13px;
            }
        }
/* ===== НОВЫЕ СТИЛИ ДЛЯ ЛИЧНОГО КАБИНЕТА ===== */

/* Приветствие */
.container h1 {
    margin-bottom: 2rem;
    font-weight: 100;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

/* Профиль */
.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.profile-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.profile-header {
    display: flex;
    gap: 25px;
    align-items: center;
}

.profile-icon {
    font-size: 60px;
    color: var(--primary-color);
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    margin: 0 0 15px 0;
    color: var(--primary-color);
    font-weight: 400;
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.profile-details p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.profile-details strong {
    color: var(--text-color);
    margin-right: 8px;
}

/* Заголовки секций */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 40px 0 25px 0;
    font-weight: 400;
    color: var(--primary-color);
}

.section-icon {
    font-size: 28px;
}

/* Сетка для дашбордов */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.dashboard-group {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    transition: all 0.3s ease;
}

.dashboard-group:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px 0;
    color: var(--text-color);
    font-weight: 400;
    font-size: 1.3rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.group-title i {
    color: var(--primary-color);
    font-size: 20px;
}

/* Ссылки дашбордов */
.dashboard-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-links li {
    margin-bottom: 10px;
}

.dashboard-links li:last-child {
    margin-bottom: 0;
}

.dashboard-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    text-decoration: none;
}

.dashboard-link i {
    width: 20px;
    color: var(--primary-color);
    font-size: 16px;
    transition: all 0.3s ease;
}

.dashboard-link:hover {
    background: var(--hover-bg);
    color: var(--text-color);
    transform: translateX(5px);
}

.dashboard-link:hover i {
    color: var(--primary-hover);
}

/* Секция событий */
.events-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    margin-top: 20px;
}

.events-group {
    margin-bottom: 30px;
}

.events-group:last-child {
    margin-bottom: 0;
}

.events-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-weight: 400;
    font-size: 1.2rem;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.events-group-title i {
    color: var(--primary-color);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.event-item:hover {
    transform: translateX(5px);
}

.event-item.upcoming {
    border-left: 4px solid #4caf50;
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.05), transparent);
}

.event-item.past {
    border-left: 4px solid var(--text-muted);
    background: linear-gradient(90deg, rgba(119, 119, 119, 0.05), transparent);
}

.event-date {
    min-width: 100px;
}

.event-day {
    font-weight: 500;
    color: var(--primary-color);
    background: rgba(107, 155, 184, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
}

.event-item.past .event-day {
    color: var(--text-muted);
    background: rgba(119, 119, 119, 0.1);
}

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

.event-name {
    color: var(--text-color);
}

.event-badge {
    font-size: 12px;
    padding: 3px 8px;
    background: #4caf50;
    color: white;
    border-radius: 12px;
    text-transform: uppercase;
}

/* Адаптивность */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .profile-details {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .event-info {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .event-date {
        min-width: auto;
    }

    .event-badge {
        align-self: flex-start;
    }

    .dashboard-link:hover {
        transform: translateX(0);
    }

    .event-item:hover {
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }

    .group-title {
        font-size: 1.2rem;
    }

    .profile-icon {
        font-size: 50px;
    }

    .events-section {
        padding: 15px;
    }

    .event-item {
        padding: 12px;
    }

    .form-group {
        margin-bottom: 0px;
    }
}
/* ===== ПОПОВЕР ДЛЯ ПРОФИЛЯ ===== */
.user-info {
    position: relative;
}

.user-greeting {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 500;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-greeting i {
    font-size: 24px;
    flex-shrink: 0;
}

.user-greeting span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Поповер (всплывающий слой) */
.user-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 15px 20px;
    min-width: 250px;
    box-shadow: var(--shadow);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.user-popover::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 25px;
    width: 16px;
    height: 16px;
    background: var(--bg-light);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    transform: rotate(45deg);
}

.user-info:hover .user-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.popover-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.popover-avatar {
    font-size: 32px;
    color: var(--primary-color);
}

.popover-title {
    font-weight: 500;
    color: var(--text-color);
    font-size: 16px;
}

.popover-content {
    margin-bottom: 15px;
}

.popover-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.popover-info-item i {
    width: 18px;
    color: var(--primary-color);
    font-size: 14px;
}

.popover-info-item strong {
    color: var(--text-color);
    font-weight: 500;
    margin-right: 5px;
}

.popover-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--primary-color);
    border-top: 1px solid var(--border-color);
    transition: color 0.3s ease;
    text-decoration: none;
    font-size: 14px;
}

.popover-link:hover {
    color: var(--primary-hover);
}

.popover-link i {
    font-size: 14px;
}

/* Адаптивность для поповера на мобильных */
@media (max-width: 768px) {
    .user-popover {
        position: fixed;
        top: auto;
        bottom: 20px;
        left: 20px;
        right: 20px;
        width: auto;
        min-width: auto;
        max-width: none;
        transform: translateY(20px);
    }

    .user-popover::before {
        display: none;
    }

    .user-info:hover .user-popover {
        transform: translateY(0);
    }
}

/* ===== ОБНОВЛЕНИЕ СТИЛЕЙ ДЛЯ ШАПКИ ===== */
@media (max-width: 992px) {
    .user-greeting {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: nowrap;
        gap: 10px;
    }

    .logo-wrapper {
        min-width: 0;
        flex: 1;
    }

    .logo-link {
        max-width: 140px;
    }

    .logo-mobile {
        width: 140px;
        height: 49px;
    }

    .user-greeting {
        max-width: 150px;
        font-size: 14px;
    }

    .user-greeting i {
        font-size: 20px;
    }

    .logout-btn {
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .logo-wrapper {
        flex: 0 1 auto;
    }

    .logo-link {
        max-width: 120px;
    }

    .logo-mobile {
        width: 120px;
        height: 42px;
    }

    .user-greeting {
        max-width: 110px;
        font-size: 13px;
    }

    .user-greeting span {
        max-width: 70px;
    }

    .logout-btn {
        padding: 5px 8px;
    }
}

/* Стили для очень маленьких экранов */
@media (max-width: 360px) {
    .user-greeting {
        max-width: 90px;
    }

    .user-greeting span {
        max-width: 50px;
    }

    .user-greeting i {
        font-size: 18px;
    }
}

/* ===== ОСТАЛЬНЫЕ СТИЛИ ЛИЧНОГО КАБИНЕТА ===== */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 40px 0 25px 0;
    font-weight: 400;
    color: var(--primary-color);
}

.section-icon {
    font-size: 28px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.dashboard-group {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    transition: all 0.3s ease;
}

.dashboard-group:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px 0;
    color: var(--text-color);
    font-weight: 400;
    font-size: 1.3rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.group-title i {
    color: var(--primary-color);
    font-size: 20px;
}

.dashboard-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-links li {
    margin-bottom: 10px;
}

.dashboard-links li:last-child {
    margin-bottom: 0;
}

.dashboard-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    text-decoration: none;
}

.dashboard-link i {
    width: 20px;
    color: var(--primary-color);
    font-size: 16px;
    transition: all 0.3s ease;
}

.dashboard-link:hover {
    background: var(--hover-bg);
    color: var(--text-color);
    transform: translateX(5px);
}

.dashboard-link:hover i {
    color: var(--primary-hover);
}

.events-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    margin-top: 20px;
}

.events-group {
    margin-bottom: 30px;
}

.events-group:last-child {
    margin-bottom: 0;
}

.events-group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-weight: 400;
    font-size: 1.2rem;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.events-group-title i {
    color: var(--primary-color);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.event-item:hover {
    transform: translateX(5px);
}

.event-item.upcoming {
    border-left: 4px solid #4caf50;
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.05), transparent);
}

.event-item.past {
    border-left: 4px solid var(--text-muted);
    background: linear-gradient(90deg, rgba(119, 119, 119, 0.05), transparent);
}

.event-date {
    min-width: 100px;
}

.event-day {
    font-weight: 500;
    color: var(--primary-color);
    background: rgba(107, 155, 184, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
}

.event-item.past .event-day {
    color: var(--text-muted);
    background: rgba(119, 119, 119, 0.1);
}

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

.event-name {
    color: var(--text-color);
}

.event-badge {
    font-size: 12px;
    padding: 3px 8px;
    background: #4caf50;
    color: white;
    border-radius: 12px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .event-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .event-info {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .event-date {
        min-width: auto;
    }

    .event-badge {
        align-self: flex-start;
    }

    .dashboard-link:hover {
        transform: translateX(0);
    }

    .event-item:hover {
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }

    .group-title {
        font-size: 1.2rem;
    }

    .events-section {
        padding: 15px;
    }

    .event-item {
        padding: 12px;
    }
}
    .section-title {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 20px 0 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border-color);
    }

    .section-title i {
        font-size: 20px;
        color: var(--primary-color);
    }

    .section-title h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 400;
    }

    .data-row {
        display: flex;
        align-items: flex-start;
        padding: 12px 0;
        border-bottom: 1px dashed var(--border-light);
    }

    .data-label {
        width: 150px;
        color: var(--text-secondary);
        font-size: 14px;
    }

    .data-value {
        flex: 1;
        font-size: 16px;
    }

    @media (max-width: 768px) {
        .data-row {
            flex-direction: column;
            gap: 8px;
        }

        .data-label {
            width: auto;
        }
    }

/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ВХОДА (PWA-версия) ===== */

/* Заголовок страницы входа */
.auth-title {
    text-align: center;
    font-family: "Gilroy", sans-serif;
    font-weight: 400;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    letter-spacing: -0.3px;
}

/* Скрываем подписи полей (логин/пароль) */
.auth-form .form-group label {
    display: none;
}

/* Убираем чекбокс и его подсказку */
.form-checkbox,
.checkbox-hint {
    display: none !important;
}

/* Кнопка входа */
#login-btn {
    margin-top: 1.5rem;
    font-size: 1rem;
    padding: 14px;
    font-weight: 500;
    background: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
}

#login-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Блок "Не можете войти?" */
.forgot-password-wrapper {
    text-align: center;
    margin-top: 1.5rem;
}

.forgot-password-wrapper .forgot-link {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password-wrapper .forgot-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ===== ФУТЕР ДЛЯ СТРАНИЦЫ ВХОДА ===== */
.login-footer {
    margin-top: auto;
    padding: 20px 0 30px;
    background: transparent;
    border-top: 1px solid var(--border-color);
}

.login-footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.login-copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.login-footer-links {
    display: flex;
    gap: 25px;
}

.login-footer-links a {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-footer-links a:hover {
    color: var(--primary-color);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .auth-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .login-footer-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .login-footer-links {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .auth-title {
        font-size: 1.3rem;
    }

    #login-btn {
        padding: 12px;
        font-size: 0.95rem;
    }
    .form-group {
        margin-bottom: 0px;
    }
}
