/* =========================================
   БАЗОВЫЕ НАСТРОЙКИ
========================================= */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #f8f9fb;
    color: #1a1a3a;
}

/* =========================================
   ШАПКА ЛИЧНОГО КАБИНЕТА (ОБНОВЛЕННАЯ)
========================================= */
.lk-header {
    background-color: #ffffff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.lk-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    height: 70px;
}

/* ЛОГОТИП (уменьшен на 40%) */
.lk-logo img {
    max-height: 24px; /* Было 40px, стало 24px */
    width: auto;
    display: block;
}

/* Десктопная навигация */
.lk-nav-drawer {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    margin-left: 50px;
}

.lk-nav-links {
    display: flex;
    gap: 30px;
}

.lk-nav-actions {
    display: flex;
    gap: 30px;
    align-items: center;
}

.lk-nav-link {
    color: #1a1a3a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.lk-nav-link i {
    color: #27ae60;
    font-size: 18px;
}

.lk-nav-link:hover {
    color: #27ae60;
}

.lk-phone {
    font-weight: 600;
}

/* Элементы, скрытые на десктопе */
.lk-burger-btn,
.lk-drawer-header,
.lk-drawer-divider,
.lk-overlay {
    display: none;
}

/* =========================================
   ФОРМЫ АВТОРИЗАЦИИ И КОНТЕЙНЕРЫ
========================================= */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 40px 20px;
}

.auth-container {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.auth-container[style*="max-width: 900px"],
.auth-container[style*="max-width: 800px"] {
    max-width: 900px !important;
}

.auth-container h2 {
    color: #1a1a3a;
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 30px;
}

/* =========================================
   ЭЛЕМЕНТЫ ФОРМ (ПОЛЯ ВВОДА И КНОПКИ)
========================================= */
.auth-container input[type="text"],
.auth-container input[type="email"],
.auth-container input[type="password"],
.auth-container input[type="tel"],
.auth-container select,
.auth-container textarea {
    width: 100%;
    padding: 13px 20px;
    margin-bottom: 15px;
    border: 1px solid #e1e5eb;
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 14px;
    color: #333;
    background-color: #f8f9fb;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.auth-container input:focus, 
.auth-container select:focus, 
.auth-container textarea:focus {
    outline: none;
    border-color: #27ae60;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.auth-container button[type="submit"] {
    width: 100%;
    background-color: #27ae60;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.auth-container button[type="submit"]:hover {
    background-color: #219653;
    box-shadow: 0 5px 15px rgba(33, 150, 83, 0.3);
}

/* =========================================
   СТИЛИ ПРОФИЛЯ (СЕКЦИИ И СЕТКА)
========================================= */
.profile-section {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #f0f0f0;
    text-align: left;
}

.profile-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1a1a3a;
    font-size: 17px;
    border-left: 4px solid #27ae60;
    padding-left: 15px;
    font-weight: 600;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 25px;
}

.grid-full {
    grid-column: span 2;
}

.lk-input-group {
    margin-bottom: 15px;
}

.lk-input-group label, 
.field-label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
    padding-left: 5px;
}

/* =========================================
   ДИНАМИЧЕСКИЕ БЛОКИ ОРГАНИЗАЦИЙ
========================================= */
.org-block {
    position: relative;
    background: #fdfdfd;
    border: 1px solid #e1e5eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.org-block:hover {
    border-color: #27ae60;
}

.auth-container .btn-add-org {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #27ae60;
    border: 2px solid #27ae60;
    padding: 15px 25px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    justify-content: center;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.auth-container .btn-add-org:hover {
    background: #eafaf1;
    color: #219653;
    border-color: #219653;
}

.btn-remove-org {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #e74c3c;
    cursor: pointer;
    font-size: 18px;
    background: none;
    border: none;
    padding: 5px;
    transition: color 0.3s ease;
}

.btn-remove-org:hover {
    color: #c0392b;
}

/* =========================================
   УВЕДОМЛЕНИЯ И ОШИБКИ
========================================= */
.form-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 10px;
    text-align: left;
    display: block;
    padding-left: 10px;
}

.form-success {
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

.auth-links {
    font-size: 14px;
    margin-top: 20px;
}

.green-link {
    color: #27ae60 !important;
    font-weight: 600;
    text-decoration: none;
}

.green-link:hover {
    text-decoration: underline;
}

/* =========================================
   АДАПТИВНОСТЬ И МОБИЛЬНОЕ МЕНЮ
========================================= */
@media (max-width: 992px) {
    .lk-header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .lk-header-container {
        padding: 0 20px;
        /* Убеждаемся, что контейнер тянется на 100% ширины экрана */
        width: 100%; 
        box-sizing: border-box;
    }

    /* Кнопка Бургер (прижата вправо) */
    .lk-burger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        margin-left: auto; /* Жестко отталкивает кнопку к правому краю */
    }

    .lk-burger-btn span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #1a1a3a;
        border-radius: 2px;
    }

    .lk-nav-drawer {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background-color: #ffffff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        margin-left: 0;
        padding: 25px;
        transition: right 0.3s ease;
        z-index: 1002;
        overflow-y: auto;
    }

    .lk-nav-drawer.active {
        right: 0;
    }

    .lk-drawer-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 30px;
    }

    .lk-close-btn {
        background: none;
        border: none;
        font-size: 28px;
        color: #1a1a3a;
        cursor: pointer;
        padding: 0;
    }

    .lk-nav-links {
        flex-direction: column;
        width: 100%;
        gap: 25px;
    }

    .lk-nav-link {
        font-size: 17px;
        width: 100%;
    }

    .lk-drawer-divider {
        display: block;
        width: 100%;
        height: 1px;
        background-color: #eee;
        margin: 25px 0;
    }

    .lk-nav-actions {
        flex-direction: column-reverse; 
        align-items: flex-start;
        width: 100%;
        gap: 25px;
    }

    .lk-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0,0,0,0.4);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1001;
    }

    .lk-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .grid-2-col {
        grid-template-columns: 1fr;
    }
    .grid-full {
        grid-column: span 1;
    }
}