/* Шрифты */
@font-face {
  font-family: "Open Sans";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("/g/fonts/open_sans/open_sans-l.woff2") format("woff2"),
    url("/g/fonts/open_sans/open_sans-l.woff") format("woff");
}

@font-face {
  font-family: "Open Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/g/fonts/open_sans/open_sans-r.woff2") format("woff2"),
    url("/g/fonts/open_sans/open_sans-r.woff") format("woff");
}

@font-face {
  font-family: "Open Sans";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/g/fonts/open_sans/open_sans-s-b.woff2") format("woff2"),
    url("/g/fonts/open_sans/open_sans-s-b.woff") format("woff");
}

@font-face {
  font-family: "Open Sans";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/g/fonts/open_sans/open_sans-b.woff2") format("woff2"),
    url("/g/fonts/open_sans/open_sans-b.woff") format("woff");
}

@font-face {
  font-family: "Prosto One";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/g/fonts/prosto_one/prosto_one-r.woff2") format("woff2"),
    url("/g/fonts/prosto_one/prosto_one-r.woff") format("woff");
}

/* Базовые стили для анимируемых элементов */
.hero__title,
.hero__btn,
.about__img,
.service-card__img,
.promo__info,
.promo__img,
.advantage__icon,
.reviews-image,
.gallery__item {
  visibility: hidden;
}

/* После анимации элементы остаются видимыми */
.hero__title.animated,
.hero__btn.animated,
.about__img.animated,
.service-card__img.animated,
.promo__info.animated,
.promo__img.animated,
.advantage__icon.animated,
.reviews-image.animated,
.gallery__item.animated {
  visibility: visible;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* CSS переменные */
:root {
  /* Основные цвета */
  --color-primary: 13, 13, 13;
  --color-accent: 199, 149, 104;
  --color-white: 255, 255, 255;
  --color-text: 36, 25, 24;
  --color-light: 247, 245, 239;
  --color-dark: 22, 21, 21;

  /* Переопределение основных переменных */
  --primary-color: rgba(var(--color-primary), 1);
  --accent-color: rgba(var(--color-accent), 1);
  --text-color: rgba(var(--color-text), 1);
  --light-bg: rgba(var(--color-light), 1);
  --white: rgba(var(--color-white), 1);
  --dark-bg: rgba(var(--color-dark), 1);

  /* Дополнительные переменные */
  --gray-light: #ecf0f1;
  --gray: #bdc3c7;
  --footer-text: #cccccc;
  --footer-border: rgba(255, 255, 255, 0.1);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

  --image-bg: url(/img/bagr.webp);

  /* Контейнер */
  --container-width: 1600px;
  --container-padding: 30px;
  
  /* iOS Safari specific */
  --safe-area-inset-top: env(safe-area-inset-top);
  --safe-area-inset-bottom: env(safe-area-inset-bottom);
  --safe-area-inset-left: env(safe-area-inset-left);
  --safe-area-inset-right: env(safe-area-inset-right);
}

/* Базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Включаем выбор текста для контента */
p, span, h1, h2, h3, h4, h5, h6, a, li {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Общие стили кнопок */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 14px;
  min-height: 44px;
  font-family: "Open Sans", sans-serif;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.btn--primary {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn--primary:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn--secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Хедер */
.header {
  background-color: var(--white);
  position: relative;
  z-index: 1000;
  font-family: "Tenor Sans", sans-serif;
  flex-direction: column-reverse;
  background-image: url(./img/bagr.jpg);
  background-size: cover;
  background-attachment: scroll;
}

.header__main {
  padding: 50px 0 40px;
}

.header__main .container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

/* Логотип */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  gap: 15px;
}

.logo__image {
  width: 65px;
  height: 65px;
  flex-shrink: 0;
}

.logo__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo__info {
  display: flex;
  flex-direction: column;
}

.logo__text {
  font-size: 23px;
  font-weight: 400;
  font-family: Trebuchet MS;
  color: var(--white);
  line-height: 1.2;
}

.logo__tagline {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 10px;
  font-family: "Open Sans", sans-serif;
}

/* Контактная информация в хедере */
.header__contact-info {
  display: flex;
  gap: 40px;
}

.contact-block {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-block__icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(199 149 104);
  border-radius: 50%;
  border: 2px solid rgba(199, 149, 104, 0.3);
  transition: all 0.3s ease;
  margin-right: 10px;
  background-color: rgb(199 149 104);
  color: rgb(255 255 255 / 90%);
}

.contact-block__icon svg {
  display: block;
  align-items: center;
}

.contact-block__content {
  display: flex;
  flex-direction: column;
}

.contact-block__title {
  font-size: 15px;
  color: rgb(255 255 255 / 90%);
  margin-bottom: 5px;
  font-family: "Open Sans", sans-serif;
}

.contact-block__phone {
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  color: rgb(255 255 255);
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: Trebuchet MS;
}

.contact-block__phone:hover {
  color: var(--accent-color);
}

.contact-block__address {
  font-size: 16px;
  color: rgb(255 255 255);
  line-height: 1.4;
  font-family: Trebuchet MS;
}

/* Навигация */
.nav {
  display: flex;
  justify-content: space-between;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  height: 55px;
  align-items: center;
}

.nav__item {
  flex-shrink: 0;
}

.nav__link {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 15px 15px 15px 0;
  color: var(--white);
  transition: all 0.4s ease;
  font-family: Tenor Sans, sans-serif;
  font-weight: 600;
  font-size: 16px;
  margin-right: 10px;
  border-radius: 1px;
  border: 0px solid transparent;
}

.nav__link:hover,
.nav__link.is-hover {
  color: rgb(255 255 255);
  border-color: var(--accent-color);
  text-decoration: underline;
}

.header__social {
  display: flex;
  gap: 20px;
}

.header__social-link {
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
  font-family: Open Sans, sans-serif;
  cursor: pointer;
}

.header__social-link:hover {
  color: var(--accent-color);
}

.social-icon {
  color: rgb(199 149 104);
}

.social-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.nav__link:active,
.nav__link.is-active {
  color: rgb(255 255 255);
  border-color: var(--accent-color);
  text-decoration: underline;
}

.nav__link--active {
  color: rgb(255 255 255);
  border-color: var(--accent-color);
}

.nav__item-link {
  width: 35px;
  height: 35px;
  background-color: rgb(199 149 104);
  font-size: 20px;
  border-radius: 50%;
  color: rgb(255 255 255);
}

.nav__item-sp {
  color: rgb(255 255 255);
  display: flex;
  align-items: center;
  text-align: center;
  text-decoration: none;
  width: 16px;
  height: 16px;
  margin: 0 auto;
  margin-top: 7px;
}

.hero--wrap {
  margin-left: 0;
}

.hero {
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  padding-top: 400px;
  padding-bottom: 110px;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: auto;
  flex-direction: column;
}

.hero__content {
  max-width: 1120px;
}

.hero__title {
  font-size: 3.8vw;
  margin-bottom: 10px;
  -webkit-text-stroke-width: 0px;
  color: rgb(255 255 255);
  text-shadow: 3px 3px 0px rgba(var(--color-iqvf0dbdp), 1);
  font-family: Trebuchet MS;
  font-weight: 400;
  line-height: 4vw;

}

.hero__accent {
  color: rgb(199, 149, 104);
}

.hero__accent-2 {
  font-size: 5.8vw;
  margin-bottom: 20px;
  -webkit-text-stroke-width: 2px;
  color: rgb(255 255 255);
  text-transform: uppercase;
  text-shadow: 4px 4px 0px rgba(var(--color-ifeb93yyv), 1);
  font-family: Trebuchet MS;
  font-weight: 400;
  line-height: 6vw;
  padding-left: 270px;
}

.hero__wrap {
  width: 1600px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero__text {
  max-width: 1120px;
  font-size: 16px;
  color: rgb(255 255 255 / 90%);
  line-height: 25px;
}

.hero__btn {
  width: 170px;
  height: 170px;
  border-radius: 250px;
  background-color: rgb(199 149 104);
  transition: all 500ms ease;
  font-size: 21px;
  text-transform: uppercase;
  line-height: normal;
  font-family: Trebuchet MS;
  font-weight: 400;
}

/* Секция "О нас" */
.about {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-color);
  position: relative;
  overflow: hidden;
}

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
  max-width: 1600px;
  margin: 0 auto;
}

.about__info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about__title {
  font-size: 3.5rem;
  font-family: Trebuchet MS;
  color: var(--white);
  line-height: 1.1;
  margin: 0;
  font-weight: 400;
}

.about__text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgb(255 255 255 / 60%);
  font-family: 'Open Sans', sans-serif;
  line-height: 25px;
  width: 700px;
}

.about__mission {
  margin-top: 130px
}

.about__mission-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.about__text p {
  margin: 0;
}

.about__mission-icon {
  width: 100px;
  position: relative;
  display: flex;
  height: 100px;
  margin-right: 20px;
  border-radius: 250px;
  background-color: rgb(199 149 104);
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.about__icon-img {
  width: 65px;
  height: 65px;
}

.about__action {
  margin-top: 20px;
}

.btn__icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Галерея */
.about__gallery {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.about__main-image {
  width: 100%;
}

.about__main-image .about__img {
  width: 100%;
  max-width: 670px;
  height: 420px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about__secondary-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.about__image-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__image-item {
  width: 100%;
}

.about__image-item .about__img {
  width: 100%;
  max-width: 500px;
  height: 100%;

  object-fit: cover;
}

.about__image-item:first-child .about__img {
  width: 100%;
  max-width: 500px;
  height: 500px;
}

.about__image-item:last-child .about__img {
  width: 100%;
  max-width: 400px;
  height: 100%;
  max-height: 400px;
  position: absolute;
  z-index: 1000;
  top: 280px;
  left: 30%;
}

/* Услуги */
.services {
  padding: 80px 0;
  background-color: var(--primary-color);
}

.services__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.services__title {
  text-align: center;
  font-size: 65px;
  font-family: Trebuchet MS;
  margin-bottom: 50px;
  color: var(--white);
}

.spn {
  margin-top: 100px;
  margin-left: -200px;
}

.btn__icon {
  color: rgb(199 149 104);
  margin-left: 10px;
}

.services__action-line {
  width: 30%;
  margin-top: 60px;
  border-bottom: 1px solid rgb(255 255 255 / 40%);
}

.btn__text {
  font-size: 19px;
  color: rgb(255 255 255);
  font-family: Trebuchet MS;

}

.services__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  margin-bottom:50px;
}

.service-card {
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card__img {
  width: 500px;
  height: 500px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
  display: block;
  background-color: transparent;
  background-image: linear-gradient(to left top, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 62%);
  background-repeat: no-repeat;
  background-position: left 0px top 0px;
  background-size: auto;
  background-attachment: scroll;
  transition: all 500ms ease;
}

.service-card__price-p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  padding: 8px 0;
  line-height: 25px;
  font-family: 'Open Sans', sans-serif;
  margin-right: 10px;
}

.service-card__title {
  text-align: left;
  font-size: 20px;
  font-family: Trebuchet MS;
  margin-bottom: 15px;
  color: rgb(255 255 255);
  text-transform: uppercase;
}

.service-card__props {
  list-style: none;
  margin-bottom: 20px;
  text-align: left;
}

.service-card__props li {
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  padding: 8px 0;
  line-height: 25px;
  font-family: 'Open Sans', sans-serif;
}

.service-card__price {
  display: block;
  text-align: right;
  font-family: Trebuchet MS;
  font-size: 20px;
  font-weight: 400;
  color: var(--accent-color);
  line-height: 23px;
}

/* Промо акция */
.promo {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--white);
}

.promo__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
  /* Выравниваем по высоте */
}

.promo__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-color);
  padding: 40px;
  border-radius: 10px;
}

.promo__img-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.promo__img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  display: block;
}

/* Адаптивность */
@media (max-width: 1200px) {
  .promo__content {
    gap: 30px;
  }
}

@media (max-width: 992px) {
  .promo__content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .promo__img {
    min-height: 400px;
  }

  .promo__info {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .promo {
    padding: 60px 0;
  }

  .promo__img {
    min-height: 300px;
  }
}

.promo__title {
  font-family: Trebuchet MS;
  font-size: 65px;
  line-height: 3vw;
  color: var(--white);
  text-align: left;
  font-weight: 400;
}

.promo__text {
  color: rgba(255, 255, 255, 0.6);
  line-height: 25px;
  overflow-wrap: break-word;
  cursor: default;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
}

.promo__btn {
  display: flex;
  align-items: center;
  text-align: right;
  justify-content: space-between;
}

.promo__info {
  max-width: 738px;
  height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-color);
  border: 0;
  margin-bottom: 0px;
  background-image: none;
  padding-left: 80px;
  padding-right: 80px;
}

.text-block-wrap-div {
  color: rgb(255 255 255);
  line-height: 46px;
  font-family: 'Open Sans', sans-serif;
  font-size: 46px;
  text-align: left;
  font-weight: 400;
  line-height: 46px;
  margin-bottom: 15px;
}

.promo__info--sp {
  font-size: 16px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  line-height: 30px;
  color: rgb(255 255 255);
  text-transform: uppercase;
  -webkit-text-stroke-width: 0px;
  text-align: center;
  font-style: normal;
  text-indent: 0px;
}

.promo__form {
  margin-top: 15px;
  margin-bottom: 0px;
  align-items: flex-end;
  padding: 20px;
}

.promo__form--wrap {
  display: flex;
  margin-bottom: 10px;
  justify-content: space-between;
}

.promo__img {
  max-width: 738px;
  height: 500px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* Формы */
.input {
  width: 100%;
  max-width: 296px;
  padding: 10px 20px;
  border: 2px solid #ecf0f1;
  border-radius: 250px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  font-family: "Open Sans", sans-serif;
  height: 65px;
  flex-shrink: 1;
  color: rgb(0 0 0);
  font-family: 'Montserrat', sans-serif;
  margin-left: 10px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
  color: rgb(255 255 255 / 60%);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  overflow-wrap: break-word;

}

.checkbox input[type="checkbox"] {
  margin-left: 0px;
  margin-top: auto;
  margin-bottom: auto;
}

.promo__info--btn {
  display: flex;
  justify-content: center;
  cursor: pointer;
  vertical-align: top;
  padding: 23px 40px;
  background-color: rgb(255 255 255);
  color: rgb(0 0 0);
  text-decoration-line: none;
  border-radius: 250px;
  align-items: center;
  margin: 0 auto;
  margin-top: 10px;
}

/* Секция преимуществ */
.advantages {
  padding: 80px 0;
  background-color: rgba(13, 13, 13, 1);
}

.advantages__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}

.advantage {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 40px 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.advantage:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.advantage__icon {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(199 149 104);
  border-radius: 50%;
  border: 2px solid rgba(199, 149, 104, 0.3);
  transition: all 0.3s ease;
  margin-right: 10px;
}

.advantage:hover .advantage__icon {
  background: rgba(199, 149, 104, 0.2);
  border-color: rgba(199, 149, 104, 0.6);
  transform: scale(1.1);
}

.advantage__icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.advantage__content {
  display: flex;
  flex-direction: column;
  width: 300px;
  flex: 1;
}

.advantage__title {
  font-family: Trebuchet MS;
  font-size: 20px;
  font-weight: 400;
  color: rgb(255 255 255 / 60%);
  margin-bottom: 20px;
  line-height: 1.3;
  text-align: left;
}

.advantage__text {
  display: flex;
  text-align: left;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

/* Анимация появления */
.advantage {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.advantage:nth-child(1) {
  animation-delay: 0.1s;
}

.advantage:nth-child(2) {
  animation-delay: 0.3s;
}

.advantage:nth-child(3) {
  animation-delay: 0.5s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Отзывы */
.section-reviews {
  padding: 80px 0;
  background: #0d0d0d;
  position: relative;
}

.container-reviews {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: flex-start;
  gap: 60px;
}

.reviews-left {
  flex: 0 0 40%;
  position: relative;
}

.reviews-title {
  display: block;
  position: relative;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 40px;
  color: #fff;
  z-index: 1;
}

.reviews-image {
  max-width: 1600px;
  width: 100%;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.reviews-image img {
  width: 100%;
  max-width: 730px;
  height: 500px;
  object-fit: cover;
  display: block;
}

.image-overlay {
  width: 730px;
  background: linear-gradient(45deg, rgba(199, 149, 104, 0.1), rgba(56, 163, 204, 0.1));
}

.reviews-right {
  flex: 0 0 55%;
  position: relative;
  left: -150px;
  z-index: 15000;
}

.reviews-carousel {
  position: relative;
  overflow: hidden;
}

.reviews-slider {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.review-item {
  flex: 0 0 40%;
  padding: 0 15px;
  height: 100%;
}

.review-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  width: 371px;
  height: 100%;
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.review-header {
  display: block;
  margin-bottom: 20px;
  position: relative;
}

.review-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 20px;
  position: relative;
  flex-shrink: 0;
  border: 3px solid rgba(199, 149, 104, 0.3);
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-icon {
  position: absolute;
  top: 55px;
  right: 280px;
  width: 40px;
  height: 40px;
  background: rgba(199, 149, 104, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.quote-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.review-info {
  margin-top: 20px;
}

.review-name {
  font-family: Trebuchet MS;
  font-size: 20px;
  margin-top: 0px;
  color: rgb(255 255 255 / 70%);
  text-transform: uppercase;
}

.review-date {
  font-size: 18px;
  font-family: 'Montserrat', sans-serif;
  color: rgba(255, 255, 255, 0.6);
}

.review-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  text-align: left;
  margin-bottom: 0px;
  font-size: 16px;
  line-height: 25px;
  color: rgb(255 255 255 / 60%);
}

.reviews-right--text {
  max-width: 650px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  text-align: left;
  margin-bottom: 0px;
  color: rgb(255 255 255 / 60%);
  font-size: 16px;
  line-height: 25px;
  margin-top: 50px;
  margin-left: 150px;
  border-top: 1px solid rgb(255 255 255 / 40%);
}

/* Карусель отзывов */
.reviews-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.reviews-slider {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  gap: 30px;
}

.review-item {
  flex: 0 0 calc(50% - 15px);
  /* Два блока видно одновременно */
  min-width: 0;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.review-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  width: 100%;
  height: 100%;
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Карусель отзывов */
.reviews-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.reviews-slider {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
  gap: 30px;
}

.review-item {
  flex: 0 0 calc(50% - 15px);
  /* Два блока видно одновременно */
  min-width: 0;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.review-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  width: 100%;
  height: 100%;
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Навигация карусели */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 60px;
  padding: 0 20px;
  margin-left: 150px;
}

.carousel-arrows {
  display: flex;
  gap: 15px;
}

.carousel-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgb(199 149 104);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.carousel-arrow:hover {
  background: rgba(199, 149, 104, 0.8);
  border-color: rgba(199, 149, 104, 0.8);
  transform: scale(1.1);
}

.carousel-arrow.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.carousel-arrow.disabled:hover {
  background: rgb(199 149 104);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1);
}

.carousel-arrow svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

/* Точки навигации */
.carousel-dots {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: 30px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.carousel-dot.active {
  background: rgba(199, 149, 104, 0.9);
  transform: scale(1.3);
}

.carousel-dot::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
}

.carousel-dot:hover::after {
  background: rgba(199, 149, 104, 0.1);
}

/* Адаптивность */
@media (max-width: 1200px) {
  .review-item {
    flex: 0 0 calc(100% - 15px);
  }

  .carousel-nav {
    margin-left: 100px;
  }
}

@media (max-width: 768px) {
  .review-item {
    flex: 0 0 100%;
  }

  .carousel-nav {
    margin-left: 0;
    flex-direction: column;
    gap: 20px;
    padding: 0;
  }

  .carousel-dots {
    margin-left: 0;
  }

  .review-card {
    padding: 20px;
  }
}

/* Галерея */
.gallery {
  padding: 80px 0;
  background: #0d0d0d;
}

.gallery__title {
  text-align: center;
  font-size: 2.5rem;
  font-family: Trebuchet MS;
  margin-bottom: 50px;
  color: var(--primary-color);
}

.gallery__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.gallery__img {
  width: 100%;
  max-width: 460px;
  height: 350px;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.gallery__img:hover {
  transform: scale(1.05);
}

/* Футер */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 50px 0 0;
}

.footer__content {
  display: flex;
  padding-bottom: 50px;
  max-width: 1200px;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.footer__subtitle {
  font-size: 1.3rem;
  font-family: Trebuchet MS;
  margin-bottom: 20px;
  color: var(--white);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.contact-info {
  flex: 1;
}

.contact-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  color: rgb(255 255 255 / 90%);
}

.contact-text {
  font-size: 16px;
  line-height: normal;
  color: rgb(255 255 255);
  font-family: Trebuchet MS;
  font-weight: 400;
  text-transform: none;
  display: block;
}

.contact-link {
  font-size: 16px;
  line-height: normal;
  color: rgb(255 255 255);
  font-family: Trebuchet MS;
  font-weight: 400;
  text-transform: none;
  -webkit-text-stroke-width: 0px;
  cursor: pointer;
  text-decoration: none;
}

.contact-link:hover {
  color: var(--accent-color);
}

.footer__social {
  margin-top: 50px;
}

.footer__copyright {
  display: flex;
  gap: 50px;
  align-items: center;
}

.copyright-text,
.dev-text {
  line-height: normal;
  color: rgb(255 255 255);
  display: inline-block;
  position: relative;
  margin-right: 30px;
  font-family: 'Open Sans', sans-serif;
}

.wrap {
  font-size: 14px;
  color: rgb(255 255 255 / 50%);
  cursor: default;
  font-family: 'Tenor Sans', sans-serif;
  font-style: normal;
  font-weight: 400;
  text-align: left;
  text-indent: 0px;
}

.map {
  width: 100%;
  height: 350px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(100%) brightness(0.9) contrast(1.2);
}

.footer__bottom {
  border-top: 1px solid var(--footer-border);
  padding: 30px 0;
}

.footer__bottom-content {
  display: flex;
  justify-content: space-between;
  max-width: 700px;
}

.button-up {
  width: 70px;
  height: 70px;
  background-color: var(--accent-color);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 50px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.button-up:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.up-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.up-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--white);
}

/* Попап */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.popup__body {
  position: relative;
  background: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.popup__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--gray);
  transition: color 0.3s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.popup__close:hover {
  color: var(--accent-color);
}

.popup__title {
  font-size: 1.8rem;
  font-family: Trebuchet MS;
  margin-bottom: 20px;
  text-align: center;
  color: var(--primary-color);
}

.popup__form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Мобильная версия */
@media (max-width: 1200px) {
  .hero__title {
    font-size: 4.5vw;
  }

  .hero__accent-2 {
    font-size: 6.5vw;
    padding-left: 200px;
  }

  .about__content {
    gap: 60px;
  }

  .services__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  :root {
    --container-padding: 20px;
  }

  .contact-block__icon {
    display: none;
  }

  .contact-block {
    align-items: center;

  }

  .header__content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .hero__title {
    text-align: center;
  }

  .hero__text {
    text-align: center;
  }

  .about__image-item,
  .about__right {
    max-width: 980px;
  }

  .about__image-item:first-child .about__img {
    max-width: 950px;
  }

  .about__image-item:last-child .about__img {
    max-width: 950px;
    position: initial;
  }

  .about__images-top {
    margin: 0 auto;
  }

  .header__contact-info {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .nav {
    flex-direction: column;
    gap: 20px;
  }

  .nav__list {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero {
    padding-top: 300px;
    padding-bottom: 80px;
  }

  .hero__wrap {
    flex-direction: column;
    gap: 30px;
    width: 100%;
  }

  .hero__title {
    font-size: 5vw;
  }

  .hero__accent-2 {
    font-size: 7vw;
    padding-left: 150px;
  }


  .about__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__text {
    width: 100%;
  }

  .services__top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .services__list {
    grid-template-columns: 1fr;
  }

  .promo__content {
    display: block;
    gap: 10px;
    align-items: center;
    text-align: center;
  }

  .advantages__list {
    grid-template-columns: 1fr;
  }

  .container-reviews {
    flex-direction: column;
    gap: 40px;
  }

  .reviews-left,
  .reviews-right {
    flex: 0 0 100%;
  }

  .review-item {
    flex: 0 0 calc(50% - 1px);
  }

  .review-item {
    padding: 0;
  }

  .reviews-right {
    left: 0;
  }

  .footer__content {
    flex-direction: column;
    gap: 40px;
  }

  .footer__map {
    width: 100%;
  }

  .footer__bottom-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 15px;
  }

  .header__main {
    padding: 30px 0 20px;
  }

  .hero {
    padding-top: 200px;
    padding-bottom: 60px;
  }

  .hero__title {
    font-size: 6vw;
    line-height: 1.2;
  }

  .hero__accent-2 {
    font-size: 8vw;
    padding-left: 0;
    line-height: 1.2;
  }

  .hero__btn {
    width: 140px;
    height: 140px;
    font-size: 18px;
  }

  .about,
  .services,
  .promo,
  .advantages,
  .section-reviews,
  .gallery {
    padding: 60px 0;
  }

  .about__title,
  .services__title,
  .promo__title {
    font-size: 2.5rem;
    text-align: center;
    padding-bottom: 20px;
  }

  .services__title.spn {
    margin-top: 0;
    margin-left: 0;
  }

  .promo__info {
    padding-left: 30px;
    padding-right: 30px;
    height: auto;
  }

  .promo__img {
    max-width: 768px;
  }

  .promo__form--wrap {
    flex-direction: column;
    gap: 15px;
  }

  .promo__btn {
    justify-content: center;
    margin-bottom: 15px;
  }

  .promo__text {
    max-width: 768px;
  }

  .input {
    max-width: 100%;
    margin-left: 0;
  }

  .review-item {
    flex: 0 0 100%;
  }

  .review-card {
    width: 100%;
  }

  .container-reviews {
    display: block;
  }

  .carousel-nav {
    margin-left: 0;
    flex-direction: column;
    gap: 20px;
  }

  .reviews-right--text {
    margin-left: 0;
    text-align: center;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__copyright {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .button-up {
    margin-left: 0;
  }
}

@media (max-width: 576px) {
  .logo {
    flex-direction: column;
    text-align: center;
  }

  .logo__info {
    align-items: center;
  }

  .nav__list {
    flex-direction: column;
    height: auto;
    gap: 10px;
  }

  .nav__link {
    padding: 10px 0;
    margin-right: 0;
  }

  .hero {
    padding-top: 150px;
    padding-bottom: 40px;
  }

  .hero__title {
    font-size: 8vw;
  }

  .hero__accent-2 {
    font-size: 10vw;
  }

  .hero__btn {
    width: 120px;
    height: 120px;
    font-size: 16px;
  }

  .promo__img {
    max-width: 517px;
  }

  .reviews-image img {
    max-width: 517px;
  }

  .reviews-left,
  .reviews-right {
    max-width: 576px;
  }

  .about__title,
  .services__title,
  .promo__title {
    font-size: 2rem;
  }

  .text-block-wrap-div {
    font-size: 2rem;
    line-height: 1.2;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .popup__body {
    padding: 30px 20px;
  }

  .contact-block {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .contact-block__icon {
    margin-right: 0;
  }
}

@media (max-width: 360px) {

  .about__image-item,
  .about__right {
    max-width: 360px;
  }

  .about__image-item:first-child .about__img {
    max-width: 330px;
  }

  .about__image-item:last-child .about__img {
    position: inherit;
    max-width: 330px;
  }

  .about__mission-content {
    display: block;
    max-width: 330px;
    text-align: center;
  }

  .about__mission-icon {
    width: 100%;
  }

  .about__left {
    max-width: 340px;
    text-align: center;
  }

  .hero__text {
    text-align: center;
  }

  .hero__title {
    text-align: center;
  }

  .promo__img {
    max-width: 312px;
    border-radius: 0px;
  }

  .reviews-left,
  .reviews-right {
    width: 100%;
    max-width: 360px;
  }

  .container-reviews {
    padding: 0 10px;
  }

  .reviews-image img {
    max-width: 330px;
    height: 100%;
  }

  .quote-icon {
    right: 237px;
  }

  .footer__contacts {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .header__social {
    display: block;
    width: 100%;
    max-width: 150px;
    margin: 0 auto;
    margin-top: 30px;
    padding-bottom: 10px;
  }

  .header__social-link {
    padding-bottom: 10px;
  }

  .footer__bottom {
    width: 100%;
    max-width: 300px;
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }

  .footer__bottom-content {
    width: 100%;
    max-width: 300px;
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }

  .copyright-text,
  .dev-text {
    margin-right: 0;
  }

  br {
    display: none;
  }
}


/* Утилиты */
.text-center {
  text-align: center;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-30 {
  margin-bottom: 30px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-30 {
  margin-top: 30px;
}

.mt-40 {
  margin-top: 40px;
}


/* Стили для выпадающего меню */
.nav__item-link {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  background: rgba(40, 40, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px 0;
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 25px;
  width: 12px;
  height: 12px;
  background: rgba(40, 40, 40, 0.95);
  transform: rotate(45deg);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav__item-link:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 20px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.dropdown-link:hover {
  color: var(--accent-color);
  background: rgba(199, 149, 104, 0.1);
  border-left-color: var(--accent-color);
  padding-left: 25px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .dropdown-menu {
    left: -50px;
    min-width: 160px;
  }

  .dropdown-menu::before {
    left: 55px;
  }
}

/* Стили для выпадающих меню с галочками */
.nav__item--dropdown {
  position: relative;
}

.nav__item--dropdown .nav__link {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.nav__arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
  color: rgba(255, 255, 255, 0.7);
}

.nav__item--dropdown:hover .nav__arrow {
  transform: rotate(180deg);
  color: var(--accent-color);
}

.nav__item--dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(40, 40, 40, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 0;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav__item--dropdown .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: rgba(40, 40, 40, 0.95);
  transform: rotate(45deg);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav__item--dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
}

.dropdown-link::before {
  content: '✓';
  margin-right: 10px;
  font-size: 12px;
  color: var(--accent-color);
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.dropdown-link:hover {
  color: var(--accent-color);
  background: rgba(199, 149, 104, 0.1);
  padding-left: 25px;
}

.dropdown-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .nav__item--dropdown .dropdown-menu {
    left: -50%;
    min-width: 180px;
  }

  .nav__item--dropdown .dropdown-menu::before {
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
  }

  .nav__arrow {
    display: none;
    /* Скрываем стрелку на мобильных */
  }
}

/* Анимация стрелки в кнопке */
.btn--secondary .btn__icon {
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

.btn--secondary:hover .btn__icon {
  animation: arrowRotate 0.6s ease-in-out;
}

@keyframes arrowRotate {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(-45deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

/* Альтернативный вариант с плавным вращением туда-обратно */
.btn--secondary .btn__icon {
  transition: all 0.3s ease;
}

.btn--secondary:hover .btn__icon {
  transform: rotate(-45deg);
}

/* Для плавного возвращения при уходе курсора */
.btn--secondary .btn__icon {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Стили для анимации ЗАКАЗАТЬ */
.service-card__image-container {
  position: relative;
  overflow: hidden;
  border-radius: 5px;
}

.service-card__img {
  width: 500px;
  height: 500px;
  object-fit: cover;
  transition: all 0.5s ease;
  display: block;
}

.service-card__order-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(199, 149, 104, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card__image-container:hover .service-card__order-link {
  opacity: 1;
  transform: scale(1);
}

.service-card__order-text {
  display: inline-block;
  font-family: Trebuchet MS;
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-20px) scale(0.8);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Анимация появления букв - гармошка */
.service-card__image-container:hover .service-card__order-text:nth-child(1) {
  animation: letterAppear 0.6s ease 0.1s forwards;
}

.service-card__image-container:hover .service-card__order-text:nth-child(2) {
  animation: letterAppear 0.6s ease 0.15s forwards;
}

.service-card__image-container:hover .service-card__order-text:nth-child(3) {
  animation: letterAppear 0.6s ease 0.2s forwards;
}

.service-card__image-container:hover .service-card__order-text:nth-child(4) {
  animation: letterAppear 0.6s ease 0.25s forwards;
}

.service-card__image-container:hover .service-card__order-text:nth-child(5) {
  animation: letterAppear 0.6s ease 0.3s forwards;
}

.service-card__image-container:hover .service-card__order-text:nth-child(6) {
  animation: letterAppear 0.6s ease 0.35s forwards;
}

.service-card__image-container:hover .service-card__order-text:nth-child(7) {
  animation: letterAppear 0.6s ease 0.4s forwards;
}

.service-card__image-container:hover .service-card__order-text:nth-child(8) {
  animation: letterAppear 0.6s ease 0.45s forwards;
}

@keyframes letterAppear {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.5) rotate(-10deg);
  }

  50% {
    opacity: 1;
    transform: translateY(5px) scale(1.1) rotate(5deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

/* Эффект при наведении на ссылку */
.service-card__order-link:hover {
  background: rgb(255 255 255 / 1%);
}

.service-card__order-link:hover .service-card__order-text {
  transform: scale(1.05);
  color: rgb(255 255 255);
}

/* Альтернативный вариант анимации - буквы появляются с разных сторон */
.service-card__order-text:nth-child(odd) {
  transform: translateX(-50px) rotate(-10deg);
}

.service-card__order-text:nth-child(even) {
  transform: translateX(50px) rotate(10deg);
}

.service-card__image-container:hover .service-card__order-text:nth-child(odd) {
  animation: letterFromLeft 0.5s ease forwards;
}

.service-card__image-container:hover .service-card__order-text:nth-child(even) {
  animation: letterFromRight 0.5s ease forwards;
}

@keyframes letterFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px) rotate(-10deg) scale(0.8);
  }

  70% {
    opacity: 1;
    transform: translateX(10px) rotate(5deg) scale(1.1);
  }

  100% {
    opacity: 1;
    transform: translateX(0) rotate(0deg) scale(1);
  }
}

@keyframes letterFromRight {
  0% {
    opacity: 0;
    transform: translateX(50px) rotate(10deg) scale(0.8);
  }

  70% {
    opacity: 1;
    transform: translateX(-10px) rotate(-5deg) scale(1.1);
  }

  100% {
    opacity: 1;
    transform: translateX(0) rotate(0deg) scale(1);
  }
}

/* Дополнительный эффект для картинки при наведении */
.service-card__image-container:hover .service-card__img {
  transform: scale(1.05);
  filter: brightness(0.8);
}

/* Адаптивность */
@media (max-width: 768px) {
  .service-card__order-text {
    font-size: 24px;
  }

  .service-card__img {
    width: 100%;
    height: 300px;
  }
}


/* Стили для галереи */
.gallery__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery__item:hover {
  transform: translateY(-5px);
}

.gallery__img {
  width: 100%;
  max-width: 460px;
  height: 350px;
  object-fit: cover;
  transition: all 0.3s ease;
  display: block;
}

.gallery__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
}

.gallery__item:hover .gallery__img {
  filter: brightness(0.6);
}

/* Иконка увеличения из 4 треугольников */
.gallery__zoom {
  position: relative;
  width: 60px;
  height: 60px;
}

.zoom-icon {
  position: relative;
  width: 100%;
  height: 100%;
  animation: zoomPulse 2s infinite;
}

.zoom-part {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  transition: all 0.3s ease;
}

.zoom-part.top-left {
  top: 0;
  left: 0;
  border-width: 15px 15px 0 0;
  border-color: var(--accent-color) transparent transparent transparent;
}

.zoom-part.top-right {
  top: 0;
  right: 0;
  border-width: 15px 0 0 15px;
  border-color: var(--accent-color) transparent transparent transparent;
}

.zoom-part.bottom-left {
  bottom: 0;
  left: 0;
  border-width: 0 15px 15px 0;
  border-color: transparent transparent var(--accent-color) transparent;
}

.zoom-part.bottom-right {
  bottom: 0;
  right: 0;
  border-width: 0 0 15px 15px;
  border-color: transparent transparent var(--accent-color) transparent;
}

.gallery__zoom:hover .zoom-part {
  border-color: var(--white) transparent transparent transparent;
}

.gallery__zoom:hover .zoom-part.bottom-left,
.gallery__zoom:hover .zoom-part.bottom-right {
  border-color: transparent transparent var(--white) transparent;
}

@keyframes zoomPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

/* Модальное окно галереи */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.gallery-modal.active {
  display: flex;
}

.gallery-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.gallery-modal__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal__image-container {
  position: relative;
  max-width: 100%;
  max-height: 100%;
}

.gallery-modal__image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Кнопки управления модальным окном */
.gallery-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s ease;
  color: var(--white);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.gallery-modal__close:hover {
  background: var(--accent-color);
  transform: rotate(90deg);
}

.gallery-modal__prev,
.gallery-modal__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s ease;
  color: var(--white);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.gallery-modal__prev {
  left: 20px;
}

.gallery-modal__next {
  right: 20px;
}

.gallery-modal__prev:hover,
.gallery-modal__next:hover {
  background: var(--accent-color);
  transform: translateY(-50%) scale(1.1);
}

.gallery-modal__prev:disabled,
.gallery-modal__next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.gallery-modal__prev:disabled:hover,
.gallery-modal__next:disabled:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1);
}

/* Адаптивность */
@media (max-width: 768px) {
  .gallery__img {
    height: 250px;
  }

  .gallery-modal__prev,
  .gallery-modal__next {
    width: 50px;
    height: 50px;
    bottom: 20px;
    top: auto;
    transform: none;
  }

  .gallery-modal__prev {
    left: 20px;
  }

  .gallery-modal__next {
    right: 20px;
  }

  .gallery-modal__close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
  }

  .zoom-icon {
    width: 40px;
    height: 40px;
  }

  .zoom-part {
    border-width: 10px 10px 0 0;
  }

  .zoom-part.top-right {
    border-width: 10px 0 0 10px;
  }

  .zoom-part.bottom-left {
    border-width: 0 10px 10px 0;
  }

  .zoom-part.bottom-right {
    border-width: 0 0 10px 10px;
  }
}

/* Бургер меню */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: absolute;
  top: 50px;
  right: 30px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.burger-menu__line {
  width: 100%;
  height: 3px;
  background-color: var(--white);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.burger-menu.active .burger-menu__line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active .burger-menu__line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-menu__line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Модальное меню */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 350px;
  height: 100vh;
  background: rgba(13, 13, 13, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: right 0.3s ease;
  padding: 80px 30px 30px;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu__close {
  position: absolute;
  top: 20px;
  left: 20px;
  /* Изменил с right на left */
  background: none;
  border: none;
  color: var(--white);
  font-size: 30px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  z-index: 1002;
  /* Добавил z-index */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.mobile-menu__close:hover {
  color: var(--accent-color);
}

.mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav__item {
  margin-bottom: 10px;
  position: relative;
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  color: var(--white);
  text-decoration: none;
  font-family: 'Tenor Sans', sans-serif;
  font-size: 18px;
  transition: color 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav__link:hover {
  color: var(--accent-color);
}

.mobile-nav__arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.mobile-nav__item.active .mobile-nav__arrow {
  transform: rotate(180deg);
}

/* Выпадающие меню в мобильной версии */
.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  margin: 10px 0;
}

.mobile-dropdown-menu.active {
  max-height: 500px;
}

.mobile-dropdown-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.mobile-dropdown-link::before {
  content: '✓';
  margin-right: 10px;
  font-size: 12px;
  color: var(--accent-color);
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s ease;
}

.mobile-dropdown-link:hover {
  color: var(--accent-color);
  background: rgba(199, 149, 104, 0.1);
  padding-left: 25px;
  border-left-color: var(--accent-color);
}

.mobile-dropdown-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu__overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Адаптивность для хедера */
@media (max-width: 1200px) {
  .header {
    background-image: url(./img/bagr.jpg);
    background-size: auto;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
  }

  .header__main .container {
    position: relative;
  }

  .nav {
    display: none;
  }

  .header__social {
    display: none;
  }

  .burger-menu {
    display: flex;
  }

  .header__content {
    flex-wrap: wrap;
    position: relative;
    padding-bottom: 20px;
  }

  .logo {
    order: 1;
    flex: 1;
  }

  .header__contact-info {
    order: 3;
    width: 100%;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
  }

  .burger-menu {
    order: 2;
    position: relative;
    top: auto;
    right: auto;
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .mobile-menu {
    width: 100%;
  }

  .header__contact-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
  }

  .contact-block {
    justify-content: center;
    width: 100%;
  }

  .burger-menu {
    right: 20px;
    top: 40px;
  }
}

@media (max-width: 576px) {
  .burger-menu {
    right: 15px;
    top: 35px;
  }

  .mobile-menu {
    padding: 70px 20px 20px;
  }
}

/* iOS Safari специфичные стили */
@supports (-webkit-touch-callout: none) {
  .hero {
    padding-top: calc(400px + env(safe-area-inset-top));
  }
  
  .header {
    padding-top: env(safe-area-inset-top);
  }
  
  .footer {
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  /* Фикс для Safari 14+ */
  .service-card__img,
  .gallery__img,
  .about__img {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}

/* Фикс для старых версий Safari */
@media not all and (min-resolution:.001dpcm) { 
  @supports (-webkit-appearance:none) {
    .hero__btn,
    .btn--primary,
    .btn--secondary {
      -webkit-appearance: none;
      border-radius: 5px;
    }
    
    .input {
      -webkit-appearance: none;
      border-radius: 250px;
    }
  }
}

/* Фикс для мобильного Safari с viewport */
@viewport {
  width: device-width;
  zoom: 1.0;
}

/* Поддержка темной темы */
@media (prefers-color-scheme: dark) {
  .popup__body {
    background: #1a1a1a;
    color: #fff;
  }
  
  .input {
    background: #2d2d2d;
    color: #fff;
    border-color: #444;
  }
}

/* Оптимизация производительности для мобильных */
@media (max-width: 768px) {
  .hero__title,
  .hero__accent-2 {
    will-change: transform;
    -webkit-font-smoothing: antialiased;
  }
  
  .service-card__img,
  .gallery__img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Поддержка Hover для устройств без hover */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover {
    transform: none;
  }
  
  .advantage:hover {
    transform: none;
    box-shadow: none;
  }
  
  .gallery__item:hover {
    transform: none;
  }
  
  .gallery__item:hover .gallery__overlay {
    opacity: 0;
  }
  
  .gallery__item:hover .gallery__img {
    filter: none;
  }
  
  /* Активация по тапу на мобильных */
  .gallery__item:active .gallery__overlay {
    opacity: 1;
  }
  
  .gallery__item:active .gallery__img {
    filter: brightness(0.6);
  }
}

/* Оптимизация анимаций для устройств с reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.checkbox a{
	color:#fff;
}

.checkbox a:hover{
	border-bottom:none;
	text-decoration:none;
}

.js-form-popup  .checkbox {
	color:#000;
}