@charset "UTF-8";
/* ==========================================================================
   layout.css — контейнер, шапка, подвал, хлебные крошки, секции
   ========================================================================== */

/* --------------------------------------------------------------------------
   Контейнер и секции
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 60px 0; }
.section--tight  { padding: 30px 0; }
.section--flush  { padding: 0; }
.section--alt    { background: var(--c-bg-alt); }
.section--dark   { background: var(--c-navy); color: var(--c-white); }

.section__head { margin-bottom: 40px; }
.section__title { margin-bottom: 10px; }
.section__title--primary { color: var(--c-primary); }
.section__descr {
  max-width: 1080px;
  font-size: var(--fs-base);
  font-weight: 300;
  line-height: 1.55;
  color: var(--c-text-soft);
}

.page-main { min-height: 40vh; }

/* --------------------------------------------------------------------------
   BLOCK: header — шапка (2 строки, 120px)
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
}
.header__top {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 70px;
  /* Верхняя полоса шапки у донора серая (#f8f8f8), нижняя — белая. Граница между
     ними приходится ровно на разделитель .header__bottom (y = 70). */
  background: #f8f8f8;
}
.header__logo { flex: 0 0 auto; display: block; }
.header__logo img { width: 218px; height: auto; }

.header__contacts {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}
.header__phone {
  font-size: var(--fs-h4);
  font-weight: 400;
  line-height: 1.55;
  color: var(--c-text);
  white-space: nowrap;
}
.header__phone:hover { color: var(--c-primary); }
.header__mail {
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.55;
  color: var(--c-text);
  white-space: nowrap;
}
.header__mail:hover { color: var(--c-primary); }

.socials { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; }
/* flex: 0 0 auto + max-width: none обязательны: без них ссылка сжимается флексом,
   а max-width: 100% из сброса схлопывает иконку в вертикальную полоску */
.socials__link { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.socials__link img { width: auto; height: 33px; max-width: none; }
.socials__link:hover { opacity: .75; }
.socials__link--tg img { height: 42px; }

/* В подвале иконки крупнее и в размерах донора: MAX 40x40, Telegram 48x48, зазор 17 */
.footer .socials { align-items: center; gap: 17px; }
.footer .socials__link img { width: 40px; height: 40px; max-width: none; }
.footer .socials__link--tg img { width: 48px; height: 48px; max-width: none; }

.header__cta { flex: 0 0 auto; min-width: 170px; }

.header__bottom {
  display: flex;
  align-items: center;
  height: 50px;
  border-top: 1px solid var(--c-border);
}

/* Навигация каталога (вторая строка) */
.nav {
  display: flex;
  align-items: center;
  gap: 44px;
  width: 100%;
}
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.55;
  color: var(--c-text);
  white-space: nowrap;
}
.nav__link:hover,
.nav__link.is-active { color: var(--c-primary); }
.nav__item--last { margin-left: auto; }

.nav__caret {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--tr);
}
.nav__item.is-open > .nav__link .nav__caret { transform: rotate(-135deg) translateY(-2px); }

/* Выпадающее подменю каталога */
.submenu {
  position: absolute;
  top: 100%;
  left: -20px;
  z-index: 20;
  min-width: 280px;
  margin-top: 12px;
  padding: 14px 0;
  background: var(--c-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--tr), transform var(--tr), visibility var(--tr);
}
.nav__item.is-open > .submenu,
.nav__item:hover > .submenu,
.nav__item:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu__link {
  display: block;
  padding: 8px 24px;
  font-size: var(--fs-xs);
  line-height: 1.4;
  color: var(--c-text);
}
.submenu__link:hover { background: var(--c-bg-alt); color: var(--c-primary); }

/* Бургер */
.burger {
  display: none;
  flex: 0 0 auto;
  width: 44px; height: 44px;
  margin-left: auto;
  position: relative;
}
.burger__line {
  position: absolute;
  left: 10px;
  width: 24px; height: 2px;
  background: var(--c-primary);
  transition: transform var(--tr), opacity var(--tr), top var(--tr);
}
.burger__line:nth-child(1) { top: 15px; }
.burger__line:nth-child(2) { top: 21px; }
.burger__line:nth-child(3) { top: 27px; }
.burger.is-open .burger__line:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.is-open .burger__line:nth-child(2) { opacity: 0; }
.burger.is-open .burger__line:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 80px 20px 40px;
  background: var(--c-white);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform .3s ease, opacity .3s ease, visibility .3s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateX(0); }
.mobile-menu__list { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu__link {
  display: block;
  padding: 12px 0;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid var(--c-border-soft);
}
.mobile-menu__sub { padding: 0 0 8px 16px; }
.mobile-menu__sub .mobile-menu__link {
  font-size: var(--fs-xs);
  font-weight: 400;
  padding: 8px 0;
  border-bottom: 0;
  color: var(--c-text-soft);
}
.mobile-menu__foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.mobile-menu__phone { font-size: 20px; font-weight: 600; color: var(--c-primary); }

/* --------------------------------------------------------------------------
   BLOCK: breadcrumbs — хлебные крошки
   -------------------------------------------------------------------------- */
.breadcrumbs { padding: 20px 0 8px; }
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: var(--fs-xxs);
  line-height: 1.5;
  color: var(--c-text-muted);
}
.breadcrumbs__item { display: flex; align-items: center; gap: 10px; }
.breadcrumbs__item::after { content: '/'; color: var(--c-border); }
.breadcrumbs__item:last-child::after { content: none; }
.breadcrumbs__link:hover { color: var(--c-primary); }
.breadcrumbs__current { color: var(--c-text-soft); }

/* --------------------------------------------------------------------------
   BLOCK: footer — подвал
   -------------------------------------------------------------------------- */
.footer {
  padding: 34px 0 0;
  background: var(--c-navy);
  color: var(--c-white);
}
.footer__top {
  display: grid;
  /* Ширины подобраны под донора: колонки «Компания» и «Каталог» встают на его позиции
     (700 и 939 от левого края контента). Колонка контактов уезжает правее донора
     на ~120px — у него шапка подвала свёрстана абсолютом с наложением боксов,
     в потоке это не повторить без фиксированной высоты. */
  grid-template-columns: 402px 292px 190px 1fr;
  gap: 0 8px;
  padding-bottom: 40px;
}

.footer__brand { max-width: 402px; }
/* Вертикальный ритм колонки бренда — по донору: логотип 220x44, название на 103,
   описание на 141, разделитель на 236, кнопки на 262 (от верха контента подвала). */
.footer__logo { display: block; margin-bottom: 59px; }
.footer__logo img { width: 220px; height: 44px; object-fit: contain; object-position: left center; }
.footer__name {
  display: block;
  margin-bottom: 7px;
  font-size: var(--fs-h4);
  font-weight: 400;
  line-height: 1.55;
}
.footer__descr {
  font-size: var(--fs-xs);
  font-weight: 300;
  line-height: 1.4;
  color: var(--c-white);
}
.footer__sep {
  width: 360px;
  max-width: 100%;
  height: 1px;
  margin: 36px 0 25px;
  background: var(--c-accent);
  opacity: .5;
  border: 0;
}
/* Пара кнопок донора: 220 + 11 + 200 = 431 — шире колонки бренда (402),
   поэтому ширину задаём явно и не даём переносить. */
.footer__buttons { display: flex; flex-wrap: nowrap; gap: 11px; width: 431px; }

.footer__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  /* Донор ставит мессенджеры на 290px от левого края контента, залезая боксом
     на колонку бренда (у него всё абсолютом). Сдвигаем колонку влево, чтобы
     совпасть: по вертикали блоки не пересекаются, как и у него. */
  margin-left: -120px;
}
.footer__contacts-row { display: flex; align-items: center; gap: 25px; }
.footer__phone {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--c-white);
  white-space: nowrap;
}
.footer__phone:hover { color: var(--c-accent-2); }
.footer__mail {
  /* у донора почта стоит внизу колонки и выключена по телефону (375 от левого края) */
  margin-top: auto;
  margin-bottom: 64px;
  margin-left: 85px;
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.55;
  color: var(--c-accent-2);
}
.footer__mail:hover { color: var(--c-white); }

.footer__col { position: relative; }
.footer__col--bordered { padding-left: 24px; }
.footer__col--bordered::before {
  content: '';
  position: absolute;
  top: 3px; left: 0;
  width: 1px; height: 260px;
  background: var(--c-accent);
  opacity: .5;
}
.footer__col-title {
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--c-accent-2);
}
.footer__list { display: flex; flex-direction: column; gap: 10px; }
.footer__list a {
  font-size: var(--fs-xs);
  font-weight: 400;
  line-height: 1.55;
  color: var(--c-white);
}
.footer__list a:hover { color: var(--c-accent-2); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 40px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(1, 148, 255, .5);
  font-size: var(--fs-xs);
}
/* Интерлиньяж нижней строки подвала у донора задан в пикселях: 22px у копирайта и
   ссылок, 19px у подписи разработчика. Наши 1.55/1.55 давали 21.7 и 18.6. */
.footer__copy { line-height: 22px; color: var(--c-white); }
.footer__legal { line-height: 22px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.footer__legal a { color: var(--c-accent); }
.footer__legal a:hover { color: var(--c-white); }
.footer__dev {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  font-size: var(--fs-xxs);
  line-height: 19px;
  color: var(--c-white);
}
.footer__dev img { width: 70px; height: auto; }
