/* ============================================================
   ECVI — global.css
   Каркас страницы (не блоки): HEADER, BREADCRUMBS, HERO, MODAL, FOOTER
   + общие (кросс-блочные) правила.
   Перемещено 1:1 из монолита blocks.css (разделы 3, 4, 12, 13 и общие правила; монолит удалён).
   База (переменные, .container, .btn, UI-компоненты) — style.css.
   ============================================================ */

/* ============================================================
   HEADER + ПОИСК
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    background-color: var(--color-white);
    transition: box-shadow 0.3s ease;
}

.header--scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.burger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-dark);
}

.burger-icon path {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header.nav-open .burger-icon path:nth-of-type(1) {
    transform: translateY(5px) rotate(45deg);
}

.header.nav-open .burger-icon path:nth-of-type(2) {
    opacity: 0;
}

.header.nav-open .burger-icon path:nth-of-type(3) {
    transform: translateY(-5px) rotate(-45deg);
}

.logo {
    display: inline-flex;
    transition: opacity 0.25s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: 32px;
}

.nav-list {
    display: flex;
    gap: 24px;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--color-bg-dark);
    text-decoration: none;
    transition: color 0.25s ease;
}

.nav-item > a:hover {
    color: var(--color-accent-orange);
}

.nav-arrow {
    transition: transform 0.3s ease;
}

.nav-item.has-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: var(--color-white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-input);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-item.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 10px 16px;
    font-size: 16px;
    color: var(--color-bg-dark);
    text-decoration: none;
    border-radius: var(--radius-input);
    transition: background 0.2s;
}

.dropdown li a:hover {
    background: var(--color-input-bg);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.icon-btn {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.icon-btn:hover {
    opacity: 0.7;
}

.phone-link {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 18px;
    color: var(--color-bg-dark);
    text-decoration: none;
    transition: color 0.25s ease;
}

.phone-link:hover {
    color: var(--color-accent-orange);
}

/* Поиск в шапке — пилюля выезжает влево от лупы, поверх меню */
.header-search-anchor {
    position: relative;
    display: flex;
}

.header-search {
    position: absolute;
    top: 50%;
    right: -12px;
    width: min(360px, 60vw);
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 56px 0 24px;
    background-color: var(--color-white);
    border: 1px solid #b8b8b8;
    border-radius: var(--radius-btn);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(24px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 20;
}

.header-search.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.header-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--color-text-dark);
}

.header-search-input::placeholder {
    color: #b8b8b8;
}

.header-search-btn {
    position: absolute;
    top: 50%;
    right: -2px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    padding: 0;
    background: var(--color-bg-gray);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.header-search-btn:hover {
    background-color: var(--color-input-bg);
}

.header-search-btn img {
    width: 24px;
    height: 24px;
}

/* Компактная кнопка (шапка) */
.btn-small {
    height: 48px;
    padding: 0 24px;
    font-size: 14px;
    background-color: var(--color-accent-orange);
    color: var(--color-white);
}

.btn-small:hover {
    background-color: var(--color-accent-orange-hover);
}

@media (max-width: 1200px) {
    .burger-btn {
        display: flex;
    }

    .main-nav {
        display: none;
    }

    /* Поиск: пилюля на всю ширину строки действий */
    .header-actions {
        flex: 1;
    }

    .header-search {
        width: min(360px, calc(100vw - 2 * var(--container-pad)));
    }

    .header.nav-open .main-nav {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 92px);
        overflow-y: auto;
        background-color: var(--color-white);
        border-top: 1px solid var(--color-border-light);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
        padding: 16px var(--container-pad) 32px;
    }

    .header.nav-open .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .header.nav-open .nav-item > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 14px 0;
        font-size: 18px;
    }

    .header.nav-open .dropdown {
        position: static;
        width: 100%;
        padding: 0 0 12px 16px;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
    }

    .header.nav-open .dropdown a {
        padding: 8px 0;
        font-size: 16px;
        color: var(--color-text-muted);
    }

    .phone-link {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-inner {
        gap: 16px;
    }
}

/* ============================================================
   BREADCRUMBS (обёртка над hero; сам .breadcrumbs — в style.css)
   ============================================================ */
.breadcrumbs-top .breadcrumbs {
    margin-bottom: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    --hero-pad-top: 30px;
    --hero-pad-bottom: 80px;

    position: relative;
    display: grid;
    grid-template-columns: 60.5% 1fr;
    align-items: stretch;
    padding: var(--hero-pad-top) 0 var(--hero-pad-bottom);
    overflow: hidden;
}

/* контейнер по всей ширине, лежит поверх обеих колонок */
.hero > .container {
    grid-column: 1 / -1;
    grid-row: 1;
}

.hero-left {
    max-width: 61%;
    height: 100%;
    padding-top: 60px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    justify-content: flex-end;
}

.hero-heading-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-titles {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(48px, 5.4vw, 104px);
    line-height: 1.05;
    color: var(--color-bg-dark);
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(26px, 2.5vw, 48px);
    line-height: 1.15;
    color: var(--color-bg-dark);
}

/* Акцент в заголовке hero */
.hero-title-accent {
    color: var(--color-accent-orange);
}

.hero-desc {
    max-width: 700px;
    font-size: var(--fs-body);
    line-height: 1.3;
    color: var(--color-text-muted);
}

.hero-actions-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.btn-demo {
    background-color: var(--color-accent-orange);
    color: var(--color-white);
    min-width: 300px;
    min-height: 87px;
}

.btn-demo:hover {
    background-color: var(--color-accent-orange-hover);
}

.btn-demo:disabled,
.btn-demo.is-disabled {
    background-color: #707070;
    cursor: not-allowed;
}

.hero-note {
    font-size: var(--fs-small);
    line-height: 1.3;
    color: var(--color-text-muted);
}

/* Правая панель: от контейнера до правого края экрана, картинка внутри с паддингом */
.hero-right {
    grid-column: 2 / 3;
    grid-row: 1;
    background-color: var(--color-bg-gray);
    border-radius: 24px 0 0 24px;
    padding: 59px 0 85px 78px;
    overflow: hidden;
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
    min-height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: left top;   /* выравнивание по левому краю: справа обрезается */
    border-radius: 24px 0 0 24px;
}

/* Статистика — в общем контейнере, по левому краю */
.stats-group {
    display: flex;
    gap: clamp(40px, 3.7vw, 72px);
    margin-top: auto;
}

/* Много метрик в hero (страница «О компании») */
.about-stats {
    flex-wrap: wrap;
    gap: clamp(24px, 2.4vw, 48px);
}

.about-stats .stat-label {
    white-space: normal;
}

.stat-label {
    white-space: nowrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(28px, 2.8vw, 40px);
    color: var(--color-bg-dark);
}

.stat-label {
    font-size: 18px;
    color: var(--color-text-dark);
}

/* Кнопка «Получить консультацию» — контурная */
.btn-consult {
    background-color: transparent;
    color: var(--color-text-muted);
    border-color: var(--color-border-light);
    min-width: 300px;
    min-height: 87px;
}

.btn-consult:hover {
    background-color: transparent;
    border-color: var(--color-text-muted);
    color: var(--color-bg-dark);
}

/* Вариант hero для внутренних страниц: компактный заголовок */
.hero--page {
    --hero-pad-top: 40px;
    --hero-pad-bottom: 64px;
}

.hero--page .hero-title {
    font-size: clamp(32px, 3.4vw, 48px);
}

.hero--page .hero-left {
    padding-top: 0;
    padding-bottom: 0;
    gap: 24px;
}

/* Компактный hero (внутренние страницы: FAQ, Тарифы, Кейсы) */
.hero--compact {
    --hero-pad-top: 24px;
    --hero-pad-bottom: 24px;
}

/* Опция: вертикальное центрирование колонок hero (текст и картинка) */
.hero--middle {
    align-items: center;
}

.hero--middle .hero-left {
    height: auto;
    justify-content: center;
}

/* Надзаголовок hero */
.hero-eyebrow {
    margin-bottom: 8px;
    font-size: var(--fs-eyebrow);
    line-height: 1.3;
    color: var(--color-text-gray);
}

/* Опция: разделитель под текстовым блоком hero («О компании») */
.hero--divider .hero-heading-group {
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-border-light);
}

/* Размеры текстов hero «О компании» (заданы макетом, только для этой страницы) */
.hero--about .hero-eyebrow {
    font-size: clamp(18px, 1.62vw, 24px);
}

.hero--about .hero-title {
    font-size: clamp(32px, 3.4vw, 49px);
}

.hero--about .hero-desc {
    font-size: clamp(18px, 1.62vw, 24px);
}

/* Метрики hero «О компании»: 28/16, вся строка без переноса */
.hero--about .stat-number {
    font-size: clamp(22px, 1.95vw, 28px);
}

.hero--about .stat-label {
    font-size: 16px;
    white-space: nowrap;
}

.hero--about .about-stats {
    flex-wrap: nowrap;
    gap: clamp(16px, 1.6vw, 32px);
}

@media (max-width: 1024px) {
    .hero--about .about-stats {
        flex-wrap: wrap;
    }

    .hero--about .stat-label {
        white-space: normal;
    }
}

/* Центрированный hero (страница FAQ) */
.hero--center {
    grid-template-columns: 1fr;
}

.hero--center .hero-left {
    max-width: 100%;
    align-items: center;
    text-align: center;
}

/* Опция: серый верх страницы (шапка + крошки + hero). Класс вешается на <body>.
   Панель hero-right автоматически становится белой, чтобы не сливаться с серым фоном. */
.ecvi-top-gray .header,
.ecvi-top-gray .breadcrumbs,
.ecvi-top-gray .breadcrumbs-top,
.ecvi-top-gray .hero {
    background-color: var(--color-bg-gray);
}

.ecvi-top-gray .hero-right {
    background-color: var(--color-white);
    box-shadow: 0 0 0 1px var(--color-white);
}

/* Опция: правая панель hero без фона, отступов, рамки и тени (класс вешается на секцию hero) */
.hero--no-panel .hero-right {
    background: 0;
    padding: 0;
    border: none;
    box-shadow: none;
}

/* Опция: hero страницы «Интеграции» — коллаж по макету:
   контент 638×550 при 1920 (картинка 837 — 43.6vw), слева 1069; без панели */
.hero--ia {
    grid-template-columns: 39% 1fr;
}

/* Внутренние зазоры левой колонки — по макету (заголовок 36, описание 74) */
.hero--ia .hero-heading-group {
    gap: 36px;
}

.hero--ia .hero-left {
    gap: 74px;
}

.hero--ia .hero-right {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.hero--ia .hero-image {
    width: 43.6vw;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin-right: 8.4vw;
    object-fit: contain;
    object-position: left top;
}

/* Опция: hero страницы «Интеграции» — крупнее заголовок, узкая колонка описания */
.hero--ia .hero-title {
    font-size: clamp(36px, 2.9vw, 56px);
}

.hero--ia .hero-desc {
    max-width: 460px;
}

@media (max-width: 1200px) {
    .hero-left {
        max-width: 50%;
    }

    .hero-right {
        padding: 40px 0 48px 40px;
    }

    .hero-image {
        height: 100%;
        object-fit: cover;
        object-position: left top;
    }
}

@media (max-width: 1024px) {
    .hero-left {
        max-width: 52%;
    }

    .hero-right {
        padding: 24px 0 32px 24px;
    }
}

@media (max-width: 768px) {

    /* hero в колонку: панель с картинкой под текстом, обрез справа */
    .hero {
        grid-template-columns: 1fr;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero > .container {
        grid-column: 1;
        grid-row: 1;
    }

    .hero-left {
        max-width: none;
        padding-top: 0;
        gap: 40px;
    }

    .hero-buttons .btn {
        min-width: 0;
        width: 100%;
    }

    .hero-right {
        grid-column: 1;
        grid-row: 2;
        height: 320px;
        margin: 8px calc(-1 * var(--container-pad)) 0 var(--container-pad);
        padding: 20px 0 28px 20px;
        border-radius: 16px 0 0 16px;
    }

    .hero-image {
        height: 100%;
    }

    .stat-label {
        white-space: normal;
    }

    /* Принудительные переносы из макета — только на десктопе */
    .hero-subtitle br,
    .hero-desc br {
        display: none;
    }

    .stats-group {
        margin-top: 0;
        gap: 32px;
    }
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal[hidden] {
    display: none;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(18, 18, 18, 0.6);
}

.modal-window {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background-color: var(--color-white);
    border-radius: var(--radius-card-lg);
    padding: 64px;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-dark);
}

.modal-title {
    margin-bottom: 32px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
    color: var(--color-text-dark);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-form .checkbox-label {
    margin-top: 8px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.modal-submit {
    align-self: flex-start;
    margin-top: 16px;
}

.modal.is-open {
    animation: modal-fade 0.3s ease;
}

.modal-window.is-open {
    animation: modal-scale 0.3s ease;
}

@keyframes modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modal-scale {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    padding: 60px 0;
}

.footer .container {
    position: relative;
    padding-top: 60px;
}

/* Линия CTA ↔ футер: по верхнему краю футера, шириной по контенту контейнера,
   только когда CTA стоит последним перед футером. */
.cta-block ~ .footer .container::before,
.main:has(> .cta-block:last-child) ~ .footer .container::before {
    content: "";
    position: absolute;
    top: -60px;
    left: 5rem;
    right: 5rem;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 96px;
    padding-bottom: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col-brand {
    max-width: 360px;
}

.footer-logo {
    display: block;
    margin-bottom: 24px;
    transition: opacity 0.25s ease;
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-logo img {
    height: 56px;
}

.footer-desc {
    font-size: var(--fs-small);
    line-height: 1.5;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 32px;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-contact img {
    width: 20px;
    height: 20px;
}

.footer-contact a {
    font-size: clamp(20px, 1.8vw, 24px);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--color-accent-orange);
}

.footer-contacts {
    display: flex;
    flex-direction: column;
}

.socials {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.socials a:hover {
    opacity: 0.75;
    transform: translateY(-2px);
}

/* Иконки соцсетей задаются классом ссылки (tg/vk/max/yt/rutube) */
.socials a {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    filter: brightness(0) invert(1);
}

.socials a.tg {
    background-image: url(../img/icons/tg.svg);
}

.socials a.vk {
    background-image: url(../img/icons/akar-icons_vk-fill.svg);
}

.socials a.max {
    background-image: url(../img/icons/max.svg);
}

.socials a.yt {
    background-image: url(../img/icons/icon-park-solid_youtube.svg);
}

.socials a.rutube {
    background-image: url(../img/icons/rutube.png);
    background-size: 32px 32px;
    filter: grayscale(1);
}

.footer-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.footer-nav-pair {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 40px;
}

.footer-nav-col h4 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    opacity: 0.7;
}

.footer-nav-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-col a {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-nav-col a:hover {
    color: var(--color-white);
}

/* Заголовок колонки футера — ссылка; вид как у прежнего h4 (не как пункты) */
.footer-nav-col .footer-nav-title a {
    font-size: inherit;
    color: inherit;
}

.footer-nav-col .footer-nav-title a:hover {
    color: var(--color-white);
}

.footer-nav-sub {
    margin-top: 32px;
}

.footer-subscribe {
    max-width: 480px;
    margin-left: auto;
    margin-top: 64px;
}

.subscribe-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.subscribe-input {
    min-width: 0;
}

.subscribe-form .subscribe-btn {
    flex-shrink: 0;
}

.subscribe-input {
    flex: 1;
    height: 48px;
    padding: 0 24px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-btn);
    font-size: 16px;
    color: var(--color-white);
    outline: none;
    transition: border-color 0.25s ease;
}

.subscribe-input:hover,
.subscribe-input:focus {
    border-color: var(--color-white);
}

.subscribe-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.subscribe-btn {
    height: 48px;
    padding: 0 24px;
    background-color: var(--color-accent-orange);
    color: var(--color-white);
    font-size: 16px;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.subscribe-btn:hover {
    background-color: var(--color-accent-orange-hover);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-top: 24px;
    font-size: var(--fs-small);
    white-space: nowrap;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: var(--fs-small);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-accent-orange);
}

@media (max-width: 1024px) {
    .footer-top {
        flex-direction: column;
        gap: 48px;
    }

    .footer-subscribe {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        white-space: normal;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 1200px) {
    .footer-bottom {
        white-space: normal;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ============================================================
   ОБЩИЕ ФОРМЫ (используются в CTA, модалке, футере)
   ============================================================ */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.form-input {
    width: 100%;
    height: 64px;
    padding: 0 24px;
    background-color: var(--color-input-bg);
    border: none;
    border-radius: var(--radius-input);
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--color-text-dark);
    outline: none;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-input:focus {
    box-shadow: inset 0 0 0 1px var(--color-accent-orange);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 32px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    cursor: pointer;
}

.checkbox-label input {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: var(--color-white);
}

.checkbox-label strong {
    font-weight: 700;
}

.checkbox-label--subscribe {
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, 0.8);
}

.checkbox-label--subscribe u {
    text-underline-offset: 2px;
}

/* ============================================================
   КРОСС-БЛОЧНЫЕ ПРАВИЛА
   ============================================================ */
.btn-demo:active,
.cta-button:active,
.subscribe-btn:active,
.product-card--dark .product-btn:active {
    background-color: #df5d3b;
}

.btn-demo:disabled,
.btn-demo.is-disabled,
.cta-button:disabled,
.cta-button.is-disabled,
.subscribe-btn:disabled,
.subscribe-btn.is-disabled {
    background-color: #707070;
    cursor: not-allowed;
}

/* Ссылка-подчёркивание (лента клиентов, отзывы) */
.clients-link,
.reviews-more {
    display: block;
    width: max-content;
    margin: 0 auto;
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 4px;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.clients-link:hover,
.reviews-more:hover {
    color: var(--color-accent-orange);
}

/* Служебные: цикл записей (архивы/поиск/блог) и заглушка «контент не найден» */
.site-loop {
    padding-bottom: var(--section-pad);
}

.site-loop .pagination {
    margin-top: 40px;
}

.content-none {
    padding: 8px 0 24px;
    font-size: var(--fs-body);
    color: var(--color-text-muted);
}
