/*
 * yar-led / Точка Света — redesign prototype
 * Scope: body.home-redesign (front-page only)
 *
 * Палитра: жёлтый акцент + графит + нейтральные серые.
 * Тема: hero тёмный, остальное светлое.
 * Шрифты: Onest (display) + Inter (body).
 */

body.home-redesign {
    /* base tokens */
    --r-yellow: #f5c518;
    --r-yellow-strong: #ffd11a;
    --r-yellow-soft: #fff4c2;

    --r-graphite-900: #0d0f12;
    --r-graphite-800: #14171c;
    --r-graphite-700: #1c2026;
    --r-graphite-600: #262b33;

    --r-ink: #14171c;
    --r-ink-soft: #2a3038;
    --r-muted: #5a6470;
    --r-muted-soft: #8a93a0;

    --r-bg: #ffffff;
    --r-bg-soft: #f6f7f9;
    --r-bg-card: #ffffff;
    --r-line: #e5e8ec;
    --r-line-strong: #d3d8de;

    --r-on-dark: #f5f7fa;
    --r-on-dark-muted: #aab3bf;

    /* type scale
     * Шрифты:
     *  display + body — Bricolage Grotesque (variable: opsz axis 12..96 + wght 400..700).
     *  Optical sizing включён через font-optical-sizing: auto ниже —
     *  глифы автоматически становятся тоньше/уже на крупных кеглях.
     *  mono — JetBrains Mono (для тех-параметров: IP65, 5000K, КСС-Д, чисел метрик).
     * Откат: вернуть 'Onest'/'Inter' или 'Public Sans' (бэкапы в /home/k-s-a/project/backups/).
     */
    --r-display: 'Montserrat', 'Inter', system-ui, sans-serif;
    --r-body:    'Inter', system-ui, sans-serif;
    --r-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-optical-sizing: auto;

    --r-h1: clamp(40px, 6vw, 75px);
    --r-h2: clamp(28px, 3.6vw, 48px);
    --r-h3: clamp(18px, 1.4vw, 22px);
    --r-eyebrow: 13px;
    --r-body-size: 16px;
    --r-lead-size: clamp(16px, 1.4vw, 19px);

    --r-radius: 14px;
    --r-radius-lg: 22px;
    --r-shadow-soft: 0 8px 24px rgba(13, 15, 18, .06);
    --r-shadow-lift: 0 24px 60px rgba(13, 15, 18, .12);

    font-family: var(--r-body);
    color: var(--r-ink);
    background: var(--r-bg);
}

body.home-redesign h1,
body.home-redesign h2,
body.home-redesign h3,
body.home-redesign .display {
    font-family: var(--r-display);
    /* Manrope (geometric) — лёгкое отрицательное на крупных кеглях для плотности. */
    letter-spacing: -.015em;
}

body.home-redesign .wrap {
    width: min(1240px, calc(100% - 32px));
}

/* ---------- HEADER ---------- */
/* Стили хедера заданы глобально в main.css — единый вид на всех страницах. */

/* ---------- HERO — полноэкранный, 100svh ---------- */

body.home-redesign .hero-redesign {
    position: relative;
    height: 92svh;         /* строго полный экран, не min */
    display: flex;
    flex-direction: column;
    color: var(--r-on-dark);
    padding: 0;
    overflow: hidden;
    isolation: isolate;
}

/* Фоновое фото */
body.home-redesign .hero-redesign-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

body.home-redesign .hero-redesign-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/*
 * Градиент: сверху тёмный (читаемость текста),
 * снизу почти прозрачный — фото проступает под метриками.
 */
body.home-redesign .hero-redesign-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(13, 15, 18, .92) 0%, rgba(13, 15, 18, .60) 45%, rgba(13, 15, 18, .15) 100%);
}

/* Сетка из маленьких серых кружков */
body.home-redesign .hero-dot-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: radial-gradient(circle, rgba(180, 190, 200, .18) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    pointer-events: none;
}

body.home-redesign .hero-dot-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(245, 197, 24, .18) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.home-redesign .hero-redesign.dots-active .hero-dot-grid::after {
    opacity: 1;
}

/* Верхняя зона — текст, занимает всё свободное место */
body.home-redesign .hero-redesign-top {
    flex: 1;
    min-height: 0;          /* позволяет flex-item сжиматься ниже content size */
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    position: relative;
    z-index: 2;
    padding-top: clamp(72px, 10vh, 120px);
    padding-bottom: clamp(24px, 3vh, 48px);
}

body.home-redesign .hero-redesign-grid {
    width: min(1271px, calc(100% - 32px));
}

body.home-redesign .hero-redesign-text {
    max-width: 697px;
    background: rgba(13, 15, 18, .40);
    border: 1px solid rgba(245, 247, 250, .14);
    border-radius: 12px;
    padding: 24px 28px;
    transition: background-color .2s ease, border-color .2s ease;
}

body.home-redesign .hero-redesign-text:hover {
    background: rgba(13, 15, 18, .80);
    border-color: rgba(245, 197, 24, .35);
}

/* Нижняя панель — метрики + «Проект дня», фото проступает */
body.home-redesign .hero-bottom-bar {
    position: relative;
    z-index: 3;
    flex-shrink: 0;         /* нижняя полоса никогда не сжимается */
    padding: clamp(20px, 3vh, 40px) 0 clamp(24px, 4vh, 52px);
    border-top: 1px solid rgba(245, 247, 250, .1);
    background: rgba(13, 15, 18, .40);
}

body.home-redesign .hero-bottom-bar-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

/* Ряд метрик */
body.home-redesign .hero-metrics-row {
    display: flex;
    gap: clamp(20px, 3.5vw, 48px);
    margin: 0;
    flex-wrap: wrap;
}

body.home-redesign .hero-metrics-row > div {
    min-width: 80px;
}

body.home-redesign .hero-metrics-row dt {
    font-family: 'Alumni Sans Pinstripe', var(--r-mono);
    font-size: clamp(22px, 2.6vw, 36px);
    font-weight: 400;
    color: var(--r-yellow);
    line-height: 1;
    margin: 0;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

body.home-redesign .hero-metrics-row dd {
    font-size: 13px;
    color: var(--r-on-dark-muted);
    margin: 8px 0 0;
    line-height: 1.35;
}

body.home-redesign .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--r-body);
    font-size: var(--r-eyebrow);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--r-yellow);
    font-weight: 500;
    margin: 0 0 24px;
}

body.home-redesign .hero-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--r-yellow);
}

body.home-redesign .hero-title {
    font-size: var(--r-h1);
    line-height: 1.02;
    font-weight: 600;
    max-width: 637px;
    margin: 0 0 24px;
    color: var(--r-on-dark);
}

body.home-redesign .hero-title-accent {
    color: var(--r-yellow);
}

body.home-redesign .hero-title em {
    font-style: normal;
    color: var(--r-yellow);
    position: relative;
    white-space: nowrap;
}

body.home-redesign .hero-title em::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.08em;
    height: 6px;
    background: var(--r-yellow);
    opacity: .25;
    border-radius: 3px;
}

body.home-redesign .hero-lead {
    font-size: var(--r-lead-size);
    line-height: 1.5;
    color: var(--r-on-dark-muted);
    margin: 0 0 32px;
    max-width: 52ch;
}

body.home-redesign .hero-actions-redesign {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

body.home-redesign .hero-actions-redesign .btn-r:not(.btn-ghost):hover,
body.home-redesign .hero-actions-redesign .btn-r:not(.btn-ghost):focus-visible {
    --btn-bg: #0d0f12;
    --btn-fg: #f5c518;
    --btn-border: #f5c518;
    background: #0d0f12;
    color: #f5c518;
    border-color: #f5c518;
}

body.home-redesign .hero-actions-redesign .btn-r.btn-ghost {
    --btn-fg: #f5c518;
    --btn-border: rgba(245, 197, 24, .55);
    color: #f5c518;
    border-color: rgba(245, 197, 24, .55);
}

body.home-redesign .hero-actions-redesign .btn-r.btn-ghost:hover,
body.home-redesign .hero-actions-redesign .btn-r.btn-ghost:focus-visible {
    --btn-bg: #f5c518;
    --btn-fg: #0d0f12;
    --btn-border: #f5c518;
    background: #f5c518;
    color: #0d0f12;
    border-color: #f5c518;
    box-shadow: 0 8px 24px rgba(245, 197, 24, .35);
}

body.home-redesign .btn-r {
    --btn-bg: var(--r-yellow);
    --btn-fg: var(--r-graphite-900);
    --btn-border: var(--r-yellow);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 12px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    border: 1px solid var(--btn-border);
    font-family: var(--r-body);
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, box-shadow .2s ease;
}

body.home-redesign .btn-r:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(245, 197, 24, .35);
}

body.home-redesign .btn-r.btn-ghost {
    --btn-bg: transparent;
    --btn-fg: var(--r-on-dark);
    --btn-border: rgba(245, 247, 250, .25);
}

body.home-redesign .btn-r.btn-ghost:hover {
    --btn-bg: rgba(245, 247, 250, .08);
    --btn-border: rgba(245, 247, 250, .45);
    box-shadow: none;
}

body.home-redesign .btn-r.btn-dark {
    --btn-bg: var(--r-graphite-900);
    --btn-fg: var(--r-on-dark);
    --btn-border: var(--r-graphite-900);
}

body.home-redesign .btn-r.btn-light {
    --btn-bg: transparent;
    --btn-fg: var(--r-ink);
    --btn-border: var(--r-line-strong);
}

body.home-redesign .btn-r.btn-light:hover {
    --btn-bg: var(--r-bg-soft);
}

body.home-redesign .hero-redesign-text:hover {
    background: rgba(13, 15, 18, .80);
    border-color: rgba(245, 197, 24, .35);
}

body.home-redesign .hero-actions-redesign .btn-r:not(.btn-ghost):hover,
body.home-redesign .hero-actions-redesign .btn-r:not(.btn-ghost):focus-visible {
    --btn-bg: #0d0f12;
    --btn-fg: #f5c518;
    --btn-border: #f5c518;
    background: #0d0f12;
    color: #f5c518;
    border-color: #f5c518;
}

body.home-redesign .hero-actions-redesign .btn-r.btn-ghost {
    --btn-fg: #f5c518;
    --btn-border: rgba(245, 197, 24, .55);
    color: #f5c518;
    border-color: rgba(245, 197, 24, .55);
}

body.home-redesign .hero-actions-redesign .btn-r.btn-ghost:hover,
body.home-redesign .hero-actions-redesign .btn-r.btn-ghost:focus-visible {
    --btn-bg: #f5c518;
    --btn-fg: #0d0f12;
    --btn-border: #f5c518;
    background: #f5c518;
    color: #0d0f12;
    border-color: #f5c518;
    box-shadow: 0 8px 24px rgba(245, 197, 24, .35);
}


body.home-redesign .hero-project-badge {
    background: rgba(13, 15, 18, .62);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(245, 247, 250, .14);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--r-on-dark);
    text-decoration: none;
    max-width: 300px;
    flex-shrink: 0;
    transition: background .2s ease, border-color .2s ease;
}

body.home-redesign .hero-project-badge:hover {
    background: rgba(13, 15, 18, .88);
    border-color: rgba(245, 197, 24, .35);
}

body.home-redesign .hero-project-badge-label {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--r-yellow);
    display: block;
    margin-bottom: 5px;
}

body.home-redesign .hero-project-badge-title {
    font-family: var(--r-display);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0;
}

body.home-redesign .hero-project-badge-city {
    font-size: 13px;
    color: var(--r-on-dark-muted);
    margin: 4px 0 0;
}

body.home-redesign .hero-project-badge-arrow {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 20px;
    color: var(--r-yellow);
    transition: transform .2s ease;
}

body.home-redesign .hero-project-badge:hover .hero-project-badge-arrow {
    transform: translateX(3px);
}

/* ---------- HERO V2 — расширенная сетка (только отличия от base) ---------- */

body.home-redesign.hero-v2 .hero-redesign-grid {
    max-width: 700px;
}

/* hero-metrics-inline больше не используется — оставляем скрытым */
body.home-redesign .hero-metrics-inline {
    display: none;
}

/* .metrics-strip убрана из PHP — скрываем на случай кеша */
body.home-redesign .metrics-strip { display: none; }

/* ---------- CATALOG TABS ---------- */

body.home-redesign .home-catalog-tabs {
    padding: clamp(72px, 8vw, 120px) 0;
    background: #111419;
    color: var(--r-on-dark);
}

body.home-redesign .home-catalog-tabs .section-head-r {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

body.home-redesign .eyebrow-r {
    font-family: var(--r-body);
    font-size: var(--r-eyebrow);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--r-yellow);
    font-weight: 500;
    margin: 0 0 12px;
}

body.home-redesign .home-catalog-tabs h2 {
    font-size: var(--r-h2);
    line-height: 1.05;
    font-weight: 700;
    margin: 0;
    max-width: 18ch;
    color: var(--r-on-dark);
}

body.home-redesign .text-link-r {
    color: var(--r-on-dark-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--r-yellow);
    padding-bottom: 4px;
    font-weight: 500;
    transition: color .15s ease;
}

body.home-redesign .text-link-r:hover {
    color: var(--r-yellow);
}

body.home-redesign .catalog-tabs-switch {
    display: inline-flex;
    background: rgba(245, 247, 250, .05);
    border-radius: 999px;
    padding: 6px;
    margin-bottom: 32px;
    gap: 4px;
    border: 1px solid rgba(245, 247, 250, .1);
}

body.home-redesign .catalog-tabs-switch button {
    border: none;
    background: transparent;
    padding: 10px 20px;
    border-radius: 999px;
    font-family: var(--r-body);
    font-weight: 500;
    font-size: 14px;
    color: var(--r-on-dark-muted);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

body.home-redesign .catalog-tabs-switch button[aria-pressed="true"] {
    background: var(--r-yellow);
    color: var(--r-graphite-900);
}

body.home-redesign .catalog-tabs-panel {
    display: none;
}

body.home-redesign .catalog-tabs-panel.is-active {
    display: block;
    animation: rFadeIn .25s ease;
}

@keyframes rFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

body.home-redesign .catalog-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

body.home-redesign .catalog-card {
    display: flex;
    flex-direction: column;
    background: var(--r-graphite-700);
    border: 1px solid rgba(245, 247, 250, .08);
    border-radius: var(--r-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: var(--r-on-dark);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.home-redesign .catalog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
    border-color: rgba(245, 197, 24, .3);
}

body.home-redesign .catalog-card-media {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--r-graphite-700), var(--r-graphite-900));
    position: relative;
    overflow: hidden;
}

body.home-redesign .catalog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: transform .4s ease, filter .4s ease;
}

body.home-redesign .catalog-card:hover .catalog-card-media img {
    transform: scale(1.06);
    filter: grayscale(0%);
}

body.home-redesign .catalog-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(13, 15, 18, .55) 100%);
}

body.home-redesign .catalog-card-tag {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 2;
    font-family: var(--r-display);
    color: var(--r-on-dark);
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    line-height: 1.1;
}

body.home-redesign .catalog-card-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

body.home-redesign .catalog-card-body p {
    margin: 0;
    color: var(--r-on-dark-muted);
    font-size: 14.5px;
    line-height: 1.5;
}

body.home-redesign .catalog-card-desc2 {
    display: block;
    text-align: right;
    margin-top: 4px;
}

body.home-redesign .catalog-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed rgba(245, 247, 250, .12);
}

body.home-redesign .catalog-card-count {
    font-family: var(--r-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--r-on-dark);
}

body.home-redesign .catalog-card-count span {
    color: var(--r-yellow);
}

body.home-redesign .catalog-card-arrow {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(245, 247, 250, .08);
    color: var(--r-on-dark);
    display: inline-grid;
    place-items: center;
    transition: background .2s ease, transform .2s ease, color .2s ease;
}

body.home-redesign .catalog-card:hover .catalog-card-arrow {
    background: var(--r-yellow);
    color: var(--r-graphite-900);
    transform: translateX(2px);
}

/* ---------- BRAND STRIP ---------- */

body.home-redesign .brand-strip {
    background: #16191f;
    padding: 40px 0;
    border-top: 1px solid rgba(245, 247, 250, .06);
    border-bottom: 1px solid rgba(245, 247, 250, .06);
}

body.home-redesign .brand-strip-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
}

body.home-redesign .brand-strip-label {
    font-size: var(--r-eyebrow);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--r-on-dark-muted);
    font-weight: 500;
    max-width: 13ch;
    line-height: 1.4;
}

body.home-redesign .brand-strip-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(14px, 2vw, 32px);
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
}

body.home-redesign .brand-strip-list::-webkit-scrollbar {
    display: none;
}

body.home-redesign .brand-strip-list a {
    font-family: var(--r-display);
    font-weight: 700;
    font-size: clamp(14px, 1.3vw, 22px);
    color: var(--r-on-dark);
    opacity: .45;
    text-decoration: none;
    transition: opacity .2s ease, color .2s ease, transform .2s ease;
    letter-spacing: -.01em;
    white-space: nowrap;
    flex: none;
}

body.home-redesign .brand-strip-list a:hover {
    opacity: 1;
    color: var(--r-yellow);
    transform: translateY(-1px);
}

body.home-redesign .brand-strip-link {
    font-size: 14px;
    color: var(--r-on-dark-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--r-yellow);
    padding-bottom: 3px;
}

/* ---------- ТЁМНЫЕ СЕКЦИИ ГЛАВНОЙ ---------- */
/* main.css уже тёмный (#0a0a0a), здесь только уточняем оттенки секций */

body.home-redesign main {
    background: var(--r-graphite-900);
}

/* Чередование оттенков тёмного для разграничения блоков */
body.home-redesign .home-proof {
    background: #111419;
}

body.home-redesign .home-solutions {
    background: var(--r-graphite-900);
}

body.home-redesign .home-cases {
    background: #111419;
}

body.home-redesign .home-intro {
    background: #16191f;
}

body.home-redesign .home-band {
    background: var(--r-graphite-900);
}

body.home-redesign .home-process {
    background: #111419;
}

body.home-redesign .section-grid {
    background: var(--r-graphite-900);
}

body.home-redesign .home-trust {
    background: #16191f;
    padding-top: 0;
}

body.home-redesign .home-bottom-grid {
    background: var(--r-graphite-900);
}

/* Карточки на тёмном — слегка светлее фона */
body.home-redesign .home-proof article {
    background: var(--r-graphite-700);
    border: 1px solid rgba(245, 247, 250, .07);
    border-radius: var(--r-radius);
    padding: 28px;
}

body.home-redesign .solution-card {
    border: 1px solid rgba(245, 247, 250, .08);
}

body.home-redesign .service-card,
body.home-redesign .project-card,
body.home-redesign .home-links-panel {
    background: var(--r-graphite-700);
    border: 1px solid rgba(245, 247, 250, .07);
    border-radius: var(--r-radius);
}

body.home-redesign .home-cta-panel {
    background: linear-gradient(135deg, #1c2230, #14171c);
    border: 1px solid rgba(245, 197, 24, .15);
    border-radius: var(--r-radius);
}

body.home-redesign .brand-cloud a {
    border: 1px solid rgba(245, 247, 250, .1);
    background: var(--r-graphite-700);
}

body.home-redesign .brand-cloud a:hover {
    border-color: var(--r-yellow);
    color: var(--r-yellow);
}

/* CTA-band — самый тёмный, финальный акцент */
body.home-redesign .home-cta-band {
    background: #000000;
    border-top: 1px solid rgba(245, 197, 24, .15);
}

body.home-redesign .home-cta-band .home-cta-accent {
    color: var(--r-yellow);
}

/* ---------- FAQ (новая секция) ---------- */

body.home-redesign .home-faq {
    background: #111419;
    padding: clamp(72px, 8vw, 120px) 0;
}

body.home-redesign .home-faq .faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: clamp(32px, 4vw, 64px);
    align-items: start;
}

body.home-redesign .home-faq h2 {
    font-size: var(--r-h2);
    line-height: 1.05;
    margin: 8px 0 16px;
    color: var(--r-on-dark);
}

body.home-redesign .home-faq .faq-intro p {
    color: var(--r-on-dark-muted);
    line-height: 1.6;
    margin: 0;
}

body.home-redesign .home-faq .faq-intro .btn-r.btn-light {
    --btn-bg: #f5c518;
    --btn-fg: #0d0f12;
    --btn-border: #f5c518;
    background: #f5c518;
    color: #0d0f12;
    border-color: #f5c518;
}

body.home-redesign .home-faq .faq-intro .btn-r.btn-light:hover,
body.home-redesign .home-faq .faq-intro .btn-r.btn-light:focus-visible {
    --btn-bg: #0d0f12;
    --btn-fg: #f5c518;
    --btn-border: #f5c518;
    background: #0d0f12;
    color: #f5c518;
    border-color: #f5c518;
}

body.home-redesign .home-faq details {
    border-top: 1px solid rgba(245, 247, 250, .08);
    padding: 18px 0;
}

body.home-redesign .home-faq details:last-child {
    border-bottom: 1px solid rgba(245, 247, 250, .08);
}

body.home-redesign .home-faq summary {
    cursor: pointer;
    list-style: none;
    font-family: var(--r-display);
    font-weight: 600;
    font-size: 18px;
    color: var(--r-on-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

body.home-redesign .home-faq summary::-webkit-details-marker {
    display: none;
}

body.home-redesign .home-faq summary::after {
    content: "+";
    font-size: 22px;
    color: var(--r-yellow);
    font-weight: 400;
    transition: transform .2s ease;
}

body.home-redesign .home-faq details[open] summary::after {
    content: "−";
}

body.home-redesign .home-faq details p {
    margin: 14px 0 4px;
    color: var(--r-on-dark-muted);
    line-height: 1.6;
    max-width: 65ch;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 960px) {
    body.home-redesign .catalog-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    body.home-redesign .home-faq .faq-grid {
        grid-template-columns: 1fr;
    }

    body.home-redesign .brand-strip-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    body.home-redesign .brand-strip-list {
        justify-content: flex-start;
    }

    body.home-redesign .brand-strip-label {
        max-width: none;
    }

    body.home-redesign .hero-metrics-row {
        gap: clamp(16px, 2.5vw, 32px);
    }
}

@media (max-width: 640px) {
    body.home-redesign .catalog-cards {
        grid-template-columns: 1fr;
    }

    body.home-redesign .hero-bottom-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    body.home-redesign .hero-project-badge {
        max-width: 100%;
    }

    body.home-redesign .hero-metrics-row {
        gap: 16px 24px;
    }

    body.home-redesign .hero-metrics-row dt {
        font-size: clamp(24px, 7vw, 34px);
    }

    body.home-redesign .hero-actions-redesign {
        flex-direction: column;
        align-items: stretch;
    }

    body.home-redesign .hero-actions-redesign .btn-r {
        justify-content: center;
    }

    body.home-redesign .hero-redesign-top {
        padding-top: 16px;
    }

    body.home-redesign .hero-metrics-row {
        display: none;
    }

    body.home-redesign h1,
    body.home-redesign h2,
    body.home-redesign h3,
    body.home-redesign .eyebrow-r,
    body.home-redesign .section-head-r {
        text-align: center;
    }
}

/* ---------- 4K / QHD (2560px+) ---------- */

@media (min-width: 2560px) {
    body.home-redesign {
        --r-h1: clamp(80px, 5.5vw, 100px);
        --r-h2: clamp(48px, 3.2vw, 70px);
        --r-h3: clamp(22px, 1.2vw, 32px);
        --r-eyebrow: 16px;
        --r-body-size: 20px;
        --r-lead-size: clamp(19px, 1.2vw, 26px);
    }

    body.home-redesign .wrap {
        width: min(1800px, calc(100% - 64px));
    }

    /* Hero */
    body.home-redesign .hero-redesign-text {
        max-width: 960px;
        padding: 36px 40px;
        border-radius: 18px;
    }

    body.home-redesign .hero-metrics-row dt {
        font-size: clamp(40px, 2.4vw, 60px);
    }

    body.home-redesign .hero-metrics-row dd {
        font-size: 17px;
    }

    /*
     * На 4К Onest 600 при больших кеглях смотрится тяжеловато.
     * Снижаем вес заголовков до 500 — буквы становятся аккуратнее без потери иерархии.
     */
    body.home-redesign .hero-title,
    body.home-redesign .home-expertise .section-head-r h2,
    body.home-redesign .home-cases-r .section-head-r h2,
    body.home-redesign .home-process-r .section-head-r h2,
    body.home-redesign .home-cta-r h2,
    body.home-redesign .home-cases-r .case-card-title {
        font-weight: 500;
    }

    body.home-redesign .hero-title {
        font-size: 75px;
        font-weight: 500;
        margin-bottom: 40px;
    }

    body.home-redesign .hero-bottom-bar {
        padding: clamp(32px, 3vh, 60px) 0 clamp(40px, 4vh, 80px);
    }

    body.home-redesign .hero-bottom-bar-inner {
        gap: 48px;
    }

    body.home-redesign .hero-project-badge {
        max-width: 420px;
        padding: 24px 28px;
        border-radius: 20px;
    }

    body.home-redesign .hero-eyebrow {
        font-size: 16px;
        margin-bottom: 32px;
    }

    body.home-redesign .hero-lead {
        margin-bottom: 48px;
    }

    body.home-redesign .hero-actions-redesign {
        gap: 16px;
    }

    /* Кнопки */
    body.home-redesign .btn-r {
        padding: 20px 36px;
        font-size: 18px;
        border-radius: 16px;
    }

    /* Секции */
    body.home-redesign .home-proof,
    body.home-redesign .home-solutions,
    body.home-redesign .home-cases,
    body.home-redesign .home-band,
    body.home-redesign .home-process,
    body.home-redesign .home-trust,
    body.home-redesign .home-cta-band {
        padding-top: 120px;
        padding-bottom: 120px;
    }
}

/* ---------- HERO VARIANT SWITCHER (dev-only) ---------- */

body.home-redesign .hero-switch {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 50;
    background: rgba(13, 15, 18, .9);
    color: var(--r-on-dark);
    border-radius: 999px;
    padding: 6px;
    display: inline-flex;
    gap: 4px;
    font-size: 12px;
    font-family: var(--r-body);
    border: 1px solid rgba(245, 247, 250, .12);
    backdrop-filter: blur(10px);
}

body.home-redesign .hero-switch a {
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--r-on-dark-muted);
}

body.home-redesign .hero-switch a.is-active {
    background: var(--r-yellow);
    color: var(--r-graphite-900);
    font-weight: 600;
}

/* ============================================================
   КАТАЛОГ — светлая тема
   Scope: body.post-type-archive-product,
          body.tax-product_category,
          body.tax-product_brand,
          body.single-product
   Header (#000) и footer (тёмный из main.css) не трогаем.
   ============================================================ */

body.post-type-archive-product,
body.tax-product_category,
body.tax-product_brand,
body.single-product {
    --bg: #f5f6f8;
    --surface: #ffffff;
    /* main.css :root — тёмная тема (--surface-warm:#141414); здесь светлая тема,
       поэтому переопределяем тёплую поверхность на светлую, иначе плашки
       .product-highlights/.product-support-strip — тёмный текст на тёмном фоне. */
    --surface-warm: #eef1f5;
    --ink: #14171c;
    --muted: #5a6470;
    --line: #e4e7ec;
    --accent: #f5c518;
    --accent-dark: #d4a800;
    --accent-fg: #0d0f12;
    background: #f5f6f8;
    color: #14171c;
}

/* Главный контент каталога */
body.post-type-archive-product main,
body.tax-product_category main,
body.tax-product_brand main,
body.single-product main {
    background: #f5f6f8;
}

/* catalog-hero — светлая шапка */
body.post-type-archive-product .catalog-hero,
body.tax-product_category .catalog-hero,
body.tax-product_brand .catalog-hero {
    background: #ffffff;
    color: #14171c;
    border-bottom: 1px solid #e4e7ec;
}

body.post-type-archive-product .catalog-hero h1,
body.tax-product_category .catalog-hero h1,
body.tax-product_brand .catalog-hero h1 {
    color: #14171c;
    font-family: 'Onest', 'Inter', system-ui, sans-serif;
}

body.post-type-archive-product .catalog-hero .lead,
body.tax-product_category .catalog-hero .lead,
body.tax-product_brand .catalog-hero .lead {
    color: #5a6470;
}

body.post-type-archive-product .catalog-hero .eyebrow,
body.tax-product_category .catalog-hero .eyebrow,
body.tax-product_brand .catalog-hero .eyebrow {
    color: #f5c518;
}

body.post-type-archive-product .catalog-hero-panel,
body.tax-product_category .catalog-hero-panel,
body.tax-product_brand .catalog-hero-panel {
    background: #f5f6f8;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
}

body.post-type-archive-product .catalog-hero-panel dt,
body.tax-product_category .catalog-hero-panel dt,
body.tax-product_brand .catalog-hero-panel dt {
    color: #f5c518;
}

body.post-type-archive-product .catalog-hero-panel dd,
body.tax-product_category .catalog-hero-panel dd,
body.tax-product_brand .catalog-hero-panel dd {
    color: #5a6470;
}

/* Панель фильтров */
body.post-type-archive-product .catalog-filter-panel,
body.tax-product_category .catalog-filter-panel,
body.tax-product_brand .catalog-filter-panel {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
}

body.post-type-archive-product .filter-panel-head h2,
body.tax-product_category .filter-panel-head h2,
body.tax-product_brand .filter-panel-head h2 {
    color: #ffffff;
    font-family: 'Onest', 'Inter', system-ui, sans-serif;
}

body.post-type-archive-product .catalog-filters label span,
body.tax-product_category .catalog-filters label span,
body.tax-product_brand .catalog-filters label span {
    color: #5a6470;
}

body.post-type-archive-product .catalog-filters input,
body.post-type-archive-product .catalog-filters select,
body.tax-product_category .catalog-filters input,
body.tax-product_category .catalog-filters select,
body.tax-product_brand .catalog-filters input,
body.tax-product_brand .catalog-filters select {
    background: #f5f6f8;
    border-color: #e4e7ec;
    color: #14171c;
}

/* Карточки товаров */
body.post-type-archive-product .product-card,
body.tax-product_category .product-card,
body.tax-product_brand .product-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    color: #14171c;
}

body.post-type-archive-product .product-card:hover,
body.tax-product_category .product-card:hover,
body.tax-product_brand .product-card:hover {
    border-color: #f5c518;
    box-shadow: 0 8px 32px rgba(13, 15, 18, .08);
}

body.post-type-archive-product .product-card .product-title,
body.tax-product_category .product-card .product-title,
body.tax-product_brand .product-card .product-title {
    color: #14171c;
}

body.post-type-archive-product .product-card .product-meta,
body.tax-product_category .product-card .product-meta,
body.tax-product_brand .product-card .product-meta {
    color: #5a6470;
}

/* Заголовок результатов */
body.post-type-archive-product .catalog-results-head h2,
body.tax-product_category .catalog-results-head h2,
body.tax-product_brand .catalog-results-head h2 {
    color: #14171c;
    font-family: 'Onest', 'Inter', system-ui, sans-serif;
}

/* Кнопки — жёлтая первичная */
body.post-type-archive-product .button,
body.tax-product_category .button,
body.tax-product_brand .button,
body.single-product .button {
    background: #f5c518;
    color: #0d0f12;
    border-color: #f5c518;
}

body.post-type-archive-product .button:hover,
body.tax-product_category .button:hover,
body.tax-product_brand .button:hover,
body.single-product .button:hover {
    background: #ffd11a;
    border-color: #ffd11a;
}

body.post-type-archive-product .button-secondary,
body.tax-product_category .button-secondary,
body.tax-product_brand .button-secondary,
body.single-product .button-secondary {
    background: transparent;
    color: #14171c;
    border-color: #d3d8de;
}

body.post-type-archive-product .button-secondary:hover,
body.tax-product_category .button-secondary:hover,
body.tax-product_brand .button-secondary:hover {
    border-color: #f5c518;
    color: #14171c;
}

/* Text-link */
body.post-type-archive-product .text-link,
body.tax-product_category .text-link,
body.tax-product_brand .text-link {
    color: #14171c;
}

/* Пагинация */
body.post-type-archive-product .pagination a,
body.post-type-archive-product .page-numbers,
body.tax-product_category .pagination a,
body.tax-product_category .page-numbers,
body.tax-product_brand .pagination a,
body.tax-product_brand .page-numbers {
    color: #14171c;
    border-color: #e4e7ec;
    background: #ffffff;
}

body.post-type-archive-product .page-numbers.current,
body.tax-product_category .page-numbers.current,
body.tax-product_brand .page-numbers.current {
    background: #f5c518;
    color: #0d0f12;
    border-color: #f5c518;
}

/* Нижний блок каталога — тёмный (footer из main.css уже тёмный) */
body.post-type-archive-product .site-footer,
body.tax-product_category .site-footer,
body.tax-product_brand .site-footer,
body.single-product .site-footer {
    background: #000000;
    color: #f5f7fa;
    border-top: 1px solid rgba(245, 247, 250, .06);
}

/* ============================================================
   ГЛАВНАЯ — НОВЫЕ БЛОКИ ПОСЛЕ «ПРОИЗВОДИТЕЛИ»
   1: home-expertise · 2: home-cases-r · 3: home-process-r · 4: home-faq (готов)
   5: home-cta-r
   ============================================================ */

/* Общие правила для section-head в новых блоках */
body.home-redesign .home-expertise .section-head-r,
body.home-redesign .home-cases-r .section-head-r,
body.home-redesign .home-process-r .section-head-r {
    margin-bottom: clamp(32px, 4vw, 56px);
    max-width: 720px;
}

body.home-redesign .home-expertise .section-head-r h2,
body.home-redesign .home-cases-r .section-head-r h2,
body.home-redesign .home-process-r .section-head-r h2 {
    /* Uppercase + открытый трекинг — визуальное родство с логотипом «ТОЧКА СВЕТА». */
    font-size: clamp(24px, 3vw, 40px);
    line-height: 1.1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin: 0;
    color: var(--r-on-dark);
}

/* ---------- БЛОК 1: Экспертиза и услуги ---------- */

body.home-redesign .home-expertise {
    padding: clamp(80px, 9vw, 120px) 0;
    background: var(--r-graphite-900);
    color: var(--r-on-dark);
    /* Container для адаптации .expertise-grid под доступную ширину секции, а не окна */
    container-type: inline-size;
}

body.home-redesign .expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

body.home-redesign .expertise-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px 28px;
    background: var(--r-graphite-800);
    border: 1px solid rgba(245, 247, 250, .08);
    border-radius: var(--r-radius);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
}

body.home-redesign .expertise-card:hover {
    border-color: rgba(245, 197, 24, .35);
    background: var(--r-graphite-700);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}

body.home-redesign .expertise-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--r-yellow);
    color: var(--r-graphite-900);
}

body.home-redesign .expertise-card h3 {
    font-family: var(--r-display);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--r-on-dark);
    margin: 0;
}

body.home-redesign .expertise-card p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--r-on-dark-muted);
    margin: 0;
}

/* ---------- БЛОК 2: Реализованные объекты (поверх существующего home-cases) ---------- */

body.home-redesign .home-cases-r {
    padding: clamp(80px, 9vw, 120px) 0;
    background: var(--r-graphite-800);
    container-type: inline-size;
}

body.home-redesign .home-cases-r .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: clamp(280px, 32vw, 360px) clamp(280px, 32vw, 360px);
    gap: 6px;
    margin-top: 0;
}

body.home-redesign .home-cases-r .case-card-overlay {
    background: linear-gradient(0deg, rgba(13, 15, 18, .85) 0%, rgba(13, 15, 18, .15) 60%, transparent 100%);
    padding: 28px;
    gap: 6px;
}

body.home-redesign .home-cases-r .case-card-fact {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 8px;
    padding: 6px 12px;
    background: var(--r-yellow);
    color: var(--r-graphite-900);
    font-family: var(--r-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 6px;
}

body.home-redesign .home-cases-r .case-card-title {
    font-family: var(--r-display);
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.15;
    color: #fff;
}

body.home-redesign .home-cases-r .case-card-meta {
    font-size: 13px;
    color: var(--r-on-dark-muted);
    font-weight: 500;
    letter-spacing: .02em;
}

body.home-redesign .home-cases-r .case-card-city {
    display: none;
}

body.home-redesign .home-cases-foot {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

/* ---------- БЛОК 3: Процесс работы (таймлайн) ---------- */

body.home-redesign .home-process-r {
    padding: clamp(80px, 9vw, 120px) 0;
    background: var(--r-graphite-900);
    color: var(--r-on-dark);
    container-type: inline-size;
}

body.home-redesign .home-process-r .section-head-r h2 {
    color: var(--r-on-dark);
}

body.home-redesign .process-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    position: relative;
    counter-reset: process;
}

body.home-redesign .process-timeline::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, rgba(245, 197, 24, 0) 0%, rgba(245, 197, 24, .35) 15%, rgba(245, 197, 24, .35) 85%, rgba(245, 197, 24, 0) 100%);
    z-index: 0;
}

body.home-redesign .process-step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1;
}

body.home-redesign .process-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--r-yellow);
    color: var(--r-graphite-900);
    font-family: var(--r-display);
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 0 0 6px var(--r-graphite-900);
}

body.home-redesign .process-step-body h3 {
    font-family: var(--r-display);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 8px;
    color: var(--r-on-dark);
}

body.home-redesign .process-step-body p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--r-on-dark-muted);
    margin: 0;
}

/* ---------- БЛОК 5: Финальный CTA с формой ---------- */

body.home-redesign .home-cta-r {
    padding: clamp(80px, 9vw, 120px) 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(245, 197, 24, .12), transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(245, 197, 24, .08), transparent 50%),
        #0a0c10;
    color: var(--r-on-dark);
    container-type: inline-size;
}

body.home-redesign .home-cta-r-inner {
    max-width: 880px;
    margin: 0 auto;
}

body.home-redesign .home-cta-r-head {
    text-align: center;
    margin-bottom: clamp(32px, 4vw, 48px);
}

body.home-redesign .home-cta-r-head .eyebrow-r {
    color: var(--r-yellow);
}

body.home-redesign .home-cta-r h2 {
    font-size: clamp(24px, 3vw, 40px);
    line-height: 1.1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--r-on-dark);
    margin: 0 0 16px;
}

body.home-redesign .home-cta-r-lead {
    font-size: var(--r-lead-size);
    line-height: 1.6;
    color: var(--r-on-dark-muted);
    margin: 0 auto;
    max-width: 640px;
}

body.home-redesign .home-cta-form {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(245, 247, 250, .08);
    border-radius: var(--r-radius-lg);
    padding: clamp(28px, 4vw, 44px);
    backdrop-filter: blur(8px);
}

body.home-redesign .home-cta-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

body.home-redesign .home-cta-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.home-redesign .home-cta-field > span {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .02em;
    color: var(--r-on-dark-muted);
}

body.home-redesign .home-cta-field input {
    padding: 14px 16px;
    background: rgba(13, 15, 18, .5);
    border: 1px solid rgba(245, 247, 250, .12);
    border-radius: 10px;
    color: var(--r-on-dark);
    font-family: var(--r-body);
    font-size: 15px;
    line-height: 1.4;
    transition: border-color .15s ease, background .15s ease;
}

body.home-redesign .home-cta-field input::placeholder {
    color: rgba(170, 179, 191, .6);
}

body.home-redesign .home-cta-field input:focus {
    outline: none;
    border-color: var(--r-yellow);
    background: rgba(13, 15, 18, .7);
}

/*
 * Нативная валидация: :user-invalid срабатывает только после потери фокуса или submit.
 * Тёмная палитра — мягкий красный для ошибок, жёлтый для валидных полей.
 */
body.home-redesign .home-cta-field input:user-invalid {
    border-color: #ff8a8a;
    background-color: rgba(217, 48, 37, .12);
}

body.home-redesign .home-cta-field input:user-valid:not(:placeholder-shown) {
    border-color: rgba(74, 222, 128, .55);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5 L6.5 12 L13 5' stroke='%234ade80' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 42px;
}

/* Кастомное сообщение об ошибке под полем (показывается через :has) */
body.home-redesign .home-cta-field-error {
    display: none;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
    color: #ff8a8a;
}

body.home-redesign .home-cta-field:has(input:user-invalid) .home-cta-field-error {
    display: block;
}

body.home-redesign .home-cta-comment {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

body.home-redesign .home-cta-comment > span {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .02em;
    color: var(--r-on-dark-muted);
}

body.home-redesign .home-cta-comment textarea {
    padding: 14px 16px;
    background: #000;
    border: 1px solid rgba(245, 247, 250, .12);
    border-radius: 10px;
    color: var(--r-on-dark);
    font-family: var(--r-body);
    font-size: 15px;
    line-height: 1.5;
    min-height: 110px;
    resize: vertical;
    transition: border-color .15s ease, background .15s ease;
}

body.home-redesign .home-cta-comment textarea::placeholder {
    color: rgba(170, 179, 191, .6);
}

body.home-redesign .home-cta-comment textarea:focus {
    outline: none;
    border-color: var(--r-yellow);
}

body.home-redesign .home-cta-file {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

body.home-redesign .home-cta-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(245, 197, 24, .12);
    border: 1px solid rgba(245, 197, 24, .35);
    border-radius: 8px;
    color: var(--r-yellow);
    font-family: var(--r-body);
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

body.home-redesign .home-cta-file-btn svg {
    flex-shrink: 0;
}

body.home-redesign .home-cta-file-btn:hover {
    background: rgba(245, 197, 24, .2);
    border-color: var(--r-yellow);
}

body.home-redesign .home-cta-file-name {
    font-size: 13px;
    color: var(--r-on-dark-muted);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.home-redesign .home-cta-file-name:not(:empty)::before {
    content: "✓ ";
    color: var(--r-yellow);
    font-weight: 700;
}

body.home-redesign .home-cta-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--r-on-dark-muted);
}

body.home-redesign .home-cta-consent input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    accent-color: var(--r-yellow);
    flex-shrink: 0;
}

body.home-redesign .home-cta-consent > span {
    flex: 1 1 auto;
    min-width: 0;
}

body.home-redesign .home-cta-consent a {
    color: var(--r-on-dark);
    text-decoration: underline;
    text-decoration-color: rgba(245, 247, 250, .35);
}

body.home-redesign .home-cta-consent a:hover {
    text-decoration-color: var(--r-yellow);
    color: var(--r-yellow);
}

body.home-redesign .home-cta-submit {
    width: 100%;
    justify-content: center;
    padding: 18px 32px;
    font-size: 16px;
}

body.home-redesign .home-cta-form .form-status {
    margin: 16px 0 0;
    font-size: 14px;
    text-align: center;
    color: var(--r-on-dark-muted);
}

body.home-redesign .home-cta-form .form-status.is-error {
    color: #ff8a8a;
}

body.home-redesign .home-cta-form .form-status.is-success {
    color: var(--r-yellow);
}

body.home-redesign .home-cta-form .form-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- АДАПТИВНОСТЬ ДЛЯ НОВЫХ БЛОКОВ (Container Queries) ----------
 * Каждая секция (home-expertise, home-cases-r, home-process-r, home-cta-r)
 * объявлена `container-type: inline-size` выше. Карточки реагируют
 * на ширину СВОЕЙ секции, а не окна — если завтра вставим эти блоки
 * в боковую колонку, они адаптируются корректно.
 *
 * Браузерная поддержка: Container Queries — Baseline с 2023-02-14.
 */

/* БЛОК 1: expertise — 4 → 2 → 1 колонка */
@container (max-width: 1024px) {
    body.home-redesign .expertise-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@container (max-width: 560px) {
    body.home-redesign .expertise-grid {
        grid-template-columns: 1fr;
    }

    body.home-redesign .expertise-card {
        padding: 24px 22px;
    }
}

/* БЛОК 3: process — 4 → 2 (без линии) → 1 колонка */
@container (max-width: 1024px) {
    body.home-redesign .process-timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 24px;
    }

    body.home-redesign .process-timeline::before {
        display: none;
    }
}

@container (max-width: 560px) {
    body.home-redesign .process-timeline {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* БЛОК 2: cases — 2 колонки → 1 колонка (фиксированная высота карточек) */
@container (max-width: 720px) {
    body.home-redesign .home-cases-r .cases-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    body.home-redesign .home-cases-r .case-card {
        height: 280px;
    }
}

/* БЛОК 5: форма — 3 колонки → 1 */
@container (max-width: 720px) {
    body.home-redesign .home-cta-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 2560px) {
    body.home-redesign .hero-redesign .hero-title {
        font-size: 75px;
        font-weight: 500;
    }
}
