:root{
  --navy-900:#0b1e3b; --navy-800:#142e58; --navy-700:#1b3b72; --navy-600:#234a8f;
  --brand:#2e65d5; --brand-2:#61a6ff;
  --ink:#0f172a; --muted:#4b5563; --line:#e5e7eb;
  --glass:rgba(255,255,255,.08); --glass-brd:rgba(255,255,255,.18);
  --bg:#ffffff;
  --radius:16px; --shadow:0 10px 30px rgba(8,15,40,.18), 0 2px 10px rgba(8,15,40,.08);
  --dur:.45s; --ease:cubic-bezier(.2,.8,.16,1);
  --container-px: clamp(16px, 4vw, 28px);
  --site-max: 1200px; --header-max: 1400px;
}

/* Базовые */
html,body{width:100%;max-width:100%;overflow-x:hidden}
html{scroll-behavior:smooth}
*{box-sizing:border-box}
body{
  margin:0; font-family:Manrope,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink); background:var(--bg); line-height:1.55;
  min-height:100svh; display:flex; flex-direction:column;
}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:3px}
img,svg,video{max-width:100%;height:auto}

.container{width:100%;max-width:var(--site-max);margin:0 auto;padding-inline:var(--container-px)}
section{padding:64px 0;scroll-margin-top:90px}

/* Фон со стеклом */
.page-backdrop{
  position:fixed; inset:0; z-index:-3;
  background:
    radial-gradient(1200px 800px at 10% 10%, rgba(46,101,213,.12), transparent 60%),
    radial-gradient(900px 700px at 90% 80%, rgba(97,166,255,.10), transparent 55%),
    url("img/bg-tools.jpg") center/cover no-repeat fixed;
  filter:saturate(105%) contrast(1.02);
}
.page-backdrop::after{
  content:""; position:absolute; inset:0; background:rgba(255,255,255,.40);
  backdrop-filter:blur(6px);
}

/* Header */
header{position:sticky;top:0;z-index:1000;transform:translateY(0);transition:transform .32s var(--ease), background .25s ease}
.hdr-wrap{width:100%;background:rgba(20,46,88,.42);backdrop-filter:saturate(140%) blur(10px);border-bottom:1px solid rgba(255,255,255,.06)}
.hdr-inner{width:100%;max-width:var(--header-max);margin:0 auto;padding:14px var(--container-px);display:flex;align-items:center;justify-content:space-between;color:#fff;transition:padding .2s ease}
header.compact .hdr-inner{padding:8px var(--container-px)}
header.hidden{transform:translateY(-100%)}

.header-left{display:flex;align-items:center;gap:8px}
.logo{display:flex;gap:10px;align-items:center;font-weight:800;letter-spacing:.2px;color:#fff}
.logo-img{height:32px;width:auto;display:block;object-fit:contain;filter:drop-shadow(0 1px 0 rgba(0,0,0,.12))}
@media (max-width:640px){.logo-img{height:26px}.logo{gap:8px}}

.nav-links{padding-left:20px;display:flex;gap:12px;align-items:center;transition:opacity .25s ease, transform .25s ease}
.nav-links a{color:#e6efff;background:var(--glass);border:1px solid var(--glass-brd);padding:8px 14px;border-radius:999px;font-weight:700;letter-spacing:.2px}
.nav-links a:hover{background:rgba(255,255,255,.14)}
.nav-links a.active{background:rgba(255,255,255,.22);border-color:rgba(255,255,255,.32)}
header.compact .nav-links{opacity:0;transform:translateY(-8px);pointer-events:none}

.hdr-cta{display:flex;gap:10px;align-items:center}
.pill-btn{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:10px 16px;border:1px solid var(--glass-brd);background:var(--glass);color:#e6efff;font-weight:800}
.pill-btn.primary{background:linear-gradient(135deg,var(--brand),var(--brand-2));border-color:transparent;color:#fff}
.pill-btn.primary:hover{filter:brightness(1.05)}
.pill-btn svg{width:16px;height:16px}

@media (max-width:640px){
  .nav-links{display:none}
  .pill-btn{padding:8px 12px;font-size:14px}
  .logo{font-size:16px}
}

/* FAB (desktop) */
.menu-fab{
  position:fixed;top:calc(14px + env(safe-area-inset-top,0px));left:calc(14px + env(safe-area-inset-left,0px));
  width:46px;height:46px;border-radius:12px;border:1px solid var(--glass-brd);
  background:rgba(255,255,255,.95);box-shadow:var(--shadow);display:inline-flex;align-items:center;justify-content:center;z-index:1400;cursor:pointer;outline:none;
  opacity:0;transform:translateY(-10px);pointer-events:none;transition:opacity .25s var(--ease), transform .25s var(--ease), box-shadow .15s ease, background .15s ease;
}
.menu-fab.show{opacity:1;transform:translateY(0);pointer-events:auto}
.menu-fab:hover{box-shadow:0 14px 34px rgba(12,22,46,.22)}
.menu-fab .bar{width:22px;height:2px;background:#0b1e3b;border-radius:2px;display:block;transition:transform .25s var(--ease),opacity .2s ease}
.menu-fab .bar + .bar{margin-top:5px}
.menu-fab.open .bar:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu-fab.open .bar:nth-child(2){opacity:0}
.menu-fab.open .bar:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.menu-fab.hide{opacity:0 !important;pointer-events:none !important}
@media (max-width:640px){.menu-fab{display:none !important}}

/* Drawer */
.drawer{
  position:fixed;top:0;left:0;height:100vh;width:clamp(300px,86vw,380px);
  background:linear-gradient(180deg,#10284f 0%, #0b1e3b 100%);color:#e6efff;border-right:1px solid rgba(255,255,255,.08);
  transform:translateX(-100%);transition:transform var(--dur) var(--ease);z-index:1300;display:flex;flex-direction:column;box-shadow:4px 0 28px rgba(2,6,23,.25);
}
.drawer.open{transform:translateX(0)}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid rgba(255,255,255,.08)}
.drawer-close{width:38px;height:38px;border-radius:10px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.1);color:#fff;cursor:pointer;-webkit-tap-highlight-color: transparent; touch-action: manipulation;}
.drawer nav{padding:14px 12px 18px;display:grid;gap:6px}
.drawer nav a{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:12px;color:#e6efff;border:1px solid transparent;background:transparent;font-weight:700;transition:background .2s ease, border-color .2s ease}
.drawer nav a:hover{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.16)}
.drawer nav a.active{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.32)}
.backdrop{position:fixed;inset:0;background:rgba(3,8,25,0);opacity:0;pointer-events:none;z-index:1200;transition:opacity var(--dur) var(--ease), backdrop-filter .2s ease}
.backdrop.show{opacity:1;background:rgba(3,8,25,.48);backdrop-filter:blur(2px);pointer-events:auto}

/* To top */
.to-top{
  position:fixed;right:calc(14px + env(safe-area-inset-right,0px));bottom:calc(14px + env(safe-area-inset-bottom,0px));
  width:clamp(42px,6.5vw,62px);height:clamp(42px,6.5vw,62px);
  border-radius:999px;border:1px solid rgba(0,0,0,.06);background:rgba(255,255,255,.85);backdrop-filter:blur(4px);
  display:inline-flex;align-items:center;justify-content:center;box-shadow:var(--shadow);z-index:1400;cursor:pointer;
  opacity:0;transform:translateY(10px) scale(.98);pointer-events:none;transition:opacity .25s var(--ease), transform .25s var(--ease), background .2s ease;
}
.to-top.show{opacity:.85;transform:translateY(0) scale(1);pointer-events:auto}
.to-top:hover{opacity:1;background:#fff}
.to-top svg{width:55%;height:55%;display:block}

/* Hero */
.hero{position:relative;color:#fff;padding:120px 0 80px}
.hero .bg{position:absolute;inset:0;background:url("img/hero-bg.jpg") center/cover no-repeat;z-index:-2;filter:saturate(95%) contrast(1.05)}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(10,28,63,.82) 0%, rgba(20,46,88,.85) 48%, rgba(20,46,88,.9) 100%)}
.kicker{display:inline-block;color:#d9e6ff;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);padding:6px 12px;border-radius:999px;margin-bottom:14px;font-weight:700}
.hero h1{font-size:44px;line-height:1.15;margin:10px 0 10px;letter-spacing:.2px}
.hero p{font-size:18px;color:#e8f1ff;max-width:960px;margin:0 0 18px}
.hero .cta{display:flex;gap:12px;margin-top:18px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;gap:10px;border-radius:999px;padding:12px 18px;font-weight:800;border:1px solid var(--glass-brd);background:var(--glass);color:#e6efff;-webkit-tap-highlight-color:transparent}
.btn.primary{background:linear-gradient(135deg,var(--brand),var(--brand-2));border:none;color:#fff} /* убрали бордер — не будет белой линии */
.btn svg{width:18px;height:18px}
@media (max-width:640px){
  .hero{padding:88px 0 54px}
  .hero h1{font-size:clamp(22px,7vw,30px)}
  .hero p{font-size:clamp(14px,4vw,16px)}
  .btn{padding:10px 14px;font-size:14px}
}

/* Hero-cards */
.hero-cards{position:relative;margin-top:28px}
.card-row{display:grid;gap:18px;grid-template-columns:repeat(4,1fr)}
@media (max-width:980px){.card-row{grid-template-columns:1fr 1fr}}
@media (max-width:600px){.card-row{grid-template-columns:1fr}}
.glass-card{background:rgba(20,46,88,.7);color:#e6efff;border:1px solid rgba(255,255,255,.16);border-radius:18px;padding:18px;backdrop-filter:blur(10px);box-shadow:0 10px 30px rgba(10,28,63,.25);transition:transform .2s ease, box-shadow .2s ease}
.glass-card:hover{transform:translateY(-3px);box-shadow:0 18px 36px rgba(10,28,63,.28)}
.glass-card h3{margin:8px 0 8px;font-size:18px}
.glass-card p{margin:0;color:#d0defa}

/* Разделы + карточки */
.section-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:22px;gap:20px}
.section-head h2{margin:0;font-size:28px;color:var(--navy-900)}
.muted{color:var(--muted)}
.grid{display:grid;gap:16px}
.grid.cols-3{grid-template-columns:repeat(3,1fr)}
.grid.cols-2{grid-template-columns:repeat(2,1fr)}
@media (max-width:980px){.grid.cols-3{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.grid.cols-3,.grid.cols-2{grid-template-columns:1fr}}

.card{
  background:linear-gradient(180deg,#ffffff 0%, #f7fbff 100%);border:1px solid #dbe7ff;border-radius:var(--radius);padding:18px;
  box-shadow:var(--shadow);transition:transform .2s ease, box-shadow .2s ease
}
.card:hover{transform:translateY(-3px)}
.card h3{color:var(--navy-800)}
.tag{display:inline-block;background:#e8f1ff;color:#1d4ed8;border:1px solid #d5e6ff;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:800;margin-left:6px}
.list{margin:10px 0 0 0;padding-left:18px}
.list li{margin:6px 0}

/* Брендовые кнопки внутри светлых блоков */
.card .btn{background:linear-gradient(135deg,var(--brand),var(--brand-2));border:none;color:#fff}
.card .btn:hover{filter:brightness(1.05)}

/* Файлы */
.file{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;background:#fff;border:1px solid #dbe7ff;border-radius:14px;box-shadow:var(--shadow)}
.file .meta{font-size:13px;color:var(--muted)}
.file .btn{padding:8px 12px;border-radius:10px;background:linear-gradient(135deg,var(--brand),var(--brand-2));border:none;color:#fff}

/* Инжиниринг */
.split{display:grid;grid-template-columns:1.1fr 1fr;gap:20px}
@media (max-width:960px){.split{grid-template-columns:1fr}}
.pic{border-radius:16px;overflow:hidden;border:1px solid #dbe7ff;box-shadow:var(--shadow)}
.pic img{display:block;width:100%;height:100%;object-fit:cover}

/* Контакты + карта */
.contacts{display:grid;grid-template-columns:1fr 1.4fr;gap:20px}
@media (max-width:900px){.contacts{grid-template-columns:1fr}}
.map{background:#e2e8f0;border:1px solid #dbe7ff;border-radius:12px;height:450px;overflow:hidden}
#map, #yamap{width:100%;height:100%}

/* Footer */
.site-footer{
  position:relative; flex:1 0 auto;
  background:linear-gradient(180deg,#0b1e3b 0%, #091630 100%);
  color:#cfe1ff; border-top:1px solid rgba(255,255,255,.08);
}
.site-footer::before{
  content:""; position:absolute; inset:0; pointer-events:none; opacity:.28;
  background:url("img/footer-lines.svg") center bottom / cover no-repeat;
}
.site-footer .container{padding-block:16px}
.site-footer a{color:#86b7ff}
.site-footer 

/* Контакты — desktop-усиление высоты и типографики */
@media (min-width: 980px){
  body[data-page="contacts"] .contacts{ gap:24px; align-items:stretch; }
  body[data-page="contacts"] .contacts .card{
    min-height: 450px;
    padding: 22px;
    display:flex; flex-direction:column; justify-content:center;
  }
  body[data-page="contacts"] .contacts .card p{
    font-size: 16.5px;
    margin: 6px 0;
  }
  body[data-page="contacts"] .contacts .btn{
    padding: 12px 16px;
    font-size: 15px;
  }
  body[data-page="contacts"] .contacts .map{ height: 450px; border-radius:16px; }
}

/* Каталоги — файлы повыше и крупнее на desktop */
@media (min-width: 980px){
  body[data-page="catalogs"] #catalogs .file{
    padding: 18px 20px;
    min-height: 124px;
  }
  body[data-page="catalogs"] #catalogs .file strong{
    font-size: 18px;
  }
  body[data-page="catalogs"] #catalogs .file .meta{
    font-size: 14px;
  }
  body[data-page="catalogs"] #catalogs .file .btn{
    padding: 10px 14px;
    font-size: 14.5px;
    font-weight: 800;
  }
  body[data-page="catalogs"] .section-head h2{ font-size: 30px; }
}


/* Производители — кнопка внизу карточки */
body[data-page="manufacturers"] #manufacturers .grid .card{
  display:flex;
  flex-direction:column;       /* вертикальная колонка */
}

body[data-page="manufacturers"] #manufacturers .grid .card > .btn{
  margin-top:auto;             /* прижимает кнопку к низу карточки */
  align-self:flex-start;       /* оставляем кнопку слева */
}

/* На всякий случай: если внутри карточки будет контейнер с кнопками */
body[data-page="manufacturers"] #manufacturers .grid .card .actions{
  margin-top:auto;
}


.nav-links a{
  font-size: 15px;           /* было крупнее */
  padding: 8px 12px;
}
@media (max-width: 1200px){
  .nav-links{ gap:10px; }
  .nav-links a{ font-size: 14.5px; padding: 7px 11px; }
  .hdr-cta .pill-btn{ font-size: 14px; padding: 8px 12px; }
}
@media (max-width: 980px){
  .nav-links{ gap:8px; }
  .nav-links a{ font-size: 13.5px; padding: 6px 10px; }
  .hdr-cta .pill-btn{ font-size: 13.5px; padding: 7px 10px; }
  .logo{ font-size: 15px; }
}

/* 3) Логотип: не даём сжиматься и задаём предсказуемую высоту через clamp */
.header-left, .logo{ flex: 0 0 auto; }   /* логотип и текст рядом — не сжимаются */
.nav-links{ flex: 1 1 auto; min-width: 0; } /* навигация может адаптивно сжиматься */
.hdr-cta{ flex: 0 0 auto; }

.logo{ white-space: nowrap; } /* не переносим название компании */
.logo-img{
  height: clamp(26px, 3.6vw, 38px); /* стабильно между 26px и 38px */
  width: auto;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;                  /* запрещаем сжатие картинки */
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.12));
}


/* Навигация справа + отступ слева */
.nav-links{
  margin-left: auto;      /* уводим блок меню вправо */
  padding-left: 20px;     /* ваш отступ слева */
  gap: 12px;
}

/* Компактнее на средних ширинах, чтобы не обрезалось */
@media (max-width: 1200px){
  .nav-links{ gap:10px; }
  .nav-links a{ font-size:14.5px; padding:7px 11px; }
}
@media (max-width: 980px){
  .nav-links{ gap:8px; }
  .nav-links a{ font-size:13.5px; padding:6px 10px; }
}

/* Логотип: не даём критично сжиматься, оставляем вменяемый размер */
.header-left, .logo{ flex: 0 0 auto; }
.nav-links{ flex: 1 1 auto; min-width: 0; }
.hdr-cta{ flex: 0 0 auto; }
.logo{ white-space: nowrap; }
.logo-img{
  height: clamp(28px, 3.3vw, 42px);
  width: auto;
  display:block;
  object-fit:contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.12));
}
/* FAB — полупрозрачность 50% у всей кнопки */
.menu-fab{
  position:fixed;
  top:calc(14px + env(safe-area-inset-top,0px));
  left:calc(14px + env(safe-area-inset-left,0px));
  width:46px;height:46px;border-radius:12px;
  background: #fff url("img/burger.png") center/60% no-repeat;
  border:none;
  box-shadow:0 10px 30px rgba(8,15,40,.18), 0 2px 10px rgba(8,15,40,.08);
  display:none;
  z-index:1400; cursor:pointer; outline:none;
  opacity:0; transform:translateY(-10px); pointer-events:none;
  transition:opacity .25s var(--ease), transform .25s var(--ease), box-shadow .15s ease;
}
.menu-fab .bar{display:none !important}
.menu-fab.show{opacity:.75; transform:translateY(0); pointer-events:auto}  /* 50% */


@media (max-width:640px){
  .menu-fab{ display:flex !important; align-items:center; justify-content:center; }
}


/* Модал "Запросить КП" — центр всегда (Grid), адекватный скролл */
.kp-modal{
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: none;
}
.kp-modal.open{
  display: grid;
  place-items: center; /* идеальное центрирование и на десктопе, и на мобилке */
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)) 16px;
}

/* Оверлей и диалог кладем в одну и ту же сеточную ячейку */
.kp-overlay{
  grid-area: 1/1;
  width: 100%;
  height: 100%;
  background: rgba(2,6,23,.5);
  backdrop-filter: blur(2px);
}

.kp-dialog{
  grid-area: 1/1;
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100dvh - 32px); /* не вылезает за экран */
  overflow: auto;                  /* внутренний скролл при малой высоте */
  -webkit-overflow-scrolling: touch;
  background: #fff; color: var(--ink);
  border-radius: 16px; border: 1px solid #dbe7ff;
  box-shadow: 0 20px 60px rgba(8,15,40,.2), 0 2px 10px rgba(8,15,40,.06);
  padding: 18px; outline: none;
}
@media (max-width:640px){
  .kp-dialog{ padding: 16px; }
}

/* Кнопка закрытия (липкая внутри скролла модала) */
.kp-close{
  position: sticky; top: 0; left: 100%; transform: translate(-10px, 10px);
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid #e5efff; background: #f7fbff; color: #0b1e3b;
  cursor: pointer; font-size: 18px; line-height: 1; z-index: 2;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.kp-title{ margin:0 0 12px 0; font-size:20px; color:#0b1e3b }

/* Сетка формы — адаптивно и без переполнений */
.kp-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px }
@media (max-width:640px){ .kp-grid{ grid-template-columns:1fr } }
.kp-field{ display:flex; flex-direction:column; gap:6px; min-width:0 }
.kp-field span{ font-size:13px; color:#4b5563 }
.kp-field input, .kp-field textarea{
  width:100%; max-width:100%;
  border:1px solid #dbe7ff; border-radius:10px; padding:10px 12px;
  font:inherit; outline:none; background:#fff; box-sizing:border-box;
}
.kp-field input:focus, .kp-field textarea:focus{
  border-color:#86b7ff; box-shadow:0 0 0 3px rgba(134,183,255,.25)
}
.kp-field-textarea{ grid-column:1 / -1 }

.kp-actions{ display:flex; gap:10px; margin-top:12px; flex-wrap:wrap }
.kp-note{ font-size:12.5px; color:#64748b; margin-top:8px }
.kp-status{ margin-top:8px; font-size:14px }
.kp-status.ok{ color:#0a7d2a } .kp-status.error{ color:#b10e0e }

/* Блокировка скролла фона при открытом модале (если хотите полностью) */
body.kp-open{ overflow: hidden; }

/* Контакты — карта адаптивнее на мобильных и не «режется» */
body[data-page="contacts"] .contacts{ align-items:stretch }
body[data-page="contacts"] .contacts .map{
  border-radius:14px; overflow:hidden;
  height: clamp(380px, 60dvh, 520px);
}
@media (max-width:640px){
  body[data-page="contacts"] .contacts .map{
    height: clamp(360px, 65dvh, 560px);
  }
}
#yamap{ width:100%; height:100%; display:block }

/* Фон со «стеклом» центрируем по высоте */
.page-backdrop{
  background-position:
    center center,
    center center;
}
/* Hero фон тоже центрируем */
.hero .bg{ background-position:center center }


/* KP modal (Запрос КП) — центрирование и адаптив на мобилке */
.kp-modal{
  position:fixed; inset:0; z-index:1600;
  display:none;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)) 16px;
}
.kp-modal.open{
  display:flex;
  align-items:center;
  justify-content:center;
}

.kp-overlay{
  position:absolute; inset:0;
  background:rgba(2,6,23,.5);
  backdrop-filter: blur(2px);
}

/* Диалог больше не абсолютный: центрируем через flex у .kp-modal */
.kp-dialog{
  position: relative !important;
  width:min(640px, 100%);
  max-height: calc(100dvh - 32px);
  overflow:auto; -webkit-overflow-scrolling:touch;
  background:#fff; color:var(--ink);
  border-radius:16px; border:1px solid #dbe7ff;
  box-shadow:0 20px 60px rgba(8,15,40,.2), 0 2px 10px rgba(8,15,40,.06);
  padding:18px;
  outline:none;
}
@media (max-width:640px){
  .kp-dialog{ padding:16px; width:min(560px, 100%) }
}

.kp-close{
  position:sticky; top:0; left:100%;
  transform:translate(-10px, 10px);
  width:38px; height:38px; border-radius:10px;
  border:1px solid #e5efff; background:#f7fbff; color:#0b1e3b;
  cursor:pointer; font-size:18px; line-height:1; z-index:2;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.kp-title{ margin:0 0 12px 0; font-size:20px; color:#0b1e3b }

/* Сетка формы — не даём переполнять */
.kp-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px }
@media (max-width:640px){ .kp-grid{ grid-template-columns:1fr } }

.kp-field{ display:flex; flex-direction:column; gap:6px; min-width:0 }
.kp-field span{ font-size:13px; color:#4b5563 }
.kp-field input, .kp-field textarea{
  width:100%; max-width:100%;
  border:1px solid #dbe7ff; border-radius:10px; padding:10px 12px;
  font:inherit; outline:none; background:#fff; box-sizing:border-box;
}
.kp-field input:focus, .kp-field textarea:focus{
  border-color:#86b7ff; box-shadow:0 0 0 3px rgba(134,183,255,.25)
}
.kp-field-textarea{ grid-column:1 / -1 }

.kp-actions{ display:flex; gap:10px; margin-top:12px; flex-wrap:wrap }
.kp-note{ font-size:12.5px; color:#64748b; margin-top:8px }
.kp-status{ margin-top:8px; font-size:14px }
.kp-status.ok{ color:#0a7d2a }
.kp-status.error{ color:#b10e0e }

/* Контакты: сетка и стабильная высота карты */
body[data-page="contacts"] .contacts{
display:grid;
grid-template-columns:1fr 1.4fr;
gap:20px;
align-items:stretch;
}
@media (max-width:900px){
body[data-page="contacts"] .contacts{ grid-template-columns:1fr }
}
body[data-page="contacts"] .contacts .map{
background:#e2e8f0;
border:1px solid #dbe7ff;
border-radius:12px;
height:450px; / десктоп /
overflow:hidden;
}
@media (max-width:640px){
body[data-page="contacts"] .contacts .map{
height:350px !important; / мобилка — фикс 350px */
min-height:350px !important;
}
}
#yamap{ width:100%; height:100%; display:block }

/* Блок согласия в модале КП */
.kp-consent{
  margin-top:10px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.kp-consent .consent-label{
  display:flex;
  gap:10px;
  align-items:flex-start;
  line-height:1.35;
  color:var(--ink);
  font-size:14px;
}
.kp-consent input[type="checkbox"]{
  width:18px; height:18px;
  margin-top:2px;
  accent-color: var(--brand); /* поддерживаемые браузеры */
}
.kp-privacy-hint{
  font-size:12.5px;
  color:#64748b;
}
.kp-privacy-hint a{ color: var(--brand) }

/* Cookie bar (нижняя плашка) */
.ck-bar{
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 1700;
  display: grid; place-items: center;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom,0));
  pointer-events: none; /* клики только по контенту */
}
.ck-bar-inner{
  pointer-events: auto;
  width: min(820px, 94%);
  background: rgba(15,23,42,.92);
  color: #e6efff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(2,6,23,.25);
  padding: 14px;
  display: grid; gap: 10px;
}
.ck-text{ font-size: 14px; line-height: 1.45 }
.ck-actions{ display: flex; gap: 10px; flex-wrap: wrap }
.ck-btn{
  border-radius: 10px; padding: 8px 12px; font-weight: 800;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06); color: #e6efff;
  cursor: pointer;
}
.ck-btn:hover{ background: rgba(255,255,255,.12) }
.ck-btn.primary{
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent; color: #fff;
}
.ck-btn.primary:hover{ filter: brightness(1.05) }

/* Cookie settings modal (серый фон панели) */
.ck-modal{
  position: fixed; inset: 0; z-index: 1750; display: none;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)) 16px;
  display: none;
}
.ck-modal.open{ display: grid; place-items: center }
.ck-backdrop{
  background: rgba(15,23,42,.55); /* полупрозрачный без blur */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.ck-panel{
  grid-area: 1/1;
  width: min(640px, 94%);
  background: #f3f4f6; color: var(--ink);
  border-radius: 16px; border: 1px solid #e5e7eb;
  box-shadow: 0 20px 60px rgba(8,15,40,.2);
  padding: 16px;
}
.ck-head{
display:flex; align-items:center; justify-content:space-between;
gap:10px; margin-bottom:8px;
}
.ck-close{
width:38px; height:38px; border-radius:10px;
border:1px solid #d1d5db; background:#fff; color:#0b1e3b;
display:inline-flex; align-items:center; justify-content:center;
cursor:pointer; font-size:18px; line-height:1;
}
.ck-title{ margin: 0; font-size: 18px; font-weight: 800 }
.ck-desc{ font-size: 14px; color: #4b5563; margin: 6px 0 12px }

.ck-list{ display: grid; gap: 8px; margin-top: 8px }
.ck-item{
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  overflow: hidden;
}
.ck-item-header{
  padding: 12px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  cursor: pointer;
}
.ck-item-header .chev{
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  color: #334155; transform: rotate(0deg); transition: transform .2s ease;
}
.ck-item.open .ck-item-header .chev{ transform: rotate(90deg) }
.ck-item-title{ font-weight: 800 }
.ck-item-status{ font-size: 13px; font-weight: 800; color: var(--brand) } /* "Всегда разрешено" */

.ck-item-body{
  display: none; padding: 0 12px 12px; font-size: 14px; color: #4b5563;
}
.ck-item.open .ck-item-body{ display: block }

/* Переключатель */
.ck-switch{
  display: inline-flex; align-items: center; gap: 8px;
}
.ck-toggle{
  width: 44px; height: 24px; border-radius: 999px; position: relative; border: 1px solid #d1d5db; background: #e5e7eb; cursor: pointer;
}
.ck-toggle::after{
  content:""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.15); transition: transform .2s ease;
}
.ck-toggle[aria-checked="true"]{ background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent }
.ck-toggle[aria-checked="true"]::after{ transform: translateX(20px) }
.ck-status{ font-size: 13px; font-weight: 800; color: #334155 }
.ck-status.allowed{ color: var(--brand) }
.ck-status.blocked{ color: #b10e0e }

.ck-actions{ display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px }
.ck-confirm{ border-radius: 10px; padding: 10px 14px; font-weight: 800; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); border: 1px solid transparent; color: #fff;
}

/* Межстрочный интервал на главной странице */
.blh{
  line-height: 1.95;
}


/* ABOUT (главная) */
.about-split{ align-items: stretch; }
.about-card{
  position: relative; padding-left: 22px;
}
.about-card::before{
  content:""; position:absolute; left:0; top:18px; bottom:18px; width:4px; border-radius:4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}
.about-card .lead{
  font-size: 18.5px;
  line-height: 1.6;
  margin: 4px 0 10px;
  color: #fff;
  font-weight: 500;
}

.about-bullets{
  margin: 14px 0 0; padding: 0; list-style: none;
  display: grid; gap: 8px;
}
.about-bullets li{
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--navy-800);
}
.about-bullets li::before{
  content: "✓";
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 900; font-size: 12px; margin-top: 2px;
}

/* KPI блок справа */
.about-kpi{
  display: grid; gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.kpi-card{
  background: linear-gradient(180deg,#ffffff 0%, #f3f7ff 100%);
  border: 1px solid #cfe1ff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.kpi-num{
  font-weight: 900;
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 6px;
  color: #fff;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: #fff; /* Safari */
  text-shadow: 0 1px 0 rgba(0,0,0,.14); /* лёгкая читаемость на стекле */
}
.kpi-label{
  color: var(--muted);
  font-size: 13.5px;
}

@media (max-width: 980px){
  .about-kpi{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  .about-kpi{ grid-template-columns: 1fr; }
  .about-card .lead{ font-size: 17px; }
}

/* ABOUT — тема секции */
#about{ position: relative; }

/* Заголовок и подзаголовок — белые */
#about .section-head h2{ color: #fff; }
#about .section-head .muted{
  color: #fff;
  opacity: .95;            /* лёгкий «софт» для подзаголовка */
}

/* «Стеклянные» карточки с 30% непрозрачностью фона */
#about .about-card,
#about .kpi-card{
  background: rgba(99, 125, 158,.50);          /* 30% */
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: saturate(140%) blur(4px);  /* мягкое стекло */
}

/* Для аккуратной читаемости внутренних текстов оставляем тёмный цвет.
   Если захотите белые тексты внутри карточек — раскомментируйте:
   #about .about-card, #about .kpi-card { color:#fff; }
*/

/* Чуть подчистим отступы и выравним оптический край */
#about .about-card{
  position: relative; padding-left: 22px;
}
#about .about-card::before{
  content:""; position:absolute; left:0; top:18px; bottom:18px; width:4px; border-radius:4px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}

/* KPI: оставим текущие цвета цифр и подписей — они хорошо читаются на полупрозрачном фоне */
#about .kpi-num{
  font-weight: 900; font-size: 28px; line-height: 1.1;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 6px;
}
#about .kpi-label{ color: var(--muted); font-size: 13.5px; }

/* Вариант «светлые тексты внутри карточек» — опционально */
#about .about-card, #about .kpi-card{ color:#fff; }
#about .about-bullets li{ color:#f8fbff; }
#about .kpi-label{ color: rgba(255,255,255,.85); }


/* Производители — .muted и кнопка фиксируются у низа карточки */
body[data-page="manufacturers"] #manufacturers .grid .card{
  display: grid !important;
  grid-template-rows: auto 1fr auto auto; /* контент / «растяжка» / muted / кнопка */
  gap: 8px;
}

/* «Подробнее…» — на предпоследней строке */
body[data-page="manufacturers"] #manufacturers .grid .card .muted{
  grid-row: 3;
  align-self: end;
  margin: 0;            /* убираем случайные отступы */
}

/* Кнопка внизу. Если есть .actions — ставим его на последнюю строку */
body[data-page="manufacturers"] #manufacturers .grid .card .actions{
  grid-row: 4;
  margin-top: 10px;     /* зазор между muted и кнопкой */
}

/* Если кнопка без .actions — тоже внизу */
body[data-page="manufacturers"] #manufacturers .grid .card > .btn{
  grid-row: 4;
  justify-self: start;
  margin-top: 10px;     /* такой же зазор */
}