/* ==========================================================================
   Inter — локальный шрифт вместо Google Fonts.
   Своим хостингом убираем сторонний запрос к CDN (он же считался передачей
   данных посетителя, о чём у нас висит куки-баннер) и получаем все начертания
   300–800 из одного переменного файла на подмножество.
   Подмножества ровно те, что нужны витрине: кириллица, латиница и знак рубля.
   Диапазоны не пересекаются — иначе браузер скачивает оба файла сразу.
   ========================================================================== */

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url('../fonts/inter-cyrillic-ext.woff2') format('woff2');
	unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url('../fonts/inter-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Знак рубля. Раньше он попадал в диапазон latin-ext, и браузер тянул
   113 КБ подмножества на каждой странице с ценами. Теперь это 1 КБ. */
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url('../fonts/inter-symbols.woff2') format('woff2');
	unicode-range: U+20BD;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url('../fonts/inter-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Server Components — Main theme styles
   Авторская замена Tailwind CDN: весь стиль собран здесь, без утилитных классов
   ========================================================================== */

/* ---------- Переменные ---------- */
:root {
    --color-blue-50: #eff6ff;
    --color-blue-100: #dbeafe;
    --color-blue-200: #bfdbfe;
    --color-blue-500: #3b82f6;
    --color-blue-600: #2563eb;
    --color-blue-700: #1d4ed8;
    --color-blue-800: #1e40af;
    --color-indigo-100: #e0e7ff;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-700: #374151;
    --color-gray-900: #111827;
    --color-green-100: #dcfce7;
    --color-green-500: #22c55e;
    --color-green-600: #16a34a;
    --color-green-700: #15803d;
    --color-red-600: #dc2626;
    --color-red-700: #b91c1c;
    --color-gray-600: #4b5563;
    --color-white: #ffffff;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Шкала текста: размер — пара, шаг между ними виден в разметке. */
    --text-xs: 0.75rem;      /* 12 — подписи, служебные метки */
    --text-sm: 0.875rem;     /* 14 — основной текст интерфейса */
    --text-md: 0.9375rem;    /* 15 — текст полей фильтра */
    --text-base: 1rem;       /* 16 — абзацы */
    --text-lg: 1.125rem;     /* 18 — названия разделов */
    --text-xl: 1.25rem;      /* 20 — названия блоков */
    --text-2xl: 1.5rem;      /* 24 — подзаголовки карточек */
    --text-3xl: 1.875rem;    /* 30 — заголовки разделов */
    --text-4xl: 2.25rem;     /* 36 — крупные заголовки */
    --text-5xl: 3.75rem;     /* 60 — заголовок на главной */

    /* Радиусы: от едва заметного до круглого. */
    --radius-xs: 0.375rem;   /* 6 — чипы, мелкие кнопки */
    --radius-sm: 0.5rem;     /* 8 — поля, ссылки */
    --radius-md: 0.75rem;    /* 12 — карточки */
    --radius-lg: 1rem;       /* 16 — крупные блоки */
    --radius-full: 9999px;   /* кружки и капсули */

    /* Тени: три ступени, глубина читается с одного взгляда. */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 25px -8px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 20px 30px -10px rgba(15, 23, 42, 0.35);

    /* Кольцо фокуса и состояния полей — общий синий, чтобы искать в одном месте. */
    --ring: 0 0 0 3px rgba(37, 99, 235, 0.28);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; scrollbar-gutter: stable; }
body { overflow-x: clip; }

body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: var(--color-gray-50);
    color: var(--color-slate-800);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

/* Кольцо фокуса для всей навигации с клавиатуры: у части ссылок и полей
   своего фокуса не было вовсе, а где был — не хватало контраста. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--color-blue-600);
    outline-offset: 2px;
}

/* Ссылка «к содержимому»: первая по Tab, видна только с фокусом. */
.skip-link {
    position: absolute;
    top: -100vh;
    left: 1rem;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 0.5rem 0.5rem;
    background: var(--color-blue-600);
    color: var(--color-white);
    font-weight: 600;
}
.skip-link:focus-visible { top: 0; }
/* Цель перехода получает фокус программно: обводить её кольцом не нужно,
   иначе весь блок подсвечивается после нажатия «К содержимому». */
main#content:focus,
[id][tabindex='-1']:focus { outline: none; }

.container {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 1rem;
}
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

/* ---------- Шапка ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.95);
    /* Размытие подложки было незаметно (фон почти непрозрачный), но браузер
       перерисовывал всю полосу на каждом кадре прокрутки. */
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    z-index: 50;
    transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.1); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: height 0.3s ease;
}
.site-header.scrolled .header-inner { height: 75px; }

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    flex-shrink: 1;
    min-width: 0;
    min-height: 2.75rem;
}
.brand svg { width: 2rem; height: 2rem; flex-shrink: 0; }
.brand-name {
    font-size: var(--text-md);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-slate-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
@media (min-width: 380px) { .brand-name { font-size: 1rem; } }
@media (min-width: 640px) { .brand-name { font-size: var(--text-lg); } }
@media (min-width: 768px) { .brand-name { font-size: var(--text-xl); } }

.main-nav { display: none; gap: 2rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .main-nav { display: flex; } }
.main-nav a {
    color: var(--color-slate-600);
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-xs);
    transition: color 0.15s ease;
}
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--color-blue-600); }

.header-actions { display: none; align-items: center; gap: 1rem; }
@media (min-width: 768px) { .header-actions { display: flex; } }
.header-actions .btn { padding: 0.5rem 1rem; font-size: var(--text-sm); }
.header-phone {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: var(--color-slate-600);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: color 0.15s ease;
}
.header-phone:hover { color: var(--color-blue-600); }

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    background: none;
    border: 0;
    color: var(--color-gray-500);
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
}
.menu-toggle:hover { color: var(--color-gray-700); }
.menu-toggle svg { width: 1.5rem; height: 1.5rem; }
@media (min-width: 768px) { .menu-toggle { display: none; } }

.mobile-menu {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--color-white);
    border-top: 1px solid var(--color-gray-100);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 50;
}
.mobile-menu.open { display: block; }
.mobile-menu__inner { padding: 0.5rem 0.75rem 1rem 0.75rem; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { margin: 0; }
.mobile-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gray-700);
    border-radius: var(--radius-xs);
}
.mobile-menu a:hover { background: var(--color-blue-50); }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    padding: 0.75rem 1.75rem;
    cursor: pointer;
    border: 0;
    text-decoration: none;
    background: var(--color-blue-600);
    color: var(--color-white);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.4);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover,
.btn:focus {
    background: var(--color-blue-700);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.35);
}

/* Вторичные кнопки — outline: белый фон, синяя рамка и текст. */
.btn--secondary,
.btn-hero--secondary {
    background: var(--color-white);
    color: var(--color-blue-600);
    border: 2px solid var(--color-blue-200);
    box-shadow: none;
}
.btn--secondary:hover,
.btn--secondary:focus,
.btn-hero--secondary:hover,
.btn-hero--secondary:focus {
    background: var(--color-blue-50);
    border-color: var(--color-blue-400);
    box-shadow: none;
    transform: none;
}

.btn-hero { padding: 0.75rem 2rem; font-size: 1.0625rem; }
.btn-hero--secondary { padding: calc(0.75rem - 2px) calc(2rem - 2px); }
@media (min-width: 768px) {
    .btn-hero { padding: 1rem 2rem; font-size: var(--text-lg); }
    .btn-hero--secondary { padding: calc(1rem - 2px) calc(2rem - 2px); }
}

/* ---------- Hero ---------- */
.hero {
    /* Отступ сверху намеренно небольшой: первый экран начинается почти
       сразу под хедером, а не проваливается в пустоту. */
    padding: 0.25rem 0 3.5rem;
    background-image: linear-gradient(to right, #ffffff, #f8fafc);
    overflow: hidden;
}
@media (min-width: 1024px) { .hero { padding: 0.5rem 0 5rem; } }

.hero__grid {
    display: flex;
    /* Текст идёт первым и на телефоне: иначе картинка отодвигала
       первый экран с бейджем на пол-страницы вниз. */
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}
@media (min-width: 1024px) {
    /* Прижимаем колонки к верху: вертикальное центрирование прятало
       бейдж и заголовок на середину экрана. */
    .hero__grid { flex-direction: row; align-items: flex-start; }
}

.hero__content { text-align: center; z-index: 10; min-width: 0; }
@media (min-width: 1024px) { .hero__content { width: 50%; text-align: left; } }

.badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-full);
    background: var(--color-blue-100);
    color: var(--color-blue-800);
    font-weight: 600;
    font-size: var(--text-sm);
    letter-spacing: 0.025em;
    border: 1px solid var(--color-blue-200);
}
.hero h1 {
    font-size: var(--text-4xl);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-slate-900);
    margin-bottom: 1.5rem;
}
@media (min-width: 1024px) { .hero h1 { font-size: var(--text-5xl); } }

.hero__lead {
    margin-top: 1rem;
    font-size: var(--text-xl);
    line-height: 1.625;
    color: var(--color-slate-600);
    max-width: 36rem;
    margin-inline: auto;
}
@media (min-width: 1024px) { .hero__lead { margin-inline: 0; } }

.hero__ctas {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (min-width: 640px) { .hero__ctas { flex-direction: row; justify-content: center; } }
@media (min-width: 1024px) { .hero__ctas { justify-content: flex-start; } }

.trust-badges {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-gray-200);
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    color: var(--color-slate-500);
    font-weight: 500;
    font-size: var(--text-sm);
}
@media (min-width: 1024px) { .trust-badges { justify-content: flex-start; } }
.trust-badges span { display: flex; align-items: center; }
.trust-badges svg { width: 1rem; height: 1rem; margin-right: 0.375rem; color: var(--color-green-500); }

.hero__media { position: relative; min-width: 0; }
@media (min-width: 1024px) { .hero__media { width: 50%; } }

.hero__blob {
    position: absolute;
    top: 0;
    right: -1rem;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    /* Мягкое пятно. Раньше здесь стояли filter: blur(40px) и mix-blend-mode,
       а анимация меняла border-radius — то есть перерисовывала размытие на
       каждом кадре, пока страница открыта. Радиальный градиент выглядит так же,
       а анимируется только transform, который рисует видеопроцессор. */
    background: radial-gradient(circle, var(--color-blue-200) 0%, rgba(191, 219, 254, 0) 70%);
    opacity: 0.8;
    will-change: transform;
    animation: blob 7s infinite;
}
.hero__blob--bottom {
    bottom: -2rem;
    left: -1rem;
    top: auto;
    right: auto;
    background: radial-gradient(circle, var(--color-indigo-100) 0%, rgba(224, 231, 255, 0) 70%);
    animation-delay: 2s;
}

.hero__img {
    position: relative;
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 4px solid var(--color-white);
    transition: transform 0.5s ease;
}
.hero__img:hover { transform: scale(1.01); }
@media (min-width: 1024px) { .hero__img { height: 500px; } }

/* ---------- Секции ---------- */
.section { padding: 4rem 0; }
.section--white { background: var(--color-white); }
.section--gray { background: var(--color-gray-50); border-top: 1px solid var(--color-gray-200); }

.section__header { text-align: center; max-width: 48rem; margin: 0 auto 3rem; }
.section__title {
    color: var(--color-blue-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-size: var(--text-sm);
}
.section__heading {
    margin-top: 0.5rem;
    font-size: var(--text-3xl);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 2.25rem;
    color: var(--color-gray-900);
}
@media (min-width: 640px) { .section__heading { font-size: var(--text-4xl); } }

/* ---------- Карточки каталога ---------- */
.products-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
    display: block;
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-gray-100);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: inherit;
}
.product-card:hover, .product-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
}

.product-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.product-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-sm);
    background: var(--color-blue-50);
    color: var(--color-blue-600);
    transition: background-color 0.3s ease, color 0.3s ease;
}
.product-card__icon svg { width: 1.5rem; height: 1.5rem; color: var(--color-blue-600); transition: color 0.3s ease; }
.product-card:hover .product-card__icon, .product-card:focus-visible .product-card__icon {
    background: var(--color-blue-600);
}
.product-card:hover .product-card__icon svg, .product-card:focus-visible .product-card__icon svg { color: var(--color-white); }
.product-card__arrow { width: 1.25rem; height: 1.25rem; color: var(--color-gray-400); transition: color 0.3s ease; }
.product-card:hover .product-card__arrow, .product-card:focus-visible .product-card__arrow { color: var(--color-blue-600); }
.product-card__title { font-size: var(--text-xl); font-weight: 700; color: var(--color-gray-900); transition: color 0.3s ease; margin: 0; }
.product-card:hover .product-card__title, .product-card:focus-visible .product-card__title { color: var(--color-blue-600); }
.product-card__desc { margin-top: 0.5rem; font-size: var(--text-sm); line-height: 1.625; color: var(--color-gray-500); }

.catalog-btn-row { margin-top: 3rem; text-align: center; }
@media (max-width: 767px) {
    .catalog-btn-row { display: flex; }
    .btn-catalog { flex: 1; width: 100%; }
}

/* ---------- О компании ---------- */
.about__grid {
    display: grid;
    gap: 3rem;
    align-items: center;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .about__grid { grid-template-columns: repeat(2, 1fr); } }

.about__kicker {
    color: var(--color-blue-600);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-size: var(--text-sm);
    margin-bottom: 0.75rem;
}
.about__heading { font-size: var(--text-3xl); font-weight: 800; color: var(--color-gray-900); margin-bottom: 1.5rem; line-height: 1.25; }
@media (min-width: 640px) { .about__heading { font-size: var(--text-4xl); } }
.about__lead { font-size: var(--text-lg); line-height: 1.625; color: var(--color-slate-600); margin-bottom: 1.5rem; }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.feature { display: flex; align-items: flex-start; }
.feature__check {
    flex-shrink: 0;
    margin: 0.25rem 1rem 0 0;
    background: var(--color-green-100);
    padding: 0.5rem;
    border-radius: var(--radius-full);
    color: var(--color-green-600);
    display: inline-flex;
}
.feature__check svg { width: 1rem; height: 1rem; }
.feature__title { font-size: var(--text-lg); font-weight: 700; color: var(--color-slate-800); margin-bottom: 0.25rem; }
.feature__desc { font-size: var(--text-sm); color: var(--color-slate-500); }

.about__visual {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1);
    border: 1px solid var(--color-gray-100);
    min-width: 0;
}
.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-gray-100);
    margin-bottom: 2rem;
}
.stat__value {
    display: block;
    font-size: clamp(1.25rem, 6vw, 1.875rem);
    font-weight: 700;
    color: var(--color-blue-600);
    min-width: 0;
}
.stat__label {
    display: block;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* Серый 400 давал 2.5:1 — подпись почти не читалась. */
    color: var(--color-gray-600);
    margin-top: 0.5rem;
    overflow-wrap: anywhere;
    padding-inline: 0.25rem;
    min-width: 0;
}
.about__img { width: 100%; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.about__caption {
    text-align: center;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-gray-500);
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-top: 1px solid var(--color-gray-200);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

/* ---------- Контакты ---------- */
.contact { position: relative; overflow: hidden; }
.contact__deco {
    position: absolute;
    top: 0; right: 0;
    margin-top: -5rem; margin-right: -5rem;
    width: 500px; height: 500px;
    /* Градиент с той же прозрачностью, что давал filter: blur(40px)
       на полупрозрачном круге: картинка та же, растеризации нет. */
    background: radial-gradient(circle, var(--color-blue-50) 0%, rgba(239, 246, 255, 0) 68%);
    border-radius: 50%;
    opacity: 0.5;
    pointer-events: none;
}
.contact__card {
    position: relative;
    z-index: 10;
    background: var(--color-blue-600);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
@media (min-width: 768px) { .contact__card { flex-direction: row; } }

.contact__info { order: 2; padding: 2.5rem; background: var(--color-blue-700); color: var(--color-white); }
@media (min-width: 768px) { .contact__info { order: 1; width: 41.6667%; } }
.contact__form-wrap { order: 1; padding: 2.5rem; background: var(--color-white); }
@media (min-width: 768px) { .contact__form-wrap { order: 2; width: 58.3333%; } }

.contact__info h3 { font-size: var(--text-2xl); font-weight: 700; margin-bottom: 1.5rem; }
.contact__info > p { margin-bottom: 2rem; opacity: 0.9; line-height: 1.625; }
.contact__item { display: flex; align-items: center; margin-bottom: 1.5rem; }
.contact__icon {
    width: 2.5rem; height: 2.5rem;
    border-radius: var(--radius-full);
    background: var(--color-blue-500);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}
.contact__icon svg { width: 1.25rem; height: 1.25rem; }
.contact__label { display: block; font-size: var(--text-sm); opacity: 0.75; }
a.contact__value,
.contact__value {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    font-size: var(--text-lg);
    font-weight: 600;
}
.contact__value a:hover { text-decoration: underline; }
.contact__address { font-size: var(--text-lg); font-weight: 600; line-height: 1.625; }
.contact__badge {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 400;
    background: var(--color-blue-600);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-top: 0.25rem;
}

/* ---------- Форма ---------- */
.contact-form { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; grid-column: span 1; min-width: 0; }
@media (min-width: 640px) {
    .contact-form { grid-template-columns: 1fr 1fr; }
    .btn-submit { grid-column: span 2; }
}
.form-field label { font-size: var(--text-sm); font-weight: 500; color: var(--color-gray-700); margin-bottom: 0.25rem; }
.form-field input,
.form-field textarea {
    width: 100%;
    /* Пальцем нужно попадать: 44px вместо привычных 40. */
    min-height: 2.75rem;
    padding: 0.625rem 1rem;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-slate-800);
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field textarea { resize: vertical; min-height: 6rem; }
.form-field input:focus,
.form-field textarea:focus {
    outline: 0;
    border-color: var(--color-blue-600);
    box-shadow: var(--ring);
}
.form-field--error input, .form-field--error textarea { border-color: var(--color-red-600); }
.form-error { display: none; color: var(--color-red-600); font-size: var(--text-xs); margin-top: 0.25rem; }
.form-field--error .form-error { display: block; }

.form-field--product { grid-column: span 2; }
.form-field--product input[readonly] {
    background: var(--color-blue-50);
    border-color: var(--color-blue-200);
    color: var(--color-gray-900);
    font-weight: 600;
}
.form-hint { display: block; margin-top: 0.25rem; font-size: var(--text-xs); color: var(--color-slate-500); }
@media (max-width: 639px) { .form-field--product { grid-column: span 1; } }

.btn-submit { grid-column: auto; justify-self: start; }
.btn-submit:hover, .btn-submit:focus { background: var(--color-blue-700); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); }
.btn-submit.is-loading { opacity: 0.7; pointer-events: none; }

.form-status { display: none; grid-column: span 2; font-size: var(--text-sm); line-height: 1.5; }
.form-status.is-visible { display: block; }
.form-status .success { color: var(--color-green-600); font-weight: 500; }
.form-status .error { color: var(--color-red-600); font-weight: 500; }

.form-field--consent { grid-column: span 1; }
@media (min-width: 640px) { .form-field--consent { grid-column: span 2; } }
.consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--color-gray-600);
    cursor: pointer;
    margin: 0;
    user-select: none;
}
.consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    margin-top: 0.125rem;
    accent-color: var(--color-blue-600);
}
.consent a { color: var(--color-blue-600); text-decoration: underline; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Футер ---------- */
.site-footer { background: var(--color-gray-50); border-top: 1px solid var(--color-gray-200); padding: 3rem 0; }
.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-sm);
    color: var(--color-gray-600);
    gap: 1.5rem;
}
@media (min-width: 768px) { .footer__inner { flex-direction: row; } }
.footer__brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--color-gray-900); }
.footer__brand svg { width: 1.25rem; height: 1.25rem; }
.footer__copyright { text-align: center; }
@media (min-width: 768px) { .footer__copyright { text-align: left; } }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
@media (min-width: 768px) { .footer__links { order: 3; } }
.footer__links a:hover { color: var(--color-blue-600); }

.footer__messengers { display: flex; gap: 0.75rem; }
.footer__messenger {
    display: flex;
    align-items: center;
    justify-content: center;
    /* 44px — нижняя граница для пальца, иначе промах мимо иконки. */
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-full);
    color: var(--color-white);
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.footer__messenger:hover { transform: translateY(-2px); opacity: 0.9; }
.footer__messenger svg { width: 1.4rem; height: 1.4rem; }
.footer__messenger--wa { background: #25d366; }
.footer__messenger--tg { background: #229ed9; }
.footer__messenger--max { background: linear-gradient(135deg, #44ccff, #5533ee 66%, #9933dd); }
.footer__messenger--vk { background: #0077ff; }
.footer__messenger--max svg { width: 1.3rem; height: 1.3rem; }

/* ---------- Плавающая панель контактов ---------- */
.floating-contact {
    position: fixed;
    right: 1.25rem;
    bottom: 5.5rem;
    z-index: 80;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    /* Контейнер никогда не перехватывает клики — только видимые элементы */
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
@media (max-width: 767px) {
    .floating-contact {
        opacity: 0;
        transform: translateY(0.5rem);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .floating-contact.is-visible {
        opacity: 1;
        transform: none;
    }
}
.floating-contact__panel {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.25);
    opacity: 0;
    transform: translateY(0.5rem);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.floating-contact__panel.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}
.floating-contact__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    color: var(--color-gray-800);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease;
    white-space: nowrap;
}
.floating-contact__link svg { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }
.floating-contact__link:hover, .floating-contact__link:focus-visible { background: var(--color-gray-50); }
.floating-contact__link--wa svg { color: #25d366; }
.floating-contact__link--tg svg { color: #229ed9; }
.floating-contact__link--max svg { border-radius: var(--radius-full); background: linear-gradient(135deg, #44ccff, #5533ee 66%, #9933dd); }
.floating-contact__link--vk svg { color: #0077ff; }
.floating-contact__link--phone svg { color: var(--color-blue-600); }
.floating-contact__link--form svg { color: var(--color-gray-500); }
.floating-contact__toggle {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--color-blue-600);
    color: var(--color-white);
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.5);
    transition: background-color 0.15s ease, transform 0.15s ease;
    pointer-events: auto;
}
.floating-contact__toggle:hover, .floating-contact__toggle:focus-visible {
    background: var(--color-blue-700);
    transform: scale(1.05);
}
.floating-contact__toggle svg { width: 1.5rem; height: 1.5rem; }
.floating-contact__toggle .floating-contact__close-icon { display: none; }
.floating-contact__toggle[aria-expanded="true"] .floating-contact__open-icon { display: none; }
.floating-contact__toggle[aria-expanded="true"] .floating-contact__close-icon { display: block; }

@media (max-width: 767px) {
    /* Компактная панель на мобильных: сетка из круглых иконок */
    .floating-contact__panel {
        display: grid;
        grid-template-columns: repeat(2, 2.5rem);
        gap: 0.375rem;
        padding: 0.5rem;
    }
    .floating-contact__link {
        position: relative;
        width: 2.75rem;
        height: 2.75rem;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .floating-contact__link--form { grid-column: span 2; }
    .floating-contact__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
        border: 0;
    }
    .floating-contact__toggle { width: 3rem; height: 3rem; }
}

/* ---------- Кнопка «Наверх» ---------- */
.to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 50;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius-full);
    background: var(--color-blue-600);
    color: var(--color-white);
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.5rem);
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.15s ease;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover, .to-top:focus-visible { background: var(--color-blue-700); }
.to-top svg { width: 1.25rem; height: 1.25rem; }

/* ---------- Отзывы ---------- */
.testimonials-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin: 0;
}
.testimonial-card__stars {
    display: flex;
    gap: 0.125rem;
    color: #f59e0b;
    margin-bottom: 0.75rem;
}
.testimonial-card__stars svg { width: 1rem; height: 1rem; }
.testimonial-card__text {
    margin: 0 0 1.25rem;
    font-size: var(--text-md);
    line-height: 1.625;
    color: var(--color-gray-700);
}
.testimonial-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray-100);
}
.testimonial-card__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    border-radius: var(--radius-full);
    background: var(--color-blue-50);
    color: var(--color-blue-700);
    font-weight: 700;
    text-transform: uppercase;
}
.testimonial-card__author { font-size: var(--text-md); font-weight: 700; color: var(--color-gray-900); }
.testimonial-card__role { font-size: 0.8125rem; color: var(--color-gray-500); }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    background: var(--color-gray-900);
    color: var(--color-white);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-width: 24rem;
    opacity: 0;
    transform: translateY(1rem);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.cookie-banner__text {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--color-gray-200);
}
.cookie-banner__text a { color: var(--color-blue-400); text-decoration: underline; }
.cookie-banner__accept {
    background: var(--color-blue-600);
    color: var(--color-white);
    border: 0;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.25rem;
    font-family: inherit;
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;

    min-height: 2.75rem;}
.cookie-banner__accept:hover, .cookie-banner__accept:focus { background: var(--color-blue-700); }

/* ---------- Анимации ---------- */
.animate-fade-in-up { animation: none; }
@keyframes blob {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33%      { transform: translate(-6px, 6px) scale(1.08) rotate(40deg); }
    66%      { transform: translate(6px, -6px) scale(0.94) rotate(-40deg); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero__blob { animation: none; }
}

/* На тач-устройствах hover-подъём кнопок сдвигает их из-под пальца и теряется клик. */
@media (hover: none) {
    .btn:hover, .btn:focus, .btn:active { transform: none; }
    .btn-catalog, .btn-submit { transition: background-color 0.2s ease, box-shadow 0.2s ease; }
}

/* ---------- Контент по умолчанию (index.php / страницы) ---------- */
.site-main {
    /* Единственное место, где страница отстраивается от фиксированного
       хедера: 80px шапки + 20px воздуха. Меньше нельзя — при скролле тень
       шапки доходит до 10px, и текст начинает липнуть к ней. Внутренние
       секции своего отступа сверху не добавляют. */
    padding-top: 100px;
}
/* Переход по якорю не должен прятать заголовок под шапкой. */
:target,
.section,
.catalog-page,
.product-page { scroll-margin-top: 100px; }
.entry { padding-bottom: 2rem; }
.entry-title { font-size: var(--text-4xl); font-weight: 800; line-height: 1.25; color: var(--color-gray-900); margin-bottom: 1rem; }
.entry h1, .entry h2, .entry h3 { margin: 1em 0 0.5em; }
.entry p { margin-bottom: 1em; line-height: 1.625; }

/* ---------- Видимость для screen reader ---------- */
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Новые поступления на странице каталога ---------- */
.catalog-latest { margin-bottom: 3rem; }
.catalog-latest__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.catalog-latest__title { font-size: var(--text-2xl); font-weight: 800; color: var(--color-gray-900); }
.catalog-latest__hint { font-size: var(--text-sm); color: var(--color-slate-500); }
.catalog-latest__row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
@media (max-width: 1024px) {
    .catalog-latest__row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .catalog-latest__row { grid-template-columns: 1fr; }
}
.catalog-latest__item {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.875rem;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.catalog-latest__item:hover {
    border-color: var(--color-blue-200);
    box-shadow: var(--shadow-md);
}
.catalog-latest__media {
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: linear-gradient(160deg, var(--color-blue-50), var(--color-gray-50));
    color: var(--color-blue-600);
    overflow: hidden;
}
.catalog-latest__media svg { width: 2.75rem; height: 2.75rem; }
.catalog-latest__media img { width: 100%; height: 100%; object-fit: cover; }
.catalog-latest__vendor {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-slate-500);
    margin-top: 0.5rem;
}
.catalog-latest__name {
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-gray-900);
}
.catalog-latest__meta { margin-top: auto; padding-top: 0.375rem; }

@media (hover: none) {
    .catalog-latest__item:hover {
        border-color: var(--color-gray-200);
        box-shadow: none;
    }
}

/* ---------- Табличный вид каталога ---------- */
.catalog-table-wrap {
    overflow-x: auto;
    contain: paint;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.catalog-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
    font-size: var(--text-sm);
    line-height: 1.5;
}
.catalog-table th {
    text-align: left;
    padding: 0.875rem 1rem;
    background: var(--color-gray-50);
    color: var(--color-slate-600);
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.catalog-table td {
    padding: 0.875rem 1rem;
    border-top: 1px solid var(--color-gray-100);
    vertical-align: top;
    color: var(--color-slate-700);
}
.catalog-table tbody tr { cursor: pointer; }
.catalog-table tbody tr:hover { background: var(--color-gray-50); }
.catalog-table__title a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    font-weight: 700;
    color: var(--color-gray-900);
    text-decoration: none;
}
.catalog-table__title a:hover { color: var(--color-blue-600); }
.catalog-table__vendor {
    display: block;
    margin-top: 0.25rem;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-slate-500);
}
.catalog-table__specs {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.125rem;
    font-size: 0.8125rem;
    color: var(--color-slate-600);
}
.catalog-table__price { font-weight: 700; color: var(--color-gray-900); white-space: nowrap; }
.catalog-table__link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    font-weight: 600;
    color: var(--color-blue-600);
    text-decoration: none;
    white-space: nowrap;
}
.catalog-table__link:hover { text-decoration: underline; }

@media (hover: none) {
    .catalog-table tbody tr:hover { background: transparent; }
}

/* ---------- Каталог ---------- */
.catalog-page { padding-bottom: 5rem; }

.catalog-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    font-size: var(--text-sm);
    color: var(--color-slate-500);
    margin-bottom: 2rem;
}
.catalog-breadcrumbs a { color: var(--color-blue-600); text-decoration: none; }
.catalog-breadcrumbs a:hover { text-decoration: underline; }
.catalog-breadcrumbs__current { color: var(--color-gray-700); }
.catalog-breadcrumbs__sep { opacity: 0.6; }

.catalog-section-head {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}
.catalog-section-head__icon {
    flex: 0 0 auto;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--color-blue-50);
    color: var(--color-blue-600);
}
.catalog-section-head__icon svg { width: 2rem; height: 2rem; }
.catalog-section-head__title { font-size: 2rem; font-weight: 800; line-height: 1.2; color: var(--color-gray-900); }
.catalog-section-head__desc { margin-top: 0.5rem; max-width: 40rem; color: var(--color-slate-600); line-height: 1.6; }

/* ---------- Фильтр каталога ---------- */
.sc-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem;
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}
.sc-filter__field { display: flex; flex-direction: column; gap: 0.375rem; }
.sc-filter__field--grow { flex: 1 1 16rem; }
.sc-filter__label { font-size: 0.8125rem; font-weight: 600; color: var(--color-gray-700); }
.sc-filter__input {
    min-width: 11rem;
    min-height: 2.75rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-gray-800);
    font-size: var(--text-md);
    line-height: 1.3;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sc-filter__input:focus { outline: 0; border-color: var(--color-blue-600); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }

/* Диапазон цены и чекбокс «по запросу» */
.sc-filter__range { display: flex; align-items: center; gap: 0.5rem; }
.sc-filter__range .sc-filter__input { min-width: 6.5rem; }
.sc-filter__dash { color: var(--color-gray-400); }
.sc-filter__field--check { justify-content: flex-end; }
.sc-filter__check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    color: var(--color-gray-700);
    cursor: pointer;
    white-space: nowrap;
}
.sc-filter__check input { width: 1rem; height: 1rem; accent-color: var(--color-blue-600); }

/* Сортировка */
.sc-catalog-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; }
.sc-catalog-controls .sc-filter { flex: 1 1 40rem; margin-bottom: 2rem; }
/* Тулбар над списком: слева счётчик и чипы, справа сортировка. */
.sc-catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1.75rem;
}
.sc-catalog-toolbar__info { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; min-width: 0; }
.sc-catalog-toolbar__count {
    margin: 0;
    font-size: var(--text-md);
    line-height: 1.4;
    color: var(--color-gray-700);
    white-space: nowrap;
}
.sc-catalog-toolbar .sc-filter-chips { margin-bottom: 0; }
.sc-sort {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
}
.sc-sort__label { font-size: var(--text-sm); font-weight: 600; color: var(--color-gray-700); white-space: nowrap; }
.sc-sort__input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-gray-800);
    font-size: var(--text-md);
    line-height: 1.3;
    cursor: pointer;

    min-height: 2.75rem;}
.sc-sort__input:focus { outline: 0; border-color: var(--color-blue-600); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }

/* Чипы активных фильтров */
.sc-filter-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.sc-filter-chips__caption { font-size: var(--text-sm); font-weight: 600; color: var(--color-gray-700); }
.sc-filter-chips__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    background: var(--color-blue-50);
    border: 1px solid var(--color-blue-100);
    color: var(--color-blue-700);
    font-size: var(--text-sm);
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.sc-filter-chips__chip:hover { background: var(--color-blue-100); border-color: var(--color-blue-200); }
.sc-filter-chips__chip svg { width: 0.875rem; height: 0.875rem; flex: 0 0 auto; }
.sc-filter-chips__reset {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-slate-600);
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}
.sc-filter-chips__reset:hover { color: var(--color-blue-700); }

@media (max-width: 767px) {
    .sc-filter { flex-direction: column; align-items: stretch; }
    .sc-filter__field { width: 100%; }
    .sc-filter__input { min-width: 0; width: 100%; }
}

/* Живой поиск: поле с выпадающими подсказками */
.sc-filter__field.is-search { position: relative; }
.sc-search-results[hidden] { display: none; }
.sc-search__suggest {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    z-index: 40;
    min-width: 16rem;
    padding: 0.375rem;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    background: var(--color-white);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}
.sc-search__suggest[hidden] { display: none; }
.sc-search__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--color-gray-800);
    text-decoration: none;
}
.sc-search__item.is-active,
.sc-search__item:hover { background: var(--color-gray-100); }
.sc-search__media {
    flex: 0 0 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--color-gray-100);
    color: var(--color-blue-600);
    overflow: hidden;
}
.sc-search__media img { width: 100%; height: 100%; object-fit: cover; }
.sc-search__media svg { width: 1.25rem; height: 1.25rem; }
.sc-search__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.125rem; }
.sc-search__title { font-size: var(--text-md); font-weight: 600; line-height: 1.3; }
.sc-search__title mark { background: rgba(37, 99, 235, 0.14); color: var(--color-blue-800); border-radius: 2px; padding: 0 1px; }
.sc-search__vendor { font-size: 0.8125rem; color: var(--color-gray-600); }
.sc-search__meta { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
.sc-search__price { font-size: var(--text-sm); font-weight: 700; color: var(--color-gray-800); white-space: nowrap; }
.sc-search__all {
    margin-top: 0.25rem;
    padding: 0.5rem 0.625rem;
    border-top: 1px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    color: var(--color-blue-700);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.sc-search__all:hover { color: var(--color-blue-800); }

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Поиск: компактный список (search_view = list) */
.search-list { display: flex; flex-direction: column; gap: 0.625rem; }
.search-list__row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-sm);
    color: var(--color-gray-800);
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-list__row:hover { border-color: var(--color-blue-300); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
.search-list__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.125rem; }
.search-list__title { font-size: var(--text-md); font-weight: 600; line-height: 1.3; }
.search-list__vendor { font-size: 0.8125rem; color: var(--color-gray-600); }
.search-list__stock { flex-shrink: 0; }
.search-list__price { flex-shrink: 0; font-weight: 700; color: var(--color-gray-800); white-space: nowrap; }
@media (max-width: 640px) {
    .search-list__row { flex-wrap: wrap; }
    .search-list__price { margin-left: auto; }
}

/* Страница «Не найдено» */
.sc-404__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-top: 1.25rem;
}
.sc-404__search { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sc-404__search-input {
    min-width: 14rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-gray-800);
    font-size: var(--text-md);
    line-height: 1.3;
}
.sc-404__search-input:focus { outline: 0; border-color: var(--color-blue-600); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }

.catalog-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.catalog-category {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    color: inherit;
    text-decoration: none;
    background: var(--color-white);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.catalog-category:hover {
    border-color: var(--color-blue-200);
    box-shadow: var(--shadow-md);
}
.catalog-category__icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--color-blue-50);
    color: var(--color-blue-600);
}
.catalog-category__icon svg { width: 1.75rem; height: 1.75rem; }
.catalog-category__title { font-weight: 700; font-size: var(--text-lg); color: var(--color-gray-900); }
.catalog-category__desc { color: var(--color-slate-600); font-size: var(--text-sm); line-height: 1.5; }

@media (max-width: 767px) {
    .catalog-category:hover, .catalog-category { transform: none; }
}

.product-item {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    background: var(--color-white);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.product-item:hover {
    border-color: var(--color-blue-200);
    box-shadow: var(--shadow-md);
}
.product-item__media {
    height: 11rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--color-blue-50), var(--color-gray-50));
    color: var(--color-blue-600);
}
.product-item__media svg { width: 3.25rem; height: 3.25rem; }
.product-item__media img { width: 100%; height: 100%; object-fit: cover; }
.product-item__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem;
}
.product-item__vendor {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-slate-500);
}
.product-item__title {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--color-gray-900);
    margin: 0.25rem 0 0.75rem;
}
.product-item__title a { color: inherit; text-decoration: none; }
.product-item__title a:hover { color: var(--color-blue-600); }
.product-item__specs {
    margin: 0 0 1.25rem;
    padding-left: 1.125rem;
    display: grid;
    gap: 0.25rem;
    color: var(--color-slate-600);
    font-size: var(--text-sm);
    line-height: 1.45;
}
.product-item__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    border-top: 1px solid var(--color-gray-100);
    padding-top: 0.875rem;
}
.product-item__price {
    font-weight: 700;
    color: var(--color-gray-900);
    font-size: var(--text-md);
    text-align: right;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}
.stock-badge::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: var(--radius-full); }
/* 600-е оттенки не добирали 4.5:1 на светлой подложке. */
.stock-badge--in { color: var(--color-green-700); }
.stock-badge--in::before { background: var(--color-green-500); }
.stock-badge--order { color: #b45309; }
.stock-badge--order::before { background: #f59e0b; }
.stock-badge--out { color: var(--color-red-700); }
.stock-badge--out::before { background: var(--color-red-600); }

.catalog-empty { color: var(--color-slate-600); margin: 0 0 1.5rem; }
.btn-preorder { display: inline-flex; }

/* ---------- Карточка товара ---------- */
.product-page { padding-bottom: 5rem; }
.product-page__card {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 2.5rem;
    align-items: start;
}
@media (max-width: 767px) {
    .product-page__card { grid-template-columns: 1fr; gap: 1.5rem; }
}
.product-page__media {
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--color-blue-50), var(--color-gray-50));
    color: var(--color-blue-600);
    min-height: 16rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-page__media svg { width: 5rem; height: 5rem; }
.product-page__media img {
    width: 100%;
    height: auto;
    /* Высокая фотография не должна растягивать карточку сильнее остальных. */
    max-height: 24rem;
    object-fit: contain;
}
.product-page__info { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.product-page__title { font-size: var(--text-3xl); font-weight: 800; line-height: 1.2; color: var(--color-gray-900); }
.product-page__price { font-size: 1.375rem; font-weight: 800; color: var(--color-gray-900); }
.product-page__content p { color: var(--color-slate-600); line-height: 1.6; }
.product-page__subtitle { font-size: var(--text-lg); font-weight: 700; color: var(--color-gray-900); margin-top: 0.5rem; }
.product-page__specs {
    margin: 0 0 1.25rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    background: var(--color-gray-50);
    display: grid;
    gap: 0.375rem;
    width: 100%;
    box-sizing: border-box;
}
.product-page__specs li {
    list-style: none;
    position: relative;
    padding-left: 1.25rem;
    color: var(--color-slate-700);
}
.product-page__specs li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--radius-full);
    background: var(--color-blue-200);
}

@media (hover: none) {
    .catalog-category:hover, .product-item:hover {
        border-color: var(--color-gray-200);
        box-shadow: none;
    }
}