/* ============================================================
   pages.css — Page-level layouts and supplementary components
   Дополняет main.css и components.css новыми классами для страниц.
   ============================================================ */

/* ------ Site logo (brand mark) ------ */
.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-slate-900);
    font-weight: 700;
    white-space: nowrap;
}
.site-logo__mark {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--grad-accent);
    color: var(--color-white);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.site-logo__mark svg { width: 24px; height: 24px; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.site-logo__name { font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.01em; color: var(--color-slate-900); }
.site-logo__name em { font-style: normal; color: var(--color-primary); }
.site-logo__tagline { font-size: 0.75rem; font-weight: 500; color: var(--color-text-muted); }

.site-logo--on-dark { color: var(--color-white); }
.site-logo--on-dark .site-logo__name { color: var(--color-white); }
.site-logo--on-dark .site-logo__tagline { color: var(--color-slate-400); }

/* ------ Eyebrow label ------ */
.eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}
.eyebrow--on-dark { color: #FFB48A; }

/* ------ Section helpers ------ */
.section--muted { background: var(--color-bg-alt); }
.section__head {
    max-width: 820px;
    margin: 0 auto var(--space-12);
    text-align: center;
}
.section__head--left { margin-left: 0; text-align: left; }
.section__head h2 { margin-bottom: var(--space-4); }
.section__head p { color: var(--color-text-muted); font-size: 1.0625rem; line-height: 1.55; margin: 0; }
.section__head--light h2 { color: var(--color-white); }
.section__head-title--light { color: var(--color-white); }
.section__head-sub--light { color: rgba(255, 255, 255, 0.75) !important; }

.lead {
    font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
    line-height: 1.55;
    color: var(--color-text-muted);
}

/* ============================================================
   HERO (home) — адаптация под контент TexGeo Eco
   ============================================================ */
.hero {
    position: relative;
    padding: var(--space-16) 0 var(--space-20);
    background:
        radial-gradient(ellipse 800px 400px at 85% 0%, rgba(232, 104, 24, 0.1), transparent 60%),
        radial-gradient(ellipse 700px 400px at 0% 100%, rgba(32, 72, 136, 0.08), transparent 60%),
        linear-gradient(180deg, #FFFFFF, #F8FAFC);
    color: var(--color-slate-900);
}
.hero::before { display: none; }
.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: var(--space-12);
    align-items: center;
}
.hero__content:not(.hero__content--centered) { max-width: 640px; }
.hero__eyebrow {
    display: inline-flex; align-items: center;
    padding: 6px 14px;
    background: rgba(232, 104, 24, 0.08);
    border: 1px solid rgba(232, 104, 24, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.8125rem; font-weight: 600; color: var(--color-primary);
    letter-spacing: 0.02em;
    margin-bottom: var(--space-5);
}
.hero__title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--color-slate-900);
    margin-bottom: var(--space-5);
}
.hero__lead {
    font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
    line-height: 1.6;
    color: var(--color-slate-700);
    margin-bottom: var(--space-8);
    max-width: 580px;
}
.hero__lead strong { color: var(--color-slate-900); font-weight: 700; }
.hero__cta-row {
    display: flex; flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}
.hero__markers {
    list-style: none;
    padding: 0; margin: 0;
    display: flex; flex-wrap: wrap;
    gap: var(--space-3) var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}
.hero__markers li {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.9375rem; color: var(--color-slate-700); font-weight: 500;
    margin: 0;
}
.hero__marker-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
}
.hero__visual {
    position: relative;
    max-width: 480px;
    margin-left: auto;
}
.hero__visual-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 4 / 5;
}
.hero__visual-card svg { width: 100%; height: 100%; display: block; }
.hero__visual-badge {
    position: absolute;
    right: -16px; bottom: -24px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 16px 22px;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    gap: 2px;
    border: 1px solid var(--color-border);
    max-width: 220px;
}
.hero__visual-badge-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    line-height: 1;
}
.hero__visual-badge-text {
    font-size: 0.75rem;
    color: var(--color-slate-700);
    font-weight: 500;
    line-height: 1.4;
}
@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__visual { max-width: 400px; margin: 0 auto; }
    .hero__visual-badge { right: 8px; bottom: -16px; }
}

/* ============================================================
   SUPPORT BLOCK — 4 этапов (home)
   ============================================================ */
.support-section { background: var(--color-bg-alt); }
.support-block {
    padding: 0;
    background: transparent;
}
.support-block__head {
    max-width: 720px;
    margin: 0 auto var(--space-10);
    text-align: center;
}
.support-block__head h2 { margin-bottom: var(--space-3); }
.support-block__lead {
    color: var(--color-text-muted);
    font-size: 1.0625rem;
    line-height: 1.55;
    margin: 0;
}
.support-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}
.support-card {
    position: relative;
    padding: var(--space-6);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--trans-base);
}
.support-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.support-card__step {
    position: absolute;
    top: var(--space-4);
    right: var(--space-5);
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--color-slate-200);
    line-height: 1;
    letter-spacing: -0.02em;
}
.support-card__icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    background: var(--grad-accent);
    color: var(--color-white);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: var(--space-4);
}
.support-card__icon svg { width: 24px; height: 24px; }
.support-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--color-slate-900);
}
.support-card p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin: 0;
}
.support-block__note {
    text-align: center;
    margin: var(--space-8) auto 0;
    font-size: 1.0625rem;
    color: var(--color-slate-700);
}
.support-block__note strong { color: var(--color-primary); }
.support-block__link {
    display: inline-block;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    margin-left: 12px;
}
.support-block__link:hover { color: var(--color-primary-dark); text-decoration: underline; }

@media (max-width: 900px) {
    .support-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .support-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ABOUT TEASER (home)
   ============================================================ */
.about-teaser {
    max-width: 100%;
}
.about-teaser__content {
    max-width: 760px;
    margin: 0 auto var(--space-10);
    text-align: center;
}
.about-teaser__content h2 { margin-bottom: var(--space-4); }
.about-teaser__content .lead { margin: 0 auto var(--space-4); max-width: 680px; }
.about-teaser__content p { color: var(--color-text-muted); max-width: 680px; margin: 0 auto; line-height: 1.6; }
.about-teaser__cta { margin-top: var(--space-6); }

/* Stats grid */
.stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-6);
    padding: var(--space-8) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.stat { text-align: center; }
.stat__value {
    font-size: clamp(1.5rem, 2.8vw, 2.125rem);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.stat__label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}
@media (max-width: 1024px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   CATEGORY CARDS (home — 3 направления)
   ============================================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}
.category-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--color-slate-900);
    transition: all var(--trans-base);
}
.category-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: var(--color-slate-900);
}
.category-card__icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    display: inline-flex; align-items: center; justify-content: center;
}
.category-card__icon svg { width: 28px; height: 28px; }
.category-card h3 { font-size: 1.25rem; margin-bottom: var(--space-2); color: var(--color-slate-900); }
.category-card p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0;
    flex-grow: 1;
}
.category-card__link {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.category-card:hover .category-card__link { gap: 10px; }
@media (max-width: 900px) { .category-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .category-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ADVANTAGES GRID (home — 6 преимуществ)
   ============================================================ */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}
.advantage-card {
    padding: var(--space-5);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--trans-base);
}
.advantage-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.advantage-card__icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    background: rgba(232, 104, 24, 0.1);
    color: var(--color-primary);
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: var(--space-4);
}
.advantage-card__icon svg { width: 22px; height: 22px; }
.advantage-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--color-slate-900);
}
.advantage-card p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin: 0;
}
@media (max-width: 900px) { .advantages-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .advantages-grid { grid-template-columns: 1fr; } }

/* ============================================================
   VIDEO BLOCK (home — производственная база)
   ============================================================ */
.video-block {
    max-width: 960px;
    margin: 0 auto;
}
.video-block__placeholder {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background:
        radial-gradient(ellipse at center, rgba(232, 104, 24, 0.15), transparent 70%),
        var(--grad-hero);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: var(--space-4);
    box-shadow: var(--shadow-xl);
    cursor: pointer;
    transition: transform var(--trans-base);
}
.video-block__placeholder:hover { transform: scale(1.005); }
.video-block__play {
    width: 88px;
    height: 88px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
    transition: transform var(--trans-base);
}
.video-block__placeholder:hover .video-block__play { transform: scale(1.08); }
.video-block__caption {
    color: rgba(255,255,255,0.82);
    font-size: 0.9375rem;
    font-weight: 500;
}

/* ============================================================
   CLIENTS GRID (home — наши клиенты)
   ============================================================ */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-3);
    list-style: none;
    padding: 0;
    margin: 0;
}
.clients-grid__item {
    padding: var(--space-4) var(--space-5);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    color: var(--color-slate-700);
    font-size: 0.9375rem;
    transition: all var(--trans-fast);
    margin: 0;
}
.clients-grid__item:hover {
    border-color: var(--color-primary);
    color: var(--color-slate-900);
    background: var(--color-white);
}
@media (max-width: 900px) { .clients-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .clients-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   BLOG CARDS (home — 3 карточки)
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}
.blog-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--trans-base);
}
.blog-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.blog-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.blog-card__link:hover { color: inherit; }
.blog-card__image {
    aspect-ratio: 16 / 10;
    background: var(--color-slate-100);
    position: relative;
    overflow: hidden;
}
.blog-card__image svg { width: 100%; height: 100%; display: block; }
.blog-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.18) 100%);
    pointer-events: none;
}
.blog-card__body { padding: var(--space-5) var(--space-6) var(--space-6); }
.blog-card__meta {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: var(--space-3);
}
.blog-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-slate-900);
    margin-bottom: var(--space-3);
}
.blog-card__excerpt {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    margin-bottom: var(--space-4);
}
.blog-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-primary);
    transition: gap var(--trans-fast);
}
.blog-card:hover .blog-card__cta { gap: 10px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ (home + dedicated page)
   ============================================================ */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item__toggle {
    position: relative;
    width: 22px; height: 22px;
    flex-shrink: 0;
}
.faq-item__toggle::before,
.faq-item__toggle::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-primary);
    border-radius: 2px;
}
.faq-item__toggle::before { width: 14px; height: 2px; }
.faq-item__toggle::after { width: 2px; height: 14px; transition: transform var(--trans-fast); }
.faq-item[data-open="true"] .faq-item__toggle::after { transform: translate(-50%, -50%) scaleY(0); }

/* ============================================================
   CTA BLOCK (final)
   ============================================================ */
.cta-block {
    background: var(--grad-hero);
    color: var(--color-white);
    padding: var(--space-16);
    border-radius: var(--radius-xl);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-10);
    align-items: center;
    position: relative;
    overflow: hidden;
    text-align: left;
}
.cta-block::before {
    content: "";
    position: absolute;
    top: -30%; right: -10%;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(232, 104, 24, 0.3), transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}
.cta-block__content { position: relative; }
.cta-block__content h2 { color: var(--color-white); margin-bottom: var(--space-3); }
.cta-block__content p { color: rgba(255,255,255,0.85); font-size: 1.0625rem; line-height: 1.55; margin: 0; }
.cta-block__content .eyebrow { color: #FFB48A; }
.cta-block__actions {
    position: relative;
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}
.btn--light {
    background: var(--color-white);
    color: var(--color-slate-900);
}
.btn--light:hover { background: var(--color-slate-100); color: var(--color-slate-900); }
@media (max-width: 720px) {
    .cta-block { grid-template-columns: 1fr; padding: var(--space-10); text-align: left; }
}

/* ============================================================
   SITE FOOTER — adjusted
   ============================================================ */
.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: var(--space-10);
    margin-bottom: var(--space-10);
}
.site-footer__brand p {
    color: var(--color-slate-400);
    font-size: 0.9375rem;
    line-height: 1.55;
    margin-top: var(--space-4);
}
.site-footer__col h4 {
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-4);
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col ul li { margin-bottom: 10px; }
.site-footer__col a {
    color: var(--color-slate-400);
    font-size: 0.9375rem;
    transition: color var(--trans-fast);
}
.site-footer__col a:hover { color: var(--color-primary); }
.site-footer__contact { margin-bottom: var(--space-3); }
.site-footer__contact strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-slate-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}
.site-footer__contact span,
.site-footer__contact a {
    font-size: 0.9375rem;
    color: var(--color-slate-300);
    line-height: 1.5;
}
.site-footer__contact a:hover { color: var(--color-primary); }

@media (max-width: 900px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
    .site-footer__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}
.product-detail__media {
    aspect-ratio: 1;
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.product-detail__media svg { width: 100%; height: 100%; }
.product-detail__info h1 { margin-bottom: var(--space-4); }
.product-detail__badges {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
}
.product-detail__badge {
    padding: 4px 10px;
    background: rgba(32, 72, 136, 0.08);
    color: var(--color-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}
.product-detail__lead {
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}
.product-detail__cta-row {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    padding-top: var(--space-6);
    border-top: 1px solid var(--color-border);
}
@media (max-width: 900px) {
    .product-detail { grid-template-columns: 1fr; }
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-4) 0;
}
.spec-table tr { border-bottom: 1px solid var(--color-border); }
.spec-table td {
    padding: 12px 0;
    font-size: 0.9375rem;
    line-height: 1.4;
}
.spec-table td:first-child {
    color: var(--color-text-muted);
    width: 55%;
}
.spec-table td:last-child {
    font-weight: 600;
    color: var(--color-slate-900);
}

.advantages-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.advantages-list li {
    position: relative;
    padding: var(--space-4) var(--space-5) var(--space-4) 3rem;
    background: rgba(232, 104, 24, 0.04);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-slate-700);
    margin-bottom: 0;
}
.advantages-list li::before {
    content: "";
    position: absolute;
    left: var(--space-4);
    top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 10 9 14 15 6'/></svg>");
    background-size: 14px 14px;
    background-position: center;
    background-repeat: no-repeat;
}

/* ============================================================
   BLOG ARTICLE PAGE
   ============================================================ */
.article {
    max-width: 760px;
    margin: 0 auto;
    padding: var(--space-10) 0 var(--space-16);
}
.article__meta {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}
.article h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: var(--space-6); line-height: 1.15; }
.article h2 {
    font-size: clamp(1.375rem, 2.4vw, 1.75rem);
    margin: var(--space-10) 0 var(--space-4);
    color: var(--color-slate-900);
}
.article h3 { font-size: 1.25rem; margin: var(--space-8) 0 var(--space-3); color: var(--color-slate-900); }
.article p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-slate-700);
    margin-bottom: var(--space-4);
}
.article ul, .article ol {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-slate-700);
    padding-left: 1.5rem;
    margin-bottom: var(--space-5);
}
.article ul li, .article ol li { margin-bottom: var(--space-2); }
.article strong { color: var(--color-slate-900); font-weight: 700; }
.article__cover {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-8);
    background: var(--color-bg-alt);
}
.article__cover svg { width: 100%; height: 100%; display: block; }

.article__footer {
    margin-top: var(--space-10);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ============================================================
   LOGISTICS PAGE / ADVANTAGES PAGE / DOCUMENTS PAGE
   ============================================================ */
.page-content {
    max-width: 920px;
    margin: 0 auto;
}
.page-content h2 {
    font-size: clamp(1.375rem, 2.6vw, 1.875rem);
    margin: var(--space-10) 0 var(--space-4);
    color: var(--color-slate-900);
}
.page-content h3 {
    font-size: 1.25rem;
    margin: var(--space-6) 0 var(--space-3);
    color: var(--color-slate-900);
}
.page-content p {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--color-slate-700);
    margin-bottom: var(--space-4);
}
.page-content ul {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--color-slate-700);
    padding-left: 1.5rem;
    margin-bottom: var(--space-5);
}
.page-content ul li { margin-bottom: var(--space-2); }
.page-content strong { color: var(--color-slate-900); font-weight: 700; }

.comparison-table-wrap {
    overflow-x: auto;
    margin: var(--space-6) 0 var(--space-10);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    font-size: 0.9375rem;
}
.comparison-table th,
.comparison-table td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
    line-height: 1.5;
}
.comparison-table th {
    background: var(--color-bg-alt);
    font-weight: 700;
    color: var(--color-slate-900);
    font-size: 0.875rem;
}
.comparison-table th.is-primary {
    background: rgba(232, 104, 24, 0.08);
    color: var(--color-primary);
}
.comparison-table td.is-primary {
    background: rgba(232, 104, 24, 0.04);
    font-weight: 600;
    color: var(--color-slate-900);
}
.comparison-table tr:last-child td { border-bottom: 0; }
.comparison-verdict {
    font-weight: 700;
    font-style: italic;
    color: var(--color-slate-900);
}

/* Documents list */
.docs-list {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: var(--space-6) 0;
}
.docs-list__item {
    padding: var(--space-5);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}
.docs-list__item:last-child { border-bottom: 0; }
.docs-list__icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-md);
    background: rgba(232, 104, 24, 0.1);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.docs-list__body { flex-grow: 1; }
.docs-list__name {
    font-weight: 700;
    color: var(--color-slate-900);
    font-size: 1rem;
    margin-bottom: 2px;
    display: block;
}
.docs-list__meta {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ============================================================
   CONTACTS PAGE
   ============================================================ */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-10);
}
.contacts-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}
.contact-item {
    padding: var(--space-5);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
}
.contact-item__icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    background: var(--grad-accent);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item__body { flex-grow: 1; }
.contact-item__label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
    display: block;
}
.contact-item__value {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-slate-900);
    line-height: 1.5;
    display: block;
}
.contact-item__value a { color: var(--color-slate-900); }
.contact-item__value a:hover { color: var(--color-primary); }

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    aspect-ratio: 4 / 3;
    min-height: 420px;
    background: var(--color-bg-alt);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-form {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
}
.contact-form h2 { margin-bottom: var(--space-2); }
.contact-form__sub { color: var(--color-text-muted); margin-bottom: var(--space-6); }

@media (max-width: 900px) {
    .contacts-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content {
    max-width: 820px;
    margin: 0 auto;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--color-slate-700);
}
.legal-content h2 {
    font-size: 1.25rem;
    margin: var(--space-8) 0 var(--space-3);
    color: var(--color-slate-900);
    font-weight: 700;
}
.legal-content h3 {
    font-size: 1.0625rem;
    margin: var(--space-5) 0 var(--space-3);
    color: var(--color-slate-900);
    font-weight: 700;
}
.legal-content p { margin-bottom: var(--space-3); }
.legal-content ol, .legal-content ul {
    padding-left: 1.5rem;
    margin-bottom: var(--space-3);
}
.legal-content li { margin-bottom: 6px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: var(--space-4);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}
.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--trans-fast);
}
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb__sep {
    opacity: 0.4;
    user-select: none;
}
.breadcrumb span:last-child { color: var(--color-white); font-weight: 500; }

/* Breadcrumb на светлом фоне (для article) */
.article .breadcrumb { color: var(--color-text-muted); margin-bottom: var(--space-6); }
.article .breadcrumb a { color: var(--color-text-muted); }
.article .breadcrumb a:hover { color: var(--color-primary); }
.article .breadcrumb span:last-child { color: var(--color-slate-900); }

/* ============================================================
   CTA-BLOCK внутри page-content (contacts-like inline block)
   ============================================================ */
.page-content .cta-block {
    margin-top: var(--space-12);
}

/* ============================================================
   Card grid helpers — бывшие в main.css подвидены
   ============================================================ */
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid--3 { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ sections (несколько секций на одной странице)
   ============================================================ */
.faq-section { margin-bottom: var(--space-10); }
.faq-section h2 {
    font-size: 1.375rem;
    margin-bottom: var(--space-5);
    color: var(--color-slate-900);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

/* ============================================================
   Product grid spacing on catalog
   ============================================================ */
.catalog-content .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-5);
}

/* ============================================================
   NO-JS FALLBACK: reveal contents are visible without JS
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; }
}
/* If JS hasn't run within 2.5s, force reveal */
.no-js .reveal { opacity: 1; transform: none; }

/* ============================================================
   TOPBAR (над шапкой, с фирменным оттенком)
   ============================================================ */
.site-topbar {
    background: linear-gradient(90deg, #204888 0%, #2a5bab 100%);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.8125rem;
    padding: 8px 0;
    position: relative;
    z-index: 51;
}
.site-topbar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    line-height: 1.4;
}
.site-topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    white-space: nowrap;
}
.site-topbar__item svg {
    width: 14px;
    height: 14px;
    opacity: 0.85;
    color: #FFB48A;
    flex-shrink: 0;
}
.site-topbar__sep {
    opacity: 0.35;
    font-weight: 400;
}
@media (max-width: 720px) {
    .site-topbar__sep { display: none; }
    .site-topbar__inner { justify-content: flex-start; flex-wrap: wrap; }
    .site-topbar__item { font-size: 0.75rem; }
}

/* ============================================================
   HERO — фирменный фон (градиент + blob'ы)
   ============================================================ */
.hero {
    position: relative;
    padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
    background:
        linear-gradient(180deg, #FFF8F1 0%, #F4F7FD 100%);
    color: var(--color-slate-900);
    overflow: hidden;
}
.hero::before { display: none; }

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.hero__bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
}
.hero__bg-blob--orange {
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(232, 104, 24, 0.55), rgba(232, 104, 24, 0) 70%);
    top: -180px;
    right: -120px;
}
.hero__bg-blob--blue {
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, rgba(32, 72, 136, 0.45), rgba(32, 72, 136, 0) 70%);
    bottom: -240px;
    left: -160px;
}
.hero .container { position: relative; z-index: 1; }

/* ============================================================
   HERO — улучшенный контраст заголовка и lead
   ============================================================ */
.hero__title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--color-slate-900);
    margin-bottom: var(--space-5);
    font-weight: 800;
}
.hero__title em {
    font-style: normal;
    color: var(--color-primary);
    background: linear-gradient(180deg, transparent 62%, rgba(232, 104, 24, 0.18) 62%);
    padding: 0 4px;
}
.hero__lead {
    font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
    line-height: 1.6;
    color: #334155;
    margin-bottom: var(--space-8);
    max-width: 620px;
}
.hero__lead strong {
    color: var(--color-slate-900);
    font-weight: 700;
}

/* ============================================================
   BTN GHOST-LIGHT (для светлого hero)
   ============================================================ */
.btn--ghost-light {
    background: rgba(255, 255, 255, 0.65);
    color: var(--color-slate-900);
    border: 1.5px solid rgba(32, 72, 136, 0.22);
    backdrop-filter: blur(4px);
}
.btn--ghost-light:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
}

/* ============================================================
   FOOTER — связаться блок (без выдуманных контактов)
   ============================================================ */
.site-footer__contact-note {
    color: var(--color-slate-400);
    font-size: 0.9375rem;
    line-height: 1.55;
    margin-bottom: var(--space-4);
}
.site-footer__contact-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: var(--space-5);
}
.site-footer__contact-meta {
    margin-bottom: var(--space-3);
}
.site-footer__contact-meta strong {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-slate-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}
.site-footer__contact-meta span {
    font-size: 0.9375rem;
    color: var(--color-slate-300);
    line-height: 1.45;
}

/* Footer buttons — sm variant for tight space */
.btn--sm {
    padding: 8px 14px;
    font-size: 0.8125rem;
}

/* ============================================================
   BLOG GRID — 2-column variant
   ============================================================ */
.blog-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .blog-grid--2 { grid-template-columns: 1fr; } }

/* ============================================================
   CONTRAST FIXES — проверенные пары текст/фон
   ============================================================ */
.eyebrow {
    color: var(--color-primary-dark);
    font-weight: 700;
}
.section--dark .eyebrow { color: #FFB48A; }

/* hero markers: более контрастные */
.hero__markers li {
    color: #0F172A;
    font-size: 0.9375rem;
}
.hero__marker-dot {
    background: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(232, 104, 24, 0.2);
}

/* ============================================================
   CONTACT ITEM accent variant
   ============================================================ */
.contact-item--accent {
    background: linear-gradient(135deg, rgba(232, 104, 24, 0.08) 0%, rgba(32, 72, 136, 0.05) 100%);
    border-color: var(--color-primary);
}
.contact-item--accent .contact-item__icon {
    background: var(--color-primary);
}

/* ============================================================
   Final contrast sweep — typography colors tuned
   ============================================================ */
body {
    color: #0F172A;
}
p, li, td, label, span {
    color: inherit;
}
.page-content p { color: #334155; }
.page-content p strong { color: #0F172A; }
.page-content ul, .page-content ol { color: #334155; }

.faq-item__q { color: #0F172A; font-weight: 600; }
.faq-item__a { color: #475569; }
.faq-item__a p { color: inherit; }

.product-card__title { color: #0F172A; }
.product-card__description { color: #475569; }

.about-teaser__content p { color: #334155; }
.about-teaser__content p strong { color: #0F172A; }

.section__head p { color: #475569; }

/* section--muted: ensure proper contrast between neutral/section-muted */
.section--muted {
    background: #F8FAFC;
}
.section--muted .eyebrow { color: var(--color-primary-dark); }

/* primary button text needs extra contrast in case BG blurs on weaker monitors */
.btn--primary {
    color: #ffffff;
    font-weight: 600;
}
.btn--primary:hover { color: #ffffff; }

/* legal content — better readability */
.legal-content {
    color: #334155;
    line-height: 1.7;
}
.legal-content h1 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: #0F172A;
    margin-bottom: var(--space-4);
}
.legal-content h2 { color: #0F172A; margin-top: var(--space-8); }
.legal-content h3 { color: #0F172A; margin-top: var(--space-5); }
.legal-content li { color: #334155; margin-bottom: 6px; }
.legal-content em { color: #64748B; }
.legal-content a {
    color: var(--color-primary-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.legal-content a:hover { color: var(--color-primary); }

/* ============================================================
   REVEAL — гарантия видимости контента даже без JS / с reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; }
}
/* Фоллбек: если JS не сработает в течение 3 секунд,
   появление анимируется сразу через CSS. */
.reveal {
    animation: reveal-fallback 0.6s ease 3s forwards;
}
@keyframes reveal-fallback {
    to { opacity: 1; transform: none; }
}
/* Если reveal уже включен (is-visible), анимация не нужна */
.reveal.is-visible {
    animation: none;
    opacity: 1;
    transform: none;
}

/* ============================================================
   OVERRIDE main.css dark-hero defaults (new hero is LIGHT)
   Новая hero светлая, но main.css содержит остатки старых стилей
   для тёмной hero — переопределяем с высокой специфичностью.
   ============================================================ */
.hero h1,
.hero .hero__title {
    color: #0F172A !important;
}
.hero h1 em,
.hero .hero__title em {
    color: var(--color-primary) !important;
}
.hero .hero__lead {
    color: #334155 !important;
}
.hero .hero__lead strong {
    color: #0F172A !important;
}
.hero .hero__markers li {
    color: #0F172A !important;
}
.hero .hero__markers strong {
    color: #0F172A !important;
}
/* Убираем чёрный градиент-фон из main.css старой heRО */
.hero {
    background: linear-gradient(180deg, #FFF8F1 0%, #F4F7FD 100%) !important;
    color: #0F172A !important;
}

/* ============================================================
   HERO v3 — более выраженный синий оттенок + ribbon
   ============================================================ */
.hero {
    background:
        linear-gradient(180deg, #FFF4E6 0%, #E8EDFB 55%, #D8E3F5 100%) !important;
    border-bottom: 1px solid rgba(32, 72, 136, 0.08);
}
/* Усиливаем синий blob — теперь он более заметный и распределён шире */
.hero__bg-blob--blue {
    width: 900px !important;
    height: 900px !important;
    background: radial-gradient(circle, rgba(32, 72, 136, 0.55), rgba(32, 72, 136, 0) 65%) !important;
    bottom: -300px !important;
    left: -180px !important;
    opacity: 0.7 !important;
}
.hero__bg-blob--orange {
    width: 560px !important;
    height: 560px !important;
    background: radial-gradient(circle, rgba(232, 104, 24, 0.45), rgba(232, 104, 24, 0) 70%) !important;
    top: -160px !important;
    right: -100px !important;
    opacity: 0.55 !important;
}

/* Ribbon: «Поставки по всему СНГ» */
.hero__ribbon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 14px;
    background: linear-gradient(90deg, #204888 0%, #2a5bab 100%);
    color: #ffffff;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 18px rgba(32, 72, 136, 0.22);
    margin-bottom: var(--space-4);
}
.hero__ribbon svg {
    width: 14px;
    height: 14px;
    color: #FFB48A;
    flex-shrink: 0;
}
@media (max-width: 520px) {
    .hero__ribbon { font-size: 0.75rem; padding: 6px 14px; }
    .hero__ribbon svg { width: 12px; height: 12px; }
}

/* ============================================================
   BTN FIX — исправление нечитаемых кнопок
   ============================================================ */

/* btn--ghost-light: универсальная кнопка, теперь нормально читается
   И на светлых, и на тёмных фонах (footer, dark-hero, dark-section) */
.btn--ghost-light {
    background: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: none;
}
.btn--ghost-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    color: #ffffff;
}

/* Но в hero (светлом) та же кнопка должна быть тёмной */
.hero .btn--ghost-light {
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-slate-900);
    border: 1.5px solid rgba(32, 72, 136, 0.3);
}
.hero .btn--ghost-light:hover {
    background: #ffffff;
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
}

/* btn--light: для тёмных CTA-блоков (cta-block, section--dark) — теперь
   с контрастным тёмным текстом (был невидимый или слишком светлый) */
.btn--light {
    background: #ffffff;
    color: #0F172A;
    border: 1.5px solid #ffffff;
    font-weight: 600;
}
.btn--light:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary-dark);
    border-color: var(--color-bg-alt);
}

/* В footer (site-footer) — вся колонка тёмная, кнопки-меньше и контрастные */
.site-footer .btn--primary {
    background: var(--color-primary);
    color: #ffffff;
    border: 1.5px solid var(--color-primary);
}
.site-footer .btn--primary:hover {
    background: var(--color-primary-dark);
    color: #ffffff;
    border-color: var(--color-primary-dark);
}

/* Ссылки-контакты в футере — тот же слот, что был */
.site-footer__contact-meta a {
    color: #CBD5E1;
    font-size: 0.9375rem;
    transition: color var(--trans-fast);
}
.site-footer__contact-meta a:hover {
    color: var(--color-primary-light);
}

/* ============================================================
   PRODUCT CARDS — полностью кликабельные (a.product-card)
   ============================================================ */
a.product-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
a.product-card:hover {
    color: inherit;
}
a.product-card:hover .product-card__title {
    color: var(--color-primary-dark);
}
/* span.product-card__link теперь не кликабельный элемент, а маркер */
span.product-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-primary);
    align-self: flex-start;
    cursor: inherit;
}
a.product-card:hover span.product-card__link { gap: 10px; }

/* ============================================================
   HERO v4 — компактнее (55% экрана максимум) + ribbon внизу
   ============================================================ */
.hero {
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem) !important;
}
.hero__title {
    font-size: clamp(1.875rem, 3.6vw, 2.75rem) !important;
    line-height: 1.1 !important;
    margin-bottom: var(--space-4) !important;
}
.hero__lead {
    font-size: clamp(1rem, 1.2vw, 1.0625rem) !important;
    margin-bottom: var(--space-5) !important;
}
.hero__cta-row {
    margin-bottom: var(--space-5) !important;
}
.hero__markers {
    padding-top: var(--space-4) !important;
    padding-bottom: var(--space-4) !important;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-4);
}
.hero__eyebrow {
    margin-bottom: var(--space-3) !important;
    padding: 4px 12px !important;
    font-size: 0.75rem !important;
}
/* Картинка в hero — ниже, чтобы не раздувать общий высотный бокс */
.hero__visual-card {
    aspect-ratio: 4 / 4.2 !important;
}

/* Ribbon внизу hero — после маркеров. Стиль как lightweight-info-плашка */
.hero__content .hero__ribbon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 12px;
    background: linear-gradient(90deg, #204888 0%, #2a5bab 100%);
    color: #ffffff;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(32, 72, 136, 0.18);
    margin-top: 0;
    margin-bottom: 0;
}
.hero__content .hero__ribbon svg {
    width: 14px;
    height: 14px;
    color: #FFB48A;
    flex-shrink: 0;
}
@media (max-width: 520px) {
    .hero__content .hero__ribbon { font-size: 0.75rem; }
}

/* ============================================================
   CONTACT MAP — OpenStreetMap iframe
   ============================================================ */
.contact-map {
    margin-top: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg-alt);
}
.contact-map iframe {
    width: 100%;
    height: 320px;
    border: 0;
    display: block;
}
.contact-map__link {
    display: block;
    padding: 10px 16px;
    font-size: 0.8125rem;
    color: var(--color-primary);
    background: #ffffff;
    border-top: 1px solid var(--color-border);
    text-align: right;
    text-decoration: none;
    font-weight: 500;
    transition: background var(--trans-fast);
}
.contact-map__link:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary-dark);
}

/* ============================================================
   PRODUCT CARD IMAGES — реальные фото товаров
   ============================================================ */
.product-card__image {
    aspect-ratio: 4 / 3;
    background: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}
a.product-card:hover .product-card__image img {
    transform: scale(1.04);
}
.product-card__image svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================================
   PRODUCT DETAIL IMAGE — крупное фото на странице товара
   ============================================================ */
.product-detail__media {
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-detail__media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* ============================================================
   LOGO — новые PNG-файлы (вместо старых SVG-заглушек)
   ============================================================ */
.site-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}
/* Полный логотип (шапка) — PNG-картинка */
.site-logo__img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
@media (max-width: 720px) {
    .site-logo__img { height: 36px; }
}
@media (max-width: 480px) {
    .site-logo__img { height: 32px; }
}

/* Знак (футер) + текстовая часть рядом */
.site-logo__mark-img {
    display: block;
    height: 44px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* В футере текстовая часть остаётся (на белом знаке + текст светлый на тёмном фоне) */
.site-logo--on-dark .site-logo__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.site-logo--on-dark .site-logo__name {
    font-size: 1.125rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1;
}
.site-logo--on-dark .site-logo__name em {
    font-style: normal;
    color: var(--color-primary);
}
.site-logo--on-dark .site-logo__tagline {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

/* ============================================================
   HERO VISUAL v5 — реальное фото + два бейджа
   ============================================================ */
.hero__visual-card {
    aspect-ratio: 4 / 4 !important;
    background: #ffffff !important;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px -20px rgba(32, 72, 136, 0.25), 0 4px 12px rgba(15, 23, 42, 0.06);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero__visual-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10%;
    display: block;
}
.hero__visual-badges {
    position: absolute;
    bottom: -20px;
    right: -12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2;
}
.hero__visual-badge {
    background: #ffffff;
    padding: 14px 20px;
    border-radius: 14px;
    box-shadow: 0 8px 24px -6px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.06);
    min-width: 180px;
}
.hero__visual-badge-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.1;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.hero__visual-badge-text {
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.3;
    font-weight: 500;
}
.hero__visual-badge--accent {
    background: linear-gradient(135deg, #204888, #2a5bab);
    color: #ffffff;
}
.hero__visual-badge--accent .hero__visual-badge-num {
    color: #FFB48A;
}
.hero__visual-badge--accent .hero__visual-badge-text {
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 960px) {
    .hero__visual-card { margin: 0 auto; max-width: 420px; }
    .hero__visual-badges { right: 0; bottom: -24px; flex-direction: row; }
    .hero__visual-badge { min-width: 0; flex: 1; }
}

/* ============================================================
   ARTICLE COVER — реальное фото
   ============================================================ */
.article__cover {
    width: 100%;
    margin: var(--space-5) 0 var(--space-8);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.article__cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Blog card image — поддержка img (в отличие от SVG) */
.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.blog-card:hover .blog-card__image img,
a:hover .blog-card__image img {
    transform: scale(1.05);
}

/* ============================================================
   TOOL PAGES — общие стили для razmer, maket, material
   ============================================================ */
.tool-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: var(--space-8);
    align-items: flex-start;
}
@media (max-width: 960px) {
    .tool-layout { grid-template-columns: 1fr; }
}

.tool-form {
    background: #ffffff;
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    position: sticky;
    top: 20px;
}
.tool-form__title {
    font-size: 1.25rem;
    margin-bottom: 8px;
}
.tool-form__lead {
    color: #64748B;
    font-size: 0.9375rem;
    margin-bottom: var(--space-5);
}
.tool-form__hint {
    font-size: 0.8125rem;
    color: #64748B;
    margin-top: 6px;
    line-height: 1.45;
}
.tool-form__hint a {
    color: var(--color-primary);
    text-decoration: underline;
}
.tool-form__note {
    margin-top: var(--space-6);
    padding: 14px 16px;
    background: rgba(32, 72, 136, 0.06);
    border-left: 3px solid var(--color-secondary);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.tool-form__note svg {
    width: 20px;
    height: 20px;
    color: var(--color-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}
.tool-form__note p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #334155;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: var(--space-4);
}
@media (max-width: 520px) {
    .field-row { grid-template-columns: repeat(2, 1fr); }
}

.tool-input, .field__select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-slate-900);
    background: #ffffff;
    transition: border-color var(--trans-fast);
}
.tool-input:focus, .field__select:focus {
    outline: none;
    border-color: var(--color-primary);
}
.field__select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='none' stroke='%23475569' stroke-width='2' d='M2 4l4 4 4-4'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.tool-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}
.tool-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all var(--trans-fast);
}
.tool-radio input { accent-color: var(--color-primary); }
.tool-radio:has(input:checked) {
    border-color: var(--color-primary);
    background: rgba(232, 104, 24, 0.08);
    color: var(--color-primary-dark);
    font-weight: 600;
}

.range-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    outline: none;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.range-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.range-value {
    font-size: 0.8125rem;
    color: #64748B;
    margin-top: 4px;
    text-align: right;
}

.tool-result {
    min-height: 200px;
}
.tool-result__head {
    margin-bottom: var(--space-5);
}
.tool-result__head h3 {
    font-size: 1.375rem;
    color: var(--color-slate-900);
    margin-bottom: 6px;
}
.tool-result__head p {
    color: #64748B;
    font-size: 0.9375rem;
}
.tool-result__empty {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    background: #ffffff;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    color: #64748B;
}
.tool-result__empty h3 {
    color: var(--color-slate-900);
    margin-bottom: 8px;
    font-size: 1.125rem;
}

/* ============================================================
   RAZMER — match cards
   ============================================================ */
.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-4);
}
.match-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-decoration: none;
    color: inherit;
    transition: all var(--trans-fast);
    position: relative;
    overflow: hidden;
}
.match-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 20px -8px rgba(232, 104, 24, 0.2);
    transform: translateY(-2px);
}
.match-card__rank {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.match-card:nth-child(2) .match-card__rank { background: var(--color-secondary); }
.match-card:nth-child(3) .match-card__rank { background: #64748B; }
.match-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}
.match-card__image {
    aspect-ratio: 1 / 1;
    background: #F8FAFC;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.match-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.match-card__body h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-slate-900);
    margin: 0 0 6px;
    line-height: 1.3;
}
.match-card__dims {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-3);
}
.match-card__gaps {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8125rem;
    color: #475569;
    margin-bottom: var(--space-3);
}
.match-card__gaps strong { color: var(--color-slate-900); font-weight: 600; }
.match-card__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: auto;
}

/* ============================================================
   MAKET — constructor UI
   ============================================================ */
.maket-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: var(--space-6);
    align-items: flex-start;
}
@media (max-width: 900px) {
    .maket-layout { grid-template-columns: 1fr; }
}

.maket-sidebar {
    background: #ffffff;
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    position: sticky;
    top: 20px;
}
.maket-sidebar h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-slate-900);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.maket-models {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.maket-model {
    background: #F8FAFC;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    transition: all var(--trans-fast);
    text-align: center;
}
.maket-model img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    display: block;
    margin-bottom: 4px;
}
.maket-model span {
    font-size: 0.6875rem;
    color: #64748B;
    display: block;
}
.maket-model:hover { border-color: var(--color-border); }
.maket-model.is-selected {
    border-color: var(--color-primary);
    background: rgba(232, 104, 24, 0.04);
}

.maket-upload {
    display: block;
    padding: var(--space-5) var(--space-4);
    background: #F8FAFC;
    border: 2px dashed var(--color-border);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all var(--trans-fast);
}
.maket-upload:hover {
    border-color: var(--color-primary);
    background: rgba(232, 104, 24, 0.04);
}
.maket-upload svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
    margin-bottom: 8px;
}
.maket-upload span {
    display: block;
    font-weight: 600;
    color: var(--color-slate-900);
    font-size: 0.875rem;
}
.maket-upload small {
    display: block;
    color: #64748B;
    font-size: 0.75rem;
    margin-top: 4px;
}

.maket-preview {
    background: #ffffff;
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}
.maket-preview h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-slate-900);
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.maket-canvas-wrap {
    background: #F8FAFC;
    border-radius: 12px;
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}
.maket-canvas {
    position: relative;
    aspect-ratio: 1;
    max-width: 560px;
    margin: 0 auto;
}
.maket-bag {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.maket-logo {
    position: absolute;
    width: 30%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    max-height: 40%;
    object-fit: contain;
}
.maket-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: var(--space-3);
}
.maket-preview__note {
    font-size: 0.8125rem;
    color: #64748B;
    line-height: 1.55;
    margin: 0;
    padding: 12px 14px;
    background: rgba(32, 72, 136, 0.05);
    border-radius: 8px;
}
.maket-preview__note strong { color: var(--color-slate-900); }

/* ============================================================
   MATERIAL — result tiles
   ============================================================ */
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}
.result-tile {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    text-align: left;
    transition: all var(--trans-fast);
}
.result-tile:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}
.result-tile__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(232, 104, 24, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.result-tile__icon svg { width: 20px; height: 20px; }
.result-tile__value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-slate-900);
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: 4px;
}
.result-tile__label {
    font-size: 0.875rem;
    color: var(--color-slate-900);
    font-weight: 600;
    margin-bottom: 4px;
}
.result-tile__sub {
    font-size: 0.75rem;
    color: #64748B;
    line-height: 1.4;
}

.result-disclaimer {
    padding: 14px 16px;
    background: rgba(32, 72, 136, 0.05);
    border-radius: 8px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.8125rem;
    color: #475569;
    margin: 0;
}
.result-disclaimer svg {
    width: 18px;
    height: 18px;
    color: var(--color-secondary);
    flex-shrink: 0;
    margin-top: 1px;
}

/* ============================================================
   TOOLS BLOCK на главной (3 карточки с инструментами)
   ============================================================ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}
@media (max-width: 900px) {
    .tools-grid { grid-template-columns: 1fr; }
}

.tool-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-6);
    background: #ffffff;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    min-height: 260px;
}
.tool-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 12px 30px -12px rgba(232, 104, 24, 0.25);
    transform: translateY(-3px);
}
.tool-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    color: #ffffff;
}
.tool-card__icon svg {
    width: 28px;
    height: 28px;
}
.tool-card__icon--orange { background: linear-gradient(135deg, #E86818, #C85410); }
.tool-card__icon--blue { background: linear-gradient(135deg, #204888, #152E5A); }
.tool-card__icon--slate { background: linear-gradient(135deg, #334155, #0F172A); }

.tool-card h3 {
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--color-slate-900);
    margin: 0 0 10px;
    line-height: 1.25;
}
.tool-card p {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 var(--space-4);
    flex-grow: 1;
}
.tool-card__link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    transition: gap 0.2s ease;
}
.tool-card:hover .tool-card__link { gap: 8px; }

/* ============================================================
   HERO v9 — ЦЕНТРИРОВАННЫЙ (без правой колонки)
   ============================================================ */
.hero--centered {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem) !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero--centered .hero__content--centered {
    max-width: 880px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.hero--centered .hero__eyebrow {
    margin-left: auto;
    margin-right: auto;
    display: inline-flex;
}
.hero--centered .hero__title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 760px;
    font-size: clamp(2rem, 4.2vw, 3.25rem) !important;
}
.hero--centered .hero__lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 680px;
    font-size: clamp(1rem, 1.2vw, 1.125rem) !important;
}
.hero--centered .hero__cta-row {
    justify-content: center;
}

/* HERO STATS — 4 плитки в одну строку */
.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: clamp(2rem, 4vw, 3rem) 0 var(--space-5);
    text-align: left;
}
.hero__stat {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(32, 72, 136, 0.08);
    padding: 18px 20px;
    border-radius: 14px;
    box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero__stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.1);
}
.hero__stat-value {
    font-size: clamp(1.375rem, 2.2vw, 1.75rem);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}
.hero__stat-label {
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.35;
    font-weight: 500;
}

/* Ribbon — центрирован */
.hero--centered .hero__ribbon {
    margin: 0 auto;
    display: inline-flex;
}

/* Декоративный логотип на фоне — очень слабый, не мешает */
.hero__bg-mark {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 520px;
    height: auto;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

@media (max-width: 900px) {
    .hero__stats { grid-template-columns: repeat(2, 1fr); }
    .hero__bg-mark { width: 340px; right: -120px; opacity: 0.04; }
}
@media (max-width: 520px) {
    .hero__stats { grid-template-columns: 1fr; gap: 12px; }
    .hero__stat { padding: 14px 16px; }
    .hero__bg-mark { display: none; }
    .hero--centered .hero__cta-row { flex-direction: column; }
    .hero--centered .hero__cta-row .btn { width: 100%; }
}

/* Убрать остатки старых стилей hero__visual (они больше не нужны) */
.hero__visual, .hero__visual-card, .hero__visual-img,
.hero__visual-badge, .hero__visual-badges { display: none !important; }

/* ============================================================
   HERO STATS — финальный override специфичности
   ============================================================ */
.hero--centered .hero__content--centered {
    max-width: 1100px !important;
}
.hero--centered .hero__stats {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    margin: clamp(2rem, 4vw, 3rem) 0 var(--space-5) !important;
    text-align: left !important;
    max-width: 100%;
}
@media (max-width: 900px) {
    .hero--centered .hero__stats { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 520px) {
    .hero--centered .hero__stats { grid-template-columns: 1fr !important; }
}

/* ============================================================
   HERO STATS — flex fallback (для старых рендереров/совместимости)
   ============================================================ */
.hero--centered .hero__stats {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    justify-content: center;
}
.hero--centered .hero__stat {
    flex: 1 1 220px !important;
    min-width: 220px !important;
    max-width: calc(25% - 12px);
}
@media (max-width: 900px) {
    .hero--centered .hero__stat { max-width: calc(50% - 8px); }
}
@media (max-width: 520px) {
    .hero--centered .hero__stat { max-width: 100%; flex-basis: 100%; }
}

/* ============================================================
   HERO v10 — компактнее (меньше padding, меньше пустот)
   ============================================================ */
.hero--centered {
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(1.5rem, 3vw, 2.5rem) !important;
}
.hero--centered .hero__title {
    font-size: clamp(1.75rem, 3.6vw, 2.5rem) !important;
    margin-bottom: var(--space-3) !important;
    line-height: 1.1 !important;
}
.hero--centered .hero__lead {
    font-size: clamp(0.9375rem, 1.1vw, 1.0625rem) !important;
    margin-bottom: var(--space-4) !important;
    line-height: 1.5 !important;
}
.hero--centered .hero__eyebrow {
    margin-bottom: var(--space-3) !important;
    padding: 4px 12px !important;
    font-size: 0.75rem !important;
}
.hero--centered .hero__cta-row {
    margin-bottom: var(--space-3) !important;
}
.hero--centered .hero__stats {
    margin: var(--space-4) 0 var(--space-3) !important;
}
.hero--centered .hero__stat {
    padding: 14px 16px !important;
}
.hero--centered .hero__stat-value {
    font-size: clamp(1.25rem, 1.8vw, 1.5rem) !important;
    margin-bottom: 4px !important;
}
.hero--centered .hero__stat-label {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
}

/* ============================================================
   TOOLS НА ГЛАВНОЙ — адаптация для inline-использования
   ============================================================ */
.tool-layout--home {
    grid-template-columns: minmax(320px, 1fr) 2fr !important;
    gap: var(--space-6) !important;
}
@media (max-width: 900px) {
    .tool-layout--home { grid-template-columns: 1fr !important; }
}
.tool-layout--home .tool-form {
    position: static;
    padding: var(--space-5);
}
.tool-layout--home .tool-form__title {
    font-size: 1.0625rem;
    margin-bottom: var(--space-4);
}
.tool-form__cta {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
    text-align: center;
}
.tool-form__cta .btn {
    width: 100%;
}
/* Result на главной — менее высокий минимум */
.tool-layout--home .tool-result { min-height: 100px; }
.tool-layout--home .match-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tool-layout--home .result-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) {
    .tool-layout--home .result-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SLIDER — ползунок с живым значением (для модуля на главной)
   ============================================================ */
.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.slider-label .field__label {
    margin-bottom: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-slate-900);
}
.slider-value {
    font-size: 0.875rem;
    color: #64748B;
    font-weight: 500;
}
.slider-value strong {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
    font-variant-numeric: tabular-nums;
    margin-right: 2px;
}
.slider-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 0.75rem;
    color: #94A3B8;
    font-weight: 500;
}

/* Обновлённый стиль range для лучшего вида */
.tool-form .range-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: linear-gradient(to right, var(--color-primary) 0%, var(--color-primary) 30%, #E2E8F0 30%, #E2E8F0 100%);
    border-radius: 3px;
    outline: none;
    margin: 0;
}
.tool-form .range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    border: 3px solid var(--color-primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tool-form .range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(232, 104, 24, 0.3);
}
.tool-form .range-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    border: 3px solid var(--color-primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* ============================================================
   PODBOR FORM — выравнивание полей в row когда лейблы разной длины
   ============================================================ */
.podbor__form-row {
    align-items: stretch;
}
.podbor__form-row .field {
    display: flex;
    flex-direction: column;
}
.podbor__form-row .field .field__label {
    min-height: 2.5em;
    display: flex;
    align-items: flex-end;
    margin-bottom: 8px;
    line-height: 1.25;
}
.podbor__form-row .field .field__input {
    margin-top: auto;
}
