:root {
    --lk-primary: #4F46E5;
    --lk-primary-dark: #4338CA;
    --lk-primary-light: #EEF2FF;
    --lk-bg: #F3F4FA;
    --lk-card-bg: #FFFFFF;
    --lk-border: #E7E8F2;
    --lk-text: #14162B;
    --lk-text-muted: #6B7280;
    --lk-shadow: 0 4px 24px rgba(20, 22, 43, 0.06);
}

@font-face {
    font-family: 'Normalidad';
    src: url('/static/fonts/Normalidad-Text-Light-Web.woff2') format('woff2');
    font-weight: 350;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Normalidad';
    src: url('/static/fonts/Normalidad-Text-Regular-Web.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Normalidad';
    src: url('/static/fonts/Normalidad-Text-Medium-Web.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Normalidad';
    src: url('/static/fonts/Normalidad-Text-Bold-Web.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Normalidad';
    src: url('/static/fonts/Normalidad-Text-Black-Web.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

body {
    background-color: var(--lk-bg) !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.modal-open {
    display: block;
}

main {
    flex: 1;
}

ul {
    margin: 0;
    list-style: none;
}

a {
    text-decoration: none;
}

.lk-footer a,
.lk-footer__item a,
.lk-footer__extra-links a,
.lk-footer__mobile-logo,
.lk-footer__logo {
    color: inherit;
}

/* ── Хедер личного кабинета (свой, отдельный от хедера лендинга) ───── */
.lk-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    width: 100%;
    background-color: var(--lk-card-bg);
    border-bottom: 1px solid var(--lk-border);
}

.lk-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 12px;
}

.lk-header__left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.lk-header__logo {
    z-index: 2000;
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background-color: var(--lk-text);
    border-radius: 12px;
}

.lk-header__logo img {
    display: block;
    height: 28px;
    width: auto;
}

.lk-header__nav {
    padding-block: 0;
}

.lk-header__center {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lk-nav-pill {
    padding: 10px 14px;
    color: var(--lk-text-muted);
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 7px;
    border-radius: 10px;
    transition: all 0.2s ease;
    height: 40px;
    white-space: nowrap;
}

.lk-nav-pill:hover {
    background-color: var(--lk-primary-light);
    color: var(--lk-primary);
}

.lk-nav-pill.active {
    background-color: var(--lk-primary-light);
    color: var(--lk-primary);
}

.lk-header__login {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--lk-text);
}

.lk-header__login-icon {
    display: flex;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
    background-color: var(--lk-primary-light);
    border-radius: 50%;
}

.lk-header .burger-button__line {
    background-color: var(--lk-text);
}

@media (max-width: 1024px) {
    .lk-header__nav {
        width: 100%;
        right: 0;
        height: 100vh;
        height: 100dvh;
        position: fixed;
        display: flex;
        top: 0;
        padding: 120px 32px 64px 32px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 24px;
        overflow-y: auto;
        transition: 0.2s linear;
        z-index: 1000;
        background-color: var(--lk-card-bg);
    }

    .lk-header__nav:not(.is-active) {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-100%);
    }

    .lk-header__center {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .lk-nav-pill {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ── Алерты ─────────────────────────────────── */
.lk-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    position: fixed;
    right: 40px;
    bottom: 20px;
    z-index: 99999;
    font-size: 15px;
    font-weight: 400;
    max-width: 360px;
    box-shadow: 1px 1px 8px 2px #52535433;
}

.lk-alert--success {
    background-color: #FFFFFF;
    border: 1px solid #DFE3EC;
    color: #3E4552;
}

.lk-alert--error {
    background-color: #FFFAFA;
    border: 1px solid #F04D4D;
    color: #F04D4D;
}

.lk-alert__close {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    color: inherit;
    font-size: 14px;
    opacity: 0.6;
    padding: 0 0 0 8px;
}

/* ── User-блок в шапке ────────────────────────── */
.lk-user-block {
    display: flex;
    align-items: center;
    gap: 50px;
}

.lk-add-check-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--lk-primary);
    border: none;
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lk-add-check-btn:hover {
    background-color: var(--lk-primary-dark);
}

.lk-add-check-btn.visible-tablet {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
}

.lk-user-menu {
    position: relative;
}

.lk-user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    transition: background 0.2s;
}

.lk-user-trigger:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.lk-user-icon {
    width: 32px;
    height: 32px;
    background-color: #F5F5F5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--lk-primary);
}

.lk-user-name {
    color: var(--lk-text);
    white-space: nowrap;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Дропдаун */
.lk-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background-color: #FFFFFF;
    border: 1px solid #E8EAED;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: none;
    flex-direction: column;
    padding: 8px;
    z-index: 9999;
}

.lk-dropdown.lk-dropdown--open {
    display: flex;
}

.lk-dropdown__item {
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--lk-text);
    transition: background 0.2s;
    white-space: nowrap;
}

.lk-dropdown__item:hover {
    background-color: #F5F7FA;
}

.lk-dropdown__item--logout {
    color: #F04D4D;
    margin-top: 4px;
    border-top: 1px solid #F0F0F0;
    padding-top: 12px;
}

/* ── Футер личного кабинета (свой, отдельный от футера лендинга) ───── */
.lk-footer {
    margin-top: 70px;
    background-color: var(--lk-card-bg);
    border-top: 1px solid var(--lk-border);
    color: var(--lk-text-muted);
}

.lk-footer__inner {
    overflow: hidden;
    position: relative;
}

.lk-footer__top {
    background-color: #F5F6FB;
    padding-block: 14px;
}

.lk-footer__top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.lk-footer__logo {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    background-color: var(--lk-text);
    border-radius: 10px;
    width: auto;
    height: auto;
    flex-shrink: 0;
}

.lk-footer__logo img {
    display: block;
    height: 24px;
    width: auto;
}

.lk-footer__nav-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 28px;
}

.lk-footer__item {
    text-transform: uppercase;
    color: var(--lk-text-muted);
    transition: color 0.2s ease;
}

.lk-footer__item:hover {
    color: var(--lk-primary);
}

.lk-footer__body {
    padding-top: 32px;
    padding-bottom: 32px;
}

.lk-footer__main {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.lk-footer__group-title {
    display: block;
    color: var(--lk-text);
    font-weight: 600;
    margin-bottom: 12px;
}

.lk-footer__group-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lk-footer__link {
    color: var(--lk-text-muted);
    transition: color 0.2s ease;
}

.lk-footer__link:hover {
    color: var(--lk-primary);
}

.lk-footer__extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 20px;
    color: var(--lk-text-muted);
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--lk-border);
}

.lk-footer__extra-links a {
    color: var(--lk-text-muted);
    transition: color 0.2s ease;
}

.lk-footer__extra-links a:hover {
    color: var(--lk-primary);
}

@media (max-width: 768px) {
    .lk-footer {
        margin-top: 50px;
    }

    .lk-footer__top-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .lk-footer__nav-list {
        justify-content: center;
        gap: 10px 20px;
    }

    .lk-footer__body {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .lk-footer__main {
        justify-content: center;
        text-align: center;
    }

    .lk-footer__group-links {
        align-items: center;
    }

    .lk-footer__extra {
        flex-direction: column;
        text-align: center;
    }
}

/* ── Алерты ─────────────────────────────────── */
@media (max-width: 768px) {
    .lk-alert {
        right: 0;
        left: 0;
        bottom: 0;
        border-radius: 0;
        max-width: 100%;
    }
}
