/* ============================================================
   ПромТехСнаб — статический демо-сайт B2B-каталога оборудования
   Светлая и тёмная темы через CSS-переменные (html.dark)
   ============================================================ */
:root {
  --blue: #1551a1;
  --blue-dark: #0f3d7a;
  --red: #ed4040;
  --red-icon: #eb0707;

  --bg: #ffffff;
  --text: #000000;
  --card: #ffffff;
  --panel: #f0f0f0;
  --stripe: #f3f4f5;
  --tile: #e7f5fe;
  --thumb: #ececec;
  --line: #e3e6ea;
  --input-border: #bbbbbb;
  --gray: #5a5a5a;
  --accent: #1551a1;
  --green: #079d0e;
  --danger: #e00000;
  --shadow: rgba(169, 161, 161, 0.55);

  --top-h: 30px;
  --bar-h: 78px;
}
html.dark {
  --bg: #131a21;
  --text: #e6e9ec;
  --card: #1c242d;
  --panel: #171e26;
  --stripe: #202932;
  --tile: #1f2d3a;
  --thumb: #2a3540;
  --line: #2c3641;
  --input-border: #3a4550;
  --gray: #98a2ac;
  --accent: #79aef2;
  --green: #38c14e;
  --danger: #ff8080;
  --shadow: rgba(0, 0, 0, 0.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background 0.25s ease, color 0.25s ease;
}
img, svg { max-width: 100%; }
a { color: var(--accent); }
button { font: inherit; cursor: pointer; }

.icon { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.12em; }

/* ---------- Кнопки (синие, скругление 4px, эффект «блика») ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  background: var(--blue);
  color: #fff;
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  text-align: center;
}
html.dark .btn { border-color: rgba(255, 255, 255, 0.35); }
.btn::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -55px;
  width: 26px;
  height: 160%;
  background: #fff;
  opacity: 0.3;
  transform: rotate(37deg);
  transition: left 0.3s ease;
}
.btn:hover::before { left: 95%; }
.btn-red { background: var(--red); border-color: var(--red); text-transform: uppercase; }

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: var(--card);
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.btn-outline:hover { background: var(--tile); }

/* ---------- Переключатель темы ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1px 10px;
  color: var(--text);
  font-size: 0.75rem;
  white-space: nowrap;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Кнопка «наверх» ---------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 76px;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  font-size: 20px;
  line-height: 1;
}
.to-top.show { display: flex; }
.to-top:hover { background: var(--blue-dark); }

/* ---------- Чат поддержки ---------- */
.chat-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1600;
}
.chat-launcher {
  animation: chatPop 0.45s ease 0.6s backwards;
  transition: transform 0.2s ease, background 0.2s ease;
}
.chat-launcher:hover { background: var(--blue-dark); transform: scale(1.08); }
.chat-launcher.hidden { display: none; }
.chat-launcher.notify::after {
  animation: pulseDot 1.2s ease infinite;
}
.chat-launcher.notify::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid #fff;
}
.chat-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 340px;
  max-width: calc(100vw - 24px);
  height: 460px;
  max-height: calc(100vh - 40px);
  background: var(--card);
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1600;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.95);
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.chat-panel.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.chat-head {
  background: #232b3e;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}
.chat-head img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #3a465e;
}
.chat-head-info { flex: 1; line-height: 1.25; min-width: 0; }
.chat-head-info b { display: block; font-size: 0.95rem; }
.chat-head-info span { font-size: 0.75rem; opacity: 0.7; }
.chat-call {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #3a465e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  cursor: default;
}
.chat-min {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  padding: 0 4px;
}
.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
}
.chat-msg {
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.chat-msg.op {
  background: var(--stripe);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg.me {
  background: var(--blue);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-msg.sys {
  background: none;
  color: var(--gray);
  align-self: center;
  font-size: 0.75rem;
  text-align: center;
}
.chat-quick {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding: 0 12px 8px;
  background: var(--bg);
}
.chat-quick button {
  border: 1px solid #27ae60;
  color: #27ae60;
  background: var(--card);
  border-radius: 16px;
  padding: 5px 14px;
  font-size: 0.85rem;
}
.chat-quick button:hover { background: #27ae60; color: #fff; }
.chat-input {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: var(--card);
}
.chat-input input {
  flex: 1;
  border: none;
  outline: none;
  font: inherit;
  font-size: 0.9rem;
  background: transparent;
  color: var(--text);
}
.chat-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: #fff;
  font-size: 0.95rem;
}
.chat-send:disabled { opacity: 0.5; }

/* ---------- Шапка: верхняя полоса ---------- */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--top-h);
  background: var(--card);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  z-index: 1000;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.top-bar b { color: var(--accent); }
.top-bar a { text-decoration: none; color: var(--accent); font-weight: 700; }
.soc { display: inline-flex; padding: 3px; color: var(--gray); }
.soc:hover { color: var(--accent); }
.soc .icon { width: 18px; height: 18px; }

/* ---------- Шапка: главная синяя полоса ---------- */
.main-bar {
  position: fixed;
  top: var(--top-h); left: 0; right: 0;
  height: var(--bar-h);
  background: var(--blue);
  z-index: 1001;
  display: flex;
  align-items: stretch;
  box-shadow: 0 5px 15px 2px var(--shadow);
}
.logo-plate {
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  margin-left: 4%;
  box-shadow: 0 5px 15px 2px var(--shadow);
  text-decoration: none;
  color: var(--blue);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.logo-plate .icon { width: 30px; height: 30px; flex: none; }
.logo-plate span b { color: var(--blue-dark); }
.logo-plate img.logo-img { height: 66px; width: auto; display: block; }
.mobile-bar .logo-plate img.logo-img { height: 52px; }
.main-items {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 24px;
  color: #fff;
  padding: 0 16px;
  font-size: 0.9rem;
  min-width: 0;
}
.hdr-item {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.25;
  white-space: nowrap;
}
.hdr-item small { display: block; opacity: 0.85; }
.hdr-item a { color: #fff; text-decoration: none; }
.hdr-item a:hover { text-decoration: underline; }
.hdr-item .icon { width: 20px; height: 20px; flex: none; }
.hdr-item .icon.pin { color: var(--red-icon); }
.hdr-search { display: flex; align-items: center; gap: 8px; color: #fff; position: relative; }
.search-suggest {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 330px;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  z-index: 1200;
  overflow: hidden;
  display: none;
}
.search-suggest.open { display: block; }
.suggest-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.3;
}
.suggest-item:hover, .search-suggest a.active { background: var(--tile); }
.suggest-item b { color: var(--accent); }
.suggest-item img, .suggest-noimg {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: var(--thumb);
  border-radius: 6px;
  flex: none;
}
.suggest-all {
  display: block;
  text-align: center;
  padding: 8px;
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.hdr-search .icon { width: 20px; height: 20px; }
.hdr-search input {
  width: 9.5em;
  border: 1px solid #000;
  border-radius: 6px;
  padding: 5px 10px;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
  color: #000;
}
.hdr-about { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hdr-about:hover { text-decoration: underline; }
.btn-ghost {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.8rem;
  white-space: nowrap;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Мобильная шапка ---------- */
.mobile-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: var(--card);
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  box-shadow: 0 5px 15px 1px var(--shadow);
}
.mobile-bar .logo-plate {
  margin: 0;
  padding: 4px 12px;
  box-shadow: none;
  font-size: 1.1rem;
  background: #fff;
  border-radius: 8px;
  color: var(--accent);
}
html.dark .mobile-bar .logo-plate { box-shadow: 0 0 0 1px var(--line); }
.mobile-actions { display: flex; align-items: center; gap: 12px; }
.mobile-actions a { color: var(--accent); text-decoration: none; font-size: 0.85rem; font-weight: 600; }
.mobile-actions .icon { width: 22px; height: 22px; }

.header-spacer { height: calc(var(--top-h) + var(--bar-h)); }

/* мобильная строка поиска (включается в медиазапросе) */
.mobile-search { display: none; padding: 10px 3%; background: var(--panel); border-bottom: 1px solid var(--line); }
.mobile-search input {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  padding: 9px 12px;
  font: inherit;
  background: var(--card);
  color: var(--text);
}

/* ---------- Полоса преимуществ ---------- */
.benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 14px 3%;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  line-height: 1.3;
  max-width: 240px;
  text-decoration: none;
  padding: 4px 10px;
}
.benefit .icon { width: 38px; height: 38px; flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(20vw, 240px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: linear-gradient(120deg, #0e2a57, #1551a1);
}
.hero-photo .cover-shade { background: rgba(0, 0, 0, 0.38); }
.scene { position: absolute; inset: 0; }
.scene svg { width: 100%; height: 100%; display: block; }
.cover-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.hero-content { position: relative; z-index: 2; padding: 36px 4%; }
.hero-title {
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 2.2vw, 2.2rem);
  letter-spacing: 2px;
  line-height: 1.4;
}
.hero-sub {
  margin: 0.9em auto 0;
  font-size: clamp(0.85rem, 1.1vw, 1.05rem);
  opacity: 0.95;
  max-width: 1100px;
}
.hero.hero-photo { min-height: max(24vw, 300px); }
.hero-photo .scene img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}
.hero-tagline { margin-top: 0.8em; font-weight: 700; font-size: clamp(1rem, 1.4vw, 1.3rem); }
.hero-links { margin-top: 1.2em; font-size: 0.85rem; }
.hero-links a { color: #fff; }

/* ---------- Заголовки секций и страниц (с фирменной чертой) ---------- */
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  margin: 1.6em 3% 0.6em;
}
.section-title::after,
.page-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--blue);
  margin: 10px auto 0;
  border-radius: 2px;
}
.page-title {
  text-align: center;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  font-weight: 800;
  margin: 24px 3% 14px;
  line-height: 1.35;
}
.crumbs { padding: 20px 3% 0; font-size: 0.9rem; color: var(--gray); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Сетка карточек категорий ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 30px;
  padding: 28px 3% 46px;
}
.cat-card {
  background: var(--card);
  box-shadow: 10px 10px 15px 2px var(--shadow);
  border-radius: 8px;
  border-top: 3px solid transparent;
  padding: 12px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.cat-card:hover {
  transform: scale(1.04);
  box-shadow: 12px 12px 15px 7px var(--shadow);
  border-top-color: var(--blue);
  z-index: 2;
}
.cat-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tile);
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  color: var(--accent);
}
.cat-thumb svg { width: 58%; height: 58%; }
.cat-name {
  color: var(--accent);
  font-weight: 700;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.25;
  margin: 0.9em 0;
}
.cat-card .btn { margin-top: auto; align-self: flex-end; }

/* ---------- Карточка товара (лот) ---------- */
.prod-thumb {
  background: var(--thumb);
  border-radius: 10px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: var(--accent);
}
.prod-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.prod-thumb svg { width: 55%; height: 55%; }
.prod-name {
  color: var(--accent);
  font-weight: 700;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.35;
  margin: 0.9em 0 0;
}
.prod-info {
  font-size: 0.9rem;
  text-align: left;
  margin-top: auto;
  padding-top: 2.2em;
}
.prod-info b { font-weight: 700; }

/* ---------- Страница категории: карточки подкатегорий ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
  padding: 28px 3% 46px;
}
.prod-desc { font-size: 0.85rem; color: var(--gray); text-align: center; margin-bottom: 0.8em; }
.prod-meta { font-size: 0.85rem; text-align: center; margin-bottom: 1em; }
.prod-meta .yes { color: var(--green); font-weight: 700; }
.prod-meta .price { font-weight: 700; }

/* ---------- Страница товара ---------- */
.product-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  padding: 26px 3%;
  align-items: start;
}
.gallery-main {
  background: var(--thumb);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  padding: 14px;
}
.gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button {
  width: 72px; height: 72px;
  background: var(--thumb);
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 4px;
  display: flex; align-items: center; justify-content: center;
}
.gallery-thumbs button.active { border-color: var(--blue); }
.gallery-thumbs img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-side {
  background: var(--card);
  box-shadow: 10px 10px 15px 2px var(--shadow);
  border-radius: 8px;
  border-top: 3px solid var(--blue);
  padding: 22px 26px;
}
.product-side p { margin: 0.35em 0; }
.product-side .btn { margin: 1.2em 8px 0 0; font-size: 0.9rem; }
.meta-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.meta-line span { color: var(--gray); }
.meta-line b { font-size: 1.05rem; }
.meta-line b.ok { color: var(--green); }
.desc-sub {
  color: var(--accent);
  font-weight: 700;
  margin-top: 1em;
}
.desc-list { margin: 0.3em 0 0.6em 1.3em; }
.desc-list li { margin: 0.15em 0; }

/* панель преимуществ и кнопки в карточке товара */
.side-perks { list-style: none; margin: 14px 0 4px; padding: 0; }
.side-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}
.side-perks li:last-child { border-bottom: none; }
.side-perks .icon { width: 20px; height: 20px; color: var(--accent); flex: none; }
.side-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.side-actions .btn { margin: 0; flex: 1; white-space: nowrap; }

/* вкладки описание/комплектация/характеристики */
.product-tabs { padding: 6px 3% 36px; }
.tab-bar { display: flex; gap: 4px; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.tab-btn {
  background: none;
  border: none;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tab-btn:hover { color: var(--accent); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--blue); }
.tab-panel {
  display: none;
  background: var(--card);
  border-radius: 0 0 8px 8px;
  padding: 24px 28px;
  box-shadow: 10px 10px 15px 2px var(--shadow);
  font-size: 0.95rem;
}
.tab-panel.active { display: block; animation: fadeUp 0.35s ease; }
.tab-panel > ul { margin-left: 1.3em; }
.tab-panel > ul li { margin: 0.3em 0; }
.tab-panel p { margin: 0.55em 0; }
.invite-city { font-size: 0.95rem; color: var(--gray); margin-bottom: 0.6em; }
.invite-city b { color: var(--accent); }
.form-err { color: var(--red); font-size: 0.85rem; margin-top: 0.8em; text-align: center; }
.demo-form input.invalid { border-color: var(--red); box-shadow: 0 0 0 2px rgba(237, 64, 64, 0.15); }
.detail-block { padding: 4px 3% 26px; }
.detail-block h2 { color: var(--accent); font-size: 1.2rem; margin: 1em 0 0.5em; }
.detail-block ul { margin-left: 1.4em; }
.spec-table { width: 100%; max-width: 760px; border-collapse: collapse; font-size: 0.9rem; }
.spec-table td { padding: 6px 12px; border-bottom: 1px solid var(--line); }
.spec-table tr:nth-child(odd) { background: var(--stripe); }
.spec-table td:first-child { font-weight: 600; width: 45%; }
.empty-note { padding: 24px 3%; text-align: center; color: var(--gray); grid-column: 1 / -1; }

/* ---------- Текстовые страницы ---------- */
.text-block { max-width: 900px; margin: 0 auto; padding: 10px 4% 30px; }
.text-block ul { margin: 0.6em 0 0 1.3em; }
.text-block li { margin: 0.25em 0; }

/* ---------- Лендинг «Двигатели и приводы» ---------- */
.subnav { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 3% 0; flex-wrap: wrap; }
.subnav a {
  font-size: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 3px 12px;
  text-decoration: none;
  color: var(--accent);
  background: var(--card);
}
.subnav a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.land-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.25fr 1fr 1fr;
  gap: 28px;
  padding: 24px 3% 14px;
  align-items: stretch;
}
.land-card {
  background: var(--card);
  box-shadow: 10px 10px 15px 2px var(--shadow);
  border-radius: 8px;
  border-top: 3px solid var(--blue);
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.land-card.big { grid-row: span 2; }
.land-title {
  color: var(--accent);
  font-weight: 700;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 10px;
}
.land-card.small .land-title { font-size: 0.9rem; }
.land-photo { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 180px; }
.land-photo img { max-width: 100%; max-height: 280px; object-fit: contain; }
.land-note { font-size: 0.85rem; text-align: center; color: var(--text); margin: 10px 0 0; }
.card-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; align-items: end; }
.duo figure { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; }
.duo img { max-height: 90px; max-width: 100%; object-fit: contain; }
.duo figcaption { font-size: 0.72rem; color: var(--accent); font-weight: 600; text-align: center; line-height: 1.25; }
.equip { max-width: 1100px; margin: 0 auto; padding: 26px 4% 20px; text-align: center; }
.equip ol { display: inline-block; text-align: left; margin: 0.8em 0 0 1.4em; }
.equip li { margin: 0.2em 0; }
.equip .note { margin-top: 1.2em; }
.credits { font-size: 11px; color: var(--gray); padding: 0 3% 16px; }
.credits a { color: var(--gray); }

/* ---------- Футер: блок «О компании» на тёмном фоне ---------- */
.footer-about {
  position: relative;
  color: #fff;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, #1c2733, #0e1622);
}
.footer-about .cover-shade { background: rgba(0, 0, 0, 0.35); }
.footer-about-in { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; padding: 42px 4%; }
.footer-about h2 { font-size: 1.6rem; margin-bottom: 0.7em; }
.footer-about p { margin-bottom: 0.9em; }
.footer-about ul { display: inline-block; text-align: left; margin: 0.5em 0 1em 1.2em; }
.footer-about a { color: #fff; }

/* ---------- Футер: телефонный справочник городов ---------- */
.city-block { padding: 10px 3% 40px; }
.city-tables {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 30px;
  margin-top: 14px;
}
.city-tables table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.city-tables td { padding: 3px 8px; line-height: 1.35; }
.city-tables td:first-child { font-weight: 700; }
.city-tables tr:nth-child(even) { background: var(--stripe); }
.city-tables a { color: inherit; text-decoration: none; }
.city-tables tr:hover td, .city-tables tr:hover a { color: var(--danger); }

/* ---------- Футер: контакты + форма ---------- */
.contact-zone {
  background: var(--panel);
  padding: 44px 3%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.contact-invite { text-align: center; font-size: 1.05rem; }
.contact-invite .big { font-size: 1.5rem; font-weight: 800; white-space: nowrap; }
.contact-invite .big a { color: var(--accent); }
.contact-invite a { text-decoration: none; }
.contact-invite .btn { margin-top: 1.2em; font-size: 0.9rem; }
.form-card {
  background: var(--card);
  box-shadow: 10px 10px 15px 2px var(--shadow);
  border-radius: 8px;
  border-top: 3px solid var(--blue);
  padding: 28px 30px;
  max-width: 520px;
  width: 100%;
  justify-self: center;
}
.form-card h3 { margin-bottom: 0.8em; font-size: 1.1rem; }
.demo-form label { display: block; font-size: 0.85rem; margin: 0.8em 0 0.2em; }
.demo-form input[type="text"],
.demo-form input[type="tel"],
.demo-form textarea {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
}
.demo-form textarea { min-height: 80px; resize: vertical; }
.consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--gray);
  margin: 1em 0;
}
.consent input { margin-top: 3px; }
.form-ok { text-align: center; font-weight: 600; color: var(--green); }
.form-note { font-size: 0.75rem; color: var(--gray); margin-top: 0.8em; }

/* ---------- Футер: нижний ряд ---------- */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 28px 3%;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.fb-contacts { font-size: 1.35rem; font-weight: 800; line-height: 1.5; }
.fb-contacts a { text-decoration: none; color: var(--text); }
.fb-contacts small { display: block; font-size: 0.8rem; font-weight: 400; color: var(--gray); }
.cookie-note { max-width: 36%; font-size: 12px; color: var(--gray); }

/* ---------- Модальные окна ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.modal .modal-box { transform: translateY(16px) scale(0.97); transition: transform 0.22s ease; }
.modal.open { opacity: 1; visibility: visible; }
.modal.open .modal-box { transform: none; }
.modal-box {
  background: var(--card);
  color: var(--text);
  width: 100%;
  max-width: 440px;
  max-height: 86vh;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-box.wide { max-width: 640px; }
.modal-head {
  background: var(--blue);
  color: #fff;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}
.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0 4px;
}
.modal-body { padding: 20px 22px; overflow-y: auto; }
.city-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 14px;
}
.city-list button {
  background: none;
  border: none;
  text-align: left;
  color: var(--accent);
  padding: 3px 4px;
  font-size: 0.9rem;
  border-radius: 4px;
}
.city-list button:hover { background: var(--tile); }

/* ---------- Адаптивность ---------- */
@media (max-width: 1350px) {
  .hide-lg { display: none; }
  .main-items { gap: 18px; }
}
@media (max-width: 1150px) {
  .land-grid { grid-template-columns: 1fr 1fr; }
  .land-card.big { grid-row: auto; }
}
@media (max-width: 1100px) {
  .hide-md { display: none; }
  .hdr-search input { width: 7em; }
  .logo-plate { margin-left: 2%; font-size: 1.15rem; }
}
@media (max-width: 880px) {
  .top-bar, .main-bar { display: none; }
  .mobile-bar { display: flex; }
  .header-spacer { height: 64px; }
  .mobile-search { display: block; }
  .benefits { gap: 12px; }
  .benefit { font-size: 0.7rem; max-width: 44%; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
  .contact-zone { grid-template-columns: 1fr; padding: 30px 4%; }
  .city-tables { grid-template-columns: repeat(2, 1fr); }
  .cookie-note { max-width: 100%; }
  .city-list { grid-template-columns: repeat(2, 1fr); }
  .product-wrap { grid-template-columns: 1fr; gap: 22px; padding: 20px 4%; }
  .product-side { padding: 18px; }
  .side-actions .btn { flex: 1 1 100%; }
  .product-tabs { padding: 6px 4% 28px; }
  .tab-btn { padding: 9px 12px; font-size: 0.85rem; }
  .tab-panel { padding: 16px 14px; }
  .spec-table td:first-child { width: 52%; }
  .hero-links { font-size: 0.78rem; }
  .hero-content { padding: 26px 5%; }
  .contact-invite .big { white-space: normal; font-size: 1.3rem; }
  .form-card { padding: 20px 16px; }
  .equip { text-align: left; }
  .equip ol { margin-left: 1.2em; }
  /* поля не меньше 16px — iPhone не будет зумить страницу при фокусе */
  .demo-form input[type="text"],
  .demo-form input[type="tel"],
  .demo-form textarea,
  .chat-input input,
  .mobile-search input { font-size: 16px; }
  .gallery-main { aspect-ratio: 1 / 1; }
  .fb-contacts { width: 100%; }
  .fb-contacts a { display: inline-block; }
}
@media (max-width: 640px) {
  .land-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .city-tables { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
  .fb-contacts { font-size: 1.1rem; }
}

/* ---------- Анимации ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes chatPop {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 1; transform: none; }
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.35); }
}
.hero-content { animation: fadeUp 0.7s ease 0.1s backwards; }
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.btn, .btn-outline, .btn-ghost { transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease; }
.btn:hover, .btn-outline:hover, .btn-ghost:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-content, .chat-launcher { animation: none; }
}
