@import url("reset.css");

@import url("https://fonts.googleapis.com/css?family=Montserrat:regular,500,600,700&display=swap");

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

.logo {
  font-weight: 300;
  font-size: 2.25rem;
  color: #0055a4;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 1em;
  width: auto;
  vertical-align: middle;
}

body {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  color: #303a4d;
}

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

.button {
  font-weight: 600;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background-color 0.25s ease-out,
    color 0.25s ease-out, border-color 0.25s ease-out;
  color: #fff;
  background-color: #303a4d;
}

.button:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.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: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease-out;
}

.header--hidden {
  transform: translateY(-100%);
}

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

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
  flex-wrap: nowrap;
}

.header__brand .header__logo {
  flex-shrink: 0;
}

.header__brand .language-switcher {
  margin: 0;
  flex-shrink: 0;
}

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

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

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

.menu__link {
  font-weight: 600;
  position: relative;
}

.menu__item {
  position: relative;
}

.menu__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 250px;
  padding: 1rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 0.5rem;
}

.menu__item:hover .menu__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu__submenu-item {
  list-style: none;
}

.menu__submenu-link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #303a4d;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.menu__submenu-link:hover {
  background: #f5f5f5;
  color: #0055a4;
}

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

.icon-menu {
  display: none;
}

.actions-header__button {
  font-weight: 600;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid #303a4d;
  border-radius: 30px;
  transition: all 0.3s;
  position: relative;
  z-index: 2;
}

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

/* Слоистые секции на главной странице */
.home-stack-section {
  position: relative;
  z-index: 1;
  transition: transform 0.45s ease-out, box-shadow 0.45s ease-out;
}

.home-stack-section + .home-stack-section {
  margin-top: -80px;
}

.home-stack-section--active {
  transform: translateY(-20px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
  z-index: 5;
}

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

.home-main {
  min-height: 100vh;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.home-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 0%, rgba(0, 0, 0, 0.35), transparent 50%),
              radial-gradient(circle at 90% 100%, rgba(0, 0, 0, 0.45), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-out;
}

.home-main--animated::before {
  opacity: 1;
}

.home-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../Website-Images/Home/arc.jpg") center / cover no-repeat;
  transform: scale(1.12);
  transform-origin: center;
  z-index: -1;
  animation: main-bg-zoom-out 10s linear infinite;
}

@keyframes main-bg-zoom-out {
  0% {
    transform: scale(1.12);
  }
  90% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.12);
  }
}

.main__container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  padding-top: 19.188rem;
  padding-bottom: 3rem;
}

.main__caption {
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 500;
}

.main__title {
  font-size: 3.69rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.main__text {
  margin-top: auto;
  margin-bottom: 3rem;
  max-width: 33.375rem;
  line-height: 150%;
  letter-spacing: 0.02em;
}

.main__button {
  font-weight: 600;
  display: inline-block;
  padding: 0.81rem 1.95rem;
  border-radius: 30px;
  transition: all 0.3s;
  color: #fff;
  background-color: #303a4d;
  letter-spacing: 0.02em;
  font-size: 0.9rem;
  line-height: 110%;
}

.outro_home {
  background: url("../Website-Images/Home/tower-hero.jpg") center / cover no-repeat;
  color: #fff;
}

.outro_home {
  position: relative;
  overflow: hidden;
}

.outro_home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../Website-Images/Home/tower-hero.jpg") center / cover no-repeat;
  transform: translateY(var(--outro-bg-offset, 0));
  transform-origin: center;
  z-index: -1;
}

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

.main_about {
  position: relative;
  overflow: hidden;
}

.main_about .main__title,
.main_about .main__text {
  color: #fff;
}

.main_about::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../Website-Images/About/Eiffel.jpg") center / cover no-repeat;
  transform: scale(1.12);
  transform-origin: center;
  z-index: -1;
  animation: main-bg-zoom-out 10s linear infinite;
}

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

.about__image {
  position: relative;
  max-width: 30rem;
  height: auto;
}

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

.about__title {
  margin-bottom: 1.5rem;
}

.about__text {
  max-width: 30rem;
  letter-spacing: 0.02em;
  line-height: 150%;
  margin-bottom: 3.5rem;
}

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

/* Плавное появление блоков при прокрутке */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Подчёркивание заголовков */
.title {
  position: relative;
  overflow: visible;
}

.title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.5rem;
  width: 0;
  height: 2px;
  background: #0055a4;
  transform: translateX(-50%);
  transition: width 0.4s ease-out;
}

.reveal-visible.title::after,
.title:hover::after {
  width: 60%;
}

.outro_about {
  background: url("../Website-Images/About/Louvre1.jpg") center / cover no-repeat;
  color: #fff;
}

.outro_about .outro__title {
  color: #fff;
}

.outro_about .outro__text {
  color: #fff;
}

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

.main_services {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.main_services::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../Website-Images/Services/eiffel-tower.webp") center / cover no-repeat;
  transform: scale(1.12);
  transform-origin: center;
  z-index: -1;
  animation: main-bg-zoom-out 10s linear infinite;
}

.services {
  background-color: #e1e4eb;
}

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

.services__title {
  text-align: center;
  margin-bottom: 5rem;
}

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

.item-services {
  display: flex;
  flex-direction: column;
  align-items: start;
  min-height: 100%;
  border-radius: 20px;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out, background 0.25s ease-out;
}

.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;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.item-services:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
  background: rgba(255, 255, 255, 0.85);
}

.item-services:hover .item-services__image img {
  transform: scale(1.04);
}

/* Обрезка надписи в левом нижнем углу изображения transfer.jpg */
.item-services__image img[src*="transfer.jpg"] {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 100px 100%, 100px calc(100% - 100px), 0 calc(100% - 100px));
}

.item-services__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.item-services__text {
  max-width: 21.5rem;
  line-height: 150%;
  margin-bottom: 2rem;
  flex-grow: 1;
  letter-spacing: 0.02em;
}

.item-services__button {
  background-color: inherit;
  border: 2px solid #303a4d;
  color: #303a4d;
}

.item-services__button:hover {
  background-color: #303a4d;
  color: #fff;
}

.outro_services {
  background: url("../Website-Images/Services/tower-hero.jpg") center / cover no-repeat;
  color: #fff;
}

/* ************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__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;
}

.outro_home .outro__button {
  padding: 0.81rem 1.95rem;
  font-size: 0.9rem;
}

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

.footer {
  line-height: 150%;
}

.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__legal {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.footer__legal-sep {
  opacity: 0.85;
  pointer-events: none;
}

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

.footer__logo {
  justify-self: center;
}

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

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

.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__content-full {
  width: 100%;
}

.services-page__text-full {
  max-width: 100%;
  width: 100%;
}

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

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

.services-page__img img,
.services-page__img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.services-page__img-contain {
  object-fit: contain !important;
}

.services-page__img img:hover,
.services-page__img video:hover {
  transform: scale(1.05);
}

.services-page__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 24.96px;
  max-width: 1148.16px;
  width: 100%;
  margin-top: 3rem;
}

.services-page__gallery-item {
  width: 100%;
  height: 374.4px;
  overflow: hidden;
  border-radius: 16px;
}

.services-page__gallery-item-overlay {
  position: relative;
}

.services-page__gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.5) 100%);
  border-radius: 16px;
  pointer-events: none;
}

.services-page__gallery-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.services-page__gallery-item-overlay:not(:has(.services-page__gallery-button)) .services-page__gallery-overlay {
  justify-content: flex-start;
}

.services-page__gallery-button {
  pointer-events: auto;
  align-self: center;
  margin-bottom: 20px;
  padding: 0.6rem 1.2rem;
  font-size: 0.8em;
  opacity: 0.85;
}

.services-page__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.services-page__gallery-item img:hover {
  transform: scale(1.05);
}

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

.main_contact {
  position: relative;
  overflow: hidden;
}

.main_contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../Website-Images/Contact/contacts-1.jpg") center / contain no-repeat;
  background-size: 80% auto;
  background-position: center 40%;
  transform: scale(1.08);
  transform-origin: center;
  z-index: -1;
  animation: main-bg-zoom-out 12s linear infinite;
}

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

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

.connect-contact {
  display: flex;
  flex-direction: column;
  align-items: start;
  row-gap: 32px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e1e4eb;
}

.connect-contact__item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.connect-contact__icon {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.connect-contact__item:hover .connect-contact__icon {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

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

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

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

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

.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: #303a4d;
  border-radius: 64px;
}

.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: #303a4d;
  border-radius: 100px;
  display: inline-block;
}

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

.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%;
  max-width: 243px;
  margin-bottom: 32px;
}

.resources__button {
  background-color: #fff;
  color: #303a4d;
  font-weight: 600;
  letter-spacing: 2%;
  border: 2px solid #303a4d;
  border-radius: 64px;
}

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

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

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

  .page__main {
    padding-bottom: 80px;
  }
}

@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: 80px;
    gap: 50px;
    padding-bottom: 80px;
  }

  .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);
  }

  .menu__body {
    background-color: #fff;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    padding: 9.375rem 0.938rem 1.875rem 0.938rem;
    overflow: auto;
    flex-direction: column;
    row-gap: 5rem;
  }

  .menu__body::before {
    content: "";
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    min-height: 5.75rem;
    background-color: #fff;
    border-bottom: 1px solid #000;
    z-index: 2;
  }

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

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

  .menu__item {
    text-align: center;
  }

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

  .menu__link {
    font-size: 2rem;
  }

  .actions-header__button {
    padding: 0.75rem;
  }

  .main__container {
    padding-top: 12.5rem;
  }

  .main__container_pages {
    padding-top: 7rem;
  }
}

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 1rem;
}

.language-switcher__flag {
  width: 24px;
  height: 18px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  object-fit: cover;
}

.language-switcher__flag:hover {
  border-color: #0055a4;
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 85, 164, 0.35);
}

.language-switcher__flag.active {
  border-color: #0055a4;
  box-shadow: 0 0 0 2px rgba(0, 85, 164, 0.2);

  .main__title {
    font-size: 2rem;
  }

  .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: 4.375rem;
    padding-bottom: 4.375rem;
    gap: 4rem;
  }

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

  .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) {
  .reviews__row {
    grid-template-columns: 1fr;
  }

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

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

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

/* ==================== МОБИЛЬНАЯ АДАПТИВНОСТЬ (до 768px) ==================== */

@media (max-width: 768px) {
  /* Общие стили */
  body {
    font-size: 1rem;
  }

  [class*="__container"] {
    padding: 0 1rem;
  }

  .title {
    font-size: 2rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  /* Шапка сайта */
  .header__container {
    min-height: 4rem;
    padding: 0 1rem;
  }

  .header__logo {
    font-size: 1.5rem;
  }

  .header__navigation {
    gap: 0.5rem;
  }

  .language-switcher {
    margin: 0 0.5rem;
    gap: 0.25rem;
  }

  .language-switcher__flag {
    width: 20px;
    height: 15px;
  }

  .actions-header__button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  /* Главная секция */
  .main__container {
    padding-top: 8rem;
    padding-bottom: 2rem;
  }

  .main__caption {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

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

  .main__text {
    font-size: 0.95rem;
    max-width: 100%;
    padding: 0 1rem;
    margin-bottom: 2rem;
  }

  .main__button {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
  }

  /* Секция О нас */
  .about__container {
    flex-direction: column;
    padding-top: 4rem;
    padding-bottom: 4rem;
    gap: 2rem;
  }

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

  .about__title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }

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

  .about__text p:not(:last-child) {
    margin-bottom: 1.5rem;
  }

  /* Секция Услуги */
  .services__container {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

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

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

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

  .item-services__image {
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    height: 55vh;
    min-height: 280px;
    margin-left: 0;
    margin-right: 0;
  }

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

  .item-services__title {
    font-size: 1.25rem;
  }

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

  /* Секция Outro */
  .outro__container {
    padding: 4rem 1rem;
  }

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

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

  /* Футер */
  .footer__container {
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    gap: 1rem;
    text-align: center;
  }

  .footer__logo {
    font-size: 1.5rem;
    margin: 0.5rem 0;
  }

  .footer__legal,
  .footer__copyright {
    font-size: 0.85rem;
    margin: 0.5rem 0;
  }

  /* Модальное окно бронирования */
  .booking-modal__content {
    padding: 2rem 1.5rem;
    max-width: 95%;
    margin: 1rem;
  }

  .booking-modal__title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .booking-modal__field {
    margin-bottom: 1rem;
  }

  .booking-modal__field label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .booking-modal__field input,
  .booking-modal__field textarea {
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
  }

  .booking-modal__submit {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .booking-modal__close {
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
    top: 0.75rem;
    right: 0.75rem;
  }

  /* Меню на мобильных */
  .menu__body {
    padding: 6rem 1rem 2rem 1rem;
  }

  .menu__link {
    font-size: 1.5rem;
  }

  .menu__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
  }

  .menu__submenu-link {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
  }

  /* Блокировка скролла при открытом меню */
  body.menu-open {
    overflow: hidden;
  }
}

/* ==================== МОБИЛЬНАЯ АДАПТИВНОСТЬ (до 480px) ==================== */

@media (max-width: 480px) {
  /* Еще более компактные стили для маленьких экранов */
  .main__title {
    font-size: 1.75rem;
  }

  .main__caption {
    font-size: 0.8rem;
  }

  .title {
    font-size: 1.75rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .header__container {
    min-height: 3.5rem;
  }

  .main__container {
    padding-top: 6rem;
  }

  .services__title,
  .about__title,
  .outro__title {
    font-size: 1.75rem;
  }

  .actions-header__button {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  .language-switcher {
    margin: 0 0.25rem;
  }

  .language-switcher__flag {
    width: 18px;
    height: 13px;
  }

  .button {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }

  .booking-modal__content {
    padding: 1.5rem 1rem;
  }

  .booking-modal__title {
    font-size: 1.1rem;
  }

  /* Компактные отступы для внутренних страниц на мобильных */
  .main__container_pages {
    padding-top: 5rem !important;
  }

  /* Страницы галерей (общие стили) — компактнее */
  [class*="-gallery"] {
    padding: 3.5rem 0 2rem !important;
  }

  [class*="-gallery__title"] {
    font-size: 1.75rem !important;
    margin-bottom: 1rem !important;
    padding: 0 1rem;
  }

  [class*="-gallery__description"] {
    padding: 0 1rem;
    margin-bottom: 1.25rem !important;
  }

  [class*="-gallery__description"] p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0.85rem !important;
  }

  [class*="-gallery__description"] h3 {
    margin-top: 1.25rem !important;
    margin-bottom: 0.5rem !important;
  }

  [class*="-gallery__description"] ul {
    margin-bottom: 1rem !important;
  }

  [class*="-gallery__section"] {
    margin-bottom: 2rem !important;
    padding: 0 1rem;
  }

  [class*="-gallery__section-title"],
  [class*="-gallery__subsection-title"] {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }

  [class*="-gallery__section-content"] {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  [class*="-gallery__section-text"] p {
    font-size: 0.95rem !important;
  }

  [class*="-gallery__section-image"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  [class*="-gallery__section-image"] img {
    width: 100% !important;
    height: auto !important;
  }

  [class*="-gallery__tariff-box"] {
    padding: 1.5rem !important;
    margin: 1.5rem 0 !important;
  }

  [class*="-gallery__tariff-price"] {
    font-size: 2rem !important;
  }

  [class*="-gallery__tariff-detail"] {
    font-size: 0.9rem !important;
    margin-bottom: 0.75rem !important;
  }

  [class*="-gallery__booking"] {
    padding: 0 1rem !important;
    margin: 2rem auto 0 !important;
  }

  [class*="-gallery__booking-button"] {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9rem !important;
  }

  [class*="-gallery__list"] {
    padding-left: 1.5rem !important;
  }

  [class*="-gallery__list"] li {
    font-size: 0.95rem !important;
    margin-bottom: 0.75rem !important;
  }

  /* Адаптивные изображения */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Страница контактов */
  .contact__container {
    padding: 4rem 1rem !important;
  }

  .contact__title {
    font-size: 2rem !important;
    margin-bottom: 1.5rem !important;
  }

  .contact__info {
    gap: 2rem !important;
  }

  .contact__item {
    font-size: 0.95rem !important;
  }

  /* Страница услуг: на мобильном картинка на весь экран, текст под ней */
  .services-page__container {
    padding: 4rem 1rem !important;
  }

  .services-page__column {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: left !important;
    gap: 1.5rem !important;
    font-size: 0.95rem !important;
  }

  .services-page__img {
    order: 1;
    width: 100% !important;
    max-width: none !important;
    height: 55vh !important;
    min-height: 280px !important;
    margin: 0 -1rem !important;
    width: calc(100% + 2rem) !important;
    border-radius: 0 !important;
  }

  .services-page__img img,
  .services-page__img video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
  }

  .services-page__content {
    order: 2;
  }

  .services-page__title {
    font-size: 2rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* Галерея услуг - 6 картинок в одну колонку, один формат как Versailles */
  .services-page__gallery {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    gap: 2rem !important;
    max-width: none !important;
    width: 100% !important;
    margin-top: 2rem !important;
    justify-items: stretch !important;
  }

  .services-page__gallery-item {
    width: 100% !important;
    max-width: none !important;
    height: 55vh !important;
    min-height: 260px !important;
    overflow: hidden !important;
    border-radius: 16px !important;
  }

  .services-page__gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 16px !important;
  }

  /* Отзывы */
  .testimonial__container {
    padding: 4rem 1rem !important;
  }

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

  .item-testimonial {
    padding: 1.5rem !important;
  }

  .item-testimonial__text {
    font-size: 0.95rem !important;
  }
}