@import url("reset.css");

/* Шрифт изменен на Georgia (serif) */

/* ************COMMON************ */

.logo {
  font-weight: 700;
  font-size: 2.25rem;
  display: flex;
  align-items: center;
}

.logo__img {
  height: 50px;
  width: auto;
  display: block;
}

.logo__img_footer {
  height: 52px;
}

body {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: #2F2F2F;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

* {
  -webkit-tap-highlight-color: transparent;
}

/* Оптимизация для touch-устройств */
@media (hover: none) and (pointer: coarse) {
  a, button {
    min-height: 44px;
    min-width: 44px;
  }
  
  .button, .main__button, .resources__button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

:root {
  --emerald-green: #50C878;
  --emerald-dark: #2E8B57;
  --emerald-light: #90EE90;
  --emerald-hover: #3FAF66;
}

[class*="__container"] {
  max-width: 72.624rem;
  margin: 0 auto;
  padding: 0 0.938rem;
  width: 100%;
  box-sizing: border-box;
}

/* Предотвращение горизонтального скролла */
html {
  overflow-x: hidden;
  width: 100%;
}

/* Оптимизация изображений */
img {
  max-width: 100%;
  height: auto;
}

/* Улучшение читаемости текста на мобильных */
@media (max-width: 768px) {
  p, li, div, span {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
}

.button {
  font-weight: 600;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  transition: all 0.3s;
  color: #fff;
  background-color: #6B7A5A;
}

.button:hover {
  background-color: #5A6B4A;
  transform: translateY(-2px);
}

.title {
  font-size: 3.5rem;
  font-weight: 600;
}

.page__about .about__title.title {
  font-size: calc(3.5rem - 3px);
}

.wrapper {
  min-height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  overflow: hidden;
}

/* ************HEADER************ */

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 33.33%;
  height: 100%;
  background: #2F2F2F;
  z-index: 0;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.75rem;
  flex-wrap: wrap;
  max-width: 74.624rem;
  position: relative;
  z-index: 1;
}

.header__logo {
  position: relative;
  z-index: 2;
}

.header__navigation {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-right: 0.938rem;
  transform: translateX(5%);
}

.menu__body {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu__link {
  font-weight: 600;
  position: relative;
  color: #2F2F2F;
  font-size: 1.43rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s;
  display: inline-block;
}

.menu__link:hover {
  background-color: #6B7A5A;
  color: #fff;
}

.actions-header {
  display: flex;
  align-items: center;
  gap: 0.624rem;
}

.header__lang {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  color: #2F2F2F;
  text-decoration: none;
  font-size: 0.95rem;
  border: 2px solid transparent;
  background-color: rgba(107, 122, 90, 0.1);
  min-width: 45px;
  position: relative;
  z-index: 2;
}

.header__lang:hover {
  background-color: #6B7A5A;
  color: #fff;
  border-color: #6B7A5A;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(107, 122, 90, 0.3);
}

.header__lang:active {
  transform: translateY(0);
}

.icon-menu {
  display: none;
}

.actions-header__button {
  font-weight: 600;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--emerald-green);
  border-radius: 30px;
  transition: all 0.3s;
  position: relative;
  z-index: 2;
  color: var(--emerald-green);
}

.actions-header__button:hover {
  background-color: var(--emerald-green);
  color: #fff;
}

/* ****************PAGES**************** */
.page__main {
  padding-bottom: 160px;
}

/* *****************HOME**************** */

.main {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.main__video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.main__video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
}

@media (max-width: 768px) {
  .main__video {
    width: auto;
    height: 100vh;
    min-width: 100vw;
  }

  .main__video-background {
    opacity: 0.85;
  }

  .outro__container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .outro__title {
    font-size: 1.75rem;
  }

  .outro__text {
    font-size: 0.9rem;
  }

  .outro__button {
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
  }

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

.main__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 19.188rem;
}

.main__caption {
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 3.3rem;
  color: #fff;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: 1.2;
  max-width: 100%;
  box-sizing: border-box;
}

.main__title {
  font-size: 5.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #fff;
}

.main__text {
  margin-bottom: 3.5rem;
  max-width: 33.375rem;
  line-height: 150%;
  letter-spacing: 0.02em;
  color: #fff;
}

.main__button {
  font-weight: 600;
  display: inline-block;
  padding: 1.25rem 3rem;
  border-radius: 30px;
  transition: all 0.3s;
  color: #fff;
  background-color: #6B7A5A;
  letter-spacing: 0.02em;
  font-size: 1.375rem;
  line-height: 110%;
}

.main__button:hover {
  background-color: #5A6B4A;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 122, 90, 0.3);
}

.outro_home {
  background-color: #fff;
}

/* ************ABOUT**************** */

.main_about {
  background: url("../img/about/background_placeholder.png") center / cover no-repeat;
}

.about__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
}

.page__about .about__container:has(.about__image img) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
}

.page__about .about__container:has(.about__image img) .about__image {
  margin-left: 0;
  max-width: 552px;
  flex-shrink: 0;
}

.page__about .about__container:has(.about__image img) .about__content {
  margin-left: 0;
  max-width: 40rem;
  width: 100%;
  text-align: left;
  align-items: flex-start;
}

.page__about .about__container:has(.about__image img) .about__title {
  text-align: left;
}

.page__about .about__container:not(:has(.about__image)) .about__content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-left: 0;
  max-width: 100%;
}

.page__about .about__title {
  text-align: center;
}

.page__about .about__image {
  margin-left: -6rem;
  max-width: 18rem;
}

.page__about .about__content .about__image {
  max-width: 552px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 3rem;
  margin-bottom: 0;
}

.page__about .about__container {
  padding-bottom: 2rem;
}

.page__about .about__image video {
  max-width: 100%;
  width: 100%;
}

.about__image {
  position: relative;
  max-width: 552px;
}

.about__image img {
  border-radius: 16px;
  max-width: 100%;
  height: 614px;
  object-fit: cover;
}

.about__image video {
  border-radius: 16px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.about__video {
  width: 100%;
  height: 100%;
}

.about__image-caption {
  margin-top: 1.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.5;
  color: #2F2F2F;
}

.about__quote {
  margin-top: 1.5rem;
  line-height: 150%;
  letter-spacing: 0.02em;
}

.about__quote p {
  margin: 0;
}

.about__quote-text {
  font-style: italic;
  text-align: justify;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.5;
}

.about__quote-author {
  margin-top: 0.5rem;
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.5;
}

.about__quote-author strong {
  font-style: normal;
}

.about__title {
  margin-bottom: 1.5rem;
  white-space: nowrap;
}

.about__text {
  max-width: 30rem;
  letter-spacing: 0.02em;
  line-height: 150%;
  margin-bottom: 3.5rem;
  text-align: justify;
  font-size: 1.1rem;
}

.page__about .about__text {
  max-width: 100%;
  width: 100%;
}

/* Оптимизация для раздела "О нашей фирме" на главной странице */
.about__text p:not(:last-child) {
  margin-bottom: 2.5rem;
}

/* Стили для текста на главной странице (двухколоночная раскладка) */
section.page__about.about .about__container:has(.about__image img) .about__text {
  max-width: 100%;
  font-size: 1.15rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  margin-left: 0;
  margin-right: 0;
  text-align: justify;
}

section.page__about.about .about__container:has(.about__image img) .about__text p:not(:last-child) {
  margin-bottom: 1.75rem;
}

.outro_about {
  background: url("../img/about/hero_placeholder.jpg") center / cover no-repeat;
}

/* **************CAREERS CONTENT**************** */
.careers-content {
  background-color: #fff;
}

.careers-content__container {
  max-width: 72.624rem;
  margin: 0 auto;
  padding: 0 0.938rem;
  padding-top: 2rem;
  padding-bottom: 8.75rem;
}

.careers-content__content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.careers-content__text {
  max-width: 100%;
  width: 100%;
  letter-spacing: 0.02em;
  line-height: 150%;
  text-align: justify;
}

.careers-content__text p:not(:last-child) {
  margin-bottom: 2.5rem;
}

.careers-content__button {
  margin-top: 3.5rem;
}

.careers-content__image {
  position: relative;
  max-width: 60rem;
  width: 100%;
  margin-top: 2rem;
  margin-bottom: 0;
}

.careers-content__video {
  border-radius: 16px;
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* **************SERVICES**************** */

.main_services {
  background: url("../img/services/background_placeholder.png") center / cover no-repeat;
}

.services {
  background-color: #2F2F2F;
}

.services__container {
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
}

.page__services.services.careers-page {
  background-color: #2F2F2F;
}

.page__services.services.careers-page .services__title {
  position: relative;
  background-color: #B8860B;
  margin: 0;
  padding: 1.25rem 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-bottom: 5rem;
}

.services__title.button {
  background-color: #6B7A5A;
  color: #fff;
}

.services__title {
  text-align: center;
  margin: 0 auto 5rem;
  display: block;
  padding: 1.25rem 3rem;
  width: fit-content;
}

.services__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.item-services {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
}

.item-services__image {
  margin-bottom: 2rem;
  max-width: 360px;
  height: 421px;
}

.item-services__image img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.item-services__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  padding-right: 1.5rem;
  transition: color 0.3s;
  user-select: none;
  color: #fff;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
  touch-action: manipulation;
}

.item-services__title:hover {
  color: #fff;
  opacity: 0.9;
}

.item-services__title::after {
  content: "▼";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  transition: transform 0.3s;
  color: #fff;
}

.item-services.active .item-services__title::after {
  transform: translateY(-50%) rotate(180deg);
}

.item-services__text {
  max-width: 21.5rem;
  line-height: 150%;
  margin-bottom: 2rem;
  flex-grow: 1;
  letter-spacing: 0.02em;
  text-align: center;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, margin-bottom 0.3s ease-out;
  opacity: 0;
  color: #fff;
}

.item-services.active .item-services__text {
  max-height: 1000px;
  opacity: 1;
  margin-bottom: 2rem;
}

.item-services__button {
  padding: 1.25rem 3rem;
}

.outro_services {
  background: url("../img/services/hero_placeholder.jpg") center / cover no-repeat;
}

/* ************TESTIMONIAL**************** */

.testimonial__container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
}

.testiomonial__caption {
  margin-bottom: 4rem;
  font-weight: 600;
  text-transform: uppercase;
}

.testimonial__title {
  margin-bottom: 4rem;
  font-size: 2rem;
  max-width: 40.75rem;
  line-height: 136%;
  font-weight: 500;
}

.item-testimonial__image {
  max-width: 64px;
  margin: 0 auto;
  margin-bottom: 1.063rem;
  height: 64px;
}

.item-testimonial__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.item-testimonial__title {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.item-testimonial__caption {
  font-size: 0.938rem;
}

/* ****************OUTRO**************** */

.outro {
  background-color: #fff;
}

.outro__container {
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.outro__title {
  margin-bottom: 1.25rem;
}

.outro__text {
  max-width: 33.625rem;
  line-height: 150%;
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

.outro__button {
  padding: 1.25rem 3rem;
}

/* ****************FOOTER**************** */

.footer {
  line-height: 150%;
  background-color: #2F2F2F;
  color: #fff;
}

.footer__container {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
  max-width: 74.624rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.footer__policy {
  font-weight: 600;
  letter-spacing: 0.02em;
  justify-self: start;
}

.footer__logo {
  justify-self: center;
  font-size: 1.75rem;
}

.footer__copyright {
  font-weight: 600;
  letter-spacing: 0.02em;
  justify-self: end;
}

/* ****************ABOUT PAGE**************** */
.main__text_pages {
  max-width: 37.5rem;
}

.main__container_pages {
  padding-top: 300px;
}

.main_pages {
  min-height: 676px !important;
}

/* ****************SERVICES PAGE**************** */
.services-page__container {
  padding-top: 160px;
}

.services-page__item {
  margin-bottom: 132px;
}

.services-page__item:not(:last-child) {
  padding-bottom: 132px;
  margin-bottom: 132px;
  border-bottom: 1px solid rgba(48, 58, 77, 0.4);
}

.services-page__column {
  display: flex;
  align-items: center;
  gap: 97px;
}

.services-page__title {
  margin-bottom: 24px;
}

.services-page__text {
  margin-bottom: 56px;
  max-width: 480px;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0.02em;
}

.services-page__text p:not(:last-child) {
  margin-bottom: 20px;
}

.services-page__img {
  max-width: 552px;
  height: 614px;
}

.services-page__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* ****************CONTACT PAGE****************/

.contact__container {
  display: flex;
  justify-content: space-between;
  gap: 109px;
  padding-top: 140px;
  padding-bottom: 140px;
}

.contact__contacts {
  background-color: #6B7A5A;
  padding: 3rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.contact__title {
  margin-bottom: 48px;
  font-weight: 600;
  line-height: 110%;
  font-size: 40px;
  color: #fff;
}

.connect-contact {
  display: flex;
  flex-direction: column;
  align-items: start;
  row-gap: 32px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.connect-contact__item {
  display: flex;
  align-items: center;
  gap: 24px;
  transition: transform 0.2s;
  color: inherit;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
}

.connect-contact__item:hover {
  transform: translateX(5px);
}

.connect-contact__icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.connect-contact__icon img {
  width: 50%;
  height: 50%;
  filter: brightness(0) saturate(100%);
  opacity: 0.6;
}

.connect-contact__type {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 110%;
  text-transform: uppercase;
  color: #2F2F2F;
}

.connect-contact__label {
  font-size: 22px;
  line-height: 150%;
  letter-spacing: 0.02em;
  color: #fff;
}

.contact__hours {
  margin-top: 1rem;
}

.contact__hours-text {
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.02em;
  color: #2F2F2F;
  margin: 0;
  text-align: justify;
}

.contact__text {
  max-width: 545px;
  font-size: 18px;
  line-height: 150%;
  text-align: justify;
}

.contact__text p:not(:last-child) {
  margin-bottom: 15px;
}

iframe {
  width: 100vw;
  height: 482px;
  filter: grayscale(100%);
}

/* **************REVIEWS PAGE**************** */
.reviews__container {
  padding-top: 160px;
  padding-bottom: 160px;
}

.reviews__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 96px;
}

.reviews__column {
  border: 1px solid #e1e4eb;
  border-radius: 8px;
}

.reviews__item {
  padding-top: 48px;
  padding-bottom: 56px;
  padding-right: 32px;
  padding-left: 32px;
}

.item-reviews {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.item-reviews__img {
  max-width: 46px;
  height: 36px;
  margin: 0 auto;
  margin-bottom: 46px;
}

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

.item-reviews__text {
  margin-bottom: 40px;
  font-size: 18px;
  letter-spacing: 0.02em;
  line-height: 150%;
}

.item-reviews__author {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.item-reviews__geo {
  font-size: 14px;
  letter-spacing: 0.002em;
}

/* ******************PRICING PAGE******************** */
.pricing__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.pricing__caption {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 4%;
}

.pricing__title {
  font-weight: 600;
  font-size: 72px;
  margin-bottom: 24px;
}

.pricing__text {
  font-size: 22px;
  letter-spacing: 2%;
  margin-bottom: 88px;
}

.pricing__row {
  display: flex;
  align-items: start;
  gap: 24px;
}

.pricing__column {
  border: 2px solid #e1e4eb;
  border-radius: 8px;
}

.pricing__item {
  padding: 40px;
  padding-bottom: 48px;
}

.item-pricing__info {
  padding-bottom: 32px;
  border-bottom: 1px solid #e1e4eb;
  margin-bottom: 32px;
}

.item-pricing__label {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1%;
  margin-bottom: 16px;
}

.item-pricing__cost {
  font-size: 72px;
  font-weight: 600;
  margin-bottom: 16px;
}

.item-pricing__list {
  margin-bottom: 64px;
}

.item-pricing__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-pricing__item::before {
  content: "";
  background: url("../img/pricing/check.svg") 0 0 no-repeat;
  width: 16px;
  height: 18px;
}

.item-pricing__item:not(:last-child) {
  margin-bottom: 12px;
}

.item-pricing__button {
  display: inline-block;
  font-size: 22px;
  letter-spacing: 2%;
  font-weight: 600;
  color: #fff;
  padding: 20px 82px;
  background-color: var(--emerald-green);
  border-radius: 64px;
  transition: all 0.3s;
}

.item-pricing__button:hover {
  background-color: var(--emerald-hover);
  transform: translateY(-2px);
}

.team {
  background-color: #e1e4eb;
}

.team__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.team__title {
  text-align: center;
  margin-bottom: 96px;
  max-width: 483px;
}

.team__row {
  display: grid;
  column-gap: 24px;
  row-gap: 96px;
  grid-template-columns: repeat(3, 1fr);
}

.team__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.item-team__img {
  max-width: 360px;
  height: 363px;
  margin-bottom: 40px;
}

.item-team__img img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.item-team__name {
  max-width: 186px;
  font-size: 32px;
  font-weight: 600;
  line-height: 120%;
  text-align: center;
  margin-bottom: 12px;
}

.item-team__role {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
  letter-spacing: 2%;
}

.item-team__role span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-team__role span::after {
  content: "";
  background: url("../img/team/icons/star.svg") 0 0 no-repeat;
  width: 12px;
  height: 12px;
}

.item-team__text {
  font-size: 16px;
  text-align: center;
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 328px;
  margin-bottom: 20px;
}

.item-team__icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* *************FAQ PAGE************** */
.faqs__container {
  padding-top: 140px;
  padding-bottom: 140px;
}

.faqs__title {
  text-align: center;
  margin-bottom: 80px;
}

.spollers-faq__item {
  width: 100%;
}

.spollers-faq__item:not(:last-child) {
  margin-bottom: 24px;
}

.spollers-faq__button {
  display: inline-block;
  border: 2px solid #e1e4eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: 8px;
}

.spollers-faq__button span {
  padding-left: 40px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-weight: 600;
}

.spollers-faq__button img {
  padding-right: 34.5px;
}

.spollers-faq__text {
  max-height: 0;
  overflow: hidden;
  width: 100%;
  display: block;
}

.spollers-faq__item.active .spollers-faq__text {
  max-height: 1000px;
  max-height: calc(1000px + 16px);
}

.spollers-faq__item.active .spollers-faq__button {
  border-bottom: none;
  border-radius: 8px 8px 0px 0px;
}

.spollers-faq__item.active .spollers-faq__button span {
  padding-bottom: 32px;
}

.spollers-faq__item.active .spollers-faq__button img {
  transform: translate(-34px, 0px) rotate(180deg);
}

.spollers-faq__inner {
  padding-top: 20px;
  padding-left: 40px;
  border: 2px solid #e1e4eb;
  border-radius: 0px 0px 8px 8px;
  line-height: 150%;
  padding-bottom: 20px;
  border-top: none;
  padding-right: 100px;
}

/* ****************TEAM PAGE**************** */
.director__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  align-items: center;
  gap: 96px;
}

.director__title {
  margin-bottom: 16px;
}

.director__role {
  font-size: 22px;
  letter-spacing: 2%;
  margin-bottom: 40px;
}

.director__text {
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 480px;
}

.director__text p:not(:last-child) {
  margin-bottom: 20px;
}

.director__img {
  max-width: 552px;
  height: 614px;
}

.director__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* ****************GALLERY**************** */
.gallery__container {
  padding-bottom: 140px;
  padding-top: 140px;
}

.gallery__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 96px;
  margin-bottom: 96px;
  justify-items: center;
}

.gallery__item {
  max-width: 360px;
  height: 407px;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.gallery__paggination {
  display: flex;
  align-items: center;
  justify-content: center;
  align-items: center;
  gap: 42px;
}

.gallery__paggination button:first-child {
  transform: translate(0px, 5px);
}

.gallery__paggination button:last-child {
  transform: rotate(-180deg) translate(0px, 5px);
}

.gallery_active {
  color: #fff;
  padding: 10px 15px;
  background-color: var(--emerald-green);
  border-radius: 100px;
  display: inline-block;
}

/* ****************RESOURCES**************** */
.resources__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 48px;
  row-gap: 96px;
  justify-items: stretch;
}

.resources__img {
  max-width: 360px;
  height: 330px;
  margin-bottom: 32px;
}

.resources__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.resources__title {
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 12px;
}

.resources__text {
  letter-spacing: 2%;
  line-height: 150%;
  margin-bottom: 32px;
}

.resources__button {
  background-color: #fff;
  color: #6B7A5A;
  font-weight: 600;
  letter-spacing: 2%;
  border: 2px solid #6B7A5A;
  border-radius: 64px;
  transition: all 0.3s;
}

.resources__button:hover {
  background-color: #6B7A5A;
  color: #fff;
}

/* ****************ADAPTIVE**************** */

@media (max-width: 992px) {
  .services__row {
    grid-template-columns: 1fr;
    gap: 6rem;
    justify-items: center;
  }

  .item-services {
    text-align: center;
    align-items: center;
  }

  .item-services__image {
    max-width: 100%;
    height: auto;
  }

  .item-services__image img {
    height: auto;
    max-height: 300px;
  }

  .item-services__text {
    max-width: 100%;
  }

  .page__main {
    padding-bottom: 80px;
  }

  .main__title {
    font-size: 3.5rem;
  }

  .main__caption {
    font-size: clamp(1.1rem, 5.5vw, 2.2rem) !important;
    font-weight: 700;
    line-height: 1.15 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    padding: 0 0.75rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    letter-spacing: -0.02em;
  }

  .main__text {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .main__button {
    font-size: 1.1rem;
    padding: 1rem 2rem;
  }

  .about__container {
    gap: 2rem;
  }

  .about__image img {
    height: auto;
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .header__container {
    padding: 1rem 0.938rem;
  }

  .logo__img {
    height: 40px;
  }

  .main__title {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .main__caption {
    font-size: clamp(1rem, 5vw, 2rem) !important;
    font-weight: 700;
    line-height: 1.15 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    padding: 0 0.75rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    letter-spacing: -0.02em;
  }

  .main__text {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .main__container {
    padding-top: 8rem;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .main__button {
    font-size: 1rem;
    padding: 0.875rem 1.75rem;
  }

  .about__container {
    flex-direction: column;
    padding-top: 4rem;
    padding-bottom: 4rem;
    gap: 2.5rem;
  }

  .page__about .about__container {
    gap: 1.5rem;
  }

  .page__about .about__image {
    margin-left: 0;
    max-width: 100%;
  }

  .about__image {
    max-width: 100%;
    margin-left: 0 !important;
  }

  .about__image img,
  .about__image video {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    object-position: center top;
  }

  .about__content {
    text-align: center;
  }

  .about__title {
    font-size: 2rem;
    white-space: normal;
  }

  .page__about .about__title.title {
    font-size: 2rem;
  }

  .about__text {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .about__quote-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .about__quote-author {
    font-size: 0.95rem;
  }

  .careers-content__container {
    padding-top: 2rem;
    padding-bottom: 4rem;
  }

  .careers-content__text {
    font-size: 0.95rem;
  }

  .careers-content__button {
    font-size: 1rem;
    padding: 0.875rem 1.75rem;
    margin-top: 2rem;
  }

  .careers-content__image video {
    max-height: 350px;
  }

  .services__container {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .services__title {
    font-size: 2rem;
    margin-bottom: 3rem;
    padding: 1rem 2rem;
  }

  .services__title.button {
    font-size: 1.5rem;
    padding: 1rem 1.5rem;
  }

  .services__row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .item-services__title {
    font-size: 1.25rem;
    text-align: center;
    padding-right: 1.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
  }

  .item-services__title::after {
    font-size: 0.7rem;
  }

  .item-services__text {
    text-align: center;
    max-width: 100%;
  }
  
  /* Убеждаемся, что описания услуг раскрываются на мобильных */
  .item-services.active .item-services__text {
    max-height: 1000px !important;
    opacity: 1 !important;
    margin-bottom: 1.5rem !important;
    padding: 0 0.5rem;
  }

  .contact__container {
    flex-direction: column;
    gap: 2.5rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .contact__text {
    max-width: 100%;
  }
  
  .contact__contacts {
    width: 100%;
    max-width: 100%;
  }
  
  .contact__info {
    width: 100%;
  }
  
  .contact__title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .connect-contact {
    row-gap: 2rem;
  }
  
  .connect-contact__item {
    align-items: center;
    gap: 1.5rem;
  }
  
  .connect-contact__type {
    font-size: 16px;
  }
  
  .connect-contact__label {
    font-size: 18px;
  }

  .page__services.services .services__title {
    width: 100%;
    margin-left: 0;
    padding: 1rem;
  }
}

@media (min-width: 47.999rem) {
  .menu__list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 995px) {
  .item-pricing__button {
    font-size: 19px;
  }
}

@media (max-width: 62.6875rem) {
  .resources__container {
    padding-top: 70px;
    padding-bottom: 70px;
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__paggination {
    gap: 27px;
  }

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

  .team__row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
  }

  .director__container {
    flex-direction: column;
    padding-top: 70px;
    padding-bottom: 70px;
    gap: 10px;
    text-align: center;
  }

  .item-pricing {
    padding: 20px;
    padding-bottom: 30px;
  }

  .pricing__title {
    font-size: 39px;
  }

  .pricing__text {
    margin-bottom: 25px;
  }

  .item-pricing__button {
    padding: 16px 42px;
  }

  .footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
  }

  .footer__policy,
  .footer__copyright {
    justify-self: center;
    text-align: center;
    margin: 0.5rem 0;
  }

  .footer__logo {
    margin-bottom: 1rem;
  }

  .services-page__column {
    gap: 30px;
    font-size: 15px;
  }

  .services-page__title {
    font-size: 29px;
  }

  .reviews__row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
    column-gap: 10px;
  }

  .reviews__item {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-top: 20px;
    display: inline-block;
  }

  .item-reviews__text {
    font-size: 16px;
  }

  .item-reviews__author {
    font-size: 16px;
  }
}

@media (max-width: 47.999rem) {
  .spollers-faq__item.active .spollers-faq__button img {
    transform: translate(-10px, -10px) rotate(180deg);
  }

  .spollers-faq__button span {
    padding-top: 15px;
    padding-left: 10px;
    padding-bottom: 15px;
    font-weight: 600;
    font-size: 14px;
  }

  .spollers-faq__button img {
    padding-right: 10px;
  }

  .spollers-faq__inner {
    font-size: 16px;
    padding-left: 10px;
    line-height: 130%;
  }

  .pricing__container {
    text-align: center;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .pricing__row {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .item-pricing__button {
    font-size: 17px;
    padding: 15px 32px;
  }

  .reviews__container {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .icon-menu {
    display: block;
    position: relative;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 1.875rem;
    flex: 0 0 1.875rem;
    width: 1.875rem;
    height: 1.125rem;
    cursor: pointer;
    z-index: 5;
  }

  .icon-menu span,
  .icon-menu::before,
  .icon-menu::after {
    content: "";
    -webkit-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
    right: 0;
    position: absolute;
    width: 100%;
    height: 0.125rem;
    background-color: #000;
  }

  .icon-menu::before {
    top: 0;
  }

  .icon-menu::after {
    bottom: 0;
  }

  .contact__container {
    flex-direction: column;
    padding-top: 5rem;
    gap: 2.5rem;
    padding-bottom: 5rem;
  }

  .contact__contacts {
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
  }

  .contact__title {
    font-size: 2rem;
    margin-bottom: 2rem;
    word-wrap: break-word;
  }

  .connect-contact {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    row-gap: 2rem;
  }

  .connect-contact__item {
    width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
    align-items: center;
    padding: 0;
    margin: 0;
    gap: 1.5rem;
  }

  .connect-contact__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    min-width: 24px;
  }

  .connect-contact__content {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
  }

  .connect-contact__type {
    font-size: 16px;
    word-wrap: break-word;
    margin-bottom: 4px;
  }

  .connect-contact__label {
    font-size: 18px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 150%;
  }

  .icon-menu span {
    top: calc(50% - 0.0625rem);
  }

  .menu-open .icon-menu span {
    width: 0;
  }

  .menu-open .icon-menu::before {
    top: calc(50% - 0.0625rem);
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }

  .menu-open .icon-menu::after {
    bottom: calc(50% - 0.0625rem);
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  .header__navigation {
    position: static;
    margin-right: 0.938rem;
  }

  .menu__body {
    background-color: #fff;
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    padding: 5.75rem 1.5rem 1.875rem 1.5rem;
    overflow: auto;
    flex-direction: column;
    row-gap: 2rem;
    transition: left 0.3s ease 0s;
    z-index: 1000;
    pointer-events: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  }

  .menu__body::before {
    display: none;
  }

  .menu-open .menu__body {
    left: 0;
  }

  .menu-open .menu__body::before {
    display: none;
  }

  body.menu-open {
    overflow: hidden;
  }

  /* Затемнение фона при открытом меню */
  body.menu-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    pointer-events: auto;
  }

  .menu__item {
    text-align: center;
    width: 100%;
  }

  .menu__item:not(:last-child) {
    margin-bottom: 1.563rem;
  }

  .menu__link {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1.25rem;
  }

  .menu__link {
    font-size: 2rem;
    color: #2F2F2F;
    padding: 1rem;
    -webkit-tap-highlight-color: transparent;
  }

  .menu__link:active {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .main__button:active,
  .button:active,
  .outro__button:active {
    transform: scale(0.98);
  }

  .actions-header__button {
    padding: 0.75rem;
  }

  .header__lang {
    padding: 0.5rem 0.875rem;
    font-size: 0.9rem;
    min-width: 42px;
  }

  .main__container {
    padding-top: 8rem;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .main__container_pages {
    padding-top: 200px;
  }

  .main__title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .main__caption {
    font-size: clamp(1.5rem, 7vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 0 0.5rem;
  }

  .main__text {
    font-size: 0.9rem;
    padding: 0 0.5rem;
  }

  .main__button {
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
  }

  /* На мобильных навигация управляется через menu__body */
  .header__navigation {
    margin-left: 0;
    margin-right: 0;
    transform: none;
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }

  .logo__img {
    height: 28px;
  }

  .main__video {
    width: 100%;
    height: 100%;
  }

  .title {
    font-size: 2rem;
  }

  .about__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .about__container {
    flex-direction: column;
    padding-top: 3rem;
    padding-bottom: 3rem;
    gap: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .about__image {
    max-width: 100%;
  }

  .about__image img {
    width: 100%;
    height: auto;
    max-height: 300px;
  }

  .about__text {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .careers-content__container {
    padding-top: 2rem;
    padding-bottom: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .careers-content__text {
    font-size: 0.9rem;
  }

  .careers-content__button {
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    margin-top: 2rem;
  }

  .careers-content__image video {
    max-height: 300px;
  }

  .about__quote-text {
    font-size: 0.9rem;
  }

  .about__quote-author {
    font-size: 0.85rem;
  }

  .main__video-background {
    opacity: 0.9;
  }

  .services__container {
    padding-top: 3rem;
    padding-bottom: 3rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .services__title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .services__row {
    gap: 3rem;
  }

  .item-services {
    max-width: 100%;
  }

  .item-services__image img {
    width: 100%;
    height: auto;
  }

  .item-services__button {
    font-size: 0.9rem;
    padding: 0.625rem 1.25rem;
  }

  .button {
    font-size: 0.9rem;
    padding: 0.625rem 1.25rem;
  }

  .testimonial__title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .testiomonial__caption {
    margin-bottom: 2rem;
  }

  .outro__container {
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
  }

  .logo {
    font-size: 1rem;
  }

  .services-page__column {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 20px;
    gap: 4rem;
  }
}

@media (max-width: 61.936rem) {
  .footer__container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    row-gap: 0.938rem;
  }

  .logo {
    font-size: 2rem;
  }
}

@media (max-width: 530px) {
  .main__title {
    font-size: 1.75rem;
  }

  .main__caption {
    font-size: clamp(1rem, 5vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 0 0.5rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .main__text {
    font-size: 0.85rem;
  }

  .main__button {
    font-size: 0.9rem;
    padding: 0.7rem 1.25rem;
  }

  .logo__img {
    height: 26px;
  }

  .header__container {
    padding: 0.75rem 0.5rem;
    min-height: 4rem;
  }

  .about__title {
    font-size: 1.5rem;
  }

  .page__about .about__title.title {
    font-size: 1.5rem;
  }

  .about__text {
    font-size: 0.85rem;
  }

  .services__title {
    font-size: 1.5rem;
    padding: 0.875rem 1.25rem;
  }

  .services__title.button {
    font-size: 1.25rem;
    padding: 0.875rem 1.25rem;
  }

  .item-services__title {
    font-size: 1.1rem;
    text-align: center;
    padding-right: 1.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
  }

  .item-services__title::after {
    font-size: 0.65rem;
  }

  .item-services__text {
    font-size: 0.9rem;
    text-align: center;
  }
  
  /* Убеждаемся, что описания услуг раскрываются на маленьких экранах */
  .item-services.active .item-services__text {
    max-height: 1000px !important;
    opacity: 1 !important;
    margin-bottom: 1.5rem !important;
    padding: 0 0.5rem;
  }

  .page__about .about__image {
    margin-left: 0;
    max-width: 100%;
  }

  .page__about .about__container {
    gap: 1rem;
  }

  .contact__container {
    padding-top: 4rem;
    padding-bottom: 4rem;
    gap: 2rem;
  }
  
  .contact__contacts {
    padding: 2rem 1.5rem;
  }
  
  .contact__title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  .connect-contact {
    row-gap: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .connect-contact__item {
    gap: 1.25rem;
  }
  
  .connect-contact__type {
    font-size: 15px;
  }
  
  .connect-contact__label {
    font-size: 17px;
  }

  .reviews__row {
    grid-template-columns: 1fr;
  }

  .team__row {
    grid-template-columns: 1fr;
  }

  .gallery__row {
    grid-template-columns: 1fr;
  }

  .resources__container {
    grid-template-columns: 1fr;
  }
}

/* ************PHONE MODAL************ */
.phone-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.phone-modal__content {
  position: relative;
  background-color: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 10001;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.phone-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #2F2F2F;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.phone-modal__close:hover {
  color: #008B8B;
}

.phone-modal__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #2F2F2F;
  text-align: center;
}

.phone-modal__options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.phone-modal__option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  text-decoration: none;
  color: #2F2F2F;
  transition: all 0.3s;
}

.phone-modal__option:hover {
  border-color: #008B8B;
  background-color: #f5f5f5;
  transform: translateX(5px);
}

.phone-modal__icon {
  font-size: 2rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-modal__text {
  flex: 1;
}

.phone-modal__option-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.phone-modal__option-desc {
  font-size: 0.9rem;
  color: #666;
}

@media (max-width: 530px) {
  .phone-modal__content {
    padding: 1.5rem;
  }
  
  .phone-modal__title {
    font-size: 1.25rem;
  }
  
  .phone-modal__option {
    padding: 0.75rem;
  }
  
  .phone-modal__icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
  }
}

/* ************MOBILE OPTIMIZATIONS************ */
@media (max-width: 768px) {
  /* Улучшение базовых размеров */
  body {
    font-size: 1rem;
  }
  
  /* Оптимизация заголовков */
  .title {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .main__title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }
  
  .main__caption {
    font-size: clamp(1rem, 5vw, 1.9rem) !important;
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.15 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    padding: 0 0.75rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    letter-spacing: -0.02em;
  }
  
  .main__text {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }
  
  .main__button {
    font-size: 1rem;
    padding: 1rem 2rem;
    width: auto;
    max-width: 90%;
  }
  
  /* Оптимизация контейнеров */
  [class*="__container"] {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .main__container {
    padding-top: 12rem;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
  
  /* Оптимизация карточек услуг */
  .services__row {
    gap: 3rem;
  }
  
  .item-services {
    padding: 1.5rem;
  }
  
  .item-services__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .item-services__text {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  /* Убеждаемся, что описания услуг раскрываются */
  .item-services.active .item-services__text {
    max-height: 1000px !important;
    opacity: 1 !important;
    margin-bottom: 1.5rem !important;
    padding: 0 0.5rem;
  }
  
  /* Оптимизация новостей */
  .resources__container {
    padding-top: 4rem;
    padding-bottom: 4rem;
    gap: 2rem;
  }
  
  .resources__item {
    padding: 1.5rem;
  }
  
  .resources__title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  
  .resources__text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  
  .resources__button {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    width: 100%;
    text-align: center;
  }
  
  /* Оптимизация секции About */
  .about__container {
    padding-top: 4rem;
    padding-bottom: 4rem;
    gap: 2rem;
  }
  
  .about__title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  .about__text {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .about__text p {
    margin-bottom: 1rem;
  }
  
  /* Оптимизация контактов */
  .connect-contact {
    gap: 1.5rem;
  }
  
  .connect-contact__item {
    padding: 0;
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
  }

  .connect-contact__icon {
    flex-shrink: 0;
    min-width: 24px;
    width: 24px;
    height: 24px;
  }
  
  .connect-contact__type {
    font-size: 16px;
    word-wrap: break-word;
    margin-bottom: 4px;
    display: block;
  }
  
  .connect-contact__label {
    font-size: 18px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 150%;
    display: block;
  }
  
  .connect-contact__content {
    flex: 1;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Оптимизация кнопок */
  .button {
    font-size: 0.95rem;
    padding: 0.875rem 1.5rem;
  }
  
  /* Оптимизация outro секции */
  .outro__container {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  
  .outro__title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .outro__text {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  /* Оптимизация футера */
  .footer__container {
    padding-top: 2rem;
    padding-bottom: 2rem;
    gap: 1rem;
  }
  
  .footer__policy,
  .footer__copyright {
    font-size: 0.8rem;
  }
  
  .footer__logo .logo__img_footer {
    height: 40px;
  }
  
  /* Оптимизация страницы услуг */
  .services-page__title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  .services-page__text {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .services-page__text p {
    margin-bottom: 1rem;
  }
  
  /* Оптимизация карьеры */
  .careers-content__text {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .careers-content__text p {
    margin-bottom: 1rem;
  }
  
  .careers-content__button {
    font-size: 0.95rem;
    padding: 0.875rem 1.5rem;
    width: 100%;
    max-width: 300px;
  }
  
  /* Оптимизация политики конфиденциальности */
  .about__text h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  .about__text ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .about__text li {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  /* Дополнительные оптимизации для очень маленьких экранов */
  .main__title {
    font-size: 2rem;
  }
  
  .main__caption {
    font-size: clamp(0.9rem, 4.5vw, 1.5rem) !important;
    line-height: 1.15 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    padding: 0 0.75rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    letter-spacing: -0.02em;
  }
  
  .title {
    font-size: 1.75rem;
  }
  
  .main__button {
    font-size: 0.9rem;
    padding: 0.875rem 1.5rem;
  }
  
  .resources__title {
    font-size: 1.1rem;
  }
  
  .item-services__title {
    font-size: 1.1rem;
  }
  
  .about__title {
    font-size: 1.5rem;
  }
  
  .logo__img {
    height: 24px;
  }
  
  .header__container {
    padding: 0.5rem 0.75rem;
  }
  
  .main__container {
    padding-top: 10rem;
  }
  
  .connect-contact__item {
    align-items: center;
    gap: 1.25rem;
  }
  
  .connect-contact__icon {
    flex-shrink: 0;
  }
  
  .connect-contact__type {
    font-size: 15px;
  }
  
  .connect-contact__label {
    font-size: 17px;
  }
}

/* Дополнительная оптимизация для очень маленьких экранов (меньше 360px) */
@media (max-width: 360px) {
  .main__caption {
    font-size: clamp(0.8rem, 4vw, 1.2rem) !important;
    line-height: 1.1 !important;
    padding: 0 0.5rem !important;
    letter-spacing: -0.03em;
  }
  
  .main__container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
}

/* Исправление для устройств с высоким разрешением и большой шириной экрана */
@media screen and (max-width: 768px) {
  /* Принудительно применяем мобильные стили независимо от разрешения */
  body {
    min-width: 0;
    width: 100%;
    overflow-x: hidden;
  }
  
  /* Убеждаемся, что все контейнеры не выходят за границы */
  [class*="__container"] {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }
  
  /* Фиксируем ширину wrapper */
  .wrapper {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
}

/* Оптимизация для устройств с высоким разрешением (retina/high-DPI) */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi),
       screen and (min-resolution: 2dppx) {
  /* Улучшение качества изображений на retina дисплеях */
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Исправление для устройств в портретной ориентации */
@media screen and (orientation: portrait) and (max-width: 768px) {
  .main__container {
    padding-top: 10rem;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
  
  .main__title {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
  }
  
  .main__caption {
    font-size: clamp(0.95rem, 4.5vw, 1.75rem) !important;
    line-height: 1.15 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    padding: 0 0.75rem !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    letter-spacing: -0.02em;
  }
  
  .main__text {
    font-size: clamp(0.875rem, 4vw, 1rem);
  }
  
  .title {
    font-size: clamp(1.5rem, 10vw, 2rem);
  }
  
  /* Убеждаемся, что все элементы не выходят за границы */
  .resources__container,
  .services__row,
  .about__container,
  .contact__container {
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Улучшение контактов для портретной ориентации */
  .contact__container {
    padding-top: 5rem;
    padding-bottom: 5rem;
    gap: 2.5rem;
  }
  
  .contact__contacts {
    padding: 2.5rem 2rem;
  }
  
  .contact__title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .connect-contact {
    row-gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }
  
  .connect-contact__item {
    gap: 1.5rem;
    align-items: center;
  }
  
  .connect-contact__type {
    font-size: 16px;
  }
  
  .connect-contact__label {
    font-size: 18px;
  }
  
  .contact__text {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  /* Улучшение хедера для портретной ориентации */
  .header__container {
    min-height: 4.5rem;
    padding: 0.75rem 1rem;
  }
  
  .logo__img {
    height: 26px;
  }
  
  /* Улучшение секций для портретной ориентации */
  .about__container {
    padding-top: 4rem;
    padding-bottom: 4rem;
    gap: 2rem;
  }
  
  .services__container {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  
  /* Улучшение услуг для портретной ориентации */
  .item-services {
    padding: 1rem;
  }
  
  .item-services__title {
    font-size: clamp(1rem, 4vw, 1.25rem);
    padding-right: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .item-services__text {
    font-size: clamp(0.85rem, 3.5vw, 0.95rem);
    line-height: 1.5;
  }
  
  /* Убеждаемся, что описания услуг раскрываются в портретной ориентации */
  .item-services.active .item-services__text {
    max-height: 1000px !important;
    opacity: 1 !important;
    margin-bottom: 1.5rem !important;
    padding: 0 0.5rem;
  }
  
  .outro__container {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* Исправление для устройств в альбомной ориентации */
@media screen and (orientation: landscape) and (max-width: 768px) and (max-height: 500px) {
  .main__container {
    padding-top: 8rem;
  }
  
  .main__title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 1rem;
  }
  
  .main__text {
    margin-bottom: 1.5rem;
    font-size: clamp(0.875rem, 3vw, 1rem);
  }
  
  .main__button {
    font-size: 0.9rem;
    padding: 0.875rem 1.5rem;
  }

  /* Меню в одну строку в альбомной ориентации */
  .header__navigation {
    position: static;
    width: auto;
    height: auto;
    margin-right: 0.938rem;
  }

  .menu__body {
    position: static;
    background-color: transparent;
    width: auto;
    height: auto;
    padding: 0;
    flex-direction: row;
    row-gap: 0;
    box-shadow: none;
    overflow: visible;
    left: 0;
    max-width: none;
  }

  .menu-open .menu__body {
    left: 0;
  }

  .menu__item {
    width: auto;
    text-align: center;
  }

  .menu__item:not(:last-child) {
    margin-bottom: 0;
    margin-right: 0.5rem;
  }

  .menu__link {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
  }

  .icon-menu {
    display: none;
  }

  body.menu-open::before {
    display: none;
  }

  /* Унификация размеров шрифтов для цитаты и описания */
  .about__text {
    font-size: 0.95rem;
  }

  .about__quote-text {
    font-size: 0.95rem;
  }

  .about__quote-author {
    font-size: 0.95rem;
  }
}