@import "../fonts/helvetica-neue/stylesheet.css";

/* CSS Reset & Variables */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --color-primary: #048e3d;
  /* Komitex Lin Green */
  --color-primary-hover: #007a38;
  --color-text-main: #141414;
  --color-text-muted: #545454;
  --color-bg-light: #f5f5f5;
  --color-bg-main: #ffffff;
  --color-white: #ffffff;
  --color-border: #e6e6e6;
  --color-btn-transparent: rgba(255, 255, 255, 0.7);
  --color-primary-04: #d6e3ca;

  /* Font */
  --font-base: "Helvetica Neue", Arial, sans-serif;
  /* --font-base: "Inter", Arial, sans-serif; */

  /* Typography Variables: Mobile First (320px+) */
  --h1-size: 24px;
  --h1-lh: 1.2;
  --h1-weight: 500;

  --h2-size: 26px;
  --h2-lh: 1.2;
  --h2-weight: 700;

  --h3-size: 20px;
  --h3-lh: 1.2;
  --h3-weight: 600;

  --h4-size: 16px;
  --h4-lh: 1.3;
  --h4-weight: 600;

  --body-l-size: 16px;
  --body-m-size: 14px;
  --body-s-size: 12px;
  --body-lh: 1.5;
  --body-weight: 500;
  --body-weight-plus: 700;

  --info-size: 12px;

  --h1-contact-size: 24px;

  --font-size-24-16: 24px;
}

/* Tablet (768px+) */
@media (min-width: 767px) {
  :root {
    --h1-size: 36px;
    --h2-size: 26px;
    --h3-size: 20px;
    --h4-size: 16px;
    --body-l-size: 16px;
    --body-m-size: 14px;
    --body-s-size: 12px;
    --info-size: 14px;
    --h1-contact-size: 26px;
  }
}

/* Laptop (1024px+) */
@media (min-width: 1480px) {
  :root {
    --h1-size: 48px;
    --h2-size: 32px;
    --h3-size: 22px;
    --h4-size: 18px;
    --body-l-size: 18px;
    --body-m-size: 16px;
    --body-s-size: 14px;
    --info-size: 16px;
    --h1-contact-size: 34px;
  }
}

/* Desktop (1920px+) */
@media (min-width: 1920px) {
  :root {
    --h1-size: 64px;
    --h2-size: 48px;
    --h3-size: 32px;
    --h4-size: 24px;
    --body-l-size: 18px;
    --body-m-size: 16px;
    --body-s-size: 14px;
    --info-size: 16px;
    --h1-contact-size: 38px;
  }
}

/* Base Styles */
body {
  font-family: var(--font-base);
  font-family: "Helvetica Neue Custom", sans-serif;
  font-family: "Roboto", sans-serif;
  color: var(--color-text-main);
  background-color: var(--color-white);
  line-height: var(--body-lh);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

.svg {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  background-repeat: no-repeat;
  background-position: center center;
}

.svg.wrapper {
  width: 24px;
  height: 24px;
  display: flex;
  place-content: center;
  place-items: center;
}

/* Typography Classes */
.h1 {
  font-size: var(--h1-size);
  line-height: var(--h1-lh);
  font-weight: var(--h1-weight);
}

.h2 {
  font-size: var(--h2-size);
  line-height: var(--h2-lh);
  font-weight: var(--h2-weight);
}

.h3 {
  font-size: var(--h3-size);
  line-height: var(--h3-lh);
  font-weight: var(--h3-weight);
}

.h4 {
  font-size: var(--h4-size);
  line-height: var(--h4-lh);
  font-weight: var(--h4-weight);
}

.body-large-plus {
  font-size: var(--body-lp-size);
  line-height: var(--body-lh);
  font-weight: var(--body-weight-plus);
}

.body-large {
  font-size: var(--body-l-size);
  line-height: var(--body-lh);
  font-weight: var(--body-weight);
}

.body-medium {
  font-size: var(--body-m-size);
  line-height: var(--body-lh);
  font-weight: var(--body-weight);
}

.body-small {
  font-size: var(--body-s-size);
  line-height: var(--body-lh);
  font-weight: var(--body-weight);
}

.info-text {
  font-size: var(--info-size);
  line-height: var(--body-lh);
  font-weight: var(--body-weight);
}

.info-text-underline {
  font-size: var(--info-size);
  line-height: var(--body-lh);
  font-weight: var(--body-weight);
  text-decoration: underline;
}

.h1-contact {
  font-size: var(--h1-contact-size);
  line-height: var(--h1-lh);
  font-weight: var(--h1-weight);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 767px) {
  .container {
    padding: 0 24px;
  }
}

@media (min-width: 1280px) {
  .container {
    padding: 0 64px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 24px;
  }
}

@media (min-width: 1920px) {
  .container {
    padding: 0 140px;
  }
}

/* Utilities */
.d-none {
  display: none !important;
}

.d-none.d-lg-inline {
  display: none !important;
}

@media (min-width: 767px) {
  .d-md-none {
    display: none !important;
  }

  .d-md-flex {
    display: flex !important;
  }

  .d-none.d-md-flex {
    display: flex !important;
  }

  .d-none.d-md-inline {
    display: inline !important;
  }
}

@media (min-width: 1024px) {
  .d-lg-none {
    display: none !important;
  }

  .d-lg-flex {
    display: flex !important;
  }

  .d-none.d-lg-flex {
    display: flex !important;
  }

  .d-none.d-lg-inline {
    display: inline !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: var(--body-m-size);
  border-radius: 8px;
  line-height: 120%;
  letter-spacing: 0%;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-primary-hover);
}

.btn--light {
  background-color: var(--color-bg-light);
  color: var(--color-primary);
}

.btn--primary-04 {
  color: var(--color-primary);
  background-color: var(--color-primary-04);
}

.btn--transparent {
  backdrop-filter: blur(4px);
  box-shadow: 0px 2px 20px -2px rgba(16, 24, 40, 0.06);
  background: rgba(255, 255, 255, 0.6);
}

.btn--transparent-none {
  backdrop-filter: blur(4px);
  box-shadow: 0px 2px 20px -2px rgba(16, 24, 40, 0.06);
  background: none;
  border: 1px solid var(--color-primary);
}

/* Header */
.header {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 2.8px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.burger__logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__burger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.burger-line {
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
}

.header__logo img {
  height: 36px;
}

/* Nav link styles (used inside main-nav on desktop) */
.nav__link {
  color: var(--color-white);
  transition: opacity 0.3s;
}

.nav__link:hover {
  opacity: 0.8;
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-right: 32px;
}

.contact-phone,
.contact-city {
  color: var(--color-white);
  font-weight: 500;
  font-style: normal;
  line-height: 140%;
  letter-spacing: 0%;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-phone .svg.wrapper,
.contact-cit .svg.wrapper {
  width: 16px;
  height: 16px;
}

.header__actions {
  display: flex;
  gap: 20px;
}

.action-btn {
  background: none;
  color: var(--color-white);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.arrow-icon {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 1.4em;
  font-weight: bold;
  line-height: 1;
  margin-left: 4px;
}

@media (min-width: 1025px) {
  .header__logo img {
    max-width: 300px;
    max-height: 43.92px;
    height: clamp(24px, 5.263vw - 29.9px, 48px);
  }
}

@media (max-width: 1023px) {
  .header__logo img {
    height: 1.5em;
  }
}

/* Hero Section */

/* Слайдер */
.hero__slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    visibility 0s linear 0.7s;
  z-index: 1;
}

.hero__slide.active {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    visibility 0s linear 0s;
  z-index: 2;
}

/* Медиа (картинка/видео) - нижний слой */
.hero__media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.hero__slide video.hero__media {
  object-fit: cover;
}

/* Затемнение (opacity блок) - средний слой */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.7) 100%);
  z-index: -1;
  pointer-events: none;
}

/* Контент (текст, кнопки) - верхний слой */
.hero__slide-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  padding: 0 23px;
  pointer-events: auto;
}

.hero__content {
  max-width: 680px;
  /* margin-top: 80px; */
}

.hero__subtitle {
  /* font-size: 24px; */
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero__title {
  font-weight: 500;
  line-height: 120%;
  margin-bottom: 24px;
  color: #ffffff;
  letter-spacing: 0;
}

.hero__desc {
  /* font-size: 24px; */
  line-height: 1.5;
  margin-bottom: 40px;
  color: #ffffff;
  font-weight: 500;
}

/* Автоплей контрол */
.autoplay-control {
  position: absolute;
  bottom: 48px;
  right: 48px;
  z-index: 25;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s;
  font-family: inherit;
}

.autoplay-control:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.02);
}

/* Анимация появления контента */
.hero__slide.active .hero__slide-content {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивность */
@media (max-width: 1023px) {
  .hero__content {
    margin-top: 10px;
  }
}

.hero {
  position: relative;
  height: calc(100vh - 76px);
  /* Approx viewport minus header */
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 60px 0;
  background: #1a1a1a;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__slide.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(77.67deg,
      rgba(89, 89, 89, 0) 0%,
      rgba(75, 74, 74, 0.6) 109.61%);
  z-index: 1;
  pointer-events: none;
}

.hero__container {
  position: relative;
  width: 100%;
  z-index: 10;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__content {
  max-width: 812px;
  color: var(--color-white);
}

.hero__subtitle {
  opacity: 1;
  margin-bottom: 12px;
}

.hero__title {
  margin-bottom: 24px;
}

.hero__desc {
  margin-bottom: 40px;
  opacity: 1;
  max-width: 812px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__pagination {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

@media (max-width: 767px) {
  .hero__pagination {
    bottom: 20px;
  }

  .hero__title {
    font-weight: 500;
    line-height: 140%;
  }
}

.slider-pagination {
  display: flex;
  gap: 32px;
  padding: 8px 12px;
  border-radius: 20px;
  background: #ffffff99;
  backdrop-filter: blur(4px);
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: var(--color-primary);
}

@media (min-width: 1024px) {
  .slider-pagination {
    padding: 4px 4px;
    gap: 32px;
  }

  .dot {
    width: 14px;
    height: 14px;
  }
}

/* Sections General */
.section {
  padding: 50px 0;
}

.section__title {
  margin-bottom: 32px;
}

@media (min-width: 1024px) {
  .section {
    padding: 40px 0;
  }

  .section__title {
    margin-bottom: 48px;
    font-weight: bold;
    font-style: normal;
    line-height: 120%;
    letter-spacing: -3%;
  }
}

/* Collections Grid */
.collections__grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.collection-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  background-color: var(--color-bg-light);
  min-height: 250px;
}

.collection-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  position: absolute;
  top: 0;
  left: 0;
}

.collection-card:hover .collection-card__img {
  transform: scale(1.05);
}

.collection-card__info {
  position: absolute;
  top: 16px;
  left: 16px;
  color: var(--color-white);
  pointer-events: none;
}

/* Ensure text is readable */
.collection-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.collection-card__info {
  z-index: 2;
}

.collection-card__label {
  display: block;
  opacity: 1;
  margin-bottom: 4px;
  font-weight: 400;
  font-style: normal;
  /* font-size: 18px; */
  line-height: 120%;
  letter-spacing: 0%;
}

.collection-card__title {
  margin: 0;
}

@media (min-width: 767px) {
  .collections__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
  }

  .collection-card {
    min-height: 0;
  }
}

@media (min-width: 1024px) {
  .collections__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 24px;
  }

  .collection-card:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }

  .collection-card:nth-child(2) {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
  }

  .collection-card:nth-child(3) {
    grid-column: 4 / 5;
    grid-row: 1 / 3;
  }

  .collection-card:nth-child(4) {
    grid-column: 1 / 2;
    grid-row: 3 / 5;
  }

  .collection-card:nth-child(5) {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
  }

  .collection-card:nth-child(6) {
    grid-column: 2 / 3;
    grid-row: 4 / 5;
  }

  .collection-card:nth-child(7) {
    grid-column: 3 / 5;
    grid-row: 3 / 5;
  }
}

/* Mobile Slider for Collections */
@media (max-width: 767px) {
  .collections__slider-container {
    position: relative;
    width: 100%;
    margin: 0 -16px;
    width: calc(100% + 32px);
    margin: 0 0px;
    width: calc(100% - 0px);
    overflow: hidden;
  }

  .collections__slider {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 0 !important;
    padding: 0;
    scrollbar-width: none;
  }

  .collections__slider::-webkit-scrollbar {
    display: none;
  }

  .collections__slider .collection-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    border-radius: 0;
    /* min-height: 280px; */
  }

  .collections__dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 20px;
    z-index: 5;
    background: #a2a2a266;
  }

  .collections__dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s;
  }

  .collections__dots .dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
  }
}

/* Strong Wear Section */
.tabs {
  display: flex;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.tabs__btn {
  background: none;
  padding: 12px 24px;
  cursor: pointer;
  color: var(--color-text-muted);
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
}

.tabs__btn--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 500;
}

/* Strong Wear Components */
.strong-wear__main-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
}

.sw-tabs {
  display: flex;
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 32px;
  overflow: hidden;
}

.sw-tabs__btn {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
  background: transparent;
  color: #888;
  border: none;
  font-size: var(--body-m-size);
  cursor: pointer;
  transition: all 0.2s;
}

.sw-tabs__btn--active {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  margin: 2px;
}

.strong-wear__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.strong-wear__image-box {
  position: relative;
  margin-bottom: 32px;
  text-align: center;
}

.sw-pagination-wrap {
  display: flex;
  justify-content: center;
}

.sw-pagination {
  display: inline-flex;
  gap: 32px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  display: flex;
  padding: 8px 12px;
  border-radius: 20px;
  /* background: #FFFFFF99; */
  backdrop-filter: blur(4px);
}

.sw-pagination.dop_color {
  background: #a2a2a266;
}

.sw-pagination__dot {
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.8;
  cursor: pointer;
}

.sw-pagination__dot--active {
  background: var(--color-primary);
  opacity: 1;
}

.strong-wear__visual {
  position: relative;
  display: block;
}

.strong-wear__visual img {
  max-width: 880px;
  display: block;
  width: 100%;
}

.sw-play-icon {
  position: absolute;
  top: 10px;
  color: var(--color-primary);
  font-size: 14px;
  z-index: 2;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sw-play-icon .svg.wrapper {
  width: 32px;
  height: auto;
}

.sw-play-icon {
  right: -25px;
  top: 10%;
  /* Place right for desktop */
}

@media (max-width: 1024px) {
  .strong-wear__text {
    font-size: var(--body-m-size);
  }
}

@media (min-width: 1025px) {
  .strong-wear__text {
    font-size: var(--body-l-size);
  }
}

.sw-features {
  display: flex;
}

.sw-custom-bottom {
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.sw-custom-bottom .sw-pagination {
  margin-bottom: 0;
}

.strong-wear__subtitle {
  margin-bottom: 12px;
  color: #141414;
}

.strong-wear__desc {
  color: #545454;
  margin-bottom: 26px;
}

.sw-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  list-style: none;
  padding: 0;
}

.sw-features__item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sw-features__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.sw-features__icon img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

.sw-features__text {
  color: var(--color-primary);
  font-weight: 500;
  text-transform: uppercase;
}

.strong-wear__text {
  color: #545454;
  line-height: 120%;
}

.strong-wear__visual {
  position: relative;
  display: flex;
  /* Убирает фантомный отступ снизу у картинки */
  align-items: center;
  justify-content: center;
}

.strong-wear__visual img {
  max-width: 880px;
  display: block;
  width: 100%;
  height: auto;
}

.sw-play-icon {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    top 0.3s ease,
    left 0.3s ease,
    right 0.3s ease;
  /* Плавное скольжение курсора */
}

/* Чтобы SVG внутри тянулась за заданными скриптом размерами */
.sw-play-icon .svg.wrapper,
.sw-play-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

@media (min-width: 767px) {
  .sw-features {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
  }

  .sw-tabs {
    max-width: 500px;
    display: inline-flex;
  }

  .tabs {
    margin-bottom: 40px;
  }
}

@media (min-width: 1024px) {
  .sw-features {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .strong-wear__content {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }

  .strong-wear__image-box,
  .strong-wear__info {
    flex: 1;
  }

  .strong-wear__image-box {
    margin-bottom: 0;
  }

  .strong-wear__main-title {
    font-size: 32px;
  }
}

/* Quality Control Section */
.quality-steps {
  display: flex;
  justify-content: space-between;
  text-align: center;
  margin-bottom: 32px;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 0px;
  list-style: none;
  border-bottom: 2px solid #ebebeb;
  overflow-y: hidden;
}

.quality-steps::-webkit-scrollbar {
  height: 4px;
}

.quality-steps::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.quality-steps__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 100px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s;
  position: relative;
  padding-bottom: 16px;
  text-align: start;
}

.quality-steps__item+.quality-steps__item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0;
  bottom: 16px;
  width: 1px;
  background-color: #ebebeb;
}

.quality-steps__item::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: background 0.3s;
  z-index: 2;
}

.quality-steps__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quality-steps__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quality-steps__item.active {
  opacity: 1;
}

.quality-steps__item.active::after {
  background: var(--color-primary);
}

.quality-steps__item.active .info-text {
  color: var(--color-text-main);
  font-weight: 700;
}

.quality-banner {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  color: var(--color-white);
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

#quality-slides-container {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "slide";
}

.quality-slide {
  grid-area: slide;
  position: relative;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    visibility 0.5s;
  z-index: 1;
  display: flex;
  align-items: flex-start;
}

.quality-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.quality-slide__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.quality-slide__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
      rgba(57, 57, 57, 0.7) 8.44%,
      rgba(57, 57, 57, 0) 31.02%);
  z-index: 2;
}

.quality-slide__content {
  position: relative;
  z-index: 3;
  padding: 24px;
  max-width: 950px;
  display: flex;
  flex-direction: column;
}

.quality-slide__text-wrapper {
  display: flex;
  gap: 32px;
}

.quality-slide__text-wrapper p {
  flex: 1;
  color: #ffffff;
}

.quality-slide__content .body-medium {
  color: var(--color-white);
  opacity: 0.9;
}

.quality-pagination {
  position: absolute;
  bottom: 24px;
  /* width: 100%; */
  display: flex;
  z-index: 4;
  gap: 32px;
  margin: 0 auto;
  justify-content: center;
}

.quality-pagination .quality-dot {
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s;
}

.quality-pagination .quality-dot.active {
  background: var(--color-primary);
  opacity: 1;
}

@media (max-width: 767px) {
  .quality-steps {
    display: none;
  }

  .quality-banner {
    min-height: auto;
    border-radius: 0;
  }

  #quality-slides-container {
    min-height: auto;
  }

  .quality-slide {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    justify-content: flex-start;
  }

  .quality-slide__bg {
    position: relative;
    height: auto;
    aspect-ratio: 296 / 198;
  }

  .quality-slide__content {
    padding: 24px 0;
    background: var(--color-bg-main);
    width: 100%;
  }

  .quality-slide__text-wrapper {
    flex-direction: column;
    gap: 16px;
    color: #545454;
  }

  .quality-slide__text-wrapper p {
    color: #545454;
  }

  .quality-slide__content .body-medium {
    color: var(--color-text-main);
    opacity: 1;
  }

  .quality-steps__icon.d-md-none {
    display: block;
    margin-bottom: 16px;
    width: 48px;
    height: 48px;
  }

  .quality-banner__title.d-md-none {
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-main);
  }

  .quality-pagination {
    bottom: auto;
    top: 162px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    justify-content: center;
  }
}

@media (min-width: 1025px) {
  .quality-steps {
    margin-bottom: 48px;
    overflow-x: visible;
  }

  .sw-features__text {
    font-size: 20px;
  }
}

/* Footer */
.footer {
  background-color: var(--color-bg-light);
  padding: 40px 0 20px;
  color: var(--color-text-main);
}

.footer__container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__logo img {
  height: 32px;
}

.footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-link img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 16px;
}

.footer__email {
  text-decoration: underline;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__nav {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.footer__bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 767px) {
  .footer__container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .footer__brand {
    width: 100%;
    max-width: 300px;
  }

  .footer__links {
    flex-direction: row;
    gap: 64px;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer__legal {
    flex-direction: row;
    gap: 24px;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .footer {
    padding: 40px 0 40px !important;
  }

  .footer__logo img {
    height: 40px;
  }

  .footer__bottom {
    margin-top: 40px;
  }
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 14px;
  right: 12px;
  width: calc(100% - 48px);
  max-width: 769px;
  background-color: #d6e3ca;
  /* Light greenish background */
  padding: 24px;
  border-radius: 4px;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 16px;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.cookie-popup__text {
  padding-right: 16px;
  font-size: 20px;
  color: #545454;
}

.cookie-popup__link {
  color: var(--color-primary);
  font-weight: 400;
  text-decoration: none;
}

.cookie-popup__btn {
  align-self: flex-start;
  padding: 10px 24px;
}

@media (min-width: 1024px) {
  .cookie-popup {
    bottom: 14px;
    right: 12px;
  }
}

/* ========================================================
   UNIFIED NAVIGATION SYSTEM v4
   ======================================================== */
/* .main-nav {
  display: flex;
}

.main-nav {
  display: none;
} */

.main-nav {
  display: flex;
}

.main-nav.is-open {
  display: block;
}

.nav-list,
.mega-col {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link,
.mega-link {
  text-decoration: none;
  color: #141414;
  transition: color 0.2s;
}

/* Shared Column Layout Logic (used in modes 2 & 3) */
.col-layout .mega-item {
  position: static;
}

.col-layout .mega-menu__content {
  position: relative;
  min-height: 480px;
  display: flex;
}

.col-layout .mega-col {
  width: 220px;
  flex-shrink: 0;
  padding: 0 20px;
  border-right: 1px solid #f0f0f0;
}

.col-layout .mega-col.level-3,
.col-layout .mega-col.level-4,
.col-layout .mega-col.level-5 {
  position: absolute;
  top: 0;
  display: none;
  border-right: 1px solid #f0f0f0;
  height: 100%;
}

.col-layout .mega-col.level-3 {
  left: 220px;
}

.col-layout .mega-col.level-4 {
  left: 440px;
}

.col-layout .mega-col.level-5 {
  left: 660px;
  border-right: none;
}

/* Reveal on hover/active in column layout */
/* .col-layout .mega-item.has-sub:hover > .mega-col,
.col-layout .mega-item.has-sub.is-hovered > .mega-col, */
.col-layout .mega-item.has-sub.is-open>.mega-col {
  display: block;
}

@media (min-width: 1280px) {
  a.mega-link {
    line-height: 120%;
    letter-spacing: 0%;
    vertical-align: middle;
  }
}

.mega-link:hover,
.mega-link--active {
  color: #048e3d !important;
  font-weight: 700;
}

/* ========================================================
   MODE 1: MOBILE (< 992px) - Accordion
   ======================================================== */
@media (max-width: 767px) {
  .header__burger {
    display: flex !important;
    margin-right: 16px;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    overflow-y: auto;
    padding-bottom: 40px;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav__mobile-top {
    display: flex;
    justify-content: space-between;
    padding: 20px 16px;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
  }

  .main-nav__close {
    background: none;
    border: none;
    font-size: 12px;
    color: #747373;
    cursor: pointer;
  }

  .nav-list {
    padding: 8px 16px;
  }

  .nav-item__wrap,
  .mega-item__wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    /* border-bottom: 1px solid #f5f5f5; */
  }

  .nav-link,
  .mega-link {
    flex: 1;
    color: #141414;
  }

  .nav-chevron {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: #f8f8f8; */
    border-radius: 4px;
    cursor: pointer;
  }

  .nav-chevron::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #666;
    border-bottom: 1.5px solid #666;
    transform: rotate(45deg);
    transition: transform 0.2s;
    margin-top: -2px;
  }

  .is-open>.nav-item__wrap>.nav-chevron::after,
  .is-open>.mega-item__wrap>.nav-chevron::after {
    transform: rotate(-135deg);
    margin-top: 2px;
  }

  .nav-chevron.empty {
    visibility: hidden;
  }

  .mega-menu,
  .mega-col.level-3,
  .mega-col.level-4,
  .mega-col.level-5 {
    display: none;
    padding-left: 16px;
  }

  .is-open>.mega-menu,
  .is-open>.mega-col {
    display: block;
  }

  .mega-menu .level-2 {
    display: block;
    padding-left: 0;
  }

  .mega-banner {
    margin-top: 24px;
    padding: 0 16px;
    width: fit-content;
    position: relative;
  }

  .mega-banner a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 7.07px;
    overflow: hidden;
  }

  .mega-banner img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
  }

  .mega-banner__title {
    display: flex;
    margin-top: 8px;
    font-weight: 500;
    font-size: 18px;
    text-transform: uppercase;
    color: #333;
    position: absolute;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    z-index: 2;
  }

  .mega-banner a::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 1 !important;
  }
}

.mega-banner a,
.mega-banner div {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #000 !important;
}

.mega-banner__title {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: #fff !important;
  font-size: var(--h3-size);
  font-weight: 700 !important;
  text-align: center !important;
  width: 90% !important;
  z-index: 2 !important;
  text-transform: uppercase !important;
  margin: 0 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
}

.mega-banner a::after,
.mega-banner div::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: #0000004d !important;
  z-index: 1 !important;
}

/* ========================================================
   MODE 2: TABLET (992px - 1380px) - 5 Column Panel
   ======================================================== */

@media (min-width: 991px) and (max-width: 1479.98px) {
  .header {
    padding: 16px 0;
  }

  .header__burger {
    display: flex !important;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 58px;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 80px);
    background: #fff;
    z-index: 2000;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    padding-top: 0;
    /* Strict Sync: Padding moved to columns */
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav__mobile-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    /* Force height to match padding */
    z-index: 100;
    background: #fff;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 40px;
    /* border-bottom: 1px solid #eee; */
    /* Subtle separator */
  }

  .mega-menu__close,
  .main-nav__contacts,
  body .header .nav-item .nav-link .arrow-icon,
  body .header .nav-item .nav-link span[class*="arrow-icon"] {
    display: none !important;
  }

  /* Close button styling */
  .main-nav__close {
    background: none;
    border: none;
    font-size: 16px;
    color: #333;
    cursor: pointer;
    font-weight: 500;
  }

  .nav-list {
    width: 20% !important;
    min-width: 200px;
    flex-shrink: 0;
    background: #fff;
    /* border-right: 1px solid #eee; */
    padding: 60px 0 20px;
    /* Strict Sync baseline */
    height: auto;
    min-height: 480px;
    position: static;
    z-index: 10;
  }

  .nav-item {
    position: static !important;
  }

  .nav-item__wrap {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    line-height: 1;
    /* Precise baseline sync */
  }

  .nav-item.is-open .nav-link {
    color: #141414;
    font-weight: 400;
  }

  /* Match reference */
  .nav-link {
    line-height: 1 !important;
  }

  .nav-chevron {
    display: none !important;
  }

  .nav-item.has-dropdown .nav-item__wrap::after {
    content: "›";
    color: #141414;
    font-size: 1.2rem;
    position: absolute;
    right: 15px;
  }

  .mega-menu {
    position: absolute !important;
    top: 0 !important;
    /* Strict Sync baseline */
    left: 20% !important;
    width: 80% !important;
    right: 0 !important;
    bottom: 0;
    display: none;
    background: #fff;
    padding: 0;
    z-index: 5;
    overflow: visible;
  }

  .nav-item.is-open>.mega-menu {
    display: block;
  }

  .mega-menu__container {
    /* height: 100%; */
    width: 100%;
    position: relative;
    background: #fff;
  }

  .mega-menu__content {
    position: relative;
    min-height: 480px;
    display: flex;
    /* height: 100%; */
    padding-top: 0;
    width: 100%;
  }

  .mega-menu__content .mega-item {
    position: static !important;
  }

  .mega-menu__content .mega-col {
    /* width: 25% !important; */
    flex-shrink: 0;
    /* border-right: 1px solid #eee; */
    padding: 60px 15px 10px;
    /* Strict Sync baseline */
    background: #fff;
    /* height: 100vh; */
    /* min-height: 100%; */
    position: relative !important;
    top: 0 !important;
  }
}

@media (min-width: 991px) and (max-width: 1479.98px) {
  .main-nav__close {
    font-size: 14px;
    color: #747373;
  }

  /* Recursive cascading offsets */
  .mega-menu__content .mega-col.level-3,
  .mega-menu__content .mega-col.level-4,
  .mega-menu__content .mega-col.level-5 {
    position: absolute !important;
    top: 0 !important;
    left: 100% !important;
    width: 100% !important;
    display: none;
    /* height: 100vh;
    min-height: 100%; */
    z-index: 20;
    /* border-right: 1px solid #eee; */
    padding-top: 60px !important;
    /* Strict Sync baseline */
  }

  .mega-menu__content .mega-col.level-5 {
    border-right: none;
  }

  .mega-item.is-open>.mega-col {
    display: block !important;
  }

  .mega-item__wrap {
    padding: 12px 15px;
    /* Matched to nav-item vertical padding */
    border-bottom: none;
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    line-height: 1;
    /* Precise baseline sync */
  }

  .mega-item.has-sub>.mega-item__wrap::after {
    content: "›";
    color: #141414;
    font-size: 1.2em;
    position: absolute;
    right: -11px;
  }

  /* Automation: hide arrow if NO child ul exists */
  .mega-item:not(:has(ul))>.mega-item__wrap::after {
    display: none !important;
  }

  .mega-link {
    color: #141414;
    display: block;
    width: fit-content;
    line-height: 1 !important;
  }

  .mega-banner {
    /* position: absolute !important;
    bottom: 0px !important;
    right: 24px !important;
    width: 260px !important;
    z-index: 100; */
  }

  .mega-menu__content .mega-banner {
    /* МИНИМУМ: 298px | ПЛАВНЫЙ СДВИГ: ~4.54vw + 263px | МАКСИМУМ: 340px */
    width: clamp(298px, 4.54vw + 263px, 340px) !important;
  }

  /* Если у баннера нет инлайн-стиля left (то есть когда открыт только 1 уровень) */
  .mega-menu__content .mega-banner:not([style*="left"]) {
    left: auto !important;
    right: 20px !important;
    z-index: 2;
  }

  .mega-menu__content {
    position: relative !important;
  }

  /* Защищаем текст в колонках, чтобы он не перекрывался снизу, если колонка длинная */
  .mega-menu__content .mega-col {
    padding-bottom: 160px !important;
    box-sizing: border-box !important;
    min-width: 188px;
  }

  .mega-banner a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mega-banner img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    height: 100%;
  }

  .mega-banner__title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 18px;
    width: 90%;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    z-index: 10;
  }
}

@media (min-width: 991px) and (max-width: 1479.98px) {
  .main-nav {
    top: 56px;
    top: clamp(56px, 4.0vw + 15.33px, 76px);
  }
}

/* ========================================================
   MODE 3: DESKTOP (>= 1280px) - Inline Cascading
   ======================================================== */
.mega-banner {
  width: 100%;
  margin-left: auto;
  flex-shrink: 0;
  max-width: 340px;
  aspect-ratio: 340 / 250;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

@media (min-width: 1480px) {
  .header__burger {
    display: none !important;
  }
}

@media (min-width: 1480px) {

  .main-nav {
    /* display: flex; */
    margin-left: auto;
    margin-right: auto;
    background: transparent;
    height: auto;
    padding: 0;
    position: static;
  }

  .main-nav__mobile-top {
    display: none;
  }

  .nav-list {
    display: flex;
    gap: 32px;
  }

  .nav-item {
    position: static;
  }

  .nav-link {
    color: #fff !important;
    padding: 24px 0;
    display: flex;
    align-items: stretch;
    text-transform: uppercase;
    font-style: normal;
    line-height: 120%;
    letter-spacing: 0%;
  }

  .nav-link:hover,
  .nav-item.is-hovered .nav-link {
    opacity: 0.8;
  }

  .nav-chevron {
    display: none;
  }

  .mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    z-index: 1000;
  }

  /* .nav-item:hover > .mega-menu,
  .nav-item.is-hovered > .mega-menu, */
  .nav-item.is-open>.mega-menu {
    display: block;
  }

  .mega-menu__container {
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
    padding: 0 16px;
  }


  @media (min-width: 767px) {
    .mega-menu__container {
      padding: 0 32px;
    }
  }

  @media (min-width: 1024px) {
    .mega-menu__container {
      padding: 0 64px;
    }
  }

  @media (min-width: 1920px) {
    .mega-menu__container {
      padding: 0 120px;
    }
  }

  .mega-menu__close {
    position: absolute;
    /* top: 10px; */
    right: 124px;
    background: none;
    border: none;
    font-size: 14px;
    color: #747373;
    cursor: pointer;
    height: 41px;
    z-index: 2;
  }

  .mega-menu__content {
    position: relative;
    display: flex;
    padding: 41px 0 64px;
    /* min-height: 480px; */
  }

  .mega-col {
    width: 235px;
    flex-shrink: 0;
    padding: 0 16px;
    /* border-right: 1px solid #f0f0f0; */
  }

  .mega-item {
    position: static;
    width: 235px;
  }

  .mega-item__wrap {
    padding: 4px 0;
  }

  .mega-link {
    padding: 6px 0;
    display: block;
    color: #141414;

    position: relative;
  }

  .mega-item.has-sub>.mega-item__wrap>.mega-link::after {
    content: "";
    position: absolute;
    right: 15px;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #141414;
    border-bottom: 1.5px solid #141414;
    transform: rotate(-45deg);
    transition: transform 0.2s;
    margin-top: 6px;
  }

  .mega-col.level-3,
  .mega-col.level-4,
  .mega-col.level-5 {
    display: none;
    position: absolute;
    top: 38px;
    border-left: none;
    padding-left: 32px;
    /* height: calc(100% - 96px); */
    /* border-right: 1px solid #f0f0f0; */
  }

  .mega-col.level-3 {
    left: 235px;
    padding-left: 90px;
  }

  .mega-col.level-4 {
    left: 235px;
    top: 0;
    margin-left: 90px;
  }

  .mega-col.level-5 {
    left: 235px;
    border-right: none;
    top: 0;
    margin-left: 32px;
  }

  .mega-item.has-sub:hover>.mega-col,
  .mega-item.has-sub.is-hovered>.mega-col {
    display: block;
  }

  .mega-banner {
    width: 100%;
    margin-left: auto;
    flex-shrink: 0;
    max-width: 340px;
    aspect-ratio: 340 / 250;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: fit-content;
  }

  .mega-banner a,
  .mega-banner div {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mega-banner__title {
    position: absolute;
    font-weight: 500 !important;
    font-size: 28px;
    line-height: 120%;
    letter-spacing: 0%;
    text-transform: uppercase;
  }

  .mega-banner img {
    width: 100%;
    border-radius: 8px;
    height: 100%;
  }
}

@media (min-width: 992px) {

  /* Растягиваем выпадающие списки 4 и 5 уровней по высоте */
  .mega-menu .mega-col.level-4,
  .mega-menu .mega-col.level-5 {
    min-height: 100%;
    /* Заставит блок быть не меньше высоты level-3 */
    height: max-content;

    /* Дополнительная защита: невидимая подложка снизу, 
           чтобы мышь не теряла фокус при случайном уходе чуть ниже текста */
    padding-bottom: 50px;
    margin-bottom: -50px;
  }

  .mega-menu .mega-col.level-4 .mega-item,
  .mega-menu .mega-col.level-5 .mega-item {
    /* width: 100%; */
  }
}

@media (min-width: 992px) and (max-width: 1479px) {

  .mega-menu .mega-col.level-4,
  .mega-menu .mega-col.level-5 {
    padding: -1px 0 10px;
    min-width: 220px;
  }
}



/* Footer */
.footer {
  background-color: #eaeaee;
  padding: 64px 0 32px;
}

.footer__main {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 48px;
  align-items: center;
  text-align: center;
}

.footer__logo {
  display: block;
  margin-bottom: 16px;
}

.footer__logo img {
  height: 48px;
}

.footer__slogan {
  margin-bottom: 16px;
  color: #545454;
  font-weight: 700;
  max-width: inherit;
  width: 100%;
}

.footer__details {
  color: #747373;
  line-height: 1.6;
}

.footer__socials {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
  justify-content: center;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.social-icon:hover {
  opacity: 0.8;
}

.social-icon .svg.wrapper {
  width: 31px;
  height: 31px;
}

.footer__contact-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__contact-link {
  color: #545454;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  gap: 8px;
  flex-direction: row;
  align-items: center;
}

.footer__contact-link.mail {
  text-decoration: underline;
}

.footer__contact-link:hover {
  color: var(--color-primary);
}

.footer__nav {
  display: none;
}

.footer__col-title {
  margin-bottom: 16px;
  font-weight: 600;
  text-transform: uppercase;
  color: #333;
  font-size: 14px;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__list a {
  color: #545454;
  transition: color 0.3s;
}

.footer__list a:hover {
  color: #009640;
}

.footer__bottom {
  border-top: 1px solid #e0e0e0;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__legal a {
  color: #666;
  text-decoration: underline;
}

.footer__copyright {
  color: #999;
}

@media (min-width: 1280px) {
  .footer__slogan {
    max-width: 445px;
    width: 100%;
  }
}

@media (max-width: 1023px) {

  .footer__main,
  .footer__info,
  .footer__socials,
  .footer__contact-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__logo {
    margin: 0 auto 16px;
  }
}

@media (min-width: 1280px) {
  .footer__nav {
    gap: 100px;
  }
}

/* ========================================================
   CATALOG PAGE STYLES
   ======================================================== */
.catalog-page .header {
  background-color: #009640;
}

.catalog-hero {
  padding: 0;
  color: #fff;
  position: relative;
  aspect-ratio: 1024 / 348;
  max-height: 475px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
  margin-bottom: 25px;
  aspect-ratio: 1024 / 292;
  width: 100%;
}

.catalog-hero__content {
  max-width: 834px;
  line-height: 1.4;
}

.catalog-hero__content .hero__desc {
  max-width: 834px;
}

.catalog-hero .h1 {
  margin-bottom: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.catalog-hero .body-large {
  margin-bottom: 40px;
  opacity: 0.9;
}

.catalog-hero__btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Filter Section */
.header-filtr {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 40px;
  align-items: center;
}

.header-filtr button {
  display: none;
}

.filter-section {
  padding: 25px 0;
  border-bottom: 1px solid #eee;
}

.filter-section__title {
  font-weight: 700;
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.filters__main,
.filters__extra {
  display: grid;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 32px;
  display: flex;
  justify-content: space-between;
}

.filters__extra {
  display: none;
  margin-top: 32px;
  justify-content: space-between;
  position: relative;
  flex-wrap: wrap;
}

.btn--outline {
  border: 1px solid #747373;
  background: transparent;
  color: #545454;
}


.filter-group__list.list-2-cols {
  display: block;
  column-count: 2;
  column-gap: 30px;
}

/* Важное правило для чекбоксов внутри колонок */
.filter-group__list.list-2-cols .filter-checkbox,
.filter-group__list.list-3-cols .filter-checkbox,
.filter-group__list.list-4-cols .filter-checkbox {
  display: flex;
  break-inside: avoid;
  margin-bottom: 10px;
}

.filter-group__list.list-3-cols {
  display: block;
  column-count: 3;
  column-gap: 30px;
}

.filter-group__list.list-4-cols {
  display: block;
  column-count: 4;
  column-gap: 30px;
  width: max-content;
}

.collection-title {
  color: #141414;
  margin-bottom: 8px;
  display: block;
  transition: color 0.2s;
}

.collection-title:hover {
  color: var(--color-primary);
}

.filter-group__title {
  margin-bottom: 16px;
  color: #141414;
}

.filter-group__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: #545454;
  flex-direction: row;
}

.filter-checkbox input {
  margin-top: 2px;
  accent-color: #009640;
}

.filter-checkbox input:checked+span {
  color: #151515;
}

.filters__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* border-top: 1px solid #eee; */
  padding-top: 32px;
  margin-top: 0px;
}

.filters__btns {
  display: flex;
  gap: 12px;
}

.btn-toggle-extra {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  color: #999;
  cursor: pointer;
  text-transform: uppercase;
}

/* Results Section */
.results-section {
  padding: 40px 0 80px;
}

#toggleFiltersBtn {
  display: none;
}

.results-header {
  margin-bottom: 32px;
  text-align: right;
  color: #999;
}

.collection-item {
  display: flex;
  gap: 48px;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid #eee;
}

.collection-item:last-child {
  border-bottom: none;
}

.collection-item__info {
  width: 452px;
  flex-shrink: 0;
}

.collection-item__title {
  margin-bottom: 24px;
  color: #009640;
  font-weight: 700;
}

.collection-item__specs {
  margin-bottom: 24px;
}

.collection-item__specs li {
  padding: 5px 0;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.collection-item__specs .spec-row {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #747373;
}

.collection-item__specs .body-extra-small.text-muted {
  font-size: var(--body-m-size);
  color: #747373;
}

.collection-item__specs li strong {
  color: #312e2e;
  float: right;
  font-weight: 400;
}

.results-header .body-small {
  font-size: 18px;
}

.collection-item__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Design Card */
.design-card__img {
  position: relative;
  /* border-radius: 4px; */
  overflow: hidden;
  margin-bottom: 8px;
  aspect-ratio: 1/1;
}

.design-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.icon-favorit img {
  max-width: 100%;
  height: auto;
  display: block;
}

.design-card__name {
  color: #141414;
  font-weight: 400;
  display: block;
  font-size: var(--body-l-size);
}

.btn-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #999;
  font-size: 16px;
  transition: color 0.2s;
}

.btn-fav:hover {
  color: #e74c3c;
}

.filter-group:not(:last-child) {
  border-right: 1px solid #eaeaee;
  padding-right: 32px;
}

.filters__extra::before {
  content: "";
  border-top: 1px solid #eaeaee;
  width: 100%;
  position: absolute;
  top: -24px;
}

.filters__extra::after {
  content: "";
  border-top: 1px solid #eaeaee;
  width: 100%;
  position: absolute;
  bottom: -24px;
}

/* RESPONSIVE */
@media (max-width: 1279px) {

  .filters__main,
  .filters__extra {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .collection-item {
    flex-direction: column;
    gap: 32px;
  }

  .collection-item__info {
    width: 100%;
  }

  .collection-item__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .filter-group:nth-child(4n) {
    border-right: none;
  }

  /* 1. Убираем вертикальную линию у всех элементов второго ряда (где красный крестик) */
  .filter-group:nth-child(n + 5) {
    border-right: none;
  }

  /* 2. Добавляем горизонтальную линию для второго ряда */
  .filter-group:nth-child(n + 5) {
    border-top: 1px solid #e5e5e5;
    padding-top: 24px;
    margin-top: 0px;
  }

  /* 3. Добавляем отступ снизу для первого ряда (с 1 по 4 элемент), 
   чтобы визуально всё выглядело гармонично */
  .filter-group:nth-child(-n + 4) {
    padding-bottom: 8px;
  }

  /* 1. Убираем стандартные рамки (если они у вас сейчас заданы через border) */
  .filter-group {
    border-right: none !important;
    position: relative;
    /* Обязательно, чтобы линия позиционировалась внутри блока */
  }

  /* 2. Рисуем укороченные вертикальные линии всем блокам, кроме каждого четвертого (последнего в ряду) */
  .filter-group:not(:nth-child(4n)):not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    /* Прижимаем линию к правому краю */
    top: 16px;
    /* Отступ линии сверху (настройте под свой макет) */
    bottom: 16px;
    /* Отступ линии снизу */
    width: 1px;
    /* Толщина линии */
    background-color: #e5e5e5;
    /* Цвет линии (замените на ваш серый) */
  }

  .filters__footer {
    border-top: 1px solid #eee;
    padding-top: 32px;
  }

  .collection-item__grid {
    gap: 12px;
  }

  .filters {
    gap: 24px;
  }

  #toggleFiltersBtn {
    display: block;
  }

  .filter-group:not(:last-child) {
    padding-right: 12px;
    display: flex;
    flex-direction: column;
    width: auto;
    align-items: center;
  }

  .filter-block-group {
    display: flex;
    flex-direction: column;
    /* width: 100%; */
  }

  .catalog-hero__content .hero__desc {
    max-width: 834px;
    margin-bottom: 16px;
  }

  .catalog-hero .h1 {
    margin-bottom: 16px;
  }

  .filters__main .filter-group__list.list-2-cols {
    display: block;
    column-count: 1;
  }

  .filters__extra .filter-group {
    max-width: 211px;
  }
}

@media (max-width: 991px) {
  .catalog-hero {
    padding: 80px 0;
  }

  .catalog-hero .h1 {
    font-size: 2rem;
  }

  .filters__main,
  .filters__extra {
    grid-template-columns: repeat(2, 1fr);
  }

  .collection-item__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  #setFiltrIcon .svg.wrapper {
    width: 32px;
    height: 32px;
  }

  .filters__extra .filter-group:not(:nth-child(3n)):not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 16px;
    bottom: 16px;
    width: 1px;
    background-color: #e5e5e5;
  }

  /* 3. Горизонтальная линия-разделитель для второго ряда (начиная с 4-го элемента) */
  .filters__extra .filter-group:nth-child(n + 4) {
    border-top: 1px solid #e5e5e5;
    padding-top: 24px;
    margin-top: 24px;
  }

  /* 4. Небольшой отступ снизу для первого ряда (с 1 по 3 элемент) */
  .filters__extra .filter-group:nth-child(-n + 3) {
    padding-bottom: 8px;
  }
}

@media (max-width: 768px) {
  .header-filtr button {
    display: flex;
    background: transparent;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
  }

  #filterForm {
    display: none;
  }

  #filterForm.filters.open #extraFilters {
    display: flex !important;
  }

  #toggleFiltersBtn {
    display: none;
  }

  .filters__main,
  .filters__extra {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px;
    /* display: flex; */
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .results-header .body-small {
    font-size: 14px;
  }
}

@media (max-width: 767px) {

  .filters__main,
  .filters__extra {
    grid-template-columns: 1fr;
  }

  .filters__footer {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .collection-item__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .catalog-hero__btns {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .catalog-hero__btns .btn {
    width: fit-content;
    padding: 13px 28px;
  }

  .catalog-hero .h1 {
    font-size: 24px !important;
    font-weight: 500;
  }

  .filter-section__title {
    font-size: 22px;
  }

  .collection-item {
    flex-direction: column;
    gap: 16px;
  }

  .collection-item__specs {
    margin-bottom: 0px;
  }

  .header-filtr {
    margin-bottom: 12px;
    border-bottom: 1px solid #eaeaee;
    padding-bottom: 8px;
  }

  .filter-group:not(:last-child) {
    border-right: 0px solid #eaeaee;
  }

  .filter-group:not(:nth-child(4n)):not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 16px;
    bottom: 16px;
    width: 0px;
    background-color: transparent;
  }

  .filters__extra .filter-group:not(:nth-child(3n)):not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 16px;
    bottom: 16px;
    width: 0px;
    background-color: transparent;
  }

  .filters__extra::before {
    content: "";
    border-top: 0px solid #eaeaee;
  }

  .filter-block-group {
    width: 100%;
  }

  .filters__extra .filter-group {
    max-width: none;
  }

  .filters__extra .filter-group:nth-child(n + 4) {
    border-top: 0px solid #e5e5e5;
    padding-bottom: 12px;
    margin-top: -12px;
    padding-top: 12px;
  }

  /* Прячем укороченные вертикальные линии, которые мы делали через ::after */
  .filter-group::after {
    display: none !important;
  }

  /* 2. Добавляем горизонтальную линию СНИЗУ для всех блоков, КРОМЕ самого последнего */
  .filter-group:not(:last-child) {
    border-bottom: 1px solid #e5e5e5;
    /* Замените на нужный цвет, на скрине у вас красная */

    /* Отступ контента от линии */
    padding-bottom: -12px;

    /* Отступ линии от следующего заголовка */
    margin-bottom: -12px;
  }

  .collection-title {
    font-size: 22px;
  }

  .filters__extra .filter-group:last-child {
    margin-left: 0;
  }

  .btn-fav-heart {
    top: 9px;
    right: 6px;
  }

  .btn-fav-heart .svg.wrapper {
    width: 18px;
    height: 18px;
  }

  .btn-fav-heart {
    position: absolute;
    top: 6px;
    right: 6px;
  }
}

/* Final Footer Overrides */
@media (min-width: 1023px) {
  .footer__main {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .footer__info {
    max-width: 300px !important;
    text-align: left !important;
    margin: 0 !important;
    min-width: fit-content;
  }

  .footer__contacts {
    text-align: left !important;
  }

  .footer__socials {
    justify-content: flex-start !important;
  }

  .footer__bottom {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: left !important;
  }

  .footer__legal {
    flex-direction: row !important;
    gap: 32px !important;
  }
}

@media (min-width: 1280px) {
  .footer__nav {
    gap: 100px !important;
  }
}

/* @media (min-width: 1025px) and (max-width: 1920px) { */
@media (min-width: 1025px) {
  .footer .container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 90px;
    margin-bottom: 0;
  }

  .footer__main {
    display: flex;
    width: 100%;
    justify-content: space-around !important;
    gap: 90px;
    margin-bottom: 0px;
  }

  .footer__contacts {
    flex-direction: row;
    display: flex;
    justify-content: space-around;
    width: 100%;
    flex-wrap: wrap;
  }

  .footer__bottom {
    flex-direction: column !important;
    padding: 0;
    border-top: 0;
    margin-top: 0;
    text-align: start !important;
    justify-content: space-between !important;
    align-items: start !important;
    gap: 12px !important;
    min-width: 283px;
  }

  .footer__legal.body-small {
    flex-direction: column !important;
    align-items: start !important;
    gap: 12px !important;
  }
}

/* ========================================================
   PRODUCT PAGE
   ======================================================== */
.product-page {
  padding: 32px 0 80px;
}

.product-nav {
  padding-bottom: 24px;
  /* border-bottom: 1px solid #eee; */
  margin-bottom: 0px;
}

.product-nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.breadcrumbs {
  color: #808080;
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs span {
  color: #312e2e;
}

.product-nav__btns {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.btn-prev,
.btn-next {
  font-size: var(--body-l-size);
  color: #545454;
  font-weight: 400;
}

.btn-prev:hover,
.btn-next:hover {
  color: var(--color-primary);
}

.product-grid {
  display: grid;
  grid-template-columns: 228fr 167fr;
  gap: 64px;
  align-items: start;
}

/* Gallery */
.product-gallery__main {
  position: relative;
  border-radius: 8px;
  /* overflow: hidden; */
  margin-bottom: 16px;
  aspect-ratio: 912 / 800;
  background: #f9f9f9;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 56px;
  height: 56px;
  /* border-radius: 50%; */
  cursor: pointer;
  font-size: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); */
  transition: all 0.2s;
}

.gallery-nav::before {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  /* margin-top: 6px; */
  border-right: 2.23px solid #747373;
  border-bottom: 2.23px solid #747373;
  transition:
    transform 0.2s,
    border-color 0.2s;
}

.gallery-nav:hover {
  background: #fff;
}

.gallery-nav--prev {
  left: -56px;
}

.gallery-nav--next {
  right: -56px;
}

.gallery-nav--prev::before {
  transform: rotate(135deg);
}

.gallery-nav--next::before {
  transform: rotate(-45deg);
}

.gallery-nav:hover::before {
  border-right: 2.23px solid var(--color-primary);
  border-bottom: 2.23px solid var(--color-primary);
}

.product-gallery__thumbs {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

.thumb {
  width: 148px;
  height: 148px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.thumb.active {
  border-color: var(--color-primary);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-note {
  font-size: var(--body-s-size);
  color: #545454;
  line-height: 1.4;
}

/* Product Info */
.product-header-title {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: flex-start;
  width: 100%;
  gap: 24px;
}

.product-info__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-direction: column;
  gap: 8px;
}

.product-collection {
  display: block;
  color: #747373;
  text-transform: none;
  font-size: var(--body-l-size);
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

/* .product-collection:hover {
  color: var(--color-primary);
} */

.btn-fav-large.ld-none {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ffffff99;
}

.btn-fav-large.ld-none .icon-favorit img {
  max-width: 100%;
  height: auto;
  display: block;
}

.btn-fav-large {
  background: #f5f5f5;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  color: #747373;
  font-size: 20px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-fav-large:hover {
  color: #e74c3c;
  background: #fee;
}

.product-badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 20px;
  font-size: var(--info-size);
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 32px;
}

/* Tech Icons */
.tech-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.product-info .tech-icons {
  max-width: 452px;
}

.tech-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.tech-icon .svg.wrapper {
  width: 50px;
  height: 50px;
}

.tech-icon img {
  width: 50px;
  height: 50px;
}

/* Стили для самой подсказки */
.tech-icon .tooltip-text {
  visibility: hidden;
  width: 140px;
  /* Ширина блока с текстом */
  background-color: #fff;
  /* Белый фон как на скрине */
  color: #000000;
  /* Цвет текста */
  text-align: center;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  /* Скругление углов */
  padding: 8px 12px;
  position: absolute;
  z-index: 10;
  bottom: 125%;
  /* Позиция над иконкой */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  /* Плавное появление */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  /* Легкая тень */
  font-size: var(--body-m-size);
  white-space: nowrap;
  /* ЗАПРЕЩАЕТ ПЕРЕНОС ТЕКСТА: это растянет блок по ширине слов */
  width: auto;
  /* Позволяет блоку менять ширину в зависимости от контента */
  min-width: 100px;
  /* (Опционально) Минимальная ширина, чтобы не был слишком узким */

  /* Если текст все равно не по центру, проверьте эти свойства: */
  left: 50%;
  transform: translateX(-50%);
}

/* Маленький "хвостик" (треугольник) снизу подсказки */
.tech-icon .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

/* Показываем при наведении */
.tech-icon:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Specs */
.product-specs {
  margin-bottom: 40px;
}

.product-specs li {
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
  color: #747373;
  font-size: var(--body-l-size);
}

.product-specs li strong {
  color: #222;
  float: right;
  font-weight: 600;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

#specsTrigger {
  opacity: 1;
  padding-top: 16px;
  padding-right: 28px;
  padding-bottom: 18px;
  padding-left: 28px;
  border-radius: 8px;
  width: fit-content;
}

#product-actions .btn.btn--light.btn--full {
  color: #545454;
  background-color: #eaeaee;
  width: fit-content;
}

.btn--full {
  width: 100%;
}

.btn--specs {
  background-color: #d6e3ca !important;
  color: #058b3c !important;
}

.btn--specs:hover {
  background-color: #c8dfca !important;
}

/* Links */
.product-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.link-download {
  color: #747373;
  text-transform: uppercase;
  text-decoration: underline;
  transition: color 0.2s;
}

.link-download:hover {
  color: var(--color-primary);
}

/* Other Designs */
.other-designs {
  padding-top: 80px;
  /* border-top: 1px solid #eee; */
}

.designs-slider {
  position: relative;
  margin-top: 40px;
}

.designs-block {
  display: flex;
  gap: 24px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #eee;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.slider-arrow.prev {
  left: -60px;
}

.slider-arrow.next {
  right: -60px;
}

.product-links.moby-block {
  display: none;
}

.moby-block {
  display: none;
}

/* RESPONSIVE PRODUCT */
@media (max-width: 1279px) {
  .product-grid {
    gap: 32px;
  }

  .slider-arrow {
    display: none;
  }
}

@media (max-width: 1024px) {
  .gallery-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e1e1e1;
  }

  .gallery-nav--prev {
    left: 8px;
  }

  .gallery-nav--next {
    right: 8px;
  }

  .gallery-nav:hover {
    background: #f5f5f5;
  }

  .btn-fav-large {
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
  }

  .product-gallery__main {
    aspect-ratio: 575 / 560;
  }

  .thumb {
    width: 86px;
    height: 86px;
  }

  .product-gallery__thumbs {
    gap: 14px;
  }

  .product-info__header {
    margin-bottom: 24px;
  }

  .product-badge {
    margin-bottom: 24px;
  }

  .sidebar-specs {
    margin-bottom: 24px;
  }
}

@media (max-width: 991px) {
  .product-grid {
    grid-template-columns: 228fr 167fr;
  }

  .product-info {
    order: 2;
  }

  .product-gallery {
    order: 1;
  }

  .designs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-nav__inner {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {

  .btn-prev,
  .btn-next {
    font-size: 14px;
  }

  .product-hero .btn-prev,
  .product-hero .btn-next {
    font-size: 10px;
  }

  .breadcrumbs a,
  .breadcrumbs span {
    font-size: 12px;
  }

  .tech-icons {
    margin-bottom: 24px;
  }

  .product-header-title {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .btn-fav-large {
    width: 32px;
    height: 32px;
  }

  .btn-fav-large.large-fav .svg.wrapper {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 767px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-info {
    order: 0;
  }

  .product-links.moby-block {
    display: flex;
  }

  .gallery-note {
    margin-bottom: 16px;
    font-size: 10px;
  }

  #product-actions,
  #product-links {
    display: none;
  }

  .product-actions.moby-block .btn {
    padding: 12px 28px;
    background-color: #eaeaee;
  }

  .product-info__header {
    margin-bottom: 16px;
  }

  .product-badge {
    margin-bottom: 16px;
  }

  .product-info__header {
    gap: 16px;
  }

  .product-nav__btns {
    margin-bottom: 16px;
  }

  .product-nav {
    padding-bottom: 16px;
  }

  .product-page {
    padding: 16px 0 40px;
  }

  .tech-icons {
    margin-bottom: 16px;
  }

  .product-grid {
    gap: 8px;
  }
}

@media (max-width: 575px) {
  .designs-grid {
    grid-template-columns: 1fr;
  }

  .product-gallery__thumbs {
    overflow-x: auto;
    padding-bottom: 8px;
    gap: 8px;
  }

  .gallery-nav {
    width: 32px;
    height: 32px;
  }

  .gallery-nav--prev {
    left: 3px;
  }

  .gallery-nav--next {
    right: 3px;
  }

  .thumb {
    flex-shrink: 0;
    width: 43px;
    height: 43px;
  }
}

/* ========================================================
   MODAL & SPECS TABLE
   ======================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  background: #ffffff;
  backdrop-filter: blur(4px);
}

.modal__container {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); */
  overflow: hidden;
}

.modal__header {
  padding: 24px 32px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal__close {
  background: none;
  border: none;
  font-size: 14px;
  color: #747373;
  cursor: pointer;
}

.modal__close:hover {
  color: #333;
}

.modal__content {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}

.specs-table th {
  background: #d6e3ca;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: #141414;
  top: -35px;
  position: sticky;
}

.specs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #312e2e;
}

.specs-table td:nth-child(2) {
  text-align: end;
}

.specs-table tr:nth-child(even) td {
  background: #eaeaee;
}

.specs-table tr:hover td {
  background: #f5f5f5;
}

.modal__footer {
  padding: 24px 32px;
  border-top: 1px solid #eee;
  text-align: center;
}

.modal__footer .btn {
  min-width: 280px;
}

/* RESPONSIVE MODAL */
@media (max-width: 767px) {
  .modal {
    padding: 0;
  }

  .modal__container {
    max-height: 100vh;
    border-radius: 0;
    height: 100%;
  }

  .modal__header {
    padding: 16px 24px;
  }

  .modal__content {
    padding: 24px 16px;
  }

  .specs-table th,
  .specs-table td {
    font-size: 13px;
    padding: 10px 12px;
  }
}

/* ========================================================
   COLLECTION PAGE
   ======================================================== */
.collection-hero {
  position: relative;
  height: 324px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
  margin-bottom: 40px;
}

.collection-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.collection-hero .container {
  position: relative;
  z-index: 2;
}

.collection-hero__title {
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.collection-hero__nav {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
}

.nav-arrow {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-arrow:hover {
  opacity: 1;
}

.collection-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn--glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  min-width: 220px;
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.3);
}

.breadcrumbs-row {
  border-bottom: 1px solid #eee;
  margin-bottom: 40px;
  padding: 16px 0;
}

.collection-layout {
  display: flex;
  gap: 60px;
  margin-bottom: 80px;
}

.collection-sidebar {
  width: 28%;
  /* 468px; */
  flex-shrink: 0;
}

.collection-badge-label {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 20px;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 40px;
}

.tech-icons-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.sidebar-specs {
  list-style: none;
  padding: 0;
  margin-bottom: 32px;
}

.sidebar-specs li {
  color: #747373;
  margin-bottom: 10px;
}

.sidebar-specs li span {
  color: #312e2e;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.collection-main {
  flex: 1;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* Responsive Collection */
@media (max-width: 1199px) {
  .collection-layout {
    gap: 24px;
  }

  .collection-sidebar {
    width: 100%;
    max-width: 385px;
  }

  .tech-icon {
    width: 40px;
    height: 40px;
  }

  .tech-icon .svg.wrapper {
    width: 40px;
    height: 40px;
  }

  .tech-icon img {
    width: 40px;
    height: 40px;
  }

  .tech-icons-grid {
    grid-template-columns: repeat(6, 1fr);
    max-width: 312px;
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .collection-hero {
    height: 280px;
  }
}

@media (max-width: 1024px) {
  .collection-badge-label {
    font-size: 18px;
  }

  .product-info .sidebar-specs li {
    font-size: var(--body-m-size);
  }
}

@media (max-width: 1023px) {
  .collection-hero {
    height: 194px;
  }

  .collection-hero__nav {
    margin-bottom: 24px;
  }

  .collection-hero__title {
    margin-bottom: 16px;
  }

  .collection-layout {
    flex-direction: row;
  }

  .collection-sidebar {
    width: 100%;
    max-width: 260px;
  }

  .tech-icons-grid {
    max-width: 260px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
  }

  .products-grid {
    gap: 12px;
  }

  #specsTrigger {
    opacity: 1;
    padding-top: 16px;
    padding-right: 12px;
    padding-bottom: 16px;
    padding-left: 12px;
    border-radius: 8px;
    width: 100%;
    display: block;
  }
}

@media (max-width: 768px) {
  .collection-badge-label {
    font-size: 16px;
  }

  .sidebar-specs li {
    color: #747373;
    margin-bottom: 10px;
    font-size: 14px;
  }

  #specsTrigger {
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .product-actions {
    margin-bottom: 24px;
  }

  .tech-icons {
    margin-bottom: 24px;
  }

  #product-actions .btn.btn--light.btn--full {
    padding: 12px 28px;
    font-size: var(--body-m-size);
  }

  .product-hero #specsTrigger {
    font-size: 14px;
    padding-top: 12px;
    padding-right: 12px;
    padding-bottom: 12px;
    padding-left: 12px;
  }

  .link-download {
    font-size: 12px;
  }

  .product-card__name {
    font-size: 14px;
  }

  .sidebar-specs {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
  }
}

@media (max-width: 767px) {
  .collection-hero {
    text-align: center;
    margin-bottom: 32px;
    padding: 24px 0px;
    display: flex;
    height: 100%;
    /* max-height: 300px; */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
    margin-bottom: 8px;
    aspect-ratio: 320 / 227;
    width: 100%;
  }

  .tech-icons-grid {
    margin-bottom: 16px;
  }

  .sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
  }

  .collection-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .collection-hero__nav {
    justify-content: center;
  }

  .collection-hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .collection-hero__actions .btn {
    width: fit-content;
  }

  .collection-hero__nav .nav-arrow {
    font-size: 14px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .tech-icons-grid {
    grid-template-columns: repeat(6, 1fr);
    max-width: none;
  }

  .collection-layout {
    flex-direction: column;
  }

  .collection-sidebar {
    width: 100%;
    max-width: none;
  }

  .modal__footer .btn {
    min-width: 234px;
  }

  .modal__header h3 {
    font-size: 12px;
  }

  .modal__footer {
    padding: 12px 4px 6px 4px;
  }

  .modal__close.js-close-modal {
    font-size: 12px;
  }
}

/* ========================================================
   FAVORITES PAGE
   ======================================================== */
.favorites-page {
  padding: 60px 0;
}

.favorites-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.btn--light-green {
  background: #d6e3ca;
  color: var(--color-primary);
  border: none;
  font-size: var(--body-l-size);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.2s;
}

.btn--light-green:hover {
  background: #c8e6c9;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.product-card--fav {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.product-card__img {
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.product-card--fav .product-card__img {
  margin-bottom: 12px;
}

.btn-remove-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff99;
  backdrop-filter: blur(4px);
  border: none;
  color: #747373;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s;
  opacity: 0;
}

.product-card--fav:hover .btn-remove-fav {
  opacity: 1;
}

.btn-remove-fav:hover {
  background: #fff;
  color: #e74c3c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card__info-fav {
  padding: 0 4px;
}

.fav-collection {
  font-weight: 700;
  color: #141414;
  margin-bottom: 4px;
}

.product-card__name {
  color: #312e2e;
  text-decoration: none;
}

.product-card__name:hover {
  color: var(--color-primary);
}

@media (max-width: 1400px) {
  .favorites-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1199px) {
  .favorites-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1023px) {
  .fav-collection {
    font-size: 22px;
  }

  .product-card__name {
    font-size: 16px;
  }
}

@media (max-width: 1023px) {
  .favorites-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .favorites-top {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
  }

  .mobile-fav-btn {
    margin-bottom: 30px;
  }

  .btn-remove-fav {
    /* opacity: 1; */
  }
}

@media (max-width: 768px) {
  .fav-collection {
    font-size: 20px;
  }

  .product-card__name {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .fav-collection {
    font-size: 18px;
  }

  .product-card__name {
    font-size: 12px;
  }

  .favorites-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .favorites-page {
    padding: 24px 0;
  }

  .modal__close {
    min-width: 72px;
  }

  .favorites-top {
    margin-bottom: 16px;
    flex-direction: column;
    gap: 16px;
  }

  .mobile-fav-btn {
    font-size: 12px;
  }

  .favorites-top .btn--light-green {
    font-size: 12px;
    padding: 13px 0px;
    width: 100%;
    max-width: 380px;
  }
}

/* ========================================================
   ABOUT PAGE
   ======================================================== */
.about-hero {
  position: relative;
  height: 100%;
  max-height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
  margin-bottom: 60px;
  aspect-ratio: 1024 / 222;
  width: 100%;
}

.about-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.about-hero .container {
  position: relative;
  z-index: 2;
}

#about-btn {
  margin-top: 32px;
}

.about-hero__title {
  margin: 0;
}

.about-intro {
  margin-bottom: 60px;
}

.about-intro__layout {
  display: flex;
  gap: 76px;
}

.about-intro__content {
  flex: 1;
}

.about-intro__heading {
  margin-bottom: 32px;
  line-height: 1.2;
  color: #141414;
}

.about-intro__text {
  color: #545454;
  line-height: 1.2;
  margin-bottom: 40px;
}

.about-sidebar {
  width: 380px;
  flex-shrink: 0;
}

.sidebar-box {
  background: #fff;
  padding: 0px 0px 0px 16px;
  border-left: none;
  border-left: 1px solid #048e3d;
}

.sidebar-box__title {
  margin-bottom: 16px;
  color: #141414;
}

.sidebar-box p {
  color: #545454;
}

.founded-year {
  font-size: 54px;
  font-weight: 700;
  font-style: normal;
  color: var(--color-primary);
  margin-bottom: 24px;
}

/* ABOUT GALLERY */
.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 20px;
  margin: 0px 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.gallery-item--col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-gallery--bottom {
  grid-template-columns: 2fr 1fr 1fr;
  margin-top: 18px;
  /* max-width: 1228px; */
}

/* ADVANTAGES */
.about-advantages .h2.section-title {
  margin-bottom: 40px;
}

.about-advantages {
  padding: 0px 0;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: 18px;
  /* max-width: 1228px; */
}

.advantage-item {
  background: #fff;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s;
  border-bottom: 1px solid #eee;
  position: relative;
}

.advantage-item::before {
  content: "";
  position: absolute;
  right: 0px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background-color: #ebebeb;
}

.advantage-item .svg.wrapper {
  width: 52px;
  height: 50px;
}

.advantage-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.advantage-item__text {
  color: #141414;
}

.about-contact-promo {
  max-width: 1052px;
  margin-top: 40px;
  color: #312e2e;
}

/* NEWS SECTION */
.about-news {
  padding: 80px 0;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.slider-nav {
  display: flex;
  gap: 12px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  /* border: 1px solid #eee; */
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
  font-size: 0;
}

.slider-btn::before {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  /* margin-top: 6px; */
  border-right: 2.23px solid #747373;
  border-bottom: 2.23px solid #747373;

  transition:
    transform 0.2s,
    border-color 0.2s;
}

.slider-btn.prev::before {
  transform: rotate(135deg);
}

.slider-btn.next::before {
  transform: rotate(-45deg);
}

.slider-btn:hover::before {
  border-right: 2.23px solid var(--color-primary);
  border-bottom: 2.23px solid var(--color-primary);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.news-card {
  background: #fff;
  transition: transform 0.3s;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-card__img {
  /* border-radius: 8px; */
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 16/10;
}

.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__title {
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-card__date {
  color: #747373;
  margin-bottom: 12px;
}

/* RESPONSIVE ABOUT */
@media (max-width: 1400px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1199px) {
  .about-intro__layout {
    gap: 24px;
  }

  .sidebar-box__title {
    margin-bottom: 16px;
    color: #141414;
    font-weight: 700;
    margin-bottom: 6px;
  }

  .sidebar-box .sidebar-box {
    color: #545454;
  }

  .founded-year {
    font-size: 40px;
    margin-bottom: 12px;
  }

  .about-sidebar {
    width: 305px;
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .about-advantages.bg-light .container {
    max-width: 652px;
    margin-left: 0px;
    padding-right: 0;
  }

  .about-intro__text.body-large {
    font-size: 18px;
  }

  .sidebar-box .body-large {
    font-size: 16px;
    color: #545454;
  }

  .about-gallery {
    gap: 6px;
  }

  .about-hero {
    margin-bottom: 50px;
  }

  .advantage-item__text .body-large {
    font-size: 16px;
  }

  .about-intro {
    margin-bottom: 32px;
  }

  .about-intro__heading {
    margin-bottom: 32px;
    font-size: 22px;
  }

  .advantages-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .advantage-item {
    background: #fff;
    padding: 8px 8px;
  }
}

@media (max-width: 1023px) {
  .about-hero {
    height: 100%;
  }

  .about-hero__title {
    font-size: 32px;
  }

  .about-intro__layout {
    flex-direction: column;
  }

  .about-sidebar {
    width: 100%;
    order: -1;
    margin-bottom: 40px;
  }

  .founded-year {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .advantages-grid {
    /* Переопределяем ширину колонок для 768px */
    grid-template-columns: repeat(4, 174px);
    justify-content: space-between;
  }

  .about-advantages.bg-light .container {
    max-width: none;
    margin-left: 0px;
    padding-right: 24px;
  }
}

@media (max-width: 767px) {
  #about-btn {
    margin-top: 16px;
    padding: 12px 28px;
  }

  .about-hero__title {
    font-size: 24px;
  }

  .founded-year {
    font-size: 26px;
  }

  .sidebar-box .body-large {
    font-size: 14px;
  }

  .about-intro__heading {
    margin-bottom: 24px;
    font-size: 16px;
  }

  .about-sidebar {
    margin-bottom: 0px;
  }

  .about-intro__text.body-large {
    font-size: 14px;
  }

  .about-intro__text {
    margin-bottom: 24px;
  }

  .about-advantages .h2.section-title {
    margin-bottom: 24px;
    font-size: 22px;
  }

  .advantage-item__text .body-large {
    font-size: 14px;
  }

  .advantages-grid {
    gap: 12px;
  }

  .about-advantages.bg-light .container {
    padding-right: 12px;
  }

  .about-contact-promo {
    margin-top: 24px;
  }

  .about-news {
    padding: 40px 0;
  }

  .about-hero {
    height: 100%;
    aspect-ratio: 320 / 148;
    margin-bottom: 32px;
  }

  .slider-nav {
    display: none;
  }

  .about-advantages {
    padding: 0px 0;
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantage-item {
    background: #fff;
    padding: 0;
    border-bottom: none;
  }

  .advantage-item::before {
    right: 0px;
    top: 24px;
    bottom: 24px;
    width: 1px;
    background-color: transparent;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-gallery {
    grid-template-columns: 1fr;
  }

  .about-gallery .gallery-item--wide {
    grid-column: span 1;
  }

  .about-gallery--bottom {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   NEWS LIST PAGE
   ======================================================== */
.news-page-hero {
  position: relative;
  padding: 77px 0 77px;
  margin-bottom: 40px;
}

.news-page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90.25deg,
      rgba(0, 0, 0, 0.5) 24.02%,
      rgba(0, 0, 0, 0) 82.87%);
}

.news-page-hero .h1 {
  color: #eaeaee;
  z-index: 2;
  position: relative;
}

.news-page-lead {
  margin-top: 16px;
  max-width: 817px;
  z-index: 2;
  position: relative;
  color: #eaeaee;
}

.news-list-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 30px;
  margin-bottom: 60px;
}

.news-card--link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s;
}

.news-card--link:hover {
  transform: translateY(-4px);
}

.news-card--link .news-card__title {
  color: #141414;
}

.news-card--link:hover .news-card__title {
  color: var(--color-primary);
}

.news-card--link .news-card__img {
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.news-card--link .news-card__img img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}

.news-card__excerpt {
  color: #545454;
  margin-top: 12px;
  line-height: 1.5;
}

/* PAGINATION */
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 80px;
  justify-content: center;
}

.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  /* border: 1px solid #eee; */
  background: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.page-btn:hover {
  background: transparent;
  color: #048e3d;
}

.page-btn--active,
.page-btn.page-btn--active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.page-dots {
  color: #999;
  font-size: 14px;
  padding: 0 4px;
}

@media (max-width: 1024px) {
  .news-page-lead {
    margin-top: 16px;
    max-width: 647px;
  }
}

@media (max-width: 768px) {
  .about-intro__heading {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .about-sidebar {
    width: 100%;
    order: -1;
    margin-bottom: 0px;
  }

  .about-hero__title {
    font-size: var(--h1-size);
  }

  .sidebar-box__title {
    font-size: var(--h3-size);
  }

  .founded-year {
    font-size: 32px;
  }

  .sidebar-box .body-large {
    font-size: 14px;
  }

  .about-intro__text.body-large {
    font-size: 14px;
  }

  .advantage-item__text .body-large {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .sidebar-box__title {
    font-size: 22px;
  }

  .founded-year {
    font-size: 26px;
  }

  .about-intro__heading {
    font-size: 16px;
    margin-bottom: 24px;
  }
}

/* ========================================================
   NEWS DETAIL PAGE
   ======================================================== */
.news-detail-page {
  padding: 0 0 80px;
}

.breadcrumbs-row--detail {
  padding: 24px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 26px;
}

.breadcrumb-link {
  text-decoration: none;
  color: #7f7e7e;
}

.breadcrumb-link:hover {
  color: var(--color-primary);
}

.breadcrumbs.breadcrumbs-row--detail .breadcrumb-sep {
  color: #808080;
}

.news-article__title {
  margin-bottom: 16px;
  color: #141414;
}

.news-nav-arrows {
  display: flex;
  gap: 40px;
  margin-bottom: 32px;
}

.news-nav-link {
  color: #545454;
  text-decoration: none;
  transition: color 0.2s;
}

.news-nav-link:hover {
  color: var(--color-primary);
}

.news-article__date {
  color: #747373;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

/* Cover + Sidebar row */
.news-cover-row {
  display: grid;
  grid-template-columns: 307fr 95fr;
  gap: 40px;
  margin-bottom: 48px;
}

.news-cover-row .news-article__cover {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
}

.news-cover-row .news-article__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-sidebar {
  display: block;
}

.news-sidebar__next {
  padding: 0px 0px 0px 16px;
  border-radius: 0px;
  border-left: 1px solid #048e3d;
  height: max-content;
}

.news-sidebar__label {
  color: #141414;
  margin-bottom: 16px;
}

.news-sidebar__date {
  color: #747373;
  margin-top: 16px;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.news-sidebar__next .body-medium {
  color: #545454;
}

/* Article body - full width */
.news-article {
  margin-bottom: 0;
  display: grid;
  grid-template-columns: 307fr 95fr;
  gap: 40px;
}

.news-article__body {
  line-height: 1.8;
}

.news-article__subtitle {
  margin: 40px 0 16px;
}

.news-article__body p {
  color: #545454;
  margin-bottom: 20px;
  font-size: var(--body-l-size);
}

.news-article__list {
  padding-left: 20px;
  margin-bottom: 32px;
}

.news-article__list li {
  color: #545454;
  margin-bottom: 16px;
  line-height: 1.7;
}

.text-link {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 500;
}

.text-link--green {
  color: var(--color-primary);
}

.other-news-section {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid #eee;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.news-article__list {
  list-style: none;
  /* Убираем стандартные черные точки браузера */
  padding-left: 0;
  /* Убираем стандартный внутренний отступ */
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* Расстояние между пунктами списка (настрой по макету) */
}

.news-article__list li {
  position: relative;
  padding-left: 24px;
  /* Отступ текста, чтобы освободить место для нашей точки */
  line-height: 1.5;
  /* Делаем межстрочный интервал комфортным для чтения */
  font-size: var(--body-l-size);
}

/* Создаем и стилизуем зеленую точку */
.news-article__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  /* Смещаем чуть вниз, чтобы точка стояла ровно по центру первой строки */
  width: 10px;
  /* Размер точки */
  height: 10px;
  /* Размер точки */
  background-color: #048e3d;
  /* Твой зеленый цвет */
  border-radius: 50%;
  /* Делаем форму круглой */
}

/* RESPONSIVE NEWS */
@media (max-width: 1199px) {
  .news-list-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-cover-row {
    gap: 30px;
  }

  .news-sidebar {
    width: 240px;
  }

  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .news-nav-arrows {
    display: flex;
    gap: 40px;
    margin-bottom: 24px;
  }

  .news-sidebar__label {
    color: #141414;
    margin-bottom: 12px;
    font-size: var(--h3-size);
  }

  .news-sidebar__next .body-medium {
    color: #545454;
    font-size: var(--body-s-size);
  }

  .news-sidebar__date {
    color: #747373;
    margin-top: 12px;
  }

  .news-cover-row {
    display: grid;
    gap: 24px;
    grid-template-columns: 631fr 289fr;
    margin-bottom: 32px;
  }

  .news-article {
    margin-bottom: 0;
    display: grid;
    grid-template-columns: 631fr 289fr;
    gap: 24px;
  }

  .news-article__subtitle {
    margin: 0px 0 16px;
  }

  .news-article__body p {
    color: #545454;
    margin-bottom: 20px;
    font-size: var(--body-m-size);
  }
}

@media (max-width: 1023px) {
  .news-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-list-page .news-list-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-cover-row {
    flex-direction: column;
  }

  .news-sidebar {
    width: 100%;
    margin-bottom: 24px;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .news-cover-row {
    grid-template-columns: 1fr;
    margin-bottom: 24px;
  }

  .news-sidebar.d-none.d-md-flex {
    display: none !important;
  }

  .news-sidebar.d-md-none {
    display: flex !important;
  }

  .news-article {
    grid-template-columns: 1fr;
    margin-bottom: 24px;
  }

  .news-article__body p {
    font-size: 16px;
  }

  .news-article__subtitle {
    font-size: 20px;
  }

  .news-sidebar__next .body-medium {
    color: #545454;
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .news-list-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .news-page-hero {
    padding: 40px 0 30px;
  }

  .news-nav-arrows {
    flex-direction: row;
    gap: 8px;
    justify-content: space-between;
  }

  .news-article__title {
    font-size: 28px;
  }

  .news-detail-page .news-article__title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .news-article__date {
    color: #747373;
    margin-bottom: 24px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   PROJECTS LIST PAGE
   ======================================================== */
.projects-hero {
  position: relative;
  /* min-height: 324px; */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  /* padding-bottom: 60px; */
  margin-bottom: 0;
  height: 100%;
  max-height: 324px;
  aspect-ratio: 1024 / 198;
  width: 100%;
}

.projects-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(98.63deg,
      rgba(0, 0, 0, 0.3) 39.2%,
      rgba(0, 0, 0, 0) 99.69%);
}

.projects-hero .container {
  position: relative;
  z-index: 2;
}

.projects-hero__title {
  color: #eaeaee;
  margin: 0 0 12px;
}

.projects-hero__subtitle {
  color: #eaeaee;
  max-width: 817px;
  line-height: 1.4;
}

/* FILTERS */
.projects-filters {
  display: flex;
  gap: 32px;
  padding: 30px 0 0;
  margin-bottom: 40px;
  align-items: flex-start;
}

.pf-item {
  position: relative;
  display: inline-block;
}

.pf-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #747373;
  transition: color 0.2s;
  position: relative;
}

.pf-btn--active {
  color: #747373;
  font-weight: 500;
}

.pf-btn::after {
  content: "";
  position: absolute;
  right: -20px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #141414;
  border-bottom: 1.5px solid #141414;
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-top: 0px;
}

.pf-btn--active.pf-btn::after {
  transform: rotate(225deg);
  margin-top: 6px;
}

.pf-btn:hover {
  color: var(--color-primary);
}

.pf-drop {
  display: none;
  /* Скрыто по умолчанию */
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 280px;
  border-radius: 4px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.08);
  /* Мягкая тень как на макете */
  margin-top: 8px;
  max-height: 270px;
  /* Ограничение высоты для появления скролла */
  overflow-y: auto;
  z-index: 100;
}

.pf-drop--open {
  display: block;
}

.pf-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: #747373;
  cursor: pointer;
  transition: color 0.15s;
}

.pf-drop label {
  padding-top: 12px;
  padding-right: 24px;
  padding-bottom: 12px;
  padding-left: 12px;
  gap: 10px;
  opacity: 1;
  border-bottom-width: 1px;
  border-bottom: 1px solid #eaeaee;
}

.pf-drop label:hover {
  background: #eaeaee;
}

.pf-check input {
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
}

.pf-check--active {
  font-weight: 400;
  color: #151515;
}

/* Кастомизация скроллбара (Webkit) */
.pf-drop::-webkit-scrollbar {
  width: 4px;
}

.pf-drop::-webkit-scrollbar-track {
  background: transparent;
  margin: 10px 0;
  /* Отступы сверху и снизу для скролла */
}

.pf-drop::-webkit-scrollbar-thumb {
  background-color: #d1d1d1;
  border-radius: 4px;
}

/* PROJECTS GRID */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 24px;
  margin-bottom: 60px;
}

.project-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card__img {
  /* border-radius: 4px; */
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 4/3;
}

.project-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__title {
  line-height: 1.4;
  margin-bottom: 8px;
  color: #141414;
}

.project-card:hover .project-card__title {
  color: var(--color-primary);
}

.project-card__date {
  color: #747373;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.project-card__desc {
  color: #545454;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .projects-hero__subtitle {
    color: #eaeaee;
    max-width: 647px;
  }
}

@media (max-width: 768px) {
  .projects-hero {
    height: 100%;
    max-height: 324px;
    aspect-ratio: 768 / 177;
  }
}

@media (max-width: 767px) {
  .projects-hero {
    height: 100%;
    max-height: 324px;
    aspect-ratio: 320 / 201;
  }
}

/* ========================================================
   PROJECT DETAIL PAGE
   ======================================================== */
.project-detail-page {
  padding: 0 0 80px;
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  margin-top: 26px;
}

.project-header__title {
  margin: 0;
}

@media (min-width: 1024px) {
  h1.project-header__title {
    font-size: 48px;
  }
}

.project-header__nav {
  gap: 40px;
  align-items: center;
  flex-shrink: 0;
}

.project-header__nav--mobile {
  margin-top: 24px;
  gap: 30px;
}

.project-intro {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
}

.project-intro__address {
  flex-shrink: 0;
  width: 433px;
}

.project-intro__region {
  font-weight: 700;
  line-height: 1.2;
}

.project-intro__desc {
  flex: 1;
  color: #545454;
  line-height: 1.4;
}

/* PROJECT GALLERY */
.project-gallery {
  margin-bottom: 60px;
}

.project-gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.pg-item {
  /* border-radius: 6px; */
  overflow: hidden;
  position: relative;
}

.pg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 800 / 400;
}

/* MATERIALS */
.project-materials {
  padding-top: 60px;
  /* border-top: 1px solid #eee; */
}

.project-materials__title {
  margin-bottom: 50px;
  color: #141414;
}

.project-materials__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.project-material-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-material-card__img {
  position: relative;
  /* border-radius: 4px; */
  overflow: hidden;
  margin-bottom: 12px;
}

.project-material-card__img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.project-material-card__img i img {
  aspect-ratio: 1;
  object-fit: fill;
}

.project-material-card__info {
  padding: 0 4px;
}

.product-card__name-tag {
  color: #141414;
  margin-bottom: 4px;
}

.btn-fav-heart .svg.wrapper {
  width: 18px;
  height: 18px;
}

.btn-fav-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ffffff99;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #747373;
  transition: color 0.2s;
  z-index: 2;
}

.btn-fav-heart:hover {
  color: #e74c3c;
}

.project-detail-page .project-header {
  align-items: center;
}

/* RESPONSIVE PROJECTS */
@media (max-width: 1199px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-intro {
    gap: 40px;
  }

  .project-materials__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .project-header__nav .news-nav-link {
    font-size: 16px;
  }

  .project-intro__region {
    font-size: 32px;
  }

  .pg-item img {
    aspect-ratio: 480 / 300;
  }

  .project-intro__address {
    flex-shrink: 0;
    width: 400px;
  }
}

@media (max-width: 1023px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-header {
    flex-direction: row;
  }

  .project-intro {
    flex-direction: row;
    gap: 24px;
  }

  .project-intro__address {
    width: 100%;
  }

  .project-materials__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .btn-fav-heart {
    position: absolute;
    top: 10px;
    right: 6px;
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 768px) {
  .project-intro__address {
    flex-shrink: 0;
    width: 260px;
  }

  .project-intro__region {
    font-size: 26px;
  }

  .project-gallery__grid {
    gap: 16px;
  }

  .pg-item img {
    aspect-ratio: 352 / 220;
  }

  .project-materials__grid {
    gap: 16px;
  }

  .project-header__nav .news-nav-link {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .project-header {
    flex-direction: column;
  }

  .project-header__nav .news-nav-link {
    font-size: 14px;
  }

  .project-intro__region {
    font-size: 22px;
    letter-spacing: -2%;
  }

  .project-materials__grid {
    gap: 12px;
  }

  .project-detail-page .container {
    padding: 0 12px;
  }

  .project-material-card__info .body-large {
    font-size: 12px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-hero {
    min-height: 0;
    padding: 24px 0;
  }

  .projects-grid {
    margin-bottom: 30px;
  }

  .project-card__img {
    aspect-ratio: 296 / 160;
    width: 100%;
  }

  .pagination {
    margin: 0 auto 30px;
  }

  .project-gallery__grid {
    grid-template-columns: 1fr;
  }

  .project-materials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-filters {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 380px) {
  .btn-fav-heart {
    position: absolute;
    top: 8px;
    right: 6px;
    width: 28px;
    height: 28px;
  }
}

/* ========================================================
   PROFI PAGE
   ======================================================== */

/* HERO */
.profi-hero {
  overflow: hidden;
  position: relative;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #ffffff;
  padding: 79px 0 79px;
  margin-bottom: 40px;
  max-height: 520px;
}

.profi-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90.25deg,
      rgba(0, 0, 0, 0.5) 24.02%,
      rgba(0, 0, 0, 0) 82.87%);
}

.profi-hero__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding-top: 60px;
  padding-bottom: 0;
  min-height: 520px;
  z-index: 1;
}

.profi-hero__content {
  max-width: 948px;
  padding-bottom: 60px;
  padding-right: 40px;
}

.profi-hero__title {
  line-height: 1.2;
  margin-bottom: 20px;
}

.profi-hero__subtitle {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}

.profi-hero__btn {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 14px 40px;
  display: inline-block;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition:
    background 0.2s,
    color 0.2s;
}

.profi-hero__btn:hover {
  background: #fff;
  color: var(--color-primary);
}

.profi-hero__image {
  flex-shrink: 0;
  width: 460px;
  align-self: flex-end;
  margin-right: -40px;
}

.profi-hero__image img {
  width: 100%;
  display: block;
}

/* PARTNERSHIP SECTIONS */
.profi-section {
  padding: 60px 0;
  /* border-top: 1px solid #eee; */
}

.profi-section:first-of-type {
  border-top: none;
}

.profi-section--alt {
  background: #fff;
}

.profi-section__heading {
  /* font-size: 28px; */
  font-weight: 700;
  /* margin-bottom: 40px; */
  margin-bottom: 60px;
  /* border-bottom: 1px solid #eee; */
}

.profi-section__inner {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.profi-section--img-right .profi-section__inner {
  flex-direction: row;
}

.profi-section--img-left .profi-section__inner {
  flex-direction: row;
}

.profi-section__img {
  flex-shrink: 0;
  width: 46%;
  /* border-radius: 8px; */
  overflow: hidden;
}

.profi-section__img img {
  width: 100%;
  display: block;
}

.profi-section__text {
  flex: 1;
}

.profi-section__text--first {
  order: -1;
}

.profi-section__title {
  font-weight: 700;
  margin-bottom: 24px;
  color: #141414;
}

.profi-section__text p {
  color: #545454;
  margin-bottom: 24px;
  line-height: 1.2;
}

.profi-section__text p:last-child {
  margin-bottom: 0;
}

/* FORM SECTION */
.profi-form-section {
  background: #eaeaee;
  padding: 60px 0;
  /* border-top: 1px solid #eee; */
}

.profi-form-section__container {
  display: grid;
  gap: 50px;
  align-items: flex-start;
  grid-template-columns: 1fr 1fr;
}

.profi-form-section__left {
  flex: 1;
  max-width: 810px;
  width: 100%;
}

.profi-form-section__title {
  margin-bottom: 8px;
  color: #141414;
}

.profi-form-section__subtitle {
  color: #312e2e;
  margin-bottom: 32px;
  line-height: 1.4;
}

.profi-form-section__img {
  flex-shrink: 0;
  width: 100%;
  max-width: 780px;
  /* border-radius: 8px; */
  overflow: hidden;
  height: 90%;
}

.profi-form-section__img img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* PROFI FORM */
.profi-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profi-form__field {
  margin-bottom: 16px;
}

.profi-form__input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  padding: 0 0px;
  background: #fff;
  transition: border-color 0.2s;
  height: 100%;
}

.profi-form__input-wrap:focus-within {
  border-color: var(--color-primary);
}

.profi-form__icon {
  margin-right: 10px;
  font-size: 14px;
  flex-shrink: 0;
  opacity: 0.5;
  margin-left: 16px;
}

.profi-form__input {
  width: 100%;
  border: none;
  outline: none;
  padding: 20px 24px;
  font-size: 14px;
  font-family: inherit;
  color: #747373;
  background: transparent;
}

.profi-form__input::placeholder {
  color: #747373;
}

.profi-form__input--error {
  color: #e53935;
}

.profi-form__input-wrap:has(.profi-form__input--error) {
  border-color: #e53935;
}

/* Phone country selector */
.profi-form__input-wrap--phone {
  gap: 0;
}

.profi-form__country-code {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  padding: 14px 8px 14px 0;
  cursor: pointer;
  font-family: inherit;
  color: #333;
  min-width: 80px;
  border-right: 1px solid #e0e0e0;
  margin-right: 12px;
  appearance: none;
}

.profi-form__input--phone {
  padding-left: 0;
}

/* Select */
.profi-form__select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 24px;
}

/* Checkbox */
.profi-form__field--checkbox {
  margin-bottom: 24px;
}

.profi-form__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.profi-form__checkbox {
  display: none;
}

.profi-form__checkbox-custom {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1px solid #ccc;
  border-radius: 3px;
  position: relative;
  margin-top: 2px;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.profi-form__checkbox:checked+.profi-form__checkbox-custom {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.profi-form__checkbox:checked+.profi-form__checkbox-custom::after {
  content: "✓";
  position: absolute;
  top: -1px;
  left: 3px;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}

.profi-form__checkbox-text {
  line-height: 1.2;
  color: #747373;
}

.profi-form__checkbox-text a {
  /* color: var(--color-primary); */
  text-decoration: underline;
}

/* Errors */
.profi-form__error {
  display: block;
  font-size: 12px;
  color: #e53935;
  margin-top: 4px;
  min-height: 0;
}

.profi-form__submit {
  margin-top: 8px;
  width: fit-content;
  padding: 14px 40px;
}

/* RESPONSIVE PROFI */
@media (max-width: 1199px) {
  .profi-hero {
    padding: 40px 0 40px;
    margin-bottom: 40px;
    max-height: 385px;
  }

  .profi-hero__container {
    padding-top: 0;
    padding-bottom: 0;
    min-height: auto;
  }

  .profi-hero__content {
    max-width: 948px;
    padding-bottom: 0px;
  }

  .profi-section {
    padding: 40px 0;
  }

  .profi-hero__image {
    width: 360px;
  }

  .profi-section__img {
    height: -webkit-fill-available;
  }

  .profi-section__img img {
    width: 100%;
    display: block;
    height: 100%;
    object-fit: cover;
  }

  .profi-form-section__img {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .profi-section__text p {
    font-size: var(--body-m-size);
  }

  .profi-hero__content {
    max-width: 563px;
    padding-bottom: 0px;
  }
}

@media (max-width: 1023px) {
  .profi-hero__container {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 0;
  }

  .profi-hero__content {
    padding-bottom: 0;
    max-width: 474px;
  }

  .profi-hero__image {
    width: 100%;
    align-self: auto;
  }

  .profi-section__inner {
    flex-direction: column !important;
    gap: 32px;
  }

  .profi-section__img {
    width: 100%;
  }

  .profi-section__text--first {
    order: 0;
  }

  .profi-form-section__container {
    flex-direction: column;
    gap: 40px;
    display: flex;
  }

  .profi-form__field {
    margin-bottom: 0px;
    width: 49%;
  }

  .profi-form__field--checkbox {
    margin-bottom: 12px;
    width: 100% !important;
  }

  .profi-form {
    gap: 12px;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .profi-form-fio__field {
    display: flex;
    gap: 12px;
  }

  .profi-form__checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
  }

  .profi-form__submit {
    margin-top: 8px;
    width: fit-content;
    padding: 17px 40px;
    font-size: var(--body-l-size);
  }
}

@media (max-width: 767px) {
  .profi-hero__title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .profi-hero__subtitle {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .profi-section {
    padding: 20px 0;
  }

  .profi-section__heading {
    margin-bottom: 16px;
  }

  .profi-form-section {
    padding: 20px 0;
    margin-bottom: 40px;
  }

  .profi-hero__content {
    padding-right: 16px;
  }

  .profi-form__submit {
    width: 100%;
  }

  .profi-hero {
    padding: 32px 0 32px;
    margin-bottom: 20px;
    max-height: none;
  }

  .profi-form-section__container {
    flex-direction: column;
    gap: 16px;
    display: grid;
    grid-template-columns: 1fr;
  }

  .profi-form-fio__field {
    display: flex;
    gap: 8px;
    flex-direction: column;
    width: 100%;
  }

  .profi-form__field {
    margin-bottom: 0px;
    width: 100%;
  }

  .profi-form__input {
    width: 100%;
    border: none;
    outline: none;
    padding: 14px 24px;
  }

  .profi-form__icon+.profi-form__input {
    padding: 14px 24px;
    padding-left: 0;
  }

  .profi-form__submit {
    width: 100%;
    max-width: 200px;
    font-size: var(--body-m-size);
    display: flex;
    margin: 0 auto;
    padding: 13px 40px;
  }

  .profi-form__country-code {
    min-width: 44px;
  }

  .profi-form__input-wrap #pf-phone {
    padding: 14px 24px;
    padding-left: 0;
  }
}

/* ========================================================
   WHERE TO BUY PAGE
   ======================================================== */
.wtb-page {
  padding: 0 0 80px;
}

.wtb-title {
  margin-bottom: 40px;
  padding-top: 40px;
  color: #141414;
}

/* FILTERS */
.wtb-filters {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
  max-width: 980px;
}

.wtb-filter-item {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.wtb-filter-item--city {
  position: relative;
}

.wtb-select,
.wtb-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 4px;
  color: #747373;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  font-family: inherit;
  background: #eaeaee;
  border: 1px solid #eaeaee;
}

.wtb-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.wtb-select:focus,
.wtb-input:focus {
  border-color: var(--color-primary);
}

.wtb-search-btn {
  flex-shrink: 0;
  padding: 14px 40px;
  white-space: nowrap;
}

/* AUTOCOMPLETE */
.wtb-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 4px 4px;
  z-index: 100;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: none;
  max-height: 240px;
  overflow-y: auto;
}

.wtb-autocomplete__item {
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}

.wtb-autocomplete__item:hover {
  background: #f5f5f5;
  color: var(--color-primary);
}

/* MAP + STORES */
.wtb-content {
  display: grid;
  gap: 48px;
  align-items: flex-start;
  grid-template-columns: 1.446fr 1fr;
}

.wtb-map {
  flex: 1;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  min-height: 511px;
  background: #e8e8e8;
}

.wtb-map__placeholder {
  width: 100%;
  height: 511px;
}

.wtb-stores {
  flex-shrink: 0;
}

.wtb-stores__title {
  margin-bottom: 28px;
  color: #141414;
}

.wtb-stores__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 439px;
  overflow: auto;
}

/* STORE CARD */
.wtb-store-card {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.wtb-store-card:first-child {
  padding-top: 0;
}

.wtb-store-card__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.wtb-store-card__row:last-child {
  margin-bottom: 0;
}

.wtb-store-card__icon {
  flex-shrink: 0;
  line-height: 1.5;
  width: 20px;
  text-align: center;
}

.wtb-store-card__text {
  line-height: 1.5;
  color: #545454;
}

.wtb-store-card__link {
  color: #545454;
  text-decoration: none;
  transition: color 0.2s;
}

.wtb-store-card__link:hover {
  color: var(--color-primary);
}

.wtb-store-card__link--green {
  color: var(--color-primary);
  text-decoration: underline;
}

/* EMPTY STATE */
.wtb-stores__empty {
  padding: 40px 0;
  text-align: center;
}

.wtb-stores__empty p {
  color: #999;
}

/* RESPONSIVE WHERE TO BUY */
@media (max-width: 1024px) {

  .wtb-store-card__text,
  .wtb-store-card__row a {
    font-size: 16px;
  }

  .wtb-content {
    flex-direction: column;
  }

  .wtb-stores {
    width: 100%;
  }

  .wtb-map {
    min-height: 350px;
  }
}

@media (max-width: 767px) {

  .wtb-store-card__text,
  .wtb-store-card__row a {
    font-size: 14px;
  }

  .wtb-filters {
    flex-direction: column;
    gap: 16px;
  }

  .wtb-filter-item {
    min-width: 100%;
  }

  .wtb-search-btn {
    width: 100%;
  }

  .wtb-title {
    font-size: 28px;
    padding-top: 24px;
  }

  .wtb-map {
    min-height: 280px;
  }

  .wtb-map__placeholder {
    height: 280px;
  }

  .wtb-content {
    flex-direction: column;
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   CERTIFICATES PAGE
   ======================================================== */
.certs-page {
  padding: 0 0 80px;
}

.certs-page__title {
  padding-top: 120px;
  margin-bottom: 50px;
}

.certs-page__subtitle {
  color: #666;
  margin-bottom: 48px;
  max-width: 600px;
}

.certs-section {
  margin-bottom: 50px;
}

.certs-section__title {
  margin-bottom: 32px;
  line-height: 1.4;
}

/* GRID — desktop */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 24px;
}

/* CARD */
.certs-card {
  display: block;
  text-decoration: none;
  color: inherit;
  /* border: 1px solid #eee; */
  /* border-radius: 4px; */
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
  background: #fff;
}

.certs-card:hover .certs-card__label {
  color: var(--color-primary) !important;
  /* Если хотите добавить эффекты для всей карточки: */
  /* transform: translateY(-2px); */
}

/* Опционально: плавный переход цвета */
.certs-card__label {
  transition: color 0.3s ease;
}

.certs-card img {
  width: 100%;
  aspect-ratio: 212/287;
  object-fit: cover;
  display: block;
  border: 0.54px solid #eaeaee;
}

.certs-card img:hover {
  border: 0.64px solid #048e3d;
}

.certs-card__label {
  display: block;
  padding: 8px 12px 8px 0;
  /* font-size: 11px; */
  line-height: 1.2;
  color: #141414;
  /* border-top: 1px solid #eee; */
}

/* SLIDER NAV — hidden on desktop */
.certs-slider-nav {
  display: none;
}

/* ==================== MOBILE SLIDER ==================== */
@media (max-width: 767px) {
  .certs-page__title {
    font-size: 28px;
    padding-top: 24px;
  }

  .certs-section {
    margin-bottom: 48px;
  }

  .certs-section__title {
    font-size: 18px;
  }

  /* Turn grid into slider */
  .certs-grid {
    display: flex;
    overflow: hidden;
    transition: transform 0.35s ease;
  }

  .certs-slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 0 8px;
    box-sizing: border-box;
  }

  /* Show slider nav */
  .certs-slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
  }

  .certs-slider-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
      border-color 0.2s,
      color 0.2s;
    color: #333;
  }

  .certs-slider-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
  }

  .certs-slider-dots {
    display: flex;
    gap: 8px;
  }

  .certs-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.2s;
  }

  .certs-slider-dot--active {
    background: var(--color-primary);
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .certs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1023px) and (min-width: 768px) {
  .certs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================================
   CONTACTS PAGE
   ======================================================== */
.contacts-page {
  padding: 0 0 80px;
}

/* TOP: MAP + FORM side by side */
.contacts-top {
  display: flex;
  gap: 48px;
  /* align-items: flex-start; */
  padding-top: 40px;
  /* margin-bottom: 60px; */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.contact-map-adress {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.separator {
  border: none;
  /* Убираем стандартную рамку браузера */
  border-top: 1px solid #e1e1e1;
  /* Тонкая линия серого цвета */
  margin: 32px 0 24px 0;
  /* Отступы сверху и снизу от линии */
  width: 100%;
  /* Линия на всю ширину */
}

.contacts-map {
  flex: 1;
  min-width: 0;
  min-height: 400px;
  border-radius: 8px;
  overflow: hidden;
  background: #e8e8e8;
}

.contacts-form-wrap {
  width: 100%;
  max-width: 852px;
  flex-shrink: 0;
}

/* FORM HEADING */
.contacts-form__heading {
  text-transform: uppercase;
  margin-bottom: 32px;
  color: #141414;
}

/* FORM FIELDS */
.contacts-form__field {
  margin-bottom: 16px;
}

.contacts-form__input-wrap {
  display: flex;
  align-items: center;
  border-radius: 12px;
  /* padding: 0 16px; */
  background: #fff;
  transition: border-color 0.2s;
  border: 1px solid #e1e1e1;
}

.contacts-form__input-wrap:focus-within {
  border-color: var(--color-primary);
}

.contacts-form__icon {
  margin-right: 10px;
  margin-left: 10px;
  font-size: 14px;
  flex-shrink: 0;
  opacity: 0.5;
}

.contacts-form__input {
  width: 100%;
  border: none;
  outline: none;
  padding: 18.5px 16px;
  font-family: inherit;
  color: #747373;
  background: transparent;
}

.contacts-form__input::placeholder {
  color: #747373;
}

.contacts-form__input--error {
  border-color: #e53935 !important;
}

.contacts-form__input-wrap:has(.contacts-form__input--error) {
  border-color: #e53935;
}

/* Phone with country select */
.contacts-form__input-wrap--phone {
  gap: 0;
}

.contacts-form__country-code {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  padding: 14px 8px 14px 0;
  cursor: pointer;
  font-family: inherit;
  color: #747373;
  min-width: 80px;
  border-right: 1px solid #e0e0e0;
  margin-right: 12px;
  appearance: none;
}

.contacts-form__input--phone {
  padding-left: 0;
}

/* Select (inquiry type) */
.contacts-form__select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='6' viewBox='0 0 12 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.6633 0.279313C11.45 0.100415 11.1615 0 10.8607 0C10.56 0 10.2715 0.100415 10.0582 0.279313L5.97154 3.67957L1.94179 0.279313C1.72851 0.100415 1.43999 0 1.13926 0C0.838521 0 0.550005 0.100415 0.336721 0.279313C0.230026 0.368606 0.145339 0.474841 0.0875465 0.59189C0.0297541 0.708939 0 0.834485 0 0.961285C0 1.08809 0.0297541 1.21363 0.0875465 1.33068C0.145339 1.44773 0.230026 1.55396 0.336721 1.64326L5.16331 5.71588C5.26914 5.80591 5.39504 5.87736 5.53376 5.92613C5.67248 5.97489 5.82127 6 5.97154 6C6.12182 6 6.2706 5.97489 6.40932 5.92613C6.54804 5.87736 6.67394 5.80591 6.77977 5.71588L11.6633 1.64326C11.77 1.55396 11.8547 1.44773 11.9125 1.33068C11.9702 1.21363 12 1.08809 12 0.961285C12 0.834485 11.9702 0.708939 11.9125 0.59189C11.8547 0.474841 11.77 0.368606 11.6633 0.279313Z' fill='%23B3B3B3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0 center;
  padding-right: 24px;
  background-position-x: right;
  margin-right: 12px;
}

/* Textarea */
.contacts-form__textarea {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 14px 16px;
  resize: vertical;
  min-height: 100px;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.contacts-form__textarea:focus {
  border-color: var(--color-primary);
}

/* File upload */
.contacts-form__file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
  /* background: #fafafa; */
  padding-top: 12px;
  padding-right: 24px;
  padding-bottom: 12px;
  padding-left: 24px;
  gap: 12px;
  opacity: 1;
  border-radius: 16px;
  background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='12' ry='12' stroke='%23333' stroke-width='1' stroke-dasharray='8%2c 12' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
}

.contacts-form__file-label:hover {
  border-color: var(--color-primary);
}

.contacts-form__file-input {
  display: none;
}

.contacts-form__file-text {
  color: #747373;
}

.contacts-form__file-icon {
  font-size: 18px;
}

.contacts-form__file-hint {
  display: block;
  margin-top: 8px;
  color: #545454;
}

/* Required note */
.contacts-form__required-note {
  color: #545454;
  margin-bottom: 16px;
}

/* Checkbox */
.contacts-form__field--checkbox {
  margin-bottom: 40px;
}

.contacts-form__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.contacts-form__checkbox {
  display: none;
}

.contacts-form__checkbox-custom {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1px solid #ccc;
  border-radius: 3px;
  position: relative;
  margin-top: 2px;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.contacts-form__checkbox:checked+.contacts-form__checkbox-custom {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.contacts-form__checkbox:checked+.contacts-form__checkbox-custom::after {
  content: "✓";
  position: absolute;
  top: -1px;
  left: 3px;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}

.contacts-form__checkbox-text {
  line-height: 1.2;
  color: #747373;
}

.contacts-form__checkbox-text a {
  /* color: var(--color-primary); */
  text-decoration: underline;
}

/* Errors */
.contacts-form__error {
  display: block;
  font-size: 12px;
  color: #e53935;
  margin-top: 4px;
  min-height: 0;
}

/* Submit */
.contacts-form__submit {
  padding: 14px 48px;
  /* font-size: 14px; */
}

/* CONTACT INFO SECTION */
.contacts-info {
  margin-top: 0px;
}

.contacts-info__title {
  color: #141414;
  margin-bottom: 24px;
  font-size: var(--h1-contact-size);
}

.contacts-info__grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contacts-info__row {
  display: flex;
  gap: 12px;
}

.contacts-info__label {
  color: #747373;
  min-width: 80px;
  flex-shrink: 0;
}

.contacts-info__value {
  color: #545454;
}

.contacts-info__value--link {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 700;
}

/* ==================== RESPONSIVE CONTACTS ==================== */
@media (max-width: 1024px) {
  .contacts-top {
    gap: 24px;
  }

  .contact-map-adress {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    display: grid;
    align-content: start;
  }

  .contacts-map {
    flex: 1;
    min-width: 0;
    aspect-ratio: 1;
  }
}

@media (max-width: 1023px) {
  .contacts-top {
    flex-direction: column;
    gap: 40px;
  }

  .contacts-top {
    grid-template-columns: repeat(1, 1fr);
  }

  .contact-map-adress {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
  }

  .contacts-form-wrap {
    width: 100%;
  }

  .contacts-map {
    min-height: 350px;
  }

  .separator {
    border: 1px solid #e1e1e1;
    margin: 0px 0 0px 0;
    width: 0px;
    height: 100%;
  }

  .custom-select__trigger {
    padding: 14px 20px;
  }
}

@media (max-width: 768px) {
  .contact-map-adress {
    display: grid;
    grid-template-columns: 352fr 1fr 352fr;
    gap: 16px;
  }

  .contacts-map {
    flex: 1;
    min-width: 0;
    aspect-ratio: 352 / 271;
    min-height: 271px;
  }

  .separator {
    border: 1px solid #e1e1e1;
    margin: 0px 0 0px 0;
    width: 0px;
    height: 100%;
    margin-left: 32px;
  }

  .wtb-content {
    grid-template-columns: 1fr;
    /* display: flex;
    width: 100%; */
  }
}

@media (max-width: 767px) {
  .wtb-store-card__text {
    font-size: 14px;
  }

  .wtb-store-card {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
  }

  .contacts-top {
    padding-top: 24px;
    margin-bottom: 40px;
  }

  .contact-map-adress {
    display: flex;
    gap: 16px;
    flex-direction: column-reverse;
  }

  .contacts-page {
    padding: 0 0 0px;
  }

  .separator {
    border: none;
    border-top: 1px solid #e1e1e1;
    margin: 0px 0 0px 0;
    width: 0px;
    height: 100%;
  }

  .contacts-form__input {
    padding: 13.5px 12px;
    font-size: var(--body-m-size);
  }

  .contacts-map {
    min-height: 300px;
    aspect-ratio: 296 / 300;
  }

  .contacts-info__title {
    font-size: 26px;
    margin-bottom: 16px;
  }

  .contacts-form__heading {
    text-transform: uppercase;
    margin-bottom: 16px;
  }

  .contacts-top {
    flex-direction: column;
    gap: 16px;
  }

  .contacts-form__submit {
    width: 100%;
  }
}

/* ========== SEARCH MODAL ========== */
.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-white);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.search-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.search-modal__container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.search-modal__header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  height: 64px;
}

.search-modal__icon {
  width: 64px;
  height: 64px;
  background-color: var(--color-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.search-modal__input {
  flex: 1;
  height: 100%;
  padding: 0 24px;
  font-size: var(--body-l-size);
  color: var(--color-text-main);
  border: none;
  outline: none;
  background: transparent;
}

.search-modal__close {
  width: 64px;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  cursor: pointer;
  color: var(--color-text-muted);
  background: none;
  border: none;
  flex-shrink: 0;
  transition: color 0.2s;
}

.search-modal__close:hover {
  color: var(--color-primary);
}

.search-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 48px 64px;
}

.search-modal__results {
  display: flex;
  gap: 80px;
  max-width: 1200px;
}

.search-group {
  flex: 1;
  max-width: 400px;
}

.search-group__label {
  font-size: var(--h4-size);
  color: #a0a0a0;
  margin-bottom: 32px;
  font-weight: 500;
}

.search-group__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-group__list li {
  margin-bottom: 20px;
}

.search-group__list a {
  font-size: var(--body-l-size);
  color: var(--color-text-main);
  text-decoration: none;
  transition: color 0.2s;
  display: block;
}

.search-group__list a:hover {
  color: var(--color-primary);
}

.search-group__list .highlight {
  color: var(--color-primary);
}

.show-all-li {
  margin-top: 32px;
}

.show-all-link {
  color: #a0a0a0 !important;
  font-size: var(--body-m-size) !important;
  text-decoration: none;
  display: inline-block;
  padding-left: 12px;
}

.show-all-link:hover {
  color: var(--color-primary) !important;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .search-modal__body {
    padding: 24px;
  }

  .search-modal__results {
    flex-direction: column;
    gap: 32px;
  }

  .search-modal__header {
    height: 56px;
  }

  .search-modal__icon,
  .search-modal__close {
    width: 56px;
    height: 56px;
  }

  .search-modal__input {
    font-size: 16px;
    padding: 0 16px;
  }
}

/* ========== SEARCH PAGE ========== */
.page-search {
  min-height: calc(100vh - 200px);
}

.search-banner {
  background-color: #f8f8f8;
  padding: 40px 0;
  margin-bottom: 40px;
}

.search-banner__title {
  /* font-size: 32px; */
  font-weight: 500;
  text-transform: uppercase;
  margin: 0;
}

.search-form-wrapper {
  margin-bottom: 48px;
}

.search-form {
  display: flex;
  height: 56px;
  max-width: 900px;
  margin-bottom: 16px;
}

.search-form__input {
  flex: 1;
  background-color: #f8f8f8;
  padding: 0 24px;
  font-size: var(--body-l-size);
  color: var(--color-text-main);
  outline: none;
  border: 1px solid #e0e0e0;
}

.search-form__input:focus-within {
  border-color: var(--color-primary);
}

.search-form__submit {
  width: 56px;
  background-color: var(--color-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-form__submit:hover {
  background-color: var(--color-primary-hover);
}

.search-form__submit img {
  width: 24px;
  height: 24px;
}

.search-meta {
  font-size: var(--body-l-size);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.search-results-group {
  margin-bottom: 56px;
}

.search-results-group__title {
  /* font-size: 24px; */
  margin-bottom: 24px;
  font-weight: 500;
}

.search-result-item {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  max-width: 961px;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item__title {
  margin-bottom: 12px;
}

.search-result-item__title a {
  /* font-size: 18px; */
  color: var(--color-text-main);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}

.search-result-item__title a:hover {
  color: var(--color-primary);
}

.search-result-item__title .highlight {
  color: var(--color-primary);
}

.search-result-item__desc {
  font-size: var(--body-l-size);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Модальное окно Lightbox */
.custom-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.custom-lightbox.active {
  display: flex;
}

.custom-lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  height: 80%;
}

.custom-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Кнопки управления */
.custom-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  font-family: sans-serif;
  text-transform: uppercase;
}

.custom-lightbox-prev,
.custom-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  color: #333;
  cursor: pointer;
  user-select: none;
  padding: 20px;
}

.custom-lightbox-prev {
  left: -50px;
}

.custom-lightbox-next {
  right: -50px;
}

/* Адаптив для кнопок внутри модалки */
@media (max-width: 768px) {
  .custom-lightbox-prev {
    left: 0px;
  }

  .custom-lightbox-next {
    right: 0px;
  }
}

/* Base style for the SVG path, ensuring a smooth color transition */
.icon-favorit svg path {
  transition:
    stroke 0.3s ease,
    fill 0.3s ease;
}

/* 1. HOVER STATE: Green outline when hovering over the button */
.btn-fav-heart:hover .icon-favorit svg path,
.btn-fav-heart.is-hovered .icon-favorit svg path {
  /* Class forced for testing */
  stroke: #048e3d;
}

/* Optional: Show a tooltip on hover. Requires specific HTML/JS */
/* See diagram for visualization of tooltips 'В избранное' */

/* 2. ACTIVE (CLICK) STATE: Interaction feedback with background color change */
.btn-fav-heart:active {
  background-color: #e6f4ea;
  /* Very light green feedback */
}

/* 3. SELECTED STATE: Persistent solid green fill after a successful click */
/* Note: The final color state must be toggled with JavaScript by adding a class. */
.btn-fav-heart.is-selected .icon-favorit svg path {
  fill: #009a44;
  /* Change from transparent fill to solid green fill */
  stroke: #009a44;
  /* Match outline to fill */
}

/* ========================================================================= */
/* CITY POPUP LOGIC */
/* ========================================================================= */
.city-popup {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 15px;
  background-color: var(--color-white);
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 24px;
  width: 320px;
  z-index: 1000;
  color: var(--color-text-main);
  cursor: default;
}

.city-popup.is-open {
  display: block;
}

.city-popup::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 0 6px 6px 6px;
  border-style: solid;
  border-color: transparent transparent var(--color-white) transparent;
}

.city-popup__header {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.city-popup__search-wrap {
  margin-bottom: 20px;
}

.city-popup__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 14px;
  color: var(--color-text-main);
}

.city-popup__input::placeholder {
  color: var(--color-text-muted);
}

.city-popup__list {
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 20px;
  padding-right: 5px;
}

/* Scrollbar styles for list */
.city-popup__list::-webkit-scrollbar {
  width: 4px;
}

.city-popup__list::-webkit-scrollbar-track {
  background: var(--color-bg-light);
}

.city-popup__list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.city-popup__list li {
  padding: 5px 0;
  font-size: var(--body-m-size);
  cursor: pointer;
  transition: color 0.2s;
  font-weight: 400;
}

.city-popup__list li:hover {
  color: var(--color-primary);
}

.city-popup__btn {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--color-text-main);
  color: var(--color-text-main);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

.city-popup__btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* Mobile specific popup */
@media (max-width: 1023px) {
  .city-popup--mobile {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
    max-width: 360px;
    z-index: 10000;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    padding: 24px;
    margin-top: 0;
    border-top: none;
    border-radius: 8px;
  }

  .city-popup--mobile::before {
    display: none;
  }
}

.pic {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.pic::before,
.pic::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  pointer-events: none;
  transition: transform .35s ease, opacity .35s ease;
  transform-origin: center;
}

.pic::before {
  width: 120px;
  height: 120px;
  margin-left: -60px;
  margin-top: -60px;
  background: var(--color-text-main);
  mask: url(../images/focus.svg) no-repeat center / contain;
  -webkit-mask: url(../images/focus.svg) no-repeat center / contain;
  opacity: .0;
  transform: scale(1.8);
}

.pic::after {
  width: 120px;
  height: 120px;
  margin-left: -60px;
  margin-top: -60px;
  background: var(--color-bg-light);
  mask: url(../images/focus.svg) no-repeat center / contain;
  -webkit-mask: url(../images/focus.svg) no-repeat center / contain;
  opacity: 0;
  transform: scale(.4);
}

.pic:hover::before {
  opacity: 0;
  transform: scale(2.6);
}

.pic:hover::after {
  opacity: 1;
  transform: scale(1);
}