@charset "UTF-8";
/* =====================================================
   all_HEADER.css — Шапка сайта
   Путь: /css2/all_HEADER.css
   Группа конфигуратора: css_HEADER
   Версия: 3.1 — sticky shrink header, all responsive 240px+
   JS: menu2.js добавляет .header--compact при scroll > 80px
   ===================================================== */

/* ─── HEADER WRAPPER (sticky) ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  border-bottom: 1px solid #232b44;
  /* Transition на самом header для плавной смены высоты */
}

/* ─── ВЕРХНЕЕ МЕНЮ ─── */
.menu-organization {
  grid-row: 1;
  grid-column: 1/4;
  background: linear-gradient(135deg, #0d2a6d 0%, #1a3d8f 50%, #0d2a6d 100%);
  grid-area: nav;
  height: max-content;
  /* Плавное сворачивание */
  max-height: 60px;
  overflow: hidden;
  transition: opacity 0.2s ease;
  opacity: 1;
}

.menu-organization__links {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style-type: none;
  min-height: 25px;
  height: 100%;
}

.menu-organization__li { min-height: 30px; }

.menu-organization__link {
  color: #dcdee5;
  font-size: 14px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  height: 100%;
  text-shadow: #6483b9b8 1px 1px 2px;
  text-decoration: none;
  transition: all 0.25s ease;
  border-radius: 0 0 10px 10px;
  background: #bacbff36;
}
.menu-organization__link:hover {
  color: #fff;
  text-shadow: #1f417dd6 1px 1px 2px;
  background: rgba(94, 125, 225, 0.25);
}

.menu-organization__link_background {
  background: #13a519;
  color: white;
  padding: 0 20px;
  border-left: 2px solid rgb(100 241 106);
  border-right: 1px solid rgb(11 103 15);
  font-size: 16px;
  text-shadow: #005103 1px 1px 2px;
}
.menu-organization__link_background:hover {
  text-shadow: #434343 1px 1px 2px;
  background: #009105;
  border-left: 2px solid rgb(37 115 40);
  color: #f3f3f3;
}

.menu-organization_kont { font-weight: bold; }

.menu-organization__link_basket {
  color: #fff;
  background: #13a519;
  border-radius: 0 0 10px 10px;
  padding-right: 10px;
  margin-left: 10px;
}

.menu-organization__link_basket-int {
  border-radius: 50%;
  color: white;
  background: #F44336;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-left: 3px;
}

/* ─── ОСНОВНАЯ ИНФОРМАЦИЯ ─── */
.organization-information {
  display: grid;
  grid-template-areas:
    "cat-nav nav nav nav nav nav"
    "logo location search phone y w"
    "logo location search phone y w";
  background: linear-gradient(135deg, #001034 0%, #01248b 40%, #001870 100%);
  transition: opacity 0.2s ease;
}

/* ─── ЛОГОТИП ─── */
.logo {
  display: grid;
  color: #b4cbff;
  text-decoration: none;
  padding: 15px 0 5px 10px;
  grid-area: logo;
  align-content: center;
  grid-template-columns: 80px;
  transition: opacity 0.2s ease;
}
.logo__picture {
  grid-column: 1;
  grid-row: 1/3;
  align-self: center;
  justify-self: center;
  width: 60px;
  padding-right: 10px;
  transition: opacity 0.2s ease;
}
.logo__organization-name {
  font-size: 20px;
  margin: 0;
  font-weight: 400;
  transition: opacity 0.2s ease;
  overflow: hidden;
}
.logo__competences {
  grid-column: 2;
  margin: 0;
  padding: 0;
  list-style-type: none;
  font-size: 13px;
  min-width: 160px;
  transition: opacity 0.2s ease;
  max-height: 80px;
  overflow: hidden;
  opacity: 1;
}

/* ─── АДРЕС ─── */
.location {
  display: grid;
  min-width: 200px;
  grid-template-areas:
    "city street"
    "city work-time"
    "city phone-number"
    "new new";
  column-gap: 15px;
  padding: 10px 0;
  font-style: normal;
  grid-area: location;
  align-content: center;
  transition: opacity 0.2s ease;
}
.location__city {
  grid-area: city; align-self: center; justify-self: end;
  margin: 0; font-size: 20px; color: #a0c1fd; font-weight: 400;
  transition: opacity 0.2s ease;
}
.location__street {
  grid-area: street; align-self: center;
  margin: 0; color: #fff; font-size: 14px;
  transition: opacity 0.2s ease;
  max-height: 30px; overflow: hidden; opacity: 1;
}
.location__work-time {
  grid-area: work-time; align-self: center;
  margin: 0; color: #92e195; font-size: 12px;
  transition: opacity 0.2s ease;
  max-height: 30px; overflow: hidden; opacity: 1;
}
.location__phone-number {
  grid-area: phone-number; align-self: center;
  margin: 0; font-size: 16px; color: #f0f8ff;
  transition: opacity 0.2s ease;
}

/* ─── ПОИСК ─── */
.search {
  display: grid;
  padding: 10px 0 5px;
  min-width: 200px;
  align-content: center;
  grid-area: search;
  transition: opacity 0.2s ease;
}
.search__form { display: flex; border-radius: 10px; }

.search__search-string {
  width: calc(100% - 45px);
  height: 50px;
  font-size: 18px;
  border: 1px solid rgba(94, 125, 225, 0.4);
  border-right-color: rgba(56, 141, 100, 0.36);
  color: #fff;
  padding-left: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px 0 0 10px;
  transition: opacity 0.2s ease;
}
.search__search-string::-webkit-input-placeholder {
  color: rgb(135 158 205);
  font: 100 14px Arial;
  padding-left: 3px;
}
.search__search-string:focus { outline: 2px solid rgba(94, 125, 225, 0.6); outline-offset: -1px; }

.search__button {
  height: 50px;
  width: 44px;
  background: rgba(94, 125, 225, 0.15);
  cursor: pointer;
  border: 1px solid rgba(94, 125, 225, 0.4);
  border-left: none;
  position: relative;
  z-index: 2;
  display: flex;
  border-radius: 0 10px 10px 0;
  transition: opacity 0.2s ease;
}
.search__button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("../images/search.svg") center / 25px no-repeat;
  z-index: 5;
}
.search__button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #2b65ec 20%, #0c3794 80%, #264694);
  opacity: 0.2;
  z-index: 1;
  transition: opacity 0.3s ease;
  border-radius: 0 10px 10px 0;
}
.search__button:hover::before { opacity: 0.8; }
.search__button:focus { outline: 2px solid aliceblue; outline-offset: -1px; }

.search__navigate {
  font-size: 12px;
  align-self: center;
  padding-top: 5px;
  max-height: 30px;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.search__link { color: #46df93; text-decoration: none; margin-right: 10px; }
.search__link:hover { color: #fff; }

/* ─── ТЕЛЕФОН ─── */
.phone-russia {
  align-self: center;
  min-width: 200px;
  grid-area: phone;
  padding-left: 10px;
  transition: opacity 0.2s ease;
}
.phone-russia__comment {
  font-size: 14px;
  color: #a0c1fd;
  background: linear-gradient(45deg, #90b1ff 33%, #a0c1fd 66%, #a0c1fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin: 0;
  max-height: 25px;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.phone-russia__number {
  font-size: 20px;
  text-align: center;
  margin: 0;
  color: rgba(240, 248, 255, 0.85);
  transition: opacity 0.2s ease;
}

/* ─── КНОПКА ВЫБОРА РЕГИОНА ─── */
.region-selector-header { display: flex; align-items: center; margin: 10px 0; grid-area: location; }
.region-selector-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; background: #fff; border: 1px solid #e0e0e0;
  border-radius: 8px; cursor: pointer; transition: all 0.2s ease;
  font-size: 14px; color: #333; font-family: inherit;
}
.region-selector-btn:hover { background: #f8f8f8; border-color: #4CAF50; box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1); }
.region-icon { flex-shrink: 0; color: #4CAF50; }
.region-name { font-weight: 500; white-space: nowrap; }
.region-arrow { flex-shrink: 0; opacity: 0.5; transition: transform 0.2s ease; }
.region-selector-btn:hover .region-arrow { transform: translateY(2px); }

/* ─── МЕССЕНДЖЕРЫ ─── */
.kompaniya__messendzhery {
  display: flex;
  gap: 0.1rem;
  grid-area: w;
  flex-wrap: wrap;
  transition: opacity 0.2s ease;
  max-height: 100px;
  overflow: hidden;
  opacity: 1;
}
.whatsapp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff; font-weight: 600; font-size: 0.725rem;
  text-decoration: none; padding: 10px 16px; border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease; max-height: 50px; align-self: center; margin: 5px;
}
.whatsapp-btn:hover { background: linear-gradient(135deg, #128C7E, #075E54); transform: translateY(-1px); }
.whatsapp-btn .icon,
.telegram-btn .icon { width: 20px; height: 20px; vertical-align: middle; }
.telegram-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  color: #fff; font-weight: 600; font-size: 0.725rem;
  text-decoration: none; padding: 10px 16px; border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease; max-height: 50px; align-self: center; margin: 5px;
}
.telegram-btn:hover { background: linear-gradient(135deg, #2296d3, #11719f); transform: translateY(-1px); }

/* ─── ЯНДЕКС-РЕЙТИНГ (iframe без скроллбаров) ─── */
.footer__yandex {
  align-self: center;
  grid-area: y;
  transition: opacity 0.2s ease;
  max-height: 60px;
  overflow: hidden;
  opacity: 1;
  /* Тройная защита от скроллбаров iframe */
  border: none;
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
  max-width: 150px;
  height: 50px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.footer__yandex::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* ─── КНОПКА «КАТАЛОГ» — видна на ВСЕХ размерах ─── */
.button-menu {
  color: #fff;
  background: linear-gradient(90deg, #34cd5e 0%, #163e96 4%, #1b439a 100%);
  grid-area: cat-nav;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px;
  min-height: 36px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 0 0 10px 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.button-menu:hover {
  background: linear-gradient(90deg, #2ebd54 0%, #1d4eb0 4%, #2150b0 100%);
}
.button-menu__burg { margin-right: 10px; width: 30px; }
.button-menu__burg::before {
  background-color: #1de05d;
  box-shadow: 0 6px 0 #1de05d, 0 -6px 0 #1de05d;
  content: '';
  display: block;
  height: 2px;
  margin: 0 auto;
  width: 20px;
}

/* ═══════════════════════════════════════════
   STICKY COMPACT  (.header--compact)
   JS добавляет при scroll > 80px
   Прогрессивное упрощение по брейкпоинтам
   ═══════════════════════════════════════════ */

/* Базовые compact правила — скрыть всё лишнее */
.header--compact .menu-organization    { display: none; }
.header--compact .logo__competences    { display: none; }
.header--compact .location__street     { display: none; }
.header--compact .location__work-time  { display: none; }
.header--compact .search__navigate     { display: none; }
.header--compact .kompaniya__messendzhery { display: none; }
.header--compact .footer__yandex       { display: none; }

/* Overflow protection */
.header--compact .organization-information {
  overflow: hidden;
}

/* Лого уменьшается */
.header--compact .logo {
  padding: 4px 0 4px 8px;
  grid-template-columns: 45px;
  overflow: hidden;
}
.header--compact .logo__picture { width: 32px; padding-right: 5px; }
.header--compact .logo__organization-name {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Адрес — только город + телефон */
.header--compact .location {
  grid-template-areas: "city phone-number";
  column-gap: 10px;
  padding: 2px 0;
  min-width: auto;
}
.header--compact .location__city { font-size: 14px; }
.header--compact .location__phone-number { font-size: 14px; }

/* Поиск компактнее */
.header--compact .search { padding: 4px 0; min-width: 0; }
.header--compact .search__search-string { height: 34px; font-size: 15px; }
.header--compact .search__button { height: 34px; width: 36px; }

/* phone-russia */
.header--compact .phone-russia { padding: 0 10px; }
.header--compact .phone-russia__comment { display: none; }
.header--compact .phone-russia__number { font-size: 14px; }

/* Кнопка каталог */
.header--compact .button-menu {
  border-radius: 0;
  padding: 0 16px;
  min-height: auto;
  white-space: nowrap;
}

/* Регион */
.header--compact .region-selector-btn { padding: 4px 10px; font-size: 12px; }

/* ─── Compact grid: desktop >1530px ─── */
/* [☰ Каталог] [Лого] [Город·Тел] [────Поиск────] [8-800] */
.header--compact .organization-information {
  grid-template-areas: "cat-nav logo location search phone";
  grid-template-columns: auto auto auto 1fr auto;
}

/* ═══════════════════════════════════════════
   RESPONSIVE  (1530 → 240px)
   ═══════════════════════════════════════════ */

/* ─── ≤1530px ─── */
@media (max-width: 1530px) {
  .organization-information {
    grid-template-areas:
      "cat-nav nav nav nav nav"
      "logo location phone y w"
      "logo location phone y w"
      "search search search search search";
  }
  .location {
    grid-template-areas: "city" "street" "work-time" "phone-number" "new";
    min-width: 150px;
  }
  .location__city { justify-self: start; }
  .search { min-width: 200px; padding-left: 10px; }
  .button-menu {
    justify-content: flex-end;
    padding-right: 15px;
  }

  /* Compact ≤1530px: [☰] [Лого] [Город·Тел] [8-800] [──Поиск──] */
  .header--compact .organization-information {
    grid-template-areas: "cat-nav logo location phone search";
    grid-template-columns: auto auto auto auto 1fr;
  }
}

/* ─── ≤1080px ─── */
@media (max-width: 1080px) {
  .organization-information {
    grid-template-areas:
      "cat-nav nav nav nav"
      "logo location y w"
      "logo location y w"
      "search search phone phone";
  }
  .location { min-width: 140px; }

  /* Compact ≤1080px: [☰ Каталог] [Лого] [──────Поиск──────] */
  .header--compact .organization-information {
    grid-template-areas: "cat-nav logo search";
    grid-template-columns: auto auto 1fr;
  }
  .header--compact .location { display: none; }
  .header--compact .phone-russia { display: none; }
}

/* ─── ≤820px ─── */
@media (max-width: 820px) {
  .organization-information {
    grid-template-areas:
      "cat-nav nav nav"
      "logo logo location"
      "y w w"
      "search search phone";
    gap: 4px;
  }
  .location { min-width: 140px; padding-left: 5px; }

  /* Compact ≤820px: [☰ Каталог] [Лого] [──────Поиск──────] */
  .header--compact .organization-information {
    grid-template-areas: "cat-nav logo search";
    grid-template-columns: auto auto 1fr;
  }
  .header--compact .location { display: none; }
  .header--compact .phone-russia { display: none; }
}

/* ─── ≤680px ─── */
@media (max-width: 680px) {
  .menu-organization__links { display: none; }
  .organization-information {
    grid-template-areas:
      "cat-nav cat-nav location"
      "logo logo location"
      "logo logo w"
      "search search phone";
    gap: 2px;
  }
  .button-menu {
    justify-content: flex-start;
    padding: 6px 12px;
    border-radius: 0;
    border-bottom: 1px solid rgba(94, 125, 225, 0.3);
  }
  .footer__yandex { max-height: 0; opacity: 0; }

  /* Compact ≤680px: [☰ Каталог] [──────────Поиск──────────] */
  .header--compact .organization-information {
    grid-template-areas: "cat-nav search";
    grid-template-columns: auto 1fr;
  }
  .header--compact .logo { display: none; }
  .header--compact .location { display: none; }
  .header--compact .kompaniya__messendzhery { display: none; }
  .header--compact .phone-russia { display: none; }
}

/* ─── ≤540px ─── */
@media (max-width: 540px) {
  .organization-information {
    grid-template-areas:
      "cat-nav cat-nav"
      "logo location"
      "search search"
      "w phone";
    gap: 2px;
  }
  .location {
    column-gap: 8px; padding: 4px;
    justify-content: center; text-align: center; min-width: 0;
  }
  .location__city { font-size: 16px; justify-self: center; }
  .location__phone-number { font-size: 14px; }
  .phone-russia { min-width: 0; padding: 5px; }
  .phone-russia__comment { font-size: 12px; }
  .phone-russia__number { font-size: 14px; }
  .logo { padding: 8px 0 4px 8px; }
  .logo__picture { width: 45px; }
  .logo__organization-name { font-size: 17px; }
  .logo__competences { font-size: 11px; min-width: 120px; }
  .search { padding: 4px 5px; min-width: 0; }
  .search__search-string { height: 44px; font-size: 16px; }
  .search__navigate { display: none; }
  .whatsapp-btn, .telegram-btn { font-size: 0.65rem; padding: 6px 10px; }

  /* Compact ≤540px: [☰ Каталог] [────────Поиск────────] */
  .header--compact .organization-information {
    grid-template-areas: "cat-nav search";
    grid-template-columns: auto 1fr;
  }
  .header--compact .logo { display: none; }
  .header--compact .location { display: none; }
  .header--compact .search { padding: 3px 5px; }
  .header--compact .search__search-string { height: 30px; font-size: 14px; }
  .header--compact .search__button { height: 30px; width: 32px; }
  .header--compact .kompaniya__messendzhery { display: none; }
  .header--compact .phone-russia { display: none; }
}

/* ─── ≤450px ─── */
@media (max-width: 450px) {
  .organization-information {
    grid-template-areas: "cat-nav" "logo" "search" "location" "w";
    grid-template-columns: 1fr;
    gap: 0;
  }
  .menu-organization__links { display: none; }
  .search__search-string { background: rgba(255, 255, 255, 0.9); color: #0c2d77; }
  .search__search-string::-webkit-input-placeholder { color: rgb(65 86 129); }
  .phone-russia { padding: 5px 0; text-align: center; }
  .region-selector-btn { font-size: 13px; padding: 8px 12px; }
  .kompaniya__messendzhery { justify-content: center; padding: 4px; }
  .footer__yandex { max-height: 0; opacity: 0; }
  .location { padding: 4px 8px; }
  .location__city { font-size: 15px; }

  /* Compact ≤450px: [☰ Каталог] [────Поиск────] */
  .header--compact .organization-information {
    grid-template-areas: "cat-nav search";
    grid-template-columns: auto 1fr;
  }
  .header--compact .logo { display: none; }
  .header--compact .location { display: none; }
  .header--compact .button-menu { padding: 0 10px; font-size: 13px; }
}

/* ─── ≤360px ─── */
@media (max-width: 360px) {
  .search { min-width: 0; padding: 4px; }
  .search__search-string { height: 40px; font-size: 15px; }
  .search__button { height: 40px; width: 36px; }
  .logo { padding: 5px 0 3px 5px; grid-template-columns: 50px; }
  .logo__picture { width: 38px; padding-right: 5px; }
  .logo__organization-name { font-size: 16px; }
  .logo__competences { font-size: 10px; min-width: 0; }
  .whatsapp-btn, .telegram-btn { font-size: 0.6rem; padding: 5px 8px; }
  .location__city { font-size: 14px; }
  .location__phone-number { font-size: 13px; }
  .location__street { font-size: 13px; }

  /* Compact ≤360px: [☰ Каталог] [──Поиск──] smaller */
  .header--compact .organization-information {
    grid-template-areas: "cat-nav search";
    grid-template-columns: auto 1fr;
  }
  .header--compact .logo { display: none; }
  .header--compact .location { display: none; }
  .header--compact .search__search-string { height: 28px; font-size: 13px; }
  .header--compact .search__button { height: 28px; width: 30px; }
}

/* ─── ≤240px ─── */
@media (max-width: 240px) {
  .organization-information {
    grid-template-areas: "cat-nav" "logo" "search" "location" "w";
    grid-template-columns: 1fr;
  }
  .menu-organization { display: none; }
  .logo { grid-template-columns: 40px; }
  .logo__picture { width: 30px; }
  .logo__organization-name { font-size: 14px; }
  .logo__competences { display: none; }
  .search__search-string { height: 36px; font-size: 14px; }
  .search__button { height: 36px; width: 32px; }
  .whatsapp-btn, .telegram-btn {
    width: 100%; justify-content: center; box-sizing: border-box; font-size: 0.6rem;
  }
  .region-selector-btn { width: 100%; justify-content: center; }
  .region-name { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }

  /* Compact ≤240px: [☰] [Поиск] smallest */
  .header--compact .organization-information {
    grid-template-areas: "cat-nav search";
    grid-template-columns: auto 1fr;
  }
  .header--compact .logo { display: none; }
  .header--compact .location { display: none; }
  .header--compact .button-menu { padding: 0 8px; font-size: 12px; }
  .header--compact .search__search-string { height: 26px; font-size: 12px; }
  .header--compact .search__button { height: 26px; width: 28px; }
}
