/*
Theme Name: МедТех
Theme URI: https://ntr69.lkcdx.ru
Author: OdinAss
Author URI: https://ntr69.lkcdx.ru
Description: Кастомная тема корпоративного сайта поставщика медицинского оборудования. Тёмный glassmorphism-дизайн (navy + сине-бирюзовые акценты), каталог оборудования, AI-консультант, доступность AA.
Version: 3.1.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: medteh
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap&subset=cyrillic,cyrillic-ext,latin');

/* ===================================================================
   DESIGN TOKENS
   =================================================================== */
:root {
  /* palette */
  --background: #060A14;
  --surface: #0B1220;
  --foreground: #EAF2FF;
  --muted: #B6C4DC;          /* solid muted text — AA on dark */
  --muted-2: #93A4C1;        /* secondary, still ≥4.5:1 on navy */
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.10);
  --blue: #4F8EFF;
  --sky: #38BDF8;
  --teal: #2DD4BF;
  --indigo: #818CF8;
  --link: #9CC4FF;

  /* status */
  --ok: #34D399;       --ok-bg: rgba(52,211,153,0.14);   --ok-bd: rgba(52,211,153,0.40);
  --order: #FBBF24;    --order-bg: rgba(251,191,36,0.14); --order-bd: rgba(251,191,36,0.42);
  --off: #94A3B8;      --off-bg: rgba(148,163,184,0.14);  --off-bd: rgba(148,163,184,0.40);

  /* radius */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;

  /* spacing grid (4px) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-6: 24px;
  --s-8: 32px; --s-12: 48px; --s-16: 64px;

  /* layout */
  --container: 1280px;

  /* fonts */
  --font-display: 'Manrope';
  --font-body: 'Inter';

  /* motion */
  --ease: cubic-bezier(.22,1,.36,1);

  --solid-glass: #0E1726;   /* opaque fallback for glass surfaces */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body), 'Inter', -apple-system, system-ui, sans-serif;
  font-size: 16px; line-height: 1.625;            /* 16/26 */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* ── TYPOGRAPHY SCALE ── */
h1, h2, h3, h4 { font-family: var(--font-display), 'Inter', system-ui, sans-serif; color: var(--foreground); }
h1 { font-size: 52px; line-height: 60px; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-size: 24px; line-height: 32px; font-weight: 700; }
.caption { font-size: 13px; line-height: 18px; color: var(--muted); }
.lead { font-size: 18px; line-height: 28px; color: var(--muted); }
p { color: var(--muted); }

/* tabular numerals for prices / specs / ids */
.tnum, .price, .price-ask, .spec-val, .sku, .kpi-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── ACCESSIBLE FOCUS (never removed) ── */
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: var(--r-sm); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--solid-glass); color: var(--foreground);
  padding: 12px 18px; border-radius: 0 0 var(--r-md) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===================================================================
   GLASS  (legible: solid text, opaque fallback, reduced-transparency)
   =================================================================== */
.glass {
  background: rgba(255,255,255,0.045);
  -webkit-backdrop-filter: blur(26px) saturate(150%); backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.10);
}
.glass-card {
  background: rgba(255,255,255,0.035);
  -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 4px 24px rgba(0,0,0,0.38);
  border-radius: var(--r-lg);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.glass-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(79,142,255,0.45);
  box-shadow: 0 16px 48px rgba(56,189,248,0.18), 0 4px 24px rgba(0,0,0,0.5);
  transform: translateY(-4px);
}

/* Opaque fallback where backdrop-filter is unsupported */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .glass-card, .nav-glass, .scroll-top, .spec-chip, .section-tag { background: var(--solid-glass) !important; }
}
/* Users who prefer less transparency → opaque surfaces */
@media (prefers-reduced-transparency: reduce) {
  .glass, .glass-card, .nav-glass, .scroll-top, .spec-chip, .section-tag {
    background: var(--solid-glass) !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
}

/* ── GRADIENTS / TEXT GRADIENTS ── */
.gradient-bg {
  background:
    radial-gradient(ellipse 70% 55% at 15% 10%, rgba(79,142,255,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 85% 80%, rgba(45,212,191,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 60% 35%, rgba(56,189,248,0.14) 0%, transparent 50%),
    radial-gradient(ellipse 60% 55% at 10% 70%, rgba(129,140,248,0.12) 0%, transparent 55%),
    #060A14;
}
.text-grad-main {
  background: linear-gradient(135deg, #7CC4FF, #4F8EFF, #5EEAD4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.text-grad-rose {
  background: linear-gradient(135deg, #6FA8FF 0%, #5EEAD4 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── BUTTONS (states: hover/focus/active/disabled) ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 24px; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff; font-size: 15px; font-weight: 600; font-family: inherit;
  border: none; cursor: pointer;
  box-shadow: 0 6px 20px rgba(79,142,255,0.34);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(45,212,191,0.46); color: #fff; }
.btn-primary:active { transform: translateY(0); filter: brightness(.96); }
.btn-primary:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.btn-primary[disabled], .btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary svg, .btn-outline svg, .req-btn svg, .cat-btn svg { stroke: currentColor; stroke-width: 1.75; fill: none; }
.btn-primary svg, .btn-outline svg { width: 17px; height: 17px; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 24px; border-radius: var(--r-md);
  color: var(--foreground); font-size: 15px; font-weight: 600; font-family: inherit;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: rgba(79,142,255,0.45); color: #fff; transform: translateY(-1px); }
.btn-outline:active { transform: translateY(0); }
.btn-outline:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }

/* ── SECTION TAG / OVERLINE ── */
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(79,142,255,0.12); border: 1px solid rgba(79,142,255,0.30);
  border-radius: var(--r-pill); padding: 6px 14px;
  font-size: 12px; font-weight: 700; color: var(--link);
  letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: var(--s-4);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.section-tag svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.75; fill: none; }

/* ── STATUS CHIPS (pill, colour + icon + text) ── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1;
}
.chip svg { width: 13px; height: 13px; flex: 0 0 auto; stroke: currentColor; stroke-width: 2; fill: none; }
.chip-ok    { color: var(--ok);    background: var(--ok-bg);    border: 1px solid var(--ok-bd); }
.chip-order { color: var(--order); background: var(--order-bg); border: 1px solid var(--order-bd); }
.chip-off   { color: var(--off);   background: var(--off-bg);   border: 1px solid var(--off-bd); }
.chip-ru    { color: var(--link);  background: rgba(79,142,255,0.12); border: 1px solid rgba(79,142,255,0.34); }

/* ── ICONS ── */
.cat-ico {
  width: 48px; height: 48px; border-radius: var(--r-md); flex: 0 0 auto;
  display: grid; place-items: center; color: var(--sky);
  background: linear-gradient(135deg, rgba(79,142,255,0.20), rgba(45,212,191,0.18));
  border: 1px solid rgba(255,255,255,0.10);
}
.cat-ico svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.75; fill: none; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(79,142,255,0.45); }

/* ── ORBS ── */
@keyframes drift1 { 0% { transform: translate(0,0) scale(1);} 100% { transform: translate(50px,70px) scale(1.1);} }
@keyframes drift2 { 0% { transform: translate(0,0) scale(1);} 100% { transform: translate(-60px,40px) scale(1.07);} }
@keyframes drift3 { 0% { transform: translate(0,0) scale(1);} 100% { transform: translate(40px,-50px) scale(1.05);} }
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.32; }
.orb1 { width: 750px; height: 750px; background: radial-gradient(circle, #4F8EFF, transparent); top: -220px; left: -220px; animation: drift1 20s ease-in-out infinite alternate; }
.orb2 { width: 550px; height: 550px; background: radial-gradient(circle, #38BDF8, transparent); top: 180px; right: -160px; animation: drift2 24s ease-in-out infinite alternate; }
.orb3 { width: 640px; height: 640px; background: radial-gradient(circle, #2DD4BF, transparent); bottom: -180px; left: 32%; animation: drift3 18s ease-in-out infinite alternate; }

/* ── SCROLL REVEAL (opacity + translateY, fires once) ── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .56s var(--ease), transform .56s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===================================================================
   HEADER: utility bar + main nav + mega-menu (OPAQUE) + off-canvas
   =================================================================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }

/* Utility bar */
.utility-bar { background: #08101E; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 13px; }
.utility-inner { max-width: var(--container); margin: 0 auto; padding: 7px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.utility-bar .u-left, .utility-bar .u-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.utility-bar a, .utility-bar span { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.utility-bar a:hover { color: var(--sky); }
.utility-bar svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.75; fill: none; color: var(--sky); }

/* Main nav */
.nav-glass {
  height: 64px; display: flex; align-items: center;
  background: rgba(6,10,20,0.72);
  -webkit-backdrop-filter: blur(32px) saturate(170%); backdrop-filter: blur(32px) saturate(170%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background .35s var(--ease);
}
.site-header.scrolled .nav-glass { background: rgba(6,10,20,0.94); }
.nav-inner { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 22px; position: static; }
.nav-logo { display: flex; align-items: center; gap: 11px; color: #fff; font-weight: 800; font-size: 18px; font-family: var(--font-display); min-height: 44px; flex: 0 0 auto; }
.nav-logo .logo-mark { width: 38px; height: 38px; border-radius: var(--r-md); display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #4F8EFF, #2DD4BF); box-shadow: 0 6px 16px rgba(79,142,255,0.45); }
.nav-logo .logo-mark svg { width: 21px; height: 21px; stroke: #fff; stroke-width: 2; fill: none; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0 auto 0 8px; }
.nav-links > li { position: static; }
.nav-links > li > a, .nav-links > li > .nav-toplink {
  color: var(--foreground); font-size: 14.5px; font-weight: 600; padding: 10px 12px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer; background: none; border: none; font-family: inherit; min-height: 44px;
  transition: color .2s, background .2s;
}
.nav-links > li > a:hover, .nav-links > li > .nav-toplink:hover, .nav-links > li.open > .nav-toplink { color: var(--sky); background: rgba(255,255,255,0.05); }
.nav-links .caret { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; transition: transform .2s; }
.nav-links > li.open .caret { transform: rotate(180deg); }

.nav-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.nav-search { width: 42px; height: 42px; border-radius: var(--r-md); display: grid; place-items: center; cursor: pointer; color: var(--foreground); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); }
.nav-search svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.9; fill: none; }
.nav-search:hover { border-color: rgba(79,142,255,0.45); color: var(--sky); }
.nav-phone-mobile { display: none; width: 42px; height: 42px; border-radius: var(--r-md); place-items: center; color: var(--foreground); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); }
.nav-phone-mobile svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.9; fill: none; }
.nav-phone-mobile:hover { color: var(--sky); border-color: rgba(79,142,255,0.45); }

.menu-burger { display: none; width: 44px; height: 44px; border-radius: var(--r-md); cursor: pointer; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: #fff; place-items: center; }
.menu-burger svg { width: 24px; height: 24px; stroke: #fff; stroke-width: 2; fill: none; }

/* ── DROPDOWN / MEGA-MENU PANEL — OPAQUE, detaches from page ── */
.nav-dropdown {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #0E2233;                       /* SOLID dark panel — no see-through */
  border-top: 1px solid rgba(79,142,255,0.25);
  border-bottom: 1px solid rgba(0,0,0,0.4);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  padding: 28px 0; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav-links > li.open .nav-dropdown { opacity: 1; visibility: visible; transform: none; }
.nav-dropdown-inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 3fr 1fr; gap: 28px; }

.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 24px; }
.mega-group { padding: 8px; }
.mega-group .mega-head { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--foreground); margin-bottom: 8px; }
.mega-group .mega-head svg { width: 18px; height: 18px; stroke: var(--sky); stroke-width: 1.75; fill: none; flex: 0 0 auto; }
.mega-group ul { list-style: none; }
.mega-group li a { display: block; padding: 5px 0 5px 27px; font-size: 13px; color: var(--muted); border-radius: 4px; transition: color .15s; }
.mega-group li a:hover { color: var(--sky); }

.mega-promo { background: #0A1B2A; border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r-md); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.mega-promo a { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600; color: var(--foreground); padding: 9px 12px; border-radius: var(--r-sm); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); transition: border-color .15s, background .15s; }
.mega-promo a:hover { border-color: rgba(79,142,255,0.45); background: rgba(79,142,255,0.10); color: var(--sky); }
.mega-promo a svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.75; fill: none; }

/* simple dropdown (Услуги/О компании) — opaque */
.nav-submenu {
  position: absolute; top: 100%; min-width: 280px;
  background: #0E2233; border: 1px solid rgba(79,142,255,0.22);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55); border-radius: 0 0 var(--r-md) var(--r-md);
  padding: 10px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav-links > li.open .nav-submenu { opacity: 1; visibility: visible; transform: none; }
.nav-submenu li a { display: block; padding: 9px 14px; font-size: 13.5px; color: var(--muted); border-radius: var(--r-sm); transition: background .15s, color .15s; }
.nav-submenu li a:hover { background: rgba(79,142,255,0.12); color: var(--sky); }

/* ── SEARCH OVERLAY ── */
.search-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(6,10,20,0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: none; align-items: flex-start; justify-content: center; padding-top: 18vh; }
.search-overlay.open { display: flex; }
.search-overlay form { width: 100%; max-width: 620px; padding: 0 24px; display: flex; gap: 10px; }
.search-overlay input { flex: 1; padding: 16px 20px; border-radius: var(--r-md); font-size: 18px; color: var(--foreground); background: #0E2233; border: 1px solid rgba(79,142,255,0.3); }
.search-overlay input:focus { outline: none; box-shadow: 0 0 0 3px rgba(79,142,255,0.22); }
.search-close { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; cursor: pointer; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: #fff; }
.search-close svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 2; fill: none; }

/* ── OFF-CANVAS MOBILE MENU + SCRIM (SOLID / OPAQUE — must NOT show through) ── */
.nav-scrim { position: fixed; inset: 0; z-index: 9990; background: rgba(0,0,0,0.6); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s; }
.nav-scrim.open { opacity: 1; visibility: visible; }
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 9999; width: min(88vw, 384px);
  background: #0E2233 !important;            /* SOLID dark navy — fully opaque */
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; opacity: 1 !important;
  border-left: 1px solid rgba(255,255,255,0.12);
  box-shadow: -16px 0 48px rgba(0,0,0,0.6);
  transform: translateX(100%); transition: transform .28s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
}
.mobile-menu.open { transform: none; }
.mobile-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.10); }
.mobile-close { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; cursor: pointer; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: #fff; }
.mobile-close svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 2; fill: none; }
.mobile-nav { list-style: none; padding: 8px 0; flex: 1; }
.mobile-nav > li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav > li > a { display: flex; align-items: center; min-height: 50px; padding: 0 20px; font-size: 15.5px; font-weight: 600; color: #EAF2FF !important; }
.acc-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; padding: 0 20px; font-size: 15.5px; font-weight: 600; color: #EAF2FF !important; background: none; border: none; font-family: inherit; cursor: pointer; }
.acc-trigger svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; transition: transform .2s; }
.acc-trigger.open svg { transform: rotate(180deg); }
.acc-panel { display: none; padding: 4px 0 10px; background: rgba(0,0,0,0.18); }
.acc-panel.open { display: block; }
.acc-panel .acc-group { padding: 6px 20px; }
.acc-panel .acc-group > span { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sky); margin-bottom: 4px; }
.acc-panel a { display: block; padding: 7px 20px 7px 32px; font-size: 13.5px; color: var(--muted); }
.acc-panel a:hover { color: var(--sky); }
.mobile-foot { padding: 16px 20px 24px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; flex-direction: column; gap: 10px; }
.mobile-foot a.btn-primary, .mobile-foot a.btn-outline { width: 100%; }
.mobile-foot .m-contact { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.mobile-foot .m-contact svg { width: 16px; height: 16px; stroke: var(--sky); stroke-width: 1.75; fill: none; }

@media (max-width: 1100px) {
  .nav-links, .nav-search { display: none !important; }
  .menu-burger { display: grid !important; }
  .nav-inner { gap: 14px; }
  /* logo left, actions (incl. burger) pushed to the far right */
  .nav-actions { margin-left: auto; }
  .nav-phone-mobile { display: grid; }
}
/* below 600px keep only the burger (+ phone) on the right to save space */
@media (max-width: 600px) {
  .nav-cta-desktop { display: none !important; }
}

/* ── BRAND WALL (grayscale logos) ── */
.brand-wall { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: center; margin-top: var(--s-12); }
.brand-wall .brand { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .04em; color: #C7D3E6; filter: grayscale(1); opacity: .62; transition: opacity .2s var(--ease), filter .2s var(--ease); }
.brand-wall .brand:hover { opacity: 1; filter: grayscale(0); color: #fff; }

/* ── CATEGORY FILTER ── */
.cat-filter { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; margin: var(--s-6) 0 var(--s-8); }
.cat-btn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px;
  padding: 8px 16px; border-radius: var(--r-pill); cursor: pointer;
  font-size: 13px; font-weight: 600; font-family: inherit;
  color: var(--foreground); background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.cat-btn svg { width: 15px; height: 15px; }
.cat-btn:hover { border-color: rgba(79,142,255,0.45); }
.cat-btn.active { color: #fff; background: linear-gradient(135deg,#4F8EFF,#2DD4BF); border-color: transparent; box-shadow: 0 6px 18px rgba(79,142,255,0.40); }

/* ── SECTIONS ── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sec { position: relative; z-index: 1; padding-top: 88px; padding-bottom: 88px; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto var(--s-8); }
.sec-head .lead { margin-top: var(--s-3); }
.sec-hero { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 150px 24px 72px; }
/* anchor sections clear the fixed header (utility bar + nav ≈ 102px) */
section[id] { scroll-margin-top: 110px; }
.site-main { position: relative; z-index: 1; }

/* ── KPI / COUNT-UP ── */
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s-4); }
.kpi { text-align: center; padding: var(--s-6) var(--s-4); }
.kpi-ico { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--sky); display: grid; place-items: center; }
.kpi-ico svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 1.75; fill: none; }
.kpi-num { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1.1; }
.kpi-label { margin-top: var(--s-2); font-size: 14px; color: var(--muted); }

/* ── HERO STATS band ── */
.hero-stats { margin-top: var(--s-12); border-radius: var(--r-lg); padding: 24px 16px; display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s-2); max-width: 760px; width: 100%; }

/* ── GRIDS ── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--s-4); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px,1fr)); gap: var(--s-4); }

/* ── CARDS (category / advantage / step) ── */
.feature-card { padding: var(--s-6); height: 100%; }
.feature-card .cat-ico { margin-bottom: var(--s-4); }
.feature-card h3 { font-size: 18px; line-height: 26px; margin-bottom: 6px; }
.feature-card p { font-size: 14px; line-height: 22px; color: var(--muted); }

/* ── PRODUCT CARD ── */
.prod-card { padding: var(--s-4); height: 100%; display: flex; flex-direction: column; gap: var(--s-3); border-radius: var(--r-lg); }
.prod-top { display: flex; align-items: flex-start; gap: var(--s-3); }
.prod-meta { min-width: 0; flex: 1; }
.prod-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.prod-name { font-family: var(--font-display); font-size: 16px; line-height: 22px; font-weight: 700; color: var(--foreground); }
.prod-brand { font-size: 13px; color: var(--muted-2); margin-top: 4px; }
.prod-sku { font-size: 12px; color: var(--muted-2); }
.prod-desc { font-size: 13.5px; line-height: 20px; color: var(--muted); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.spec-table td { padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.06); vertical-align: top; color: var(--muted); }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table .spec-val { color: var(--foreground); text-align: right; font-weight: 600; padding-left: 10px; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: var(--s-2); }
.price { font-family: var(--font-display); font-size: 20px; font-weight: 800; }
.price-ask { font-size: 14px; font-weight: 600; color: var(--muted); }
.req-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: var(--r-md);
  color: var(--link); background: rgba(79,142,255,0.08); border: 1px solid rgba(79,142,255,0.32);
  transition: background .2s var(--ease), color .2s var(--ease); white-space: nowrap;
}
.req-btn:hover { background: rgba(79,142,255,0.18); color: #fff; }
.req-btn svg { width: 14px; height: 14px; }

/* ── CATALOG TEASER (Показать ещё) ── */
.prod-card.is-extra { display: none; }                 /* hidden until expanded / filtered */
#catalog-grid.expanded .prod-card.is-extra { display: flex; }
.catalog-more .btn-outline { min-width: 220px; }

/* ── TIMELINE ── */
.timeline { display: grid; grid-template-columns: repeat(6,1fr); gap: var(--s-3); margin-top: var(--s-8); }
.tl-step { text-align: center; position: relative; padding-top: 8px; }
.tl-dot { width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-weight: 800; color: #fff; font-family: var(--font-display); background: linear-gradient(135deg,#4F8EFF,#2DD4BF); box-shadow: 0 6px 16px rgba(79,142,255,0.35); }
.tl-step h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.tl-step p { font-size: 12.5px; line-height: 18px; color: var(--muted); }

/* ── SERVICES ── */
.svc-card { padding: var(--s-6); height: 100%; }
.svc-card .cat-ico { margin-bottom: var(--s-4); }
.svc-card h3 { font-size: 18px; line-height: 26px; margin-bottom: 6px; }
.svc-card p { font-size: 14px; line-height: 22px; color: var(--muted); }

/* ── SKELETON (shimmer) ── */
.skeleton-grid { display: none; }
.skel-card { padding: var(--s-4); border-radius: var(--r-lg); min-height: 230px; }
.skel-line { border-radius: var(--r-sm); background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.12) 37%, rgba(255,255,255,0.05) 63%); background-size: 400% 100%; animation: shimmer 1400ms ease-in-out infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ── CONTENT (pages / posts) ── */
.entry-content { color: var(--muted); line-height: 1.75; font-size: 16px; }
.entry-content h2 { font-size: 28px; line-height: 36px; margin: 28px 0 12px; }
.entry-content h3 { font-size: 22px; line-height: 30px; margin: 22px 0 10px; }
.entry-content p { margin: 0 0 16px; }
.entry-content ul, .entry-content ol { margin: 0 0 16px 22px; }
.entry-content li { margin-bottom: 6px; }
.entry-content a { color: var(--link); text-decoration: underline; }
.entry-content strong { color: var(--foreground); }

/* ── FORMS ── */
.simple-form label { display: block; font-size: 13px; font-weight: 600; color: var(--foreground); margin-bottom: 6px; }
.simple-form input, .simple-form textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-md); margin-bottom: var(--s-4);
  font-family: inherit; font-size: 16px; color: var(--foreground);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.simple-form input::placeholder, .simple-form textarea::placeholder { color: var(--muted-2); }
.simple-form input:focus, .simple-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79,142,255,0.18); }
.ff-form-wrap .fluentform input, .ff-form-wrap .fluentform textarea, .ff-form-wrap .fluentform select {
  background: rgba(255,255,255,0.06) !important; border: 1px solid rgba(255,255,255,0.16) !important;
  color: var(--foreground) !important; border-radius: var(--r-md) !important; font-size: 16px !important;
}
.ff-form-wrap .fluentform input:focus, .ff-form-wrap .fluentform textarea:focus, .ff-form-wrap .fluentform select:focus { box-shadow: 0 0 0 3px rgba(79,142,255,0.18) !important; border-color: var(--blue) !important; }
.ff-form-wrap .fluentform label { color: var(--foreground) !important; }
.ff-form-wrap .fluentform .ff-btn-submit { background: linear-gradient(135deg,#4F8EFF,#2DD4BF) !important; border: none !important; color: #fff !important; border-radius: var(--r-md) !important; font-weight: 600 !important; min-height: 44px !important; }
.form-note { font-size: 12.5px; color: var(--muted-2); margin-top: 4px; }
.form-ok { background: var(--ok-bg); border: 1px solid var(--ok-bd); color: var(--ok); padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 16px; font-weight: 600; }

/* ── FOOTER ── */
.site-footer { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,0.07); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-8); }
.site-footer h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--foreground); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--sky); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-contacts { list-style: none; }
.footer-contacts li { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.footer-contacts svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.75; fill: none; margin-top: 6px; flex: 0 0 auto; color: var(--sky); }
.footer-bottom { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid rgba(255,255,255,0.06); text-align: center; color: var(--muted-2); font-size: 12.5px; }

/* ── BACK TO TOP ── */
.scroll-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer; padding: 0;
  display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,0.10);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.22);
  opacity: 0; transform: translateY(16px) scale(.85); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.scroll-top.show { opacity: 1; transform: none; pointer-events: auto; }
.scroll-top svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2; fill: none; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .timeline { grid-template-columns: repeat(3,1fr); gap: var(--s-4); }
}
@media (max-width: 1100px) {
  .utility-bar .u-left .u-hours { display: none; }
}
@media (max-width: 768px) {
  .mobile-hidden { display: none !important; }
  h1 { font-size: 34px; line-height: 42px; }
  h2 { font-size: 28px; line-height: 36px; }
  h3 { font-size: 22px; line-height: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .sec { padding-top: 56px; padding-bottom: 56px; }
  .utility-inner { padding: 7px 16px; }
  .utility-bar .u-left span:not(.u-city) { display: none; }
}
@media (max-width: 640px) {
  .hero-stats, .kpi-grid { grid-template-columns: repeat(2,1fr) !important; }
  .grid-3, .grid-cards, .timeline { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .sec { padding-top: 48px; padding-bottom: 48px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .utility-bar .u-right .u-email { display: none; }
}

/* ===================================================================
   MOTION PREFERENCES
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .orb { animation: none !important; }
  .glass-card:hover { transform: none; }
  .skel-line { animation: none !important; }
}
