/*
Theme Name: dds_ledroiten3minutes.com
Author: Алексей Громов
Description: Тема информационного ресурса по жилищному праву в стилистике архивного технического паспорта: миллиметровая бумага, чертёжные линии, штампы и картотека.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lexplan
*/

/* ===== Шрифты (вложены в тему) ===== */
@font-face {
    font-family: "Oswald";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("fonts/oswald-cyrillic-500-normal.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Oswald";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("fonts/oswald-latin-500-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Oswald";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/oswald-cyrillic-700-normal.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Oswald";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/oswald-latin-700-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "PT Sans Narrow";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/pt-sans-narrow-cyrillic-400-normal.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "PT Sans Narrow";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/pt-sans-narrow-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "PT Sans Narrow";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/pt-sans-narrow-cyrillic-700-normal.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "PT Sans Narrow";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/pt-sans-narrow-latin-700-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Палитра ===== */
:root {
    --lx-paper: #E8E4D8;
    --lx-paper-light: #EFECE3;
    --lx-paper-deep: #DCD7C8;
    --lx-grid: #B9B2A0;
    --lx-graphite: #22282B;
    --lx-graphite-deep: #1A1F21;
    --lx-graphite-soft: #2C3337;
    --lx-slate: #3E4C55;
    --lx-ink: #1C1F21;
    --lx-muted: #6E6A5E;
    --lx-red: #C23B2E;
    --lx-red-deep: #A12F24;
    --lx-blue: #3E6B8C;
    --lx-line: #8C8574;
    --lx-on-dark: #E8E4D8;
    --lx-on-dark-muted: #B3AE9F;
    --lx-head: "Oswald", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    --lx-text: "PT Sans Narrow", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    --lx-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .29 0 0 0 0 .22 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --lx-paper-grid:
        linear-gradient(rgba(185, 178, 160, .75) 1px, transparent 1px),
        linear-gradient(90deg, rgba(185, 178, 160, .75) 1px, transparent 1px),
        linear-gradient(rgba(185, 178, 160, .38) 1px, transparent 1px),
        linear-gradient(90deg, rgba(185, 178, 160, .38) 1px, transparent 1px);
}

/* ===== Правила [hidden] — до основных стилей ===== */
.lx-cookie[hidden] { display: none !important; }
.cookie-banner[hidden] { display: none !important; }

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--lx-text);
    font-size: 1.125rem;
    line-height: 1.55;
    color: var(--lx-ink);
    background-color: var(--lx-paper);
    background-image: var(--lx-noise), var(--lx-paper-grid);
    background-size: 260px 260px, 120px 120px, 120px 120px, 24px 24px, 24px 24px;
    overflow-wrap: break-word;
    hyphens: auto;
}

img, svg, video { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--lx-head);
    font-weight: 700;
    line-height: 1.15;
    margin: 1.6em 0 .55em;
    color: inherit;
    overflow-wrap: break-word;
    hyphens: auto;
}

p { margin: 0 0 1em; }

a {
    color: var(--lx-ink);
    text-decoration: underline;
    text-decoration-color: var(--lx-red);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color .15s ease, text-decoration-color .15s ease, background-color .15s ease;
}
a:hover { color: var(--lx-red); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--lx-red);
    outline-offset: 2px;
}

.lx-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: .6rem 1rem;
    background: var(--lx-red);
    color: #fff;
}
.lx-skip:focus { left: 1rem; top: 1rem; }

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* ===== Контейнер ===== */
.lx-shell {
    width: min(92%, 1240px);
    margin-inline: auto;
}
.lx-shell--front {
    width: min(85%, 1340px);
    position: relative;
}

/* ===== Заголовки секций ===== */
.lx-title,
.lx-case__quote p,
.lx-card__title,
.lx-doc__title,
.lx-step__text,
.lx-sheet__name {
    hyphens: manual;
}
.lx-title {
    margin: 0 0 1.6rem;
    font-family: var(--lx-head);
    font-weight: 700;
    font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem);
    line-height: 1.02;
    text-transform: uppercase;
    letter-spacing: .005em;
    color: var(--lx-graphite);
}
.lx-title--light { color: var(--lx-on-dark); }

/* ===== Кнопка-штамп ===== */
.lx-stampbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4em;
    padding: .42em 1em .38em;
    font-family: var(--lx-head);
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    color: var(--lx-red);
    background: transparent;
    border: 2px solid var(--lx-red);
    box-shadow: inset 0 0 0 2px var(--lx-paper-light), inset 0 0 0 3px var(--lx-red);
    border-radius: 0;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.lx-stampbtn:hover,
.lx-stampbtn:focus-visible {
    color: var(--lx-paper-light);
    background: var(--lx-red);
    transform: translate(-2px, -2px);
    box-shadow: inset 0 0 0 2px var(--lx-red), 3px 3px 0 var(--lx-graphite);
}
.lx-stampbtn--solid {
    color: var(--lx-paper-light);
    background: var(--lx-red);
    box-shadow: inset 0 0 0 2px var(--lx-red), inset 0 0 0 3px var(--lx-paper-light);
}
.lx-stampbtn--solid:hover,
.lx-stampbtn--solid:focus-visible {
    background: var(--lx-red-deep);
    border-color: var(--lx-red-deep);
}
.lx-stampbtn--light {
    color: var(--lx-on-dark);
    border-color: var(--lx-red);
    box-shadow: inset 0 0 0 2px var(--lx-graphite), inset 0 0 0 3px var(--lx-red);
}

/* ===== Печати (штампы) ===== */
.lx-seal {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    color: var(--lx-red);
    font-family: var(--lx-head);
    font-weight: 700;
    text-transform: uppercase;
    opacity: .9;
}
.lx-seal span {
    position: relative;
    z-index: 1;
    display: block;
    padding: .18em .5em .12em;
    border: 3px solid currentColor;
    box-shadow: inset 0 0 0 2px var(--lx-paper), inset 0 0 0 3px currentColor;
    background: var(--lx-paper);
    letter-spacing: .03em;
    line-height: 1.1;
    white-space: nowrap;
}
.lx-seal--checked {
    top: 4.6rem;
    right: 0;
    width: 170px;
    height: 170px;
    font-size: 1.6rem;
    border: 5px solid currentColor;
    border-radius: 50%;
    transform: rotate(-16deg);
}
.lx-seal--checked::before {
    content: "";
    position: absolute;
    inset: 9px;
    border: 2px dashed currentColor;
    border-radius: 50%;
}
.lx-seal--closed {
    top: 0;
    right: -4%;
    font-size: 1.5rem;
    transform: rotate(-12deg);
}
.lx-seal--missing {
    top: 1.5rem;
    right: 0;
    font-size: 1.9rem;
    transform: rotate(-9deg);
}

/* ===== Шапка ===== */
.lx-head {
    position: relative;
    color: var(--lx-on-dark);
    background-color: var(--lx-graphite);
    background-image:
        linear-gradient(rgba(62, 107, 140, .14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(62, 107, 140, .14) 1px, transparent 1px);
    background-size: 24px 24px;
    border-bottom: 4px solid var(--lx-graphite-deep);
}
.lx-head__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.4rem 0;
}
.lx-brand {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    min-width: 0;
    flex: 1 1 auto;
    text-decoration: none;
    color: inherit;
}
.lx-brand:hover { color: inherit; }
.lx-brand__mark { flex: 0 0 auto; }
.lx-brand__mark svg,
.lx-brand__mark img {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: contain;
}
.lx-brand__text {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    min-width: 0;
    max-width: 600px;
}
.lx-brand__name {
    font-family: var(--lx-head);
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: .01em;
    color: var(--lx-on-dark);
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(232, 228, 216, .35);
}
.lx-brand__desc {
    font-size: .98rem;
    line-height: 1.35;
    color: var(--lx-on-dark-muted);
}

.lx-navtoggle {
    display: none;
    align-items: center;
    gap: .6rem;
    padding: .55rem .9rem;
    font-family: var(--lx-head);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--lx-on-dark);
    background: transparent;
    border: 2px solid var(--lx-red);
    border-radius: 0;
    cursor: pointer;
}
.lx-navtoggle__bars,
.lx-navtoggle__bars::before,
.lx-navtoggle__bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    position: relative;
}
.lx-navtoggle__bars::before,
.lx-navtoggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
}
.lx-navtoggle__bars::before { top: -6px; }
.lx-navtoggle__bars::after { top: 6px; }
.lx-navtoggle[aria-expanded="true"] .lx-navtoggle__bars { background: transparent; }
.lx-navtoggle[aria-expanded="true"] .lx-navtoggle__bars::before { top: 0; transform: rotate(45deg); }
.lx-navtoggle[aria-expanded="true"] .lx-navtoggle__bars::after { top: 0; transform: rotate(-45deg); }

.lx-nav { flex: 0 1 auto; min-width: 0; }
.lx-menu {
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    list-style: none;
}
.lx-menu li {
    position: relative;
    margin: 0;
}
.lx-menu li + li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 1px;
    background: rgba(232, 228, 216, .3);
}
.lx-menu a {
    display: block;
    padding: .55rem 1.15rem;
    font-family: var(--lx-head);
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--lx-on-dark);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}
.lx-menu a:hover,
.lx-menu .current-menu-item > a,
.lx-menu .current_page_item > a {
    color: #fff;
    border-bottom-color: var(--lx-red);
}

/* ===== Полосы главной ===== */
.lx-band {
    position: relative;
    padding: 3.2rem 0 3.6rem;
}
.lx-band--paper {
    background-color: var(--lx-paper);
    background-image: var(--lx-noise), var(--lx-paper-grid);
    background-size: 260px 260px, 120px 120px, 120px 120px, 24px 24px, 24px 24px;
}
.lx-band--graphite {
    color: var(--lx-on-dark);
    background-color: var(--lx-graphite-soft);
    background-image:
        var(--lx-noise),
        linear-gradient(rgba(62, 107, 140, .22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(62, 107, 140, .22) 1px, transparent 1px);
    background-size: 260px 260px, 24px 24px, 24px 24px;
    border-top: 4px solid var(--lx-graphite);
    border-bottom: 4px solid var(--lx-graphite);
}
.lx-band--slate {
    color: var(--lx-on-dark);
    background-color: var(--lx-slate);
    background-image:
        var(--lx-noise),
        linear-gradient(rgba(232, 228, 216, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 228, 216, .06) 1px, transparent 1px);
    background-size: 260px 260px, 24px 24px, 24px 24px;
}

/* --- Блок 1: схема прав --- */
.lx-scheme { overflow: hidden; }
.lx-scheme::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(225deg, var(--lx-graphite) 0 49%, var(--lx-paper-light) 50% 100%);
    box-shadow: -2px 2px 0 var(--lx-line);
}
.lx-scheme__grid {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
}
.lx-floors {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 2px solid var(--lx-graphite);
    background: var(--lx-paper-light);
    box-shadow: 4px 4px 0 rgba(28, 31, 33, .12);
}
.lx-floors li {
    padding: .5rem .5rem .45rem;
    font-family: var(--lx-head);
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    color: var(--lx-graphite);
    border-top: 1px solid var(--lx-line);
}
.lx-floors li:first-child { border-top: 0; }
.lx-floors .lx-floors__head {
    font-weight: 700;
    letter-spacing: .06em;
    border-bottom: 2px solid var(--lx-graphite);
}
.lx-floors li:nth-last-child(-n+2) {
    color: var(--lx-red);
}

.lx-scheme__fig { margin: 0; min-width: 0; }
.lx-scheme__stage {
    position: relative;
    aspect-ratio: 1080 / 532;
}
.lx-scheme__img {
    position: absolute;
    top: 0;
    left: 17.6%;
    width: 59.7%;
    height: 100%;
    object-fit: contain;
}
.lx-callout {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: 0 .4rem .3rem 0;
    font-family: var(--lx-head);
    font-weight: 500;
    font-size: clamp(1rem, .6rem + .9vw, 1.45rem);
    line-height: 1.15;
    color: var(--lx-red);
    border-bottom: 2px solid var(--lx-red);
    white-space: nowrap;
}
.lx-callout i {
    display: inline-grid;
    place-items: center;
    width: 1.35em;
    height: 1.35em;
    font-style: normal;
    font-size: .7em;
    font-weight: 700;
    color: var(--lx-paper-light);
    background: var(--lx-red);
}
.lx-callout--common { left: .7%; top: 6.2%; min-width: 20.3%; }
.lx-callout--own { left: 70.8%; top: 2.4%; min-width: 22%; }
.lx-callout--uk { left: 73.4%; top: 75.2%; }

.lx-legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem 2rem;
    margin: 1.8rem 0 0;
    padding: 1.1rem 0 0;
    list-style: none;
    counter-reset: lxlegend;
    border-top: 2px dashed var(--lx-line);
    font-size: 1.02rem;
    line-height: 1.45;
    color: var(--lx-ink);
}
.lx-legend li {
    position: relative;
    padding-left: 2.1rem;
    counter-increment: lxlegend;
    min-width: 0;
}
.lx-legend li::before {
    content: counter(lxlegend);
    position: absolute;
    left: 0;
    top: .1rem;
    display: grid;
    place-items: center;
    width: 1.45rem;
    height: 1.45rem;
    font-family: var(--lx-head);
    font-weight: 700;
    font-size: .85rem;
    color: var(--lx-paper-light);
    background: var(--lx-red);
}
.lx-legend strong {
    font-family: var(--lx-head);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--lx-graphite);
}

/* --- Блок 2: алгоритм --- */
.lx-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.lx-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    min-width: 0;
    min-height: 120px;
    padding: 1rem 1.1rem 1.05rem;
    text-align: center;
    color: var(--lx-ink);
    background: var(--lx-paper-light);
    background-image: var(--lx-noise);
    border: 3px solid var(--lx-red);
    box-shadow: inset 0 0 0 3px var(--lx-paper-light), inset 0 0 0 4px var(--lx-red), 4px 4px 0 rgba(0, 0, 0, .28);
    transition: transform .15s ease;
}
.lx-step:hover { transform: translate(-2px, -2px) rotate(-.6deg); }
.lx-step__num {
    font-family: var(--lx-head);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1;
    color: var(--lx-red);
}
.lx-step__text {
    font-family: var(--lx-head);
    font-weight: 500;
    font-size: 1.15rem;
    line-height: 1.2;
    color: var(--lx-graphite);
}
.lx-step + .lx-step::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -2.75rem;
    width: 2.1rem;
    height: 14px;
    transform: translateY(-50%);
    background: var(--lx-red);
    clip-path: polygon(0 35%, 60% 35%, 60% 0, 100% 50%, 60% 100%, 60% 65%, 0 65%);
}
.lx-flood__caption {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin: 2.2rem 0 0;
    font-size: 1.2rem;
    color: var(--lx-on-dark);
}
.lx-flood__caption::before,
.lx-flood__caption::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(232, 228, 216, .35);
}
.lx-flood__caption span { flex: 0 1 auto; text-align: center; }

/* --- Последние записи --- */
.lx-latest__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.6rem;
}
.lx-latest__head .lx-title { margin: 0; }
.lx-more {
    font-family: var(--lx-head);
    font-weight: 500;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding-bottom: .1rem;
}
.lx-more::after { content: " →"; color: var(--lx-red); }

.lx-empty {
    padding: 1.6rem 1.8rem;
    background: var(--lx-paper-light);
    border: 2px dashed var(--lx-line);
    color: var(--lx-muted);
}
.lx-empty p { margin: 0; }

/* ===== Карточки-картотеки ===== */
.lx-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 2.2rem;
}
.lx-cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lx-cards--three:has(> .lx-card:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; }

.lx-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--lx-paper-light);
    background-image: var(--lx-noise);
    border: 2px solid var(--lx-line);
    outline: 1px solid var(--lx-line);
    outline-offset: -8px;
    clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 0 100%);
    transition: transform .18s ease, border-color .18s ease;
}
.lx-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(225deg, transparent 0 48%, var(--lx-line) 48% 52%, var(--lx-paper-deep) 52% 100%);
    pointer-events: none;
}
.lx-card:hover {
    transform: translate(-3px, -3px);
    border-color: var(--lx-graphite);
}
.lx-card__no {
    position: absolute;
    top: 1rem;
    left: 1.3rem;
    z-index: 2;
    padding: .05rem .4rem;
    font-family: var(--lx-text);
    font-size: 1.05rem;
    color: var(--lx-graphite);
    background: var(--lx-paper-light);
}
.lx-card__media {
    padding: 1.2rem 1.2rem 0;
}
.lx-card__media a {
    display: block;
    text-decoration: none;
}
.lx-card__media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    filter: saturate(.85) contrast(1.02);
    transition: filter .2s ease;
}
.lx-card:hover .lx-card__media img { filter: saturate(1) contrast(1.05); }
.lx-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1rem 1.4rem 1.4rem;
}
.lx-card__title {
    margin: 0 0 .7rem;
    font-family: var(--lx-head);
    font-weight: 500;
    font-size: 1.3rem;
    line-height: 1.22;
}
.lx-card__title a {
    color: var(--lx-graphite);
    text-decoration: none;
    background-image: linear-gradient(var(--lx-red), var(--lx-red));
    background-repeat: no-repeat;
    background-size: 0 2px;
    background-position: 0 100%;
    transition: background-size .2s ease, color .15s ease;
}
.lx-card__title a:hover {
    color: var(--lx-graphite);
    background-size: 100% 2px;
}
.lx-card__excerpt {
    flex: 1;
    font-size: 1.04rem;
    line-height: 1.45;
    color: var(--lx-muted);
}
.lx-card__excerpt p {
    margin: 0 0 .5em;
    background: none;
}
.lx-card__excerpt a { color: var(--lx-muted); }
.lx-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.lx-card__date {
    font-size: 1.02rem;
    color: var(--lx-graphite);
}

/* --- Блок 3: образцы документов --- */
.lx-docs__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 2.5rem;
    align-items: center;
}
.lx-sheets {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2.2rem;
    margin: 0;
    padding: .6rem 0 0;
    list-style: none;
}
.lx-sheet {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    aspect-ratio: 3 / 4;
    padding: 1.1rem 1rem .8rem;
    background: var(--lx-paper-light);
    background-image: var(--lx-noise);
    clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
    filter: drop-shadow(3px 4px 0 rgba(0, 0, 0, .28));
    transition: transform .2s ease;
}
.lx-sheet::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 26px;
    height: 26px;
    background: linear-gradient(225deg, transparent 0 50%, #CFC9B9 50% 100%);
}
.lx-sheet:nth-child(1) { transform: rotate(-4deg); }
.lx-sheet:nth-child(2) { transform: rotate(-2deg) translateY(4px); }
.lx-sheet:nth-child(3) { transform: rotate(-3deg); }
.lx-sheet:nth-child(4) { transform: rotate(2deg) translateY(2px); }
.lx-sheet:nth-child(5) { transform: rotate(-3deg) translateY(-2px); }
.lx-sheet:nth-child(6) { transform: rotate(-2deg); }
.lx-sheet:hover { transform: rotate(0) translateY(-6px); }
.lx-sheet__lines {
    display: block;
    flex: 1;
    margin: .2rem .3rem .8rem;
    border: 1.5px solid #4A4F52;
    background:
        linear-gradient(#4A4F52, #4A4F52) 12% 14% / 38% 3px no-repeat,
        repeating-linear-gradient(transparent 0 7px, rgba(74, 79, 82, .75) 7px 9px) 12% 32% / 76% 58% no-repeat;
}
.lx-sheet__name {
    display: block;
    font-family: var(--lx-head);
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.15;
    text-align: center;
    color: var(--lx-ink);
    overflow-wrap: anywhere;
}
.lx-docs__stamp {
    display: block;
    width: 100%;
    height: auto;
    transform: rotate(-10deg);
    opacity: .9;
}

/* --- Блок 4: кейс --- */
.lx-case__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1.15fr);
    gap: 2.6rem;
    align-items: start;
}
.lx-chrono {
    position: relative;
    margin: 0;
    padding: 0 1.8rem 0 0;
    list-style: none;
    border-right: 2px solid var(--lx-graphite);
}
.lx-chrono li {
    position: relative;
    display: grid;
    grid-template-columns: 6.3rem minmax(0, 1fr);
    gap: 1.2rem;
    padding: .55rem 0;
    line-height: 1.3;
}
.lx-chrono li::after {
    content: "";
    position: absolute;
    left: 6.85rem;
    top: .55rem;
    bottom: .55rem;
    width: 1px;
    background: var(--lx-line);
}
.lx-chrono li::before {
    content: "";
    position: absolute;
    left: calc(6.85rem - 4px);
    top: 1.05rem;
    width: 9px;
    height: 9px;
    background: var(--lx-red);
    z-index: 1;
}
.lx-chrono time {
    font-size: 1.08rem;
    color: var(--lx-muted);
}
.lx-chrono span { color: var(--lx-graphite); }
.lx-case__story { min-width: 0; }
.lx-case__quote {
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
}
.lx-case__quote p {
    margin: 0;
    font-family: var(--lx-head);
    font-weight: 700;
    font-size: clamp(1.5rem, 1rem + 1.2vw, 2.1rem);
    line-height: 1.15;
    color: var(--lx-graphite);
}
.lx-case__story > p {
    color: var(--lx-muted);
    font-size: 1.08rem;
}
.lx-case__story .lx-stampbtn { margin-top: .4rem; }
.lx-case__fig {
    position: relative;
    margin: 0;
    padding-top: 1.4rem;
    min-width: 0;
}
.lx-case__fig img {
    display: block;
    width: 82%;
    height: auto;
    aspect-ratio: 642 / 556;
    object-fit: contain;
    border-bottom: 2px solid var(--lx-graphite);
}

/* ===== Внутренние страницы ===== */
.lx-page { padding: 1.6rem 0 4rem; }
.lx-crumbs {
    margin: 0 0 1.8rem;
    padding: .55rem .9rem;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--lx-muted);
    background: var(--lx-paper-light);
    border: 1px solid var(--lx-line);
    border-left: 4px solid var(--lx-red);
}
.lx-crumbs a { color: var(--lx-graphite); text-decoration-thickness: 1px; }
.lx-crumbs__sep { margin: 0 .3rem; color: var(--lx-red); }

.lx-layout--side {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    align-items: start;
}
.lx-layout--single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}
.content-area { min-width: 0; }

.lx-pagehead { margin-bottom: 2rem; }
.lx-pagehead .lx-title { margin-bottom: .8rem; }
.lx-pagehead__intro { color: var(--lx-muted); }
.lx-pagehead__search { margin-top: 1rem; max-width: 560px; }

/* Документ (запись / страница) */
.lx-doc {
    position: relative;
    padding: 2.4rem 2.6rem 2.6rem;
    background: var(--lx-paper-light);
    background-image: var(--lx-noise);
    border: 2px solid var(--lx-line);
    outline: 1px solid var(--lx-line);
    outline-offset: -9px;
    clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%);
}
.lx-doc::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(225deg, transparent 0 48%, var(--lx-line) 48% 52%, var(--lx-paper-deep) 52% 100%);
}
.lx-doc__head { margin-bottom: 1.6rem; }
.lx-doc__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.2rem;
    margin-bottom: .8rem;
    font-size: 1rem;
    color: var(--lx-muted);
}
.lx-doc__cats { display: flex; flex-wrap: wrap; gap: .4rem; }
.lx-doc__cats a {
    padding: .05rem .5rem;
    font-family: var(--lx-head);
    font-weight: 500;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--lx-red);
    text-decoration: none;
    border: 1.5px solid var(--lx-red);
}
.lx-doc__cats a:hover { color: var(--lx-paper-light); background: var(--lx-red); }
.lx-doc__title {
    margin: 0;
    font-size: clamp(1.9rem, 1.2rem + 2vw, 2.9rem);
    line-height: 1.08;
    text-transform: uppercase;
    color: var(--lx-graphite);
}
.lx-doc__thumb { margin: 0 0 1.8rem; }
.lx-doc__thumb img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--lx-line);
}
.lx-doc__tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .9rem;
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 2px dashed var(--lx-line);
}
.lx-doc__tags a { color: var(--lx-muted); font-size: 1rem; }

/* Текст записи */
.lx-prose { font-size: 1.15rem; line-height: 1.65; }
.lx-prose > *:first-child { margin-top: 0; }
.lx-prose h2 { font-size: 1.85rem; text-transform: uppercase; color: var(--lx-graphite); }
.lx-prose h3 { font-size: 1.45rem; color: var(--lx-graphite); }
.lx-prose h4 { font-size: 1.2rem; }
.lx-prose h2::before {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    margin-bottom: .6rem;
    background: var(--lx-red);
}
.lx-prose ul,
.lx-prose ol { margin: 0 0 1.2em; padding-left: 1.6em; }
.lx-prose li { margin-bottom: .35em; }
.lx-prose ul li::marker { color: var(--lx-red); }
.lx-prose ol li::marker { color: var(--lx-red); font-family: var(--lx-head); font-weight: 700; }
.lx-prose blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.6rem;
    font-size: 1.25rem;
    color: var(--lx-graphite);
    background: var(--lx-paper-deep);
    border-left: 5px solid var(--lx-red);
}
.lx-prose blockquote p:last-child { margin-bottom: 0; }
.lx-prose blockquote cite { display: block; margin-top: .6rem; font-size: 1rem; font-style: normal; color: var(--lx-muted); }
.lx-prose img { margin: 1.4em 0; border: 1px solid var(--lx-line); }
.lx-prose figure { margin: 1.6em 0; }
.lx-prose figcaption { font-size: .98rem; color: var(--lx-muted); }
.lx-prose table {
    width: 100%;
    margin: 1.4em 0;
    border-collapse: collapse;
    border: 2px solid var(--lx-graphite);
    font-size: 1.05rem;
}
.lx-prose th,
.lx-prose td {
    padding: .55rem .75rem;
    border: 1px solid var(--lx-line);
    text-align: left;
    vertical-align: top;
}
.lx-prose th {
    font-family: var(--lx-head);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--lx-on-dark);
    background: var(--lx-graphite);
}
.lx-prose tr:nth-child(even) td { background: rgba(185, 178, 160, .18); }
.lx-prose .wp-block-table { overflow-x: auto; }
.lx-prose pre {
    overflow-x: auto;
    padding: 1rem 1.2rem;
    background: var(--lx-graphite);
    color: var(--lx-on-dark);
    font-size: .95rem;
}
.lx-prose code { font-size: .95em; }
.lx-prose hr { margin: 2em 0; border: 0; border-top: 2px dashed var(--lx-line); }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: .95rem; color: var(--lx-muted); }

/* ===== Пагинация ===== */
.lx-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-top: 2.6rem;
}
.lx-pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 .8rem;
    font-family: var(--lx-head);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--lx-graphite);
    text-decoration: none;
    background: var(--lx-paper-light);
    border: 2px solid var(--lx-graphite);
    transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.lx-pager a.page-numbers:hover {
    color: var(--lx-paper-light);
    background: var(--lx-red);
    border-color: var(--lx-red);
    transform: translate(-2px, -2px);
}
.lx-pager .page-numbers.current {
    color: var(--lx-paper-light);
    background: var(--lx-graphite);
    box-shadow: 3px 3px 0 var(--lx-red);
}
.lx-pager .page-numbers.dots {
    min-width: auto;
    padding: 0 .3rem;
    background: none;
    border: 0;
}
.lx-pager--inner { margin-top: 1.4rem; font-family: var(--lx-head); }
.lx-pager--inner > span,
.lx-pager--inner > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 2.2rem;
    border: 2px solid var(--lx-graphite);
    text-decoration: none;
}

/* ===== Сайдбар ===== */
.lx-side {
    min-width: 0;
    padding: 1.6rem 1.5rem;
    background: var(--lx-paper-deep);
    background-image: var(--lx-noise);
    border: 2px solid var(--lx-graphite);
    border-top: 6px solid var(--lx-red);
    color: var(--lx-ink);
}
.lx-side .lx-widget + .lx-widget {
    margin-top: 1.8rem;
    padding-top: 1.6rem;
    border-top: 2px dashed var(--lx-line);
}
.lx-side .lx-widget__title {
    margin: 0 0 1rem;
    font-size: 1.3rem;
    text-transform: uppercase;
    color: var(--lx-graphite);
}
.lx-side ul { margin: 0; padding: 0; list-style: none; }
.lx-side li {
    position: relative;
    padding: .5rem 0 .5rem 1.2rem;
    border-bottom: 1px solid rgba(140, 133, 116, .45);
    line-height: 1.35;
    color: var(--lx-ink);
}
.lx-side li:last-child { border-bottom: 0; }
.lx-side li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    width: 7px;
    height: 7px;
    background: var(--lx-red);
}
.lx-side a { color: var(--lx-ink); text-decoration-thickness: 1px; }
.lx-side a:hover { color: var(--lx-red); }
.lx-side .post-date { display: block; font-size: .95rem; color: var(--lx-muted); }
.lx-side p { color: var(--lx-ink); }

/* ===== Поиск ===== */
.lx-search__label {
    display: block;
    margin-bottom: .4rem;
    font-family: var(--lx-head);
    font-weight: 500;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--lx-graphite);
}
.lx-search__row { display: flex; gap: .6rem; }
.lx-search__field {
    flex: 1;
    min-width: 0;
    padding: .55rem .8rem;
    font: inherit;
    font-size: 1.05rem;
    color: var(--lx-ink);
    background: var(--lx-paper-light);
    border: 2px solid var(--lx-graphite);
    border-radius: 0;
}
.lx-side .lx-search__row { flex-wrap: wrap; }

/* ===== 404 ===== */
.lx-404 {
    position: relative;
    width: 85%;
    margin: 0 auto;
    padding: 2.6rem 2.6rem 3rem;
    background: var(--lx-paper-light);
    background-image: var(--lx-noise);
    border: 2px solid var(--lx-line);
    outline: 1px solid var(--lx-line);
    outline-offset: -9px;
    overflow: hidden;
}
.lx-404__code {
    margin: 0 0 .2rem;
    font-family: var(--lx-head);
    font-weight: 700;
    font-size: clamp(4.5rem, 3rem + 6vw, 8rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px var(--lx-blue);
}
.lx-404__text { max-width: 620px; color: var(--lx-muted); }
.lx-404__search { max-width: 560px; margin: 1.4rem 0 1.8rem; }

/* ===== Комментарии ===== */
.lx-comments {
    margin-top: 2.6rem;
    padding: 2rem 2.2rem;
    background: var(--lx-paper-light);
    border: 2px solid var(--lx-line);
}
.lx-comments__title {
    margin: 0 0 1.4rem;
    font-size: 1.6rem;
    text-transform: uppercase;
    color: var(--lx-graphite);
}
.lx-comments__count {
    display: inline-block;
    min-width: 1.8em;
    padding: 0 .4em;
    font-size: .8em;
    text-align: center;
    color: var(--lx-paper-light);
    background: var(--lx-red);
}
.lx-comments__list,
.lx-comments__list .children { margin: 0; padding: 0; list-style: none; }
.lx-comments__list .children { margin-left: 2rem; }
.lx-comment__body {
    margin-bottom: 1.2rem;
    padding: 1rem 1.2rem;
    background: var(--lx-paper);
    border-left: 4px solid var(--lx-blue);
}
.lx-comment__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem .8rem;
    margin-bottom: .5rem;
}
.lx-comment__avatar { border-radius: 0; }
.lx-comment__author { font-family: var(--lx-head); font-weight: 500; color: var(--lx-graphite); }
.lx-comment__date { font-size: .95rem; color: var(--lx-muted); }
.lx-comment__wait { font-size: .98rem; color: var(--lx-red); }
.lx-comment__text p:last-child { margin-bottom: 0; }
.lx-comment__reply a {
    font-family: var(--lx-head);
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.lx-comments__nav { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0 1.6rem; }
.comment-respond { margin-top: 1.6rem; }
.comment-reply-title {
    margin: 0 0 .8rem;
    font-size: 1.35rem;
    text-transform: uppercase;
    color: var(--lx-graphite);
}
.comment-reply-title small { margin-left: .8rem; font-size: .9rem; }
.lx-form-note { font-size: 1rem; color: var(--lx-muted); }
.lx-req { color: var(--lx-red); }
.comment-form p { margin-bottom: 1rem; }
.comment-form label {
    display: block;
    margin-bottom: .3rem;
    font-family: var(--lx-head);
    font-weight: 500;
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--lx-graphite);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .6rem .8rem;
    font: inherit;
    font-size: 1.05rem;
    color: var(--lx-ink);
    background: #F6F4EE;
    border: 2px solid var(--lx-graphite);
    border-radius: 0;
}
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form-cookies-consent label {
    margin: 0;
    font-family: var(--lx-text);
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
}
.comment-form .form-submit { margin: 0; }

/* ===== Подвал ===== */
.lx-foot {
    padding: 3rem 0 1.8rem;
    color: var(--lx-on-dark);
    background-color: var(--lx-graphite);
    background-image:
        linear-gradient(rgba(62, 107, 140, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(62, 107, 140, .12) 1px, transparent 1px);
    background-size: 24px 24px;
    border-top: 4px solid var(--lx-graphite-deep);
}
.lx-foot__cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.6rem;
}
.lx-foot__col { min-width: 0; color: var(--lx-on-dark-muted); }
.lx-foot .lx-widget + .lx-widget { margin-top: 1.6rem; }
.lx-foot .lx-widget__title {
    margin: 0 0 .7rem;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--lx-on-dark);
}
.lx-foot p,
.lx-foot .textwidget { color: var(--lx-on-dark-muted); font-size: 1.05rem; }
.lx-foot a {
    color: var(--lx-on-dark);
    text-decoration-color: var(--lx-red);
    text-decoration-thickness: 1px;
}
.lx-foot a:hover { color: #fff; }
.lx-foot ul { margin: 0; padding: 0; list-style: none; }
.lx-foot li {
    position: relative;
    padding: .18rem 0 .18rem 1.1rem;
    color: var(--lx-on-dark-muted);
}
.lx-foot li::before {
    content: "›";
    position: absolute;
    left: 0;
    top: .12rem;
    color: var(--lx-red);
}
.lx-foot li a { text-decoration: none; }
.lx-foot li a:hover { text-decoration: underline; text-decoration-color: var(--lx-red); }
.lx-foot .post-date { display: block; font-size: .9rem; color: var(--lx-on-dark-muted); }
.lx-foot__bottom {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 2.6rem;
    align-items: end;
    margin-top: 2.4rem;
}
.lx-foot__rule { display: block; height: 1px; background: rgba(232, 228, 216, .3); align-self: center; }
.lx-foot__copy {
    margin: 0;
    padding-top: .9rem;
    font-size: .95rem;
    line-height: 1.4;
    color: var(--lx-on-dark-muted);
    border-top: 1px solid rgba(232, 228, 216, .3);
}

/* ===== Cookie-баннер ===== */
.lx-cookie {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 1rem 0;
    color: var(--lx-on-dark);
    background: var(--lx-graphite);
    border-top: 4px solid var(--lx-red);
    box-shadow: 0 -6px 18px rgba(0, 0, 0, .25);
}
.lx-cookie__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    width: min(92%, 1240px);
    margin-inline: auto;
    padding: 0 .4rem;
}
.lx-cookie__text { margin: 0; min-width: 0; font-size: 1.02rem; color: var(--lx-on-dark); }
.lx-cookie .lx-stampbtn { flex: 0 0 auto; }

/* ===== Адаптив ===== */
@media (max-width: 1180px) {
    .lx-menu a { padding: .55rem .75rem; font-size: .98rem; }
    .lx-brand__text { max-width: 440px; }
    .lx-steps { gap: 2.6rem; }
    .lx-step + .lx-step::before { left: -2.2rem; width: 1.7rem; }
    .lx-step__text { font-size: 1.02rem; }
    .lx-sheets { gap: 1.4rem; }
    .lx-docs__row { grid-template-columns: minmax(0, 1fr) 170px; }
    .lx-seal--checked { width: 140px; height: 140px; font-size: 1.3rem; }
}

@media (max-width: 960px) {
    .lx-head__row { flex-wrap: wrap; }
    .lx-brand { flex: 1 1 0; }
    .lx-navtoggle { display: inline-flex; }
    .lx-nav {
        display: none;
        flex: 1 1 100%;
    }
    .lx-nav.is-open { display: block; }
    .lx-menu {
        flex-direction: column;
        border-top: 1px solid rgba(232, 228, 216, .25);
    }
    .lx-menu li + li::before { display: none; }
    .lx-menu a {
        padding: .8rem .2rem;
        border-bottom: 1px solid rgba(232, 228, 216, .15);
    }

    .lx-scheme__grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .lx-floors {
        display: flex;
        flex-wrap: wrap;
        box-shadow: none;
    }
    .lx-floors li {
        flex: 1 1 auto;
        border-top: 0;
        border-left: 1px solid var(--lx-line);
        padding: .35rem .5rem;
        font-size: .9rem;
    }
    .lx-floors li:first-child { border-left: 0; }
    .lx-floors .lx-floors__head { border-bottom: 0; }
    .lx-scheme__stage { aspect-ratio: 1290 / 1064; }
    .lx-scheme__img { left: 0; width: 100%; }
    .lx-callout { display: none; }
    .lx-legend { grid-template-columns: minmax(0, 1fr); }
    .lx-seal--checked { display: none; }

    .lx-steps { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; max-width: 460px; }
    .lx-step { flex-direction: row; justify-content: flex-start; gap: 1rem; min-height: 0; text-align: left; }
    .lx-step + .lx-step::before {
        top: -1.75rem;
        left: 2rem;
        width: 1.4rem;
        height: 14px;
        transform: rotate(90deg);
    }

    .lx-cards--three,
    .lx-cards--three:has(> .lx-card:nth-child(4)) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

    .lx-docs__row { grid-template-columns: minmax(0, 1fr); }
    .lx-sheets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lx-docs__stamp { width: 160px; justify-self: end; }

    .lx-case__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .lx-case__story { grid-column: 1 / -1; grid-row: 1; }

    .lx-layout--side { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .lx-layout--single { width: 100%; }
    .lx-404 { width: 100%; }

    .lx-foot__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .lx-foot__col--3 { grid-column: 1 / -1; }
    .lx-foot__bottom { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .lx-foot__rule { display: none; }
}

@media (max-width: 600px) {
    body { font-size: 1.06rem; }
    .lx-shell--front { width: 92%; }
    .lx-head__row { padding: 1rem 0; gap: 1rem; }
    .lx-brand { gap: .9rem; flex: 1 1 100%; }
    .lx-brand__mark svg,
    .lx-brand__mark img { width: 60px; height: 60px; }
    .lx-brand__name { font-size: .88rem; }
    .lx-brand__desc { font-size: .9rem; }
    .lx-band { padding: 2.4rem 0 2.6rem; }
    .lx-scheme::after { width: 44px; height: 44px; }
    .lx-sheets { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
    .lx-sheet { padding: .7rem .5rem .5rem; }
    .lx-sheet__name { font-size: .82rem; }
    .lx-sheet__lines { margin: .1rem .1rem .5rem; }
    .lx-case__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .lx-chrono { padding-right: 0; border-right: 0; }
    .lx-case__fig img { width: 100%; }
    .lx-seal--closed { right: 0; font-size: 1.2rem; }
    .lx-doc { padding: 1.6rem 1.3rem 1.8rem; outline-offset: -6px; }
    .lx-comments { padding: 1.4rem 1.2rem; }
    .lx-comments__list .children { margin-left: 1rem; }
    .lx-404 { padding: 1.8rem 1.3rem 2rem; }
    .lx-foot__cols { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .lx-cookie__inner { flex-direction: column; align-items: stretch; padding: 0 .2rem; }
    .lx-search__row { flex-wrap: wrap; }
    .lx-flood__caption { font-size: 1.05rem; gap: .8rem; }
}
