:root {
    /* Единая типографика витрины: Inter подключается в base.html, иначе системные sans. */
    --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --bg: #f5f7fb;
    --text: #1d1d1f;
    --muted: #6b7280;
    --brand: #00aaff;
    --brand-dark: #0d3b66;
    --accent: #ff8c00;
    --border: #e2e8f0;
    --surface: #f1f5ff;
    --surface-accent: #e0f2ff;
    --surface-muted: #f8fafc;
    --card-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --mobile-side-gap: 1.25rem;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.35;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

h1,
h2,
h3,
.product-title,
.product-card h3,
.results-header h1,
.hero .btn {
    word-break: break-word;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

.home-shell {
    width: min(1200px, 92vw);
    margin: 0 auto;
}

.home-shell .hero,
.home-shell .section,
.home-shell .home-catalog-layout {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.home-shell .section {
    padding-left: 0;
    padding-right: 0;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-group {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    align-items: flex-start;
}

.header-top-line {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.header-phone:hover {
    text-decoration: none;
    background: #dbeafe;
    border-color: #93c5fd;
}

.header-metro-badges {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.header-metro-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.1;
    border: 1px solid transparent;
    color: #0f172a;
    background: #f8fafc;
}

.header-metro-chip--violet {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #5b21b6;
}

.header-metro-chip--red {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.header-metro-chip--blue {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.logo-subtitle {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: lowercase;
    text-align: left;
}

.site-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex: 1;
}

.site-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.site-nav .nav-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-cart-badge {
    background: #ef4444;
    color: #fff;
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 0.7rem;
    line-height: 1;
    font-weight: 600;
}

.site-nav .nav-compare {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-compare-badge {
    background: var(--brand);
    color: #fff;
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 0.7rem;
    line-height: 1;
    font-weight: 600;
}

.site-nav a:hover {
    color: var(--accent, #00aaff);
    text-decoration: underline;
}

.search-form {
    flex: 1;
    display: flex;
    gap: 0.5rem;
}

.search-form input {
    flex: 1;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.search-form button {
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    cursor: pointer;
}

.contact-channel-modal-open {
    overflow: hidden;
}

.contact-channel-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.contact-channel-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.contact-channel-modal__dialog {
    position: relative;
    width: min(480px, calc(100vw - 2rem));
    margin: 10vh auto 0;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

.contact-channel-modal__content {
    padding: 1.35rem 1.25rem 1.2rem;
}

.contact-channel-modal__close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--text);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.contact-channel-modal__eyebrow {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 0.45rem;
}

.contact-channel-modal__title {
    margin: 0 0 0.45rem;
    font-size: 1.3rem;
}

.contact-channel-modal__desc,
.contact-channel-modal__hint {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.contact-channel-modal__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 0.85rem;
}

.contact-channel-modal__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
}

.contact-channel-modal__btn--telegram {
    background: #229ed9;
    color: #fff;
}

.contact-channel-modal__btn--max {
    background: #f8fafc;
    color: var(--text);
    border-color: var(--border);
}

.contact-channel-modal__btn--selection {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.manager-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.manager-trust-badges--hero-all,
.manager-trust-badges--hero-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.manager-trust-badge,
.product-contact-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    min-width: 0;
    min-height: 42px;
    text-align: center;
    line-height: 1.15;
}

.hero .manager-trust-badge,
.seo-landing-hero .manager-trust-badge {
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.16);
    text-shadow: none;
}

.manager-trust-badge--link {
    text-decoration: none;
}

.hero .manager-trust-badge:hover,
.seo-landing-hero .manager-trust-badge:hover {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.95);
}

.manager-lead-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    border: 1px solid #bfdbfe;
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.10);
}

.manager-lead-block--compact {
    margin-bottom: 0.9rem;
}

.manager-lead-block__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.manager-lead-block__body strong {
    font-size: 1.05rem;
    color: var(--text);
}

.manager-lead-block__body span {
    color: var(--muted);
    line-height: 1.5;
}

.manager-lead-block__actions .btn {
    min-height: 46px;
    padding: 0.72rem 1rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
}

.manager-lead-block__actions .btn.primary {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #fff;
    border: none;
}

.manager-lead-block__actions .btn.primary:hover {
    background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
    color: #fff;
}

.manager-lead-block__actions .btn.secondary {
    background: #fff;
    color: #0f172a;
    border: 1px solid #93c5fd;
    backdrop-filter: none;
}

.manager-lead-block__actions .btn.secondary:hover {
    background: #eff6ff;
    color: #0f172a;
    border-color: #60a5fa;
}

.manager-lead-block__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
}

.manager-lead-block__actions--center {
    justify-content: center;
    margin-top: 0.75rem;
}

.product-contact-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.45rem;
    margin-top: 0.75rem;
}

.product-contact-badge {
    min-height: 44px;
    border-color: rgba(0, 136, 204, 0.28);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #0f172a;
    font-size: 0.8rem;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.10);
    white-space: normal;
    line-height: 1.2;
    text-align: center;
}

.product-contact-badge:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: rgba(0, 136, 204, 0.45);
}

.catalog-contact-card {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid #bfdbfe;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.catalog-contact-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.catalog-contact-card p {
    margin: 0;
    color: var(--muted);
}

.catalog-contact-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    width: 100%;
}

.catalog-contact-card__actions .btn {
    min-height: 44px;
    padding: 0.7rem 1rem;
    font-weight: 700;
}

.catalog-contact-card__actions .btn.primary {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    color: #fff;
    border: none;
}

.catalog-contact-card__actions .btn.secondary {
    background: #fff;
    color: #0f172a;
    border: 1px solid #93c5fd;
}

.content {
    padding: 1.5rem 0 3rem;
}

.content.reviews-home {
    padding: 0.9rem 0 2rem;
}

.hero {
    background: linear-gradient(120deg, #00aaff 0%, #7dd3fc 100%);
    color: #111827;
    padding: 1.05rem 1.2rem;
    border-radius: 20px;
    width: min(1200px, 92vw);
    margin: 0 auto 0.85rem;
}

.reviews-home .hero {
    padding: 0.9rem 1rem;
    margin: 0 auto 0.5rem;
}

.hero-compact h1 {
    margin: 0 0 0.2rem;
    font-size: 1.42rem;
    line-height: 1.2;
}

.hero-compact p {
    margin: 0;
    max-width: 860px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(17, 24, 39, 0.9);
}

.hero-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.2rem;
}

.hero-header h1 {
    margin: 0;
    flex: 1;
}

.hero .btn {
    margin-top: 0.6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

/* Кнопки в hero лендинга — компактнее по высоте */
.seo-landing-cta .btn {
    padding: 0.4rem 1.1rem;
    font-size: 0.9rem;
}

/* Бейдж «60 дней гарантии» — визуально как кнопка, ведёт на страницу гарантии */
a.btn.cta-badge {
    background: #fff !important;
    color: #0d3b66 !important;
    border: none !important;
    text-decoration: none !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

a.btn.cta-badge:hover {
    background: #f1f5f9 !important;
    color: #0d3b66 !important;
}

/* В hero лендинга все три кнопки в одном стиле — белый фон, тёмный текст */
.seo-landing-cta .btn.secondary {
    background: #fff;
    color: var(--text);
    border: none;
}

.seo-landing-cta .btn.secondary:hover {
    background: #f1f5f9;
    color: var(--text);
    border: none;
}

.btn.primary {
    background: #fff;
    color: var(--text);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.hero.hero-compact .hero-actions {
    display: flex;
    gap: 0.45rem;
    width: auto;
    align-items: stretch;
    flex-wrap: wrap;
}

.hero.hero-compact .hero-actions .btn {
    flex: 0 0 auto;
    max-width: 100%;
    min-height: 40px;
    padding: 0.56rem 0.92rem;
    justify-content: center;
    text-align: center;
    font-size: 0.86rem;
}

.hero.hero-compact .hero-actions--home .btn {
    flex: 0 1 auto;
    min-width: 220px;
    min-height: 40px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.hero.hero-compact .hero-actions--home {
    justify-content: flex-end;
    align-self: flex-start;
    margin-top: 0.08rem;
}

.hero.hero-compact .hero-actions--home .btn.primary {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.92);
}

.hero.hero-compact .hero-actions--home .btn.secondary {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.32);
}

.hero.hero-compact .hero-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.55rem;
}

.hero.hero-compact .hero-header h1 {
    flex: 1 1 auto;
    width: auto;
    max-width: 560px;
}

/* Главная: заголовок и абзац hero на всю ширину градиентного блока (без «обрезки» справа) */
.home-shell .hero.hero-compact .hero-header h1 {
    max-width: none;
}

.home-shell .hero.hero-compact > p {
    max-width: none;
}

.hero-mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.hero-mini-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-mini-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.42);
    color: #fff;
}

.hero-mini-link--photo {
    background: rgba(202, 234, 255, 0.3);
    border-color: rgba(202, 234, 255, 0.55);
}

.hero-mini-link--photo:hover {
    background: rgba(202, 234, 255, 0.42);
    border-color: rgba(202, 234, 255, 0.72);
}

.hero-mini-link--manager {
    background: rgba(255, 196, 221, 0.52);
    border-color: rgba(255, 182, 212, 0.88);
}

.hero-mini-link--manager:hover {
    background: rgba(255, 188, 216, 0.68);
    border-color: rgba(255, 168, 205, 0.96);
}

.landing-carousel {
    margin: 0.85rem 0 0.4rem;
}

.recent-collections {
    margin: 0.9rem 0 0.35rem;
    padding: 0.7rem 0.85rem 0.55rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(255, 255, 255, 0.55) 100%);
    border: 1px solid rgba(203, 213, 225, 0.65);
    border-radius: 10px;
    max-width: 100%;
    box-sizing: border-box;
}

.recent-collections--carousel {
    /* высота: одна «полоса» карточек + заголовок — без длинного списка */
}

.recent-collections .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-bottom: 0.45rem;
}

.recent-collections .section-header .section-link {
    margin-left: auto;
    white-space: nowrap;
    align-self: center;
    flex-shrink: 0;
}

.recent-collections .section-header-text {
    flex: 1 1 14rem;
    min-width: 0;
}

.recent-collections .section-header h1,
.recent-collections .section-header h2 {
    font-size: 1.1rem;
    margin: 0 0 0.3rem;
    color: #0f172a;
}

.recent-collections .section-lead {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #64748b;
    max-width: 58ch;
}

.recent-collections--all .recent-collections-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    grid-auto-flow: row;
    overflow-x: visible;
    scroll-snap-type: none;
    padding: 0.2rem 0.15rem 0.6rem;
}

.recent-collections--all .recent-collections-card {
    scroll-snap-align: none;
    max-width: none;
}

.recent-collections-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(min(100%, 320px), 420px);
    gap: 0.65rem;
    overflow-x: auto;
    padding: 0.2rem 0.15rem 0.45rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.recent-collections-card {
    scroll-snap-align: start;
    min-height: 4.1rem;
    margin: 0;
    padding: 0.55rem 0.65rem 0.6rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(203, 213, 225, 0.75);
    border-radius: 9px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
}

.recent-collections-card--action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem;
    width: 100%;
    max-width: 100%;
    text-align: left;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.recent-collections-card--action:hover,
.recent-collections-card--action:focus-visible {
    border-color: rgba(14, 116, 144, 0.55);
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    outline: none;
}

.recent-collections-card--action:focus-visible {
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.45);
}

.recent-collections-card__text {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.38;
    color: #334155;
}

.recent-collections-card__cta {
    font-size: 0.72rem;
    font-weight: 600;
    color: #0369a1;
    align-self: flex-end;
}

.landing-carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 0.65rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-snap-type: x mandatory;
}

.landing-products-mini-carousel {
    margin-top: 0.3rem;
}

.landing-product-mini-card {
    align-items: flex-start;
    min-height: 88px;
    padding: 0.55rem 0.55rem;
}

.landing-product-mini-card .landing-card-body {
    gap: 0.2rem;
}

.landing-product-mini-card .landing-card-title {
    font-size: 0.84rem;
    line-height: 1.25;
}

.landing-product-mini-card .landing-card-meta {
    font-size: 0.72rem;
    line-height: 1.25;
}

.landing-product-mini-price {
    margin-top: 0.1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
}

.landing-card {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.35rem;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    min-height: 54px;
    scroll-snap-align: start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1);
}

.landing-card-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.landing-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.landing-card-title {
    font-weight: 600;
    font-size: 0.88rem;
    color: #0f172a;
}

.landing-card-meta {
    font-size: 0.7rem;
    color: var(--muted);
}

@media (max-width: 640px) {
    .landing-card {
        padding: 0.35rem 0.3rem;
        border-radius: 12px;
    }
}

.landing-card--all {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-color: rgba(29, 78, 216, 0.15);
}

.landing-card--all:hover {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.12) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-color: rgba(29, 78, 216, 0.25);
}

.landing-card-meta--draft {
    color: #be185d;
    font-weight: 600;
}

.landing-directory {
    margin: 0 0 2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    background: #fff;
    padding: 0.25rem 0.75rem 0.75rem;
}

.landing-directory summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0.35rem;
    font-weight: 600;
    font-size: 0.98rem;
    color: #0f172a;
}

.landing-directory summary::-webkit-details-marker {
    display: none;
}

.landing-directory summary::after {
    content: "▼";
    font-size: 0.8rem;
    transition: transform 0.2s ease;
    color: var(--muted);
}

.landing-directory[open] summary::after {
    transform: rotate(-180deg);
}

.landing-directory-meta {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.06);
    padding: 0.1rem 0.65rem;
    border-radius: 999px;
}

.landing-directory-grid {
    margin: 0;
    padding: 0 0.35rem 0.35rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
}

.landing-directory-grid .landing-card {
    min-height: 88px;
}

.landing-directory.full {
    padding: clamp(1.25rem, 4vw, 2rem);
}

.landing-directory.full .landing-directory-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.landing-directory-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.landing-directory-header .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0 0 0.3rem;
}

.landing-directory-header h1 {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.landing-directory-footer {
    margin-top: 1rem;
    text-align: center;
}

.section {
    width: min(1200px, 92vw);
    margin: 0 auto 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
}

.home-products .section-header {
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.home-products .section-header h2 {
    font-size: clamp(1.1rem, 4vw, 1.35rem);
    margin: 0;
}

.home-products .section-header .section-link {
    margin-left: auto;
}

.section-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--muted);
    transition: color 0.2s ease;
}

.section-link:hover {
    color: var(--brand);
}

.badge-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 170, 255, 0.45);
    background: rgba(0, 170, 255, 0.12);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0f172a;
}

.badge-link::after {
    content: "→";
    font-size: 0.9em;
}

.badge-link:hover {
    background: rgba(0, 170, 255, 0.2);
    border-color: rgba(0, 170, 255, 0.65);
}

.category-row {
    overflow-x: auto;
    padding-bottom: 0.2rem;
}

.category-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.3rem;
}

.category-list.horizontal .category-pill {
    flex: 0 0 auto;
}

.category-pill {
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 0.25rem 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 38px;
}

.pill-icon {
    font-size: 1rem;
}

.pill-body {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
}

.pill-title {
    font-weight: 600;
    font-size: 0.85rem;
}

.pill-sub {
    font-size: 0.7rem;
    color: var(--muted);
}

.home-catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 1.5rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.home-filters {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    height: fit-content;
    position: sticky;
    top: 80px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.home-products {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.home-filters .filters-form,
.home-filters .filter-group,
.home-filters .filter-content,
.home-filters details {
    width: 100%;
    max-width: 100%;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.filters-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.clear-filters {
    color: var(--muted);
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.clear-filters:hover {
    background: var(--bg);
    color: var(--text);
}

.filter-group {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.35rem 0;
    color: var(--text);
}

.filter-icon {
    font-size: 0.65rem;
    color: var(--muted);
    transition: transform 0.2s;
}

details[open] .filter-icon {
    transform: rotate(180deg);
}

.filter-content {
    padding-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.filter-content::-webkit-scrollbar {
    width: 6px;
}

.filter-content::-webkit-scrollbar-track {
    background: var(--bg);
    border-radius: 3px;
}

.filter-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.filter-content::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}

.price-range {
    margin-top: 0.25rem;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.price-input {
    flex: 1;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
}

.price-separator {
    color: var(--muted);
    font-weight: 500;
}

.filter-search {
    margin-bottom: 0.5rem;
}

.filter-search-input {
    width: 100%;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
}

.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.25rem 0.35rem;
    border-radius: 4px;
    transition: background 0.2s;
    font-size: 0.85rem;
}

.filter-checkbox:hover {
    background: var(--bg);
}

.filter-checkbox input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
}

.checkbox-label {
    flex: 1;
    color: var(--text);
}

.checkbox-count {
    color: var(--muted);
    font-size: 0.85rem;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.filter-submit {
    width: 100%;
    padding: 0.7rem 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #0088cc 0%, #006ba3 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.filter-submit:hover {
    background: linear-gradient(135deg, #006ba3 0%, #005a8a 100%);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.35);
    transform: translateY(-1px);
}

.filter-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 136, 204, 0.3);
}

.filter-reset {
    width: 100%;
    padding: 0.6rem 0.9rem;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.filter-reset:hover {
    background: var(--bg);
    border-color: var(--muted);
    color: var(--text);
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: 8px;
}

.active-filters-label {
    font-weight: 500;
    color: var(--text);
    margin-right: 0.5rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text);
}

.filter-tag-remove {
    color: var(--muted);
    text-decoration: none;
    font-size: 1.1rem;
    line-height: 1;
    margin-left: 0.25rem;
}

.filter-tag-remove:hover {
    color: var(--text);
}

.filter-checkbox.hidden {
    display: none;
}

.seo-landing-shell {
    width: min(1100px, 90vw);
    margin: 0 auto 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.landing-main-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.landing-main-sidebar,
.landing-main-content {
    min-width: 0;
}

.landing-main-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (max-width: 992px) {
    .landing-main-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .landing-main-sidebar {
        order: 2;
    }

    .landing-main-content {
        order: 1;
    }
}

/* Порядок блоков на лендинге: товары лендинга сверху, актуальные товары внизу (важно для мобильной) */
.seo-landing-hero { order: 0; }
.seo-landing-shell .landing-stats { order: 1; }
.seo-landing-shell .landing-products-block { order: 2; }
.seo-landing-shell .landing-overview { order: 3; }
.seo-landing-shell .landing-content-section { order: 4; }
.seo-landing-shell .landing-why-us { order: 4; }
.seo-landing-shell .landing-delivery { order: 5; }
.seo-landing-shell .landing-tasks { order: 6; }
.seo-landing-shell .landing-faq { order: 7; }
.seo-landing-shell .landing-related { order: 8; }
.seo-landing-shell .actual-products-section { order: 9; }
.seo-landing-shell .landing-support { order: 10; }
.seo-landing-shell .landing-reviews { order: 11; }
.seo-landing-shell .landing-yandex-widget { order: 12; }

.seo-landing-hero {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    border-radius: 28px;
    padding: clamp(0.6rem, 2.5vw, 1rem) clamp(0.85rem, 3vw, 1.2rem);
    box-shadow: var(--card-shadow);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.seo-landing-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15), transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.12), transparent 40%);
    pointer-events: none;
}

.seo-landing-hero > * {
    position: relative;
    z-index: 1;
}

.seo-landing-hero-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 0.5rem;
    margin-bottom: 0.4rem;
}

.seo-landing-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #fff;
    color: var(--brand-dark);
    font-weight: 600;
    font-size: 0.72rem;
}

.seo-landing-hero-title {
    margin: 0;
    width: 100%;
    font-size: clamp(1.25rem, 3.2vw, 1.75rem);
    line-height: 1.25;
    color: #fff;
}

.seo-landing-intro {
    margin: 0 0 0.35rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.88rem;
    line-height: 1.4;
}

.seo-landing-cta {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

.seo-landing-hero .seo-landing-points {
    margin: 0 0 0.4rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.8rem;
    line-height: 1.3;
}

.seo-landing-hero .seo-landing-points li {
    position: relative;
    padding-left: 0.85rem;
}

.seo-landing-hero .seo-landing-points li::before {
    content: "·";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #fff;
}

/* Тот же класс используется в контентных секциях: здесь нужен темный текст */
.seo-landing-section .seo-landing-points {
    margin: 0.35rem 0 0.5rem;
    padding-left: 1rem;
    list-style: disc;
    display: block;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.5;
}

.seo-landing-section .seo-landing-points li {
    position: static;
    padding-left: 0;
    margin: 0 0 0.25rem;
}

.seo-landing-section .seo-landing-points li::before {
    content: none;
}

.cta-benefit {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    align-self: center;
}

.landing-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.stat-card {
    padding: 0.5rem 0.4rem 0.55rem;
    text-align: center;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-right: 1px solid rgba(15, 23, 42, 0.06);
}

.stat-card:last-child {
    border-right: none;
}

.stat-card:nth-child(1) {
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
}

.stat-card:nth-child(2) {
    background: linear-gradient(180deg, #f0fdf4 0%, #dcfce7 100%);
}

.stat-card:nth-child(3) {
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
}

.stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.stat-label {
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.25;
    margin-top: 0.1rem;
}

@media (max-width: 540px) {
    .landing-stats {
        grid-template-columns: repeat(3, 1fr);
        border-radius: 12px;
    }
    .stat-card {
        padding: 0.4rem 0.25rem 0.45rem;
    }
    .stat-value {
        font-size: 1.1rem;
    }
    .stat-label {
        font-size: 0.62rem;
    }
}

.landing-overview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--surface);
    border-radius: 24px;
    padding: 0.9rem 1rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.landing-overview .overview-body p {
    margin: 0 0 0.8rem;
    color: var(--text);
    line-height: 1.55;
}

/* Ссылки в SEO-текстах должны быть заметны и читабельны */
.seo-landing-intro a,
.seo-landing-description a,
.seo-landing-section .section-text a,
.seo-landing-section .section-note a,
.landing-overview .overview-body a {
    color: #0b63ce;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1.2px;
    font-weight: 500;
}

.seo-landing-intro a:hover,
.seo-landing-description a:hover,
.seo-landing-section .section-text a:hover,
.seo-landing-section .section-note a:hover,
.landing-overview .overview-body a:hover {
    color: #084b9a;
}

.landing-why-us,
.landing-delivery {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.landing-support {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.landing-support .section-header h2 {
    font-size: 0.98rem;
    margin: 0;
}

.why-us-grid,
.delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.why-us-card,
.delivery-card {
    background: #fff;
    border-radius: 22px;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    position: relative;
    overflow: hidden;
}

.why-us-card h3,
.delivery-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    color: var(--brand-dark);
}

.why-us-card p,
.delivery-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.4;
}

.why-us-card::after,
.delivery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.why-us-card:hover::after,
.delivery-card:hover::after {
    opacity: 1;
}

/* Новые стили для кликабельных карточек поддержки */
.support-card {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    background: #fff;
    border-radius: 16px;
    padding: 0.7rem 0.85rem;
    border: 2px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.support-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.support-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    border-color: var(--brand);
}

.support-card:hover::before {
    transform: scaleX(1);
}

.support-card-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.support-card:hover .support-card-icon {
    transform: scale(1.1);
}

.support-card-content {
    flex: 1;
    min-width: 0;
}

.support-card h3 {
    margin: 0 0 0.3rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.25;
}

.support-card p {
    margin: 0 0 0.4rem;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.support-card-phone {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--brand) !important;
    margin: 0.35rem 0 !important;
}

.support-card-action {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--brand);
    transition: all 0.3s ease;
}

.support-card:hover .support-card-action {
    color: var(--brand-dark);
    transform: translateX(4px);
}

/* Специальные стили для разных типов карточек */
.support-card--phone {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(34, 197, 94, 0.02) 100%);
    border-color: rgba(34, 197, 94, 0.2);
}

.support-card--phone::before {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.support-card--phone:hover {
    border-color: #22c55e;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
}

.support-card--telegram {
    background: linear-gradient(135deg, rgba(37, 150, 190, 0.1) 0%, rgba(37, 150, 190, 0.05) 100%);
    border-color: rgba(37, 150, 190, 0.3);
    border-width: 3px;
    box-shadow: 0 6px 20px rgba(37, 150, 190, 0.15);
}

.support-card--telegram::before {
    background: linear-gradient(90deg, #2596be, #1e7a9e);
    height: 5px;
}

.support-card--telegram:hover {
    border-color: #2596be;
    background: linear-gradient(135deg, rgba(37, 150, 190, 0.15) 0%, rgba(37, 150, 190, 0.08) 100%);
    box-shadow: 0 10px 30px rgba(37, 150, 190, 0.25);
    transform: translateY(-6px);
}

.support-card--showroom {
    background: linear-gradient(135deg, rgba(252, 63, 29, 0.05) 0%, rgba(252, 63, 29, 0.02) 100%);
    border-color: rgba(252, 63, 29, 0.2);
}

.support-card--showroom::before {
    background: linear-gradient(90deg, #fc3f1d, #d6341a);
}

.support-card--showroom:hover {
    border-color: #fc3f1d;
    background: linear-gradient(135deg, rgba(252, 63, 29, 0.1) 0%, rgba(252, 63, 29, 0.05) 100%);
}

.support-card--reviews {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(139, 92, 246, 0.02) 100%);
    border-color: rgba(139, 92, 246, 0.2);
}

.support-card--reviews::before {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.support-card--reviews:hover {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.support-card--catalog {
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.05) 0%, rgba(0, 170, 255, 0.02) 100%);
    border-color: rgba(0, 170, 255, 0.2);
}

.support-card--catalog::before {
    background: linear-gradient(90deg, #00aaff, #0088cc);
}

.support-card--catalog:hover {
    border-color: #00aaff;
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.1) 0%, rgba(0, 170, 255, 0.05) 100%);
}

.landing-related .related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.landing-review-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.landing-review-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.2;
}

.landing-review-badge:hover {
    background: #eef6ff;
    border-color: #bfdbfe;
}

.seo-landing-steps {
    list-style: none;
    padding-left: 0;
    margin: 0.75rem 0;
    display: grid;
    gap: 0.45rem;
}

.seo-landing-steps li {
    position: relative;
    padding-left: 1.1rem;
}

.seo-landing-steps li::before {
    content: "—";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--muted);
}

.landing-related .landing-card {
    min-height: 0;
}

.seo-landing-section {
    background: #fff;
    padding: clamp(0.75rem, 2.5vw, 1.1rem);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.05);
}

.landing-catalog-layout {
    margin-top: 0.35rem;
    align-items: start;
}

.landing-catalog-layout .home-products.landing-products-content {
    min-width: 0;
}

@media (min-width: 993px) {
    .landing-catalog-layout > .home-filters-shell,
    .landing-catalog-layout > .home-products.landing-products-content {
        align-self: start !important;
        height: auto !important;
    }

    /* Когда карточек мало, убираем двухколоночный разъезд и белое поле справа */
    .landing-catalog-layout--compact {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
    }

    .landing-catalog-layout--compact > .home-filters-shell {
        display: none;
    }

    .landing-catalog-layout--compact > .home-products.landing-products-content {
        max-width: 920px;
        margin: 0 auto;
    }
}

/* Лендинги: в правой колонке карточки уже, поэтому цену/кнопку делаем компактнее и адаптивнее */
.seo-landing-shell .landing-products-block .product-card .product-price-row {
    align-items: center;
    gap: 0.35rem;
}

.seo-landing-shell .landing-products-block .product-card .product-price-row .product-price-block {
    min-width: 0;
    max-width: 100%;
}

.seo-landing-shell .landing-products-block .product-card .product-price-block .current-price {
    font-size: 0.96rem;
}

.seo-landing-shell .landing-products-block .product-card .product-price-row .btn-buy-now--inline {
    flex: 0 0 auto;
    max-width: 100%;
    padding: 7px 9px;
    font-size: 0.69rem;
}

@media (max-width: 1200px) {
    .seo-landing-shell .landing-products-block .product-card .product-price-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.3rem;
    }
    .seo-landing-shell .landing-products-block .product-card .product-price-row .btn-buy-now--inline {
        width: 100%;
    }
}

.seo-landing-section .section-header {
    margin-bottom: 0.75rem;
}

/* Акцентная полоска у заголовков секций лендинга — разные блоки читаются отдельно */
.seo-landing-section .section-header h2,
.landing-overview .section-header h2,
.landing-why-us .section-header h2,
.landing-delivery .section-header h2,
.landing-related .section-header h2,
.landing-support .section-header h2 {
    padding-left: 0.85rem;
    border-left: 4px solid var(--brand);
    color: var(--text);
    font-weight: 700;
}

.landing-overview .section-header h2 {
    border-left-color: var(--brand-dark);
}

.seo-landing-section .section-header .section-meta,
.landing-overview .section-header .section-meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

/* Блок товаров лендинга: заголовок мельче, количество — бейдж справа */
.landing-products-block .section-header .landing-products-title {
    font-size: clamp(0.95rem, 2.8vw, 1.15rem);
}

.landing-products-block .section-header .landing-products-count-badge {
    margin: 0 0 0 0.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0f172a;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%);
    border: 1px solid rgba(14, 165, 233, 0.35);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
}

.product-grid-demo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.landing-cta {
    text-align: center;
    margin-top: 1rem;
}

.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.task-card {
    background: #f8fafc;
    border-radius: 18px;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.task-card h3 {
    margin: 0 0 0.3rem;
    font-size: 1rem;
}

.task-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.faq-item {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 0.6rem 1rem;
    background: #f9fbff;
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

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

.faq-answer {
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.92rem;
}

@media (max-width: 992px) {
    .home-catalog-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .home-filters {
        position: static;
        order: 2;
    }

    .home-products {
        order: 1;
    }
}

.product-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (max-width: 540px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

/* Домашние карточки: 4 в ряд */
.home-products .product-grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 0;
}

@media (max-width: 1400px) {
    .home-products .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    .home-products .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .home-products .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
}

@media (max-width: 360px) {
    .home-products .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Блок "В наличии прямо сейчас" на странице товара: 2 в ряд */
.product-related-block .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.product-related-block .product-card {
    font-size: 0.85rem;
    min-height: 320px;
    padding: 10px 10px 12px;
}

.product-related-block .product-thumb {
    aspect-ratio: 4 / 3;
    height: auto;
}

.product-related-block .product-card .product-image {
    height: 160px;
}

.product-related-block .product-card h3,
.product-related-block .product-card .product-title {
    font-size: 0.85rem;
    line-height: 1.25;
    margin-bottom: 0.35rem;
    min-height: calc(2 * 1.25em);
}

.product-related-block .product-price {
    font-size: 0.9rem;
}

.product-related-block .product-body {
    padding: 0.5rem 0.6rem 0.65rem;
}

@media (max-width: 900px) {
    .product-related-block .product-grid {
        grid-auto-flow: column;
        grid-auto-columns: minmax(70%, 1fr);
        grid-template-columns: unset;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.35rem;
    }

    .product-related-block .product-card,
    .product-related-block .telegram-promo-card {
        scroll-snap-align: start;
    }
}

/* Блоки "Товары в наличии": базовая сетка (не для блока лендинга — у него своя сетка) */
.products-in-stock-section:not(.landing-products-block) .product-grid,
.in-stock-section .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* Товары из лендинга — всегда сетка без "пустых" колонок при малом количестве карточек */
.seo-landing-shell .landing-products-block .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    grid-auto-flow: row;
    overflow: visible;
}

.seo-landing-shell .landing-products-block .product-grid .no-results {
    grid-column: 1 / -1;
}

/* Стабилизация блока товаров лендинга на мобильной — меньше «скачка» при отрисовке */
.seo-landing-shell .landing-products-block {
    contain: layout style;
}

@media (max-width: 1400px) {
    .products-in-stock-section:not(.landing-products-block) .product-grid,
    .in-stock-section .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    .products-in-stock-section:not(.landing-products-block) .product-grid,
    .in-stock-section .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 360px) {
    .products-in-stock-section:not(.landing-products-block) .product-grid,
    .in-stock-section .product-grid {
        grid-template-columns: 1fr;
    }
}

/* На десктопе: «Актуальные товары» — карусель; товары лендинга — авто-сетка без белых зон */
@media (min-width: 901px) {
    .seo-landing-shell .actual-products-section .product-grid {
        grid-auto-flow: column;
        grid-auto-columns: minmax(220px, 280px);
        grid-template-columns: unset;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.35rem;
    }
    .seo-landing-shell .actual-products-section .product-card,
    .seo-landing-shell .actual-products-section .telegram-promo-card {
        scroll-snap-align: start;
    }
    .seo-landing-shell .landing-products-block .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
        grid-auto-flow: row !important;
        overflow: visible !important;
    }
}

@media (max-width: 1400px) {
    .seo-landing-shell .landing-products-block .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

@media (max-width: 1100px) {
    .seo-landing-shell .landing-products-block .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 900px) {
    /* Карусель только для блоков НЕ лендинга (блок лендинга — сетка по 2 карточки) */
    .products-in-stock-section:not(.landing-products-block) .product-grid,
    .in-stock-section .product-grid {
        grid-auto-flow: column;
        grid-auto-columns: minmax(70%, 1fr);
        grid-template-columns: unset;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.35rem;
    }

    .products-in-stock-section:not(.landing-products-block) .product-card,
    .products-in-stock-section:not(.landing-products-block) .telegram-promo-card,
    .in-stock-section .product-card,
    .in-stock-section .telegram-promo-card {
        scroll-snap-align: start;
    }

    /* На лендингах — только сетка по 2 карточки, без карусели */
    .seo-landing-shell .landing-products-block .product-grid {
        grid-auto-flow: row !important;
        grid-auto-columns: unset !important;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        scroll-snap-type: none !important;
        padding-bottom: 0 !important;
        -webkit-overflow-scrolling: auto !important;
    }
    .seo-landing-shell .landing-products-block .product-card,
    .seo-landing-shell .landing-products-block .telegram-promo-card {
        scroll-snap-align: unset !important;
    }
}

/* Принудительная карусель для блоков "Товары в наличии" в справочнике */
.products-in-stock-section .products-carousel-grid {
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(70%, 1fr) !important;
    grid-template-columns: unset !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
}

.products-in-stock-section .products-carousel-grid .product-card,
.products-in-stock-section .products-carousel-grid .telegram-promo-card {
    scroll-snap-align: start;
}

/* На десктопе во всех блоках «Товары в наличии» — карусель с миниатюрами как на главной */
@media (min-width: 901px) {
    .products-in-stock-section .products-carousel-grid,
    .in-stock-section .products-carousel-grid {
        grid-auto-columns: minmax(220px, 280px) !important;
    }

    .products-in-stock-section .product-card,
    .in-stock-section .product-card,
    .product-related-block.products-in-stock-section .product-card {
        min-height: 360px;
        padding: 12px 12px 14px;
        font-size: inherit;
    }

    .products-in-stock-section .product-card .product-image,
    .in-stock-section .product-card .product-image,
    .product-related-block.products-in-stock-section .product-card .product-image {
        height: 220px;
    }

    .products-in-stock-section .product-card h3,
    .products-in-stock-section .product-card .product-title,
    .in-stock-section .product-card h3,
    .in-stock-section .product-card .product-title,
    .product-related-block.products-in-stock-section .product-card h3,
    .product-related-block.products-in-stock-section .product-card .product-title {
        font-size: 0.86rem;
        line-height: 1.2;
        margin-bottom: 2px;
        min-height: calc(2 * 1.2em);
    }

    .products-in-stock-section .product-price,
    .in-stock-section .product-price,
    .product-related-block.products-in-stock-section .product-price {
        font-size: inherit;
    }

    .products-in-stock-section .product-body,
    .in-stock-section .product-body,
    .product-related-block.products-in-stock-section .product-body {
        padding: 0.65rem 0.75rem 0.8rem;
    }

    .products-in-stock-section .product-thumb,
    .in-stock-section .product-thumb,
    .product-related-block.products-in-stock-section .product-thumb {
        aspect-ratio: auto;
        height: auto;
    }
}

/* Каталог и справочник: 6 в ряд */
.catalog-results .product-grid,
.similar-reviews-section .product-grid {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1400px) {
    .catalog-results .product-grid,
    .similar-reviews-section .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    .catalog-results .product-grid,
    .similar-reviews-section .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .catalog-results .product-grid,
    .similar-reviews-section .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 360px) {
    .catalog-results .product-grid,
    .similar-reviews-section .product-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #6c757d;
    border-radius: 12px;
    padding: 12px 12px 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 360px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.product-card:hover::before {
    opacity: 1;
}

.product-thumb {
    position: relative;
    display: block;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    /* Фиксируем размер контейнера для единообразия */
    min-height: 0;
    flex-shrink: 0;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.product-card .product-image {
    position: relative;
    text-align: center;
    margin-bottom: 4px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-card .product-image img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

.product-body {
    padding: 0.65rem 0.75rem 0.8rem;
}

.product-card .product-title {
    margin: 0 0 2px;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    min-height: calc(2 * 1.2em);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 640px) {
    .product-card {
        min-height: 0;
    }

    .product-card .product-title {
        margin-bottom: 1px;
        line-height: 1.15;
    }

    .product-card .product-image {
        height: auto;
        aspect-ratio: 4 / 3;
        margin-bottom: 3px;
    }

    .product-card .product-image img {
        max-width: 100%;
        max-height: 100%;
    }
}

.product-card .product-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-card .product-title a:hover {
    color: #667eea;
}

.latest-reviews-section .product-card .product-title,
.reviews-results .product-card .product-title {
    font-size: 0.7rem;
    line-height: 1.15;
    text-align: left;
    min-height: calc(2 * 1.15em);
}

.latest-reviews-section .product-card .product-title a,
.reviews-results .product-card .product-title a {
    color: #111827;
}

.product-card .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 6px;
}

.product-card .product-specs {
    flex: 1;
    margin-bottom: 0;
}

.product-card .product-specs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.15;
    color: #4a5568;
}

.product-card .product-specs li {
    display: flex;
    justify-content: space-between;
    padding: 1px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
}

.product-card .spec-label {
    font-weight: 600;
    color: #2d3748;
    margin-right: 0.3rem;
}

.product-card .spec-value {
    font-weight: 400;
    color: #4a5568;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 115px;
    text-align: right;
}

.product-card .product-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-card .product-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
}

.product-card .product-price-block {
    text-align: center;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.3rem;
    white-space: nowrap;
}

.product-card .product-price-row .product-price-block {
    margin-bottom: 0;
    justify-content: flex-end;
    text-align: left;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    min-height: 2.15rem;
    white-space: normal;
}

.product-card .product-price-block .current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #28a745;
    white-space: nowrap;
}

.product-card .product-price-block .price-on-request {
    font-size: 0.9rem;
    color: #c05621;
    font-weight: 600;
    white-space: nowrap;
}

.btn-buy-now {
    background: linear-gradient(135deg, #0088cc 0%, #006ba3 100%);
    color: #fff;
    border: none;
    padding: 9px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
    width: 100%;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.25);
}

.btn-buy-now.btn-buy-now--inline {
    width: auto;
    padding: 8px 10px;
    font-size: 0.74rem;
}

/* Узкие экраны (iPhone 13 mini и др.): цена и кнопка в карточке — столбиком, кнопка во всю ширину */
@media (max-width: 420px) {
    .home-products .product-card .product-price-row,
    .products-in-stock-section .product-card .product-price-row,
    .seo-landing-shell .landing-products-block .product-card .product-price-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }
    .home-products .product-card .product-price-row .product-price-block,
    .products-in-stock-section .product-card .product-price-row .product-price-block,
    .seo-landing-shell .landing-products-block .product-card .product-price-row .product-price-block {
        min-height: 0;
        justify-content: flex-start;
    }
    .home-products .product-card .product-price-row .btn-buy-now--inline,
    .products-in-stock-section .product-card .product-price-row .btn-buy-now--inline,
    .seo-landing-shell .landing-products-block .product-card .product-price-row .btn-buy-now--inline {
        width: 100%;
        padding: 7px 8px;
        font-size: 0.7rem;
    }
    /* Кнопки «Заказать похожий» / «Узнать цену» в карточках справочника — компактнее */
    .home-products .product-card .product-actions .btn-buy-now,
    .products-in-stock-section .product-card .product-actions .btn-buy-now,
    .seo-landing-shell .landing-products-block .product-card .product-actions .btn-buy-now {
        padding: 7px 6px;
        font-size: 0.68rem;
    }
}

.product-action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem;
    margin-top: 0.75rem;
    align-items: stretch;
}

.product-action-buttons .btn-buy-now {
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    font-size: 0.82rem;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
    text-transform: none;
}

.btn-buy-now:hover {
    background: linear-gradient(135deg, #006ba3 0%, #005a8a 100%);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.35);
}

.btn-buy-now--secondary {
    background: rgba(0, 136, 204, 0.1);
    color: #006ba3;
    border: 1px solid rgba(0, 136, 204, 0.4);
}

.btn-buy-now--secondary:hover {
    background: rgba(0, 136, 204, 0.18);
    color: #005a8a;
    border-color: rgba(0, 136, 204, 0.6);
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.9rem;
    background: #f1f5f9;
}

.price-row {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.1;
}

.catalog-layout {
    width: min(1200px, 92vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.filters {
    background: #fff;
    border-radius: 16px;
    padding: 1.2rem;
    border: 1px solid var(--border);
}

.filters form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filters input,
.filters select {
    width: 100%;
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 0.75rem;
    }
    .home-shell {
        width: 100%;
        padding: 0 0.75rem;
        box-sizing: border-box;
    }
    .breadcrumbs {
        margin-bottom: 0.2rem !important;
    }

    .reviews-layout {
        margin-top: 0;
        padding-top: 0.2rem;
    }
    .site-header .container {
        flex-direction: column;
        align-items: stretch;
    }
    .site-nav {
        order: 2;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: flex-start;
    }
    .search-form {
        order: 3;
        width: 100%;
    }
    .catalog-layout {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        padding: 0 0.5rem;
        box-sizing: border-box;
    }
    .search-form {
        margin-bottom: 0.5rem;
    }
    .catalog-results {
        margin-top: 0.5rem;
    }
    .results-header {
        margin-bottom: 0.5rem;
    }
    .results-header h1 {
        margin: 0 0 0.25rem;
        font-size: 1.3rem;
    }
    .results-header > div {
        margin-top: 0.25rem;
    }
    .filters {
        padding: 0.75rem;
        border-radius: 12px;
    }
    .filters form {
        gap: 0.7rem;
    }
    .filters input,
    .filters select {
        padding: 0.4rem 0.45rem;
        font-size: 0.95rem;
    }
    .filters h2 {
        margin: 0 0 0.35rem;
        font-size: 1rem;
    }
    .hero.hero-compact {
        padding: clamp(1rem, 6vw, 1.5rem);
        border-radius: 20px;
        margin: 0 0 0.95rem;
        width: 100%;
        box-sizing: border-box;
    }

    .hero.hero-compact h1 {
        font-size: 0.62rem;
        line-height: 1.12;
        color: #111827;
    }

    .hero.hero-compact p {
        font-size: 0.46rem;
        line-height: 1.2;
        color: rgba(17, 24, 39, 0.88);
    }
    .hero.hero-compact .hero-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
    }
    .hero.hero-compact .hero-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }
    .hero.hero-compact .hero-actions--home .btn {
        min-width: 0;
    }
    .hero-mini-links {
        gap: 0.45rem;
    }
    .manager-trust-badges--hero-all,
    .manager-trust-badges--hero-trust {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .hero.hero-compact .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .landing-carousel {
        margin-inline: calc(var(--mobile-side-gap) * -1);
        padding-inline: var(--mobile-side-gap);
    }
    .landing-carousel-track {
        grid-auto-columns: minmax(55%, 1fr);
        padding-bottom: 0.25rem;
    }
    .recent-collections {
        margin-inline: calc(var(--mobile-side-gap) * -1);
        padding-inline: var(--mobile-side-gap);
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .recent-collections-track {
        grid-auto-columns: minmax(78vw, 1fr);
        padding-bottom: 0.35rem;
    }
    .recent-collections-card__text {
        font-size: 0.78rem;
        line-height: 1.36;
    }
    .landing-card {
        min-height: auto;
    }
    .seo-landing-shell {
        width: 100%;
        padding: 0 var(--mobile-side-gap);
    }
    .seo-landing-hero,
    .seo-landing-section {
        border-radius: 18px;
        padding: 0.75rem 0.9rem;
    }
    .seo-landing-cta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem;
    }

    .seo-landing-cta .btn {
        flex: 1 1 0;
        min-width: 0;
        min-height: 54px;
        padding: 0.34rem 0.42rem;
        border-radius: 12px;
        font-size: 0.72rem;
        line-height: 1.16;
        text-align: center;
        white-space: normal;
        word-break: normal;
        overflow-wrap: normal;
        hyphens: none;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    }
    .home-catalog-layout {
        width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    .home-products {
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 0;
        box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
        width: 100%;
        box-sizing: border-box;
    }
    .home-products .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    .home-products .section-header .section-link {
        margin-left: 0;
        font-size: 0.78rem;
    }
    .home-products .product-grid {
        gap: 0.4rem;
    }
    .home-filters {
        border-radius: 16px;
        padding: clamp(1rem, 5vw, 1.4rem);
        width: 100%;
        box-sizing: border-box;
    }
    .content {
        padding: 1.2rem 0 2.75rem;
    }
    .hero {
        width: 100%;
        border-radius: 20px;
        margin: 0 0 0.9rem;
        padding: clamp(1rem, 6vw, 1.5rem);
        box-sizing: border-box;
    }
    .section {
        width: 100%;
        margin: 0 0 1.5rem;
        padding: 0 clamp(1.25rem, 6vw, 2.25rem);
        box-sizing: border-box;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    .category-row {
        padding: 0 0.25rem;
    }
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    /* На лендинге не трогаем блоки: товары лендинга — сетка, актуальные — карусель (задано в 900px) */
    .seo-landing-shell .landing-products-block .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-flow: row !important;
        overflow: visible !important;
    }
    .seo-landing-shell .actual-products-section .product-grid {
        grid-template-columns: unset !important;
        grid-auto-flow: column !important;
        grid-auto-columns: minmax(70%, 1fr) !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }
    .landing-directory {
        padding: 0.2rem 0.35rem 0.5rem;
    }

    .landing-directory summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .landing-directory-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .landing-related .related-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

.catalog-results {
    min-width: 0;
}

.results-header {
    margin-bottom: 1rem;
}

.results-header h1 {
    margin: 0 0 0.5rem;
}

.results-header > div {
    margin-top: 0.5rem;
}

.catalog-results .product-grid {
    margin-top: 1rem;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 1400px) {
    .catalog-results .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .catalog-results .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .breadcrumbs {
        margin-bottom: 0.1rem !important;
    }
    .catalog-results {
        margin-top: 0.1rem;
    }
    .results-header {
        margin-bottom: 0.25rem;
        margin-top: 0;
    }
    .results-header h1 {
        margin: 0 0 0.15rem;
        font-size: 1.2rem;
    }
    .results-header > div {
        margin-top: 0.15rem;
    }
    .catalog-results .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
        margin-top: 0.5rem;
    }
}

@media (max-width: 360px) {
    .catalog-results .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .catalog-layout {
        padding: 0 0.35rem;
    }
}

/* Фильтры и сетка для раздела обзоров */
.reviews-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.25rem;
    padding: 1rem 0;
}

/* В разделе обзоров слева только кнопка «Все фильтры» — старый блок скрыт */
.reviews-layout .reviews-filters,
.reviews-layout .reviews-filter-toggle {
    display: none !important;
}

.reviews-filters-shell,
.home-filters-shell {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-self: flex-start;
    width: 100%;
}

.reviews-filters-shell > *,
.home-filters-shell > * {
    width: 100%;
}

.reviews-filter-toggle,
.home-filter-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    padding: 0.55rem 1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.reviews-filter-toggle:hover,
.home-filter-toggle:hover {
    border-color: var(--brand);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

.filter-toggle-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.filter-toggle-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

.reviews-all-filters-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    border: 1px solid var(--brand);
    border-radius: 999px;
    background: #fff;
    padding: 0.55rem 1rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--brand);
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.reviews-all-filters-btn:hover {
    background: var(--brand);
    color: #fff;
}

/* Блок фильтров в сайдбаре (как на макете: список групп с чекбоксами и счётчиками) */
.reviews-filters-block {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.reviews-filters-block-body {
    max-height: 50vh;
    overflow-y: auto;
    padding: 0.25rem 0;
    flex: 1;
    min-height: 0;
}

.reviews-filters-block .reviews-filter-group {
    border-bottom: 1px solid var(--border);
}

.reviews-filters-block .reviews-filter-group-title {
    background: var(--surface-muted);
    padding: 0.6rem 1rem;
}

.reviews-filters-block .reviews-filter-group-content {
    padding: 0.5rem 1rem 0.75rem;
}

.reviews-filters-block-footer {
    display: flex;
    gap: 0.4rem;
    padding: 0.5rem 0.65rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.reviews-filters-block-footer .btn {
    flex: 1;
    text-align: center;
    padding: 0.45rem 0.6rem;
    font-size: 0.82rem;
}

/* Кнопка «Сбросить» в фильтрах обзоров — серый фон, всегда видна, внутри блока */
.reviews-filters-block-footer .btn.secondary,
.reviews-filters-block-footer .btn-reset,
.reviews-all-filters-footer .btn.secondary,
.reviews-all-filters-footer .btn-reset,
a.reviews-all-filters-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.6rem;
    font-size: 0.82rem;
    background: var(--surface-muted);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
}

.reviews-all-filters-footer .btn.primary {
    padding: 0.45rem 0.6rem;
    font-size: 0.82rem;
}

.reviews-filters-block-footer .btn.secondary:hover,
.reviews-filters-block-footer .btn-reset:hover,
.reviews-all-filters-footer .btn.secondary:hover,
.reviews-all-filters-footer .btn-reset:hover,
a.reviews-all-filters-reset:hover {
    background: #e2e8f0;
    border-color: var(--muted);
    color: var(--text);
}

.reviews-filters,
.home-filters {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    height: fit-content;
    position: sticky;
    top: 80px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

[data-filter-panel][hidden] {
    display: none !important;
}

.reviews-filters h2 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}

.reviews-filters .filter-group {
    margin-bottom: 0.9rem;
}

.reviews-filters .filter-group:last-child {
    margin-bottom: 0;
}

.reviews-filters .filter-group h3 {
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.reviews-filters .filter-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
}

.reviews-filters .filter-group select {
    width: 100%;
    padding: 0.45rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
}

.reviews-filters .keywords-filter {
    max-height: 420px;
    overflow-y: auto;
}

.reviews-filters .keyword-category {
    margin-bottom: 0.45rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.reviews-filters .keyword-category-title {
    padding: 0.4rem 0.6rem;
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.reviews-filters .keyword-category-title::before {
    content: '▶';
    font-size: 0.6rem;
    transition: transform 0.2s;
    color: var(--muted);
}

.reviews-filters .keyword-category[open] .keyword-category-title::before {
    transform: rotate(90deg);
}

.reviews-filters .keyword-list {
    padding: 0.3rem;
    background: #fff;
    max-height: 220px;
    overflow-y: auto;
}

.reviews-filters .keyword-checkbox {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.35rem;
    margin-bottom: 0.1rem;
    border-radius: 3px;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
}

.reviews-filters .keyword-checkbox input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.reviews-filters .keyword-checkbox span {
    flex: 1;
    line-height: 1.2;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Модальное окно «Все фильтры» */
.reviews-all-filters-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.reviews-all-filters-modal:not([hidden]) {
    opacity: 1;
    visibility: visible;
}

.reviews-all-filters-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.reviews-all-filters-dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    max-height: min(90vh, calc(100dvh - 2rem));
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.reviews-all-filters-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
.reviews-all-filters-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
}

.reviews-all-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.reviews-all-filters-title {
    margin: 0;
    font-size: 1.15rem;
}

.reviews-all-filters-close {
    width: 2rem;
    height: 2rem;
    border: none;
    background: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    border-radius: 6px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviews-all-filters-close:hover {
    color: var(--text);
    background: var(--surface-muted);
}

.reviews-filter-group {
    border-bottom: 1px solid var(--border);
}

.reviews-filter-group-title {
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.reviews-filter-group-title::-webkit-details-marker {
    display: none;
}

.reviews-filter-group-title::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--muted);
    transition: transform 0.2s;
}

.reviews-filter-group[open] .reviews-filter-group-title::after {
    transform: rotate(180deg);
}

.reviews-filter-group-content {
    padding: 0 1.25rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.reviews-filter-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.reviews-filter-option input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.reviews-filter-option .count {
    color: var(--muted);
    font-size: 0.8rem;
}

.reviews-filter-more {
    margin-top: 0.35rem;
}

.reviews-filter-show-more {
    background: none;
    border: none;
    color: var(--brand);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.2rem 0;
    text-decoration: underline;
}

.reviews-filter-show-more:hover {
    color: var(--brand-dark);
}

.reviews-filter-rest {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.reviews-filter-rest.is-visible {
    display: flex;
}

.reviews-filter-more.is-hidden {
    display: none;
}

.reviews-filter-group-inline {
    border-bottom: 1px solid var(--border);
}

.reviews-filter-group-inline .reviews-filter-group-title {
    display: block;
    padding: 0.65rem 1.25rem 0.35rem;
    cursor: default;
}

.reviews-filter-group-inline .reviews-filter-group-title::after {
    display: none;
}

.reviews-modal-search,
.reviews-modal-order {
    width: calc(100% - 2.5rem);
    margin: 0 1.25rem 0.85rem;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
}

.reviews-filter-keyword-category {
    margin-bottom: 0.5rem;
}

.reviews-filter-keyword-cat-title {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.reviews-all-filters-footer {
    display: flex;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.reviews-all-filters-footer .btn,
.reviews-all-filters-footer .btn-reset {
    flex: 1;
    text-align: center;
}

.reviews-results {
    min-width: 0;
}

.reviews-results .product-grid {
    margin-top: 0.35rem;
}

.reviews-results .results-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.85rem;
}

.reviews-results .results-header h1,
.reviews-results .results-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.reviews-results .results-count {
    color: var(--muted);
    font-size: 0.85rem;
}

.reviews-results .pagination {
    display: flex;
    gap: 0.45rem;
    justify-content: center;
    margin-top: 1.5rem;
    align-items: center;
}

.reviews-results .pagination a {
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
}

.reviews-results .pagination a:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.reviews-results .pagination .current {
    padding: 0.45rem 0.9rem;
    color: var(--muted);
}

@media (max-width: 992px) {
    .reviews-layout {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0 var(--mobile-side-gap);
    }

    .reviews-filters-shell,
    .home-filters-shell {
        width: 100%;
        order: 0;
    }

    .reviews-filter-toggle,
    .home-filter-toggle {
        display: flex;
    }

    .reviews-filters,
    .home-filters {
        position: static;
        border-radius: 16px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
        display: none;
    }

    .reviews-filters.is-open,
    .home-filters.is-open {
        display: block;
    }

    .reviews-results {
        order: 1;
    }
}

@media (max-width: 640px) {
    .reviews-results .results-header {
        margin-bottom: 0.15rem;
    }

    .reviews-results .results-header h1,
    .reviews-results .results-header h3 {
        margin: 0 0 0.05rem;
        font-size: 1rem;
    }

    .reviews-layout {
        gap: 0.2rem;
        padding: 0 0.35rem;
    }

    .reviews-filter-toggle {
        padding: 0.35rem 0.6rem;
    }

    .reviews-filters-shell {
        gap: 0.3rem;
    }

    .content.reviews-home {
        padding: 0.5rem 0 1.4rem;
    }

    .reviews-home .hero {
        padding: 0.75rem 0.85rem;
        margin: 0 auto 0.35rem;
        border-radius: 14px;
    }

    .reviews-home .hero {
        display: none;
    }

    .reviews-home .review-categories {
        display: none;
    }

    .reviews-home .landing-reviews {
        margin-top: 0;
    }

    .reviews-home .landing-reviews .section-header {
        margin-bottom: 0.4rem;
    }
}

/* Карточки в разделе обзоров */
.latest-reviews-section .product-grid,
.reviews-results .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.latest-reviews-section .product-card,
.reviews-results .product-card {
    border-radius: 12px;
}

.latest-reviews-section .product-thumb,
.reviews-results .product-thumb {
    aspect-ratio: 4 / 3;
}

.latest-reviews-section .product-body,
.reviews-results .product-body {
    padding: 0.45rem 0.5rem 0.6rem;
}

.latest-reviews-section .product-card h3,
.reviews-results .product-card h3 {
    font-size: 0.82rem;
    line-height: 1.18;
    min-height: 2.1em;
    margin: 0 0 0.25rem;
}

.latest-reviews-section .product-card h3 a,
.reviews-results .product-card h3 a {
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

.review-categories {
    margin: 0.5rem 0;
}

.reviews-home .review-categories:empty {
    margin: 0;
}

.category-section {
    margin-bottom: 1.6rem;
}

.category-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.7rem;
}

.category-links {
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: thin;
}

.category-link-btn {
    flex: 0 0 auto;
    padding: 0.28rem 0.62rem;
    font-size: 0.74rem;
    line-height: 1.05;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #d1d5db;
    text-decoration: none;
}

.category-link-btn:hover {
    background: #e5e7eb;
    color: #111827;
    border-color: #9ca3af;
}

.category-link-btn.is-active {
    background: #e0f2fe;
    color: #0c4a6e;
    border-color: #7dd3fc;
}

.category-section--brand .category-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.category-section--brand .category-card {
    flex: 0 0 auto;
    min-width: 132px;
    border-radius: 9px;
    padding: 0.45rem 0.55rem;
}

.category-section--brand .category-card-content h3 {
    margin: 0 0 0.2rem;
    font-size: 0.84rem;
    line-height: 1.15;
}

.category-section--brand .category-count {
    font-size: 0.72rem;
    line-height: 1.1;
}

.category-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.2s;
    display: block;
}

.category-card:hover {
    border-color: var(--brand);
    box-shadow: 0 4px 12px rgba(0, 170, 255, 0.1);
    transform: translateY(-2px);
}

.cart-page {
    margin: 0 auto 2rem;
}

.cart-title {
    margin: 0 0 1rem;
    font-size: 1.5rem;
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.cart-item-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.cart-item-title {
    font-weight: 600;
    display: block;
    margin-bottom: 0.35rem;
}

.cart-item-meta {
    display: flex;
    gap: 0.6rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.cart-item-controls {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.55rem;
}

.cart-item-controls form {
    margin: 0;
}

.cart-qty-btn {
    min-height: 34px;
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
}

.cart-qty-btn--secondary {
    background: #f8fbff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.cart-item-total {
    text-align: right;
    font-weight: 600;
}

.cart-remove {
    margin-top: 0.35rem;
    border: none;
    background: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
}

.cart-summary {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.cart-actions {
    margin-top: 0.75rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.cart-actions .btn-buy-now {
    width: auto;
}

.cart-summary-total {
    font-size: 1.1rem;
}
.cart-promo-applied {
    font-size: 0.9rem;
    color: #0ea5e9;
    margin: 0.25rem 0;
}
.cart-promo-block {
    margin-top: 0.5rem;
}
.cart-promo-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.cart-promo-input {
    padding: 0.4rem 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
    width: 140px;
}
.cart-promo-remove {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0.25rem 0;
}
.cart-promo-remove:hover { color: #0f172a; }
.cart-promo-error {
    font-size: 0.85rem;
    color: #dc2626;
    margin-top: 0.25rem;
}
.btn-buy-now--small {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.cart-empty {
    padding: 1rem 0;
    color: var(--muted);
}

@media (max-width: 640px) {
    .cart-item {
        grid-template-columns: 72px 1fr;
        grid-template-rows: auto auto;
    }

    .cart-item-total {
        grid-column: 1 / -1;
        text-align: left;
    }

    .cart-item-controls {
        margin-bottom: 0.35rem;
    }

    .cart-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-actions .btn-buy-now {
        width: 100%;
    }
}

.category-card-content h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: var(--text);
}

.category-count {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 1200px) {
    .latest-reviews-section .product-grid,
    .reviews-results .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 820px) {
    .reviews-layout {
        padding: 0 0.5rem;
    }

    .latest-reviews-section .product-grid,
    .reviews-results .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.55rem;
    }
}

@media (max-width: 520px) {
    .reviews-layout {
        padding: 0 0.35rem;
    }

    .latest-reviews-section .product-grid,
    .reviews-results .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    .latest-reviews-section .product-card h3,
    .reviews-results .product-card h3 {
        font-size: 0.78rem;
    }
}

@media (max-width: 360px) {
    .latest-reviews-section .product-grid,
    .reviews-results .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .latest-reviews-section .product-thumb,
    .reviews-results .product-thumb {
        aspect-ratio: 3.5 / 3;
    }

    .latest-reviews-section .product-body,
    .reviews-results .product-body {
        padding: 0.4rem 0.45rem 0.55rem;
    }
}

@media (max-width: 600px) {
    .product-detail {
        padding: 0.75rem;
        border-radius: 16px;
        gap: 0.85rem;
    }

    .product-detail__header {
        gap: 0.3rem;
    }

    .product-detail__header .product-title {
        font-size: 1.32rem;
    }

    .product-brand-pill {
        font-size: 0.72rem;
        padding: 0.18rem 0.75rem;
    }

    .product-summary-card {
        padding: 0.85rem;
    }

    .summary-card-grid {
        grid-template-columns: 1fr;
    }

    .summary-card-row {
        padding: 0.3rem 0.45rem;
    }

    .summary-card-row dd {
        font-size: 0.78rem;
    }

    .summary-price-block .price {
        font-size: 1.22rem;
    }

    .summary-price-block .availability-badge {
        font-size: 0.68rem !important;
        padding: 0.32rem 0.55rem !important;
    }

    .gallery-main {
        min-height: 220px;
    }

    .thumb-btn {
        width: 66px;
        height: 52px;
    }

    .btn-buy-now {
        padding: 7px 6px;
        font-size: 0.72rem;
    }
}

.product-detail {
    width: min(1200px, 92vw);
    margin: 0 auto 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 26px;
    background: #f9fbff;
    box-shadow: 0 15px 50px rgba(15, 23, 42, 0.07);
}

.product-detail__header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.product-brand-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(120deg, #3870ff 0%, #59a4ff 100%);
    color: #fff;
    font-weight: 600;
    width: fit-content;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(56, 112, 255, 0.3);
}

.product-detail__header .product-title {
    font-size: 1.5rem;
    margin: 0;
    color: #0f172a;
    line-height: 1.2;
}

.product-detail__main {
    display: grid;
    grid-template-columns: minmax(0, 52%) minmax(280px, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.product-gallery-card {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    padding: 0.85rem 0.95rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.gallery-main {
    border-radius: 12px;
    background: #f4f7fc;
    padding: 0.75rem;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    width: 100%;
    max-height: 390px;
    object-fit: contain;
}

.gallery-thumbs {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.25rem;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, 0.15) transparent;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.05);
    border-radius: 3px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.2);
    border-radius: 3px;
}

.gallery-thumbs::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 23, 42, 0.3);
}

.thumb-btn {
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0;
    background: #fff;
    cursor: pointer;
    width: 70px;
    height: 52px;
    flex: 0 0 70px;
    scroll-snap-align: start;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.1);
    transition: border-color 0.2s, transform 0.2s;
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.thumb-btn:hover,
.thumb-btn:focus {
    border-color: #1d4ed8;
    transform: translateY(-2px);
}

.product-summary-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.summary-add-to-cart {
    display: flex;
    justify-content: stretch;
}

.summary-add-to-cart--under-gallery {
    margin-top: 0.75rem;
}

.summary-add-to-cart .btn-buy-now {
    width: 100%;
}

.summary-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.78rem;
    color: #1f2937;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid rgba(0, 136, 204, 0.15);
}

.summary-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem 0.65rem;
    margin: 0;
}

.summary-card-row {
    background: rgba(15, 23, 42, 0.02);
    border-radius: 10px;
    padding: 0.35rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.summary-card-row dt {
    margin: 0;
    font-size: 0.66rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.summary-card-row dd {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #0f172a;
    margin-left: auto;
    text-align: right;
}

.summary-price-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    text-align: left;
    flex-wrap: nowrap;
    padding-left: 2rem;
}

.summary-price-block .price {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
    white-space: nowrap;
}

.summary-price-block .price-block--deal {
    display: flex;
    flex-direction: row;
    gap: 0.35rem;
    align-items: center;
    flex-wrap: nowrap;
}

.summary-price-block .price-block--deal .current-price {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
    white-space: nowrap;
}

.summary-price-block .price-block--deal .price-old {
    font-size: 0.95rem;
    font-weight: 400;
    color: #dc2626;
    text-decoration: line-through !important;
    opacity: 0.7;
    white-space: nowrap;
}

.summary-price-block .price-on-request {
    font-size: 0.95rem;
    color: #c2410c;
    white-space: nowrap;
}

.summary-price-block .availability-badge {
    width: auto;
    justify-content: center;
    font-size: 0.72rem !important;
    padding: 0.35rem 0.6rem !important;
    white-space: nowrap;
}

.summary-price-block__price {
    margin-left: auto;
}

/* Блок вариантов конфигурации (мультиобъявления) */
.product-variant-options {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.product-variant-options__title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.4rem 0;
}

.product-variant-options__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.product-variant-options__item {
    margin: 0;
}

.product-variant-option-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    width: 100%;
    padding: 0.32rem 0.6rem;
    background: var(--brand);
    color: #fff;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: left;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    box-sizing: border-box;
}

.product-variant-option-badge:hover {
    background: var(--brand-dark);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-1px);
}

.product-variant-option-badge__specs {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.product-variant-option-badge__price {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    color: #0f172a;
    white-space: nowrap;
}

.breadcrumbs {
    font-size: 0.82rem;
    color: var(--muted);
    display: flex;
    gap: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.2rem;
}

.breadcrumbs a {
    color: inherit;
}

@media (max-width: 640px) {
    .breadcrumbs {
        margin-bottom: 0.1rem !important;
    }

    .container + .catalog-layout.reviews-layout {
        margin-top: 0.1rem;
    }

    .reviews-layout {
        gap: 0.35rem;
        padding-top: 0.1rem;
    }
}

.product-title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.4rem;
    line-height: 1.2;
}

.product-detail .product-title {
    margin-top: 0;
}

.availability-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.2rem !important;
    font-size: 0.95rem !important;
    line-height: 1.4;
    font-weight: 500 !important;
    border-radius: 8px !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
    background-color: rgba(148, 163, 184, 0.1) !important;
    color: #64748b !important;
    white-space: nowrap;
    min-height: 2.75rem !important;
    box-sizing: border-box;
    margin-left: auto;
}

@media (max-width: 992px) {
    .product-detail {
        padding: 1rem;
        border-radius: 20px;
        gap: 1rem;
    }

    .product-detail__main {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-summary-card {
        order: -1;
        padding: 1rem 1.1rem;
    }

    .gallery-main {
        min-height: 260px;
    }

    .product-detail__header .product-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .home-products .product-grid {
        padding: 0;
    }

    .product-detail {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 1.25rem;
        padding: 0.9rem 0.75rem;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.09);
    }

    .product-detail__header {
        gap: 0.35rem;
    }

    .product-detail__header .product-title {
        font-size: 1.35rem;
    }

    .product-detail__main {
        gap: 0.75rem;
    }

    .product-detail__main > * {
        min-width: 0;
    }

    .product-gallery-card {
        max-width: 100%;
        padding: 0.75rem;
    }

    .product-gallery-card,
    .product-summary-card {
        border-radius: 14px;
        padding: 0.9rem;
        border: 1px solid rgba(15, 23, 42, 0.08);
        background: #fff;
        box-shadow: none;
    }

    .gallery-main {
        min-height: 0;
        padding: 0.5rem;
    }

    .product-summary-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        gap: 0.5rem;
        box-sizing: border-box;
        overflow: hidden;
    }

    .summary-card-grid {
        gap: 0.35rem;
    }

    .summary-card-row {
        padding: 0.32rem 0.5rem;
        min-width: 0;
    }

    .summary-card-row dt {
        font-size: 0.64rem;
    }

    .summary-card-row dd {
        font-size: 0.8rem;
    }

    .summary-price-block {
        align-items: center;
        text-align: left;
        gap: 0.5rem;
        padding-left: 0;
        flex-wrap: nowrap;
        justify-content: space-between;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .summary-price-block .price {
        font-size: 1.24rem;
    }

    .summary-price-block .availability-badge {
        width: auto;
        justify-content: center;
        white-space: nowrap;
        text-align: left;
    }

    .summary-price-block__price {
        margin-left: auto;
        flex-shrink: 0;
    }

    .summary-price-block .price,
    .summary-price-block .price-on-request,
    .summary-price-block .price-block--deal .current-price,
    .summary-price-block .price-block--deal .price-old {
        white-space: nowrap;
    }

    .product-variant-options,
    .product-variant-options__list,
    .product-variant-options__item {
        min-width: 0;
    }

    .product-variant-option-badge {
        max-width: 100%;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .product-variant-option-badge__specs {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .gallery-main {
        padding: 0.5rem;
        border-radius: 14px;
        min-height: 230px;
    }

    .gallery-thumbs {
        display: flex;
        gap: 0.35rem;
        padding-bottom: 0.15rem;
        max-width: 100%;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
        scrollbar-color: rgba(15, 23, 42, 0.2) transparent;
        box-sizing: border-box;
    }

    .gallery-thumbs::-webkit-scrollbar {
        height: 4px;
    }

    .gallery-thumbs::-webkit-scrollbar-track {
        background: transparent;
    }

    .gallery-thumbs::-webkit-scrollbar-thumb {
        background: rgba(15, 23, 42, 0.2);
        border-radius: 2px;
    }

    .thumb-btn {
        width: 70px;
        height: 56px;
        flex: 0 0 70px;
        scroll-snap-align: start;
    }

    .product-gallery-card {
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
}

.purchase-row .availability-badge.available,
.purchase-row .availability-badge.in_stock,
.availability-badge.available,
.availability-badge.in_stock {
    background-color: rgba(34, 197, 94, 0.1) !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
    color: #16a34a !important;
}

.purchase-row .availability-badge.out_of_stock,
.purchase-row .availability-badge.unavailable,
.availability-badge.out_of_stock,
.availability-badge.unavailable {
    background-color: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    color: #dc2626 !important;
}

.availability-badge.limited {
    background-color: rgba(251, 191, 36, 0.1) !important;
    border-color: rgba(251, 191, 36, 0.3) !important;
    color: #d97706 !important;
}

.availability-badge.on_request {
    background-color: rgba(148, 163, 184, 0.1) !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
    color: #64748b !important;
}

.price-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.price {
    font-size: 2rem;
    font-weight: 700;
}

.btn.outline {
    background: transparent;
    color: var(--brand);
    border: 1px solid var(--brand);
    padding: 0.65rem 1.2rem;
}

.action-card form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.action-card input,
.action-card textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.product-description,
.product-attributes {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.product-description {
    padding: 1rem;
}

.product-description__shadow-host {
    display: block;
    width: 100%;
}

.product-description .html-body {
    font-size: 0.95rem;
    line-height: 1.55;
}

.product-attributes {
    padding: 0;
}

.attribute-panel {
    border: none;
    margin: 0;
}

.attribute-panel summary {
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.4rem;
    cursor: pointer;
    list-style: none;
}

.attribute-panel summary::-webkit-details-marker {
    display: none;
}

.attribute-summary-line {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.attribute-summary-line h2 {
    margin: 0;
    font-size: 1.05rem;
}

.attribute-summary-meta {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    font-size: 0.88rem;
    flex-wrap: wrap;
}

.attribute-toggle-control {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.attribute-count {
    font-size: 0.85rem;
    color: var(--muted);
}

.attribute-toggle-icon {
    width: 0.75rem;
    height: 0.75rem;
    border-right: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.attribute-panel[open] .attribute-toggle-icon {
    transform: rotate(-135deg);
}

.attribute-toggle-text {
    color: var(--brand);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.attribute-toggle-text:hover {
    text-decoration: underline;
}

.attribute-body {
    padding: 0 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.specs-source-note {
    margin: 0 0 0.35rem;
    padding: 0.65rem 0.8rem;
    border-radius: 12px;
    border: 1px solid #dbe4f0;
    background: #f3f7fb;
    color: #3d4f63;
    font-size: 0.88rem;
    line-height: 1.45;
}

.specs-source-note a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.specs-source-note a:hover {
    text-decoration: none;
}

.product-buy-terms a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.product-buy-terms a:hover {
    text-decoration: none;
}

.attribute-group {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.55rem 0.8rem 0.65rem;
    background: #f8fafc;
}

.attribute-group-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.attribute-list {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(120px, 1.2fr);
    gap: 0.15rem 0.6rem;
    margin: 0;
}

.attribute-list--two-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem 1.2rem;
}

.attribute-list--two-columns .attribute-item {
    display: grid;
    grid-template-columns: minmax(140px, 1.2fr) minmax(100px, 1fr);
    gap: 0.4rem 0.8rem;
    align-items: start;
}

.attribute-list dt {
    font-weight: 500;
    font-size: 0.88rem;
    margin: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.attribute-list dd {
    margin: 0;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.attribute-name {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    position: relative;
}

.attribute-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    cursor: help;
    line-height: 1;
    flex-shrink: 0;
    transition: background-color 0.2s, transform 0.2s;
}

.attribute-info-icon:hover {
    background: var(--brand-dark);
    transform: scale(1.1);
}

/* Обёртка для иконки и всплывающей подсказки */
.attribute-info-tooltip-wrap {
    position: relative;
}

.attribute-info-tooltip-wrap .attribute-info-icon-inner {
    display: inline-block;
}

/* Всплывающее окно подсказки: показ с задержкой при скрытии, прокрутка внутри */
.attribute-info-tooltip-bubble {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: rgba(15, 23, 42, 0.95);
    color: #fff;
    padding: 0;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.4;
    max-width: 280px;
    min-width: 200px;
    width: max-content;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease 0s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: left;
    /* Высота увеличена, контент прокручивается */
    max-height: min(35vh, 14rem);
    overflow-y: auto;
    overflow-x: hidden;
}

.attribute-info-tooltip-bubble .attribute-info-tooltip-inner {
    display: block;
    padding: 0.65rem 0.85rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.5;
    word-break: break-word;
}

/* При наведении на обёртку или на саму подсказку — показываем и даём взаимодействие */
.attribute-info-tooltip-wrap:hover .attribute-info-tooltip-bubble,
.attribute-info-tooltip-wrap.is-tooltip-visible .attribute-info-tooltip-bubble,
.attribute-info-tooltip-bubble:hover {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s;
}

/* Позиционирование через JS: подсказка не выходит за край экрана */
.attribute-info-tooltip-bubble.attribute-info-tooltip-bubble--positioned {
    position: fixed;
    bottom: auto;
    left: 0;
    transform: none;
}

/* Задержка перед исчезновением (0.35s), чтобы успеть навести на подсказку и проскроллить */
.attribute-info-tooltip-wrap .attribute-info-tooltip-bubble {
    transition: opacity 0.2s ease 0.35s, transform 0.2s;
}

.attribute-info-tooltip-wrap:hover .attribute-info-tooltip-bubble {
    transition-delay: 0s;
}

/* Стрелка вниз (опционально) */
.attribute-info-tooltip-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(15, 23, 42, 0.95);
}

@media (max-width: 768px) {
    .attribute-list--two-columns {
        grid-template-columns: 1fr;
        gap: 0.35rem 0;
    }
    
    .attribute-list--two-columns .attribute-item {
        grid-template-columns: 1fr;
        gap: 0.2rem 0;
    }
    
    .attribute-info-tooltip-bubble:not(.attribute-info-tooltip-bubble--positioned) {
        max-width: calc(100vw - 2rem);
        left: 0;
        transform: translateX(0) translateY(-4px);
    }
    
    .attribute-info-tooltip-wrap:hover .attribute-info-tooltip-bubble:not(.attribute-info-tooltip-bubble--positioned),
    .attribute-info-tooltip-bubble:hover:not(.attribute-info-tooltip-bubble--positioned) {
        transform: translateX(0) translateY(0);
    }
    
    .attribute-info-tooltip-bubble:not(.attribute-info-tooltip-bubble--positioned)::after {
        left: 8px;
        transform: translateX(0);
    }
}

.html-body p {
    margin: 0 0 0.6rem;
}

.site-footer {
    padding: 2rem 0 1rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    background: #fff;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}

.social-icon:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-2px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--brand);
    text-decoration: underline;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-icon {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--brand);
}

.contact-item a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: var(--brand);
    text-decoration: underline;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.miniapp-placeholder {
    width: min(800px, 92vw);
    margin: 2rem auto;
}

.miniapp-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.miniapp-card code {
    background: #f1f5f9;
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.miniapp-note {
    font-size: 0.85rem;
    color: var(--muted);
}

@media (max-width: 960px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    .site-header .container {
        flex-direction: column;
        align-items: stretch;
    }
    .search-form {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .site-header .logo {
        display: block;
    }
    .site-nav {
        font-size: 0.85rem;
        gap: 0.75rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .hero-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-header .hero-actions {
        width: 100%;
        flex-direction: column;
    }
    .hero-mini-links {
        flex-direction: column;
    }
    .hero-mini-link {
        width: 100%;
        justify-content: center;
    }
    .manager-trust-badges--hero-all,
    .manager-trust-badges--hero-trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .hero-header .btn {
        width: 100%;
        justify-content: center;
    }
    .hero.hero-compact {
        display: none;
    }
    
    /* Мобильные стили для карточек поддержки */
    .support-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .support-card {
        padding: 0.75rem 0.85rem;
        gap: 0.65rem;
    }
    
    .support-card-icon {
        font-size: 1.35rem;
    }
    
    .support-card h3 {
        font-size: 0.88rem;
    }
    
    .support-card p {
        font-size: 0.8rem;
    }
    
    .support-card-phone {
        font-size: 0.95rem !important;
    }
    
    .support-card-action {
        font-size: 0.78rem;
    }
    .purchase-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    .purchase-row .price {
        font-size: 1.5rem;
    }
    .purchase-row .btn,
    .purchase-row .availability-badge {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
    .purchase-buttons {
        width: 100%;
        flex-wrap: wrap;
    }
    .purchase-buttons .btn {
        flex: 1;
        min-width: 48%;
        justify-content: center;
    }
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
    .product-thumb {
        aspect-ratio: 4 / 3;
    }
    .product-card h3 {
        font-size: 0.92rem;
    }
    .hero {
        padding: 1.4rem;
    }
    /* gallery-thumbs уже настроен выше в @media (max-width: 768px) с flex и overflow-x: auto */
    .attribute-list {
        grid-template-columns: 1fr;
    }
    .attribute-panel summary {
        padding: 0.75rem 0.85rem;
    }
    .attribute-body {
        padding: 0 0.85rem 0.85rem;
    }
    .attribute-summary-line {
        flex-direction: column;
        align-items: flex-start;
    }
    .attribute-summary-meta {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    .site-header .container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.45rem;
        padding: 0.6rem 0;
    }
    .logo-group {
        padding-left: 0.4rem;
    }
    .site-nav {
        display: none;
    }
    .logo-group {
        align-items: flex-start;
    }
    .logo {
        display: block;
        font-size: 1.05rem;
    }
    .logo-subtitle {
        display: block;
    }
    .search-form {
        width: 100%;
        margin-bottom: 0;
    }
    .search-form input {
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .seo-landing-cta {
        gap: 0.34rem;
    }

    .seo-landing-cta .btn {
        min-height: 50px;
        padding: 0.28rem 0.3rem;
        border-radius: 10px;
        font-size: 0.66rem;
        line-height: 1.12;
        letter-spacing: 0;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .hero.hero-compact {
        padding: 0.8rem 0.9rem;
        margin-bottom: 0.6rem;
    }

    .hero.hero-compact .hero-header {
        margin-bottom: 0.12rem;
    }

    .hero.hero-compact h1 {
        font-size: 1.02rem;
        line-height: 1.14;
        color: #111827;
    }

    .hero.hero-compact p {
        font-size: 0.72rem;
        line-height: 1.34;
        color: rgba(17, 24, 39, 0.88);
        max-width: none;
    }

    .hero.hero-compact .hero-mini-links {
        gap: 0.35rem;
        margin-top: 0.55rem;
    }

    .hero.hero-compact .hero-mini-link {
        min-height: 30px;
        padding: 0.34rem 0.62rem;
        font-size: 0.72rem;
    }
}

.mobile-bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 0.4rem 0.6rem calc(0.4rem + env(safe-area-inset-bottom));
    gap: 0.4rem;
    justify-content: space-around;
    min-height: 56px;
    box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.08);
    transform: translateZ(0);
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    position: relative;
}

.bottom-nav-badge {
    position: absolute;
    top: 6px;
    right: 18px;
    background: #ef4444;
    color: #fff;
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 0.65rem;
    line-height: 1;
    font-weight: 600;
}

[hidden] {
    display: none !important;
}

.bottom-nav-item.is-active {
    color: var(--brand);
}

.bottom-nav-icon {
    font-size: 1.2rem;
    line-height: 1;
}

@media (pointer: coarse), (hover: none), (max-width: 1024px) {
    .mobile-bottom-nav {
        display: flex;
    }
    .content {
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
    }
    .site-footer {
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
    }
}

@media (max-width: 1024px) {
    .mobile-bottom-nav {
        display: flex !important;
    }
    .content {
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
    }
    .site-footer {
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
    }
}

@media (max-height: 420px) and (orientation: landscape) {
    .site-header .container {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.75rem;
        padding: 0.4rem 0;
    }
    .site-nav {
        order: 1;
        flex: 1;
        flex-wrap: nowrap;
        gap: 0.75rem;
        overflow-x: auto;
        white-space: nowrap;
    }
    .search-form {
        order: 2;
        flex: 0 0 220px;
        margin-bottom: 0;
    }
    .search-form input {
        padding: 0.4rem 0.6rem;
    }
    .search-form button {
        padding: 0.4rem 0.7rem;
    }
    .logo {
        font-size: 1rem;
    }
}

.review-meta {
    font-size: 0.7rem;
    color: var(--muted);
    margin: 0.2rem 0;
    line-height: 1.2;
}

.review-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-top: 0.3rem;
}

.category-tag {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.64rem;
    color: var(--muted);
    line-height: 1.3;
}

.review-product-specs {
    margin-top: 0.35rem;
}



/* Lightbox для полноэкранного просмотра фото */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10001;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 2.5rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 10001;
    transition: background 0.2s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

@media (max-width: 640px) {
    .lightbox {
        padding: 1rem;
    }
    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 2rem;
    }
    .lightbox-nav {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 2rem;
    }
    .lightbox-prev {
        left: 0.5rem;
    }
    .lightbox-next {
        right: 0.5rem;
    }
}


.deal-of-day {
    margin-top: 1rem;
}

.deal-of-day .section-header {
    margin-bottom: 0.75rem;
}

.deal-of-day .section-header h3 {
    font-size: 1rem;
    margin: 0;
}

.deal-carousel {
    position: relative;
}

.deal-slide {
    display: none !important;
}

.deal-slide.is-active {
    display: block !important;
}

.promo-card--deal {
    position: relative;
}

.promo-card--deal .promo-badge {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: #ff8c00;
    color: #fff;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    z-index: 2;
}

/* Зачёркнутая цена для акций */
.promo-card--deal .price-old,
.product-card--deal .price-old,
.product-card .price-old,
.product-card .product-price-block .price-old {
    font-size: 0.85rem !important;
    color: #dc2626 !important;
    text-decoration: line-through !important;
    margin-left: 0.5rem !important;
    display: inline-block !important;
    opacity: 0.7 !important;
    white-space: nowrap;
}

.product-card .product-price-row .product-price-block .price-old {
    margin-left: 0 !important;
    display: block !important;
    order: 1;
}

.product-card .product-price-row .product-price-block .current-price {
    order: 2;
}

@media (max-width: 640px) {
    .product-card .product-price-block .current-price {
        font-size: 1rem;
    }

    .product-card .price-old {
        font-size: 0.78rem !important;
    }
}

.promo-card--deal .promo-text {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.35;
}

/* Стили для промо-блоков (Telegram и другие) */
.promo-card--telegram .promo-image,
.promo-card .promo-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.promo-card--telegram .product-image,
.promo-card .product-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.promo-card--telegram .thumb-placeholder,
.promo-card .thumb-placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px;
}

.promo-card--telegram .promo-text,
.promo-card .promo-text {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.35;
    margin-top: 0.5rem;
}

/* Карусель промо-блоков */
.promo-blocks-carousel {
    position: relative;
}

.promo-blocks-carousel .promo-slide {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.promo-blocks-carousel .promo-slide.is-active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Бейдж акции на обычных карточках товаров - водяной знак (водяной знак, не влияет на верстку) */
.product-card .product-image .promo-badge--watermark,
.product-card .promo-badge--watermark {
    position: absolute !important;
    top: 0.5rem !important;
    right: 0.5rem !important;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: #fff !important;
    font-weight: 800 !important;
    padding: 0.35rem 0.6rem !important;
    border-radius: 8px !important;
    font-size: 0.75rem !important;
    z-index: 2 !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    pointer-events: none !important;
    transform: rotate(-2deg) !important;
    letter-spacing: 0.5px !important;
    margin: 0 !important;
}


/* Quick Buy Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show {
    opacity: 1;
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(50px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

/* Всплывающее окно «Ответь на 2 вопроса — получи скидку» */
.popup-survey-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.popup-survey-overlay.popup-survey-visible {
    display: flex;
    opacity: 1;
}
.popup-survey-content {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    max-width: 440px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
}
.popup-survey-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    border: none;
    background: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
}
.popup-survey-close:hover { color: #0f172a; }
.popup-survey-title {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}
.popup-survey-desc {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
}
.popup-survey-options {
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.popup-survey-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}
.popup-survey-option input[type="radio"] { flex-shrink: 0; }
.popup-survey-input-inline {
    flex: 1;
    max-width: 200px;
    padding: 0.35rem 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
}
.popup-survey-field {
    margin: 0 0 0.75rem;
}
.popup-survey-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}
.popup-survey-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #475569;
    margin: 0 0 1rem;
    cursor: pointer;
}
.popup-survey-checkbox input { flex-shrink: 0; margin-top: 0.2rem; }
.popup-survey-checkbox a { color: #0ea5e9; text-decoration: underline; }
.popup-survey-checkbox a:hover { color: #0284c7; }
.popup-survey-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.popup-survey-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s;
}
.popup-survey-btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: #fff;
}
.popup-survey-btn-primary:hover { background: linear-gradient(135deg, #0284c7, #1d4ed8); color: #fff; }
.popup-survey-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}
.popup-survey-btn-secondary:hover { background: #e2e8f0; color: #0f172a; }
body.popup-survey-open { overflow: hidden; }

@media (max-width: 640px) {
    .popup-survey-content {
        width: calc(100vw - 12px);
        max-height: calc(100dvh - 12px);
        padding: 1rem 0.9rem;
        border-radius: 14px;
    }

    .popup-survey-title {
        font-size: 1.02rem;
        line-height: 1.18;
        margin-bottom: 0.55rem;
    }

    .popup-survey-desc {
        margin-bottom: 0.7rem;
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .popup-survey-options {
        gap: 0.38rem;
        margin-bottom: 0.7rem;
    }

    .popup-survey-option {
        gap: 0.42rem;
        font-size: 0.82rem;
        line-height: 1.24;
    }

    .popup-survey-input-inline {
        max-width: 160px;
        padding: 0.3rem 0.42rem;
        font-size: 0.82rem;
    }

    .popup-survey-field {
        margin-bottom: 0.55rem;
    }

    .popup-survey-input {
        padding: 0.55rem 0.68rem;
        font-size: 0.92rem;
    }

    .popup-survey-checkbox {
        gap: 0.42rem;
        margin-bottom: 0.7rem;
        font-size: 0.72rem;
        line-height: 1.28;
    }

    .popup-survey-actions {
        gap: 0.4rem;
        margin-top: 0.75rem;
    }

    .popup-survey-btn {
        flex: 1 1 0;
        min-height: 40px;
        padding: 0.55rem 0.7rem;
        font-size: 0.82rem;
    }
}

.selection-popup-overlay {
    background:
        radial-gradient(circle at top, rgba(96, 165, 250, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.5));
}

.selection-popup-content {
    max-width: 700px;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-radius: 30px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98)),
        #fff;
    box-shadow: 0 32px 90px rgba(15, 23, 42, 0.34);
}

.selection-popup-content.is-second-chance {
    border-color: rgba(251, 191, 36, 0.38);
    background:
        linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.98)),
        #fff;
}

.selection-popup-shell {
    position: relative;
    padding: 1.1rem;
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 26%),
        linear-gradient(180deg, #fbfdff, #f8fbff 58%, #ffffff);
    min-height: 0;
}

.selection-popup-progress {
    margin: 0 2.25rem 1rem 0;
    padding: 0.8rem 0.95rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(191, 219, 254, 0.7);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.selection-popup-progress__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.45rem;
}

.selection-popup-progress__eyebrow,
.selection-popup-progress__count {
    font-size: 0.78rem;
    color: #64748b;
}

.selection-popup-progress__eyebrow {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.selection-popup-progress__bar {
    height: 8px;
    background: rgba(191, 219, 254, 0.42);
    border-radius: 999px;
    overflow: hidden;
}

.selection-popup-progress__fill {
    display: block;
    height: 100%;
    width: 20%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0ea5e9, #2563eb);
    transition: width 0.25s ease;
}

.selection-popup-hero {
    position: relative;
    padding: 1.35rem;
    border-radius: 28px;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.8), transparent 34%),
        radial-gradient(circle at bottom left, rgba(125, 211, 252, 0.45), transparent 32%),
        linear-gradient(135deg, #eef6ff, #dbeafe 54%, #e0f2fe);
    border: 1px solid rgba(147, 197, 253, 0.55);
    box-shadow: 0 22px 46px rgba(37, 99, 235, 0.12);
}

.selection-popup-content.is-second-chance .selection-popup-hero {
    background:
        radial-gradient(circle at top right, rgba(254, 240, 138, 0.5), transparent 34%),
        radial-gradient(circle at bottom left, rgba(253, 186, 116, 0.35), transparent 32%),
        linear-gradient(135deg, #fff7ed, #ffedd5 56%, #fef3c7);
    border-color: rgba(251, 191, 36, 0.4);
}

.selection-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: #fce7f3;
    color: #be185d;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.selection-popup-content.is-second-chance .selection-popup-badge {
    background: #fde7c7;
    color: #b45309;
}

.selection-popup-title {
    font-size: 1.9rem;
    line-height: 1.08;
    max-width: 22ch;
    text-wrap: balance;
    margin-bottom: 0.9rem;
    color: #0f172a;
    text-shadow: none;
    letter-spacing: -0.03em;
}

.selection-popup-desc-strong {
    max-width: 52ch;
    color: #334155;
    font-size: 1.02rem;
    line-height: 1.5;
}

.selection-popup-counter {
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(186, 230, 253, 0.75);
    background: rgba(255, 255, 255, 0.75);
    color: #1e293b;
    font-size: 0.92rem;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.08);
    backdrop-filter: blur(10px);
}

.selection-popup-counter strong {
    color: #1d4ed8;
}

.selection-popup-content.is-second-chance .selection-popup-counter {
    border-color: rgba(253, 230, 138, 0.95);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(245, 158, 11, 0.12));
}

.selection-popup-content.is-second-chance .selection-popup-counter strong,
.selection-popup-content.is-second-chance .selection-popup-title,
.selection-popup-content.is-second-chance .selection-popup-step-kicker {
    color: #b45309;
}

.selection-popup-counter--success {
    margin-top: 0.2rem;
}

.selection-popup-points {
    display: grid;
    gap: 0.7rem;
    margin: 0 0 1.05rem;
}

.selection-popup-points div {
    display: grid;
    gap: 0.28rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(191, 219, 254, 0.6);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    color: #334155;
    backdrop-filter: blur(8px);
}

.selection-popup-points strong {
    font-size: 1.08rem;
    line-height: 1.2;
    color: #0f172a;
    font-weight: 800;
}

.selection-popup-points span {
    font-size: 0.86rem;
    line-height: 1.48;
    color: #64748b;
}

.selection-popup-success-points span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(191, 219, 254, 0.7);
    font-size: 0.78rem;
    color: #334155;
    backdrop-filter: blur(8px);
}

.selection-popup-step-meta {
    margin-bottom: 1rem;
    padding: 1.05rem 1.1rem 0.15rem;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0));
}

.selection-popup-step-kicker {
    display: inline-block;
    margin-bottom: 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.selection-popup-options {
    gap: 0.7rem;
    padding: 0 1.1rem 1.1rem;
}

.selection-popup-option-card {
    align-items: stretch;
    padding: 0;
    position: relative;
    border-radius: 18px;
    border: 1px solid rgba(191, 219, 254, 0.85);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    overflow: hidden;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.selection-popup-option-card:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.1);
}

.selection-popup-option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.selection-popup-option-card__body {
    display: grid;
    gap: 0.2rem;
    width: 100%;
    padding: 1rem 1.05rem 1rem 1.1rem;
}

.selection-popup-option-card__body strong {
    font-size: 0.95rem;
    color: #0f172a;
}

.selection-popup-option-card__body span {
    font-size: 0.84rem;
    line-height: 1.45;
    color: #64748b;
}

.selection-popup-option-card.is-selected {
    border-color: #3b82f6;
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(248, 250, 252, 0.96));
    box-shadow: 0 16px 36px rgba(37, 99, 235, 0.14);
}

.selection-popup-option-card.is-selected::after {
    content: "Выбрано";
    position: absolute;
    top: 0.85rem;
    right: 0.95rem;
    padding: 0.24rem 0.5rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 700;
}

.selection-popup-content.is-second-chance .selection-popup-option-card.is-selected {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.96));
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.12);
}

.selection-popup-content.is-second-chance .selection-popup-option-card.is-selected .selection-popup-option-card__body strong {
    color: #b45309;
}

.selection-popup-option-card.is-selected .selection-popup-option-card__body strong {
    color: #1d4ed8;
}

.selection-popup-options--compact .selection-popup-option-card__body {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.selection-popup-actions {
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 1.1rem 1.1rem;
}

.selection-popup-actions .popup-survey-btn {
    min-height: 50px;
    padding-inline: 1.15rem;
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.selection-popup-actions--hero {
    justify-content: flex-start;
    padding: 0;
}

.selection-popup-actions--hero .popup-survey-btn-primary {
    min-width: 190px;
}

.selection-popup-content.is-second-chance .popup-survey-btn-primary {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.selection-popup-content.is-second-chance .popup-survey-btn-primary:hover {
    background: linear-gradient(135deg, #d97706, #c2410c);
}

.selection-popup-form-card {
    margin: 0 1.1rem;
    padding: 1.05rem;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.selection-popup-form-card--contacts {
    padding-bottom: 0.4rem;
}

.selection-popup-input {
    min-height: 48px;
    border-radius: 12px;
    border-color: #cbd5e1;
    background: rgba(255, 255, 255, 0.98);
}

.selection-popup-input:focus {
    border-color: #60a5fa;
    outline: none;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.14);
}

.selection-popup-checkbox {
    margin-bottom: 0.55rem;
}

.selection-popup-privacy {
    color: #64748b;
}

.selection-popup-contacts .popup-survey-field:last-child {
    margin-bottom: 0;
}

.selection-popup-success {
    padding: 1.3rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(96, 165, 250, 0.16), transparent 34%),
        linear-gradient(135deg, #f8fbff, #ffffff 58%, #eef6ff);
    border: 1px solid rgba(191, 219, 254, 0.9);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.08);
}

.selection-popup-success-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.selection-popup-status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.95rem;
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(191, 219, 254, 0.75);
    color: #334155;
    font-size: 0.9rem;
}

.selection-popup-status__spinner {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(37, 99, 235, 0.2);
    border-top-color: #2563eb;
    animation: selectionPopupSpin 0.8s linear infinite;
    flex-shrink: 0;
}

.selection-popup-status__text {
    line-height: 1.4;
}

@keyframes selectionPopupSpin {
    to {
        transform: rotate(360deg);
    }
}

.selection-popup-examples {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
}

.selection-popup-example-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid #dbeafe;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    color: #0f172a;
    text-decoration: none;
}

.selection-popup-example-card strong {
    font-size: 0.95rem;
}

.selection-popup-example-card span {
    font-size: 0.84rem;
    color: #475569;
}

.selection-popup-example-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.1);
}

@media (max-width: 640px) {
    .selection-popup-overlay.popup-survey-visible {
        align-items: flex-start;
        padding: 6px 0;
    }

    .selection-popup-content {
        width: calc(100vw - 12px);
        max-height: calc(100dvh - 12px);
        border-radius: 20px;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
    }

    .selection-popup-shell {
        padding: 0.55rem;
        max-height: inherit;
        overflow-y: visible;
    }

    .popup-survey-close {
        top: 0.55rem;
        right: 0.55rem;
        width: 34px;
        height: 34px;
        font-size: 1.15rem;
    }

    .selection-popup-progress {
        margin: 0 2rem 0.55rem 0;
        padding: 0.5rem 0.65rem;
    }

    .selection-popup-progress__eyebrow {
        display: none;
    }

    .selection-popup-progress__count {
        font-size: 0.68rem;
    }

    .selection-popup-title {
        font-size: 1.16rem;
        line-height: 1.05;
        max-width: none;
        margin-bottom: 0.38rem;
    }

    .selection-popup-desc-strong,
    .selection-popup-step-meta .popup-survey-desc,
    .selection-popup-success .popup-survey-desc {
        font-size: 0.76rem;
        line-height: 1.26;
    }

    .selection-popup-hero,
    .selection-popup-success,
    .selection-popup-form-card {
        padding: 0.62rem;
        border-radius: 16px;
    }

    .selection-popup-badge {
        margin-bottom: 0.36rem;
        padding: 0.24rem 0.44rem;
        font-size: 0.56rem;
    }

    .selection-popup-counter {
        margin-bottom: 0.45rem;
        padding: 0.42rem 0.58rem;
        font-size: 0.7rem;
    }

    .selection-popup-points {
        gap: 0.32rem;
        margin-bottom: 0.48rem;
    }

    .selection-popup-points div {
        padding: 0.42rem 0.56rem;
        gap: 0.1rem;
    }

    .selection-popup-points strong {
        font-size: 0.78rem;
    }

    .selection-popup-points span {
        display: none;
    }

    .selection-popup-points div:last-child {
        display: none;
    }

    .selection-popup-step-meta,
    .selection-popup-options,
    .selection-popup-actions {
        padding-left: 0;
        padding-right: 0;
    }

    .selection-popup-step-meta {
        margin-bottom: 0.45rem;
        padding-top: 0.65rem;
        padding-bottom: 0.05rem;
    }

    .selection-popup-step-kicker {
        margin-bottom: 0.2rem;
        font-size: 0.62rem;
    }

    .selection-popup-options {
        gap: 0.42rem;
        padding-bottom: 0.45rem;
    }

    .selection-popup-option-card {
        border-radius: 14px;
    }

    .selection-popup-option-card__body {
        padding: 0.64rem 0.78rem;
        font-size: 0.82rem;
    }

    .selection-popup-option-card__body strong {
        font-size: 0.84rem;
        line-height: 1.2;
        padding-right: 3rem;
    }

    .selection-popup-option-card__body span {
        display: none;
    }

    .selection-popup-option-card.is-selected::after {
        top: 0.5rem;
        right: 0.6rem;
        padding: 0.16rem 0.34rem;
        font-size: 0.56rem;
    }

    .selection-popup-form-card {
        margin-left: 0;
        margin-right: 0;
        padding: 0.75rem;
    }

    .selection-popup-input {
        min-height: 42px;
        font-size: 0.92rem;
    }

    .selection-popup-actions,
    .selection-popup-actions--hero {
        flex-direction: row;
        align-items: stretch;
        gap: 0.35rem;
        padding-bottom: 0.05rem;
    }

    .selection-popup-actions .popup-survey-btn,
    .selection-popup-actions--hero .popup-survey-btn {
        width: auto;
        min-width: 0;
        flex: 1 1 0;
        min-height: 40px;
        padding-inline: 0.55rem;
        font-size: 0.78rem;
    }

    .selection-popup-actions--hero .popup-survey-btn-primary {
        min-width: 0;
    }

    .selection-popup-checkbox {
        margin-bottom: 0.4rem;
        font-size: 0.78rem;
        line-height: 1.3;
    }

    .selection-popup-privacy small {
        font-size: 0.72rem;
    }

    .selection-popup-success-points {
        gap: 0.35rem;
        margin-bottom: 0.55rem;
    }

    .selection-popup-success-points span {
        min-height: 28px;
        padding: 0.3rem 0.55rem;
        font-size: 0.7rem;
    }

    .selection-popup-status {
        margin-bottom: 0.6rem;
        padding: 0.5rem 0.65rem;
        font-size: 0.78rem;
    }

    .selection-popup-examples {
        gap: 0.45rem;
        margin-top: 0.65rem;
    }

    .selection-popup-example-card {
        padding: 0.72rem 0.8rem;
        border-radius: 14px;
    }

    .selection-popup-example-card strong {
        font-size: 0.84rem;
    }

    .selection-popup-example-card span {
        font-size: 0.74rem;
    }

    .selection-popup-content.is-second-chance .selection-popup-title {
        font-size: 0.94rem;
        line-height: 1;
        margin-bottom: 0.22rem;
    }

    .selection-popup-content.is-second-chance .selection-popup-desc-strong {
        font-size: 0.67rem;
        line-height: 1.14;
        margin-bottom: 0.3rem;
    }

    .selection-popup-content.is-second-chance .selection-popup-badge {
        margin-bottom: 0.22rem;
        padding: 0.14rem 0.34rem;
        font-size: 0.48rem;
    }

    .selection-popup-content.is-second-chance .selection-popup-counter {
        margin-bottom: 0.28rem;
        padding: 0.3rem 0.42rem;
        font-size: 0.61rem;
    }

    .selection-popup-content.is-second-chance .selection-popup-points {
        gap: 0.2rem;
        margin-bottom: 0.28rem;
    }

    .selection-popup-content.is-second-chance .selection-popup-points div {
        padding: 0.28rem 0.42rem;
    }

    .selection-popup-content.is-second-chance .selection-popup-points strong {
        font-size: 0.66rem;
    }

    .selection-popup-content.is-second-chance .selection-popup-hero {
        padding: 0.52rem;
        border-radius: 14px;
    }

    .selection-popup-content.is-second-chance .selection-popup-actions--hero {
        gap: 0.28rem;
    }

    .selection-popup-content.is-second-chance .selection-popup-actions--hero .popup-survey-btn {
        min-height: 36px;
        padding-inline: 0.45rem;
        font-size: 0.74rem;
    }

    .selection-popup-content.is-second-chance {
        overflow-y: hidden;
    }

    .selection-popup-content.is-second-chance .selection-popup-shell {
        padding: 0.4rem;
    }

    .selection-popup-content.is-second-chance .popup-survey-close {
        top: 0.42rem;
        right: 0.42rem;
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .selection-popup-content.is-second-chance .selection-popup-hero {
        padding: 0.42rem;
    }

    .selection-popup-content.is-second-chance .selection-popup-desc-strong {
        margin-bottom: 0.18rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .selection-popup-content.is-second-chance .selection-popup-counter {
        display: block;
        margin-bottom: 0.16rem;
        padding: 0.2rem 0.28rem;
        font-size: 0.54rem;
        line-height: 1.16;
        border-radius: 10px;
    }

    .selection-popup-content.is-second-chance .selection-popup-points {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.16rem;
        margin-bottom: 0.22rem;
    }

    .selection-popup-content.is-second-chance .selection-popup-points div {
        padding: 0.22rem 0.28rem;
        min-height: 0;
        border-radius: 10px;
    }

    .selection-popup-content.is-second-chance .selection-popup-points strong {
        font-size: 0.58rem;
        line-height: 1.12;
    }

    .selection-popup-content.is-second-chance .selection-popup-actions--hero {
        gap: 0.22rem;
    }

    .selection-popup-content.is-second-chance .selection-popup-actions--hero .popup-survey-btn {
        min-height: 32px;
        padding-inline: 0.36rem;
        font-size: 0.68rem;
    }

    .selection-popup-content.is-second-chance .popup-survey-step[data-step="1"] .selection-popup-step-meta,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="2"] .selection-popup-step-meta,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="3"] .selection-popup-step-meta,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="4"] .selection-popup-step-meta,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="5"] .selection-popup-step-meta {
        margin-bottom: 0.22rem;
        padding-top: 0.3rem;
    }

    .selection-popup-content.is-second-chance .popup-survey-step[data-step="1"] .popup-survey-desc,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="2"] .popup-survey-desc,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="3"] .popup-survey-desc,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="4"] .popup-survey-desc,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="5"] .popup-survey-desc {
        display: -webkit-box;
        font-size: 0.58rem;
        line-height: 1.16;
        margin-top: 0.02rem;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .selection-popup-content.is-second-chance .popup-survey-step[data-step="1"] .selection-popup-title,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="2"] .selection-popup-title,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="3"] .selection-popup-title,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="4"] .selection-popup-title,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="5"] .selection-popup-title {
        font-size: 0.9rem;
        line-height: 1.05;
        margin-bottom: 0.16rem;
    }

    .selection-popup-content.is-second-chance .popup-survey-step[data-step="1"] .selection-popup-options,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="2"] .selection-popup-options,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="3"] .selection-popup-options {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.22rem;
        padding-bottom: 0.26rem;
    }

    .selection-popup-content.is-second-chance .popup-survey-step[data-step="1"] .selection-popup-option-card,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="2"] .selection-popup-option-card,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="3"] .selection-popup-option-card {
        border-radius: 10px;
    }

    .selection-popup-content.is-second-chance .popup-survey-step[data-step="1"] .selection-popup-option-card__body,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="2"] .selection-popup-option-card__body,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="3"] .selection-popup-option-card__body {
        padding: 0.42rem 0.45rem 0.44rem;
        gap: 0.08rem;
        min-height: 0;
    }

    .selection-popup-content.is-second-chance .popup-survey-step[data-step="1"] .selection-popup-option-card__body strong,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="2"] .selection-popup-option-card__body strong,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="3"] .selection-popup-option-card__body strong {
        font-size: 0.68rem;
        line-height: 1.14;
        padding-right: 1.3rem;
    }

    .selection-popup-content.is-second-chance .popup-survey-step[data-step="1"] .selection-popup-option-card.is-selected::after,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="2"] .selection-popup-option-card.is-selected::after,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="3"] .selection-popup-option-card.is-selected::after {
        content: "OK";
        top: 0.32rem;
        right: 0.34rem;
        padding: 0.08rem 0.18rem;
        font-size: 0.44rem;
    }

    .selection-popup-content.is-second-chance .popup-survey-step[data-step="4"] .selection-popup-form-card,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="5"] .selection-popup-form-card {
        padding: 0.46rem;
        margin-left: 0;
        margin-right: 0;
        border-radius: 12px;
    }

    .selection-popup-content.is-second-chance .popup-survey-step[data-step="4"] .popup-survey-field,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="5"] .popup-survey-field {
        margin-bottom: 0.26rem;
    }

    .selection-popup-content.is-second-chance .popup-survey-step[data-step="4"] .selection-popup-input,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="5"] .selection-popup-input {
        min-height: 34px;
        padding: 0.42rem 0.58rem;
        font-size: 0.8rem;
        border-radius: 9px;
    }

    .selection-popup-content.is-second-chance .popup-survey-step[data-step="4"] .selection-popup-checkbox,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="5"] .selection-popup-checkbox {
        margin-bottom: 0.2rem;
        gap: 0.32rem;
        font-size: 0.64rem;
        line-height: 1.18;
    }

    .selection-popup-content.is-second-chance .popup-survey-step[data-step="4"] .selection-popup-checkbox input,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="5"] .selection-popup-checkbox input {
        margin-top: 0.1rem;
    }

    .selection-popup-content.is-second-chance .popup-survey-step[data-step="4"] .selection-popup-privacy small {
        font-size: 0.58rem;
        line-height: 1.15;
    }

    .selection-popup-content.is-second-chance .popup-survey-step[data-step="1"] .selection-popup-actions,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="2"] .selection-popup-actions,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="3"] .selection-popup-actions,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="4"] .selection-popup-actions,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="5"] .selection-popup-actions {
        gap: 0.22rem;
        padding-bottom: 0;
    }

    .selection-popup-content.is-second-chance .popup-survey-step[data-step="1"] .selection-popup-actions .popup-survey-btn,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="2"] .selection-popup-actions .popup-survey-btn,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="3"] .selection-popup-actions .popup-survey-btn,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="4"] .selection-popup-actions .popup-survey-btn,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="5"] .selection-popup-actions .popup-survey-btn {
        min-height: 32px;
        padding-inline: 0.42rem;
        font-size: 0.68rem;
        border-radius: 10px;
    }

    .selection-popup-success {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .selection-popup-status {
        display: flex;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-width: 0;
        align-items: flex-start;
    }

    .selection-popup-status__text {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .selection-popup-examples {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .selection-popup-example-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .selection-popup-example-card strong,
    .selection-popup-example-card span {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.close-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.4);
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-product-title {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.form-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #007bff;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.delivery-options .form-check,
.payment-options .form-check {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.delivery-options .form-check:hover,
.payment-options .form-check:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
}

.delivery-options input[type="radio"]:checked + label,
.payment-options input[type="radio"]:checked + label {
    font-weight: 600;
    color: #007bff;
}

.delivery-description,
.payment-description {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

.consent-checkboxes .form-check {
    margin-bottom: 10px;
}

.consent-checkboxes .form-check-label {
    font-size: 13px;
    line-height: 1.4;
}

.privacy-link {
    text-align: center;
    margin-top: 1rem;
}

.privacy-link a {
    color: #007bff;
    text-decoration: none;
    font-size: 12px;
}

.privacy-link a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Итоговая сумма заказа */
.order-total-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--surface-muted);
    border-radius: 8px;
    border: 2px solid var(--brand);
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.order-total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand);
}

/* Дополнительные опции */
.additional-options-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.additional-options-group .form-check {
    padding: 0.75rem;
    background: var(--surface-muted);
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.additional-options-group .form-check:hover {
    background: var(--surface);
    border-color: var(--brand);
}

.additional-options-group .form-check-input:checked ~ .form-check-label {
    color: var(--brand);
    font-weight: 600;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 768px) {
    .manager-lead-block {
        flex-direction: column;
        align-items: stretch;
    }

    .manager-lead-block__actions {
        justify-content: stretch;
    }

    .manager-lead-block__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .catalog-contact-card__actions {
        flex-direction: column;
    }

    .catalog-contact-card__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .manager-trust-badge,
    .product-contact-badge {
        width: 100%;
    }

    .header-top-line {
        gap: 0.45rem;
    }

    .header-phone {
        font-size: 0.76rem;
        padding: 0.18rem 0.45rem;
    }

    .header-metro-chip {
        font-size: 0.64rem;
        padding: 0.16rem 0.4rem;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
        max-width: none;
        width: calc(100% - 2rem);
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
}

/* Recovery: header ratings, reviews widget, video/share on product page */
.header-rating-badges {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.header-rating-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    line-height: 1.1;
}

.header-rating-chip--yandex {
    background: #fff5f3;
    color: #c23616;
    border-color: #ffd1c7;
}

.header-rating-chip--avito {
    background: #ecfff3;
    color: #067a36;
    border-color: #c5f1d4;
}

.header-rating-2gis-wrap {
    display: inline-flex;
    align-items: center;
}

.header-rating-2gis {
    display: block;
    width: 114px;
    height: 28px;
    vertical-align: middle;
    border-radius: 8px;
}

.yandex-reviews-widget-block {
    width: min(1200px, 92vw);
    margin: 1.1rem auto 0;
    padding: 1rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border);
}

.yandex-reviews-widget-embed {
    margin-top: 0.4rem;
}

.reviews-widgets-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 0.4rem;
    align-items: flex-start;
}

.reviews-widgets-row__yandex {
    flex: 1;
    min-width: 0;
}

.reviews-widgets-row__2gis {
    flex: 1;
    min-width: 0;
    max-width: 528px;
}

.reviews-widgets-row__2gis-iframe {
    width: 100%;
    max-width: 528px;
    height: 824px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .reviews-widgets-row {
        flex-direction: column;
        align-items: stretch;
    }
    .reviews-widgets-row__2gis {
        max-width: 100%;
    }
    .reviews-widgets-row__2gis-iframe {
        max-width: 100%;
        height: 600px;
    }
}

/* Страница сравнения */
.compare-page {
    padding-bottom: 2rem;
}
.compare-title {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.compare-empty {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--surface-muted);
    border-radius: 12px;
    border: 1px solid var(--border);
}
.compare-empty p {
    margin: 0 0 0.5rem;
}
.compare-empty .btn {
    margin-top: 1rem;
}
.compare-table-wrap {
    overflow-x: auto;
    margin-top: 1rem;
    -webkit-overflow-scrolling: touch;
}
.compare-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.compare-table th,
.compare-table td {
    border: 1px solid var(--border);
    padding: 0.6rem 0.75rem;
    vertical-align: top;
}
.compare-label-col {
    width: 140px;
    min-width: 120px;
    font-weight: 600;
    color: var(--text);
    background: var(--surface-muted);
}
.compare-product-col {
    min-width: 180px;
    max-width: 220px;
    background: #fff;
}
.compare-product-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}
.compare-product-image {
    display: block;
    width: 100%;
    max-width: 140px;
    height: 100px;
    object-fit: contain;
}
.compare-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.compare-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 80px;
    background: var(--surface-muted);
    color: var(--muted);
    font-size: 0.8rem;
}
.compare-product-title {
    font-weight: 500;
    line-height: 1.3;
    color: var(--text);
}
.compare-product-title:hover {
    color: var(--brand);
}
.compare-remove-form {
    margin: 0;
}
.compare-btn-remove {
    font-size: 0.8rem;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}
.compare-btn-remove:hover {
    color: #dc2626;
}
.compare-btn-cart {
    width: 100%;
    max-width: 160px;
}
.compare-value-col {
    background: #fff;
}

.product-card-compare-btn {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--brand);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.product-card-compare-btn:hover {
    color: var(--brand-dark);
}

@media (max-width: 768px) {
    .compare-table .compare-col-3 {
        display: none;
    }
    .compare-table {
        min-width: 360px;
    }
    .compare-product-col {
        min-width: 160px;
    }
}

.home-yandex-widget .section-header h2 {
    text-align: center;
}

.product-yandex-widget {
    margin-top: 1rem;
}

.thumb-btn--video {
    position: relative;
}

.thumb-video-label {
    position: absolute !important;
    right: 6px !important;
    bottom: 6px !important;
    background: #dc2626 !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0.04em !important;
    padding: 6px 8px !important;
    z-index: 2 !important;
    white-space: nowrap !important;
}

.gallery-main-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background: #000;
    object-fit: contain;
}

.product-share-block {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.product-share-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.product-share-btn:hover {
    transform: translateY(-1px);
    border-color: #cbd5e1;
}

.product-share-btn.is-copied {
    border-color: #16a34a;
    color: #16a34a;
}

@media (max-width: 900px) {
    .seo-landing-shell {
        display: flex;
        flex-direction: column;
    }

    .seo-landing-shell .landing-reviews {
        order: 99 !important;
    }

    .seo-landing-shell .landing-yandex-widget {
        order: 100 !important;
    }

    .product-detail .product-yandex-widget {
        order: 99 !important;
    }

    .header-rating-chip {
        font-size: 0.68rem;
        padding: 0.18rem 0.5rem;
    }
}

/* Mobile layout guardrails: unified widths and no root horizontal shake */
@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        overflow-x: clip;
    }

    .site-header,
    .content,
    .site-footer {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .product-detail,
    .product-attributes,
    .product-description,
    .product-related-block,
    .product-yandex-widget {
        width: 100%;
        max-width: 100%;
    }

    .products-in-stock-section .products-carousel-grid,
    .product-related-block .products-carousel-grid,
    .product-related-block .product-grid {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}

/* Storefront mobile stabilization: single owner block for mobile storefront components */
:root {
    --storefront-z-mobile-nav: 9000;
    --storefront-z-overlay: 10000;
    --storefront-z-popup: 10020;
    --storefront-z-lightbox: 10030;
    --storefront-z-contact: 10040;
}

.mobile-bottom-nav {
    z-index: var(--storefront-z-mobile-nav);
}

.modal-overlay {
    z-index: var(--storefront-z-overlay);
}

.popup-survey-overlay {
    z-index: var(--storefront-z-popup);
}

.lightbox {
    z-index: var(--storefront-z-lightbox);
}

.lightbox-close,
.lightbox-nav {
    z-index: 10031;
}

.contact-channel-modal {
    z-index: var(--storefront-z-contact);
}

@media (max-width: 992px) {
    .catalog-layout.home-catalog-layout,
    .landing-catalog-layout,
    .landing-catalog-layout--compact {
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        width: 100%;
        padding: 0 var(--mobile-side-gap);
        box-sizing: border-box;
    }

    .catalog-layout.home-catalog-layout > .home-filters-shell,
    .landing-catalog-layout > .home-filters-shell,
    .landing-catalog-layout--compact > .home-filters-shell {
        order: 0;
        width: 100%;
    }

    .catalog-results,
    .home-products,
    .home-products.landing-products-content,
    .landing-main-layout,
    .landing-main-sidebar,
    .landing-main-content {
        order: 1;
        min-width: 0;
        width: 100%;
    }

    .landing-main-layout {
        gap: 0.85rem;
    }

    .home-filter-toggle {
        display: flex;
    }

    .home-filters[data-filter-panel] {
        display: none;
        position: static;
        top: auto;
        border-radius: 18px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
    }

    .home-filters.is-open[data-filter-panel] {
        display: block;
    }
}

@media (max-width: 900px) {
    .product-grid > *,
    .home-products .product-grid > *,
    .catalog-results .product-grid > *,
    .seo-landing-shell .landing-products-block .product-grid > * {
        min-width: 0;
    }

    .product-card {
        min-width: 0;
        height: 100%;
    }

    .product-card h3,
    .product-card .product-title {
        overflow-wrap: anywhere;
    }

    .home-products .product-grid,
    .catalog-results .product-grid,
    .seo-landing-shell .landing-products-block .product-grid,
    .products-in-stock-section:not(.landing-products-block) .product-grid,
    .in-stock-section .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .seo-landing-shell .actual-products-section .product-grid {
        grid-auto-columns: minmax(78%, 1fr) !important;
        gap: 0.65rem;
        padding-bottom: 0.3rem;
    }

    .seo-landing-hero {
        padding: 0.95rem 1rem;
    }

    .seo-landing-cta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.42rem;
        align-items: stretch;
    }

    .seo-landing-cta > .btn:first-child,
    .seo-landing-cta > .btn:last-child {
        grid-column: 1 / -1;
    }

    .seo-landing-cta .btn {
        min-width: 0;
        min-height: 50px;
        padding: 0.42rem 0.55rem;
        border-radius: 12px;
        white-space: normal;
        text-align: center;
        line-height: 1.18;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

@media (max-width: 768px) {
    .hero.hero-compact .hero-actions--home {
        width: 100%;
        justify-content: stretch;
    }

    .hero.hero-compact .hero-actions--home .btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
    }

    .hero-mini-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.42rem;
    }

    .hero-mini-link {
        width: 100%;
        min-height: 40px;
        padding: 0.5rem 0.7rem;
        line-height: 1.18;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    .home-shell .hero.hero-compact {
        display: none;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .home-shell .hero.hero-compact {
        display: block;
        padding: 0.92rem 1rem;
        margin-bottom: 0.65rem;
        border-radius: 18px;
    }

    .home-shell .hero.hero-compact .hero-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.45rem;
    }

    .home-shell .hero.hero-compact h1 {
        font-size: 1rem;
        line-height: 1.14;
        color: #111827;
    }

    .home-shell .hero.hero-compact p {
        font-size: 0.74rem;
        line-height: 1.34;
        max-width: none;
        color: rgba(17, 24, 39, 0.88);
    }
}

@media (max-width: 640px) {
    .home-products .product-grid,
    .catalog-results .product-grid,
    .seo-landing-shell .landing-products-block .product-grid,
    .products-in-stock-section:not(.landing-products-block) .product-grid,
    .in-stock-section .product-grid {
        gap: 0.45rem;
    }

    .seo-landing-hero {
        border-radius: 18px;
        padding: 0.82rem 0.88rem;
    }

    .seo-landing-hero .seo-landing-points {
        gap: 0.2rem 0.55rem;
        font-size: 0.76rem;
    }

    .seo-landing-cta .btn {
        min-height: 48px;
        padding: 0.34rem 0.42rem;
        font-size: 0.7rem;
    }

    .selection-popup-overlay.popup-survey-visible {
        align-items: flex-start;
        padding: max(6px, env(safe-area-inset-top)) 0 6px;
    }

    .selection-popup-content {
        width: calc(100vw - 12px);
        max-height: calc(100dvh - 12px - env(safe-area-inset-top));
        border-radius: 18px;
    }

    .selection-popup-shell {
        padding: 0.6rem;
    }

    .selection-popup-hero,
    .selection-popup-success,
    .selection-popup-form-card {
        padding: 0.72rem;
        border-radius: 16px;
    }

    .selection-popup-title {
        font-size: 1.02rem;
        line-height: 1.08;
        margin-bottom: 0.34rem;
    }

    .selection-popup-desc-strong,
    .selection-popup-step-meta .popup-survey-desc,
    .selection-popup-success .popup-survey-desc {
        font-size: 0.76rem;
        line-height: 1.32;
    }

    .selection-popup-points {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .selection-popup-points span,
    .selection-popup-points div:last-child {
        display: block;
    }

    .selection-popup-options {
        gap: 0.45rem;
    }

    .selection-popup-actions,
    .selection-popup-actions--hero {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .selection-popup-actions .popup-survey-btn,
    .selection-popup-actions--hero .popup-survey-btn {
        flex: 1 1 calc(50% - 0.18rem);
        min-width: 0;
        min-height: 40px;
        white-space: normal;
        overflow-wrap: anywhere;
        text-align: center;
    }

    .selection-popup-success,
    .selection-popup-status,
    .selection-popup-examples,
    .selection-popup-example-card {
        min-width: 0;
    }

    .selection-popup-status__text,
    .selection-popup-example-card span {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .selection-popup-content.is-second-chance {
        overflow-y: auto;
    }

    .selection-popup-content.is-second-chance .selection-popup-shell {
        padding: 0.48rem;
    }

    .selection-popup-content.is-second-chance .selection-popup-hero,
    .selection-popup-content.is-second-chance .selection-popup-form-card {
        padding: 0.56rem;
        border-radius: 14px;
    }

    .selection-popup-content.is-second-chance .selection-popup-title {
        font-size: 0.96rem;
        line-height: 1.06;
    }

    .selection-popup-content.is-second-chance .selection-popup-desc-strong,
    .selection-popup-content.is-second-chance .popup-survey-desc {
        display: block;
        margin-bottom: 0.22rem;
        font-size: 0.68rem;
        line-height: 1.24;
        -webkit-line-clamp: unset;
        overflow: visible;
    }

    .selection-popup-content.is-second-chance .selection-popup-counter {
        padding: 0.32rem 0.44rem;
        font-size: 0.62rem;
        line-height: 1.22;
    }

    .selection-popup-content.is-second-chance .selection-popup-points {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.22rem;
    }

    .selection-popup-content.is-second-chance .selection-popup-points span,
    .selection-popup-content.is-second-chance .selection-popup-points div:last-child {
        display: block;
    }

    .selection-popup-content.is-second-chance .selection-popup-points span {
        font-size: 0.58rem;
        line-height: 1.18;
    }

    .selection-popup-content.is-second-chance .popup-survey-step[data-step="1"] .selection-popup-options,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="2"] .selection-popup-options,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="3"] .selection-popup-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.24rem;
    }

    .selection-popup-option-card__body strong,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="1"] .selection-popup-option-card__body strong,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="2"] .selection-popup-option-card__body strong,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="3"] .selection-popup-option-card__body strong {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .selection-popup-contacts {
        display: grid;
        gap: 0.35rem;
    }

    .selection-popup-contacts .popup-survey-field {
        margin-bottom: 0;
    }

    .selection-popup-content.is-second-chance .popup-survey-step[data-step="1"] .selection-popup-actions .popup-survey-btn,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="2"] .selection-popup-actions .popup-survey-btn,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="3"] .selection-popup-actions .popup-survey-btn,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="4"] .selection-popup-actions .popup-survey-btn,
    .selection-popup-content.is-second-chance .popup-survey-step[data-step="5"] .selection-popup-actions .popup-survey-btn {
        min-height: 34px;
        font-size: 0.7rem;
    }

    .contact-channel-modal__dialog {
        margin-top: max(4vh, env(safe-area-inset-top));
    }
}

@media (max-width: 360px) {
    .home-products .product-grid,
    .catalog-results .product-grid,
    .seo-landing-shell .landing-products-block .product-grid,
    .products-in-stock-section:not(.landing-products-block) .product-grid,
    .in-stock-section .product-grid {
        grid-template-columns: 1fr;
    }

    .hero-mini-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .mobile-bottom-nav {
        display: flex !important;
        padding-bottom: calc(0.4rem + env(safe-area-inset-bottom));
    }

    body.popup-survey-open .mobile-bottom-nav {
        opacity: 0;
        pointer-events: none;
    }

    .content,
    .site-footer {
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
    }
}



.snc-page { padding: 1.4rem 0 2.4rem; max-width: 860px; }
.snc-hero { margin: 0 0 1.1rem; }
.snc-kicker { margin: 0 0 0.35rem; color: var(--muted); font-size: 0.86rem; letter-spacing: 0.03em; text-transform: uppercase; }
.snc-hero h1 { margin: 0 0 0.55rem; font-size: clamp(1.45rem, 3vw, 2rem); }
.snc-lead { margin: 0; color: #334155; font-size: 1.02rem; line-height: 1.5; }
.snc-card, .snc-bot, .snc-grid article, .snc-faq {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.05rem 1.15rem;
}
.snc-card { margin-bottom: 0.85rem; }
.snc-label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.snc-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.snc-row input[type="text"] {
    flex: 1 1 220px;
    min-height: 46px;
    border: 1px solid #c9d4e2;
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.snc-row .btn-buy-now { min-height: 46px; }
.snc-hint, .snc-legal { color: #64748b; font-size: 0.88rem; line-height: 1.45; }
.snc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.snc-status { margin-top: 0.8rem; padding: 0.7rem 0.8rem; border-radius: 12px; }
.snc-status.is-info { background: #f3f7fb; color: #334155; }
.snc-status.is-ok { background: #ecfdf3; color: #166534; }
.snc-status.is-err { background: #fef2f2; color: #991b1b; }
.snc-result { margin-top: 0.85rem; }
.snc-result h2 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.snc-serial { margin: 0 0 0.7rem; color: #64748b; }
.snc-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 1rem; margin: 0; }
.snc-specs div { display: grid; gap: 0.1rem; }
.snc-specs dt { color: #64748b; font-size: 0.8rem; }
.snc-specs dd { margin: 0; font-weight: 600; }
.snc-links { margin: 0.85rem 0 0; }

.snc-links { display: flex; flex-wrap: wrap; gap: 0.65rem 1rem; margin: 0.95rem 0 0; }
.snc-text-link {
    color: #0b6ea8;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 2px;
}
.snc-text-link:hover { color: #085781; }
.spec-pdf-btn {
    width: 100%;
    min-height: 52px;
    margin-top: 0.75rem;
    font-size: 1rem;
}
.spec-pdf-btn--hero { min-height: 58px; font-size: 1.05rem; }
.spec-list { margin: 1rem 0; }
.spec-list h2 { margin: 0 0 0.7rem; font-size: 1.15rem; }
.spec-row {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 280px);
    gap: 0.8rem;
    align-items: center;
    padding: 0.85rem 0;
    border-top: 1px solid #e8eef5;
}
.spec-row h3 { margin: 0 0 0.25rem; font-size: 1.02rem; }
.spec-row h3 a { color: #0b6ea8; font-weight: 700; text-decoration: underline; text-underline-offset: 0.16em; }
.spec-row p { margin: 0; color: #64748b; }
@media (max-width: 720px) {
    .spec-row { grid-template-columns: 1fr; }
}
.snc-bot { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 0.85rem; }
.snc-bot h2 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.snc-bot p { margin: 0; color: #334155; }
.snc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; margin-bottom: 0.85rem; }
.snc-grid h2, .snc-faq h2 { margin: 0 0 0.55rem; font-size: 1.1rem; }
.snc-grid ul { margin: 0; padding-left: 1.1rem; color: #334155; }
.snc-grid li + li { margin-top: 0.35rem; }
.snc-faq details { border-top: 1px solid #e8eef5; padding: 0.7rem 0; }
.snc-faq details:first-of-type { border-top: 0; }
.snc-faq summary { cursor: pointer; font-weight: 600; }
.snc-faq p { margin: 0.45rem 0 0; color: #334155; }
.snc-legal { margin: 0.9rem 0 0; }
@media (max-width: 720px) {
    .snc-bot, .snc-grid, .snc-specs { grid-template-columns: 1fr; display: grid; }
    .snc-bot { display: grid; }
}

.snc-sheet { display: grid; gap: 0.55rem 1.2rem; margin: 0.6rem 0 0; }
.snc-sheet > div { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 0.35rem 1rem; padding: 0.45rem 0; border-top: 1px solid #e8eef5; }
.snc-sheet dt { margin: 0; color: #64748b; font-size: 0.86rem; }
.snc-sheet dd { margin: 0; font-weight: 600; line-height: 1.45; }
.snc-sheet ul { margin: 0; padding-left: 1.1rem; font-weight: 500; }
.spec-sheet-page .snc-card h2 { margin: 0 0 0.35rem; font-size: 1.12rem; }
.spec-range { padding: 0.7rem 0; border-top: 1px solid #e8eef5; }
.spec-range h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.spec-range p { margin: 0; color: #334155; line-height: 1.5; }
.spec-pdf-card { margin-top: 0.85rem; }
.spec-list { margin: 1rem 0; }
.spec-list h2 { margin: 0 0 0.7rem; font-size: 1.15rem; }
.spec-hit {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 280px);
    gap: 0.8rem;
    align-items: center;
    padding: 0.85rem 0;
    border-top: 1px solid #e8eef5;
}
.spec-hit h3 { margin: 0 0 0.25rem; font-size: 1.02rem; }
.spec-hit h3 a { color: #0b6ea8; font-weight: 700; text-decoration: underline; text-underline-offset: 0.16em; }
.spec-hit p { margin: 0; color: #64748b; }
@media (max-width: 720px) {
    .snc-sheet > div, .spec-hit { grid-template-columns: 1fr; }
}

.spec-table-card h2 { margin: 0 0 0.65rem; font-size: 1.12rem; }
.spec-table-wrap { overflow-x: auto; margin: 0 -0.15rem; }
.spec-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.spec-table th,
.spec-table td {
    padding: 0.55rem 0.7rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e4edf5;
}
.spec-table th {
    background: #f3f7fb;
    color: #334155;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}
.spec-table td { color: #0f172a; line-height: 1.4; font-weight: 600; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table tbody tr:hover td { background: #f8fafc; }
@media (max-width: 720px) {
    .spec-table { min-width: 460px; }
}

.spec-legend { margin: 0 0 1rem; }
.spec-feature { margin: 0.85rem 0 0; }
.spec-feature:first-of-type { margin-top: 0.15rem; }
.spec-feature h3 {
    margin: 0 0 0.45rem;
    font-size: 0.95rem;
    color: #1e3a5f;
}
.spec-list {
    margin: 0;
    padding: 0 0 0 1.15rem;
}
.spec-list li {
    margin: 0.28rem 0;
    line-height: 1.45;
    color: #0f172a;
    font-weight: 600;
}
.spec-text {
    margin: 0;
    white-space: pre-line;
    line-height: 1.45;
    color: #0f172a;
    font-weight: 600;
}
.spec-notes {
    margin-top: 0.9rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e4edf5;
    color: #475569;
    font-size: 0.82rem;
    line-height: 1.45;
}
.spec-notes-title {
    margin: 0 0 0.35rem;
    font-weight: 700;
    color: #334155;
}
.spec-notes p { margin: 0.25rem 0; font-weight: 500; }
.spec-table { min-width: 640px; }
/* spec-sheet-ru */
.spec-sheet { padding: 0.35rem 0 0.2rem; overflow: hidden; }
.spec-block {
    padding: 1.15rem 1.2rem 1.05rem;
    border-bottom: 1px solid #e4edf5;
}
.spec-block:last-child { border-bottom: 0; }
.spec-block-title {
    margin: 0 0 0.7rem;
    padding: 0 0 0.45rem 0.75rem;
    border-left: 3px solid #0b6ea8;
    border-bottom: 1px solid #e8eef4;
    font-size: 1.22rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #10253f;
}
.spec-feature { margin: 0.85rem 0 0; }
.spec-feature:first-of-type { margin-top: 0.15rem; }
.spec-feature-title {
    margin: 0 0 0.4rem;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #3d5a73;
}
.spec-list {
    margin: 0;
    padding: 0.1rem 0 0 1.15rem;
}
.spec-list li {
    margin: 0.28rem 0;
    line-height: 1.5;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 500;
}
.spec-text {
    margin: 0;
    white-space: pre-line;
    line-height: 1.5;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 500;
}
.spec-notes {
    margin-top: 0.75rem;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.45;
}
.spec-notes summary {
    cursor: pointer;
    font-weight: 700;
    color: #64748b;
}
.spec-notes p { margin: 0.35rem 0 0; font-weight: 500; }
.spec-table-wrap { overflow-x: auto; margin: 0.15rem -0.15rem 0; }
.spec-sheet .spec-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.spec-sheet .spec-table th,
.spec-sheet .spec-table td {
    padding: 0.52rem 0.7rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e8eef4;
}
.spec-sheet .spec-table th {
    background: #eef4f9;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    white-space: nowrap;
}
.spec-sheet .spec-table td {
    color: #1e293b;
    line-height: 1.4;
    font-weight: 500;
}
.spec-sheet .spec-table td.spec-td-key {
    font-weight: 700;
    color: #10253f;
    white-space: nowrap;
}
.spec-sheet .spec-table tbody tr:nth-child(even) td { background: #f8fafc; }
.spec-sheet .spec-table tbody tr:hover td { background: #eef6fb; }
@media (max-width: 720px) {
    .spec-block { padding: 1rem 0.95rem; }
    .spec-block-title { font-size: 1.08rem; }
    .spec-sheet .spec-table td.spec-td-key { white-space: normal; }
}
.spec-legal {
    margin: 1.4rem 0 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.55;
}
.spec-legal p { margin: 0 0 0.75rem; }
.spec-legal-home {
    color: #0b6ea8;
    font-weight: 800;
    font-size: 1.02rem;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}
.spec-legal-home:hover { color: #085781; }
.spec-legal-nav {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.95rem !important;
}
.spec-legal-nav-link {
    display: block;
    padding: 0.85rem 1rem;
    border: 1px solid #cfe0ec;
    border-radius: 12px;
    background: #f4f9fc;
    color: #0b6ea8;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
}
.spec-legal-nav-link:hover {
    background: #e7f3fa;
    color: #085781;
}
.spec-hub-page { padding-bottom: 2rem; }
.spec-hub-page .snc-hero h1 {
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    letter-spacing: -0.035em;
    line-height: 1.15;
    font-weight: 800;
}
.spec-hub-page .snc-lead {
    max-width: 38rem;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #475569;
}
.spec-search {
    margin: 0 0 1.35rem;
    padding: 1rem 1.1rem 1.05rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.spec-search-row {
    display: grid;
    grid-template-columns: 1fr minmax(120px, 160px);
    gap: 0.65rem;
}
.spec-search input[type="search"] {
    width: 100%;
    min-height: 52px;
    padding: 0.75rem 0.95rem;
    border: 1px solid #d7e3ee;
    border-radius: 12px;
    font-size: 1.05rem;
}
.spec-browse h2,
.spec-results h2 {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #10253f;
}
.spec-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 0.7rem;
}
.spec-card-grid--small { margin-top: 0.75rem; }
.spec-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem 1rem 0.9rem;
    border: 1px solid #e4edf5;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    color: inherit;
}
.spec-card:hover { border-color: #0b6ea8; background: #f7fbfe; }
.spec-card-title {
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #10253f;
}
.spec-card-meta { font-size: 0.82rem; color: #64748b; }
.spec-quick-label {
    margin: 1.25rem 0 0.55rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #334155;
}
.spec-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.spec-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: #e8f3fa;
    color: #0b6ea8;
    font-weight: 800;
    text-decoration: none;
}
.spec-chip:hover { background: #d5ebf7; }
.spec-more { margin-top: 1.2rem; color: #475569; }
.spec-more summary { cursor: pointer; font-weight: 700; }
.spec-hit--link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 0.15rem;
    border-top: 1px solid #e8eef4;
    text-decoration: none;
}
.spec-hit--link:first-of-type { border-top: 0; }
.spec-hit-name {
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #10253f;
}
.spec-hit-badge {
    flex: 0 0 auto;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #eef4f9;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.spec-hit--link:hover .spec-hit-name { color: #0b6ea8; }
@media (max-width: 720px) {
    .spec-search-row { grid-template-columns: 1fr; }
}

.spec-sheet-page .spec-related-stock {
    margin: 0 0 1.5rem;
}

.home-products .section-link.badge-link {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 0.52rem 1.05rem;
    border: 1px solid #0077b3;
    background: linear-gradient(110deg, #006199 0%, #00aaff 38%, #7ddcff 50%, #00aaff 62%, #0077b3 100%);
    background-size: 240% 100%;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 12px rgba(0, 119, 179, 0.28);
    animation: offers-shimmer 3.4s ease-in-out infinite;
}
.home-products .section-link.badge-link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.38) 50%, transparent 70%);
    transform: translateX(-140%);
    animation: offers-shine 3.4s ease-in-out infinite;
    pointer-events: none;
}
.home-products .section-link.badge-link:hover {
    border-color: #00aaff;
    color: #fff;
    animation-duration: 1.8s;
}
.home-products .section-link.badge-link:hover::before {
    animation-duration: 1.8s;
}
@keyframes offers-shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes offers-shine {
    0%, 18% { transform: translateX(-140%); }
    48%, 100% { transform: translateX(140%); }
}
@media (prefers-reduced-motion: reduce) {
    .home-products .section-link.badge-link,
    .home-products .section-link.badge-link::before {
        animation: none;
    }
    .home-products .section-link.badge-link {
        background: #0077b3;
        background-size: auto;
    }
}

.home-products > .manager-lead-block {
    gap: 0.7rem;
    padding: 0.62rem 0.8rem;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
    margin-bottom: 0.7rem;
}
.home-products > .manager-lead-block .manager-lead-block__body {
    gap: 0.1rem;
}
.home-products > .manager-lead-block .manager-lead-block__body strong {
    font-size: 0.92rem;
    line-height: 1.25;
}
.home-products > .manager-lead-block .manager-lead-block__body span {
    font-size: 0.8rem;
    line-height: 1.35;
}
.home-products > .manager-lead-block .manager-lead-block__actions {
    gap: 0.4rem;
}
.home-products > .manager-lead-block .manager-lead-block__actions .btn {
    min-height: 34px;
    padding: 0.38rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: none;
}

/* Плитки линеек в блоке «Актуальные предложения» на главной. */
.home-lines {
    margin: 0 0 0.9rem;
}

.home-lines-group + .home-lines-group {
    margin-top: 0.85rem;
}

.home-lines-label {
    margin: 0 0 0.4rem;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-lines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 0.55rem;
}

.home-line-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.18rem;
    min-height: 72px;
    padding: 0.7rem 0.85rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-line-card:hover {
    border-color: var(--brand);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.home-line-card:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.home-line-card strong {
    font-size: 1rem;
    line-height: 1.25;
}

.home-line-card span {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

@media (max-width: 768px) {
    .home-lines-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .home-line-card {
        min-height: 68px;
        padding: 0.65rem 0.7rem;
        border-radius: 12px;
        background: var(--surface-muted);
    }

    .home-line-card strong {
        font-size: 0.95rem;
    }

    .home-line-card span {
        font-size: 0.72rem;
    }
}

@media (min-width: 1100px) {
    .home-lines-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Корзина: товары без наличия */
.cart-item--unavailable { opacity: .6; }
.cart-item--unavailable .cart-item-total { text-decoration: line-through; }
.cart-item-stock-note { margin: .35rem 0 0; color: #b91c1c; font-size: .86rem; font-weight: 600; }
.cart-stock-warning { flex-basis: 100%; margin: 0 0 .5rem; color: #b91c1c; font-size: .9rem; }
#openCartCheckout[disabled] { opacity: .5; cursor: not-allowed; }
.product-stock-out-note { margin: 0 0 .4rem; color: #64748b; font-size: .85rem; font-weight: 600; }


.selection-popup-channels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.selection-popup-channels .selection-popup-option-card {
    min-height: 78px;
}

@media (max-width: 640px) {
    .selection-popup-channels {
        grid-template-columns: 1fr;
    }
}
