/* ==========================================================================
   МосЭкоСила System v3 — components.css
   Библиотека переиспользуемых компонентов. Подключается после страничного
   слоя (home.css / interior.css) и перед system-v3.css.

   Правило: компонент живёт только здесь и меняется только здесь.
   Страничные файлы не переопределяют .button, .text-link, шапку, подвал,
   поля форм, FAQ и диалоги.

   Содержание:
     1.  Кнопки ................ .button
     2.  Текстовые ссылки ...... .text-link
     3.  Шапка ................. .ds-header, .ds-brand, .ds-nav, .ds-menu
     4.  Мобильное меню ........ .ds-mobile-drawer
     5.  Подвал ................ .ds-footer
     6.  Поля форм ............. .input, .form-status, .radio-group
     7.  Панель заявки ......... .lead-panel
     8.  Диалоги ............... dialog, .lead-dialog
     9.  Cookie-баннер ......... .cookie-preview
     10. Карточки .............. .card, .cards
     11. FAQ (fallback) ........ .faq
     12. Таблицы ............... .price-table, .table-wrap
     13. Фильтры и поиск ....... .filters, .alphabet, .search-form
     14. Заголовок секции ...... .section-head
     15. Демо компонентов ...... .review-note, .state-buttons
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Кнопки

   .button          — основное действие (фирменный зелёный)
   .button.secondary — вторичное действие
   Состояния hover/active/focus-visible/disabled определены централизованно;
   ui.css добавляет плавные переходы последним слоем.
   -------------------------------------------------------------------------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    min-height: 4.8rem;
    padding: 1.3rem 2.2rem;
    border: 0.1rem solid var(--green);
    border-radius: var(--radius-control);
    background: var(--green);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s, border-color 0.18s, box-shadow 0.18s;
    box-shadow: none;
    transform: none
}

.button:hover:not(:disabled) {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
    transform: none;
    box-shadow: 0 0.3rem 1rem rgb(36 91 13 / 0.12)
}

.button:active:not(:disabled) {
    background: var(--green-deep);
    border-color: var(--green-deep);
    box-shadow: none
}

.button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    box-shadow: none
}

.button.secondary {
    background: #fff;
    color: var(--green);
    border-color: #b7c6ae
}

.button.secondary:hover:not(:disabled) {
    background: var(--pale);
    color: var(--green-dark);
    border-color: var(--green)
}

/* --------------------------------------------------------------------------
   2. Текстовые ссылки

   Навигационная или контекстная ссылка с маркером направления.
   Стрелка ↗ для tel:/mailto: добавляется автоматически, вручную символы
   стрелок в текст не вставляются. Hover/focus-состояния и маркер
   внутри [data-ui-card] докручивает ui.css.
   -------------------------------------------------------------------------- */

.text-link {
    display: inline-flex;
    width: fit-content;
    min-height: 4.4rem;
    align-items: center;
    justify-content: flex-start;
    gap: 1.2rem;
    color: var(--ink);
    font-size: 1.4rem;
    line-height: 1.35;
    font-weight: 600;
    text-decoration: none
}

.text-link:hover {
    color: var(--green-dark);
    text-decoration: none
}

.text-link:active {
    color: var(--green-deep)
}

:is(a.text-link[href^="tel:"], a.text-link[href^="mailto:"])::after {
    content: "↗\FE0E"
}

[data-ui-card] .text-link {
    color: var(--green)
}

/* Текстовая ссылка в ряду действий — капсула с рамкой */
.actions>.text-link {
    gap: 1rem;
    padding: 0.4rem 0.4rem 0.4rem 1.4rem;
    border: 0.1rem solid var(--line);
    border-radius: 10rem;
    background: #fff
}

.actions>.text-link:hover,
.actions>.text-link:focus-visible {
    border-color: #b7c6ae;
    background: var(--pale)
}

/* --------------------------------------------------------------------------
   3. Шапка

   Эталонная разметка — components/header.html. Отдельные варианты шапки
   для страниц не создаются. Полная навигация включается с 981px,
   ниже — кнопка .ds-menu открывает мобильное меню (см. следующий раздел).
   -------------------------------------------------------------------------- */

.ds-header {
    position: sticky;
    top: 0;
    z-index: 30;
    height: auto;
    background: #fff;
    border-bottom: 0.1rem solid var(--line)
}

.ds-header>.ds-shell {
    display: flex;
    align-items: center;
    gap: 2.4rem;
    min-height: 8.8rem;
    position: relative
}

.ds-brand {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 2.3rem;
    letter-spacing: -0.07rem;
    line-height: 1.25
}

.ds-brand svg {
    width: 3rem;
    height: 3.6rem;
    color: var(--green);
    flex-shrink: 0
}

.ds-brand small {
    display: block;
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0;
    margin-top: 0.4rem;
    color: var(--muted)
}

.ds-header .ds-nav {
    display: flex;
    gap: 2.2rem;
    position: static;
    padding: 0;
    margin: 0 0 0 auto;
    width: auto;
    box-shadow: none;
    border: 0;
    max-height: none;
    font-size: 1.3rem;
    align-items: center;
    background: #fff
}

.ds-header .ds-nav a {
    font-size: 1.3rem;
    white-space: nowrap;
    padding: 1.2rem 0;
    color: var(--ink);
    text-decoration: none
}

.ds-header .ds-nav a:hover {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 0.7rem
}

.ds-phone {
    font-size: 1.6rem;
    white-space: nowrap;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none
}

.ds-header .ds-header-cta {
    font-size: 1.2rem;
    padding: 1.2rem 1.6rem;
    min-height: 4.4rem;
    white-space: nowrap
}

.ds-menu {
    display: none;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 0.1rem solid var(--line);
    border-radius: var(--radius-control);
    width: 4.4rem;
    height: 4.4rem;
    color: var(--ink);
    font-size: 2rem;
    flex-shrink: 0;
    cursor: pointer
}

.ds-menu svg {
    width: 2.2rem;
    height: 2.2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round
}

/* --------------------------------------------------------------------------
   4. Мобильное меню

   Drawer собирается system-v3.js из основной навигации.
   -------------------------------------------------------------------------- */

body.mobile-nav-open {
    overflow: hidden
}

.ds-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: var(--ink)
}

.ds-mobile-drawer::backdrop {
    background: rgb(18 29 16 / 0.52);
    backdrop-filter: blur(0.2rem);
    animation: ds-drawer-backdrop-in 0.34s ease-out both
}

.ds-mobile-drawer-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transform: translate(-100%);
    border-left: 0.1rem solid var(--line);
    background: #fff;
    box-shadow: -1.6rem 0 4.8rem rgb(22 43 18 / 0.18);
    animation: ds-drawer-panel-in 0.48s var(--ease-brand) both
}

.ds-mobile-drawer.is-closing .ds-mobile-drawer-panel {
    animation: ds-drawer-panel-out 0.22s ease-in both
}

.ds-mobile-drawer.is-closing::backdrop {
    animation: ds-drawer-backdrop-out 0.2s ease-in both
}

.ds-mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 8rem;
    padding: 1.6rem 2rem;
    border-bottom: 0.1rem solid var(--line)
}

.ds-mobile-drawer-head .ds-brand {
    font-size: 2rem
}

.ds-mobile-drawer-head .ds-brand svg {
    width: 2.6rem;
    height: 3.2rem
}

.ds-mobile-drawer-close {
    display: grid;
    flex: 0 0 4.4rem;
    width: 4.4rem;
    height: 4.4rem;
    padding: 0;
    place-items: center;
    border: 0.1rem solid var(--line);
    border-radius: var(--radius-control);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease
}

.ds-mobile-drawer-close svg {
    width: 2.2rem;
    height: 2.2rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round
}

.ds-mobile-drawer-close:hover,
.ds-mobile-drawer-close:focus-visible {
    border-color: #9dbd8d;
    background: var(--pale);
    color: var(--green)
}

.ds-mobile-drawer-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.4rem;
    min-height: 0;
    margin: 0;
    padding: 1.8rem 2rem;
    overflow-y: auto;
    overscroll-behavior: contain
}

.ds-mobile-drawer-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 5.8rem;
    padding: 1.2rem 1.4rem;
    border-radius: var(--radius-control);
    color: var(--ink);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none
}

.ds-mobile-drawer-nav a::after {
    content: "→\FE0E";
    flex: 0 0 auto;
    color: var(--green);
    font-size: 1.8rem;
    transition: transform 0.18s ease
}

.ds-mobile-drawer-nav a:hover,
.ds-mobile-drawer-nav a:focus-visible {
    background: #f4f8f1;
    color: var(--green)
}

.ds-mobile-drawer-nav a:hover::after,
.ds-mobile-drawer-nav a:focus-visible::after {
    transform: translateX(0.3rem)
}

.ds-mobile-drawer-nav a[aria-current="page"] {
    background: var(--pale);
    color: var(--green);
    font-weight: 600
}

.ds-mobile-drawer-foot {
    display: grid;
    gap: 1.2rem;
    padding: 2rem;
    border-top: 0.1rem solid var(--line);
    background: #f8faf6
}

.ds-mobile-drawer-foot .ds-phone {
    font-size: 1.6rem
}

.ds-mobile-drawer-cta {
    width: 100%
}


@keyframes ds-drawer-panel-in {
    from {
        transform: translateX(-100%)
    }

    to {
        transform: translateX(0)
    }
}

@keyframes ds-drawer-panel-out {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(100%)
    }
}

@keyframes ds-drawer-backdrop-in {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes ds-drawer-backdrop-out {
    from {
        opacity: 1
    }

    to {
        opacity: 0
    }
}

/* --------------------------------------------------------------------------
   5. Подвал

   Эталонная разметка — components/footer.html.
   -------------------------------------------------------------------------- */

.ds-footer {
    padding: 5.6rem 0 2.4rem;
    background: #f8faf6;
    border-top: 0.1rem solid var(--line);
    margin-top: 6.4rem
}

.ds-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 4rem
}

.ds-footer nav {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 1.4rem;
    font-size: 1.4rem
}

.ds-footer p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-top: 2.4rem;
    color: var(--muted)
}

.ds-footer nav a {
    color: var(--muted);
    text-decoration: none
}

.ds-footer a:hover {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 0.4rem
}

.ds-footer .text-link {
    min-height: 4rem
}

.ds-footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 0.1rem solid var(--line);
    padding-top: 2.4rem;
    margin-top: 4rem;
    font-size: 1.2rem;
    color: var(--muted)
}

/* --------------------------------------------------------------------------
   6. Поля форм
   -------------------------------------------------------------------------- */

label {
    display: block;
    font-size: 1.4rem;
    font-weight: 600
}

.input {
    display: block;
    min-height: 5.2rem;
    width: 100%;
    border: 0.1rem solid var(--line);
    background: #fff;
    border-radius: var(--radius-control);
    padding: 1.2rem 1.6rem;
    margin-top: 1.2rem;
    color: var(--ink);
    outline: none !important;
}

.input:hover {
    border-color: var(--green)
}

.input[aria-invalid="true"] {
    border-color: var(--error)
}

/* Нативный select до усиления компонентом ui-select (app.js) */
label select {
    display: block;
    min-height: 5.2rem;
    width: 100%;
    border: 0.1rem solid var(--line);
    background: #fff;
    border-radius: var(--radius-control);
    padding: 1.2rem 1.6rem;
    color: var(--ink)
}

.form-status {
    margin-top: 1.6rem;
    font-size: 1.4rem
}

.form-status[data-state="error"] {
    color: var(--error)
}

.form-status[data-state="success"] {
    color: var(--green)
}

/* Согласие на обработку персональных данных */
.consent {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    margin-top: 1.6rem;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--muted);
    cursor: pointer
}

.consent input[type="checkbox"] {
    appearance: none;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    margin: 0.1rem 0 0;
    border: 0.1rem solid var(--line);
    border-radius: 0.4rem;
    background: #fff;
    cursor: pointer;
    display: grid;
    place-content: center;
    transition: border-color .28s var(--ease-brand, ease), background-color .28s var(--ease-brand, ease)
}

.consent input[type="checkbox"]:hover {
    border-color: var(--green)
}

.consent input[type="checkbox"]:focus-visible {
    outline: 0.3rem solid var(--color-brand-400, #6aa84f);
    outline-offset: 0.2rem
}

.consent input[type="checkbox"]:checked {
    border-color: var(--green);
    background: var(--green)
}

.consent input[type="checkbox"]:checked::before {
    content: "";
    width: 1rem;
    height: 0.6rem;
    border-left: 0.2rem solid #fff;
    border-bottom: 0.2rem solid #fff;
    transform: rotate(-45deg) translate(0.1rem, -0.1rem)
}

.consent a {
    color: var(--ink);
    text-underline-offset: 0.3rem
}

.consent a:hover {
    color: var(--green)
}

.consent:has(input[aria-invalid="true"]) {
    color: var(--error)
}

.consent:has(input[aria-invalid="true"]) input[type="checkbox"] {
    border-color: var(--error)
}

/* Группа радиокнопок-чипсов (состояния checked/focus докручивает ui.css) */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem
}

.radio-group label {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    font-size: 1.2rem;
    background: #fff;
    border: 0.1rem solid var(--line);
    border-radius: 0.5rem;
    padding: 0.9rem 1.1rem;
    cursor: pointer;
    min-height: 4.2rem
}

.radio-group label:has(input:checked) {
    background: #eef5e7;
    border-color: #88ac6e;
    color: #365b20
}

.radio-group input {
    accent-color: var(--green);
    margin: 0;
    width: 1.5rem;
    height: 1.5rem
}

/* --------------------------------------------------------------------------
   7. Панель заявки

   Блок с формой в конце страниц. Всегда внутри
   <section class="section"><div class="container">.
   -------------------------------------------------------------------------- */

.lead-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4.8rem;
    padding: 4rem;
    border: 0.1rem solid var(--line);
    background: var(--paper);
    border-radius: 1.6rem;
    align-items: flex-start
}

.lead-panel h2 {
    margin-bottom: 1.6rem;
    font-size: 3rem
}

.lead-panel p {
    font-size: 1.5rem
}

.lead-panel label {
    font-size: 1.5rem
}

.lead-panel .input {
    margin-top: 0.8rem
}

.lead-panel .button {
    margin-top: 1.6rem;
    width: 100%
}

.lead-panel small {
    font-size: 1.2rem;
    display: block;
    color: var(--muted);
    margin-top: 1.2rem
}

/* --------------------------------------------------------------------------
   8. Диалоги

   Базовый dialog + панель заявки .lead-dialog. Кнопка закрытия — .close.
   -------------------------------------------------------------------------- */

dialog {
    border: 0.1rem solid var(--line);
    padding: 3.2rem;
    color: var(--ink);
    width: 100%;
    max-height: 90dvh;
    box-shadow: 0 1.6rem 4.2rem rgb(29 35 27 / 0.12)
}

dialog::backdrop {
    background: rgb(29 35 27 / 0.53)
}

dialog img {
    max-height: 75dvh;
    margin: auto
}

:is(dialog) :is(.close, .dialog-close) {
    display: block;
    margin: 0 0 1.6rem auto;
    min-height: 4.4rem;
    background: #fff;
    border: 0.1rem solid var(--line);
    border-radius: var(--radius-control);
    padding: 0.8rem 1.6rem;
    color: var(--ink);
    cursor: pointer;
    transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease
}

:is(dialog) :is(.close, .dialog-close):hover {
    color: #fff;
    border-color: var(--green);
    background: var(--green)
}

:is(dialog) :is(.close, .dialog-close):focus-visible {
    outline: 0.2rem solid var(--green-soft);
    outline-offset: 0.3rem
}

.lead-dialog {
    width: min(52rem, calc(100% - 3.2rem));
    border-radius: 2rem
}

.lead-dialog h2 {
    font-size: 3.2rem;
    padding: 0
}

.lead-dialog .eyebrow {
    margin-bottom: 1.6rem
}

.lead-dialog .modal-context {
    color: var(--muted);
    margin: 1.6rem 0 2.4rem
}

.lead-dialog .lead-form>.button {
    width: 100%
}

.lead-dialog .button {
    margin-top: 1.6rem
}

.lead-dialog .caption {
    font-size: 1.2rem;
    color: var(--muted);
    line-height: 1.5;
    margin-top: 1.6rem
}

.lead-dialog-success:not([hidden]) {
    display: flex;
    min-height: 28rem;
    padding: 2.4rem 0 3.2rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.lead-success-mark {
    display: grid;
    width: 6.4rem;
    height: 6.4rem;
    margin-bottom: 2.4rem;
    place-items: center;
    border-radius: 50%;
    background: var(--pale);
    color: var(--green);
    font-size: 3rem;
    font-weight: 700
}

.lead-dialog-success h2 {
    max-width: 10ch;
    font-size: clamp(3.6rem, 7vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.04em
}

.lead-dialog-success p {
    max-width: 38rem;
    margin-top: 2rem;
    color: var(--muted);
    font-size: 1.8rem;
    line-height: 1.5
}

/* --------------------------------------------------------------------------
   9. Cookie-баннер

   Демонстрационный баннер на странице components.html.
   -------------------------------------------------------------------------- */

.cookie-preview {
    position: fixed;
    z-index: 30;
    bottom: 2.4rem;
    left: 2.4rem;
    width: min(52rem, calc(100% - 4.8rem));
    padding: 3.2rem;
    border: 0.1rem solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 1.6rem 4.2rem rgb(29 35 27 / 0.12)
}

.cookie-preview h2 {
    font-size: 2.4rem
}

.cookie-preview p {
    font-size: 1.4rem;
    margin-top: 1.6rem
}

.cookie-preview .caption {
    font-size: 1.2rem
}

.cookie-preview .actions {
    margin-top: 2.4rem
}

.cookie-preview .button {
    font-size: 1.3rem;
    padding-inline: 1.6rem
}

/* --------------------------------------------------------------------------
   10. Карточки

   Простая карточка выбора/перехода. Интерактивная карточка дополнительно
   получает data-ui-card, стрелка внутри — data-ui-arrow (состояния в ui.css).
   -------------------------------------------------------------------------- */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
    margin-top: 2.6rem;
}

.card {
    border: 0.1rem solid var(--line);
    border-radius: var(--radius);
    padding: 2.8rem;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 1.6rem;
    background: #fff;
    min-width: 0
}

.card:hover {
    border-color: var(--green)
}

.card h3 {
    font-size: 2.1rem
}

.card p {
    color: var(--muted);
    font-size: 1.5rem
}

.card .number {
    font-size: 1.4rem;
    color: var(--green)
}

.card .text-link {
    margin-top: auto
}

.card .v-icon,
.v-card-icon {
    width: 4rem;
    height: 4rem;
    display: block
}

/* --------------------------------------------------------------------------
   11. FAQ (fallback)

   Исходная семантическая разметка details/summary. При загрузке app.js
   преобразует её в компонент .ui-accordion (стили в ui.css).
   -------------------------------------------------------------------------- */

.faq details {
    border-bottom: 0.1rem solid var(--line)
}

.faq details:first-child {
    border-top: 0.1rem solid var(--line)
}

.faq summary {
    list-style: none;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    gap: 2.5rem;
    padding: 2rem 0
}

.faq summary::-webkit-details-marker {
    display: none
}

.faq summary::after {
    content: "+";
    font-weight: 400;
    font-size: 2.3rem;
    line-height: 1;
    color: var(--green);
    flex-shrink: 0
}

.faq details[open] summary::after {
    content: "−"
}

.faq details p {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--muted);
    padding: 0 3rem 2.2rem 0
}

/* --------------------------------------------------------------------------
   12. Таблицы
   -------------------------------------------------------------------------- */

.table-wrap {
    overflow: auto
}

.table-wrap:focus-visible {
    outline-offset: 0
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2.4rem
}

.price-table th {
    text-align: left;
    color: var(--muted);
    font-weight: 500;
    font-size: 1.3rem;
    background: var(--paper)
}

.price-table th,
.price-table td {
    padding: 2rem 1.6rem;
    border-bottom: 0.1rem solid var(--line);
    vertical-align: top
}

.price-table td:first-child {
    width: 48%
}

.price-table td:not(:first-child) {
    font-variant-numeric: tabular-nums
}

/* --------------------------------------------------------------------------
   13. Фильтры и поиск (каталог видов бизнеса)
   -------------------------------------------------------------------------- */

.filters {
    display: flex;
    gap: 1.6rem;
    align-items: end;
    flex-wrap: wrap;
    margin: 3.2rem 0 2.4rem
}

.filters label {
    min-width: 20rem
}

.filters select {
    display: block;
    margin-top: 0.8rem;
    width: 100%
}

.search-form {
    display: flex;
    gap: 1.2rem;
    margin-top: 3.2rem;
    max-width: 82rem
}

.search-form input {
    flex: 1;
    min-width: 0
}

.alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 3.2rem
}

.alphabet button {
    background: #fff;
    border: 0.1rem solid var(--line);
    border-radius: var(--radius-control);
    min-width: 4.4rem;
    min-height: 4.4rem
}

.alphabet button[aria-pressed="true"] {
    background: var(--green);
    color: #fff
}

.empty {
    padding: 4.8rem 0;
    max-width: 64rem
}

.empty h2 {
    margin-bottom: 1.6rem
}

/* --------------------------------------------------------------------------
   14. Заголовок секции
   -------------------------------------------------------------------------- */

.section-head {
    display: flex;
    gap: 1.1rem;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 3.2rem
}

.section-head p {
    color: var(--muted);
    max-width: 40rem;
    font-size: 1.5rem
}

/* --------------------------------------------------------------------------
   15. Демо компонентов (components.html)
   -------------------------------------------------------------------------- */

#components .section {
    padding: 6.4rem 0
}

.review-note {
    background: var(--paper);
    border-left: 0.3rem solid var(--green);
    padding: 2.4rem 3.2rem;
    color: var(--muted);
    font-size: 1.5rem
}

.state-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem
}

.state-buttons .button {
    margin-top: 1.6rem
}

#state-form {
    padding: 3.2rem;
    border: 0.1rem solid var(--line);
    border-radius: var(--radius)
}

#state-form .input {
    margin-top: 0.8rem
}

#state-form .button {
    margin-top: 1.6rem
}

#state-form .caption {
    margin-top: 1.6rem
}

#demo-outcome {
    margin-top: 0.8rem
}

/* --------------------------------------------------------------------------
   Адаптив компонентов
   -------------------------------------------------------------------------- */

@media (max-width: 1199px) {
    .ds-header .ds-header-cta {
        display: none
    }
}

@media (max-width: 1023px) {
    .lead-panel {
        gap: 3.2rem;
        padding: 3.2rem
    }
}

@media (max-width: 980px) {
    .ds-header>.ds-shell {
        min-height: 7.6rem;
        flex-wrap: nowrap;
        gap: 1.6rem
    }

    .ds-header .ds-nav {
        display: none;
        width: 100%;
        order: 5;
        flex-direction: column;
        align-items: stretch;
        padding: 0.8rem 0 2rem;
        margin: 0;
        gap: 0
    }

    .ds-header .ds-nav.is-open {
        display: flex
    }

    .ds-header .ds-nav a {
        padding: 1.5rem 0;
        font-size: 1.6rem
    }

    .ds-menu {
        display: flex;
        margin-left: 0
    }

    .ds-header .ds-phone {
        margin-left: auto
    }

    .ds-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3.2rem
    }
}

@media (max-width: 767px) {
    .section-head {
        display: block
    }

    .section-head p {
        margin-top: 1.6rem
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 1.6rem
    }

    .card {
        padding: 2.4rem;
        gap: 1.2rem
    }

    .lead-panel {
        grid-template-columns: 1fr;
        padding: 2.4rem;
        gap: 2.8rem
    }

    .lead-dialog {
        padding: 2.4rem
    }

    .lead-dialog h2 {
        font-size: 2.8rem
    }

    .cookie-preview {
        bottom: 1.6rem;
        left: 1.6rem;
        width: calc(100% - 3.2rem);
        padding: 2.4rem
    }

    .cookie-preview .actions {
        gap: 0.8rem
    }

    .cookie-preview .button {
        width: 100%
    }

    .filters {
        display: block
    }

    .filters label {
        margin-bottom: 1.6rem
    }

    .search-form {
        flex-direction: column
    }

    .faq summary {
        font-size: 1.4rem;
        padding: 1.9rem 0
    }

    .faq details p {
        font-size: 1.3rem
    }

    .table-wrap {
        overflow: visible
    }

    .table-wrap .price-table {
        min-width: 0;
        display: block
    }

    .price-table thead {
        position: absolute;
        width: 0.1rem;
        height: 0.1rem;
        overflow: hidden;
        clip-path: inset(50%)
    }

    .price-table tbody {
        display: block
    }

    .price-table tr {
        display: block;
        border-bottom: 0.1rem solid var(--line);
        padding: 2rem 0
    }

    .price-table td {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 1.6rem;
        border: 0;
        padding: 0.8rem 0;
        overflow-wrap: normal
    }

    .price-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 1.3rem;
        font-weight: 400
    }

    .price-table td:first-child {
        display: block;
        width: auto;
        font-size: 1.6rem;
        font-weight: 600;
        padding: 0 0 1.2rem
    }

    .price-table td:first-child::before {
        display: none
    }

    .price-table td:not(:first-child) {
        font-size: 1.4rem
    }

    .review-note {
        padding: 2.4rem
    }

    #state-form {
        padding: 2.4rem
    }

    .ds-footer {
        padding-bottom: 9rem
    }

    .ds-footer-grid>div {
        grid-column: 1 / -1
    }

    .ds-footer-bottom {
        flex-direction: column;
        gap: 1.2rem
    }
}

@media (max-width: 600px) {
    .ds-header .ds-phone {
        display: none
    }

    .ds-menu {
        margin-left: auto
    }

    .ds-brand {
        font-size: 2.1rem
    }

    .ds-brand small {
        font-size: 0.8rem
    }
}