body {
    background: #f6f9fe;
}

.site-shell {
    width: min(1100px, calc(100% - 48px));
}

.site-header {
    height: 80px;
    border: 0;
}

.guide-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: center;
    gap: 12px;
    min-height: 324px;
    padding: 27px 35px 27px 44px;
    border: 1px solid #deebfb;
    border-radius: 23px;
    background: linear-gradient(120deg, #fff 6%, #f3f8ff 57%, #e9f3ff);
    box-shadow: 0 16px 40px #304b7410;
}

.guide-hero h1 {
    margin: 0;
    color: #102a49;
    font-size: clamp(33px, 4.2vw, 54px);
    font-weight: 800;
    line-height: 1.23;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.guide-hero h1 span {
    color: #1460d8;
}

.guide-hero p {
    margin: 16px 0 23px;
    color: #4c6482;
    font-size: clamp(14px, 1.6vw, 17px);
    line-height: 1.7;
}

.guide-enter {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(100%, 334px);
    min-height: 66px;
    padding: 12px 18px 12px 21px;
    border: 1px solid #125fdb;
    border-radius: 13px;
    background: linear-gradient(110deg, #1667ed, #1457ce);
    color: #fff;
    font-size: clamp(17px, 1.9vw, 21px);
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
    box-shadow: 0 9px 22px #1760d638;
}

.guide-enter:hover {
    background: #1355cc;
}

.guide-enter-arrow {
    display: grid;
    flex: none;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #ffffff24;
    font-size: 22px;
    font-weight: 500;
}

.guide-art {
    display: grid;
    place-items: center;
    min-width: 0;
    margin: 0;
}

.guide-art img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 315px;
    object-fit: contain;
}

.guide-sections {
    padding: 27px 0 17px;
    scroll-margin-top: 12px;
}

.guide-section-title {
    margin: 0 0 12px;
    color: #24405f;
    font-size: 19px;
    line-height: 1.4;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.guide-category {
    min-width: 0;
    padding: 12px;
    border: 1px solid #e0eafb;
    border-radius: 14px;
    background: #fff;
}

.guide-category-head {
    margin: 0 0 7px;
    font-size: 17px;
    line-height: 1.4;
}

.guide-category-head a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 55px;
    padding: 4px 8px 4px 10px;
    border-radius: 8px;
    background: #eef5ff;
    color: #20436e;
    text-decoration: none;
}

.guide-category-head a:hover,
.guide-category-head a:focus-visible {
    background: #e3efff;
}

.guide-category-head .guide-category-name {
    flex: 1;
    min-width: 0;
}

.guide-category-visual {
    display: block;
    flex: none;
    width: 67px;
    height: 45px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.guide-category-arrow,
.guide-item-arrow {
    flex: none;
    color: #2b68ad;
    font-weight: 500;
}

.guide-category ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.guide-category li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    min-height: 38px;
    height: 100%;
    padding: 5px 6px 5px 8px;
    border-radius: 6px;
    color: #3a526e;
    font-size: 13px;
    line-height: 1.45;
    text-decoration: none;
}

.guide-item-label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.guide-category li a:hover,
.guide-category li a:focus-visible {
    background: #f0f6ff;
    color: #1556ac;
}

.guide-additional {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 16px;
    padding: 0 3px 13px;
}

.guide-additional a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 40px;
    color: #466486;
    text-decoration: none;
    font-size: 13px;
}

.guide-additional a:last-child {
    margin-left: auto;
}

.guide-additional a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.guide-hero a:focus-visible,
.guide-sections a:focus-visible,
.guide-additional a:focus-visible {
    outline: 2px solid #1968ed;
    outline-offset: 3px;
}

@media (max-width: 950px) {
    .guide-category li a {
        font-size: 12px;
    }
}

@media (max-width: 760px) {
    .site-shell {
        width: calc(100% - 32px);
    }

    .site-header {
        height: 65px;
    }

    .guide-hero {
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding: 22px 18px 18px;
        border-radius: 16px;
    }

    .guide-hero h1 {
        font-size: clamp(25px, 7.4vw, 39px);
    }

    .guide-hero p {
        margin: 9px 0 13px;
    }

    .guide-enter {
        width: 100%;
        min-height: 59px;
        padding: 10px 14px;
    }

    .guide-art {
        margin: 5px auto -10px;
        width: min(100%, 237px);
    }

    .guide-art img {
        max-height: 120px;
    }

    .guide-section-title {
        margin-bottom: 8px;
    }

    .guide-sections {
        padding: 19px 0 9px;
    }

    .guide-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
    }

    .guide-category {
        padding: 8px 9px;
        border-radius: 11px;
    }

    .guide-category-head {
        margin-bottom: 3px;
    }

    .guide-category-head a {
        min-height: 48px;
    }

    .guide-category-visual {
        width: 57px;
        height: 38px;
    }

    .guide-category li a {
        min-height: 44px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .guide-art {
        width: 170px;
    }

    .guide-art img {
        max-height: 98px;
    }

    .guide-additional {
        gap: 0 12px;
    }
}

.guide-software-visual {
    display: grid;
    flex: 0 0 55px;
    place-items: center;
    width: 55px;
    height: 39px;
}

.guide-software-window {
    display: grid;
    width: 43px;
    height: 29px;
    overflow: hidden;
    border: 1px solid #8eb7e5;
    border-radius: 5px;
    background: #fcfeff;
    box-shadow: 0 3px 6px #204f8f26;
}

.guide-software-window::before {
    content: "";
    height: 7px;
    background: #2671c8;
}

.guide-software-window::after {
    content: "";
    width: 23px;
    height: 4px;
    margin: 0 5px 4px;
    border-radius: 2px;
    background: #8ebbec;
    box-shadow: 0 -6px 0 #c9e0f7;
}

@media (min-width: 1150px) {
    .guide-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .guide-category-head {
        font-size: 16px;
    }

    .guide-category-head a {
        gap: 6px;
    }

    .guide-category-visual {
        width: 51px;
        height: 35px;
    }

    .guide-category li a {
        font-size: 12px;
    }
}

@media (min-width: 761px) and (max-width: 1149px) {
    .guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
