.schemes {
    --scheme-ink: #172738;
    --scheme-muted: #46596c;
    --scheme-blue: #175492;
    --scheme-line: #d4dfe8;
    --scheme-wash: #f2f6fa;
    color: var(--scheme-ink);
    overflow-wrap: anywhere;
    padding-bottom: clamp(2rem, 5vw, 4.5rem);
}
.schemes [hidden] { display: none !important; }
.schemes :focus-visible { outline: 3px solid #176abc; outline-offset: 3px; }
.schemes h1, .schemes h2, .schemes h3 { color: var(--scheme-ink); text-wrap: balance; }
.schemes__heading { padding: clamp(.5rem, 2vw, 1.7rem) 0 clamp(1.3rem, 3vw, 2.6rem); }
.schemes .schemes__heading h1 { margin: 0; max-width: 25ch; font-size: clamp(2rem, 4.5vw, 3.8rem); line-height: 1.08; letter-spacing: -.035em; }
.schemes__heading p { margin: .85rem 0 0; max-width: 72ch; font-size: clamp(1rem, 1.4vw, 1.17rem); color: var(--scheme-muted); line-height: 1.55; }
.schemes__heading--index {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(10rem, .42fr);
    grid-template-areas: "title cover" "lead cover";
    column-gap: clamp(1rem, 4vw, 3rem);
    align-content: center;
}
.schemes__heading--index h1 { grid-area: title; align-self: end; }
.schemes__heading--index p { grid-area: lead; align-self: start; }
.schemes__cover { grid-area: cover; align-self: center; justify-self: center; display: block; width: 100%; height: clamp(135px, 16vw, 225px); object-fit: contain; }
.schemes a:not(.button, .schemes__entry) { color: var(--scheme-blue); text-underline-offset: .18em; }
.schemes a:not(.button):hover { text-decoration: underline; }
.schemes__search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(10rem, .47fr) auto;
    gap: .85rem 1rem;
    align-items: end;
    padding: clamp(1rem, 2vw, 1.5rem);
    background: var(--scheme-wash);
    border: 1px solid var(--scheme-line);
    border-radius: 8px;
}
.schemes label { display: block; font-size: .9rem; font-weight: 650; line-height: 1.45; color: var(--scheme-ink); }
.schemes input[type="search"], .schemes select {
    display: block;
    margin-top: .35rem;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    color: var(--scheme-ink);
    background-color: white;
    border: 1px solid #9dafc0;
    border-radius: 5px;
    padding: .55rem .75rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 450;
}
.schemes .button { min-height: 46px; max-width: 100%; white-space: normal; text-align: center; line-height: 1.35; justify-content: center; }
.schemes__results, .schemes__execution-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .6rem 1.4rem;
}
.schemes__results { margin: 2rem 0 .75rem; }
.schemes__results h2, .schemes__execution-head h2, .schemes__passport h2, .schemes__views h2, .schemes__notes h2 {
    margin: 0;
    font-size: clamp(1.32rem, 2.2vw, 1.85rem);
    line-height: 1.25;
    letter-spacing: -.02em;
}
.schemes__results h2 span { font-size: .8em; color: var(--scheme-muted); font-weight: 500; }
.schemes__catalog { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: clamp(1rem, 3vw, 2.5rem); padding: 0; margin: 0; list-style: none; }
.schemes__catalog > li { min-width: 0; margin: 0; border-top: 1px solid var(--scheme-line); }
.schemes .schemes__entry {
    position: relative;
    display: grid;
    grid-template-columns: clamp(86px, 9.5vw, 150px) minmax(0,1fr) 1.1rem;
    gap: clamp(.7rem, 1.7vw, 1.2rem);
    align-items: center;
    height: 100%;
    padding: clamp(.85rem, 1.7vw, 1.2rem) 0;
    color: var(--scheme-ink);
    text-decoration: none;
}
.schemes__thumb { display: block; background: #fff; }
.schemes__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1.4; object-fit: contain; }
.schemes__entry-text { display: grid; gap: .28rem; min-width: 0; }
.schemes__type { font-size: .79rem; color: var(--scheme-blue); font-weight: 650; }
.schemes__entry-text strong { font-size: clamp(1rem, 1.55vw, 1.2rem); line-height: 1.35; text-wrap: pretty; }
.schemes__ident, .schemes__code, .schemes__part-code { font-variant-numeric: tabular-nums; }
.schemes__ident { color: var(--scheme-muted); font-size: .86rem; }
.schemes__arrow { align-self: center; color: var(--scheme-blue); font-size: 1.15rem; transition: transform .15s ease-out; }
.schemes .schemes__entry:hover, .schemes .schemes__entry:focus-visible { text-decoration: none; }
.schemes__entry:hover strong, .schemes__entry:focus-visible strong { text-decoration: underline; text-underline-offset: .14em; }
.schemes__entry:hover .schemes__arrow { transform: translate(2px, -2px); }
.schemes__empty { padding: 1rem 0; color: var(--scheme-muted); }
.schemes__overview { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: clamp(1.2rem, 3.8vw, 3.4rem); }
.schemes figure { min-width: 0; margin: 0; }
.schemes figure a { display: block; }
.schemes figure img { display: block; width: 100%; height: auto; object-fit: contain; }
.schemes__poster img { aspect-ratio: 3 / 2; background: white; border: 1px solid var(--scheme-line); border-radius: 6px; }
.schemes figcaption { margin: .6rem 0 0; color: var(--scheme-muted); font-size: .86rem; line-height: 1.45; }
.schemes__passport { padding: 1.1rem 0 0; border-top: 2px solid var(--scheme-blue); }
.schemes__passport dl { display: grid; grid-template-columns: minmax(5.8rem, .6fr) minmax(0, 1fr); gap: .6rem 1rem; margin: 1.1rem 0; font-size: .94rem; line-height: 1.45; }
.schemes dt { color: var(--scheme-muted); font-weight: 500; }
.schemes dd { margin: 0; color: var(--scheme-ink); font-weight: 600; }
.schemes__passport > p { margin: .55rem 0; font-size: .9rem; line-height: 1.5; color: var(--scheme-muted); }
.schemes__heading-actions { display: flex; flex-wrap: wrap; align-items: end; gap: .55rem 1.2rem; margin-top: .85rem; }
.schemes__jump { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: .45rem 0; font-weight: 600; }
.schemes__choose { min-width: 0; max-width: 100%; }
.schemes__spec { margin: clamp(1.8rem, 4vw, 3.5rem) 0 0; }
.schemes__spec, .schemes__execution, .schemes [data-schemes-position] { scroll-margin-top: 6rem; }
.schemes__execution { padding: 1.25rem 0; border-top: 1px solid var(--scheme-line); }
.schemes__execution-head { align-items: center; }
.schemes__execution-head p { margin: .3rem 0 0; }
.schemes__viewer { margin: 1rem 0; }
.schemes__scene { margin: .6rem 0; }
.schemes__scene iframe { display: block; width: 100%; height: clamp(360px, 70vh, 760px); border: 1px solid var(--scheme-line); border-radius: 6px; background: var(--scheme-wash); }
.schemes__viewer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1.25rem; }
.schemes__text-button { padding: .55rem 0; border: 0; cursor: pointer; font: inherit; color: var(--scheme-blue); text-decoration: underline; text-underline-offset: .18em; background: transparent; }
.schemes__parts, .schemes__dimensions, .schemes__views, .schemes__notes { margin: clamp(1.5rem, 3vw, 2.3rem) 0 0; }
.schemes__parts h3, .schemes__dimensions h3 { margin: 0 0 .9rem; font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.3; }
.schemes__part-filter { display: flex; gap: .55rem 1rem; align-items: end; flex-wrap: wrap; margin: .5rem 0 1rem; }
.schemes__part-filter label { flex: 0 1 24rem; min-width: 0; }
.schemes__part-filter :is(button,output) { min-height: 44px; display: inline-flex; align-items: center; }
.schemes__part-filter output { color: var(--scheme-muted); font-size: .86rem; }
.schemes__parts-table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.45; }
.schemes__parts-table th, .schemes__parts-table td { padding: .7rem clamp(.4rem, 1.2vw, .85rem); text-align: left; border-bottom: 1px solid var(--scheme-line); }
.schemes__parts-table thead { background: var(--scheme-wash); }
.schemes__parts-table tbody th { width: 8%; }
.schemes__part-code { width: 18%; }
.schemes__request { width: 12%; }
.schemes__pos { display: inline-block; min-width: 1.7rem; text-align: center; font-weight: 650; }
.schemes__parts-table tr:target { outline: 2px solid var(--scheme-blue); outline-offset: -2px; background: #edf4ff; }
.schemes__mobile-label { display: none; }
.schemes__dimensions dl { margin: 0; max-width: 55rem; }
.schemes__dimensions dl > div { display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr); gap: 1rem; border-top: 1px solid var(--scheme-line); padding: .7rem; }
.schemes__views > div { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap: 1rem; margin-top: 1rem; }
.schemes__views img { aspect-ratio: 3 / 2; border: 1px solid var(--scheme-line); border-radius: 5px; }
.schemes__notes ul { padding-inline-start: 1.2rem; max-width: 79ch; }
.schemes__notes li { margin: .5rem 0; line-height: 1.5; }
.schemes__footer { margin-top: 2rem; border-top: 1px solid var(--scheme-line); padding-top: 1rem; }
@media (max-width: 800px) {
    .schemes__catalog { grid-template-columns: minmax(0,1fr); }
    .schemes .schemes__entry { grid-template-columns: clamp(80px, 16vw, 126px) minmax(0,1fr) 1rem; }
    .schemes__overview { grid-template-columns: minmax(0,1fr); }
    .schemes__passport dl { grid-template-columns: minmax(0, .55fr) minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .schemes__heading--index { grid-template-columns: minmax(0,1fr) clamp(74px,21vw,112px); grid-template-areas: "title title" "lead cover"; gap: .4rem .6rem; }
    .schemes__heading--index p { align-self: center; margin-top: .3rem; }
    .schemes__cover { height: clamp(62px,18vw,92px); }
    .schemes__search { grid-template-columns: minmax(0,1fr) auto; }
    .schemes__search > label:first-child { grid-column: 1/-1; }
    .schemes__part-filter { align-items: center; }
    .schemes__part-filter label { flex-basis: 100%; }
    .schemes__parts-table, .schemes__parts-table tbody { display: block; }
    .schemes__parts-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
    .schemes__parts-table tbody tr {
        display: grid;
        grid-template-columns: minmax(2.5rem,auto) minmax(0,1fr);
        gap: .25rem .7rem;
        padding: .75rem .25rem;
        border-top: 1px solid var(--scheme-line);
    }
    .schemes__parts-table tbody th, .schemes__parts-table tbody td { display: block; width: auto; border: 0; padding: 0; grid-column: 2; }
    .schemes__parts-table tbody th { grid-column: 1; grid-row: 1/3; align-self: start; }
    .schemes__part-name { grid-row: 1; font-weight: 600; }
    .schemes__mobile-label { display: inline; }
    .schemes__pos, .schemes__request a { min-height: 36px; display: inline-flex; align-items: center; }
    .schemes__pos { justify-content: center; min-width: 2.4rem; border: 1px solid var(--scheme-line); border-radius: 4px; }
    .schemes__part-qty { font-size: .85rem; color: var(--scheme-muted); }
}
@media (max-width: 380px) {
    .schemes__search { grid-template-columns: minmax(0,1fr); }
    .schemes .schemes__entry { grid-template-columns: 70px minmax(0,1fr); }
    .schemes__arrow { display: none; }
    .schemes__passport dl { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
    .schemes__passport dd + dt { margin-top: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
    .schemes__arrow { transition: none; }
    .schemes__entry:hover .schemes__arrow { transform: none; }
}
