/* ==========================================================================
   Три направления технопарка на одном сайте.
   Раздел задаётся атрибутом data-dir на <html>:
     chem     — Полимеры (синий)
     tech     — Изделия  (рыжий)
     services — Услуги   (зелёный)
   Файл подключается после main.css.
   ========================================================================== */

:root {
  --grid-wipe:   #ffffff;          /* чем гасится узор под подсветкой */
  --grid-line:   rgba(10,95,240,0.055);
  --grid-dot:    transparent;
  --grid-accent: #0a5ff0;
  --grid-line: rgba(10,95,240,0.055);
}

/* --------------------------------------------------- Технопарк (графит) */
:root[data-dir="park"] {
  --blue:       #2b3746;
  --blue-deep:  #131c27;
  --blue-light: #55677d;
  --blue-glow:  rgba(43,55,70,0.22);
  --dir-soft:   #eef1f5;
  --grid-accent: #2b3746;
  --grid-line:  rgba(43,55,70,0.05);
}

/* --------------------------------------------------- Материалы (синий) */
:root[data-dir="chem"] {
  --blue:       #0a5ff0;
  --blue-deep:  #0a3fa8;
  --blue-light: #2f8bfd;
  --blue-glow:  rgba(10,95,240,0.26);
  --dir-soft:   #eaf1ff;
  --grid-accent: #0a5ff0;
}

/* --------------------------------------------------- Изделия (рыжий) */
:root[data-dir="tech"] {
  --blue:       #e27839;
  --blue-deep:  #a8501f;
  --blue-light: #f09a63;
  --blue-glow:  rgba(226,120,57,0.26);
  --dir-soft:   #fdf0e8;
  --grid-accent: #e27839;
  --grid-line: rgba(226,120,57,0.06);
}

/* --------------------------------------------------- Услуги (зелёный) */
:root[data-dir="services"] {
  --blue:       #0f9d58;
  --blue-deep:  #0a6b3d;
  --blue-light: #34c47c;
  --blue-glow:  rgba(15,157,88,0.26);
  --dir-soft:   #e6f7ee;
  --grid-accent: #0f9d58;
  --grid-line: rgba(15,157,88,0.055);
}

/* ==========================================================================
   Фирменный узор: общая подложка секций с [data-grid]
   ========================================================================== */
[data-grid] { position: relative; }


/* ==========================================================================
   Фирменный узор — подложка секций с [data-grid]
   ========================================================================== */
[data-grid] { position: relative; }

[data-grid]::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('../img/pattern-tile.png');
  background-repeat: repeat;
  opacity: 0.45;                    /* узор виден, но свет поверх читается */
}

.cta[data-grid] { --grid-wipe: #0d4c8f; }
.cta[data-grid]::after { opacity: 0.22; }

/* ==========================================================================
   Обложка направления — одинаковая на всех трёх страницах
   ========================================================================== */
.dir-hero {
  position: relative;
  min-height: calc(100svh - 54px);      /* лента групп попадает в первый экран */
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 34px) 0 48px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.dir-hero > .wrap { position: relative; z-index: 2; width: 100%; }

.dir-hero-in {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 44px;
  align-items: center;
  min-height: 470px;
}

/* --------------------------------------------------- логотип-заголовок */
.dir-mark {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.dir-mark span { color: var(--blue); font-weight: 800; }
.dir-mark em { font-style: normal; font-weight: 700; color: var(--ink); }

.dir-lead {
  margin: 0 0 24px;
  max-width: 520px;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.5;
  font-weight: 600;
  color: var(--slate);
}

.dir-claims { margin: 0 0 28px; padding: 0; list-style: none; max-width: 560px; }

.dir-claims li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 13px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--slate);
}

.dir-claims li::before {
  content: '·';
  position: absolute;
  left: 3px;
  top: -3px;
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
}

.dir-claims b { color: var(--ink); font-weight: 800; }

/* --------------------------------------------------- плавающая картинка */
.dir-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.dir-visual::before {
  content: '';
  position: absolute;
  width: 78%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--dir-soft) 0%, transparent 70%);
}

/* белая подложка-подиум, как было на прежней обложке */
.dir-plate {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(400px, 84%);
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  background: linear-gradient(160deg, #ffffff 0%, #f4f7fc 60%, #e9eef7 100%);
  box-shadow: 0 30px 60px rgba(13,20,32,0.16), inset 0 1px 0 rgba(255,255,255,0.9);
  overflow: hidden;
  animation: dirFloat 7s ease-in-out infinite;
}

/* блик, пробегающий по подиуму */
.dir-plate::after {
  content: '';
  position: absolute;
  top: -60%; left: -70%;
  width: 55%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  transform: skewX(-18deg);
  animation: dirShine 7s cubic-bezier(0.4,0,0.2,1) infinite;
}

@keyframes dirShine {
  0%   { left: -70%; }
  55%  { left: 130%; }
  100% { left: 130%; }
}

.dir-plate .dir-float {
  width: 78%;
  max-height: 82%;
  object-fit: contain;
  animation: none;                       /* парит сам подиум */
}

.dir-plate .dir-float.boxed {
  width: 84%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(13,20,32,0.20);
}

.dir-visual::after {
  content: '';
  position: absolute;
  width: 62%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1px dashed var(--line);
  animation: dirSpin 70s linear infinite;
}

@keyframes dirSpin { to { transform: rotate(360deg); } }

.dir-float {
  position: relative;
  z-index: 1;
  width: min(360px, 78%);
  animation: dirFloat 7s ease-in-out infinite;
  filter: drop-shadow(0 26px 40px rgba(13,20,32,0.18));
}

@keyframes dirFloat {
  0%, 100% { transform: translateY(-10px); }
  50%      { transform: translateY(12px); }
}

.dir-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(13,20,32,0.12), inset 0 0 0 1px var(--line);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  animation: dirFloat 6s ease-in-out infinite;
}

.dir-chip svg { width: 15px; height: 15px; stroke: var(--blue); fill: none; stroke-width: 2; }
.dir-chip.c1 { top: 6%; left: 0; animation-delay: -1.4s; }
.dir-chip.c2 { bottom: 8%; right: 0; animation-delay: -3.2s; }

/* ==========================================================================
   Переключатель направлений в шапке — виден на всех страницах
   ========================================================================== */
.dir-nav {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 3px;
  border-radius: 10px;
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* бегунок: подъезжает под активный пункт, при наведении — под курсор */
.dir-pill {
  position: absolute;
  top: 3px;
  left: 0;
  height: calc(100% - 6px);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(13,20,32,0.12);
  transition: transform 0.55s var(--ease-out), width 0.55s var(--ease-out);
  will-change: transform, width;
}

.dir-nav a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--slate);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.dir-nav a i {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
  transition: transform 0.4s var(--ease-out);
}

.dir-nav a i.park     { background: #2b3746; }
.dir-nav a i.chem     { background: #0a5ff0; }
.dir-nav a i.services { background: #0f9d58; }
.dir-nav a i.tech     { background: #e27839; }

.dir-nav a:hover { color: var(--ink); }
.dir-nav a:hover i { transform: scale(1.25); }
.dir-nav a.on { color: var(--ink); }

@media (max-width: 1240px) {
  .dir-nav a { font-size: 12px; padding: 8px 10px; }
}

@media (max-width: 940px) { .dir-nav { display: none; } }

/* прежний блок на обложке больше не используется */
.dir-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  margin-bottom: 26px;
  border-radius: 10px;
  background: var(--bg-soft);
  width: fit-content;
}

.dir-switch a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--slate);
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.dir-switch a i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.dir-switch a i.chem     { background: #0a5ff0; }
.dir-switch a i.tech     { background: #e2760b; }
.dir-switch a i.services { background: #0f9d58; }

.dir-switch a:hover { color: var(--ink); }

.dir-switch a.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(13,20,32,0.10);
}

/* ==========================================================================
   Лента товаров внизу страницы
   ========================================================================== */
.strip {
  padding: 44px 0 54px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--wrap);
  margin: 0 auto 24px;
  padding: 0 28px;
}

.strip-head h3 { font-size: 20px; }
.strip-head a { font-size: 13px; font-weight: 700; color: var(--blue); }

.strip-viewport { overflow: hidden; }

.strip-track {
  display: flex;
  gap: 14px;
  width: max-content;
  will-change: transform;
}

.strip-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 300px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.3s ease, box-shadow 0.4s ease, transform 0.4s var(--ease);
}

.strip-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-2);
  transform: translateY(-3px);
}

.strip-card img {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line-2);
}

.strip-card b {
  display: -webkit-box;
  color: var(--ink);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.strip-card span {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--slate-2);
}

@media (max-width: 1120px) {
  .dir-hero-in { grid-template-columns: 1fr; gap: 26px; }
  .dir-visual { min-height: 330px; order: -1; }
  .dir-chip { display: none; }
}

/* Фотография вместо вырезанного объекта: тот же «полёт», но в карточке */
.dir-float.boxed {
  width: min(340px, 74%);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 26px 50px rgba(13,20,32,0.22);
}

/* Цена по запросу вместо суммы */
.price-req {
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0;
  color: var(--slate) !important;
}

.p-price .req {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Атрибуты позиции: списки значений */
.attr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 26px; }

.attr {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.attr h5 {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-2);
}

.attr ul { margin: 0; padding: 0; list-style: none; }

.attr li {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink-2);
}

.attr li + li { margin-top: 4px; }

@media (max-width: 620px) { .attr-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Компактный каталог: панель фильтров и плотная сетка
   ========================================================================== */
.catalog-lite { padding: 30px 0 80px; }

.fbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 16px 18px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.fsel, .frange { display: flex; flex-direction: column; gap: 6px; }

.fsel > span, .frange > span {   /* только подпись поля, не текст внутри списка */
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-2);
}

.frange span b { color: var(--blue); letter-spacing: 0.04em; }

.fbar .fsel { flex: 1 1 190px; min-width: 190px; max-width: 260px; }
.order-cols .fsel, .conf-bar .fsel { min-width: 0; }

.fsel select {
  min-width: 168px;
  height: 38px;
  padding: 0 30px 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s ease;
}

.fsel select:hover { border-color: var(--slate-2); }
.fsel select:focus { outline: none; border-color: var(--blue); }

.frange { min-width: 190px; padding-bottom: 6px; }

.frange input[type="range"] {
  width: 100%;
  height: 30px;
  accent-color: var(--blue);
  cursor: pointer;
}

.fbar .btn { margin-left: auto; height: 38px; }

/* карточки плотнее: пять в ряд, меньше воздуха */
.grid-lite { grid-template-columns: repeat(5, 1fr); gap: 12px; }

.card-lite .card-media { aspect-ratio: 4 / 3; }
.card-lite .card-media img { padding: 8px; }
.card-lite .card-body { padding: 12px 13px 13px; }
.card-lite .card-sub { font-size: 9.5px; margin-bottom: 6px; }
.card-lite .card-name { font-size: 13px; margin-bottom: 10px; -webkit-line-clamp: 2; }
.card-lite .card-sku { font-size: 11px; margin: 0; }
.card-lite .card-add { width: 32px; height: 32px; border-radius: 8px; }
.card-lite .card-add svg { width: 15px; height: 15px; }

@media (max-width: 1240px) { .grid-lite { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 980px)  { .grid-lite { grid-template-columns: repeat(3, 1fr); } .fbar .btn { margin-left: 0; } }
@media (max-width: 700px)  { .grid-lite { grid-template-columns: repeat(2, 1fr); } .fsel select { min-width: 140px; } }

/* Назначения основы — тегами */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  padding: 7px 13px;
  border-radius: 7px;
  background: var(--bg-soft);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
}

/* ==========================================================================
   Конструктор заказа плит
   ========================================================================== */
.order-box {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.order-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-content: start;
}

.ofield { display: flex; flex-direction: column; gap: 7px; }

.ofield > span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-2);
}

.ofield select,
.ofield input[type="text"],
.ofield input[type="number"] {
  height: 42px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
}

.ofield select:focus,
.ofield input:focus { outline: none; border-color: var(--blue); }

.ofield.custom { grid-column: 1 / -1; }
.ofield[hidden] { display: none; }   /* display:flex перебивал атрибут hidden */

.qty-row { display: flex; align-items: center; gap: 8px; }

.qty-row button {
  width: 42px; height: 42px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  font-size: 17px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.qty-row button:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.qty-row input { flex: 1; text-align: center; }

.order-sum {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.osum-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate);
}

.osum-row b { font-size: 13.5px; font-weight: 800; color: var(--ink); text-align: right; }
.osum-row.total { border-bottom: none; align-items: flex-start; }
.osum-row.total b { font-size: 12.5px; line-height: 1.4; font-weight: 700; }

.order-sum .btn { width: 100%; margin: 14px 0 16px; }

.order-help {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.order-help b { display: block; font-size: 13px; font-weight: 800; margin-bottom: 5px; }
.order-help p { margin: 0 0 12px; font-size: 12.5px; line-height: 1.5; color: var(--slate); }

@media (max-width: 980px) {
  .order-box { grid-template-columns: 1fr; }
  .order-cols { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Семейства химических основ на главной
   ========================================================================== */
.base-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;          /* карточки одной высоты — блок ровным прямоугольником */
  gap: 16px;
}

.fam {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out), border-color 0.4s ease;
}

.fam:hover { transform: translateY(-5px); border-color: transparent; box-shadow: var(--shadow-2); }

.fam-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--blue);
}

.fam-head h3 { font-size: 16px; line-height: 1.2; letter-spacing: -0.02em; }

.fam-head span {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-2);
  white-space: nowrap;
}

.fam-lead {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--slate);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fam-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: auto;
}

.fam-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--bg-soft);
  transition: background 0.28s ease, transform 0.35s var(--ease), color 0.28s ease;
}

.fam-list a:hover { background: var(--dir-soft); transform: translateX(3px); }

.fam-list b { font-size: 13.5px; font-weight: 700; }
.fam-list a:hover b { color: var(--blue); }

.fam-list i {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--slate-2);
  white-space: nowrap;
}

@media (max-width: 1240px) { .base-wall { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 940px)  { .base-wall { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .base-wall { grid-template-columns: 1fr; } }

/* Назначения — кликабельные теги */
a.chip { transition: background 0.25s ease, color 0.25s ease, transform 0.3s var(--ease); }
a.chip:hover { background: var(--dir-soft); color: var(--blue); transform: translateY(-2px); }

/* Плитка-переход в каталог в конце подборки */
.card-more {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  background: var(--dir-soft);
  border-color: transparent;
}

.card-more b { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.card-more span { font-size: 12px; font-weight: 600; color: var(--slate); }
.card-more i { margin-top: 8px; font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--blue); }
.card-more:hover i { text-decoration: underline; }

/* ==========================================================================
   Выбор исполнения на карточке основы: списки и ползунок
   ========================================================================== */
.conf-note {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--slate-2);
}

.conf-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  margin-bottom: 26px;
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.conf-bar .fsel select { width: 100%; min-width: 0; }

.conf-bar .fstatic {
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
}

.conf-bar .frange { min-width: 0; padding-bottom: 2px; }
.conf-bar .frange input[type="range"] { width: 100%; }

@media (max-width: 620px) { .conf-bar { grid-template-columns: 1fr; } }

/* ==========================================================================
   Свои выпадающие списки
   ========================================================================== */
.xsel { position: relative; width: 100%; }

.xsel select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.xsel-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.xsel-btn:hover { border-color: var(--slate-2); }

.xsel.open .xsel-btn {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-glow);
}

.xsel-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.xsel-arrow {
  flex: 0 0 auto;
  width: 7px; height: 7px;
  border-right: 2px solid var(--slate-2);
  border-bottom: 2px solid var(--slate-2);
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.4s var(--ease-out), border-color 0.25s ease;
}

.xsel.open .xsel-arrow {
  transform: rotate(-135deg) translate(-2px, -2px);
  border-color: var(--blue);
}

.xsel-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: 260px;
  padding: 6px;
  overflow-y: auto;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(13,20,32,0.18), inset 0 0 0 1px var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.35s var(--ease-out), visibility 0.22s;
}

.xsel.open .xsel-menu { opacity: 1; visibility: visible; transform: none; }

.xsel.up .xsel-menu { top: auto; bottom: calc(100% + 6px); transform: translateY(6px); }
.xsel.up.open .xsel-menu { transform: none; }

.xsel-opt {
  padding: 9px 11px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.xsel-opt:hover { background: var(--bg-soft); }

.xsel-opt.on {
  background: var(--dir-soft, var(--bg-soft));
  color: var(--blue);
}

/* тонкая полоса прокрутки внутри списка */
.xsel-menu::-webkit-scrollbar { width: 8px; }
.xsel-menu::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; border: 2px solid var(--surface); }

/* сортировка в каталоге — тот же вид, но по содержимому */
.cat-top .xsel { width: auto; min-width: 200px; }
.cat-top .xsel-btn { height: 40px; }

/* Страница-заготовка технопарка: пустое белое полотно между шапкой и подвалом */
.park-blank {
  min-height: calc(100svh - var(--header-h) - 340px);
  padding: calc(var(--header-h) + 60px) 0 80px;
  background: var(--bg);
}

/* ==========================================================================
   Кнопка «Заказать звонок» в шапке
   ========================================================================== */
.call-btn {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 16px;
  gap: 8px;
  font-size: 11.5px;
}

.call-btn svg { width: 15px; height: 15px; }

@media (max-width: 1240px) {
  .call-btn span, .call-btn { font-size: 0; padding: 0 12px; }   /* остаётся только трубка */
  .call-btn svg { width: 17px; height: 17px; }
}

@media (max-width: 940px) { .call-btn { display: none; } }

/* окно заказа звонка */
.call-pop {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  right: 28px;
  z-index: 940;
  width: 320px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 50px rgba(13,20,32,0.22), inset 0 0 0 1px var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.3s ease, transform 0.45s var(--ease-out), visibility 0.3s;
}

.call-pop.on { opacity: 1; visibility: visible; transform: none; }

.call-pop h4 { font-size: 17px; margin-bottom: 6px; }

.call-pop p {
  margin: 0 0 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--slate);
}

.call-pop input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  margin-bottom: 10px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
}

.call-pop input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-glow); }

.call-pop .btn { width: 100%; }

.call-pop .note { margin: 12px 0 0; font-size: 11px; line-height: 1.45; color: var(--slate-2); }

.call-pop .close {
  position: absolute;
  top: 12px; right: 12px;
  width: 28px; height: 28px;
  border: none;
  border-radius: 7px;
  background: var(--bg-soft);
  color: var(--slate);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.call-pop .close:hover { background: var(--ink); color: #fff; }
