.page {
  position: relative;
  color: var(--accent-color);
  font-family: var(--main-font), sans-serif;
  font-weight: 400;
  font-style: normal;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: var(
    --page-background-image,
    url("../images/background.jpg")
  );
  background-size: cover;
  background-position: center;
}

.page__overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--page-background-color);
}

.header {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px;
  background: var(--header-background-color);
}

.header__container {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
}

.header__logo {
  justify-self: start;
  max-width: 64px;
  height: 64px;
  transition: transform 0.5s ease-out;
  transform: scale(1);
}

.header__logo-image {
  width: inherit;
  height: inherit;
}

.header__nav {
  display: flex;
  justify-self: center;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.header__nav-link {
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 8px 10px;
  color: var(--text-color-header);
  font-size: 26px;
  font-style: normal;
  text-decoration: none;
  transition:
    border-color 1s,
    transform 0.5s;
  transform: scale(1);
}

.header__nav-link:hover {
  border-color: var(--text-color-header);
  transform: scale(1.1);
}

.btn {
  border: 2px solid transparent;
  border-radius: 50%;
  color: var(--text-color-header);
  font-size: 20px;
  font-style: normal;
  transition: transform 0.5s ease-out;
  transform: scale(1);
  cursor: pointer;
}

.header__lang {
  display: flex;
  gap: 8px;
}

.header__lang-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  background: transparent;
}

.header__logo:hover,
.btn:hover,
.footer__logo:hover,
.footer__contacts-link:hover {
  transform: scale(1.1);
}

.header__lang-btn.is-active {
  border-color: var(--text-color-header);
  background-color: var(--button-background-color);
}

.header__menu {
  justify-self: end;
}

/* Main */

.container_size_limit {
  width: 100%;
  margin: 0 auto;
  max-block-size: 470px;
  max-inline-size: 1440px;
}

.hero {
  display: flex;
  justify-content: center;
  background: linear-gradient(
    45deg,
    rgba(244, 235, 220, 0.5) 30%,
    rgb(149, 130, 124, 0.7) 100%
  );
}

.hero__container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__content-text {
  display: flex;
  flex-direction: column;
  justify-self: center;
  gap: 20px;
  padding: 10px;
}

.hero__title {
  color: var(--text-color-main);
  font-family: var(--title-font), sans-serif;
  font-weight: 400;
  font-size: 80px;
  font-style: normal;
  text-shadow: 2px 2px 2px var(--text-color-header);
}

.hero__subtitle {
  color: var(--text-color-main);
  font-weight: 400;
  font-size: 20px;
  font-style: normal;
  text-shadow: 2px 2px 2px var(--text-color-header);
}

.hero__actions {
  padding-top: 20px;
}

.hero__btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-color: var(--text-color-header);
  border-radius: 30px;
  padding: 10px;
  text-decoration: none;
  background-color: var(--button-background-color);
}

.hero__content-image {
  justify-self: center;
  max-width: 50%;
  max-height: inherit;
  padding-top: 10px;
  overflow: hidden;
}

.hero__image {
  display: block;
  width: 100%;
  height: auto;
}

.services {
  display: flex;
  justify-content: center;
  background: linear-gradient(
    45deg,
    rgba(244, 235, 220, 0.5) 30%,
    rgb(149 130 124 / 60%) 100%
  );
}

.services__container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.services__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-color-main);
  text-align: center;
}

.services__title {
  font-size: 26px;
}

.services__desc {
  font-size: 20px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(18, 12, 8, 0.06);
  background: var(--card-background-color);
}

.card:hover {
  background: var(--text-color-header);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: var(--text-color-header);
  background: var(--button-background-color);
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.card__title {
  color: var(--text-color-main);
}

.list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

li {
  color: var(--text-color-main);
}

.video {
  display: flex;
  justify-content: center;
  background: linear-gradient(
    45deg,
    rgba(244, 235, 220, 0.5) 30%,
    rgb(149 130 124 / 60%) 100%
  );
}

.video__container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.video .container_size_limit {
  max-block-size: none;
}

.video__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-color-main);
  text-align: center;
}

.video__title {
  font-size: 26px;
}

.video__desc {
  font-size: 20px;
}

.video .cards {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card__video {
  width: 100%;
}

.about {
  display: flex;
  justify-content: center;
  background: linear-gradient(
    45deg,
    rgba(244, 235, 220, 0.5) 30%,
    rgb(149 130 124 / 60%) 100%
  );
}

.about__container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.about .container_size_limit {
  max-block-size: none;
}

.about__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-color-main);
  text-align: center;
}

.about__title {
  font-size: 26px;
}

.about__desc {
  font-size: 20px;
}

.about__content {
  display: flex;
  gap: 10px;
}

.about__content-image {
  justify-self: center;
  max-width: 35%;
  max-height: inherit;
  padding-top: 10px;
  overflow: hidden;
}

.about__image {
  display: block;
  width: 100%;
  height: auto;
}

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

.about .card__title {
  font-size: 26px;
}

.about .list {
  gap: 10px;
}

.about li {
  font-size: 22px;
}

.reveal {
  opacity: 0;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transition-delay: var(--d, 0ms);
  transform: translateY(16px);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  position: relative;
  top: 0;
  z-index: 1;
  padding: 10px;
  background: var(--header-background-color);
}

.footer__container {
  display: flex;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  justify-self: start;
  max-width: 64px;
  height: 64px;
  transition: transform 0.5s ease-out;
  transform: scale(1);
}

.footer__logo-image {
  width: inherit;
  height: inherit;
}

.footer__contacts {
  display: flex;
  gap: 8px;
}

.footer__contacts-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  border: 2px solid transparent;
  border-color: var(--text-color-header);
  border-radius: 50%;
  color: var(--text-color-header);
  transition: transform 0.5s ease-out;
  transform: scale(1);
  cursor: pointer;
}

.footer__menu {
  justify-self: end;
}

#services,
#media,
#about {
  scroll-margin-top: 84px;
}

@media (width <= 1440px) {
  .container_size_limit {
    padding: 0 20px;
  }
}

@media (width <= 1024px) {
  .hero__title {
    align-self: center;
    font-size: 70px;
  }

  .hero__subtitle {
    text-align: center;
  }

  .hero__actions {
    align-self: center;
  }

  .about__container {
    gap: 0;
  }

  .about__content {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .about__content-image {
    max-width: 50%;
  }
}

@media (width <= 768px) {
  .header {
    position: relative;
  }

  .header__nav {
    flex-direction: column;
    gap: 0;
  }

  .header__nav-link {
    font-size: 20px;
  }

  .header__lang {
    flex-direction: column;
    gap: 0;
  }

  .hero__container {
    flex-direction: column;
  }

  .container_size_limit {
    max-block-size: none;
  }

  .hero .container_size_limit {
    max-block-size: 700px;
  }

  .hero__content-text {
    align-items: center;
    text-align: center;
  }

  .hero__title {
    font-size: 40px;
  }

  .hero__subtitle {
    text-align: center;
    font-size: 16px;
  }

  .hero__actions {
    padding-bottom: 20px;
  }

  .hero__btn {
    font-size: 18px;
  }

  .hero__content-image {
    max-width: 80%;
    padding-bottom: 10px;
  }

  .services__container {
    align-items: stretch;
  }

  .cards {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 14px;
    text-align: center;
  }

  .card {
    width: 100%;
  }

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

  .card__icon {
    display: none;
  }

  .video .cards {
    grid-template-columns: 1fr;
  }

  .about__content-image {
    max-width: 70%;
  }

  #services,
  #media,
  #about {
    scroll-margin-top: 0;
  }
}
