/* Normalize CSS */
* {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
  /* outline: orangered 1px solid; */
}

ul,
ol {
  list-style: none;
}

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

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

:root {
  --accent-color: #8e0303;
  /* Пример акцентного цвета */
}

/* Шрифты */
@font-face {
  font-family: "Montserrat";
  src:
    url("/fonts/Montserrat-Regular.woff2") format("woff2"),
    url("/fonts/Montserrat-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src:
    url("/fonts/Montserrat-SemiBold.woff2") format("woff2"),
    url("/fonts/Montserrat-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ysabeauinfant";
  src:
    url("/fonts/YsabeauInfant-Regular.woff2") format("woff2"),
    url("/fonts/YsabeauInfant-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ysabeauinfant";
  src:
    url("/fonts/YsabeauInfant-SemiBold.woff2") format("woff2"),
    url("/fonts/YsabeauInfant-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* HTML и Body */
html {
  scroll-behavior: smooth;
}

body {
  max-width: 1440px;
  margin: 0 auto;
  line-height: 1.1;
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  color: #000;
  background-color: rgba(246, 246, 246, 1);
  /* Добавляем отступ сверху для фиксированного header */
  padding-top: 175px;
  /* Подстройте под высоту вашего header */
}

/* Header - исправленная версия */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1440px;
  z-index: 1001;
  background-color: rgba(246, 246, 246, 1);
  padding: 25px 50px 5px 50px;
  /* Добавляем вертикальный padding */
  font-family: "Ysabeauinfant", sans-serif;
  font-weight: 400;
  color: #000;
  font-size: 1.1165rem;
}

.header__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1340px;
  /* Учитываем внутренние отступы */
  margin: 0 auto;
  background-color: rgba(246, 246, 246, 1);
}

.header__logo {
  width: 210px;
}

.header__burger {
  display: none;
}

.header__nav ul {
  display: flex;
  gap: 42.5px;
  align-items: center;
}

.header-button {
  color: #fff;
  padding: 5px 10px;
  border: 1px solid var(--accent-color);
  background-color: var(--accent-color);
  border-radius: 6px;
  transition:
    color 0.3s ease,
    background-color 0.3s ease;
  box-shadow: none;
  text-align: center;
}
.header-button:hover {
  color: var(--accent-color);
  background-color: rgba(246, 246, 246, 1);
}
.footer {
  max-width: 1440px;
  margin: 100px auto 25px auto;
  padding: 0 50px;
  font-family: "Ysabeauinfant", sans-serif;
  font-weight: 400;
  color: #000;
  font-size: 1.1165rem;
}

.footer__wrapper {
  display: flex;
  align-items: flex-start;
}

.footer__outline {
  display: flex;
  flex: 1;
  flex-direction: column;
  border-top: var(--accent-color) 1px solid;
}

.footer__logo {
  padding-top: 32px;
  min-width: 210px;
}

.footer__wrap-nav-contacts {
  display: flex;
  flex-direction: column;
  margin-left: 131px;
  margin-top: 32px;
  gap: 25px;
  max-width: 725px;
}

.footer__nav ul {
  display: flex;
  gap: 42.5px;
  align-items: center;
}

.footer__contact {
  display: flex;
  justify-content: space-between;
  font-family: "Ysabeauinfant", sans-serif;
  font-weight: 600;
  font-size: 2.375rem;
}

.footer__legal {
  display: flex;
  justify-content: space-between;

  font-family: "Ysabeauinfant", sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  margin-top: 50px;
  margin-bottom: 25px;
}

.footer__policies {
  display: flex;
  gap: 50px;
}

main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 50px;
}

.section__title {
  font-family: "Ysabeauinfant", sans-serif;
  font-weight: 600;
  font-size: 2.375rem;
  line-height: 1;
}

.section__description {
  margin-top: 15px;
  margin-bottom: 38px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.1;
}
.sidebar__second {
  display: block;
}
.sidebar__first {
  display: none;
}

.slash--accent {
  color: var(--accent-color);
  font-weight: 700;
}
.first-page_button {
  border: 1px solid var(--accent-color);
  border-radius: 6px;
  padding: 5px 10px;
  transition:
    color 0.3s ease,
    background-color 0.3s ease;
  box-shadow: none;
}
.first-page_button:hover {
  color: rgba(246, 246, 246, 1);
  background-color: var(--accent-color);
}
.first-page_svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  margin-left: 8px;
}
.first-page_svg path {
  transition: fill 0.3s ease; /* Плавное изменение цвета */
}
.first-page_button:hover .first-page_svg {
  transform: rotate(45deg);
}
.first-page_button:hover path {
  fill: rgba(246, 246, 246, 1);
}
/* .first-page_button.arrow-link:hover {
  color: (246, 246, 246, 1);
} */

/* страница о компании */
.about__wrapper {
  display: flex;
}
.about__description {
  width: 50%;
  padding-right: 28px;
}
.about__description--press {
  padding-left: 28px;
  padding-right: 0;
  width: 50%;
}
.production--press {
  margin: 25px 0;
}
.about__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: var(--accent-color) 1px solid;
  padding-bottom: 15px;
  height: 100%;
  flex-grow: 1;
}
.about__content h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.1;
}
.about__image {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.production__image--press {
  display: flex;
  gap: 25px;
  /* height: 100%;  */
}

.production__image--press img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex: 1;
}
/* Секция оборудования */
.hardware {
  height: 241px;
  background-color: #ececec;
  margin: 100px -50px;
}

.hardware__discription {
  display: flex;
  gap: 25px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  font-family: "Ysabeauinfant", sans-serif;
  font-weight: 600;
  font-size: 2.375rem;
  line-height: 1;
  color: #000;
}

.hardware__discription h2 {
  display: flex;
  /* Делаем заголовок флекс-контейнером */
  align-items: center;
}

/* Секция контакты */
.contacts-section {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
}
.contacts__smm {
  display: flex;
  align-items: center;
  gap: 34px;
}
.contacts-section a {
  max-width: 494px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.1;
}

.contacts__wrapper {
  min-height: 413px;
  background-image: url("/assets/background-for-contacts.png");
  background-size: cover;
  /* Растягивает изображение на всю область */
  background-position: center;
  /* Центрирует изображение */
  background-repeat: no-repeat;
  /* Отключает повторение */
  padding-top: 15px;
}

.contacts__info {
  display: flex;
  justify-content: space-between;
  padding: 5px 15px;
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(20px);
  margin-top: 15px;
}

.contacts__icons {
  display: flex;
  gap: 5px;
}

.contacts__block h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.1;
  margin-bottom: 5px;
}

.contacts__block p {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.1;
}

.contacts__icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
}

/* Хлебные крошки */
.breadcrumbs {
  font-family: "Ysabeauinfant", sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1;
  margin-bottom: 5px;
}

.breadcrumbs .breadcrumbs__link,
.breadcrumbs__separator {
  opacity: 0.5;
}

/*Проекты*/
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 колонки равной ширины */
  grid-gap: 25px;
}

.projects__grid h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.1;
  margin-bottom: 15px;
  margin-top: 11px;
}

.projects__grid p {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.1;
}

.projects__grid p:not(:last-child) {
  margin-bottom: 7px;
}

.main__title {
  font-family: "Ysabeauinfant", sans-serif;
  font-weight: 600;
  font-size: 2.375rem;
  line-height: 1;
  margin-bottom: 25px;
}

/* Проекты Типы наших решений */
.solutions {
  margin-top: 100px;
}

.solutions__wrapper {
  margin: 0 auto;
}

.solutions h2 {
  font-family: "Ysabeauinfant", sans-serif;
  font-weight: 600;
  font-size: 2.375rem;
  line-height: 1;
  margin-bottom: 25px;
}

.solutions__inner {
  display: flex;
  flex-wrap: wrap;
}

.solutions__accordion {
  flex: 1 1 50%;
  display: flex;
}

.solutions__image {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 345px;
}

.solutions__image img {
  width: 100%;
  height: auto;
  max-height: 345px;
  object-fit: cover;
}

.solutions__content {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  margin-left: 54px;
  align-self: center;
}

.solutions__item {
  overflow: hidden;
  border-bottom: #d9d9d9 1px solid;
  padding-bottom: 13px;
  margin-bottom: 25px;
}

.solutions__title {
  display: flex;
  align-items: center;
  cursor: pointer;
  justify-content: space-between;
  flex-grow: 1;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.solutions__arrow {
  width: 26px;
  height: 26px;
  transition: transform 0.3s ease;
}

.solutions__arrow.active,
.solutions__title.active .solutions__arrow {
  transform: rotate(180deg);
}

.solutions__body {
  display: none;
  width: 81%;
  margin-top: 5px;
}

.solutions__more {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  align-items: center;
  cursor: pointer;
  justify-content: space-between;
  font-family: "Ysabeauinfant", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.1;
  transition: all 0.3s ease;

  margin-top: 25px;
}

.solutions__more img {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  margin-left: 8px;
}

.solutions__more:hover img {
  transform: rotate(45deg);
  /* Поворот на 45 градусов при наведении */
}
/*  страница контакты   */
.contacts-section-for-page {
  margin-top: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.contacts-section-for-page a {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.1;
}
.contacts-section-for-page h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.1;
}
.contacts__image {
  width: 660px;
  height: auto;
  position: absolute;
  right: 0; /* Прижимаем к правой границе */
  bottom: -100px;
}
.contacts-section-for-page .contacts__title {
  margin-bottom: 40px;
}
.contacts__smm__wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
/* Page 404 */
.page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 100px auto;
  width: auto;
  max-width: 660px;
  text-align: center;
}
.page-404__title {
  font-family: "Ysabeauinfant", sans-serif;
  font-weight: 600;
  font-size: 2.375rem;
  line-height: 1;
  margin-bottom: 5px;
}
.page-404__text {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.1;
  margin-bottom: 25px;
}
/* страница Блог */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 колонки равной ширины */
  grid-gap: 25px;
}

.blog__grid h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.1;
  margin-bottom: 15px;
  margin-top: 11px;
}

.blog__grid .blog-item__text {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.1;
  margin-bottom: 15px;
}
/* Страница Что мы можем */
.roof__section {
  margin-top: 25px;
  scroll-margin-top: 135px;
}
.roof__section h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.1;
  margin-bottom: 15px;
}
.roof__section p {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.1;
  margin-bottom: 15px;
}
.roof__section a p {
  margin-bottom: 0;
}
.roof__section .about__content {
  justify-content: flex-start;
  padding-left: 217px;
  border: none;
}
.roof__nav ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.gallery-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
}

.gallery-images {
  position: relative;
  width: 100%;
  min-height: 437px; /* Минимальная высота */
}

.gallery-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  min-height: 300px; /* Гарантирует, что изображение будет видно */
  display: none;
  object-fit: cover;
}

.gallery-image.active {
  display: block;
}

.gallery-control {
  position: absolute;
  bottom: 30px;
  background: none;
  border: none;
  padding: 8px 10px;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease;
}

.gallery-control:hover {
  transform: scale(1.1);
}

.gallery-next {
  right: 46px;
}

.gallery-prev {
  right: 68px;
}
/* Главная страница */
.hero__sidebar {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.1;
  width: 210px;
  flex-shrink: 0;
  color: var(--accent-color);
}
.hero__losung {
  font-size: 0.875rem;
}
.hero__wrapper {
  display: flex;
}
.hero__description {
  position: relative;
  width: 100%;
  padding-bottom: 65px;
  margin-bottom: 25px;
}
.hero__description h1 {
  font-family: "Ysabeauinfant", sans-serif;
  font-weight: 600;
  font-size: 2.4375rem;
  line-height: 1.1;
  margin-top: 25px;
  margin-bottom: 50px;
  width: 950px;
}
.hero__description ul {
  display: flex; /* Делаем список flex-контейнером */
  flex-direction: column; /* Элементы остаются вертикальными */
  gap: 15px;
  margin-bottom: 50px;
}
.hero__drawing-half {
  position: absolute;
  right: -50px;
  bottom: -90px;
  max-height: 700px;
}
.hero__features {
  display: flex;
  justify-content: space-between;
  margin: 100px -50px;
  padding: 50px;
  background-color: #ececec;
}

.portfolio .arrow-link {
  margin-left: 210px;
  margin-top: 25px;
  margin-bottom: 5px;
}
.portfolio {
  position: relative;
  overflow: hidden;
  margin-top: 100px;
}

.portfolio__slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.portfolio__slider-wrapper {
  display: flex;
  gap: 25px;
}

.portfolio__item {
  flex: 1; /* Все элементы будут равномерно распределяться */
  min-width: 200px;
  box-sizing: border-box;
}
.portfolio__item h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.1;
  margin-bottom: 15px;
  margin-top: 11px;
}
.portfolio__item p {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.1;
  margin-bottom: 15px;
}

.portfolio__item p:not(:last-child) {
  margin-bottom: 7px;
}
.about__text {
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.main__page .about__description {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.about__block {
  display: flex;
}
.advantages {
  height: 241px;
  background-color: #ececec;
  margin: 100px -50px;
}
.advantages__wrapper {
  display: flex;
  justify-content: center; /* Центрирование по горизонтали */
  align-items: center; /* Центрирование по вертикали */
  height: 100%; /* Родительский контейнер должен занимать всю доступную высоту */
  width: 100%;
}
.advantages__list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 100%;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.1;
  color: #000;
  margin: auto 50px;
}
.advantages__item {
  display: flex;
  align-self: center;
  align-items: center;
}
.hero__features__list {
  width: 100%;
  margin: auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.1;
  color: #000;
}
.main-page__title {
  margin-left: 210px;
}
.solutions-main-page .solutions__wrapper {
  display: flex;
}
.blog__main-page {
  margin-top: 100px;
}
.blog__wrapper {
  display: flex;
  margin-bottom: 25px;
}
.contacts__main-page {
  margin-top: 100px;
}
.contacts__pre-title {
  display: flex;
  margin-bottom: 25px;
}
.contacts__main-page .contacts__wrapper {
  margin: 0 -50px;
}
.contacts__main-page .contacts__info {
  margin: 0 50px 0 260px;
}
/*  Окно заказа проекта*/
.form-section {
  width: 100%;
  height: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.form-section h2 {
  font-family: "Ysabeauinfant", sans-serif;
  font-weight: 600;
  font-size: 2.375rem;
  line-height: 1;
  margin-bottom: 10px;
}
.form-section p {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1;
  margin-bottom: 15px;
}
.form-section__outline {
  width: 100%;
  height: 1px;
  background-color: var(--accent-color);
  margin-bottom: 50px;
}
.form-section .contact-form {
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.form-section .contact-form input {
  border-bottom: 1px solid #29263a;
  border-radius: 0;
  width: 100%;
  padding-bottom: 10px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.1;
  color: #29263a;
  background: none;
}
.form-section .contact-form input::placeholder {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.1;
  color: #29263a;
  opacity: 0.5;
}
.form-section .contacts__block {
  border-bottom: 1px solid #29263a;
  width: 100%;
  padding-bottom: 10px;
}
.form-section .contacts__block h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.1;
  color: #29263a;
  opacity: 0.5;
}
.form-section button {
  width: 100%;
  padding: 15px;
  background-color: var(--accent-color);
  color: #fff;
  border: 1px solid var(--accent-color);
  border-radius: 6px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  cursor: pointer;
  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}
.form-section button:hover {
  background-color: #fff;
  color: var(--accent-color);
}
.form-section .form-footer .policy-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.1;
  color: #29263a;
  opacity: 0.5;
  margin-top: 5px;
}
.form-section label {
  display: none;
}
/* страницы Блогов - экспертных статей*/
.otzyvy h1 {
  width: 50%;
}
.otzyvy .about__content--right {
  margin-left: 55px;
}
.otzyvy .about__content--left {
  margin-right: 55px;
}
.otzyvy .about__content {
  display: flex;
  flex-direction: column;
  justify-content: start;
  height: 100%;
  border: none;
}
.otzyvy .about__content h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.1;
  margin-bottom: 25px;
}
.otzyvy .about__content p {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.1;
  margin-bottom: 15px;
}
.otzyvy__wrapper {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.noantiseptik .about-company {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.two-images .about__description {
  display: flex;
  gap: 40px;
  width: 100%;
}

.two-images .about__image {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  width: 130%;
}

.two-images .about__image img {
  width: calc(50% - 12.5px); /* Учитываем отступы */
  height: auto;
  object-fit: cover;
  flex: 0 0 calc(50% - 12.5px);
}
/* FAQ */
.faq-main-page .faq__wrapper {
  margin: 0 auto;
}

/* .faq-main-page h2 {
  font-family: "Ysabeauinfant", sans-serif;
  font-weight: 600;
  font-size: 2.375rem;
  line-height: 1;
  margin-bottom: 25px;
} */

.faq__inner {
  display: flex;
  flex-wrap: wrap;
}

.faq__accordion {
  flex: 1 1 50%;
  display: flex;
  gap: 54px; /* Расстояние между аккордеоном и картинкой */
}

/* Картинка справа */
.faq__image {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.faq__image img {
  width: 100%;
  height: auto;
  max-height: 345px;
  object-fit: cover;
  margin: auto;
}

/* Блок с вопросами */
.faq__content {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
}

/* Элемент вопроса */
.faq__item {
  overflow: hidden;
  border-bottom: #d9d9d9 1px solid;
  padding-bottom: 13px;
  margin-bottom: 25px;
}

/* Заголовок вопроса */
.faq__title {
  display: flex;
  align-items: center;
  cursor: pointer;
  justify-content: space-between;
  flex-grow: 1;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.1;
  letter-spacing: 0;
}

/* Тело ответа */
.faq__body {
  display: block; /* чтобы transition работал */
  overflow: hidden;
  max-height: 0; /* скрываем по умолчанию */
  padding-top: 0; /* скрываем внутренний отступ, пока закрыто */
  padding-bottom: 0;
  margin-top: 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.1;
  color: #4a4a4a;
  transition:
    max-height 0.35s ease-in-out,
    padding-top 0.35s ease-in-out,
    padding-bottom 0.35s ease-in-out;
}

/* Добавляем паддинг при открытии */
.faq__body[style*="maxHeight"],
.faq__body.opened {
  padding-top: 12px;
  padding-bottom: 16px;
}
/* Активная стрелка */
.faq__arrow {
  width: 26px;
  height: 26px;
  transition: transform 0.3s ease;
}
.faq__arrow.active,
.faq__title.active .faq__arrow {
  transform: rotate(180deg);
}
/* Ссылка "Подробнее" */
.faq__more {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  cursor: pointer;
  justify-content: space-between;
  font-family: "Ysabeauinfant", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.1;
  transition: all 0.3s ease;
  margin-top: 25px;
}
/* ============================================= Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 1002;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: 7px 4px 7px 0px rgba(0, 0, 0, 0.2);
  padding: 35px;
}

.modal__content {
  background-color: rgba(246, 246, 246, 1); /* 65% прозрачности */
  margin: auto;
  padding: 35px;
  position: relative;
  max-width: 696px;
  /* max-height: 610px; */
}
.modal__close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 53px;
  right: 35px;
  background: none;
  border: none;
}

/* Подчеркивание ссылок */
.simple-link {
  position: relative;
}
.simple-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}
.simple-link:hover::after {
  width: 100%;
}

/* Квадратики между словами */
.inline-square {
  display: inline-block;
  width: 3px;
  /* Ширина квадратика */
  height: 3px;
  /* Высота квадратика */
  background-color: var(--accent-color);
  /* Цвет квадратика */
  margin: auto 7.5px;
  vertical-align: middle;
}
.inline-square-big {
  display: inline-block;
  /* Делаем элемент строчным блоком */
  width: 12px;
  /* Ширина квадратика */
  height: 12px;
  /* Высота квадратика */
  background-color: var(--accent-color);
  /* Цвет квадратика */
  margin: auto 15px;
}
/* Стили для стрелки в ссылке */
.arrow-link {
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  width: fit-content;
  cursor: pointer;
  justify-content: space-between;
  font-family: "Ysabeauinfant", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.1;
  transition: all 0.3s ease;
}

.arrow-link img {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  margin-left: 8px;
}
.arrow-link:hover {
  font-weight: 700;
  /* Увеличиваем жирность текста при наведении */
}
.arrow-link:hover img {
  transform: rotate(45deg);
  /* Поворот на 45 градусов при наведении */
}
/* Hover для ссылок */
.roof__nav a {
  color: inherit; /* Изначальный цвет ссылки */
  text-decoration: none;
  transition: color 0.3s ease;
}

.roof__nav a:hover {
  color: var(--accent-color); /* Меняем цвет при наведении */
}

.roof__nav a:hover .slash--accent {
  visibility: hidden; /* Делаем слеш невидимым */
}
.blog-link {
  color: inherit; /* Изначальный цвет ссылки */
  text-decoration: none;
  transition: color 0.3s ease;
}
.blog-link:hover {
  color: var(--accent-color); /* Меняем цвет при наведении */
}
.desktop-only {
  display: block; /* Скрываем на мобильных */
}
.mobile-only {
  display: none; /* Показываем только на мобильных */
}
.semi-bold {
  font-weight: 400; /* Полужирный шрифт */
}
.checkbox {
  display: flex;
}
.checkbox a {
  color: var(--accent-color);
}
.form-section .checkbox input {
  width: 16px;
  height: 16px;
}
.checkbox label {
  margin-left: 26px;
}
/* Отметка при нажатии */
.checkbox input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--accent-color);
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.checkbox input[type="checkbox"]:checked {
  background-color: var(--accent-color); /* Красный фон при выборе */
  border-color: var(--accent-color); /* Меняем цвет рамки */
}

.checkbox input[type="checkbox"]:checked::before {
  content: "✔";
  font-size: 12px; /* Уменьшаем размер символа */
  color: white;
  position: absolute; /* Гарантированно центрируем */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.cookies-page .cookies-title {
  margin: 25px 0;
  font-size: large;
  font-weight: 600;
}
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(246, 246, 246, 1);
  padding: 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  display: none;
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  font-family: "Montserrat", sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #333;
}

.cookie-banner__inner p {
  margin-bottom: 10px;
}

.cookie-banner__link {
  display: inline-block;
  margin-bottom: 15px;
  color: var(--accent-color); /* Замените на ваш цвет */
  text-decoration: underline;
}

.cookie-banner__buttons .btn {
  font-size: 0.8125rem;
  padding: 10px 16px;
  cursor: pointer;
  margin-right: 10px;
}

.btn--primary {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
}

.btn--secondary {
  background-color: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}
.footer__contact a {
  color: inherit; /* Изначальный цвет ссылки */
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__contact a:hover {
  color: var(--accent-color); /* Меняем цвет при наведении */
}
/* ========================== Адаптивные стили ========================= */
@media screen and (max-width: 1160px) {
  .footer__contact {
    font-size: 1.5rem;
  }
  .footer__wrap-nav-contacts {
    margin-left: 30px;
  }
  .footer__nav ul {
    gap: 30px;
  }
  .contacts__info,
  .advantages__list,
  .hero__features__list {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки равной ширины */
    gap: 20px; /* Расстояние между колонками */
  }
  .hero__description h1 {
    width: 100%;
  }
  .header__nav ul {
    gap: 10px;
    padding: 0 10px;
  }
  .hero__drawing-half {
    opacity: 0.5;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 128px; /* Уменьшаем отступ сверху для мобильных */
  }

  .header {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    max-width: 100%;
    width: 100%;
    padding: 25px 15px 5px 15px;
    font-size: 1rem;
  }
  .header__logo {
    max-width: 142px;
  }
  .header__logo img {
    width: 100%;
  }
  .header__nav {
    display: none; /* Скрываем навигацию на мобильных */
  }
  .header__burger {
    display: block; /* Показываем бургер-меню */
    cursor: pointer;
  }

  .footer {
    max-width: none;
    margin: 50px auto 25px auto;
    padding: 0 15px;
    font-size: 0.75rem;
  }
  .footer__logo {
    padding-top: 19px;
    min-width: 142px;
  }
  .footer__contact {
    font-size: 0.75rem;
    gap: 20px;
    justify-content: flex-start;
  }
  .footer__wrap-nav-contacts {
    margin-left: 42px;
    margin-top: 32px;
  }
  .footer__nav ul {
    display: grid;
    grid-template-rows: repeat(3, auto); /* Максимум 3 строки */
    grid-template-columns: 1.5fr 1fr;
    grid-auto-flow: column;
    gap: 5px 15px;
    align-items: start;
  }
  .footer__nav ul li {
    width: fit-content;
  }
  .footer__nav {
    height: 49px;
    width: 246px;
  }
  .footer__legal {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
    gap: 5px;
    align-self: center;
  }
  .footer__policies {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
  main {
    padding: 0 15px;
  }
  .hero__wrapper {
    flex-direction: column;
  }
  .hero__sidebar {
    font-size: 0.75rem;
    margin-bottom: 5px;
  }
  .hero__losung {
    font-size: 0.75rem;
  }
  .hero__description {
    padding: 0;
    margin-bottom: 15px;
  }
  .hero__description h1 {
    font-size: 1.875rem;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 25px;
  }
  .hero__drawing-half {
    z-index: -1;
    opacity: 0.3;
    height: 400px;
    right: 0;
    bottom: 50px;
  }
  .hero__description ul {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .arrow-link {
    font-size: 0.875rem;
  }
  .arrow-link img {
    width: 14px;
    height: 14px;
  }
  .hero__features {
    display: flex;
    height: auto;
    padding: 7px 15px;
    margin: 50px -15px;
    font-size: 1rem;
  }
  .main-page__title {
    margin-left: 0;
  }
  .main__title {
    font-size: 1.68rem;
    margin-bottom: 25px;
  }
  .sidebar__second {
    display: none;
  }
  .sidebar__first {
    display: block;
  }
  .portfolio {
    margin-top: 50px;
  }
  .portfolio__slider-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .portfolio .arrow-link {
    margin-left: 0;
    margin-top: 15px;
    margin-bottom: 40px;
  }
  .about__block {
    display: flex;
    flex-direction: column-reverse;
  }
  .about__description {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
  }
  .about__description p:not(:last-child):not(a p) {
    margin-bottom: 15px;
  }
  .about__image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
  }
  .about__text {
    margin-bottom: 13px;
  }
  .advantages {
    height: auto;
    padding: 7px 15px;
    margin: 50px -15px;
  }
  .advantages__list,
  .hero__features__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: start;
    height: 100%;
    width: 100%;
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.1;
    margin: auto 15px;
  }
  .hero__features__list {
    margin: auto 0;
  }
  .advantages__item img {
    width: 28px;
    height: auto;
    margin-right: 10px;
  }
  .advantages__item {
    align-self: flex-start;
  }
  .solutions__content {
    margin-left: 20px;
  }
  .solutions__arrow {
    width: 14px;
    height: 14px;
  }
  .solutions__text {
    font-size: 1rem;
  }
  .solutions__body {
    font-size: 1rem;
  }
  .inline-square {
    margin: auto 5px;
  }
  /* .solutions__content {
    margin-left: 0;
  } */
  /* .solutions__accordion {
    display: flex;
    flex-direction: column;
    gap: 20px;
  } */
  .solutions__item {
    padding-bottom: 5px;
    margin-bottom: 10px;
  }
  .solutions__more {
    font-size: 0.875rem;
    margin-top: 5px;
  }
  .blog__grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .blog__item {
    width: 100%;
  }
  .blog__item img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  .contacts__description {
    font-size: 0.75rem;
  }
  .contacts-section,
  .contacts__main-page {
    margin-top: 50px;
    padding: 0;
  }

  .contacts-section .main__title,
  .contacts__main-page .main__title,
  .contacts-section .contacts__pre-title,
  .contacts__main-page .contacts__pre-title {
    margin-bottom: 5px;
  }

  .contacts-section .contacts__wrapper,
  .contacts__main-page .contacts__wrapper {
    margin: 0;
    background: none;
    padding-top: 0px;
    min-height: unset;
    height: auto;
  }

  .contacts-section .contacts__info,
  .contacts__main-page .contacts__info {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 10px;
  }

  .contacts-section .contacts__info .contacts__block:nth-child(5),
  .contacts__main-page .contacts__info .contacts__block:nth-child(5) {
    grid-column: span 2;
  }

  .contacts-section .contacts__block h4,
  .contacts__main-page .contacts__block h4 {
    color: var(--accent-color);
    font-size: 1rem;
  }

  .contacts-section .contacts__block p,
  .contacts__main-page .contacts__block p {
    font-size: 0.75rem;
  }

  .blog__main-page {
    margin-top: 50px;
  }
  .faq__image {
    display: none;
  }
  .modal {
    top: 93px;
    padding: 0;
  }
  .modal__close-btn {
    top: 25px;
    right: 25px;
  }
  .form-section {
    margin: 0px;
  }
  .page-404 {
    margin: 0 auto;
  }
  .breadcrumbs {
    display: none;
  }
  .projects__grid {
    grid-template-columns: repeat(2, 1fr); /* Теперь 2 колонки равной ширины */
    grid-gap: 20px 10px; /* Расстояние между элементами */
  }
  .about__wrapper,
  .production__image--press {
    flex-direction: column;
  }
  .production__image--press {
    margin: 5px 0 15px 0;
  }
  .production__image--press img:first-of-type {
    margin-bottom: 20px;
  }
  .hardware {
    height: auto;
    background-color: #ececec;
    margin: 50px -15px;
    padding: 30px 15px;
  }

  .hardware__discription {
    gap: 25px;
    font-size: 1rem;
    padding: 10px 0;
  }
  .hardware__discription h2 {
    align-items: center;
    flex-wrap: wrap;
  }
  .hardware__brands {
    font-size: 0.875rem;
    font-weight: 400;
  }
  .inline-square-big {
    width: 5px;
    height: 5px;
    margin: auto 5px;
  }
  .solutions {
    margin-top: 50px;
  }
  .solutions h2 {
    font-size: 1.68rem;
    margin-bottom: 25px;
  }
  .blog__item .arrow-link img {
    width: 14px;
    height: 14px;
  }
  .roof__nav ul {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, 1fr); /* Две колонки равной ширины */
    font-size: 1rem;
  }
  .roof__nav ul li:nth-child(even) {
    text-align: right; /* Выравниваем текст в четных элементах (вторая колонка) */
  }
  .roof__section h2 {
    font-size: 1.125rem;
  }
  .roof__section .about__content {
    padding-left: 0;
  }
  .gallery-images {
    min-height: 300px; /* Минимальная высота для изображений */
  }
  .gallery-images {
    display: flex;
    justify-content: center; /* Центр по горизонтали */
    align-items: flex-end; /* Центр по вертикали */
  }

  .gallery-image {
    max-width: 100%;
    height: 100%;
  }
  .gallery-control {
    position: absolute;
    bottom: 0px;
    padding: 0;
  }

  .gallery-next {
    width: 12px;
    height: 24px;
    left: 50%;
    transform: translateX(10px);
  }

  .gallery-prev {
    width: 12px;
    height: 24px;
    left: 50%;
    transform: translateX(-10px);
  }
  .desktop-only {
    display: none; /* Скрываем на мобильных */
  }
  .mobile-only {
    display: block; /* Показываем только на мобильных */
  }
  .contacts__title-for-page {
    text-align: center;
    margin-bottom: 0;
  }
  .contacts-section-for-page {
    padding-top: 57px;
    gap: 15px;
    margin-top: 20px;
  }
  .contacts-section-for-page a {
    font-size: 0.75rem;
  }
  .contacts__smm h4 {
    font-size: 0.875rem;
  }
  .contacts__smm-wrapper {
    gap: 5px;
  }
  .contacts__image {
    width: 200px;
    right: 0;
    bottom: -50px; /* Поднимаем изображение вверх */
    z-index: 2;
  }
  .semi-bold {
    font-weight: 600; /* Полужирный шрифт */
  }
  .mobile-menu__nav ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 1rem;
    font-family: "Ysabeauinfant", sans-serif;
    align-self: center;
    align-items: center;
  }
  .noantiseptik .about__description {
    flex-direction: column;
  }
  .noantiseptik .about__description .about__image {
    flex-direction: column;
    width: 100%;
  }
  .noantiseptik .about__description .about__image img {
    width: 100%;
  }
  .solutions-main-page {
    margin-top: 50px;
  }
  .portfolio .arrow-link {
    margin-bottom: 0;
  }
  .solutions__accordion {
    flex-direction: column; /* Блоки будут друг под другом */
  }

  .solutions__image {
    order: 1; /* Картинка сверху */
    width: 100%; /* На всю ширину экрана */
    height: auto; /* Пропорциональная высота */
    max-height: none;
  }

  .solutions__content {
    order: 2; /* Текст под картинкой */
    width: 100%; /* На всю ширину */
    max-width: 100%;
    padding: 0;
    margin-left: 0;
  }

  /* Дополнительно: убираем gap, если нужно */
  .solutions__accordion {
    flex-direction: column;
    gap: 0;
  }
  .otzyvy h1 {
    width: 100%;
  }
  .otzyvy .about__content--right {
    margin-left: 0;
  }
  .otzyvy .about__image {
    order: 1;
  }
  .otzyvy .about__description {
    order: 2;
  }
  .faq__more {
    margin-top: 0;
  }
  .contacts__main-page .contacts__pre-title {
    margin-bottom: 25px;
  }
  .form-section p {
    font-size: 0.875rem;
  }
  .checkbox label {
    margin-left: 16px;
    font-size: 0.875rem;
  }
  .modal__content {
    padding: 35px 25px;
  }
  .first-page_svg {
    width: 14px;
    height: 14px;
  }
}
@media screen and (max-width: 440px) {
  .header {
    max-width: 100vw;
    font-size: 0.75rem;
  }
  .header__burger {
    width: 30px;
    height: 30px;
  }
  .header__burger img {
    width: 100%;
    height: auto;
  }
  .header-button {
    text-align: center;
  }
  /* .footer__nav ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-left: 0;
  } */
  .footer__logo {
    padding-top: 19px;
    min-width: 10px;
    width: 80px;
  }
  .footer__wrap-nav-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 10px;
    margin-top: 10px;
  }

  /* .footer__contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
  } */

  /* Убедитесь, что высота не ограничена */
  .footer__outline,
  .footer__wrap-nav-contacts,
  .footer__contact,
  .footer__nav,
  .footer__nav ul {
    width: 100%;
    height: auto;
    min-height: auto;
  }
  .footer__outline {
    width: 100%;
    max-width: 100%;
    flex-grow: 1;
  }
  .projects__grid {
    grid-template-columns: 1fr;
    gap: 10px; /* Расстояние между элементами */
  }
  .gallery-images {
    min-height: 220px; /* Минимальная высота для изображений */
  }
}
@media screen and (max-width: 327px) {
  .header-button {
    width: 100px;
  }
  .roof__nav ul {
    font-size: 0.9rem;
  }
}
