/* ==========================================================================
   Lego Kubik UI — Sitemap
   Страница HTML-карты сайта
   ========================================================================== */


/* --------------------------------------------------------------------------
   Основной контейнер
   -------------------------------------------------------------------------- */

.lk-sitemap {
    --lk-sitemap-bg: #ffffff;
    --lk-sitemap-bg-soft: #f6f7fa;
    --lk-sitemap-border: rgba(14, 63, 126, 0.08);
    --lk-sitemap-border-strong: rgba(14, 63, 126, 0.14);
    --lk-sitemap-text: #212632;
    --lk-sitemap-text-muted: #7d8796;
    --lk-sitemap-accent: #0e979b;
    --lk-sitemap-accent-dark: #1b6da0;
    --lk-sitemap-icon-bg: #eef6f7;
    --lk-sitemap-line: rgba(14, 63, 126, 0.08);
    --lk-sitemap-count-bg: #eef2f7;
    --lk-sitemap-count-text: #667180;

    width: 100%;
    margin: 0;
    color: var(--lk-sitemap-text);
    box-sizing: border-box;
}

.lk-sitemap *,
.lk-sitemap *::before,
.lk-sitemap *::after {
    box-sizing: border-box;
}


/* --------------------------------------------------------------------------
   Приветственная карточка
   -------------------------------------------------------------------------- */

.lk-sitemap-intro {
    display: flex;
    align-items: center;
    gap: 22px;

    padding: 28px 30px;
    margin: 0 0 24px;

    background:
        linear-gradient(
            135deg,
            rgba(14, 151, 155, 0.08) 0%,
            rgba(27, 109, 160, 0.05) 100%
        ),
        var(--lk-sitemap-bg);

    border: 1px solid var(--lk-sitemap-border);
    border-radius: 24px;

    box-shadow:
        0 0 0 1px rgba(14, 63, 126, 0.02),
        0 2px 4px rgba(42, 51, 69, 0.04),
        0 8px 20px rgba(14, 63, 126, 0.06);

    position: relative;
    overflow: hidden;
}

.lk-sitemap-intro::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -70px;
    top: -90px;

    background: radial-gradient(
        circle,
        rgba(14, 151, 155, 0.14) 0%,
        rgba(14, 151, 155, 0) 70%
    );

    pointer-events: none;
}

.lk-sitemap-intro-icon {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    background: linear-gradient(
        135deg,
        var(--lk-sitemap-accent) 0%,
        var(--lk-sitemap-accent-dark) 100%
    );

    border-radius: 18px;

    box-shadow:
        0 8px 18px rgba(14, 151, 155, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.lk-sitemap-intro-icon svg {
    display: block;
    width: 32px;
    height: 32px;
    fill: #ffffff;
}

.lk-sitemap-intro-content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.lk-sitemap-intro-content h2 {
    margin: 0 0 8px;
    padding: 0;

    color: var(--lk-sitemap-text);
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.lk-sitemap-intro-content p {
    margin: 0;
    padding: 0;

    color: var(--lk-sitemap-text-muted);
    font-size: 16px;
    line-height: 1.65;
}


/* --------------------------------------------------------------------------
   Сетка карточек
   -------------------------------------------------------------------------- */

.lk-sitemap-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}


/* --------------------------------------------------------------------------
   Карточки разделов
   -------------------------------------------------------------------------- */

.lk-sitemap-card {
    min-width: 0;
    padding: 0;
    margin: 0;

    background: var(--lk-sitemap-bg);
    border: 1px solid var(--lk-sitemap-border);
    border-radius: 24px;

    box-shadow:
        0 0 0 1px rgba(14, 63, 126, 0.02),
        0 2px 4px rgba(42, 51, 69, 0.04),
        0 8px 20px rgba(14, 63, 126, 0.05);

    overflow: hidden;
    position: relative;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.lk-sitemap-card:hover {
    transform: translateY(-2px);

    border-color: var(--lk-sitemap-border-strong);

    box-shadow:
        0 0 0 1px rgba(14, 63, 126, 0.03),
        0 4px 8px rgba(42, 51, 69, 0.05),
        0 14px 28px rgba(14, 63, 126, 0.08);
}

.lk-sitemap-card-posts {
    grid-column: 1 / -1;
}


/* --------------------------------------------------------------------------
   Заголовок карточки
   -------------------------------------------------------------------------- */

.lk-sitemap-card-heading {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 22px 24px;

    background:
        linear-gradient(
            180deg,
            rgba(14, 151, 155, 0.05) 0%,
            rgba(14, 151, 155, 0) 100%
        );

    border-bottom: 1px solid var(--lk-sitemap-line);
}

.lk-sitemap-card-icon {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    background: var(--lk-sitemap-icon-bg);
    border: 1px solid rgba(14, 151, 155, 0.10);
    border-radius: 14px;
}

.lk-sitemap-card-icon svg {
    display: block;
    width: 23px;
    height: 23px;
    fill: var(--lk-sitemap-accent);
}

.lk-sitemap-card-heading > div {
    min-width: 0;
}

.lk-sitemap-card-heading h2 {
    margin: 0 0 3px;
    padding: 0;

    color: var(--lk-sitemap-text);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.lk-sitemap-card-heading div > span {
    display: block;

    color: var(--lk-sitemap-text-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}


/* --------------------------------------------------------------------------
   Списки ссылок
   -------------------------------------------------------------------------- */

.entry .lk-sitemap-list,
.lk-sitemap-list {
    list-style: none;
    margin: 0;
    padding: 8px 24px 14px;
}

.entry .lk-sitemap-list li,
.lk-sitemap-list li {
    list-style: none;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin: 0;
    padding: 14px 0;

    border-bottom: 1px solid var(--lk-sitemap-line);
}

.entry .lk-sitemap-list li:last-child,
.lk-sitemap-list li:last-child {
    border-bottom: 0;
}

.entry .lk-sitemap-list li::marker,
.lk-sitemap-list li::marker {
    display: none;
    content: "";
}

.lk-sitemap-list a {
    min-width: 0;

    color: var(--lk-sitemap-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;

    overflow-wrap: anywhere;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.lk-sitemap-list a:hover,
.lk-sitemap-list a:focus {
    color: var(--lk-sitemap-accent);
    text-decoration: none;
}

.lk-sitemap-list a:focus-visible {
    outline: 2px solid var(--lk-sitemap-accent);
    outline-offset: 4px;
    border-radius: 4px;
}

.lk-sitemap-list time {
    flex: 0 0 auto;

    color: var(--lk-sitemap-text-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}


/* --------------------------------------------------------------------------
   Счётчики категорий
   -------------------------------------------------------------------------- */

.lk-sitemap-count {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 30px;
    height: 26px;
    padding: 0 9px;

    color: var(--lk-sitemap-count-text);
    background: var(--lk-sitemap-count-bg);

    border: 1px solid var(--lk-sitemap-border);
    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}


/* --------------------------------------------------------------------------
   Теги
   -------------------------------------------------------------------------- */

.lk-sitemap-card-tags {
    grid-column: 1 / -1;
}

.lk-sitemap-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    padding: 22px 24px 26px;
}

.lk-sitemap-tags a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 9px 12px;

    color: var(--lk-sitemap-text);
    background: var(--lk-sitemap-bg-soft);

    border: 1px solid var(--lk-sitemap-border);
    border-radius: 12px;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.lk-sitemap-tags a:hover,
.lk-sitemap-tags a:focus {
    color: #ffffff;
    background: linear-gradient(
        135deg,
        var(--lk-sitemap-accent) 0%,
        var(--lk-sitemap-accent-dark) 100%
    );

    border-color: transparent;
    text-decoration: none;
    transform: translateY(-1px);

    box-shadow: 0 6px 14px rgba(14, 151, 155, 0.16);
}

.lk-sitemap-tags a:focus-visible {
    outline: 2px solid var(--lk-sitemap-accent);
    outline-offset: 3px;
}

.lk-sitemap-tags a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 22px;
    height: 22px;
    padding: 0 6px;

    color: var(--lk-sitemap-count-text);
    background: rgba(255, 255, 255, 0.76);

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.lk-sitemap-tags a:hover span,
.lk-sitemap-tags a:focus span {
    color: var(--lk-sitemap-accent-dark);
    background: #ffffff;
}


/* --------------------------------------------------------------------------
   Исправление стилей темы Dashwall
   -------------------------------------------------------------------------- */

.entry .lk-sitemap h2 {
    margin-top: 0;
    margin-bottom: 0;
}

.entry .lk-sitemap a {
    text-decoration: none;
}

.entry .lk-sitemap ul {
    box-sizing: border-box;
}

.entry .lk-sitemap p {
    margin-bottom: 0;
}


/* --------------------------------------------------------------------------
   Тёмная тема Dashwall
   -------------------------------------------------------------------------- */

body.dark .lk-sitemap {
    --lk-sitemap-bg: #2b303b;
    --lk-sitemap-bg-soft: #343a47;
    --lk-sitemap-border: rgba(255, 255, 255, 0.08);
    --lk-sitemap-border-strong: rgba(255, 255, 255, 0.15);
    --lk-sitemap-text: #f2f4f7;
    --lk-sitemap-text-muted: #aeb6c2;
    --lk-sitemap-accent: #49c4c7;
    --lk-sitemap-accent-dark: #4c9dcc;
    --lk-sitemap-icon-bg: rgba(73, 196, 199, 0.12);
    --lk-sitemap-line: rgba(255, 255, 255, 0.08);
    --lk-sitemap-count-bg: rgba(255, 255, 255, 0.08);
    --lk-sitemap-count-text: #c7ced8;
}

body.dark .lk-sitemap-intro {
    background:
        linear-gradient(
            135deg,
            rgba(73, 196, 199, 0.10) 0%,
            rgba(76, 157, 204, 0.05) 100%
        ),
        var(--lk-sitemap-bg);

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.02),
        0 8px 24px rgba(0, 0, 0, 0.18);
}

body.dark .lk-sitemap-intro::after {
    background: radial-gradient(
        circle,
        rgba(73, 196, 199, 0.13) 0%,
        rgba(73, 196, 199, 0) 70%
    );
}

body.dark .lk-sitemap-card {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.02),
        0 8px 24px rgba(0, 0, 0, 0.18);
}

body.dark .lk-sitemap-card:hover {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 12px 30px rgba(0, 0, 0, 0.24);
}

body.dark .lk-sitemap-card-heading {
    background:
        linear-gradient(
            180deg,
            rgba(73, 196, 199, 0.06) 0%,
            rgba(73, 196, 199, 0) 100%
        );
}

body.dark .lk-sitemap-intro-content h2,
body.dark .lk-sitemap-card-heading h2,
body.dark .lk-sitemap-list a {
    color: var(--lk-sitemap-text);
}

body.dark .lk-sitemap-list a:hover,
body.dark .lk-sitemap-list a:focus {
    color: var(--lk-sitemap-accent);
}

body.dark .lk-sitemap-tags a {
    color: var(--lk-sitemap-text);
}

body.dark .lk-sitemap-tags a span {
    color: #d9dee6;
    background: rgba(255, 255, 255, 0.10);
}

body.dark .lk-sitemap-tags a:hover span,
body.dark .lk-sitemap-tags a:focus span {
    color: #285d78;
    background: #ffffff;
}


/* --------------------------------------------------------------------------
   Планшеты
   -------------------------------------------------------------------------- */

@media only screen and (max-width: 900px) {

    .lk-sitemap-grid {
        grid-template-columns: 1fr;
    }

    .lk-sitemap-card-posts,
    .lk-sitemap-card-tags {
        grid-column: auto;
    }
}


/* --------------------------------------------------------------------------
   Мобильные устройства
   -------------------------------------------------------------------------- */

@media only screen and (max-width: 600px) {

    .lk-sitemap-intro {
        align-items: flex-start;
        gap: 16px;
        padding: 22px 20px;
        border-radius: 20px;
    }

    .lk-sitemap-intro-icon {
        width: 52px;
        height: 52px;
        border-radius: 15px;
    }

    .lk-sitemap-intro-icon svg {
        width: 27px;
        height: 27px;
    }

    .lk-sitemap-intro-content h2 {
        font-size: 21px;
    }

    .lk-sitemap-intro-content p {
        font-size: 15px;
        line-height: 1.55;
    }

    .lk-sitemap-grid {
        gap: 18px;
    }

    .lk-sitemap-card {
        border-radius: 20px;
    }

    .lk-sitemap-card-heading {
        padding: 18px 18px;
    }

    .lk-sitemap-card-icon {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .lk-sitemap-card-icon svg {
        width: 21px;
        height: 21px;
    }

    .lk-sitemap-card-heading h2 {
        font-size: 19px;
    }

    .entry .lk-sitemap-list,
    .lk-sitemap-list {
        padding: 6px 18px 12px;
    }

    .entry .lk-sitemap-list li,
    .lk-sitemap-list li {
        align-items: flex-start;
        gap: 12px;
        padding: 13px 0;
    }

    .lk-sitemap-list a {
        font-size: 14px;
    }

    .lk-sitemap-list time {
        padding-top: 2px;
        font-size: 11px;
    }

    .lk-sitemap-tags {
        gap: 8px;
        padding: 18px;
    }

    .lk-sitemap-tags a {
        padding: 8px 10px;
        font-size: 13px;
    }
}


/* --------------------------------------------------------------------------
   Очень узкие экраны
   -------------------------------------------------------------------------- */

@media only screen and (max-width: 420px) {

    .lk-sitemap-intro {
        display: block;
    }

    .lk-sitemap-intro-icon {
        margin-bottom: 16px;
    }

    .entry .lk-sitemap-list li,
    .lk-sitemap-list li {
        display: flex;
        flex-wrap: wrap;
    }

    .lk-sitemap-list time {
        width: 100%;
    }
}


/* --------------------------------------------------------------------------
   Пользователи без анимации
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .lk-sitemap-card,
    .lk-sitemap-list a,
    .lk-sitemap-tags a {
        transition: none;
    }

    .lk-sitemap-card:hover,
    .lk-sitemap-tags a:hover {
        transform: none;
    }
}