﻿/* ==========================================================================
   LUTS Textile — base styles
   Palette & typography per ТЗ-Контакти.md (client spec), applied site-wide
   for visual consistency.
   ========================================================================== */

/* Self-hosted Montserrat (variable, wght 100-900): no render-blocking
   third-party fonts.googleapis.com request. Files in assets/fonts/. */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/montserrat-var-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/montserrat-var-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;
}

:root {
    --color-primary: #162a45;
    --color-primary-soft: #213b60;
    --color-primary-hover: #0d1b2e;
    --color-panel: #e8e6e6;
    --color-surface: #f4f5f7;
    --color-surface-soft: #f8fafc;
    --white: #ffffff;
    --text: #172236;
    --text-muted: #526071;
    --border: #d8d2c8;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 20px rgba(43, 43, 38, 0.06);
    --max-width: 1440px;
    --font: 'Montserrat', 'Montserrat Fallback', Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    max-width: 1920px;
    margin: 0 auto;
    background-color: #fff;
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-soft); }
ul { list-style: none; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 700; color: var(--color-primary); }
h1 { font-size: 44px; line-height: 1.15; }
h2 { font-size: 30px; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.section-title--center { text-align: center; }
.section-lede--center { text-align: center; max-width: 680px; margin: 0 auto 1em; color: var(--text-muted); }
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--color-primary); border-color: var(--color-primary); color: var(--white); }
.btn--primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); color: var(--white); }
.btn--outline { background: transparent; border-color: #cfd5df; color: #162033; }
.btn--outline:hover { background: #fff; border-color: var(--color-primary); color: var(--color-primary); }

/* ---------- Header / Navigation ---------- */
.site-contact-bar {
    width: calc(100% - 40px);
    max-width: calc(var(--max-width) - 40px);
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #eef0f4;
    border-bottom: 1px solid #e1e6ec;
    box-shadow: none;
    color: var(--text);
}
.site-contact-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 34px;
    padding-top: 6px;
    padding-bottom: 6px;
}
.site-contact-bar__group {
    display: flex;
    align-items: center;
    gap: 22px;
    min-width: 0;
}
.site-contact-bar__group--secondary { justify-content: flex-end; }
.site-contact-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #111;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.25;
    white-space: nowrap;
}
a.site-contact-bar__item { transition: color .15s ease; }
a.site-contact-bar__item:hover { color: var(--color-primary); }
.site-contact-bar__item svg { flex: 0 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 0;
    background: transparent;
}
.site-header__inner {
    width: calc(100% - 40px);
    max-width: calc(var(--max-width) - 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 92px;
    padding-left: 56px;
    padding-top: 18px;
    padding-bottom: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #eef0f4;
    border-top: 0;
    border-radius: 0;
    box-shadow: 0 12px 34px rgba(22, 32, 51, 0.08);
    margin-top: 0;
}
.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.site-logo picture { display: block; }
.site-logo img {
    display: block;
    width: 104px;
    height: auto;
}

.site-header__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 14px;
    cursor: pointer;
    padding: 0;
}
.site-header__toggle span { width: 22px; height: 2px; background: #172236; }

.site-header__aside { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex: 0 0 118px; }

.site-header__lang {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 54px;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 18px;
    padding: 0 8px;
}
.site-header__lang a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 34px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 900;
    color: #172236;
}
/* Роздільна риска між UA та RU (2026-08-06): тепер стоїть по центру
   проміжку, а не впритул до правої кнопки. Активна мова має власну
   «пігулку» з рамкою, тож риска поруч із нею виглядала б брудно —
   ховаємо її з обох боків активного пункту. */
.site-header__lang a + a::before {
    content: "";
    position: absolute;
    left: -3.5px;
    top: 9px;
    bottom: 9px;
    width: 1px;
    background: #d7dde5;
}
.site-header__lang a.is-active + a::before,
.site-header__lang a.is-active::before { content: none; }
.site-header__lang a:hover,
.site-header__lang a.is-active {
    background: var(--color-surface-soft);
    border: 1px solid #e4e9ef;
    box-shadow: 0 2px 8px rgba(22, 32, 51, 0.06);
    color: #172236;
}
.site-header__lang a[aria-disabled="true"] { color: #64707e; cursor: not-allowed; pointer-events: none; }

.site-nav {
    flex: 1 1 auto;
    min-width: 0;
}
.site-nav > ul { display: flex; align-items: center; justify-content: center; gap: 48px; }
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a,
.site-nav > ul > li > span {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 10px 0;
    font-weight: 800;
    font-size: 15px;
    line-height: 1.2;
    color: #172236;
    cursor: pointer;
    white-space: nowrap;
}
.site-nav > ul > li > a:hover,
.site-nav > ul > li:hover > a,
.site-nav > ul > li:hover > span { color: var(--color-primary-soft); }

.site-nav > ul > .menu-item-has-children > a::after,
.site-nav > ul > .menu-item-has-children > span::after,
.site-nav > ul > .luts-mega-parent > a::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.site-nav .menu-item-has-children > ul {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--white);
    border: 1px solid #eef0f4;
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(22, 32, 51, 0.08);
    min-width: 300px;
    padding: 10px;
    z-index: 50;
}
.site-nav .menu-item-has-children:hover > ul,
.site-nav .menu-item-has-children.is-open > ul { display: block; }
.site-nav .menu-item-has-children > ul li a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
}
.site-nav .menu-item-has-children > ul li a:hover { background: var(--color-surface); color: var(--color-primary); }

/* ---------- Header hover panels: Каталог mega-menu + Призначення dropdown ----------
   Squared floating panels in the graphite language of the header card.
   Kept display:block with visibility/opacity so open/close animates.
   Panels anchor to the nav row (li is static) and open centered under it,
   so they stay inside the viewport regardless of which item owns them. */
/* The panels are as wide as the header container: the nav <ul> is static, so
   they anchor to .site-header__inner and `left/right: 0` stretches them across
   its full width, aligned with the logo and the nav row above. */
.site-nav > ul { position: static; }
.site-nav > ul > .luts-mega-parent { position: static; }
.site-nav > ul > .luts-mega-parent > .mega-menu,
.site-nav > ul > .luts-mega-parent > .purpose-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
    background: #fff;
    border: 1px solid var(--panel-line);
    border-radius: 0;
    box-shadow: 0 18px 44px rgba(22, 32, 51, 0.14);
    z-index: 50;
    padding: 0;
}
.site-nav > ul > .luts-mega-parent:hover > .mega-menu,
.site-nav > ul > .luts-mega-parent.is-open > .mega-menu,
.site-nav > ul > .luts-mega-parent:hover > .purpose-dropdown,
.site-nav > ul > .luts-mega-parent.is-open > .purpose-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
/* keyboard support: tabbing onto the parent link (or into the panel) opens it */
.site-nav > ul > .luts-mega-parent:focus-within > .mega-menu,
.site-nav > ul > .luts-mega-parent:focus-within > .purpose-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity .18s ease, transform .18s ease, visibility 0s;
}

.site-nav > ul > .luts-mega-parent > .mega-menu {
    width: auto;
}

/* two-zone body: grey category rail on the left, white content on the right */
.catalog-browser--mega {
    display: flex;
    align-items: stretch;
    margin: 0;
    gap: 0;
}
.catalog-browser--mega .catalog-browser__sidebar {
    flex: 0 0 332px;
    background: #f8fafc;
    border-right: 1px solid var(--panel-line);
    padding: 14px 10px;
}
.catalog-browser--mega .catalog-browser__item {
    position: relative;
    display: block;
    padding: 9px 30px 9px 18px;
    margin-bottom: 2px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.35;
    color: #33404f;
    transition: background .12s ease, color .12s ease;
}
.catalog-browser--mega .catalog-browser__item::after {
    content: "";
    position: absolute;
    right: 13px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #9aa4b2;
    border-bottom: 1.5px solid #9aa4b2;
    transform: translateY(-50%) rotate(-45deg);
    transition: border-color .12s ease;
}
/* categories without subcategories: no drill-in chevron */
.catalog-browser--mega .catalog-browser__item--leaf::after { display: none; }
.catalog-browser--mega .catalog-browser__item:hover { background: #eef1f5; color: var(--ink); }
.catalog-browser--mega .catalog-browser__item.is-active {
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px var(--panel-line), 0 1px 4px rgba(22, 32, 51, 0.05);
}
.catalog-browser--mega .catalog-browser__item.is-active::after { border-color: var(--ink-2); }

.catalog-browser--mega .catalog-browser__content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    padding: 22px 28px 24px;
}
/* the active panel stretches so its CTA row can sit at a stable bottom edge */
.catalog-browser--mega .catalog-browser__panel.is-active {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
/* links on the left, photo + blurb on the right (inc/term-menu-media.php) */
.catalog-browser__panel-body {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    flex: 1 1 auto;
    min-width: 0;
}
.catalog-browser__panel-main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}
.catalog-browser__media {
    flex: 0 0 380px;
    max-width: 380px;
}
.catalog-browser__media-link { display: block; }
.catalog-browser__media-img {
    display: block;
    width: 100%;
    /* fixed ratio so every category shows an equally solid block, whatever the
       source photo's proportions are */
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}
.catalog-browser__media-text {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-2);
}
/* below the mega-menu breakpoint the mobile list (.mnav) takes over */
@media (max-width: 1100px) {
    .catalog-browser__media { display: none; }
}
.catalog-browser__panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--panel-line);
}
.catalog-browser__panel-title {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink);
}
.catalog-browser__panel-count {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-muted);
    white-space: nowrap;
}
.mega-menu__footer {
    border-top: 1px solid var(--panel-line);
    background: #f8fafc;
    padding: 12px 26px;
    text-align: right;
}
.mega-menu__footer a { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.mega-menu__footer a:hover { color: var(--color-primary-hover); }

/* Призначення: dropdown panel sized identically to the catalog mega-menu */
.site-nav > ul > .luts-mega-parent > .purpose-dropdown {
    width: auto;
}
.purpose-dropdown__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 22px 10px;
    border-bottom: 1px solid var(--panel-line);
}
.purpose-dropdown__title {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink);
}
.purpose-dropdown__count {
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-muted);
    white-space: nowrap;
}
/* grid instead of CSS columns so the columns stay on level rows */
.purpose-dropdown__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr; /* every row as tall as the tallest -> uniform cells */
    column-gap: 8px;
    row-gap: 1px;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 12px 12px 14px;
}
.purpose-dropdown__list li { display: flex; }
.purpose-dropdown__list a {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    color: #3d4a59;
    transition: background .12s ease, color .12s ease;
}
.purpose-dropdown__list a:hover { background: #f4f6f9; color: var(--ink); }
.purpose-dropdown__footer {
    border-top: 1px solid var(--panel-line);
    background: #f8fafc;
    padding: 12px 26px;
    text-align: right;
}
.purpose-dropdown__footer a { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.purpose-dropdown__footer a:hover { color: var(--color-primary-hover); }

/* panels keep their 920px width on small desktops too: the max-width
   calc(100vw - 40px) guard on the panel itself prevents viewport overflow */

/* Invisible hover-bridge: fills the gap between the menu item and its panel
   so the cursor keeps :hover while moving down into the dropdown. */
.site-nav > ul > .luts-mega-parent > .mega-menu::before,
.site-nav > ul > .luts-mega-parent > .purpose-dropdown::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

/* ---------- Mobile catalog accordion (burger menu only) ---------- */
.mega-menu__mobile { display: none; }
.mnav { list-style: none; margin: 0; padding: 0; }
.mnav__item { border-bottom: 1px solid var(--panel-line); }
.mnav__item:last-child { border-bottom: 0; }
.mnav__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 13px 2px;
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    text-align: left;
    text-decoration: none;
}
.mnav__chevron {
    flex: none;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-right: 2px solid #9aa4b2;
    border-bottom: 2px solid #9aa4b2;
    transform: rotate(45deg);
    transition: transform .2s ease;
}
.mnav__item--parent.is-open .mnav__chevron { transform: rotate(-135deg); }
.mnav__sub {
    display: none;
    padding: 2px 0 12px 12px;
}
.mnav__item--parent.is-open .mnav__sub { display: block; }
.mnav__sub ul { list-style: none; margin: 0; padding: 0; }
.mnav__sub li a {
    display: block;
    padding: 9px 0;
    font-size: 14px;
    color: var(--ink-muted);
    text-decoration: none;
}
.mnav__sub li a:hover,
.mnav__sub li a:active { color: var(--color-primary); }
.mnav__all {
    display: inline-block;
    margin-top: 4px;
    padding: 8px 0;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

/* ---------- Footer ---------- */
.site-footer {
    width: calc(100% - 40px);
    max-width: calc(var(--max-width) - 40px);
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 0;
    margin: 60px auto 0;
    border-top: 1px solid rgba(216, 210, 200, 0.2);
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: #d8d2c8; }
.site-footer__inner {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    min-height: 86px;
    padding: 16px 40px;
    display: grid;
    grid-template-columns: auto minmax(190px, 0.8fr) minmax(420px, 1.2fr) auto;
    align-items: center;
    gap: 34px;
    font-size: 14px;
}
.site-footer__brand {
    display: inline-flex;
    align-items: center;
}
.site-footer__brand picture { display: block; }
.site-footer__brand img {
    display: block;
    height: 44px;
    width: auto;
    /* luts-logo-white.webp is already pre-colored (white LUTS + red Textile)
       for the dark footer — no CSS filter here, it would flatten the red too. */
}
.site-footer__meta {
    display: grid;
    gap: 3px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
}
.site-footer__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 42px;
}
.site-footer__nav a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}
.site-footer__social {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.site-footer__social a {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-primary);
}
.site-footer__social a:hover {
    background: #d8d2c8;
    color: var(--color-primary);
}
.site-footer__social svg {
    display: block;
    fill: currentColor;
    stroke: none;
}
.site-footer__social svg rect,
.site-footer__social svg circle {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
}
.site-footer__social svg path {
    fill: currentColor;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 13px; color: var(--text-muted); margin: 18px 0; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs__item { color: var(--text-muted); }
.breadcrumbs__sep { margin: 0 6px; }
.breadcrumbs__current { color: var(--color-primary); font-weight: 600; }

/* ---------- Generic page sections ---------- */
.page-hero { padding: 50px 0 20px; }
.page-hero h1 { font-size: 32px; }
.section { padding: 30px 0; }

/* ---------- Front page ---------- */
.home-hero {
    padding: 0;
}
.home-hero__panel {
    position: relative;
    min-height: 617px;
    overflow: hidden;
    border-radius: 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    border: 1px solid rgba(28, 38, 52, 0.08);
}
.home-hero__slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    transition: opacity .45s ease;
}
.home-hero__slide:first-child {
    position: relative;
}
.home-hero__slide.is-active {
    z-index: 1;
    opacity: 1;
    pointer-events: auto;
}
.home-hero__slide--legacy::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(70, 67, 67, 0.2);
    pointer-events: none;
}
/* слайд 1: затемнення ліворуч, щоб білий текст читався поверх світлого фото
   (праворуч котушки лишаються видимими) — аби колір тексту збігався з легатними */
.home-hero__slide:not(.home-hero__slide--legacy)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(12, 18, 28, 0.34) 0%, rgba(12, 18, 28, 0.16) 40%, rgba(12, 18, 28, 0) 62%);
    pointer-events: none;
}
.home-hero__content {
    position: relative;
    z-index: 2;
    /* однакові з legacy-слайдами відступи й вирівнювання, щоб текст не стрибав
       при перемиканні (на мобільному <=900 перекривається окремим блоком) */
    width: min(780px, 58%);
    min-height: 617px;
    padding: 80px 64px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.home-hero__content h1 {
    margin: 0;
    width: min(680px, 100%);
    color: #fff;
    /* той самий шрифт, що й у заголовків слайдів 2-4 (.home-hero__content--legacy h2) */
    font-size: clamp(38px, 4.1vw, 62px);
    line-height: 1.06;
    font-weight: 600;
    letter-spacing: -0.03em;
}
.home-hero__content h2 {
    margin: 0;
    width: min(650px, 100%);
    color: #162033;
    font-size: clamp(36px, 3.1vw, 50px);
    line-height: 1.16;
    font-weight: 500;
    letter-spacing: -0.03em;
}
.home-hero__content--legacy {
    width: min(780px, 58%);
    padding: 80px 64px 60px;
    justify-content: flex-end;
    color: #fff;
}
.home-hero__content--legacy h2 {
    width: min(680px, 100%);
    color: #fff;
    font-size: clamp(38px, 4.1vw, 62px);
    line-height: 1.06;
    font-weight: 600;
}
.home-hero__eyebrow {
    display: inline-flex;
    width: max-content;
    margin-bottom: 16px;
    color: #526071;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.home-hero__content--legacy .home-hero__eyebrow {
    color: rgba(255, 255, 255, 0.78);
}
.home-hero__lede {
    width: min(590px, 100%);
    margin: 22px 0 0;
    /* білий, як у слайдів 2-4 (над затемненням) */
    color: rgba(255, 255, 255, 0.92);
    /* той самий кегль/інтерліньяж, що й у ledes слайдів 2-4 */
    font-size: 16px;
    line-height: 1.55;
    font-weight: 500;
}
.home-hero__content--legacy .home-hero__lede {
    width: min(520px, 100%);
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    line-height: 1.55;
}
.home-hero__actions {
    display: flex;
    align-items: center;
    gap: 32px;
    width: min(500px, 100%);
    margin-top: 28px;
    flex-wrap: nowrap;
}
.home-hero__actions .btn {
    flex: 0 0 calc((100% - 32px) / 2);
    width: calc((100% - 32px) / 2);
    height: 54px;
    padding: 0 22px;
    justify-content: center;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}
.home-hero__actions--legacy {
    width: 184px;
    margin-top: 30px;
}
.home-hero__actions--legacy .btn {
    flex-basis: 100%;
    width: 100%;
}
.home-hero__actions.home-hero__actions--legacy .btn--primary {
    background: #fff;
    border-color: #fff;
    color: #162033;
}
.home-hero__actions.home-hero__actions--legacy .btn--primary:hover {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.88);
    color: #162033;
}
.home-hero__actions .btn--primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
}
.home-hero__actions .btn--primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}
.home-hero__actions .btn--outline {
    background: rgba(255, 255, 255, 0.72);
    border-color: #cfd5df;
    color: #162033;
}
.home-hero__actions .btn--outline:hover {
    background: #fff;
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.home-hero__facts {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    width: min(600px, 100%);
    margin: 66px 0 0;
}
.home-hero__fact {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 18px;
    border-left: 1px solid rgba(22, 32, 51, 0.16);
    color: #526071;
}
.home-hero__fact:first-child {
    border-left: 0;
    padding-left: 0;
}
.home-hero__fact svg {
    flex-shrink: 0;
}
.home-hero__fact strong,
.home-hero__fact small {
    display: block;
}
.home-hero__fact strong {
    color: #162033;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 800;
}
.home-hero__fact small {
    color: #263247;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 600;
}
.home-hero__slider-nav {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: block;
    pointer-events: none;
}
.home-hero__slider-btn,
.home-hero__dot {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.home-hero__slider-btn {
    position: absolute;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #162033;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(207, 213, 223, 0.95);
    box-shadow: 0 12px 34px rgba(22, 32, 51, 0.12);
    pointer-events: auto;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.home-hero__slider-btn:hover,
.home-hero__slider-btn:focus-visible {
    background: #fff;
    border-color: rgba(22, 42, 69, 0.3);
    transform: translateY(-50%) translateX(2px);
}
.home-hero__slider-btn:first-child {
    display: none;
}
.home-hero__dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid rgba(207, 213, 223, 0.76);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 10px 30px rgba(22, 32, 51, 0.08);
    pointer-events: auto;
}
.home-hero__dot {
    width: 24px;
    height: 3px;
    padding: 0;
    border-radius: 999px;
    background: rgba(82, 96, 113, 0.28);
    transition: width .18s ease, background .18s ease;
}
.home-hero__dot.is-active {
    width: 34px;
    background: #162a45;
}
.home-section {
    padding: 22px 20px 10px;
}
.home-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}
.home-section__head h2 {
    margin: 0;
    color: #1c2433;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 800;
}
.home-section__head a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #344052;
    font-size: 14px;
    font-weight: 700;
}
.home-product-categories {
    padding: 54px 20px 18px;
}
.home-product-categories__head {
    margin: 0 auto 30px;
    text-align: center;
}
.home-product-categories__head h2 {
    display: inline-block;
    margin: 0 0 14px;
    color: #172236;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 900;
    text-transform: uppercase;
}
.home-product-categories__head h2::after {
    content: "";
    display: block;
    width: 52px;
    height: 1px;
    margin: 12px auto 0;
    background: #9b7b7d;
}
.home-product-categories__head p {
    margin: 0;
    color: #263247;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
}
.home-product-categories__grid {
    display: grid;
    grid-template-columns: repeat(3, 452px);
    grid-template-rows: 252px 194px;
    justify-content: space-between;
    column-gap: 0;
    row-gap: 14px;
}
.home-category-card {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 0;
    padding: 28px 24px;
    border: 0;
    border-radius: 4px;
    background: var(--color-panel);
    box-shadow: inset 0 0 0 1px #e5e1da;
    color: #172236;
}
.home-category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(232, 230, 230, 0.96) 0%, rgba(232, 230, 230, 0.9) 40%, rgba(232, 230, 230, 0.42) 54%, rgba(232, 230, 230, 0) 68%);
}
.home-category-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 58%;
    min-height: 100%;
}
.home-category-card strong {
    margin: 0 0 16px;
    color: #172236;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}
.home-category-card small {
    color: #4f5c6d;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 600;
}
.home-category-card__arrow {
    display: inline-flex;
    margin-top: auto;
    color: #172236;
}
.home-category-card img {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .2s ease;
}
.home-category-card:hover {
    color: #172236;
    box-shadow: inset 0 0 0 1px #d8d2c8;
}
.home-category-card:hover img {
    transform: none;
}
.home-category-card--6 {
    grid-column: auto;
}
.home-category-card--6 .home-category-card__content {
    max-width: 58%;
}
.home-category-card--6 img {
    width: 100%;
}
/* Адаптив «Каталог за призначенням» за стандартними діапазонами.
   >=1440 — 6 в ряд; далі поступово менше колонок. */
.industry-card-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    padding: 4px 0 26px;
}
@media (1024px <= width < 1440px) {
    .industry-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (600px <= width < 1024px) {
    .industry-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (width < 600px) {
    .industry-card-grid { grid-template-columns: 1fr; }
}
.industry-card {
    position: relative;
    display: flex;
    box-sizing: border-box;
    min-height: 258px;
    overflow: hidden;
    flex-direction: column;
    border-radius: 6px;
    background: #fff;
    /* справжня рамка (не inset-тінь) — інакше непрозоре фото зверху перекриває
       рамку над собою, і вона видно лише навколо тексту */
    border: 1px solid #e4e7ed;
    color: #172236;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.industry-card:hover {
    color: #172236;
    border-color: #cfd5df;
    box-shadow: 0 10px 24px rgba(22, 32, 51, 0.08);
    transform: translateY(-2px);
}
.industry-card__image {
    display: block;
    width: 100%;
    /* фіксована висота смуги. Десктоп (6 в ряд): картка 218px -> віконце
       218x150 ≈ 3:2, тож фото 3:2 заповнює його без обрізання. */
    height: 150px;
    overflow: hidden;
    background: var(--color-panel);
}
.industry-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.industry-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px 20px; /* верхній відступ був за рахунок іконки, тепер власний */
    border-top: 1px solid #e4e7ed; /* розділювач між фото і текстом */
}
.industry-card__body strong {
    color: #172236;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 900;
    /* базово резерв під 2 рядки — цього достатньо на 3-колонковій розкладці й
       ширше, де назви максимум у 2 рядки */
    min-height: 39px;
}
/* лише 6 в ряд (>=1440) картки вузькі й довгі назви йдуть у 3 рядки — тоді
   резервуємо третій рядок, щоб опис не стрибав; на вужчих екранах зайвий
   відступ прибрано */
@media (min-width: 1440px) {
    .industry-card__body strong {
        min-height: 59px;
    }
}
.industry-card__body small {
    color: #4f5c6d;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 600;
    min-height: 40px; /* two-line text zone, keeps card bottoms even */
    text-wrap: balance;
}
.home-benefits {
    padding: 18px 20px 34px;
}
.home-benefits__panel {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 124px;
    align-items: center;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef1f5 100%);
    box-shadow: inset 0 0 0 1px #e4e9ef;
}
.home-benefits__item {
    position: relative;
    display: flex;
    min-height: 78px;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    color: #526071;
}
.home-benefits__item + .home-benefits__item::before {
    content: "";
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 0;
    width: 1px;
    background: rgba(82, 96, 113, 0.16);
}
.home-benefits__icon {
    display: flex;
    flex: 0 0 auto;
    color: #526071;
}
.home-benefits__text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}
.home-benefits__text strong {
    color: #172236;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 900;
    white-space: nowrap; /* titles are curated to stay short: one line always */
}
.home-benefits__text small {
    color: #263247;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
    text-wrap: balance; /* when the text wraps, split lines evenly */
}
/* narrow 5-column range: keep the one-line titles from touching the dividers */
@media (max-width: 1366px) {
    .home-benefits__text strong { font-size: 14px; }
    .home-benefits__text small { font-size: 12.5px; }
}
/* нижче ~1100px п'ять переваг з nowrap-заголовками не влазять у ряд і
   обрізаються — переходимо на охайну 2-колонкову сітку з рамками (той самий
   вигляд, що раніше вмикався на <=900) */
@media (max-width: 1100px) {
    .home-benefits__panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-benefits__item + .home-benefits__item::before {
        display: none;
    }
    .home-benefits__item {
        border-top: 1px solid rgba(82, 96, 113, 0.14);
    }
    .home-benefits__item:nth-child(-n+2) {
        border-top: 0;
    }
    .home-benefits__item:nth-child(odd) {
        border-right: 1px solid rgba(82, 96, 113, 0.14);
    }
    .home-benefits__item:last-child {
        grid-column: 1 / -1;
        border-right: 0;
    }
}

.home-faq-cta {
    padding: 8px 20px 0;
}
.home-faq-cta__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
    gap: 50px;
    align-items: stretch;
    padding: 10px 0 34px;
}
.home-faq h2,
.home-choice-card h2,
.home-contact-band__copy h2 {
    margin: 0;
    color: #172236;
}
.home-faq h2 {
    margin-bottom: 18px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 900;
}
.home-faq__list {
    display: grid;
    gap: 8px;
}
.home-faq__item {
    overflow: hidden;
    border-radius: 5px;
    background: #fff;
    box-shadow: inset 0 0 0 1px #dfe4eb;
}
.home-faq__item summary {
    display: flex;
    min-height: 38px;
    cursor: pointer;
    list-style: none;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 16px;
    color: #263247;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 800;
}
.home-faq__item summary::-webkit-details-marker {
    display: none;
}
.home-faq__item summary b {
    color: #526071;
    font-size: 22px;
    line-height: 1;
    font-weight: 500;
}
.home-faq__item[open] summary b {
    transform: rotate(45deg);
}
.home-faq__item p {
    margin: 0;
    padding: 0 16px 14px;
    color: #4f5c6d;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 500;
}
/* FAQ на мобільному: 13px замалі — збільшуємо текст і тап-зону */
@media (max-width: 900px) {
    .home-faq__item summary {
        min-height: 54px;
        padding: 12px 16px;
        font-size: 15px;
        line-height: 1.4;
    }
    .home-faq__item summary b { font-size: 24px; }
    .home-faq__item p {
        padding: 0 16px 16px;
        font-size: 14.5px;
    }
}
.home-choice-card {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    min-height: 168px;
    padding: 28px 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef1f5 100%);
    box-shadow: inset 0 0 0 1px #e4e9ef;
}
.home-choice-card__icon {
    display: inline-flex;
    width: 104px;
    height: 104px;
    align-items: center;
    justify-content: center;
    color: #172236;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 0 0 1px rgba(82, 96, 113, 0.18);
}
.home-choice-card h2 {
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.22;
    font-weight: 900;
}
.home-choice-card p {
    max-width: 460px;
    margin: 0 0 18px;
    color: #263247;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 600;
}
.home-choice-card .btn {
    min-width: 214px;
    height: 46px;
    justify-content: center;
    border-radius: 5px;
    font-size: 13px;
}
.home-contact-band {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(680px, 1.28fr);
    gap: 28px;
    align-items: center;
    min-height: 174px;
    margin: 0;
    padding: 32px 40px;
    overflow: hidden;
    /* soft light background, no photo */
    background: linear-gradient(135deg, #f8fafc 0%, #eef1f5 100%);
    box-shadow: inset 0 0 0 1px #e4e9ef;
}
.home-contact-band__copy {
    position: relative;
    z-index: 1;
}
.home-contact-band__copy h2 {
    margin-bottom: 12px;
    color: #172236;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 900;
}
.home-contact-band__copy p {
    max-width: 520px;
    margin: 0;
    color: #526071;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 600;
}
.home-contact-band__panel {
    position: relative;
    z-index: 1;
    display: grid;
    /* proportional to content width: phone < email < address, so the e-mail
       never breaks mid-word at the max container width */
    grid-template-columns: 0.9fr 1fr 1.25fr;
    gap: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    box-shadow: inset 0 0 0 1px #e4e9ef, 0 10px 26px rgba(22, 32, 51, 0.07);
}
.home-contact-band__item {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-content: center;
    column-gap: 14px;
    row-gap: 5px;
    align-items: center;
    min-height: 86px;
    padding: 18px 20px;
    color: #526071;
}
.home-contact-band__item + .home-contact-band__item::before {
    content: "";
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 0;
    width: 1px;
    background: rgba(82, 96, 113, 0.16);
}
/* below 1366px the side-by-side band leaves the contact columns too narrow
   (the e-mail starts breaking mid-word), so stack copy above the panel early */
@media (max-width: 1366px) {
    .home-contact-band { grid-template-columns: 1fr; }
}
.home-contact-band__item span {
    grid-row: 1 / span 2;
    display: flex;
}
.home-contact-band__item strong {
    display: flex;
    align-items: center;
    /* fixed two-line title zone: the small captions below stay level across
       all three items even when one title wraps on narrower screens */
    min-height: 34px;
    overflow-wrap: anywhere;
    color: #172236;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 900;
}
.home-contact-band__item small {
    color: #526071;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
}

@media (max-width: 1200px) {
    .site-footer__inner {
        grid-template-columns: auto 1fr auto;
        gap: 28px;
    }
    .site-footer__nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
    }
    .home-hero__content {
        width: min(720px, 62%);
        padding: 70px 56px 54px;
    }
    .home-hero__content h1,
    .home-hero__lede,
    .home-hero__actions,
    .home-hero__facts {
        width: 100%;
    }
    .home-hero__facts {
        margin: 58px 0 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 0;
    }
    .home-hero__fact {
        padding: 0 14px;
    }
    .home-product-categories__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: 224px 170px;
    }
    .home-category-card {
        padding: 24px 20px;
    }
    .home-category-card strong {
        font-size: 16px;
    }
    .home-benefits__item {
        gap: 14px;
        padding: 18px 18px;
    }
    .home-benefits__text strong {
        font-size: 14px;
    }
    .home-benefits__text small {
        font-size: 12px;
    }
    .home-faq-cta__top {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
        gap: 28px;
    }
    .home-choice-card {
        grid-template-columns: 92px minmax(0, 1fr);
        padding: 26px 28px;
    }
    .home-choice-card__icon {
        width: 86px;
        height: 86px;
    }
    .home-contact-band {
        grid-template-columns: 1fr;
        padding: 30px 44px;
    }
}

/* Планшет (<=1024): мозаїка «Каталог ниток» по 2 з відступами; FAQ і блок
   «Отримати консультацію» один під одним; футер по центру. */
@media (max-width: 1024px) {
    .home-product-categories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
        column-gap: 16px;
        row-gap: 16px;
    }
    .home-category-card--4,
    .home-category-card--6 {
        grid-column: auto;
        grid-row: auto;
    }
    .home-category-card {
        min-height: 190px;
    }
    /* Картки «Каталог за призначенням» — щільніше: без резерву рядків, менший
       паддінг, картки за висотою контенту (не тягнемо до висоти ряду), бо на
       широких 2/3-колонкових картках назви й описи в 1 рядок і зверху лишалось
       багато порожнього місця */
    .industry-card-grid {
        align-items: start;
    }
    .industry-card {
        min-height: 0;
    }
    .industry-card__body {
        padding: 14px 16px 16px;
    }
    .industry-card__body strong {
        min-height: 0;
    }
    .industry-card__body small {
        min-height: 0;
    }
    .home-faq-cta__top {
        grid-template-columns: 1fr;
    }
    .site-footer__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 18px;
        padding: 24px 28px;
    }
    .site-footer__nav {
        grid-column: auto;
        grid-row: auto;
        justify-content: center;
        flex-wrap: wrap;
        gap: 18px 30px;
    }
}

@media (max-width: 900px) {
    .site-footer__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 18px;
        padding: 24px 28px;
    }
    .site-footer__nav {
        grid-column: auto;
        grid-row: auto;
        justify-content: center;
        flex-wrap: wrap;
        gap: 18px 30px;
    }
    /* Мобільний hero: зображення фоном (cover) + контент поверх, як на десктопі
       (сам layout — у блоці «Home hero slider responsive overrides» нижче). */
    .home-hero__content,
    .home-hero__facts {
        width: auto;
    }
    .home-hero__facts {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 14px;
    }
    .home-hero__fact {
        padding: 0;
        border-left: 0;
    }
    /* колонки тепер задаються діапазонами вище (1024/768/425/375/320) */
    .industry-card {
        min-height: 246px;
    }
    .home-product-categories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }
    .home-category-card--4,
    .home-category-card--6 {
        grid-column: auto;
        grid-row: auto;
    }
    .home-category-card {
        min-height: 180px;
    }
    /* «Торгове обладнання» (card--6) — звичайна комірка 2-в-ряд, а не окремий
       блок на всю ширину (span прибрано на прохання) */
    /* .home-benefits__* тепер керується власним @media (max-width: 1100px) вище */
    .home-faq-cta__top {
        grid-template-columns: 1fr;
    }
    .home-choice-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }
    .home-contact-band__panel {
        grid-template-columns: 1fr;
    }
    .home-contact-band__item + .home-contact-band__item::before {
        display: none;
    }
    .home-contact-band__item {
        border-top: 1px solid rgba(82, 96, 113, 0.14);
    }
    .home-contact-band__item:first-child {
        border-top: 0;
    }
}

@media (max-width: 640px) {
    .site-footer {
        width: calc(100% - 40px);
    }
    .site-footer__inner {
        padding: 24px 20px;
    }
    .site-footer__nav {
        flex-direction: column;
        gap: 14px;
    }
    .home-hero__panel {
        border-radius: 18px;
        margin: 0;
    }
    .home-hero__actions .btn {
        /* column flex-container: flex-basis is the *height* axis here, so a
           %-basis would swallow the explicit height — keep flex:none */
        flex: none;
        min-width: 0;
        width: 100%;
        height: 54px;
        font-size: 15.5px;
        white-space: normal;
    }
    .home-hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        flex-wrap: wrap;
    }
    .home-hero__facts {
        grid-template-columns: 1fr;
    }
    .home-section__head {
        align-items: flex-start;
        flex-direction: column;
    }
    .home-industries .home-section__head {
        align-items: center;
        text-align: center;
    }
    .home-product-categories {
        padding-left: 20px;
        padding-right: 20px;
    }
    .home-product-categories__grid {
        grid-template-columns: 1fr;
    }
    .home-product-categories__head {
        margin-bottom: 24px;
    }
    .home-product-categories__head h2 {
        font-size: 24px;
    }
    .home-product-categories__head h2::after {
        width: 38px;
    }
    .home-product-categories__head p {
        font-size: 14px;
    }
    .home-category-card,
    .home-category-card--6 {
        grid-column: auto;
    }
    .home-category-card__content,
    .home-category-card--6 .home-category-card__content {
        max-width: 62%;
    }
    .home-benefits {
        padding-left: 20px;
        padding-right: 20px;
    }
    .home-benefits__panel {
        grid-template-columns: 1fr;
    }
    .home-benefits__item,
    .home-benefits__item:nth-child(odd),
    .home-benefits__item:last-child {
        grid-column: auto;
        border-right: 0;
    }
    .home-benefits__item {
        padding: 18px 20px;
    }
    .home-benefits__item:nth-child(-n+2) {
        border-top: 1px solid rgba(82, 96, 113, 0.14);
    }
    .home-benefits__item:first-child {
        border-top: 0;
    }
    .home-faq-cta {
        padding-left: 20px;
        padding-right: 20px;
    }
    .home-faq-cta__top {
        gap: 22px;
        padding-bottom: 28px;
    }
    /* на телефоні блоки стають у стовпчик — центруємо текст, іконку й кнопку */
    .home-choice-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px 22px;
        text-align: center;
    }
    .home-choice-card__icon {
        justify-self: center;
        justify-content: center;
        width: 78px;
        height: 78px;
    }
    .home-choice-card p {
        margin-left: auto;
        margin-right: auto;
    }
    .home-choice-card h2,
    .home-contact-band__copy h2 {
        font-size: 22px;
    }
    .home-contact-band__copy {
        text-align: center;
    }
    .home-contact-band {
        margin: 0;
        padding: 28px 20px;
    }
    .home-contact-band__panel {
        border-radius: 5px;
    }
    .home-contact-band__item {
        padding: 16px;
    }
}

/* ---------- Product grid & card ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 22px;
    margin: 24px 0 40px;
}
/* «Схожі товари» на сторінці товару */
.product-related {
    margin: 44px 0 8px;
    padding-top: 32px;
    border-top: 1px solid var(--panel-line);
}
.product-related__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    color: var(--ink);
}
/* успадковує auto-fill(210px) від .product-grid — картки як у каталозі,
   не розтягуються на всю ширину сторінки товару */
.product-related__grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    margin: 20px 0 10px;
}
.product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px #e4e7ed;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover {
    box-shadow: inset 0 0 0 1px #cfd5df, 0 10px 24px rgba(22, 32, 51, 0.08);
    transform: translateY(-2px);
}
.product-card__media { display: block; background: var(--color-surface); aspect-ratio: 1/1; overflow: hidden; }
.product-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-card__img { transform: scale(1.03); }
.product-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product-card__brand { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #7f6264; }
.product-card__title { font-size: 14px; margin: 0; line-height: 1.35; }
.product-card__title a { color: #172236; font-weight: 700; }
.product-card__title a:hover { color: var(--color-primary); }
.product-card__cta {
    margin-top: auto;
    padding-top: 10px;
    align-self: stretch;
    justify-content: center;
    font-size: 13px;
    padding-right: 16px;
    padding-bottom: 10px;
    padding-left: 16px;
    border-radius: 8px;
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.product-card__cta:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ==========================================================================
   Shop layout (category archive) — styled to match the home page:
   graphite/navy accents, clean cards with inset borders,
   subtle lift on hover.
   ========================================================================== */
:root {
    --ink: #172236;
    --ink-2: var(--color-primary);
    --ink-muted: #526071;
    --panel: var(--color-surface);
    --panel-line: #e4e7ed;
    --panel-line-strong: #cfd5df;
    --accent-line: #9b7b7d;
}

.shop-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 40px;
    margin: 24px 0 70px;
    align-items: start;
}
.shop-layout--catalog { margin-top: 18px; }

/* ---- sidebar as a clean card, like the home industry cards ---- */
.shop-sidebar {
    min-width: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px var(--panel-line);
    padding: 8px 22px 22px;
    position: sticky;
    top: 108px;
}
.shop-filters-toggle { display: none; }
.filter-block { padding: 18px 0; border-bottom: 1px solid var(--panel-line); }
.filter-block:last-child { border-bottom: 0; }
.filter-block__title {
    margin: 0 0 14px;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.filter-block__title.is-collapsible { cursor: pointer; }
.filter-block__title.is-collapsible::after {
    content: "";
    width: 7px; height: 7px;
    border-right: 1.5px solid var(--ink-muted);
    border-bottom: 1.5px solid var(--ink-muted);
    transform: rotate(-135deg);
    transition: transform .15s ease;
}
.filter-block__title.is-collapsible.is-collapsed::after { transform: rotate(45deg); }

/* ---- category tree ---- */
.cat-tree, .cat-tree__sub { list-style: none; margin: 0; padding: 0; }
.cat-tree__item { position: relative; }
.cat-tree__link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 26px 7px 0;
    font-size: 13px;
    color: #33404f;
    line-height: 1.35;
}
.cat-tree__link:hover { color: var(--ink-2); }
.cat-tree__check {
    flex: 0 0 auto;
    width: 16px; height: 16px;
    margin-top: 1px;
    border: 1.5px solid #c7cdd6;
    border-radius: 4px;
    background: #fff;
    transition: background .12s ease, border-color .12s ease;
}
.cat-tree__link:hover .cat-tree__check { border-color: var(--ink-2); }
.cat-tree__link.is-current .cat-tree__name { font-weight: 700; color: var(--ink); }
.cat-tree__link.is-current .cat-tree__check {
    background: var(--ink-2);
    border-color: var(--ink-2);
    position: relative;
}
.cat-tree__link.is-current .cat-tree__check::after {
    content: "";
    position: absolute;
    left: 5px; top: 2px;
    width: 4px; height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.cat-tree__toggle {
    position: absolute;
    top: 6px; right: 0;
    width: 24px; height: 24px;
    background: none; border: 0; cursor: pointer;
}
.cat-tree__toggle::after {
    content: "";
    position: absolute;
    top: 8px; left: 8px;
    width: 6px; height: 6px;
    border-right: 1.5px solid #8b94a1;
    border-bottom: 1.5px solid #8b94a1;
    transform: rotate(-45deg);
    transition: transform .15s ease;
}
.cat-tree__item.is-open > .cat-tree__toggle::after { transform: rotate(45deg); }
.cat-tree__sub {
    display: none;
    position: relative;
    padding-left: 34px;
    margin-top: 2px;
    border-left: 0;
}
.cat-tree__sub::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--panel-line);
}
.cat-tree__item.is-open > .cat-tree__sub { display: block; }
.cat-tree__sub .cat-tree__link { font-size: 12.5px; padding-top: 5px; padding-bottom: 5px; }
.cat-tree__checkbox {
    width: 100%;
    padding-right: 28px;
}
.cat-tree__sub .cat-tree__checkbox {
    font-size: 13px;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* ---- attribute filters ---- */
.filter-list { list-style: none; margin: 0; padding: 0; }
.filter-block__title.is-collapsed + .filter-list { display: none; }
.filter-option {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    column-gap: 11px;
    align-items: start;
    padding: 6px 0;
    font-size: 14px;
    color: #33404f;
    line-height: 20px;
    cursor: pointer;
}
.filter-option__input {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    appearance: none;
    -webkit-appearance: none;
    display: block;
    border: 1.5px solid #c7cdd6;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease;
}
.filter-option__input:hover,
.filter-option:hover .filter-option__input { border-color: var(--ink-2); }
.filter-option__input:checked {
    border-color: var(--ink-2);
    background-color: var(--ink-2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l2.4 2.4L9 1' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
.filter-option__input:focus-visible {
    outline: 2px solid var(--ink-2);
    outline-offset: 2px;
}
.filter-option__label {
    min-width: 0;
    color: #33404f;
}
.filter-option__link:hover,
.filter-option:hover .filter-option__label { color: var(--ink-2); }

/* navigation variant (no checkbox) — used for the "current taxonomy" list on
   category / purpose archives */
.filter-option--nav {
    display: block;
    padding: 6px 0;
    font-size: 14px;
    line-height: 20px;
    color: #33404f;
}
.filter-option--nav:hover { color: var(--ink-2); }
.filter-option--nav:hover .filter-option__label { color: var(--ink-2); }
.filter-option--nav.is-current .filter-option__label { font-weight: 700; color: var(--ink); }

/* .filter-checkbox (стара розмітка фільтрів) видалено 2026-08-06 — жоден
   шаблон її більше не виводить, актуальна розмітка — .filter-option. */
.filter-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-2);
}
.filter-reset::before { content: "×"; font-size: 16px; line-height: 1; }
.filter-reset:hover { color: var(--color-primary-hover); }
.filter-apply { margin-top: 14px; }

/* ---- shop main: header, toolbar, grid ---- */
.shop-main { min-width: 0; }
.shop-main .page-hero { padding: 0 0 6px; }
.shop-main .page-hero h1 {
    margin: 0;
    color: var(--ink);
    font-size: 30px;
    line-height: 1.15;
    font-weight: 900;
}
.catalog-page-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
}
.shop-result-count {
    margin: 0 0 3px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-muted);
}
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px var(--panel-line);
    margin: 8px 0 24px;
}
.shop-view { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-muted); }
.shop-view__label { margin-right: 2px; }
.shop-view__btn {
    width: 30px; height: 30px;
    border: 1px solid var(--panel-line);
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #33404f;
    transition: all .12s ease;
}
.shop-view__btn:hover { border-color: var(--panel-line-strong); }
.shop-view__btn.is-active { background: var(--ink-2); color: #fff; border-color: var(--ink-2); }
.shop-sort { font-size: 13px; color: var(--ink-muted); }
.shop-sort label { display: flex; align-items: center; gap: 8px; }
.shop-sort__label { font-weight: 700; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }
.shop-sort select {
    padding: 8px 30px 8px 12px;
    border: 1px solid var(--panel-line);
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23526071' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    -webkit-appearance: none; appearance: none;
    cursor: pointer;
}
.shop-sort select:hover { border-color: var(--panel-line-strong); }
.shop-grid { gap: 20px; margin-bottom: 34px; }
.shop-grid[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-grid[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shop-grid[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shop-grid[data-cols="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* pagination (shared, graphite style) */
.shop-main .page-numbers,
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px; height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px var(--panel-line);
    font-size: 14px; font-weight: 700;
    color: var(--ink);
    margin: 0 3px;
}
.shop-main .page-numbers { background: #fff; }
.shop-main .page-numbers:hover { box-shadow: inset 0 0 0 1px var(--panel-line-strong); }
.shop-main .page-numbers.current { background: var(--ink-2); color: #fff; box-shadow: none; }
.shop-main nav.pagination,
.shop-main .nav-links { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.shop-empty {
    padding: 24px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--panel-line);
    border-radius: 10px;
    color: #33404f;
}
.shop-empty p { margin: 0; }

@media (max-width: 900px) {
    .shop-layout { grid-template-columns: 1fr; gap: 20px; }
    .shop-sidebar { position: static; padding: 0; box-shadow: none; }
    .shop-grid[data-cols] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shop-view { display: none; }
    .catalog-page-hero { align-items: flex-start; flex-direction: column; }

    /* Filters collapse behind a single toggle so the products are visible
       first; the panel opens on tap (and starts open when filters are active). */
    .shop-filters-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        padding: 14px 18px;
        background: #fff;
        border: 1px solid var(--panel-line);
        border-radius: 10px;
        cursor: pointer;
        font: inherit;
        font-size: 14px;
        font-weight: 800;
        letter-spacing: .03em;
        text-transform: uppercase;
        color: var(--ink);
    }
    .shop-filters-toggle__count {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 20px;
        height: 20px;
        margin-left: 8px;
        padding: 0 6px;
        border-radius: 999px;
        background: var(--ink-2);
        color: #fff;
        font-size: 12px;
        font-weight: 700;
    }
    .shop-filters-toggle__chevron {
        flex: none;
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--ink-muted);
        border-bottom: 2px solid var(--ink-muted);
        transform: rotate(45deg);
        transition: transform .2s ease;
    }
    .shop-sidebar.is-open .shop-filters-toggle__chevron { transform: rotate(-135deg); }
    .shop-sidebar .filter-form { display: none; }
    .shop-sidebar.is-open .filter-form {
        display: block;
        margin-top: 10px;
        padding: 4px 20px 18px;
        background: #fff;
        border: 1px solid var(--panel-line);
        border-radius: 10px;
    }
}
@media (max-width: 520px) {
    .shop-grid[data-cols] { grid-template-columns: 1fr; }
}

/* ---------- Term (category / purpose) description block ---------- */
.term-description {
    width: 100%;
    max-width: 980px;
    margin: 0 0 10px;
    color: #33404f;
    font-size: 15px;
    line-height: 1.75;
}
.term-description p { margin: 0 0 12px; text-align: justify; hyphens: auto; }
.term-description li { text-align: justify; hyphens: auto; }
.term-description p:last-child { margin-bottom: 0; }
.term-description ul,
.term-description ol { margin: 0 0 14px; padding-left: 22px; }
.term-description ul { list-style: disc; }
.term-description ol { list-style: decimal; }
.term-description li { margin-bottom: 6px; }
.term-description strong, .term-description b { color: var(--ink); font-weight: 700; }
.term-description h2, .term-description h3, .term-description h4 { margin: 20px 0 10px; font-size: 17px; color: var(--ink); }
.term-description h3 a { display: inline-flex; align-items: center; gap: 8px; }
.term-description a {
    color: var(--ink-2);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}
.term-description a:hover { color: var(--color-primary-hover); }

/* ---------- Category / purpose link columns (Catalog landing, Purpose landing) ---------- */
.term-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}
.term-group__title { font-size: 17px; margin-bottom: 10px; }
.term-group__title a { color: var(--color-primary); }
.term-group__list li { margin-bottom: 6px; }
.term-group__list a { font-size: 14px; color: var(--text); }
.term-group__list a:hover { color: var(--color-primary-soft); }

.purpose-columns {
    columns: 2;
    column-gap: 40px;
    margin: 20px 0 40px;
}
.purpose-columns li { break-inside: avoid; margin-bottom: 10px; }
.purpose-columns a { font-size: 15px; }

.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ---------- Каталог: two-panel category browser (left sidebar + right content) ---------- */
/* catalog-browser bones (used only inside the header mega-menu) */
.catalog-browser__panel { display: none; }
.catalog-browser__panel.is-active { display: block; }
.catalog-browser__list { columns: 1; list-style: none; margin: 0; padding: 0; }
.catalog-browser__list li { break-inside: avoid; }
.catalog-browser__list a {
    display: block;
    padding: 7px 10px;
    margin: 0 -10px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    color: #33404f;
    transition: background .12s ease, color .12s ease;
}
.catalog-browser__list a:hover { background: #f4f6f9; color: var(--ink-2); }

/* ---------- Single product ---------- */
/* align-items: flex-start — інакше колонка з фото розтягується під висоту правої
   колонки, aspect-ratio нижче ігнорується і заглушка роздувається на пів екрана. */
.product-single { display: flex; align-items: flex-start; gap: 40px; flex-wrap: wrap; margin: 20px 0 30px; }
.product-single__media {
    flex: 0 1 calc(40% - 20px);
    max-width: none;
    min-width: 320px;
}
.product-single__stage { position: relative; }
.product-single__main-image {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #fff;
}
/* стрілки перемикання фото — показуються лише коли фото декілька */
.product-single__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #172236;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(22, 32, 51, 0.12);
    transition: background .15s ease, box-shadow .15s ease, color .15s ease;
}
.product-single__nav:hover { background: #fff; color: var(--color-primary); box-shadow: 0 6px 16px rgba(22, 32, 51, 0.18); }
.product-single__nav:focus-visible { outline: 2px solid var(--color-primary-soft); outline-offset: 2px; }
.product-single__nav--prev { left: 12px; }
.product-single__nav--prev svg { transform: scaleX(-1); }
.product-single__nav--next { right: 12px; }
@media (max-width: 640px) {
    .product-single__nav { width: 36px; height: 36px; }
}
.product-single__main-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-single__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding: 0 0 8px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.product-single__thumbs::-webkit-scrollbar {
    height: 7px;
}
.product-single__thumbs::-webkit-scrollbar-track {
    background: transparent;
}
.product-single__thumbs::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--border);
}
.product-single__thumb {
    display: block;
    flex: 0 0 calc((100% - 30px) / 4);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    scroll-snap-align: start;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.product-single__thumb:hover,
.product-single__thumb:focus-visible {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(22, 32, 51, 0.10);
}
.product-single__thumb.is-active {
    border-color: var(--color-primary);
    box-shadow: inset 0 0 0 1px var(--color-primary);
}
.product-single__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-single__info { flex: 1 1 calc(60% - 20px); min-width: 0; }
.product-single__title { font-size: 28px; line-height: 1.25; margin-bottom: 14px; color: var(--ink); }
/* мітки тягнуться до правого краю колонки: інакше кожен ряд обривається
   по-своєму й праворуч лишається рвана порожнеча */
.product-single__terms { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.product-single__terms .badge {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
    /* стеля, щоб самотня мітка в останньому ряду не розтягнулась на всю ширину.
       500px, а не відсоток: найдовша мітка займає 413px, тож стеля ніколи не
       змусить текст переноситись, і на вузьких екранах вона просто не діє. */
    max-width: 500px;
}
.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
/* Category and purpose badges are informational only — same neutral look, no
   filled accent that would read as the primary action on the page. */
.badge--purpose { background: #fff; color: #33404f; box-shadow: inset 0 0 0 1px var(--panel-line-strong); }
.badge--purpose:hover { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--ink-2); }
/* Характеристики лишаються в правій колонці, під кнопкою.
   Призначення й Опис — окремим блоком на всю ширину під фото та назвою. */
.product-single__details {
    width: 100%;
    margin: 0 0 60px;
    padding-top: 26px;
    border-top: 1px solid var(--panel-line);
    display: flex;
    flex-direction: column;
    gap: 34px;
}
.product-single__block {
    width: 100%;
    max-width: none;
}
/* Підзаголовки — звичайний регістр, з великої літери; усі три однакові. */
.product-single__subtitle {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ink);
}
.product-single__purpose,
.product-single__desc {
    color: #33404f;
    font-size: 15px;
    line-height: 1.75;
}
.product-single__purpose p:last-child { margin-bottom: 0; }
/* таблиця стоїть останньою в правій колонці — власний нижній відступ їй не потрібен */
.char-table { margin-bottom: 0; }
.product-single__info .product-single__subtitle { margin-top: 30px; }
.product-single__desc p { margin: 0 0 12px; }
.product-single__desc p:last-child { margin-bottom: 0; }
.product-single__desc ul,
.product-single__desc ol { margin: 0 0 14px; padding-left: 22px; }
.product-single__desc ul { list-style: disc; }
.product-single__desc ol { list-style: decimal; }
.product-single__desc li { margin-bottom: 6px; }
.product-single__desc strong, .product-single__desc b { color: var(--ink); }
.product-single__desc a {
    color: var(--ink-2);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}
.product-single__desc a:hover { color: var(--color-primary-hover); }
.char-table { width: 100%; border-collapse: collapse; margin-bottom: 26px; }
.char-table th, .char-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--panel-line); font-size: 14px; }
.char-table th { width: 40%; color: var(--ink-muted); font-weight: 600; }
.char-table td { color: var(--ink); }
/* значення-посилання ведуть на фільтр каталогу — підкреслюємо стримано */
.char-table td a { color: inherit; text-decoration: underline; text-decoration-color: var(--panel-line); text-underline-offset: 3px; }
.char-table td a:hover { text-decoration-color: currentColor; }
/* фасування тієї самої нитки: перехід між сусідніми картками */
.char-variant {
    display: inline-block;
    margin: 2px 6px 2px 0;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 13px;
    white-space: nowrap;
}
.char-table td a.char-variant {
    text-decoration: none;
    box-shadow: inset 0 0 0 1px var(--panel-line-strong);
}
.char-table td a.char-variant:hover { box-shadow: inset 0 0 0 1px var(--ink-2); color: var(--ink); }
/* поточна картка — без заливки кольором: просто щільніший контур і напівжирний */
.char-variant--current {
    box-shadow: inset 0 0 0 1px var(--ink-2);
    background: var(--color-surface-soft);
    font-weight: 600;
}
.char-table tbody tr:nth-child(odd) { background: var(--color-surface-soft); }
.char-table tbody tr:last-child th,
.char-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) {
    .product-single__media,
    .product-single__info {
        flex-basis: 100%;
        min-width: 0;
    }
}

/* ---------- Contacts page (pixel-close to reference mockup) ---------- */
.contacts-hero { margin: 20px 0 32px; padding: 60px 56px; overflow: hidden; }
.contacts-hero--photo {
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
    min-height: 720px;
    display: flex;
    align-items: center;
}
.contacts-hero__text { max-width: 480px; }
.contacts-hero__text h1 { font-size: 40px; line-height: 1.15; margin-bottom: 16px; }
.contacts-hero__text .lede { color: var(--text-muted); font-size: 16px; line-height: 1.65; margin-bottom: 30px; }
.contacts-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.contacts-hero--photo .btn--outline { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(2px); }

@media (max-width: 768px) {
    .contacts-hero { padding: 28px 24px; }
    .contacts-hero--photo {
        background-image: none !important;
        background-color: var(--color-surface);
        min-height: 0;
    }
    .contacts-hero__text { max-width: none; }
    /* кнопки однакові — на всю ширину, в стовпчик (як на «Про нас») */
    .contacts-hero__actions { flex-direction: column; align-items: stretch; gap: 12px; }
    .contacts-hero__actions .btn {
        width: 100%;
        height: 52px;
        justify-content: center;
        font-size: 15px;
    }
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin: 30px 0;
}
.info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.info-card__icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--color-panel);
    color: var(--color-primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
    font-size: 18px;
}
.info-card h3 { font-size: 15px; margin-bottom: 8px; }
.info-card p { font-size: 14px; color: var(--text-muted); margin: 0; }
.info-card a { color: var(--text); }

.contacts-columns { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; margin: 30px 0 50px; }
@media (max-width: 860px) { .contacts-columns { grid-template-columns: 1fr; } }

.contact-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}
.contact-panel h3 { font-size: 20px; margin-bottom: 4px; }
.contact-panel .lede { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

.cta-panel {
    background: var(--color-primary);
    color: var(--white);
    border-radius: var(--radius);
    padding: 28px;
}
.cta-panel h3 { color: var(--white); font-size: 20px; margin-bottom: 8px; }
.cta-panel p { color: var(--color-panel); font-size: 14px; }
.cta-panel__links { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.cta-panel__links a { color: var(--white); font-weight: 600; display: flex; align-items: center; gap: 10px; }
.cta-panel__media { margin-top: 20px; border-radius: 6px; overflow: hidden; }
.cta-panel__media img { aspect-ratio: 16 / 9; object-fit: cover; object-position: center; width: 100%; height: auto; }

.map-address-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    margin: 20px 0;
}
.map-address-card p { margin: 0 0 6px; font-size: 14px; color: var(--text-muted); }
.map-address-card p:first-child { color: var(--text); font-size: 16px; }
.map-embed { margin: 0 0 60px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- Inquiry form (used inline on Contacts + inside modal) ---------- */
.inquiry-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .inquiry-form__grid { grid-template-columns: 1fr; } }
/* modal is narrow: name/email stack in one column there */
.luts-modal .inquiry-form__grid { grid-template-columns: 1fr; gap: 0; }
.luts-modal .inquiry-form__grid .inquiry-form__row { margin-bottom: 14px; }
.inquiry-form__row { margin-bottom: 14px; }
.inquiry-form__row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.inquiry-form__row input,
.inquiry-form__row textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    background: var(--color-surface-soft);
}
.inquiry-form__row input:focus,
.inquiry-form__row textarea:focus { outline: 2px solid var(--color-primary-soft); background: var(--white); }
.inquiry-form__hp { position: absolute; left: -9999px; }
.inquiry-form__submit { width: 100%; justify-content: center; }
.inquiry-form__status { margin-top: 12px; font-size: 13px; }
.inquiry-form__status:empty { display: none; } /* no dead space under the button until there is a message */
.inquiry-form__status--ok { color: var(--color-primary); }
.inquiry-form__status--error { color: #b3261e; }

/* ---------- Modal ---------- */
.luts-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.luts-modal[hidden] { display: none; }
.luts-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 18, 28, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: luts-fade-in .2s ease;
}
.luts-modal__panel {
    position: relative;
    background: var(--white);
    border: 1px solid #e4e9ef;
    border-radius: 10px;
    padding: 30px;
    max-width: 460px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 24px 64px rgba(13, 18, 28, 0.28);
    animation: luts-pop-in .22s ease;
}
.luts-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--color-surface-soft);
    border: 1px solid #e4e9ef;
    border-radius: 8px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #526071;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.luts-modal__close:hover { background: #fff; border-color: #cfd5df; color: #172236; }
.luts-modal__title { font-size: 20px; font-weight: 800; color: #172236; margin-bottom: 4px; padding-right: 40px; }
.luts-modal__product { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
body.luts-modal-open { overflow: hidden; }
@keyframes luts-fade-in { from { opacity: 0; } }
@keyframes luts-pop-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---------- Image lightbox (booklets and other content image links) ---------- */
.luts-lightbox { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 24px; }
.luts-lightbox[hidden] { display: none; }
.luts-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 18, 28, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: luts-fade-in .2s ease;
}
.luts-lightbox__panel {
    position: relative;
    margin: 0;
    max-width: min(1000px, 100%);
    animation: luts-pop-in .22s ease;
}
.luts-lightbox__panel img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 96px);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.luts-lightbox__close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #e4e9ef;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #172236;
    box-shadow: 0 4px 14px rgba(13, 18, 28, 0.25);
    transition: background .15s ease, transform .15s ease;
}
.luts-lightbox__close:hover { background: #fff; transform: scale(1.06); }
.luts-lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid rgba(228, 233, 239, .9);
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #172236;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(13, 18, 28, .28);
}
.luts-lightbox__nav--prev { left: 12px; }
.luts-lightbox__nav--next { right: 12px; }
.luts-lightbox__nav:hover { background: #fff; }
.luts-lightbox__nav[hidden],
.luts-lightbox__counter[hidden] { display: none; }
.luts-lightbox__counter {
    position: absolute;
    left: 50%;
    bottom: 12px;
    z-index: 2;
    transform: translateX(-50%);
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(13, 18, 28, .72);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}
@media (max-width: 640px) {
    .luts-lightbox { padding: 12px; }
    .luts-lightbox__nav { width: 42px; height: 42px; }
    .luts-lightbox__nav--prev { left: 6px; }
    .luts-lightbox__nav--next { right: 6px; }
}

/* ---------- Downloads page ---------- */
.downloads-page {
    padding-bottom: 72px;
}
.downloads-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 34px;
    align-items: stretch;
    margin: 10px 0 28px;
    padding: 48px 54px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef1f5 100%);
    box-shadow: inset 0 0 0 1px var(--panel-line);
}
.downloads-hero__content {
    max-width: 780px;
}
.downloads-hero__eyebrow {
    display: inline-flex;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7f6264;
}
.downloads-hero h1 {
    margin: 0 0 18px;
    font-size: 44px;
    line-height: 1.14;
    color: var(--ink);
}
.downloads-hero p {
    max-width: 720px;
    margin: 0;
    color: #33404f;
    font-size: 16px;
    line-height: 1.75;
}
.downloads-hero__aside {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-self: center;
}
.downloads-hero__stat {
    padding: 20px 22px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--panel-line);
}
.downloads-hero__stat strong,
.downloads-hero__stat span {
    display: block;
}
.downloads-hero__stat strong {
    margin-bottom: 2px;
    font-size: 34px;
    line-height: 1;
    color: var(--ink);
}
.downloads-hero__stat span {
    color: var(--ink-muted);
    font-size: 13px;
    font-weight: 700;
}
.downloads-intro {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0 0 42px;
    background: var(--panel-line);
    box-shadow: inset 0 0 0 1px var(--panel-line);
}
.downloads-intro__item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 84px;
    padding: 20px 24px;
    background: #fff;
    color: #33404f;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
}
.downloads-intro__item svg {
    flex: 0 0 auto;
    color: var(--ink-2);
}
.downloads-library {
    margin-top: 0;
}
.downloads-library__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}
.downloads-library__head h2 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 30px;
    line-height: 1.2;
}
.downloads-library__head p {
    margin: 0;
    color: var(--ink-muted);
    font-size: 14px;
}
.downloads-library__contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}
.downloads-library__contact:hover {
    color: var(--color-primary-hover);
}
.downloads-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.downloads-filter__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid var(--panel-line);
    border-radius: 0;
    background: #fff;
    color: #33404f;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.downloads-filter__button:hover {
    border-color: var(--panel-line-strong);
    color: var(--ink);
}
.downloads-filter__button.is-active {
    background: var(--ink-2);
    border-color: var(--ink-2);
    color: #fff;
}
/* На мобільному кнопки різної ширини давали рваний край — вирівнюємо в сітку
   з однаковими колонками. */
@media (max-width: 640px) {
    .downloads-filter {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .downloads-filter__button {
        width: 100%;
        padding: 10px 12px;
    }
}
.downloads-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
}
.download-card {
    display: flex;
    gap: 16px;
    min-height: 218px;
    padding: 22px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--panel-line);
    transition: box-shadow .18s ease, transform .18s ease;
}
.download-card:hover {
    box-shadow: inset 0 0 0 1px var(--panel-line-strong), 0 12px 28px rgba(22, 32, 51, 0.08);
    transform: translateY(-2px);
}
.download-card[hidden] {
    display: none;
}
.download-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px var(--panel-line);
    color: var(--ink-2);
}
.download-card__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.download-card__category {
    margin-bottom: 8px;
    color: #7f6264;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .06em;
    line-height: 1.2;
    text-transform: uppercase;
}
.download-card h3 {
    margin: 0 0 9px;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.35;
}
.download-card p {
    margin: 0 0 18px;
    color: #526071;
    font-size: 13.5px;
    line-height: 1.6;
}
.download-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--panel-line);
}
.download-card__meta {
    color: var(--ink-muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.download-card__action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
}
.download-card__action:hover {
    color: var(--color-primary-hover);
}
.downloads-empty {
    margin: 18px 0 0;
    padding: 18px 20px;
    background: #fff;
    color: var(--ink-muted);
    box-shadow: inset 0 0 0 1px var(--panel-line);
    font-size: 14px;
}

@media (max-width: 1100px) {
    .downloads-hero {
        grid-template-columns: 1fr;
        padding: 38px 34px;
    }
    .downloads-hero__aside {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-self: stretch;
    }
    .downloads-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .downloads-page {
        padding-bottom: 52px;
    }
    .downloads-hero {
        padding: 30px 24px;
        margin-top: 4px;
    }
    .downloads-hero h1 {
        font-size: 34px;
    }
    .downloads-intro {
        grid-template-columns: 1fr;
    }
    .downloads-library__head {
        align-items: flex-start;
        flex-direction: column;
    }
    .downloads-library__contact {
        white-space: normal;
    }
    .downloads-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 520px) {
    .downloads-hero__aside {
        grid-template-columns: 1fr;
    }
    .download-card {
        flex-direction: column;
        min-height: 0;
    }
    .download-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ---------- Responsive nav ---------- */
@media (max-width: 1240px) {
    .site-header__inner { gap: 20px; }
    .site-nav ul { gap: 24px; }
    .site-nav > ul > li > a,
    .site-nav > ul > li > span { font-size: 14px; }
}
@media (max-width: 1100px) {
    .site-contact-bar__group--secondary { display: none; }
    .site-header__toggle { display: flex; }
    .site-header__inner {
        min-height: 74px;
        padding-left: 24px;
        padding-top: 12px;
        padding-bottom: 12px;
        border-radius: 0;
    }
    .site-header__aside { margin-left: auto; }
    .site-logo img { width: 90px; height: auto; }
    .site-nav {
        flex: none;
        position: fixed;
        top: 108px; left: 0; right: 0; bottom: 0;
        background: var(--white);
        transform: translateY(calc(-100% - 110px));
        transition: transform .2s ease;
        overflow-y: auto;
        padding: 10px 20px 40px;
        z-index: 39;
    }
    .site-nav.is-open { transform: translateY(0); }
    .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav > ul > li > a,
    .site-nav > ul > li > span { justify-content: space-between; padding: 14px 0; font-size: 15px; }
    /* тримаємо чеврон top-level пунктів у межах відступу (десктопний translate
       штовхав його вправо-вгору, аж до краю) */
    .site-nav > ul > .menu-item-has-children > a::after,
    .site-nav > ul > .menu-item-has-children > span::after,
    .site-nav > ul > .luts-mega-parent > a::after {
        transform: rotate(45deg);
        margin-right: 4px;
    }
    .site-nav .menu-item-has-children > ul {
        position: static;
        display: none;
        box-shadow: none;
        border: 0;
        padding-left: 14px;
        min-width: 0;
    }
    .site-nav .menu-item-has-children.is-open > ul { display: block; }

    /* Neutralise the desktop floating-panel positioning inside the burger menu.
       The open/hover/focus states carry a translate(-50%,0) that otherwise
       shoves the panel ~half its width off-screen (only the chevrons show). */
    .site-nav > ul > .luts-mega-parent > .mega-menu,
    .site-nav > ul > .luts-mega-parent > .purpose-dropdown,
    .site-nav > ul > .luts-mega-parent:hover > .mega-menu,
    .site-nav > ul > .luts-mega-parent.is-open > .mega-menu,
    .site-nav > ul > .luts-mega-parent:focus-within > .mega-menu,
    .site-nav > ul > .luts-mega-parent:hover > .purpose-dropdown,
    .site-nav > ul > .luts-mega-parent.is-open > .purpose-dropdown,
    .site-nav > ul > .luts-mega-parent:focus-within > .purpose-dropdown {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        display: none;
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: none;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        width: auto;
        max-width: none;
        min-width: 0;
        padding: 4px 0 8px 6px;
        columns: 1;
    }
    .site-nav > ul > .luts-mega-parent.is-open > .mega-menu,
    .site-nav > ul > .luts-mega-parent.is-open > .purpose-dropdown { display: block; }

    /* Burger menu uses a dedicated single-column accordion, not the desktop
       two-panel browser. */
    .catalog-browser--mega { display: none; }
    .mega-menu__mobile { display: block; }
    .mega-menu__footer { border-top: 0; background: transparent; padding: 10px 0 2px; text-align: left; }

    /* purpose dropdown flattens to a single-column list styled like the
       Каталог accordion (row dividers, same padding/size), not a grid */
    .purpose-dropdown__head,
    .purpose-dropdown__footer { display: none; }
    .purpose-dropdown__list {
        display: block; /* block ignores the .site-nav ul { gap:24px } rule */
        padding: 0;
    }
    .purpose-dropdown__list li { border-bottom: 1px solid var(--panel-line); }
    .purpose-dropdown__list li:last-child { border-bottom: 0; }
    .purpose-dropdown__list a {
        padding: 13px 2px;
        border-radius: 0;
        font-size: 15px;
        font-weight: 500;
        color: var(--ink);
    }
    .purpose-dropdown__list a:hover { background: transparent; color: var(--color-primary); }
}
@media (max-width: 560px) {
    .site-contact-bar__inner {
        min-height: 36px;
        padding-left: 14px;
        padding-right: 14px;
    }
    .site-contact-bar__group { gap: 14px; }
    .site-contact-bar__item { gap: 5px; font-size: 11.5px; }
    .site-nav { top: 110px; }
    .site-header__inner {
        gap: 12px;
        padding-left: 20px;
    }
}
@media (max-width: 400px) {
    .site-contact-bar__email span { display: none; }
    .site-contact-bar__email::after { content: "Email"; }
}

/* ---------- Home hero slider responsive overrides ---------- */
@media (max-width: 1200px) {
    .home-hero__content h2 {
        width: 100%;
    }
    .home-hero__content--legacy {
        width: min(720px, 62%);
        padding: 70px 56px 54px;
    }
}

@media (max-width: 900px) {
    /* Кожен слайд — власне фото на весь блок (cover), контент поверх нього.
       Фіксована висота => усі слайди однакові незалежно від обсягу тексту. */
    .home-hero__panel {
        min-height: 560px;
        background-image: none;
    }
    .home-hero__slide {
        position: absolute;
        background-position: center;
        background-size: cover;
        padding-top: 0;
    }
    .home-hero__slide:first-child {
        position: absolute;
    }
    .home-hero__slide.is-active {
        position: relative;
    }
    /* градієнт знизу — щоб світлий текст читався поверх будь-якого фото */
    .home-hero__slide::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(to top, rgba(10, 16, 26, 0.40) 4%, rgba(10, 16, 26, 0.10) 46%, rgba(10, 16, 26, 0) 78%);
        pointer-events: none;
    }
    .home-hero__slide::before {
        display: none; /* десктопні оверлеї не потрібні — на мобільному є спільний градієнт ::after */
    }
    .home-hero__content,
    .home-hero__content--legacy {
        position: relative;
        z-index: 2;
        width: 100%;
        min-height: 560px;
        justify-content: flex-end; /* контент притиснутий донизу, над градієнтом */
        padding: 30px 22px 60px;
        background: none;
        color: #fff;
    }
    .home-hero__content h1,
    .home-hero__content h2,
    .home-hero__content--legacy h2 {
        width: 100%;
        color: #fff;
        font-size: 34px;
        line-height: 1.16;
    }
    .home-hero__eyebrow,
    .home-hero__content--legacy .home-hero__eyebrow {
        color: rgba(255, 255, 255, 0.82);
    }
    .home-hero__lede,
    .home-hero__content--legacy .home-hero__lede {
        width: 100%;
        margin-top: 14px;
        color: rgba(255, 255, 255, 0.92);
    }
    /* факти (з 1994 / асортимент / підбір) — вторинний блок; на мобільному/
       планшеті ховаємо, інакше слайд 1 стає вищим за легатні (різна висота) */
    .home-hero__facts {
        display: none;
    }
    .home-hero__actions .btn--outline {
        color: #fff;
        border-color: rgba(255, 255, 255, 0.55);
        background: rgba(255, 255, 255, 0.08);
    }
    .home-hero__actions--legacy {
        width: min(200px, 100%);
    }
    .home-hero__slider-btn {
        top: 50%;
        right: 14px;
        transform: translateY(-50%);
        width: 42px;
        height: 42px;
    }
    .home-hero__dots {
        bottom: 16px;
    }
}

@media (max-width: 640px) {
    /* висоту (min-height: 560) успадковуємо з блоку <=900, щоб слайди лишались
       однаковими; тут лише зменшуємо шрифт заголовка й кнопку-стрілку */
    .home-hero__content,
    .home-hero__content--legacy {
        padding: 26px 20px 54px;
    }
    .home-hero__content h1,
    .home-hero__content h2,
    .home-hero__content--legacy h2 {
        font-size: 28px;
    }
    .home-hero__slider-btn {
        right: 12px;
        width: 40px;
        height: 40px;
    }
    /* легатна кнопка ("Замовити") на всю ширину, як кнопки слайда 1 —
       інакше вона лишається вузькою (контейнер обмежений ~200px) */
    .home-hero__actions--legacy {
        width: 100%;
    }
}

/* ---------- About page ---------- */
.about-hero {
    position: relative;
    margin: 20px 0 28px;
    padding: 60px 56px;
    overflow: hidden;
    /* same look as home hero slide 1: light photo, dark text, no dark overlay */
    background: url("../img/hero-home-luts-textile-nytky-cordem.webp") center / cover no-repeat;
    border: 1px solid rgba(28, 38, 52, 0.08);
}
.about-hero__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #526071;
}
.about-hero h1 {
    max-width: 640px;
    margin: 0 0 14px;
    color: #162033;
    font-size: 38px;
    line-height: 1.15;
}
.about-hero__lede {
    max-width: 600px;
    margin: 0 0 12px;
    color: #253047;
    font-size: 16.5px;
    line-height: 1.55;
    font-weight: 600;
}
.about-hero__text {
    max-width: 580px;
    margin: 0;
    color: #3d4a59;
    font-size: 14.5px;
    line-height: 1.6;
    font-weight: 500;
}
.about-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.btn--on-dark { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn--on-dark:hover { background: #fff; border-color: #fff; color: var(--color-primary); }

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef1f5 100%);
    box-shadow: inset 0 0 0 1px #e4e9ef;
}
.about-stat { position: relative; padding: 26px 30px; text-align: center; }
.about-stat + .about-stat::before {
    content: "";
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 0;
    width: 1px;
    background: rgba(82, 96, 113, 0.16);
}
.about-stat strong {
    display: block;
    margin-bottom: 4px;
    color: #172236;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 900;
}
.about-stat span { color: #526071; font-size: 13px; line-height: 1.35; font-weight: 600; }

.about-section { padding: 44px 0 8px; }
.about-section h2 { margin: 0 0 10px; color: #172236; font-size: 26px; text-align: center; }
.about-section__lede { max-width: 640px; margin: 0 auto 26px; color: var(--text-muted); font-size: 15px; text-align: center; }

.about-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.about-product {
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #e4e9ef;
    border-radius: 6px;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.about-product:hover { border-color: #cfd5df; box-shadow: 0 10px 24px rgba(22, 32, 51, 0.07); }
.about-product strong { display: block; margin-bottom: 6px; color: #172236; font-size: 15px; font-weight: 800; line-height: 1.3; }
.about-product p { margin: 0; color: #526071; font-size: 13.5px; line-height: 1.5; font-weight: 500; }

.about-exp {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 44px;
    margin: 36px 0 6px;
    padding: 40px 44px;
    background: var(--color-surface-soft);
    box-shadow: inset 0 0 0 1px #e4e9ef;
}
.about-exp__copy h2 { margin: 0 0 14px; color: #172236; font-size: 26px; }
.about-exp__copy p { margin: 0 0 12px; color: #526071; font-size: 14.5px; line-height: 1.65; }
.about-exp__copy p:last-child { margin-bottom: 0; }
.about-exp__brands {
    padding: 22px 26px;
    background: #fff;
    border: 1px solid #e4e9ef;
    border-radius: 6px;
}
.about-exp__brands h3 {
    margin: 0 0 6px;
    color: #7a8494;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.about-exp__brands ul { list-style: none; margin: 0; padding: 0; }
.about-exp__brands li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f4;
}
.about-exp__brands li:last-child { border-bottom: 0; }
.about-exp__brands li strong { color: #172236; font-size: 15.5px; font-weight: 800; }
.about-exp__brands li span { color: #8a94a3; font-size: 13px; font-weight: 600; white-space: nowrap; }
.about-exp__brands p { margin: 10px 0 0; padding-top: 12px; border-top: 1px solid #edf0f4; color: #7a8494; font-size: 13px; line-height: 1.55; }

.about-why {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.about-why__card {
    padding: 22px;
    background: var(--color-surface-soft);
    border: 1px solid #e4e9ef;
    border-radius: 6px;
}
.about-why__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid #e4e9ef;
    border-radius: 12px;
    color: var(--color-primary);
}
.about-why__card strong { display: block; margin-bottom: 6px; color: #172236; font-size: 15px; font-weight: 800; }
.about-why__card p { margin: 0; color: #526071; font-size: 13.5px; line-height: 1.5; font-weight: 500; }

.about-quote {
    margin: 24px 0 0;
    padding: 24px 30px;
    background: #f4f6f9;
    border-left: 2px solid var(--color-primary);
}
.about-quote p { margin: 0 0 8px; color: #172236; font-size: 16.5px; line-height: 1.5; font-weight: 600; }
.about-quote cite { color: #526071; font-size: 13px; font-weight: 600; font-style: normal; }

.about-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 36px 0 26px;
    padding: 30px 40px;
    background: var(--color-surface-soft);
    box-shadow: inset 0 0 0 1px #e4e9ef;
}
.about-cta h2 { margin: 0 0 4px; color: #172236; font-size: 21px; }
.about-cta p { margin: 0; color: var(--text-muted); font-size: 14px; }
.about-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 1200px) {
    .about-hero { padding: 44px 36px; }
    .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-stat:nth-child(odd)::before { display: none; }
    .about-stat { border-top: 1px solid rgba(82, 96, 113, 0.14); }
    .about-stat:nth-child(-n+2) { border-top: 0; }
    .about-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-exp { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
    .about-hero { padding: 34px 22px; }
    .about-hero h1 { font-size: 28px; line-height: 1.2; }
    /* обидва абзаци — один розмір; різниця лише у вазі/кольорі (лід трохи
       темніший і жирніший), щоб текст читався єдиним блоком, а не «стрибав» */
    .about-hero__lede,
    .about-hero__text {
        max-width: none;
        font-size: 15px;
        line-height: 1.6;
    }
    .about-hero__lede { font-weight: 600; }
    .about-hero__text { font-weight: 500; }
    /* кнопки однакові — на всю ширину, в стовпчик */
    .about-hero__actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 22px; }
    .about-hero__actions .btn {
        width: 100%;
        height: 52px;
        justify-content: center;
        font-size: 15px;
    }
    .about-stats { grid-template-columns: 1fr; }
    .about-stat::before { display: none; }
    .about-stat { border-top: 1px solid rgba(82, 96, 113, 0.14); padding: 18px 22px; }
    .about-stat:first-child { border-top: 0; }
    .about-products { grid-template-columns: 1fr; }
    .about-why { grid-template-columns: 1fr; }
    .about-exp { padding: 30px 22px; }
    .about-cta { padding: 24px 22px; }
}

/* ---------- Contacts page refresh (overrides the older warm-grey styles
   with the current cool-grey language shared with the About page) ---------- */
.contacts-hero--photo {
    min-height: 460px;
    border: 1px solid rgba(28, 38, 52, 0.08);
}
.contacts-hero__text { max-width: 560px; }
.contacts-hero__text h1 { color: #162033; }
.contacts-hero__text .lede { color: #253047; font-weight: 500; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 26px 0 8px;
}
.feature-card {
    background: #fff;
    border: 1px solid #e4e9ef;
    border-radius: 6px;
    padding: 22px;
}
.feature-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    background: var(--color-surface-soft);
    border: 1px solid #e4e9ef;
    border-radius: 12px;
    color: var(--color-primary);
}
.feature-card h3 { margin: 0 0 6px; color: #172236; font-size: 15px; font-weight: 800; line-height: 1.3; }
.feature-card p { margin: 0; color: #526071; font-size: 13.5px; line-height: 1.5; font-weight: 500; }
.feature-card__heading { margin: 0 0 6px; font-size: 17px; font-weight: 800; line-height: 1.35; }
.feature-card__heading a { color: #172236; }
.feature-card__heading a:hover { color: var(--color-primary); }

.info-card {
    border-color: #e4e9ef;
    border-radius: 6px;
    padding: 22px;
    box-shadow: none;
}
.info-card__icon {
    border-radius: 12px;
    background: var(--color-surface-soft);
    border: 1px solid #e4e9ef;
}
.info-card h3 { color: #172236; font-weight: 800; }
.info-card p { font-size: 13.5px; line-height: 1.55; font-weight: 500; }
.info-card p + p { margin-top: 8px; }
.info-card a { font-weight: 600; }

.contact-panel {
    border-color: #e4e9ef;
    border-radius: 6px;
    box-shadow: none;
}
.contact-panel h3 { color: #172236; }
.contact-panel .lede { font-size: 14px; }

.cta-panel {
    background: var(--color-surface-soft);
    color: inherit;
    border: 1px solid #e4e9ef;
    border-radius: 6px;
}
.cta-panel h3 { color: #172236; }
.cta-panel p { color: #526071; }
.cta-panel__links { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.cta-panel__links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #cfd5df;
    border-radius: 999px;
    color: #162033;
    font-size: 14px;
    font-weight: 600;
    transition: border-color .15s ease, color .15s ease;
}
.cta-panel__links a:hover { border-color: var(--color-primary); color: var(--color-primary); }

.map-address-card {
    border-color: #e4e9ef;
    border-radius: 6px;
    box-shadow: none;
}
.map-embed { border-color: #e4e9ef; border-radius: 6px; }

@media (max-width: 1200px) {
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .contacts-hero--photo { min-height: 0; }
    .contacts-hero { padding: 34px 22px; }
    .feature-grid { grid-template-columns: 1fr; }
    .cta-panel__links { flex-direction: column; }
    .cta-panel__links a { justify-content: center; }
}

/* ---------- Category materials: spec tables and booklets ----------
   Table images come in wildly different proportions (roughly 1:1 up to 11:1),
   so they keep their natural aspect ratio — never a fixed one. */
.term-files {
    width: 100%;
    max-width: 980px;
    margin: 6px 0 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.term-files__title {
    margin: 0;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink);
}
.term-table {
    margin: 0;
    background: #fff;
    border: 1px solid #e4e9ef;
    border-radius: 8px;
    overflow: hidden;
}
.term-table__view {
    display: block;
    background: var(--color-surface-soft);
    cursor: zoom-in;
}
.term-table__view img {
    display: block;
    width: 100%;
    height: auto; /* natural proportions — these are data tables, not crops */
}
.term-table__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 16px;
    border-top: 1px solid #edf0f4;
}
.term-table__hint { font-size: 12.5px; color: var(--ink-muted); }
.term-table__download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink-2);
}
.term-table__download:hover { color: var(--color-primary-hover); }
.term-files__docs { display: flex; flex-wrap: wrap; gap: 10px; }
/* Буклет: картка = «відкрити» (ліва частина) + окрема дія «Завантажити» (права) */
.term-doc {
    flex: 1 1 300px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: #fff;
    border: 1px solid #e4e9ef;
    border-radius: 8px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.term-doc:hover { border-color: #cfd5df; box-shadow: 0 8px 20px rgba(22, 32, 51, 0.07); }
.term-doc__open {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    color: inherit;
}
.term-doc__download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-2);
    white-space: nowrap;
    box-shadow: inset 0 0 0 1px var(--panel-line-strong);
    transition: color .15s ease, box-shadow .15s ease;
}
.term-doc__download:hover { color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--color-primary); }
.term-doc__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    background: var(--color-surface-soft);
    border-radius: 9px;
    color: var(--color-primary);
}
.term-doc__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.term-doc__body strong { color: #172236; font-size: 14px; font-weight: 800; line-height: 1.3; }
.term-doc__body small { color: var(--ink-muted); font-size: 12px; font-weight: 600; }
@media (max-width: 640px) {
    .term-table__foot { flex-direction: column; align-items: flex-start; }
}

/* Downloads: spec-table cards show a preview instead of the generic file icon */
.download-card__thumb {
    display: block;
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border: 1px solid #e4e9ef;
    border-radius: 8px;
    background: var(--color-surface-soft);
}
.download-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }

/* Sub-series rows in the "Серія" facet: thread numbers nested under their trade name */
.filter-option--child { padding-left: 20px; }
.filter-option--child .filter-option__label { color: var(--ink-muted); font-size: 13px; }

/* Call-to-action on the product page. Same soft light language as the cta-panel
   pills — white on a light ground, no filled accent — just larger, since this is
   the one action the page asks for. */
/* Кнопка по центру правої колонки — без панелі, самою кнопкою */
.product-single__action {
    display: flex;
    justify-content: center;
    margin: 18px 0 4px;
}
.product-single__cta {
    margin-top: 0;
    /* удвічі ширша за природну ширину напису (було 214px) */
    min-width: 428px;
    max-width: 100%;
    justify-content: center;
    padding: 15px 32px;
    background: #fff;
    border: 1px solid #cfd5df;
    color: #162033;
    font-size: 16.5px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(22, 32, 51, 0.06);
    transition: border-color .15s ease, color .15s ease, box-shadow .2s ease, transform .2s ease;
}
.product-single__cta:hover {
    background: var(--color-surface-soft);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 8px 20px rgba(22, 32, 51, 0.10);
    transform: translateY(-2px);
}
.product-single__cta:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(22, 32, 51, 0.08); }
.product-single__cta:focus-visible { outline: 2px solid var(--color-primary-soft); outline-offset: 3px; }
.product-single__cta svg { flex: 0 0 auto; color: var(--color-primary); }
@media (prefers-reduced-motion: reduce) {
    .product-single__cta { transition: background .15s ease, box-shadow .2s ease; }
    .product-single__cta:hover, .product-single__cta:active { transform: none; }
}
@media (max-width: 640px) {
    .product-single__action { align-self: stretch; }
    .product-single__cta { min-width: 0; width: 100%; padding: 15px 24px; }
}

/* ---------- 404 ---------- */
.error-404 { max-width: 640px; margin: 48px auto 90px; padding: 0 20px; text-align: center; }
.error-404__code { margin: 0 0 6px; font-size: clamp(76px, 15vw, 150px); font-weight: 800; line-height: .95; letter-spacing: -0.03em; color: var(--color-primary); }
.error-404__title { margin: 0 0 12px; font-size: clamp(24px, 4vw, 34px); color: var(--ink); }
.error-404__text { margin: 0 0 28px; color: var(--text-muted); font-size: 16px; line-height: 1.6; }
.error-404__search { display: flex; gap: 10px; max-width: 460px; margin: 0 auto 24px; }
.error-404__search input { flex: 1 1 auto; min-width: 0; padding: 12px 16px; border: 1px solid var(--panel-line); border-radius: 8px; font-size: 15px; background: #fff; }
.error-404__search input:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.error-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 480px) {
    .error-404__search { flex-direction: column; }
    .error-404__actions { flex-direction: column; }
    .error-404__actions .btn { width: 100%; }
}

/* ---------- Header site search (legacy side-panel layout) ---------- */
.site-logo img { width: 118px; }
/* The mega-menu panels use this as their containing block, so `left/right: 0`
   makes them exactly as wide as the header container (1400px) and perfectly
   aligned with it. */
.site-header__inner { position: relative; }
.site-header__aside { flex: 0 0 154px; }
.site-header__search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 54px;
    padding: 0;
    color: #172236;
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
}
.site-header__search-toggle:hover,
.site-header__search-toggle[aria-expanded="true"] {
    color: var(--color-primary);
    background: transparent;
}
.site-header__search-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.site-search__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1059;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(20, 22, 24, 0.48);
    border: 0;
    border-radius: 0;
    cursor: default;
    animation: luts-search-backdrop-in .18s ease both;
}
.site-search-panel {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 1060;
    display: block;
    width: 470px;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 35px;
    overflow-y: auto;
    color: #222;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    animation: luts-search-panel-in .22s ease both;
}
.site-search__backdrop[hidden],
.site-search-panel[hidden] { display: none !important; }
.luts-search-open { overflow: hidden; }
.site-search-panel__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 16px;
}
.site-search-panel__top label {
    margin: 0;
    color: #222;
    font-size: 13px;
    font-weight: 600;
    line-height: 16px;
    text-transform: none;
}
.site-search-panel__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 20px;
    height: 20px;
    margin: -3px 0 0;
    padding: 0;
    color: #222;
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
}
.site-search-panel__close:hover { color: var(--color-primary); background: transparent; }
.site-search-panel__close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: square;
    stroke-linejoin: miter;
}
.site-search-panel__fields {
    display: flex;
    align-items: stretch;
    position: relative;
    height: 50px;
    margin-top: 15px;
    border-bottom: 1px solid #cfd2d4;
}
.site-search-panel__input {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
    height: 50px;
    padding: 5px 0;
    color: #22262a;
    background: transparent;
    border: 0;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    text-transform: none;
}
.site-search-panel__input::placeholder { color: #9aa0a5; opacity: 1; }
.site-search-panel__input:focus {
    background: transparent;
    border: 0;
    box-shadow: none;
}
@keyframes luts-search-panel-in {
    from { opacity: 0; transform: translateX(36px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes luts-search-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@media (max-width: 1100px) {
    .site-header__aside { flex: 0 0 auto; }
}
@media (max-width: 560px) {
    .site-header__inner {
        gap: 12px;
        padding-left: 14px;
    }
    .site-logo img { width: 92px; }
    .site-header__aside { gap: 6px; }
    .site-header__search-toggle {
        width: 30px;
        height: 44px;
    }
    .site-header__toggle {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }
    .site-header__lang {
        min-height: 44px;
        padding: 0 4px;
        border-radius: 14px;
        gap: 4px;   /* на мобільному місця менше, проміжок вужчий */
    }
    .site-header__lang a + a::before { left: -2.5px; }
    .site-header__lang a {
        min-width: 29px;
        min-height: 32px;
        font-size: 13px;
    }
    .site-search-panel { padding: 24px; }
    .site-search-panel__fields { margin-top: 18px; }
}

/* Keep the complete contact bar visible when desktop navigation changes to
   the burger menu. At phone widths the two logical groups become two rows. */
@media (max-width: 1100px) {
    .site-contact-bar__inner { gap: 16px; }
    .site-contact-bar__group { gap: 16px; }
    .site-contact-bar__group--secondary { display: flex; }
    .site-contact-bar__item {
        gap: 5px;
        font-size: 11px;
    }
}

@media (max-width: 760px) {
    .site-contact-bar__inner {
        min-height: 48px;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 5px;
        padding-top: 6px;
        padding-bottom: 6px;
    }
    .site-contact-bar__group,
    .site-contact-bar__group--secondary {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
    .site-contact-bar__item { font-size: 10.5px; }
    .site-nav { top: 122px; }
}

@media (max-width: 400px) {
    .site-contact-bar__inner { min-height: 74px; }
    .site-contact-bar__group,
    .site-contact-bar__group--secondary {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 3px;
    }
    .site-contact-bar__item {
        gap: 3px;
        font-size: 9.5px;
    }
    .site-contact-bar__email span { display: inline; }
    .site-contact-bar__email::after { content: none; }
    .site-contact-bar__item svg {
        width: 11px;
        height: 11px;
    }
    .site-nav { top: 148px; }
}
