
:root {
    --primary: #0755d9;
    --primary-hover: #0645b5;
    --navy: #09265f;
    --text: #17233d;
    --muted: #687791;
    --background: #f5f8fd;
    --border: #e4ebf5;
    --radius: 16px;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont,
        "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--navy);
    font-weight: 700;
    letter-spacing: -.025em;
}

a {
    color: var(--primary);
}

.btn {
    border-radius: 9px;
    font-weight: 600;
    padding: 10px 18px;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(22,48,89,.055);
    transition: box-shadow .2s, transform .2s;
}

.card:hover {
    box-shadow: 0 16px 36px rgba(22,48,89,.11);
    transform: translateY(-3px);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
}

.card-img-top {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #eaf0fa;
}

.progress {
    height: 9px;
    border-radius: 20px;
    background: #e8eef8;
}

.progress-bar.bg-info {
    background: linear-gradient(
        90deg, #2480ff, #0755d9
    ) !important;
}

.form-control {
    border-radius: 9px;
    border: 1px solid #dce5f3;
}

.page-link {
    color: var(--primary);
}

.page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

.category-wrapper {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

@media (max-width: 767px) {
    h1 { font-size: 29px; }
    h2 { font-size: 24px; }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .category-wrapper {
        padding: 15px;
    }
}

/* ===== Site layout ===== */

.site-layout {
    margin: 0;
    min-height: 100vh;
    background: #f5f8fd;
    color: #17233d;
}

.site-header {
    position: relative;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e5ebf5;
    box-shadow: 0 3px 16px rgba(13, 42, 91, .035);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 76px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none !important;
}

.site-logo-icon {
    width: 39px;
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(135deg, #0755d9, #3182fa);
    color: #fff;
    font-size: 23px;
    font-weight: 800;
}

.site-logo-text {
    color: #09265f;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.6px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-nav a {
    color: #35435f;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.site-nav a:hover {
    color: #0755d9;
}

.site-main {
    min-height: 65vh;
}

.site-content {
    padding-top: 30px;
    padding-bottom: 55px;
}

/* ===== Mobile navigation ===== */

.site-mobile-nav {
    display: none;
    position: relative;
}

.site-mobile-nav summary {
    width: 42px;
    height: 42px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #e4ebf5;
    border-radius: 10px;
    list-style: none;
}

.site-mobile-nav summary::-webkit-details-marker {
    display: none;
}

.site-mobile-nav summary span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #09265f;
}

.site-mobile-nav nav {
    position: absolute;
    right: 0;
    top: 50px;
    min-width: 210px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e4ebf5;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(10, 38, 95, .12);
}

.site-mobile-nav nav a {
    display: block;
    padding: 10px 12px;
    color: #17233d;
    text-decoration: none;
    border-radius: 7px;
}

.site-mobile-nav nav a:hover {
    background: #f1f5fc;
}

/* ===== Footer ===== */

.site-footer {
    margin-top: 40px;
    padding: 65px 0 0;
    color: #c5d3ed;
    background: linear-gradient(
        135deg,
        #09265f 0%,
        #071638 100%
    );
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 55px;
    padding-bottom: 55px;
}

.site-footer-logo {
    font-size: 25px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.site-footer-about p {
    max-width: 370px;
    font-size: 14px;
    line-height: 1.8;
    color: #c5d3ed;
}

.site-footer h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 21px;
}

.site-footer-grid a {
    display: block;
    width: fit-content;
    color: #c5d3ed;
    text-decoration: none;
    margin-bottom: 13px;
    font-size: 14px;
}

.site-footer-grid a:hover {
    color: #fff;
}

.site-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-size: 13px;
    color: #91a8d3;
}

/* ===== Responsive ===== */

@media (max-width: 767px) {
    .site-header-inner {
        min-height: 66px;
    }

    .site-nav {
        display: none;
    }

    .site-mobile-nav {
        display: block;
    }

    .site-content {
        padding-top: 20px;
        padding-bottom: 35px;
    }

    .site-footer {
        padding-top: 40px;
    }

    .site-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 35px;
    }

    .site-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 17px 0;
    }
}

/* Краткий обзор сайта */

.wr-overview-new {
    background: #fff;
    border: 1px solid #d9e5fa;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 12px 36px rgba(25, 68, 140, .045);
}

.wr-overview-new-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.wr-overview-new-eyebrow,
.wr-overview-new-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #2563eb;
    margin-bottom: 9px;
}

.wr-overview-new h2 {
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.2;
    font-weight: 800;
    color: #10234a;
    margin: 0 0 10px;
}

.wr-overview-new-subtitle,
.wr-overview-new-note {
    font-size: 13px;
    line-height: 1.6;
    color: #788ba9;
}

.wr-overview-new-score {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 15px;
    border-radius: 16px;
    background: #edf4ff;
    color: #2563eb;
}

.wr-overview-new-score strong {
    font-size: 32px;
    line-height: 1;
    font-weight: 800;
}

.wr-overview-new-score span {
    font-size: 11px;
    margin-top: 6px;
}

.wr-overview-new-description {
    border-radius: 14px;
    background: #f5f8ff;
    padding: 20px;
    margin-bottom: 18px;
}

.wr-overview-new-description p {
    margin: 0;
    line-height: 1.75;
    color: #354968;
    overflow-wrap: anywhere;
}

.wr-overview-new-category {
    font-size: 13px;
    margin-bottom: 22px;
    color: #7184a3;
}

.wr-overview-new-category a {
    color: #2563eb;
    font-weight: 700;
}

.wr-overview-new-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.wr-overview-new-card {
    border: 1px solid #e2eaf7;
    border-radius: 16px;
    padding: 20px;
    min-width: 0;
}

.wr-overview-new-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 800;
    color: #10234a;
    margin: 0 0 16px;
}

.wr-overview-new-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 9px;
    font-weight: 800;
}

.wr-overview-new-icon.good {
    background: #e2f8ec;
    color: #15995b;
}

.wr-overview-new-icon.warning {
    background: #fff0df;
    color: #d98b16;
}

.wr-overview-new-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wr-overview-new-card li {
    position: relative;
    padding: 8px 0 8px 18px;
    line-height: 1.55;
    font-size: 13px;
    color: #4d607e;
    border-bottom: 1px solid #edf2fa;
}

.wr-overview-new-card li:last-child {
    border-bottom: 0;
}

.wr-overview-new-card li::before {
    content: "•";
    position: absolute;
    left: 2px;
    color: #2563eb;
}

.wr-overview-new-card p {
    color: #7184a3;
    line-height: 1.6;
    font-size: 13px;
}

.wr-overview-new-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.wr-overview-new-footer span {
    background: #f1f5fd;
    border-radius: 9px;
    padding: 9px 13px;
    font-size: 12px;
    color: #596f90;
}

.wr-overview-new-footer b {
    color: #2563eb;
}

.wr-overview-new-note {
    margin: 18px 0 0;
}

@media (max-width: 767px) {
    .wr-overview-new {
        padding: 18px;
    }

    .wr-overview-new-head {
        flex-direction: column;
    }

    .wr-overview-new-columns {
        grid-template-columns: 1fr;
    }

    .wr-overview-new-score {
        align-self: flex-start;
    }
}

.wr-recommendations-details {
    background: #fff;
    border: 1px solid #dce7f7;
    border-radius: 16px;
    padding: 18px 22px;
}

.wr-recommendations-details > summary {
    cursor: pointer;
    color: #2563eb;
    font-weight: 700;
    font-size: 15px;
}

.wr-recommendations-details[open] > summary {
    margin-bottom: 22px;
}
