/* =========================================================================
   XiMeK — design system
   Palette: teal (primary) + dark navy + red accent (from logo)
   ========================================================================= */

:root {
    --teal:        #d22930;
    --teal-bright: #1bb6d4;
    --teal-dark:   #0e8aa3;
    --teal-50:     #e8f6fa;
    --teal-100:    #d2eef4;

    --navy:        #0e2a45;
    --navy-2:      #143a5c;
    --navy-grad-1: #0e2a45;
    --navy-grad-2: #15436b;

    --red:         #e21b22;
    --red-dark:    #c0141a;

    --ink:         #16263a;
    --ink-2:       #2c3e52;
    --muted:       #64748b;
    --muted-2:     #8a99a8;
    --line:        #e6edf3;
    --line-2:      #eef3f7;
    --bg:          #f4f8fb;
    --bg-soft:     #eaf2f7;
    --white:       #ffffff;

    --shadow-sm: 0 2px 8px rgba(16,42,69,.06);
    --shadow:    0 8px 30px rgba(16,42,69,.08);
    --shadow-lg: 0 18px 50px rgba(16,42,69,.14);
    --shadow-teal: 0 12px 28px rgba(21,166,196,.28);

    --r-sm: 8px;
    --r:    14px;
    --r-lg: 20px;
    --r-xl: 28px;

    --container: 1180px;
    --header-h: 92px;

    --t: .25s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--t); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
h1, h2, h3, h4 { line-height: 1.18; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 26px; border-radius: var(--r-sm); font-weight: 700; font-size: .98rem;
    line-height: 1; transition: all var(--t); white-space: nowrap; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
    background: linear-gradient(135deg, #ee434a 0%, #d22930 52%, #a8141b 100%);
    color: #fff; box-shadow: 0 12px 26px rgba(210,41,48,.32);
    background-size: 160% 160%; background-position: 0% 50%;
}
.btn-primary:hover { background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(210,41,48,.42); }
.btn-accent {
    background: linear-gradient(135deg, #ee434a 0%, #d22930 52%, #a8141b 100%);
    color: #fff; box-shadow: 0 12px 26px rgba(210,41,48,.32);
    background-size: 160% 160%; background-position: 0% 50%;
}
.btn-accent:hover { background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(210,41,48,.42); }
.btn-outline { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 30px; font-size: 1.02rem; }

/* Online-store accent button — cyan gradient so it stands apart from the red CTA */
.btn-store {
    background: linear-gradient(135deg, #1bb6d4 0%, #0e8aa3 55%, #0b6f86 100%);
    color: #fff; box-shadow: 0 12px 26px rgba(14,138,163,.32);
    background-size: 160% 160%; background-position: 0% 50%;
}
.btn-store:hover { background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(14,138,163,.42); color: #fff; }
.btn-store svg { width: 19px; height: 19px; }
/* Turquoise solid button (e.g. datasheet/PDF download) — shares the shop accent. */
.btn-teal {
    background: linear-gradient(135deg, #1bb6d4 0%, #0e8aa3 55%, #0b6f86 100%);
    color: #fff; box-shadow: 0 12px 26px rgba(14,138,163,.32);
    background-size: 160% 160%; background-position: 0% 50%;
}
.btn-teal:hover { background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(14,138,163,.42); color: #fff; }
.nav-store { padding: 11px 18px; font-size: .92rem; }

.arrow-circle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.18);
}

/* ---------- section heading ---------- */
.section { padding: 70px 0; }
.section-sm { padding: 48px 0; }
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; margin-bottom: 34px; flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.link-more {
    display: inline-flex; align-items: center; gap: 8px; color: var(--teal);
    font-weight: 700; font-size: .95rem;
}
.link-more svg { width: 16px; height: 16px; transition: transform var(--t); }
.link-more:hover svg { transform: translateX(4px); }

/* =========================================================================
   HEADER
   ========================================================================= */
.header { position: sticky; top: 0; z-index: 100; background: var(--white); box-shadow: 0 1px 0 var(--line); }

/* Tier 1: logo + actions */
.header-top-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { flex: none; display: flex; align-items: center; gap: 14px; }
.logo img { height: 50px; width: auto; flex: none; }
.logo-tagline {
    font-size: .68rem; line-height: 1.3; color: var(--muted); max-width: 156px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .03em; border-left: 2px solid var(--teal-100); padding-left: 14px;
}
.header-top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.get-consult-btn { padding: 11px 18px; font-size: .92rem; }

/* Tier 2: nav + phone */
.header-bottom { border-top: 1px solid var(--line); }
.header-bottom-inner { display: flex; align-items: center; gap: 30px; min-height: 56px; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav > li { position: relative; }
.main-nav a {
    display: inline-flex; align-items: center; gap: 6px; font-weight: 600;
    font-size: .95rem; color: var(--ink-2); padding: 16px 0;
}
.main-nav a:hover, .main-nav .has-drop:hover > a { color: var(--teal); }
.main-nav .caret { width: 12px; height: 12px; opacity: .6; transition: transform var(--t); }
.has-drop:hover .caret { transform: rotate(180deg); }

.lang-switch { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: .9rem; }
.lang-switch a { color: var(--muted-2); padding: 2px 4px; border-radius: 4px; }
.lang-switch a.active { color: var(--ink); }
.lang-switch span { color: var(--line); }

/* Social icons in the header top bar */
.header-socials { display: flex; align-items: center; gap: 8px; }
.header-socials .soc {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted-2); background: var(--bg);
    transition: all var(--t);
}
.header-socials .soc svg { width: 18px; height: 18px; }
.header-socials .soc:hover { color: #fff; transform: translateY(-2px); }
.header-socials .soc-viber:hover    { background: #7360f2; }
.header-socials .soc-telegram:hover { background: #229ed9; }
.header-socials .soc-youtube:hover  { background: #ff0000; }
@media (max-width: 900px) { .header-socials { display: none; } }
/* Socials inside the mobile (burger) menu — stay visible & centered, larger tap targets */
.header-socials.mm-socials { display: flex; justify-content: center; gap: 14px; margin-top: 4px; }
.mm-socials .soc { width: 46px; height: 46px; }
.mm-socials .soc svg { width: 22px; height: 22px; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
    color: var(--ink-2); transition: all var(--t);
}
.icon-btn:hover { border-color: var(--teal); color: var(--teal); }
.icon-btn svg { width: 19px; height: 19px; }
.header-phone { margin-left: auto; text-align: right; line-height: 1.2; }
.header-phone .num { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.header-phone .num svg { width: 17px; height: 17px; color: var(--teal); }
.header-phone small { display: block; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }

.burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; }

/* dropdown */
.drop {
    position: absolute; top: 100%; left: -16px; min-width: 290px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
    padding: 10px; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all var(--t); z-index: 50;
}
.has-drop:hover .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop a { display: block; padding: 11px 14px; border-radius: var(--r-sm); font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.drop a:hover { background: var(--teal-50); color: var(--teal-dark); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; background: var(--bg); }
/* Cross-fading background layers — only the photo changes between slides, the text is static */
.hero-bgs { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg {
    /* contain = the whole 1756×681 photo is always visible, never cropped.
       White fill blends with the photos' light edges where the box is wider. */
    position: absolute; inset: 0;
    background-size: contain; background-repeat: no-repeat; background-position: center;
    background-color: #fff;
    opacity: 0; transition: opacity .9s ease;
}
.hero-bg.active { opacity: 1; }
.hero.has-photo .hero-slide { background: none; z-index: 1; }
/* On wide screens, match the hero box to the photo's 1756×681 ratio so the
   full image fills edge-to-edge (cover == contain here) with no empty bands. */
@media (min-width: 993px) {
    .hero.has-photo { aspect-ratio: 1756 / 681; }
    .hero.has-photo .hero-slide { min-height: 0; height: 100%; }
    .hero.has-photo .hero-bg { background-size: cover; }
}
.hero-slide {
    position: relative; min-height: 500px; display: flex; align-items: center;
    background-size: cover; background-position: center;
}
.hero-slide::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(100deg, rgb(255 255 255 / 27%) 0%, rgb(255 255 255 / 54%) 38%, rgba(255, 255, 255, .35) 64%, rgba(255, 255, 255, 0) 100%);
}
/* Plain hero (no photo) — intentional gradient + decorative shapes */
.hero--plain .hero-slide { background: linear-gradient(120deg, #f4fbfd 0%, #e8f6fa 48%, #dbeef6 100%); }
.hero--plain .hero-slide::before { display: none; }
.hero--plain .hero-slide::after {
    content: ''; position: absolute; top: -120px; right: -120px; width: 560px; height: 560px;
    background: radial-gradient(circle at center, rgba(21,166,196,.28), rgba(21,166,196,0) 68%);
    border-radius: 50%; pointer-events: none;
}
.hero--plain .hero-deco {
    position: absolute; right: 4%; top: 50%; transform: translateY(-50%); z-index: 1;
    width: 42%; max-width: 520px; opacity: .9; pointer-events: none;
}
@media (max-width: 900px){ .hero--plain .hero-deco { display: none; } }

.hero-content { position: relative; z-index: 2; max-width: 620px; padding: 44px 0 52px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); line-height: 1.08; margin-bottom: 22px; }
.hero h1 .l, .hero h1 .accent { display: block; }
.hero h1 .accent { color: var(--teal); }
.hero p { font-size: 1.1rem; color: var(--ink-2); margin-bottom: 32px; max-width: 520px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.85);
    border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
    color: var(--ink-2); box-shadow: var(--shadow-sm); transition: all var(--t);
}
.hero-arrow:hover { background: var(--teal); color: #fff; }
.hero-arrow.prev { left: 18px; }
.hero-arrow.next { right: 18px; }
.hero-dots { position: absolute; bottom: 84px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; z-index: 7; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(16,42,69,.25); transition: all var(--t); }
.hero-dots button.active { background: var(--teal); width: 26px; border-radius: 5px; }

/* DB-managed hero slider (admin → Слайдер). Square photo on mobile, rectangle on desktop. */
.hero--db { position: relative; background: #fff; overflow: hidden; aspect-ratio: 1 / 1; max-height: 86vh; }
.hero--db .hero-bg {
    background-image: var(--mob);
    background-size: cover; background-position: center; background-repeat: no-repeat;
    background-color: #fff;
}
/* Inactive slides fade out via opacity but stay in the DOM — they must not
   intercept clicks, or the topmost hidden slide's link (e.g. a mobile-only
   .hero-mob-link at z-index:6) steals every tap from the visible slide. */
.hero--db .hero-bg:not(.active) { pointer-events: none; }
.hero--db .hero-bg--link { display: block; cursor: pointer; }
.hero--db .hero-bg--content { display: flex; align-items: center; }
.hero--db .hero-bg--content .hero-slide { width: 100%; min-height: 0; height: 100%; background: none; }
.hero--db h1 .hl { color: var(--red); }
.hero--db .hero-mob-link { display: none; }
@media (min-width: 993px) {
    .hero--db { aspect-ratio: 1756 / 681; max-height: none; }
    .hero--db .hero-bg { background-image: var(--pc); }
    /* Slides without a PC image are mobile-only — hide them on desktop. */
    .hero--db .hero-bg--mobonly { display: none; }
}
/* "Only photo on mobile": hide text/buttons, keep just the (clickable) square photo. */
@media (max-width: 992px) {
    .hero--db .hero-bg--mobimg .hero-slide { display: none; }
    .hero--db .hero-bg--mobimg .hero-mob-link { display: block; position: absolute; inset: 0; z-index: 6; }
}

/* =========================================================================
   USP BAND
   ========================================================================= */
.usp {
    position: relative; z-index: 6; margin-top: -56px;
    background: linear-gradient(120deg, var(--navy-grad-1), var(--navy-grad-2));
    border-radius: var(--r-lg); box-shadow: var(--shadow-lg); color: #fff;
    padding: 36px 10px; display: grid; grid-template-columns: repeat(4, 1fr);
}
.usp-item { display: flex; align-items: center; gap: 18px; padding: 6px 26px; }
.usp-item + .usp-item { border-left: 1px solid rgba(255,255,255,.12); }
.usp-ico { flex: none; display: flex; align-items: center; justify-content: center; }
.usp-ico svg { width: 56px; height: 56px; stroke: url(#iconGrad); stroke-width: 1.5; }
.usp-item h4 { color: #fff; font-size: 1.02rem; margin-bottom: 5px; }
.usp-item p { font-size: .84rem; color: rgba(255,255,255,.72); line-height: 1.5; }

/* =========================================================================
   CATEGORY CARDS
   ========================================================================= */
.cat-grid { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: 22px; }
.cat-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r);
    padding: 22px 18px; display: flex; flex-direction: column; transition: all var(--t);
}
.cat-card:hover { border-color: var(--teal-100); box-shadow: var(--shadow); transform: translateY(-4px); }
.cat-card .thumb { height: 160px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.cat-card .thumb img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
/* Brand logos: uniform bounding box so every logo lands at the same height
   regardless of its source aspect ratio (square vs wide-short). */
.brand-logo-box { height: 96px; display: flex; align-items: center; justify-content: center; padding: 0 14px; }
.brand-logo-box img { max-height: 58px; max-width: 80%; width: auto; height: auto; object-fit: contain; }
.brand-logo-box .brand-name { font-size: 1.25rem; }
.cat-card h3 { font-size: .96rem; font-weight: 700; min-height: 2.8em;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cat-card .go { margin-top: auto; padding-top: 14px; color: var(--teal); }
.cat-card .go svg { width: 18px; height: 18px; transition: transform var(--t); }
.cat-card:hover .go svg { transform: translateX(5px); }

/* Home category cards custom styling (edge-to-edge images, no white background, text overlay) */
.cat-card.cat-card--home {
    position: relative;
    padding: 0;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #c4c4c4;
    border: 1px solid rgba(255,255,255,0.1);
}
.cat-card.cat-card--home::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(14, 42, 69, 0.85) 0%, rgba(14, 42, 69, 0.25) 50%, rgba(14, 42, 69, 0) 100%);
    z-index: 2;
    transition: opacity var(--t), background var(--t);
}
.cat-card.cat-card--home:hover::after {
    background: linear-gradient(to top, rgb(232 61 68) 0%, rgb(210 41 48 / 8%) 60%, rgba(0, 128, 128, 0.15) 100%);
}
.cat-card.cat-card--home .thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin-bottom: 0;
    z-index: 1;
}
.cat-card.cat-card--home .thumb img {
    max-height: none;
    max-width: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.cat-card.cat-card--home:hover .thumb img {
    transform: scale(1.08);
}
.cat-card.cat-card--home h3 {
    position: relative;
    z-index: 3;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    padding: 20px 20px 0 20px;
    min-height: auto;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cat-card.cat-card--home .go {
    position: relative;
    z-index: 3;
    color: #fff;
    margin-top: 0;
    padding: 10px 20px 20px 20px;
}
.cat-card.cat-card--home .go svg {
    stroke: currentColor;
}
.cat-card.cat-card--home:hover .go svg {
    color: #fff;
}
.cat-card.cat-card--home .cat-count {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Big category cards inside the catalog/category listing — 2 per row, sits above
   the product grid. Higher specificity keeps the 2-col layout past the .cat-grid
   responsive breakpoints. */
.catalog-wrap .cat-grid--catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 30px;
}
/* Catalog cards differ from the home overlay cards: the whole 3:2 photo is
   shown (contain, never cropped), the title sits in a clean footer at the very
   bottom, and the CTA is a round arrow button pinned to the bottom-right
   corner — so it never eats a full row. */
.catalog-wrap .cat-grid--catalog .cat-card--home {
    min-height: 0;
    background: #fff;
    border: 1px solid var(--line);
    justify-content: flex-start;
}
.catalog-wrap .cat-grid--catalog .cat-card--home::after { display: none; }
.catalog-wrap .cat-grid--catalog .cat-card--home .thumb {
    position: relative;
    top: auto; left: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    background: linear-gradient(135deg, #f7fafb 0%, #e9f0f3 100%);
    border-bottom: 1px solid var(--line);
}
.catalog-wrap .cat-grid--catalog .cat-card--home .thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}
.catalog-wrap .cat-grid--catalog .cat-card--home h3 {
    color: var(--navy);
    text-shadow: none;
    font-size: 1rem;
    line-height: 1.35;
    padding: 16px 64px 18px 18px;
    -webkit-line-clamp: 3;
    min-height: 0;
}
.catalog-wrap .cat-grid--catalog .cat-card--home .go {
    position: absolute;
    right: 16px;
    bottom: 14px;
    z-index: 3;
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--teal-50, #e8f6fa);
    color: var(--teal);
    box-shadow: 0 2px 8px rgba(14, 42, 69, 0.08);
    transition: background var(--t), color var(--t), transform var(--t);
}
.catalog-wrap .cat-grid--catalog .cat-card--home:hover .go {
    background: var(--teal);
    color: #fff;
    transform: scale(1.06);
}
.catalog-wrap .cat-grid--catalog .cat-card--home:hover .go svg {
    color: inherit;
    transform: translateX(2px);
}
.catalog-wrap .cat-grid--catalog .cat-card--home .cat-count {
    background: rgba(14, 42, 69, 0.55);
    border-color: rgba(255, 255, 255, 0.4);
}
@media (max-width: 560px) {
    .catalog-wrap .cat-grid--catalog { grid-template-columns: 1fr; gap: 14px; }
}


/* =========================================================================
   BRANDS CAROUSEL
   ========================================================================= */
.brands { background: var(--white); }
.brand-track-wrap { position: relative; display: flex; align-items: center; gap: 12px; }
.brand-track { flex: 1; overflow: hidden; }
.brand-track ul { display: flex; gap: 14px; transition: transform .4s ease; }
.brand-track li { flex: 0 0 calc((100% - 14px*5) / 6); }
.brand-card {
    height: 92px; border: 1px solid var(--line); border-radius: var(--r);
    display: flex; align-items: center; justify-content: center; padding: 16px;
    filter: grayscale(1); opacity: .72; transition: all var(--t); background: #fff;
}
.brand-card:hover { filter: none; opacity: 1; border-color: var(--teal-100); box-shadow: var(--shadow-sm); }
.brand-card img { max-height: 46px; width: auto; object-fit: contain; }
.brand-card .brand-name { font-weight: 800; color: var(--ink-2); font-size: 1.05rem; }
.brand-nav {
    flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
    background: #fff; display: flex; align-items: center; justify-content: center; color: var(--ink-2);
    transition: all var(--t);
}
.brand-nav:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* =========================================================================
   TURNKEY PANEL
   ========================================================================= */
.turnkey {
    background: linear-gradient(120deg, var(--teal-50), #e9f6fb 70%);
    border-radius: var(--r-xl); overflow: hidden; display: grid; grid-template-columns: 1fr 1.15fr;
}
.turnkey-text { padding: 50px 46px; }
.turnkey-text h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 22px; }
.turnkey-text p { color: var(--ink-2); margin-bottom: 18px; font-weight: 600; }
.turnkey-list { display: grid; gap: 13px; margin-bottom: 30px; }
.turnkey-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink-2); }
.turnkey-list .check {
    flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--teal);
    display: flex; align-items: center; justify-content: center; color: #fff;
}
.turnkey-list .check svg { width: 14px; height: 14px; }
.turnkey-visual { position: relative; background-size: cover; background-position: center; min-height: 360px; overflow: hidden; }
/* Smooth gradient seam — photo blends into the teal text panel on the left */
.turnkey-visual:not(.turnkey-visual--plain)::before {
    content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, #d9eff6 0%, rgba(217,239,246,.55) 42%, rgba(217,239,246,0) 100%);
}
.turnkey-visual .turnkey-stats { z-index: 3; }
.turnkey-visual--plain {
    background: linear-gradient(135deg, var(--navy-grad-1), var(--navy-grad-2) 70%, var(--teal-dark));
}
.turnkey-visual--plain::before {
    content: ''; position: absolute; inset: 0; opacity: .5;
    background-image: radial-gradient(rgba(255,255,255,.10) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}
.turnkey-visual--plain .turnkey-stats { background: linear-gradient(180deg, rgba(14,42,69,0), rgba(14,42,69,.5)); }
.turnkey-stats {
    position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr);
    background: linear-gradient(180deg, rgba(14,42,69,0), rgba(14,42,69,.86)); padding: 30px 26px 26px;
}
.turnkey-stats .st { color: #fff; padding: 0 12px; }
.turnkey-stats .st + .st { border-left: 1px solid rgba(255,255,255,.18); }
.turnkey-stats .num { font-size: 1.7rem; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.turnkey-stats .lbl { font-size: .8rem; color: rgba(255,255,255,.8); }

/* =========================================================================
   PRODUCT CARDS
   ========================================================================= */
.prod-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.prod-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.prod-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.prod-card {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
    display: flex; flex-direction: column; overflow: hidden; transition: all var(--t);
}
.prod-card:hover { border-color: var(--teal-100); box-shadow: var(--shadow); transform: translateY(-4px); }
.prod-card .ph { position: relative; height: 220px; padding: 22px; display: flex; align-items: center; justify-content: center; background: #fff; border-bottom: 1px solid var(--line-2); overflow: hidden; }
.prod-card .ph img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.prod-badge {
    position: absolute; top: 12px; left: 12px; padding: 4px 11px; border-radius: 20px;
    font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: #fff;
    z-index: 4; box-shadow: 0 4px 12px rgba(16,42,69,.18);
}
.prod-badge.hit { background: var(--red); }
.prod-badge.new { background: var(--teal); }
.prod-fav {
    position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
    background: #fff; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center;
    color: var(--muted-2); transition: all var(--t);
}
.prod-fav:hover, .prod-fav.on { color: var(--red); }
.prod-fav svg { width: 18px; height: 18px; }
.prod-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.prod-brand { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--teal); font-weight: 700; margin-bottom: 7px; }
.prod-card h3 { font-size: .98rem; font-weight: 700; margin-bottom: 8px; line-height: 1.25; height: 2.5em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-card h3 a:hover { color: var(--teal); }
.prod-desc { font-size: .85rem; color: var(--muted); margin-bottom: 16px; line-height: 1.3; height: 3.9em;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prod-foot { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); }
.prod-price { font-weight: 800; color: var(--ink); font-size: 1.05rem; }

/* "price on request" — stylish two-line label with pulsing dot */
.price-req { display: inline-flex; align-items: center; gap: 9px; }
.price-req .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); position: relative; flex: none; }
.price-req .dot::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; background: var(--teal); opacity: .35; animation: pulse 1.8s ease-out infinite; }
.price-req-txt { display: flex; flex-direction: column; line-height: 1.12; }
.price-req .l1 { font-size: .62rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted-2); font-weight: 700; }
.price-req .l2 { font-size: .92rem; font-weight: 800; color: var(--teal-dark); }
@keyframes pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }

/* Category card — product counter in the corner */
.cat-card { position: relative; }
.cat-count {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--teal-dark); color: #fff;
    font-size: .72rem; font-weight: 800; padding: 5px 11px; border-radius: 20px;
    box-shadow: 0 4px 12px rgba(14,42,69,.22);
}
.cat-count svg { width: 12px; height: 12px; }

/* Faint cardio line as a section background */
.ecg-line.ecg-bg { top: 50%; bottom: auto; transform: translateY(-50%); height: 220px; stroke: var(--teal); opacity: .05; }
.section { position: relative; }
.section > .container { position: relative; z-index: 1; }

/* Dynamic search dropdown */
.search-suggest {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    border: 1px solid var(--line); border-top: none; border-radius: 0 0 var(--r) var(--r);
    box-shadow: var(--shadow-lg); max-height: 60vh; overflow-y: auto; z-index: 60; display: none;
}
.search-suggest.open { display: block; }
.suggest-item { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); transition: background var(--t); }
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover { background: var(--teal-50); }
.suggest-item .si-img { width: 46px; height: 46px; flex: none; border-radius: 8px; background: var(--bg); object-fit: contain; padding: 4px; }
.suggest-item .si-name { font-weight: 700; font-size: .92rem; color: var(--ink); }
.suggest-item .si-meta { font-size: .76rem; color: var(--muted); }
.suggest-item .si-go { margin-left: auto; color: var(--teal); }
.suggest-empty { padding: 22px 18px; color: var(--muted); font-size: .9rem; text-align: center; }
.suggest-foot { padding: 11px 18px; background: var(--bg); font-size: .82rem; font-weight: 700; color: var(--teal-dark); display: flex; align-items: center; gap: 8px; cursor: pointer; }
.search-row { position: relative; }

/* WebGL shader background (CTA) */
.cta-shader { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .3; }
/* keep the red glow accent visible over the faint waves */
.prod-more {
    display: flex; align-items: center; justify-content: space-between; gap: 7px;
    color: var(--teal-dark); font-weight: 700; font-size: .9rem;
    padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); transition: all var(--t);
}
.prod-more:hover { border-color: var(--teal); background: var(--teal-50); }
.prod-more svg { width: 16px; height: 16px; transition: transform var(--t); }
.prod-card:hover .prod-more svg { transform: translateX(4px); }

/* =========================================================================
   CTA STRIP
   ========================================================================= */
.cta-strip {
    background: linear-gradient(120deg, var(--navy-grad-1), var(--navy-grad-2));
    border-radius: var(--r-xl); padding: 46px 44px; display: flex; align-items: center;
    justify-content: space-between; gap: 30px; color: #fff; flex-wrap: wrap;
}
.cta-strip h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 8px; }
.cta-strip p { color: rgba(255,255,255,.78); max-width: 560px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
    position: relative; overflow: hidden; color: rgba(255,255,255,.72); padding: 60px 0 0;
    background: radial-gradient(120% 140% at 80% -10%, #15436b 0%, #0e2a45 42%, #081a2c 100%);
}
.footer::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(52,208,230,.6) 1px, transparent 1.6px),
        radial-gradient(circle, rgba(255,255,255,.5) 1px, transparent 1.6px);
    background-size: 38px 38px, 64px 64px;
    background-position: 0 0, 18px 22px;
    opacity: .05; animation: footDrift 50s linear infinite;
}
.footer::after {
    content: ''; position: absolute; top: -25%; right: -6%; width: 460px; height: 460px; border-radius: 50%;
    z-index: 0; pointer-events: none;
    background: radial-gradient(circle, rgba(21,166,196,.12), rgba(21,166,196,0) 70%);
    animation: footGlow 14s ease-in-out infinite alternate;
}
.footer .container { position: relative; z-index: 1; }
@keyframes footDrift { from { background-position: 0 0, 18px 22px; } to { background-position: 380px 190px, 398px 212px; } }
@keyframes footGlow { from { transform: translateY(0) scale(1); opacity: .5; } to { transform: translateY(-26px) scale(1.12); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .footer::before, .footer::after { animation: none; } }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; }
.footer .flogo img { height: 42px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer p { font-size: .9rem; line-height: 1.7; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: .9rem; }
.footer-links a:hover { color: var(--teal-bright); }
.footer-contact li { display: flex; gap: 11px; margin-bottom: 14px; font-size: .9rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--teal-bright); flex: none; margin-top: 2px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center; transition: all var(--t);
}
.socials a:hover { background: var(--teal); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: .85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* =========================================================================
   FLOATING BUTTON
   ========================================================================= */
.float-cta {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: var(--teal); color: #fff; border-radius: var(--r); padding: 14px 16px;
    box-shadow: var(--shadow-teal); max-width: 132px; text-align: center; transition: all var(--t);
}
.float-cta:hover { background: var(--teal-dark); transform: translateY(-3px); }
.float-cta svg { width: 26px; height: 26px; }
.float-cta span { font-size: .74rem; font-weight: 700; line-height: 1.3; }

/* =========================================================================
   BREADCRUMBS + PAGE HEAD
   ========================================================================= */
.breadcrumbs { background: var(--bg); border-bottom: 1px solid var(--line); padding: 14px 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-size: .85rem; color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; transition: color var(--t); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs .bc-current { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 700; }
.breadcrumbs .bc-sep { color: var(--red); opacity: .55; }
.breadcrumbs .bc-sep svg { width: 14px; height: 14px; }
.breadcrumbs .bc-home { width: 16px; height: 16px; color: var(--red); }
.page-head { padding: 40px 0 10px; }
.page-head h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.page-head .sub { color: var(--muted); margin-top: 8px; }

/* =========================================================================
   CATALOG LAYOUT
   ========================================================================= */
.catalog-wrap { display: grid; grid-template-columns: 270px 1fr; gap: 32px; align-items: start; }
/* Allow grid tracks to shrink below content size so overflow-scroll children
   (e.g. the horizontal subcategory chip row) stay contained instead of forcing
   the whole page wider. */
.catalog-wrap > * { min-width: 0; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: sticky; top: calc(var(--header-h) + 16px); }
.filters h4 { font-size: 1rem; margin-bottom: 14px; }
.filter-group { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-list li { margin-bottom: 9px; }
.filter-list a { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.filter-list a:hover, .filter-list a.active { color: var(--teal); }
.filter-list .cnt { margin-left: auto; color: var(--muted-2); font-weight: 600; font-size: .82rem; }
.filter-list .fl-name { flex: 1 1 auto; min-width: 0; }
.filter-list .fl-ic {
    width: 26px; height: 26px; border-radius: 50%; flex: none;
    background: var(--teal-50); color: var(--teal-dark);
    display: flex; align-items: center; justify-content: center;
}
.filter-list .fl-ic svg { width: 14px; height: 14px; }
.filter-list .fl-ic--img { background: #fff; overflow: hidden; border: 1px solid var(--line); }
.filter-list .fl-ic--img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
/* Compact subcategory chips with circular icons */
.subcat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.subcat-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px;
    border: 1px solid var(--line); border-radius: 30px; font-size: .82rem; font-weight: 600;
    color: var(--ink-2); background: #fff; transition: all var(--t);
}
.subcat-chip:hover { border-color: var(--teal); color: var(--teal); box-shadow: var(--shadow-sm); }
.subcat-chip.active { border-color: var(--teal); color: var(--teal); background: var(--teal-50); font-weight: 700; }
.subcat-chip .sc-ic {
    width: 26px; height: 26px; border-radius: 50%; flex: none;
    background: var(--teal-50); color: var(--teal-dark);
    display: flex; align-items: center; justify-content: center;
}
.subcat-chip .sc-ic svg { width: 15px; height: 15px; }
.cat-feature-img { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.cat-feature-img img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.subcat-chip .sc-ic--img { background: #fff; overflow: hidden; }
.subcat-chip .sc-ic--img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.catalog-toolbar .result-count { color: var(--muted); font-size: .9rem; }
.select {
    appearance: none; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 38px 11px 14px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
    font-weight: 600; color: var(--ink-2); cursor: pointer;
}

/* =========================================================================
   PRODUCT DETAIL
   ========================================================================= */
.product-detail { display: grid; grid-template-columns: 1fr 1.05fr; gap: 46px; padding: 36px 0 10px; }
.pd-gallery .main-img {
    border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg);
    aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; padding: 36px;
}
.pd-gallery .main-img img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pd-thumbs button {
    width: 78px; height: 78px; border: 1px solid var(--line); border-radius: var(--r-sm);
    padding: 8px; background: var(--bg); transition: all var(--t);
}
.pd-thumbs button.active, .pd-thumbs button:hover { border-color: var(--teal); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pd-info .pd-brand { color: var(--teal); font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .04em; }
.pd-info h1 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 8px 0 16px; }
.pd-short { color: var(--ink-2); margin-bottom: 22px; font-size: 1.02rem; }
.pd-price-row { display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--teal-50); border-radius: var(--r); margin-bottom: 22px; flex-wrap: wrap; }
.pd-price { font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.pd-price.request { font-size: 1.15rem; color: var(--teal-dark); }
.pd-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pd-meta { margin-top: 24px; display: grid; gap: 10px; }
.pd-meta div { display: flex; gap: 10px; font-size: .92rem; }
.pd-meta .k { color: var(--muted); min-width: 130px; }
.pd-meta .v { font-weight: 600; }

.pd-tabs { margin-top: 50px; }
.pd-tab-nav { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 26px; flex-wrap: wrap; }
.pd-tab-nav button { padding: 13px 22px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.pd-tab-nav button.active { color: var(--teal); border-color: var(--teal); }
.pd-tab-pane { display: none; }
.pd-tab-pane.active { display: block; }
.prose { max-width: 820px; color: var(--ink-2); }
.prose h2, .prose h3 { margin: 26px 0 12px; }
.prose p { margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.prose li { margin-bottom: 7px; }
.prose img { border-radius: var(--r); margin: 16px 0; }
/* Wide tables (e.g. from the WYSIWYG) scroll horizontally inside their own box
   instead of stretching the page container on mobile. */
.prose table { display: block; width: max-content; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-collapse: collapse; margin: 18px 0; font-size: .9rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--bg); font-weight: 700; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr:nth-child(odd) { background: var(--bg); }
.spec-table td { padding: 12px 16px; font-size: .92rem; border-bottom: 1px solid var(--line-2); }
.spec-table td:first-child { color: var(--muted); width: 42%; }
.spec-table td:last-child { font-weight: 600; }

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 820px;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* YouTube facade: crisp poster + play button, player loads on click */
.yt-facade { cursor: pointer; background: #000; }
.yt-facade .yt-poster {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; transition: transform var(--t), filter var(--t);
}
.yt-facade .yt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 54px; border-radius: 14px;
  background: rgba(210, 41, 48, .92);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
  transition: background var(--t), transform var(--t);
}
.yt-facade .yt-play::after {
  content: ""; position: absolute; top: 50%; left: 53%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent #fff;
}
.yt-facade:hover .yt-poster { transform: scale(1.03); filter: brightness(.92); }
.yt-facade:hover .yt-play { background: #d22930; transform: translate(-50%, -50%) scale(1.06); }
.yt-facade:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; }

/* =========================================================================
   ARTICLES
   ========================================================================= */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.article-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: all var(--t); }
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.article-card .ph { aspect-ratio: 16/10; background: var(--bg); overflow: hidden; }
.article-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.article-card .body { padding: 22px; }
.article-card time { color: var(--teal); font-size: .82rem; font-weight: 700; }
.article-card h3 { font-size: 1.08rem; margin: 8px 0 10px; }
.article-card p { font-size: .9rem; color: var(--muted); }

/* =========================================================================
   FORMS
   ========================================================================= */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field input, .field textarea, .field select {
    width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
    color: var(--ink); transition: border-color var(--t); background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); }
.field textarea { min-height: 120px; resize: vertical; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); }
.consent input { width: auto; margin-top: 3px; }
.form-msg { padding: 14px 18px; border-radius: var(--r-sm); margin-bottom: 18px; font-weight: 600; font-size: .92rem; }
.form-msg.ok { background: #e7f7ee; color: #1a7a44; }
.form-msg.err { background: #fdeaea; color: var(--red-dark); }

/* Form submit transition — fade the form out on success */
.ajax-form { transition: opacity .32s ease, transform .32s ease; }
.ajax-form.is-sending { opacity: 0; transform: translateY(-10px); pointer-events: none; }

/* Animated success card revealed in place of the form */
.form-success {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 16px; padding: 36px 22px; border-radius: var(--r);
    background: linear-gradient(135deg, #ecfaf1, #e3f6ec 60%, #def4f7);
    border: 1px solid #cdeede;
    opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.7,.2,1);
}
.form-success.show { opacity: 1; transform: none; }
.form-success .fs-check {
    width: 60px; height: 60px; flex: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #1a9a55; color: #fff; box-shadow: 0 8px 20px rgba(26,154,85,.32);
    transform: scale(.4); opacity: 0;
}
.form-success.show .fs-check { animation: fsPop .5s .12s cubic-bezier(.2,1.4,.4,1) forwards; }
.form-success .fs-check svg { width: 30px; height: 30px; }
.form-success .fs-text { font-size: 1.02rem; font-weight: 700; color: #176b3c; line-height: 1.5; }
@keyframes fsPop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .ajax-form, .form-success, .form-success .fs-check { transition: none !important; animation: none !important; }
    .form-success .fs-check { transform: none; opacity: 1; }
}

/* contacts grid */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-cards .c { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.contact-cards .ico { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--teal-50); color: var(--teal); display: flex; align-items: center; justify-content: center; }
.contact-cards .ico svg { width: 22px; height: 22px; }
.contact-cards .k { font-size: .8rem; color: var(--muted); }
.contact-cards .v { font-weight: 700; font-size: 1.05rem; }

/* Contacts map — full width, branded frame + subtle on-brand tint */
.contact-map {
    position: relative;
    margin-top: 40px;
    width: 100%;
    height: 420px;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--teal-100);
    box-shadow: 0 18px 40px -20px rgba(14, 138, 163, .35), var(--shadow-sm);
}
/* Force any admin-pasted embed (iframe with fixed width/height) to fill the frame */
.contact-map iframe,
.contact-map > * {
    display: block;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}
/* Harmonise the Google map toward the brand palette */
.contact-map iframe {
    filter: grayscale(.25) contrast(1.05) saturate(1.05);
    transition: filter var(--t);
}
.contact-map:hover iframe { filter: none; }
/* Soft brand-coloured gradient veil at the edges (does not block interaction) */
.contact-map::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
    background:
        linear-gradient(115deg, rgba(27, 182, 212, .14) 0%, rgba(27, 182, 212, 0) 32%),
        linear-gradient(300deg, rgba(210, 41, 48, .12) 0%, rgba(210, 41, 48, 0) 30%);
    mix-blend-mode: multiply;
}
@media (max-width: 1080px) {
    .contact-map { height: 320px; margin-top: 28px; }
}

/* pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span {
    min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line);
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ink-2);
}
.pagination a:hover { border-color: var(--teal); color: var(--teal); }
.pagination .current { background: var(--teal); color: #fff; border-color: var(--teal); }

.empty-state { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty-state > svg { width: 56px; height: 56px; stroke-width: 1.5; color: var(--muted-2); opacity: .6; }

/* =========================================================================
   MOBILE MENU
   ========================================================================= */
.mobile-menu { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.mobile-menu.open { visibility: visible; }
.mm-overlay { position: absolute; inset: 0; background: rgba(14,42,69,.5); opacity: 0; transition: opacity var(--t); }
.mobile-menu.open .mm-overlay { opacity: 1; }
.mm-panel {
    position: absolute; top: 0; right: 0; width: min(420px, 90%); height: 100%; background: #fff;
    transform: translateX(100%); transition: transform var(--t); overflow-y: auto; padding: 20px;
}
.mobile-menu.open .mm-panel { transform: translateX(0); }
.mm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mm-nav > li { border-bottom: 1px solid var(--line-2); }
.mm-nav > li > a, .mm-nav .mm-row > a { display: flex; align-items: center; width: 100%; padding: 15px 4px; font-weight: 700; color: var(--ink); }
.mm-nav > li > a:hover, .mm-nav .mm-row > a:hover { color: var(--teal); }
/* Catalog row: text link like the others + a separate chevron that toggles the list */
.mm-row { display: flex; align-items: center; justify-content: space-between; }
.mm-row > a { flex: 1; }
.mm-toggle { display: flex; align-items: center; justify-content: center; padding: 12px 4px 12px 16px; flex: none; }
.mm-nav svg { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform var(--t); }
.mm-toggle.open svg { transform: rotate(180deg); color: var(--teal); }
.mm-sub { display: none; padding: 2px 0 12px; }
.mm-sub.open { display: block; }
.mm-sub a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 4px 10px 16px; color: var(--ink-2); font-weight: 600; font-size: .92rem;
    border-left: 2px solid var(--line-2); margin-left: 4px;
}
.mm-sub a:hover { color: var(--teal); border-left-color: var(--teal); }
.mm-sub a .cnt {
    flex: none; min-width: 24px; text-align: center; font-size: .74rem; font-weight: 700;
    color: var(--teal-dark); background: var(--teal-50); border-radius: 20px; padding: 2px 8px;
}
.mm-foot { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.mm-store { gap: 9px; }
.mm-phone { font-size: 1.2rem; font-weight: 800; display: flex; gap: 8px; align-items: center; color: var(--ink); }
.mm-phone svg { width: 22px; height: 22px; flex: none; color: var(--teal); }
.mm-consult { margin-top: 4px; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1080px) {
    .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .prod-grid, .prod-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .prod-grid, .prod-grid.cols-3, .prod-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    :root { --header-h: 72px; }
    .header-bottom, .logo-tagline { display: none; }
    .burger { display: flex; }
    .header-top-right { gap: 12px; }
    .header-top-inner { min-height: 64px; }
    .logo img { height: 40px; }
    .usp { grid-template-columns: repeat(2, 1fr); gap: 8px 0; }
    .usp-item:nth-child(odd) { border-left: none; }
    .usp-item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; }
    .turnkey { grid-template-columns: 1fr; }
    .turnkey-visual { min-height: 280px; order: -1; }
    .catalog-wrap { grid-template-columns: 1fr; }
    .filters { position: static; }
    .product-detail { grid-template-columns: 1fr; gap: 28px; }
    .contacts-grid { grid-template-columns: 1fr; }
    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .get-consult-btn, .nav-store { display: none; }
    /* Mobile hero: stretch the slider photo to the full hero height (cover)
       instead of a thin contained strip; vertical white scrim keeps text legible. */
    .hero.has-photo .hero-bg { background-size: cover; background-position: center; }
    .hero.has-photo .hero-slide::before {
        background: linear-gradient(180deg, rgba(255,255,255,.30) 0%, rgba(255,255,255,.78) 52%, rgba(255,255,255,.96) 100%);
    }
}
@media (max-width: 620px) {
    .container { padding: 0 16px; }
    .section { padding: 48px 0; }
    .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .prod-grid, .prod-grid.cols-3, .prod-grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .brand-track li { flex: 0 0 calc((100% - 14px) / 2); }
    .hero-bg { background-position: center; }
    .hero-slide { min-height: 460px; }
    .hero h1 { font-size: 1.85rem; }
    .footer-top { grid-template-columns: 1fr; gap: 28px; }
    .article-grid { grid-template-columns: 1fr; }
    .cta-strip, .turnkey-text { padding: 30px 22px; }
    .float-cta { padding: 12px; max-width: 110px; }
}

/* =========================================================================
   DESIGN ENHANCEMENTS — gradients, ECG watermark, red accents, animations
   ========================================================================= */

/* Section title accent bar (red → teal) */
.section-head h2 { position: relative; }
.section-head h2::after {
    content: ''; display: block; width: 54px; height: 2px; margin-top: 14px;
    border-radius: 3px; background: linear-gradient(90deg, var(--red), var(--teal));
}

/* Cardio / ECG watermark line (echoes the logo) */
.ecg-line {
    position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 150px;
    fill: none; stroke-width: 2.5; pointer-events: none; z-index: 0; opacity: 0;
}
.ecg-line.ecg-white { stroke: #ffffff; }
.ecg-line.ecg-teal  { stroke: var(--teal); }
.ecg-line.ecg-red   { stroke: var(--red); }
.ecg-line path { stroke-dasharray: 2800; stroke-dashoffset: 2800; }
/* Draws itself in, then gently fades away so it never looks cluttered */
.ecg-line.in path { animation: ecgDraw 2.4s ease forwards; }
.ecg-line.in { animation: ecgShow 5.5s ease forwards; }
@keyframes ecgDraw { to { stroke-dashoffset: 0; } }
@keyframes ecgShow { 0% { opacity: 0; } 16% { opacity: .2; } 48% { opacity: .2; } 100% { opacity: 0; } }

/* Cooler gradient panels + keep content above watermark */
.usp {
    position: relative; overflow: hidden;
    background: linear-gradient(125deg, #0b2339 0%, #123a5e 52%, #0e7d99 128%);
}
.usp::after {
    content: ''; position: absolute; top: -40%; right: -10%; width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(52,208,230,.22), rgba(52,208,230,0) 70%);
    pointer-events: none;
}
.usp > .usp-item { position: relative; z-index: 1; }

.cta-strip {
    position: relative; overflow: hidden;
    background: linear-gradient(125deg, #0b2339 0%, #143a5c 55%, #0e2a45 100%);
}
.cta-strip::before {
    content: ''; position: absolute; top: -60%; right: 6%; width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(226,27,34,.30), rgba(226,27,34,0) 68%);
    pointer-events: none;
}
.cta-strip > * { position: relative; z-index: 1; }

.turnkey-text {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #ecf8fb 0%, #ddf1f7 55%, #cce9f2 100%);
}
.turnkey-text::before {
    content: ''; position: absolute; bottom: -50%; left: -8%; width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(21,166,196,.16), rgba(21,166,196,0) 70%);
    pointer-events: none;
}
.turnkey-text > * { position: relative; z-index: 1; }

/* Hero ECG draws itself in */
.hero-deco path { stroke-dasharray: 700; stroke-dashoffset: 700; animation: ecgDraw 2.6s ease .4s forwards; }

/* Scroll reveal (class added by JS, so no-JS keeps content visible) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; }
    .ecg-line path { stroke-dashoffset: 0 !important; animation: none !important; }
    .hero-deco path { stroke-dashoffset: 0 !important; animation: none !important; }
}

/* =========================================================================
   REQUEST SIDEBAR (slide-out) — branded, informative
   ========================================================================= */
.req-panel { width: min(450px, 96%); padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.req-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    padding: 22px 24px; background: linear-gradient(135deg, var(--navy-grad-1), var(--navy-grad-2));
}
.req-brand { display: flex; align-items: center; gap: 13px; }
.req-brand img { height: 38px; width: auto; filter: brightness(0) invert(1); }
.req-brand span {
    font-size: .6rem; text-transform: uppercase; letter-spacing: .04em; line-height: 1.35;
    color: rgba(255,255,255,.72); max-width: 150px; font-weight: 700; border-left: 2px solid rgba(255,255,255,.25); padding-left: 11px;
}
.req-head .icon-btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; flex: none; }
.req-head .icon-btn:hover { background: rgba(255,255,255,.22); }
.req-body { padding: 24px; overflow-y: auto; flex: 1; }
.req-body h3 { font-size: 1.3rem; }
.req-sub { color: var(--muted); font-size: .9rem; margin: 7px 0 20px; line-height: 1.5; }
.rm-product { display: none; color: var(--teal-dark); font-weight: 700; font-size: .9rem; margin-bottom: 16px; background: var(--teal-50); padding: 9px 13px; border-radius: var(--r-sm); }

.phone-field { display: flex; gap: 8px; }
.phone-field .phone-country {
    width: 108px; flex: none; padding: 13px 8px; border: 1.5px solid var(--line);
    border-radius: var(--r-sm); background: #fff; font-weight: 700; font-size: .9rem; cursor: pointer;
}
.phone-field .phone-country:focus { outline: none; border-color: var(--teal); }
.phone-field input[type=tel] { flex: 1; width: auto; min-width: 0; }

.req-contacts { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.req-contacts-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .98rem; margin-bottom: 12px; color: var(--ink); }
.req-contacts-title svg { width: 18px; height: 18px; color: var(--red); }
.req-c { display: flex; align-items: center; gap: 12px; padding: 7px 0; color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.req-c .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--teal-50); color: var(--teal-dark); display: flex; align-items: center; justify-content: center; flex: none; }
.req-c .ic svg { width: 17px; height: 17px; }
a.req-c:hover { color: var(--red); }
.req-socials { display: flex; gap: 9px; margin-top: 16px; }
.req-socials a { width: 38px; height: 38px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--ink-2); transition: all var(--t); }
.req-socials a:hover { background: var(--red); color: #fff; }
.req-socials svg { width: 18px; height: 18px; }

/* Callback link (replaces the old "free in Ukraine" caption under the phone) */
.callback-link {
    display: block; margin: 2px 0 0; padding: 0; background: none; border: 0;
    font: inherit; font-size: .68rem; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: var(--teal-dark); cursor: pointer;
    text-align: right; text-decoration: underline; text-underline-offset: 3px;
    text-decoration-color: rgba(20,134,168,.35); transition: color var(--t);
}
.callback-link:hover { color: var(--red); text-decoration-color: currentColor; }
.mm-callback { text-align: center; padding: 8px; width: 100%; }

/* =========================================================================
   CALLBACK POPUP (centered) — quick "request a call back"
   ========================================================================= */
.cb-modal {
    position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center;
    justify-content: center; padding: 20px; opacity: 0; visibility: hidden;
    transition: opacity var(--t), visibility var(--t);
}
.cb-modal.open { opacity: 1; visibility: visible; }
.cb-overlay { position: absolute; inset: 0; background: rgba(10,28,46,.55); backdrop-filter: blur(3px); }
.cb-box {
    position: relative; width: min(420px, 100%); background: #fff; border-radius: var(--r);
    box-shadow: var(--shadow-lg); padding: 30px 26px 26px; transform: translateY(16px) scale(.97);
    transition: transform var(--t);
}
.cb-modal.open .cb-box { transform: none; }
.cb-close { position: absolute; top: 12px; right: 12px; }
.cb-head { text-align: center; margin-bottom: 20px; }
.cb-ic {
    display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
    border-radius: 50%; background: var(--teal-50); color: var(--teal-dark); margin-bottom: 12px;
}
.cb-ic svg { width: 24px; height: 24px; }
.cb-head h3 { font-size: 1.3rem; margin-bottom: 8px; }
.cb-head p { color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* Make the CTA waves barely noticeable */
.cta-shader { opacity: .16; }

/* =========================================================================
   Custom UI select (enhances native <select.js-select>) — shadcn/radix style
   ========================================================================= */
.ui-select { position: relative; display: inline-block; }
select.ui-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ui-select-trigger {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
    min-width: 210px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
    background: #fff; font-weight: 600; font-size: .92rem; color: var(--ink-2); cursor: pointer;
    transition: border-color var(--t), box-shadow var(--t);
}
.ui-select-trigger:hover { border-color: var(--teal); }
.ui-select.open .ui-select-trigger { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(210,41,48,.12); }
.ui-select-trigger .chev { width: 16px; height: 16px; opacity: .6; transition: transform var(--t); flex: none; }
.ui-select.open .ui-select-trigger .chev { transform: rotate(180deg); }

.ui-select-panel {
    position: absolute; top: calc(100% + 7px); left: 0; min-width: 100%; width: max-content; max-width: 320px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
    padding: 6px; z-index: 60; opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98);
    transform-origin: top; transition: all var(--t);
}
.ui-select-panel.right { left: auto; right: 0; }
.ui-select.open .ui-select-panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.ui-select-item {
    position: relative; display: flex; align-items: center; gap: 8px;
    padding: 9px 14px 9px 34px; border-radius: var(--r-sm); font-size: .9rem; font-weight: 600;
    color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background var(--t), color var(--t);
}
.ui-select-item:hover { background: var(--teal-50); color: var(--teal-dark); }
.ui-select-item.on { color: var(--ink); }
.ui-select-check { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--teal); opacity: 0; }
.ui-select-check svg { width: 16px; height: 16px; }
.ui-select-item.on .ui-select-check { opacity: 1; }

/* Custom select — flags + compact variant */
.ui-select-label { display: inline-flex; align-items: center; gap: 8px; }
.ui-flag { width: 22px; height: 15px; border-radius: 3px; overflow: hidden; flex: none; display: inline-flex; box-shadow: 0 0 0 1px rgba(0,0,0,.07); }
.ui-flag svg { width: 100%; height: 100%; display: block; }
.ui-select-item .ui-flag { margin-right: 2px; }
.ui-select--compact .ui-select-trigger { min-width: 94px; padding: 11px 12px; }
.ui-select--compact .ui-select-panel { min-width: 128px; }
.phone-field .ui-select { flex: none; }

/* =========================================================================
   CTA — full-width section with shader background + red ECG on the block bg
   ========================================================================= */
.cta-section {
    position: relative; overflow: hidden; margin: 36px 0 64px; padding: 48px 0;
    background: linear-gradient(125deg, #0b2339 0%, #143a5c 55%, #0e2a45 100%);
}
.cta-section .cta-shader { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .18; }
/* red cardio line runs across the blue block background (behind content) */
.ecg-line.ecg-cta { top: 50%; bottom: auto; transform: translateY(-50%); height: 170px; z-index: 1; stroke: var(--red); }
.ecg-line.ecg-cta.in { animation: none; opacity: .16; }
.cta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 8px; }
.cta-inner p { color: rgba(255,255,255,.78); max-width: 560px; }

/* Phone field — equal height for country select and number input */
.phone-field .ui-select-trigger,
.phone-field input[type=tel] { height: 50px; }
.phone-field .ui-select-trigger { padding-top: 0; padding-bottom: 0; }

/* Brand card — categories where the brand is represented */
.brand-cats { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.brand-cat-chip {
    font-size: .7rem; font-weight: 600; color: var(--ink-2); background: #f4f8fb59;
    border: 1px solid var(--line); padding: 4px 10px; border-radius: 20px; line-height: 1.3;
}

/* Header phone dropdown (multiple numbers) */
.header-phone { position: relative; }
.hp-main { display: flex; align-items: center; gap: 5px; justify-content: flex-end; }
.hp-caret { color: var(--muted-2); display: inline-flex; cursor: pointer; transition: transform var(--t); }
.hp-caret svg { width: 14px; height: 14px; }
.header-phone.has-phones:hover .hp-caret { transform: rotate(180deg); color: var(--teal); }
.header-phone.has-phones::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 14px; }
.hp-drop {
    position: absolute; top: calc(100% + 12px); right: 0; min-width: 250px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 8px;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all var(--t); z-index: 60; text-align: left;
}
.header-phone.has-phones:hover .hp-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.hp-drop a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); font-weight: 700; font-size: .92rem; color: var(--ink-2); }
.hp-drop a:hover { background: var(--teal-50); color: var(--teal-dark); }
.hp-drop svg { width: 16px; height: 16px; color: var(--teal); flex: none; }

/* Brand logo on product page */
.pd-brand--logo { display: inline-flex; align-items: center; height: 44px; margin-bottom: 4px; }
.pd-brand--logo img { max-height: 44px; max-width: 150px; width: auto; height: auto; object-fit: contain; }
.pd-meta-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; }
.pd-meta-brand img { height: 22px; width: auto; max-width: 90px; object-fit: contain; }
.pd-meta-brand:hover { color: var(--red); }

/* Search input — thin focus border (remove default thick outline) */
.search-bar input { outline: none; }

/* =========================================================================
   MOBILE REFINEMENTS — compact hero, square USP, filter spoiler,
   2-up product list, scrollable breadcrumbs
   ========================================================================= */

/* Filters spoiler toggle — hidden on desktop, shown on mobile */
.filters-toggle { display: none; }

/* USP — square tiles (2×2) on mobile */
@media (max-width: 760px) {
    .usp {
        grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 18px;
        margin-top: -40px; border-radius: var(--r-lg);
    }
    .usp-item, .usp-item:nth-child(odd), .usp-item:nth-child(n+3) {
        flex-direction: column; align-items: center; text-align: center; gap: 10px;
        padding: 16px 10px; border: none !important;
        background: rgba(255,255,255,.05); border-radius: 14px;
    }
    .usp-ico svg { width: 38px; height: 38px; }
    .usp-item h4 { font-size: .9rem; margin-bottom: 3px; }
    .usp-item p { font-size: .76rem; line-height: 1.45; }
}

/* Breadcrumbs — single row, horizontal scroll */
@media (max-width: 760px) {
    .breadcrumbs { padding: 11px 0; }
    .breadcrumbs ol {
        flex-wrap: nowrap; overflow-x: auto; white-space: nowrap;
        -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px;
    }
    .breadcrumbs ol::-webkit-scrollbar { display: none; }
    .breadcrumbs li { flex: none; }
}

/* Catalog filters — collapsible spoiler that sticks while scrolling */
@media (max-width: 900px) {
    .filters-toggle {
        display: flex; align-items: center; gap: 11px; width: 100%;
        background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
        padding: 13px 16px; font-weight: 700; color: var(--ink); margin-bottom: 14px;
        position: sticky; top: calc(var(--header-h) + 8px); z-index: 30;
        scroll-margin-top: calc(var(--header-h) + 12px);
        box-shadow: var(--shadow-sm); cursor: pointer;
    }
    .filters-toggle .ft-ic { display: flex; color: var(--teal); }
    .filters-toggle .ft-ic svg { width: 18px; height: 18px; }
    .filters-toggle .ft-label { flex: 1; text-align: left; }
    .filters-toggle .ft-chev { display: flex; color: var(--muted); transition: transform var(--t); }
    .filters-toggle .ft-chev svg { width: 18px; height: 18px; }
    .filters-toggle.open .ft-chev { transform: rotate(180deg); }
    .filters { display: none; margin-bottom: 8px; }
    .filters.open { display: block; }
}

/* Compact hero + reposition slider arrows so they never cover the buttons */
@media (max-width: 620px) {
    .hero-content { padding: 36px 0 80px; }
    .hero h1 { margin-bottom: 14px; }
    .hero p { font-size: 1rem; margin-bottom: 22px; }
    .hero-btns { flex-direction: column; gap: 10px; align-items: stretch; }
    .hero-btns .btn-lg {
        width: 100%; justify-content: center; padding: 13px 18px; font-size: .95rem;
    }
    /* Side arrows clash with the full-width buttons on mobile — drop them,
       lift the dots to the image strip above the title where they stay visible. */
    .hero-arrow { display: none; }
    .hero-dots { top: 16px; bottom: auto; left: 50%; transform: translateX(-50%); }

    /* Tighter product cards so 2-up fits with full button text */
    .prod-card .ph { height: 150px; padding: 14px; }
    .prod-body { padding: 13px; }
    .prod-card h3 { font-size: .9rem; line-height: 1.2; height: 2.4em; }
    .prod-desc { display: none; }
    .prod-foot { gap: 9px; padding-top: 11px; }
    .prod-more { padding: 9px 11px; font-size: .82rem; }
    .price-req .l2 { font-size: .85rem; }
    .subcat-chip { font-size: .82rem; }
    /* When a category is selected, neighbours scroll horizontally in one row
       (saves vertical space); otherwise they keep wrapping into rows. */
    .subcat-chips--scroll {
        flex-wrap: nowrap;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        padding-bottom: 8px;
        scrollbar-width: thin;
    }
    .subcat-chips--scroll .subcat-chip { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }
}
.search-bar input:focus { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(210,41,48,.10); }
