.manual-site {
    background: var(--site-paper);
}

.manual-site .site-header-inner {
    grid-template-columns: 300px minmax(0, 1fr) auto;
}

.manual-site .site-nav {
    gap: 26px;
}

.manual-language-picker {
    position: relative;
}

.manual-language-picker::after {
    content: "⌄";
    position: absolute;
    top: 50%;
    right: 12px;
    color: var(--site-dark);
    font-size: 13px;
    pointer-events: none;
    transform: translateY(-57%);
}

.manual-language-picker select {
    min-height: 40px;
    max-width: 170px;
    padding: 0 32px 0 12px;
    border: 1px solid var(--site-line);
    border-radius: 999px;
    background: #fff;
    color: var(--site-dark);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    appearance: none;
    cursor: pointer;
}

.manual-sr-only {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    margin: -1px;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.manual-hero {
    position: relative;
    overflow: hidden;
    padding: 178px 0 104px;
    background: var(--site-dark) url("../background/bg.jpg") center / cover;
    color: #fff;
}

.manual-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 29, 32, 0.98), rgba(11, 36, 39, 0.87) 58%, rgba(9, 31, 34, 0.56));
}

.manual-hero::after {
    content: "";
    position: absolute;
    right: -180px;
    bottom: -340px;
    width: 720px;
    height: 720px;
    border: 1px solid rgba(141, 198, 63, 0.35);
    border-radius: 50%;
    box-shadow: 0 0 0 90px rgba(141, 198, 63, 0.05), 0 0 0 180px rgba(141, 198, 63, 0.03);
}

.manual-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 920px;
}

.manual-hero h1 {
    max-width: 850px;
    margin: 0 0 26px;
    font-size: clamp(46px, 7vw, 82px);
    font-weight: 790;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.manual-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 19px;
    line-height: 1.7;
}

.manual-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.manual-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.manual-hero-meta span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 750;
}

.manual-intro-strip {
    padding: 34px 0;
    background: #8dc63f;
    color: #fff;
}

.manual-intro-strip-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.manual-intro-strip article {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: start;
    gap: 14px;
}

.manual-intro-strip i {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #5f9421;
    font-style: normal;
    font-weight: 900;
}

.manual-intro-strip strong {
    display: block;
    margin-bottom: 4px;
    font-size: 17px;
}

.manual-intro-strip p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    line-height: 1.55;
}

.manual-content {
    padding: 82px 0 110px;
}

.manual-layout {
    display: grid;
    grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(42px, 6vw, 86px);
}

.manual-toc {
    position: sticky;
    top: 24px;
    overflow: hidden;
    border: 1px solid var(--site-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 42px rgba(16, 39, 43, 0.08);
}

.manual-toc h2 {
    margin: 0;
    padding: 20px 22px;
    background: var(--site-dark);
    color: #fff;
    font-size: 18px;
}

.manual-toc ol {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    counter-reset: toc;
}

.manual-toc li {
    counter-increment: toc;
}

.manual-toc a {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 7px;
    padding: 8px 18px;
    color: var(--site-ink-soft);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.manual-toc a::before {
    content: counter(toc, decimal-leading-zero);
    color: #6b9f2f;
    font-size: 11px;
    font-weight: 900;
}

.manual-toc a:hover {
    background: #f1f7e9;
    color: var(--site-dark);
}

.manual-main {
    min-width: 0;
}

.manual-chapter {
    scroll-margin-top: 28px;
    margin-bottom: 86px;
}

.manual-chapter:last-child {
    margin-bottom: 0;
}

.manual-chapter-head {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
    margin-bottom: 30px;
}

.manual-chapter-number {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 16px;
    background: #8dc63f;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.manual-chapter h2 {
    margin: 0;
    color: var(--site-dark);
    font-size: clamp(32px, 4.2vw, 52px);
    font-weight: 780;
    letter-spacing: -0.04em;
    line-height: 1.03;
}

.manual-chapter-head p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--site-ink-soft);
    font-size: 17px;
    line-height: 1.65;
}

.manual-section {
    margin-top: 34px;
}

.manual-section h3 {
    margin: 0 0 12px;
    color: var(--site-cyan-deep);
    font-size: 25px;
    letter-spacing: -0.025em;
}

.manual-section h4 {
    margin: 22px 0 8px;
    color: var(--site-dark);
    font-size: 18px;
}

.manual-section p,
.manual-section li,
.manual-card p,
.manual-card li {
    color: var(--site-ink-soft);
    font-size: 16px;
    line-height: 1.72;
}

.manual-section p {
    margin: 0 0 16px;
}

.manual-section ul,
.manual-section ol,
.manual-card ul,
.manual-card ol {
    margin: 12px 0 0;
    padding-left: 24px;
}

.manual-section li + li,
.manual-card li + li {
    margin-top: 7px;
}

.manual-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.manual-card-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.manual-card {
    padding: 24px;
    border: 1px solid var(--site-line);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(16, 39, 43, 0.055);
}

.manual-card h3,
.manual-card h4 {
    margin: 0 0 9px;
    color: var(--site-dark);
    font-size: 19px;
}

.manual-card p {
    margin: 0;
}

.manual-card strong {
    color: var(--site-dark);
}

.manual-steps {
    display: grid;
    gap: 14px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: manual-step;
}

.manual-steps > li {
    position: relative;
    min-height: 60px;
    padding: 18px 20px 18px 76px;
    border: 1px solid var(--site-line);
    border-radius: 15px;
    background: #fff;
    counter-increment: manual-step;
}

.manual-steps > li::before {
    content: counter(manual-step);
    position: absolute;
    top: 14px;
    left: 16px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: #8dc63f;
    color: #fff;
    font-weight: 900;
}

.manual-steps strong {
    display: block;
    margin-bottom: 3px;
    color: var(--site-dark);
}

.manual-check-list {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.manual-check-list li {
    position: relative;
    padding-left: 36px;
}

.manual-check-list li::before {
    content: "✓";
    position: absolute;
    top: 1px;
    left: 0;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: #8dc63f;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.manual-callout {
    margin-top: 22px;
    padding: 20px 22px;
    border-left: 5px solid #8dc63f;
    border-radius: 0 14px 14px 0;
    background: #eef7e4;
}

.manual-callout.info {
    border-left-color: var(--site-cyan);
    background: var(--site-cyan-pale);
}

.manual-callout.warning {
    border-left-color: #e39a2d;
    background: #fff4df;
}

.manual-callout strong {
    display: block;
    margin-bottom: 4px;
    color: var(--site-dark);
}

.manual-callout p {
    margin: 0;
}

.manual-table-wrap {
    overflow-x: auto;
    margin-top: 20px;
    border: 1px solid var(--site-line);
    border-radius: 16px;
    background: #fff;
}

.manual-table {
    width: 100%;
    border-collapse: collapse;
}

.manual-table th,
.manual-table td {
    padding: 15px 17px;
    border-bottom: 1px solid var(--site-line);
    color: var(--site-ink-soft);
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
    vertical-align: top;
}

.manual-table th {
    background: #eef3f3;
    color: var(--site-dark);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.manual-table tr:last-child td {
    border-bottom: 0;
}

.manual-table td:first-child {
    color: var(--site-dark);
    font-weight: 760;
}

.manual-tag {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--site-cyan-pale);
    color: var(--site-cyan-deep);
    font-size: 12px;
    font-weight: 800;
}

.manual-definition-list {
    display: grid;
    gap: 0;
    margin-top: 18px;
    border: 1px solid var(--site-line);
    border-radius: 16px;
    background: #fff;
}

.manual-definition-list > div {
    display: grid;
    grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
    gap: 24px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--site-line);
}

.manual-definition-list > div:last-child {
    border-bottom: 0;
}

.manual-definition-list dt {
    color: var(--site-dark);
    font-weight: 800;
}

.manual-definition-list dd {
    margin: 0;
    color: var(--site-ink-soft);
    line-height: 1.65;
}

.manual-faq {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.manual-faq details {
    border: 1px solid var(--site-line);
    border-radius: 14px;
    background: #fff;
}

.manual-faq summary {
    padding: 17px 20px;
    color: var(--site-dark);
    font-weight: 800;
    cursor: pointer;
}

.manual-faq details > div {
    padding: 0 20px 18px;
    color: var(--site-ink-soft);
    font-size: 15px;
    line-height: 1.7;
}

.manual-end-card {
    padding: 36px;
    border-radius: 22px;
    background: var(--site-dark);
    color: #fff;
}

.manual-end-card h3 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 30px;
}

.manual-end-card p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.72);
}

.manual-end-card .manual-hero-actions {
    margin-top: 24px;
}

.manual-print-button {
    border-color: rgba(255, 255, 255, 0.42);
    background: transparent;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.manual-print-button:hover {
    border-color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 980px) {
    .manual-site .site-header-inner {
        grid-template-columns: 1fr auto;
    }

    .manual-layout {
        grid-template-columns: 1fr;
    }

    .manual-toc {
        position: static;
    }

    .manual-toc ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .manual-intro-strip-inner,
    .manual-card-grid.three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .manual-language-picker select {
        width: 46px;
        max-width: 46px;
        padding-left: 8px;
        color: transparent;
    }

    .manual-language-picker select:focus {
        width: 160px;
        max-width: 160px;
        padding-left: 12px;
        color: var(--site-dark);
    }

    .manual-hero {
        padding: 132px 0 78px;
    }

    .manual-hero h1 {
        font-size: clamp(42px, 13vw, 58px);
    }

    .manual-hero p {
        font-size: 16px;
    }

    .manual-intro-strip-inner,
    .manual-card-grid,
    .manual-toc ol {
        grid-template-columns: 1fr;
    }

    .manual-content {
        padding: 58px 0 82px;
    }

    .manual-chapter {
        margin-bottom: 68px;
    }

    .manual-chapter-head {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 14px;
    }

    .manual-chapter-number {
        width: 46px;
        height: 46px;
        border-radius: 13px;
        font-size: 15px;
    }

    .manual-chapter h2 {
        font-size: 34px;
    }

    .manual-chapter-head p {
        grid-column: 1 / -1;
        font-size: 16px;
    }

    .manual-section h3 {
        font-size: 23px;
    }

    .manual-card,
    .manual-end-card {
        padding: 22px;
    }

    .manual-steps > li {
        padding: 70px 18px 18px;
    }

    .manual-steps > li::before {
        top: 16px;
        left: 18px;
    }

    .manual-definition-list > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .manual-site .site-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

@media print {
    .site-header,
    .manual-hero-actions,
    .manual-intro-strip,
    .manual-toc,
    .manual-end-card,
    .site-footer {
        display: none !important;
    }

    .manual-hero {
        padding: 30px 0;
        background: #fff;
        color: #000;
    }

    .manual-hero::before,
    .manual-hero::after {
        display: none;
    }

    .manual-hero p,
    .manual-hero-meta span {
        color: #333;
    }

    .manual-layout {
        display: block;
    }

    .manual-content {
        padding: 28px 0;
    }

    .manual-chapter {
        break-inside: avoid-page;
    }

    .manual-card,
    .manual-steps > li,
    .manual-table-wrap,
    .manual-definition-list,
    .manual-faq details {
        box-shadow: none;
    }
}
