/* ============================================================
   ИНТЕГРАЦИЯ — техно / инженерный концепт (главная)
   Шрифты: Unbounded (дисплей) + IBM Plex Sans (текст) + IBM Plex Mono (данные)
   Подключается последним и перекрывает прежний дизайн шапки/первого экрана.
   ============================================================ */
:root{
  --acc:#2F6AE1; --acc-d:#2250B8; --acc-l:#7AA6F6;
  --ink:#1E232A; --ink2:#12161C; --ink3:#0C0F14;
  --line:#2A313B; --steel:#8A94A0; --steel-l:#AEB7C2; --white:#EEF2F7;
  --f-display:"Unbounded", sans-serif;
  --f-body:"IBM Plex Sans", sans-serif;
  --f-mono:"IBM Plex Mono", monospace;
}
body{ font-family:var(--f-body); }
.xjs-src{ display:none !important; }

/* старые бары шапки больше не используются — на случай кэша прячем */
.header-bar,.header,.top-menu{ display:none; }

/* заголовки секций — дисплейным шрифтом */
.promo-strip-title,.adv-title,.front-contacts h2.fc-title,
.front-text h1,.front-text h2,.main-container h1,
.front-products .promo-products > .title{ font-family:var(--f-display); letter-spacing:-.01em; }

/* ============================================================ ШАПКА */
.xhdr{ position:sticky; top:0; z-index:1000; font-family:var(--f-body); }

.xhdr-utility{ background:var(--ink3); border-bottom:1px solid #1b2129; }
.xhdr-utility-in{ display:flex; align-items:center; gap:22px; height:34px;
  font-family:var(--f-mono); font-size:11.5px; letter-spacing:.02em; color:var(--steel); }
.xu-geo{ color:var(--steel-l); }
.xu-geo:before{ content:""; display:inline-block; width:7px; height:7px; margin-right:8px;
  background:var(--acc); border-radius:2px; transform:translateY(0); box-shadow:0 0 0 3px rgba(47,106,225,.18); }
.xu-hours{ color:var(--steel); }
.xu-mail{ margin-left:auto; color:var(--steel-l); text-decoration:none; }
.xu-mail:hover{ color:#fff; }

.xhdr-bar{ background:var(--ink); border-bottom:1px solid var(--line);
  box-shadow:0 1px 0 rgba(47,106,225,.0); transition:box-shadow .2s, background .2s; }
.xhdr-bar:after{ content:""; position:absolute; }
.xhdr-bar-in{ display:flex; align-items:center; gap:28px; height:78px; transition:height .2s; }
.xhdr.xshrink .xhdr-bar-in{ height:62px; }
.xhdr.xshrink .xhdr-bar{ box-shadow:0 10px 30px rgba(0,0,0,.35); }

.xhdr-logo{ display:flex; align-items:center; flex:none; }
.xhdr-logo img{ display:block; height:54px; width:auto; transition:height .2s; }
.xhdr.xshrink .xhdr-logo img{ height:44px; }

.xhdr-nav{ display:flex; align-items:center; gap:4px; margin-left:4px; }
.xhdr-nav a{ position:relative; padding:9px 14px; color:var(--steel-l); text-decoration:none;
  font-size:13.5px; font-weight:500; letter-spacing:.01em; border-radius:8px; transition:color .15s, background .15s; }
.xhdr-nav a:hover{ color:#fff; }
.xhdr-nav a:not(.xnav-cat):after{ content:""; position:absolute; left:14px; right:14px; bottom:4px; height:2px;
  background:var(--acc); transform:scaleX(0); transform-origin:left; transition:transform .2s; border-radius:2px; }
.xhdr-nav a:not(.xnav-cat):hover:after{ transform:scaleX(1); }
.xhdr-nav .xnav-cat{ display:inline-flex; align-items:center; gap:9px; color:#fff; font-weight:600;
  background:linear-gradient(180deg,#3D77EA,#2F6AE1); padding:10px 18px; border-radius:9px;
  box-shadow:0 6px 16px rgba(47,106,225,.28); }
.xhdr-nav .xnav-cat:before{ content:""; width:15px; height:11px; flex:none;
  background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 11' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1.5h13M1 5.5h13M1 9.5h13'/%3E%3C/svg%3E") no-repeat center/contain; }
.xhdr-nav .xnav-cat:hover{ background:linear-gradient(180deg,#2F6AE1,#2250B8); transform:translateY(-1px); }

.xhdr-actions{ display:flex; align-items:center; gap:18px; margin-left:auto; flex:none; }
.xhdr-search form{ margin:0; }
.xhdr-search .bx-input-group{ position:relative; }
.xhdr-search input{ width:210px; height:42px; box-sizing:border-box; padding:0 42px 0 15px;
  background:#171C23; border:1px solid var(--line); border-radius:9px; color:#fff;
  font-family:var(--f-body); font-size:13.5px; outline:none; transition:border-color .15s, width .2s, background .15s; }
.xhdr-search input::placeholder{ color:#6B7480; }
.xhdr-search input:focus{ border-color:var(--acc); background:#1B212A; width:240px; }
.xhdr-search button{ position:absolute; right:0; top:0; width:42px; height:42px; border:0; cursor:pointer; background:transparent;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A94A0' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.2-3.2'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:center; background-size:18px; }
.xhdr-search button:hover{ background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F6AE1' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.2-3.2'/%3E%3C/svg%3E"); }

.xhdr-phone{ display:flex; flex-direction:column; align-items:flex-end; text-decoration:none; padding-left:18px; position:relative; }
.xhdr-phone:before{ content:""; position:absolute; left:0; top:50%; transform:translateY(-50%); width:1px; height:34px; background:var(--line); }
.xhdr-phone-num{ font-family:var(--f-display); font-weight:700; font-size:18px; color:#fff; letter-spacing:.01em; line-height:1.1; }
.xhdr-phone-note{ font-family:var(--f-mono); font-size:10.5px; color:var(--steel); margin-top:3px; letter-spacing:.01em; }
.xhdr-phone:hover .xhdr-phone-num{ color:var(--acc-l); }

/* бургер (моб.) — прячем на десктопе */
.mobile-menu-block{ display:none; }

/* ============================================================ HERO */
.xhero{ position:relative; background:var(--ink2); overflow:hidden; border-bottom:1px solid var(--line); }
.xhero-bg{ position:absolute; inset:0; z-index:0; }
.xhero-grid{ position:absolute; inset:0;
  background-image:linear-gradient(rgba(122,166,246,.06) 1px, transparent 1px),
                   linear-gradient(90deg, rgba(122,166,246,.06) 1px, transparent 1px);
  background-size:46px 46px; mask-image:linear-gradient(180deg,#000,transparent 85%); }
.xhero-photo{ position:absolute; right:0; top:0; bottom:0; width:58%;
  background:url("/local/templates/integraciya/images/front-banner.jpg") center/cover no-repeat;
  opacity:.5; filter:grayscale(.3) contrast(1.05);
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 55%);
          mask-image:linear-gradient(90deg, transparent, #000 55%); }
.xhero-glow{ position:absolute; left:-10%; top:-30%; width:60%; height:120%;
  background:radial-gradient(closest-side, rgba(47,106,225,.22), transparent 70%); }
.xhero-scan{ position:absolute; left:0; right:0; top:0; height:2px;
  background:linear-gradient(90deg, transparent, rgba(122,166,246,.55), transparent);
  animation:xscan 6.5s linear infinite; }
@keyframes xscan{ 0%{ transform:translateY(0); opacity:0 } 8%{opacity:1} 92%{opacity:1} 100%{ transform:translateY(520px); opacity:0 } }

.xhero-in{ position:relative; z-index:2; padding:66px 0 60px; }
.xhero-eyebrow{ display:inline-flex; align-items:center; gap:10px; font-family:var(--f-mono);
  font-size:12.5px; letter-spacing:.04em; color:var(--acc-l); text-transform:uppercase; }
.xhero-eyebrow i{ width:16px; height:16px; border:2px solid var(--acc); border-radius:4px; display:inline-block;
  box-shadow:inset 0 0 0 3px var(--ink2); }
.xhero-title{ font-family:var(--f-display); font-weight:800; color:#fff; margin:20px 0 0;
  font-size:clamp(34px,5.2vw,68px); line-height:1.04; letter-spacing:-.02em; }
.xhero-title span{ color:var(--acc-l); }
.xhero-lead{ color:var(--steel-l); font-size:17px; line-height:1.6; max-width:540px; margin:22px 0 0; }

.xhero-cta{ display:flex; gap:14px; flex-wrap:wrap; margin:30px 0 0; }
.xbtn{ display:inline-flex; align-items:center; justify-content:center; height:54px; padding:0 30px;
  border-radius:11px; font-weight:600; font-size:16px; text-decoration:none; box-sizing:border-box;
  transition:transform .15s, box-shadow .15s, background .15s, border-color .15s; }
.xbtn-primary{ background:linear-gradient(180deg,#3D77EA,#2F6AE1); color:#fff; box-shadow:0 10px 24px rgba(47,106,225,.32); }
.xbtn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 32px rgba(47,106,225,.42); color:#fff; }
.xbtn-ghost{ background:transparent; color:#fff; border:1px solid rgba(255,255,255,.26); }
.xbtn-ghost:hover{ border-color:var(--acc-l); background:rgba(47,106,225,.10); color:#fff; }

.xhero-stats{ display:flex; gap:40px; margin:48px 0 0; flex-wrap:wrap; }
.xhero-stat,.xstat{ position:relative; padding-left:20px; }
.xstat:before{ content:""; position:absolute; left:0; top:4px; bottom:4px; width:3px; background:var(--acc); border-radius:2px; }
.xstat b{ display:block; font-family:var(--f-display); font-weight:700; font-size:34px; color:#fff; line-height:1; letter-spacing:-.01em; }
.xstat span{ display:block; font-family:var(--f-mono); font-size:12px; color:var(--steel); margin-top:8px; letter-spacing:.01em; }

/* ---------------- Анимация входа (на загрузке) ---------------- */
@keyframes xrise{ from{ opacity:0; transform:translateY(22px) } to{ opacity:1; transform:none } }
.xhero-eyebrow,.xhero-title,.xhero-lead,.xhero-cta,.xhero-stats{ opacity:0; animation:xrise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.xhero-eyebrow{ animation-delay:.06s } .xhero-title{ animation-delay:.16s }
.xhero-lead{ animation-delay:.28s } .xhero-cta{ animation-delay:.38s } .xhero-stats{ animation-delay:.48s }

/* ---------------- Scroll-reveal секций ---------------- */
.xreveal{ opacity:0; transform:translateY(26px); transition:opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.xreveal.xin{ opacity:1; transform:none; }
.front-categories>li.xreveal{ transition-delay:calc(var(--i,0) * 0ms); }

@media (prefers-reduced-motion:reduce){
  .xhero-scan{ display:none; }
  .xhero-eyebrow,.xhero-title,.xhero-lead,.xhero-cta,.xhero-stats,.xreveal{ opacity:1; transform:none; animation:none; transition:none; }
}

/* ============================================================ АДАПТИВ */
@media (max-width:1100px){
  .xhdr-nav a{ padding:9px 10px; font-size:13px; }
  .xhdr-search input{ width:150px; } .xhdr-search input:focus{ width:180px; }
}
@media (max-width:900px){
  .xhdr-nav,.xhdr-search,.xhdr-phone-note{ display:none; }
  .mobile-menu-block{ display:flex; align-items:center; order:-1; }
  .xhdr-bar-in{ gap:14px; height:64px; }
  .xhdr-logo{ margin:0 auto; }            /* лого по центру */
  .xhdr-actions{ margin-left:0; }
  .xhdr-phone{ padding-left:0; } .xhdr-phone:before{ display:none; }
  .xhdr-phone-num{ font-size:15px; }
  .xu-geo{ display:none; }
}
@media (max-width:767px){
  .xhero-in{ padding:40px 0 44px; }
  .xhero-photo{ width:100%; opacity:.28; -webkit-mask-image:linear-gradient(180deg,transparent,#000);
          mask-image:linear-gradient(180deg,transparent,#000); }
  .xhero-lead{ font-size:15px; }
  .xhero-cta{ gap:10px; } .xbtn{ flex:1 1 100%; }
  .xhero-stats{ gap:22px 30px; margin-top:34px; }
  .xstat b{ font-size:27px; }
  .xhdr-utility-in{ justify-content:center; gap:14px; }
  .xu-hours{ display:none; } .xu-mail{ margin-left:0; }
}
@media (max-width:400px){
  .xhero-stats{ gap:16px 26px; } .xstat{ padding-left:14px; } .xstat b{ font-size:23px; }
}

/* --- доводка адаптива: боковые отступы новых секций + заголовок --- */
@media (max-width:900px){
  .xhdr-bar-in,.xhdr-utility-in{ padding-left:16px; padding-right:16px; box-sizing:border-box; }
}
@media (max-width:767px){
  .xhero-in{ padding-left:16px; padding-right:16px; box-sizing:border-box; }
  .xhero-title{ font-size:30px; line-height:1.08; }
  .xhdr-phone-num{ font-size:14px; }
  .xhero-stats{ gap:18px 28px; }
}
@media (max-width:400px){
  .xhero-title{ font-size:25px; }
  .xhero-eyebrow{ font-size:11px; }
}

/* нерабочий на статике фильтр товаров — скрыт (фильтрация доступна ссылками сверху «По диаметру/размеру») */
.bx-filter { display: none !important; }

/* фильтр-чипы акций на статике не фильтруют — скрыты (список акций показывается полностью) */
.promo-categories { display: none !important; }

/* ============================================================
   СВЕТЛАЯ ШАПКА (переопределение тёмной) + крупнее лого + выпадающий каталог
   ============================================================ */
.xhdr-utility{ background:#EEF1F6; border-bottom:1px solid #E2E7EE; }
.xhdr-utility-in{ color:#6C7885; }
.xu-geo{ color:#47515C; } .xu-hours{ color:#6C7885; } .xu-mail{ color:#566070; }
.xu-mail:hover{ color:var(--acc); }

.xhdr-bar{ background:#fff; border-bottom:1px solid #E6EBF2; }
.xhdr.xshrink .xhdr-bar{ box-shadow:0 8px 24px rgba(16,24,40,.09); }

.xhdr-logo img{ height:68px; }
.xhdr.xshrink .xhdr-logo img{ height:56px; }

.xhdr-nav a{ color:#3A4450; } .xhdr-nav a:hover{ color:#11151A; }

.xhdr-search input{ background:#F4F6FA; border-color:#E2E7EE; color:#1E232A; }
.xhdr-search input::placeholder{ color:#9AA3AD; }
.xhdr-search input:focus{ background:#fff; border-color:var(--acc); }
.xhdr-search button{ background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236C7885' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.2-3.2'/%3E%3C/svg%3E"); }

.xhdr-phone:before{ background:#E2E7EE; }
.xhdr-phone-num{ color:#11151A; } .xhdr-phone-note{ color:#8A94A0; }
.xhdr-phone:hover .xhdr-phone-num{ color:var(--acc); }

/* выпадающее меню каталога */
.xnav-cat-wrap{ position:relative; }
.xnav-cat-wrap:before{ content:""; position:absolute; top:100%; left:0; right:0; height:14px; }
.xcat-mega{ position:absolute; top:100%; left:0; margin-top:12px; display:none;
  grid-template-columns:1fr 1fr; gap:2px; min-width:560px; padding:12px;
  background:#fff; border:1px solid #E6EBF2; border-radius:14px;
  box-shadow:0 24px 54px rgba(16,24,40,.16); z-index:1200; }
.xnav-cat-wrap:hover .xcat-mega, .xnav-cat-wrap:focus-within .xcat-mega{ display:grid; }
.xcat-mega a{ padding:10px 14px; border-radius:9px; color:#3A4450; font-size:13.5px; font-weight:500;
  text-decoration:none; white-space:nowrap; transition:background .12s,color .12s; }
.xcat-mega a:hover{ background:#EFF4FE; color:var(--acc); }
.xcat-mega a:after{ display:none !important; }
@media (max-width:900px){ .xcat-mega{ display:none !important; } }
