/* ============================================================
   Шапка, подвал, общая раскладка
   ============================================================ */

/* ---------- Топбар (тёмная узкая полоса) ---------- */
.topbar {
  background: var(--c-bg-dark);
  color: var(--c-text-on-dark);
  font-size: var(--fs-xs);
  height: var(--h-topbar);
  display: flex;
  align-items: center;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}
.topbar__info {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  color: var(--c-text-on-dark-muted);
}
.topbar__info span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar__info svg { color: var(--c-text-on-dark-muted); }
.topbar__nav {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}
.topbar__nav a {
  color: var(--c-text-on-dark);
  font-weight: var(--fw-medium);
  transition: opacity var(--dur-fast) var(--ease);
}
.topbar__nav a:hover { opacity: 0.75; }

/* ---------- Шапка ---------- */
.header {
  background: #fff;
  border-bottom: 1px solid var(--c-border-soft);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}
.header__inner {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: var(--s-5);
  min-height: var(--h-header);
  padding-block: var(--s-3);
}

/* Логотип */
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.logo__mark {
  height: 52px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

/* Группа кнопок «Каталог + Опт» */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.btn-catalog {
  background: var(--c-cta-dark);
  color: #fff;
  height: var(--h-input);
  padding-inline: var(--s-5);
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  transition: background var(--dur-fast) var(--ease);
}
.btn-catalog:hover { background: var(--c-cta-dark-hover); }
.btn-catalog .burger {
  position: relative;
  width: 14px;
  height: 12px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}
.btn-catalog .burger span {
  display: block;
  width: 14px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease), opacity var(--dur-fast) var(--ease);
  transform-origin: center;
}
.btn-catalog.is-active .burger span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.btn-catalog.is-active .burger span:nth-child(2) {
  opacity: 0;
}
.btn-catalog.is-active .burger span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}
.btn-b2b {
  height: var(--h-input);
  padding-inline: var(--s-5);
  background: #E6EDF6;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--c-cta-dark);
  transition: background var(--dur-fast) var(--ease);
}
.btn-b2b:hover { background: #D7E2EF; }

/* Телефон */
.header__phone {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  white-space: nowrap;
}
.header__phone:hover { color: var(--c-primary); }

/* Иконки справа */
.header__icons {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

/* ---------- Подвал ---------- */
.footer {
  background: var(--c-bg-dark);
  color: var(--c-text-on-dark);
  padding-block: var(--s-12) var(--s-6);
  margin-top: var(--s-14);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--s-10);
  padding-bottom: var(--s-10);
}
.footer__logo .logo__mark { height: 64px; filter: brightness(0) invert(1); opacity: 0.95; }
.footer__brand p {
  font-size: var(--fs-sm);
  color: var(--c-text-on-dark-muted);
  margin-top: var(--s-4);
  line-height: var(--lh-relax);
  max-width: 320px;
}
.footer__col h5 {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--c-text-on-dark-muted);
  margin-bottom: var(--s-5);
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.footer__col a {
  font-size: var(--fs-sm);
  color: var(--c-text-on-dark);
  transition: opacity var(--dur-fast) var(--ease);
}
.footer__col a:hover { opacity: 0.7; }
.footer__contacts a.phone {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  display: block;
  margin-bottom: var(--s-2);
}
.footer__contacts .email { display: block; margin-bottom: var(--s-3); }
.footer__contacts .addr {
  font-size: var(--fs-sm);
  color: var(--c-text-on-dark-muted);
  line-height: var(--lh-relax);
}
.footer__dev {
  margin-top: var(--s-4);
  font-size: var(--fs-xs);
  color: var(--c-text-on-dark-muted);
  opacity: 0.7;
}
.footer__dev a {
  color: inherit;
  border-bottom: 1px dotted currentColor;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.footer__dev a:hover {
  color: #fff;
  border-bottom-color: #fff;
}
.footer__bottom {
  border-top: 1px solid var(--c-border-on-dark);
  padding-top: var(--s-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-4);
  font-size: var(--fs-xs);
  color: var(--c-text-on-dark-muted);
}
.footer__bottom-links {
  display: flex;
  gap: var(--s-6);
}
.footer__bottom-links a:hover { color: #fff; }

/* ---------- Секции ---------- */
.section {
  padding-block: var(--s-12);
}
.section-tight {
  padding-block: var(--s-9);
}
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-7);
}
.section__head h2 {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
}
.section__head .link-all {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--dur-fast) var(--ease);
}
.section__head .link-all:hover { color: var(--c-primary-hover); }
