/* ХЕДЕР / ФУТЕР */
/* ---------- ХЕДЕР ---------- */
.header-v2 {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 9;
  background-color: #0c1247;
  backdrop-filter: blur(20px);
  color: #fff;
}
.header-wrapper-v2 {
  display: flex;
  flex-direction: column;
  position: relative;
}
/* ---------- ВЕРХНЯЯ СТРОКА ---------- */
.header-top-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
}
.logo-v2 img {
  width: 180px;
}
.header-icons-v2 {
  display: flex;
  align-items: center;
  gap: 20px;
}
.icon-header-style {
  width: 15px;
  height: 15px;
  color: white;
  transition: fill 0.5s ease;
}
.icon-v2 svg:hover {
  opacity: 0.7;
}
/*Иконка корзины*/
.basket {
  position: relative;
}
.basket-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: rgb(224, 60, 10);
  color: #fff;
  border-radius: 50%;
  padding: 2px 4px;
  font-size: 10px;
  line-height: 1;
}
/* ---------- БУРГЕР ---------- */
.burger-v2 {
  position: relative;
  width: 26px;
  height: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}
.burger-v2 span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.burger-v2 span:nth-child(1) {
  top: 0;
}
.burger-v2 span:nth-child(2) {
  top: 9px;
}
.burger-v2 span:nth-child(3) {
  bottom: 0;
}
.burger-v2.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.burger-v2.active span:nth-child(2) {
  opacity: 0;
}
.burger-v2.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 9px;
}
/* ---------- НИЖНЯЯ СТРОКА ---------- */
.header-bottom-v2 {
  background-color: #0c1247;
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.main-nav-v2__list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  height: 55px;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.main-nav-v2__list a {
  color: #fff;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}
/* Фон при наведении на li */
.main-nav-v2__list > li:hover,
.main-nav-v2-header-bottom__item:hover,
.main-nav-v2-header-bottom__item--active {
  background-color: #1a2360;
}
/* === Пункт меню с подменю === */
.main-nav-v2-header-bottom__item,
.main-nav-v2__list li {
  position: relative;
  padding: 5px;
  height: 100%;
  display: flex;
  align-items: center;
}
/* Скрываем подменю по умолчанию */
.main-nav-v2-header-bottom__submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 10;
}
/* Подменю элементов */
.main-nav-v2-header-bottom__submenu-item a {
  text-align: left;
  display: block;
  padding: 10px 15px;
  color: #000;
  text-decoration: none;
}
/* Обычное открытие подменю */
.main-nav-v2-header-bottom__item--active > .main-nav-v2-header-bottom__submenu {
  display: flex;
  flex-direction: column;
  background: #f7f7f7;
  padding: 10px 0;
}
/* Двухколоночное подменю */
.main-nav-v2-header-bottom__item--active
  > .main-nav-v2-header-bottom__submenu.main-nav-v2-header-bottom__submenu--double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 20px;
}
/*==== ОТКРЫТОЕ МЕНЮ НА БУРГЕР ==== */
.mega-menu {
  position: absolute;
  top: 44px;
  left: 0;
  width: 100%;
  background: #f7f7f7;
  border-top: 1px solid #ddd;
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 2;
}
.mega-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-menu .container {
  display: flex;
  justify-content: space-between;

  gap: 40px;
  flex-wrap: wrap;
}
.mega-menu .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  padding: 30px 40px;
}
.mega-menu__col {
  flex: 1;
  min-width: 200px;
}
.mega-menu__title,
.mega-menu__title a {
  font-size: 16px;
  font-weight: bold;
  margin: 15px 0 8px;
  color: #333;
}
.mega-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mega-menu__list li {
  margin-bottom: 6px;
}
.mega-menu__list a {
  text-decoration: none;
  color: #444;
  font-size: 14px;
}
.mega-menu__list a:hover {
  color: #000;
}
.mega-menu__col-none {
  display: none;
}
@media (max-width: 1024px) {
  .header-bottom-v2 {
    display: none;
    /* полностью убираем вторую строку */
  }
  .mega-menu {
    position: absolute;
    top: 44px;
    left: auto;
    right: 0;
    height: calc(100dvh - 44px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #f7f7f7;
    width: 80%;
  }
  .mega-menu .container {
    display: flex !important;
    flex-direction: column;
    padding: 20px 30px 10px;
    gap: 0;
  }
  .mega-menu__col {
    width: 100%;
  }
  .mega-menu__title,
  .mega-menu__title a {
    margin: 0;
  }
  .mega-menu__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    margin: 15px 0 25px;
    /* margin-bottom: 30px;*/
  }
  .mega-menu__title.has-submenu::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg);
    transition: transform 0.3s;
    margin-left: 6px;
  }
  .mega-menu__title.has-submenu.open::after {
    transform: rotate(-135deg);
  }
  .mega-menu__list {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    padding-left: 15px;
  }
  .mega-menu__list.open {
    max-height: 800px;
    opacity: 1;
    margin-top: -10px;
    margin-bottom: 10px;
  }
  .mega-menu__list a {
    display: block;
    padding: 5px 0;
    font-size: 15px;
  }
  .mega-menu__col-none {
    border-top: 1px #6e6e73 solid;
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    padding: 20px 0;
  }
}

/* ======================================================== FOOTER ===================================================================== */
footer a {
  color: #000000b8;
}
footer .footer-wrapper {
  background-color: #f5f5f7;
  padding: 12px clamp(10px, calc(9.549vw + -63.33px), 120px) 53px;
  /* padding: 12px clamp(10px, calc(9.549vw + -63.33px), 120px) 53px 0;*/
}
footer .footer-social-links-wrapper {
  text-align: right;
}
footer .footer-social-links-wrapper h3 {
  font-family: Corbel;
  font-weight: 700;
  /*font-size: 51.52px;*/
  font-size: clamp(35px, calc(1.434vw + 23.99px), 51.52px);
  line-height: 60px;
  letter-spacing: -0.28px;
  vertical-align: middle;
  padding-bottom: 20px;
}
footer .footer-social--links-img {
  width: clamp(40px, calc(4.34vw + 6.67px), 90px);
  height: clamp(40px, calc(4.34vw + 6.67px), 90px);
}
footer .footer-social--links-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
footer .footer-social--links img:hover {
  transition: all 0.5s ease;
  transform: scale(1.2);
}
footer .footer-social--links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 19px;
  padding-bottom: 20px;
}
footer .footer-menu-wrapper {
  margin: 0 auto;
  max-width: 992px;
  border-top: 1px #00000029 solid;
  padding: 34px 0 0;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-section-header {
  font-family: Corbel;
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.12px;
  vertical-align: middle;
  color: black;
}
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-section ul li {
  font-family: Corbel;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.12px;
  vertical-align: middle;
  color: #000000b8;
}
/**/
.footer-contact {
  font-family: Corbel;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: -0.12px;
  vertical-align: middle;
  color: #0000008f;
}
.footer-contact-top {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.footer-contact-middle {
  margin: 28px 0 7px 0;
  border-top: 1px #00000029 solid;
}
.footer-contact-bottom-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.footer-contact-bottom-wrapper-column-one {
  max-width: 267px;
}
.footer-contact-bottom-wrapper-column-two {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
  white-space: nowrap;
}
.footer-contact-bottom-wrapper-column-tree {
  max-width: 197px;
}
.footer-content {
  color: #0000008f;
  margin: 0 auto;
  max-width: 992px;
  padding: 0 10px 31px;

  max-height: 200px; /* ограничение по высоте */
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s ease;
}
/*Ограничители по высоте*/
.footer-content.expanded {
  max-height: none; /* убираем ограничение */
}
.footer-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px; /* зона градиента */
  background: linear-gradient(to top, #f5f5f7, transparent);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.footer-content.expanded::after {
  opacity: 0; /* убираем затемнение при раскрытии */
}
.footer-toggle {
  color: #0073e6;
  margin: 10px auto;
  background: none;
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: block;
}
/**/
.footer-content h2 {
  color: #0000008f;
  font-family: Corbel;
  font-weight: 700;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: -0.12px;
  text-align: center;
  vertical-align: middle;
  margin-top: 0;
}
.footer-content p {
  font-size: 12px;
}
.footer-content li {
  font-size: 12px;
}
