:root {
  --color-primary: #fd2b3c;
  --color-text: #1e1e1e;
  --color-title: #000000;
  --color-white: #fff8f2;
  --transition: all 0.3s ease;
}

body.page-scrolling .site-header {
  box-shadow: 0 0.25rem 0.25rem 0 #efefef;
}

.header-menu li:last-child {
  display: none;
}

.home-top-section {
  background: linear-gradient(to bottom, #efefef 0%, #ffffff 100%);
}

.home-top-section::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(13rem, 43.6875vw, 43.6875rem);
  height: clamp(13.1875rem, 25.875vw, 25.875rem);
  background: url(../img/union.svg) no-repeat center center;
  background-size: contain;
}
@media (max-width: 768px) {
  .home-top-section::after {
    width: 13rem;
    height: 13.1875rem;
    background: url(../img/union-mobile.svg) no-repeat center center;
  }
}

.custom-logo-link {
  display: flex;
  align-items: center;
}

.site-header .site-header-wrap {
  justify-content: space-between;
  max-width: 97rem;
  min-height: 4.25rem;
  padding: 0;
  position: relative;
}

.header-navigation {
  margin: 0;
  padding: 0;
}
@media (max-width: 768px) {
  .header-navigation {
    display: none;
  }
}

.header-navigation .header-menu {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 2rem;
}
.header-navigation .header-menu a {
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.375;
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition);
}

.header-navigation .header-menu a:hover {
  color: var(--color-primary);
}

.header-contact-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-header .hamburger {
  margin-left: auto;
}

.header-contact-wrap .hamburger {
  height: 1.5rem;
}

@media (max-width: 768px) {
  .header-contact {
    opacity: 0;
  }
}

.button-primary,
.button-primary:hover,
.button-primary:focus,
.button-primary:visited {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.71429;
  letter-spacing: -0.04em;
  color: #fff8f2;
  color: var(--color-white);
  display: inline-block;
  background-color: var(--color-primary);
  border-radius: 3.62rem;
  padding: 0.5rem 1.3rem;
  text-decoration: none;
  transition: color 0.3s, background-color 0.3s;
  cursor: pointer;
  border: none;
  outline: none;
  transition: box-shadow 0.3s;
}

.button-primary:hover {
  box-shadow: 0 0.375rem 0.875rem 0 rgba(253, 69, 77, 0.37);
}
.button-primary:focus,
.footer-socials a:focus,
.wpcf7-submit:focus,
.about-link:focus {
  outline: 2px dotted #000000;
}
.footer-contact-us .contact-block input.wpcf7-submit:focus,
.footer-socials a:focus {
  outline: 2px dotted var(--color-white);
}
.button-primary.button-video {
  font-size: 1.125rem;
  line-height: 1.33;
  padding: 1.1rem 2.1rem;
}

.home-top-section .top-sect-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 2rem;
  max-width: 50rem;
  margin: 0 auto;
  padding: 8.5rem 0 5rem;
  height: 100vh;
  height: 100dvh;
  min-height: 30rem;
}

@media (max-width: 768px) {
  .button-primary.button-video {
    font-size: 1rem;
    line-height: 1.5;
    padding: 0.56rem 2rem;
  }
  .home-top-section .top-sect-inner {
    padding-top: 5rem;
  }
}

@media screen and (orientation: landscape) and (max-height: 500px) {
  .home-top-section .top-sect-inner {
    height: auto;
    min-height: 100vh;
  }
}

.home-top-section .main-header {
  font-style: normal;
  font-weight: 500;
  font-size: 4.5rem;
  line-height: 1.25;
  letter-spacing: -0.156rem;
  color: var(--color-text);
  margin: 0;
}
@media (max-width: 768px) {
  .home-top-section .main-header {
    font-size: 3.5rem;
    line-height: 3.75rem;
  }
}
.home-top-section .main-header mark {
  display: inline-block;
  background: none;
  color: var(--color-primary);
  font-family: "Instrument Serif", sans-serif;
  font-style: italic;
  font-weight: 400;
}
.home-top-section .txt {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.031rem;
  color: var(--color-text);
  max-width: 36rem;
  margin: 0 auto;
  padding-top: 0.5rem;
  white-space: normal;
}
@media (max-width: 768px) {
  .home-top-section .txt {
    font-size: 1rem;
  }
}
.top-part {
  width: 3.75rem;
  height: 3.75rem;
  min-width: 3.75rem;
  min-height: 3.75rem;
  background: url(../img/visual.svg) no-repeat center center;
  background-size: contain;
  margin: 0 auto -0.5rem;
}
@media (max-width: 768px) {
  .home-top-section .bottom-part {
    padding: 0;
    min-height: 0;
  }
}

.home-work-sect .home-work-header,
.services-section .header-services {
  color: var(--color-text);
  text-align: center;
  font-size: 3rem;
  line-height: 1.25;
}

.services-section {
  background-color: #fff;
}
.services-section .home-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5.62rem;
}
@media (max-width: 1300px) {
  .services-section .home-container {
    margin: 0 1rem;
  }
}
.service-item .header {
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.33333;
  letter-spacing: -0.06rem;
  color: var(--color-text);
}
.service-item .txt {
  font-size: 1.12rem;
  line-height: 1.55556;
  letter-spacing: -0.03em;
  color: #1e1e1e;
}
.service-item .service-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-item .service-link::after {
  content: "";
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  background: url(../img/solid.svg) no-repeat center center;
  background-size: 0.75rem 0.75rem;
}
#modal-bg-video.modal-bg {
  padding: 2rem;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.modal-outer-wrap-video {
  position: relative;
  width: 100vh;
  max-width: 62.5rem;
  aspect-ratio: 16 / 9;
  background: #000;
  transition: transform 0.5s;
}
.modal-bg.show .modal-outer-wrap-video {
  transform: scale(1);
}
#modal-bg-video .modal-outer-wrap-video .modal-close-btn {
  position: absolute;
  top: -4rem;
  right: 0;
  opacity: 1;
  transition: opacity 0.3s;
}
#modal-bg-video .modal-outer-wrap-video .modal-close-btn:hover {
  opacity: 0.6;
}
.modal-outer-wrap-video .video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
}

.modal-outer-wrap-video .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  display: block;
}

/* 4K screens (2160p and higher) */
@media (min-width: 2160px) {
  .modal-outer-wrap-video {
    max-width: 100rem;
  }
}

/* Ultra-wide 4K */
@media (min-width: 3840px) {
  .modal-outer-wrap-video {
    max-width: 120rem;
  }
}

@media (max-height: 400px) {
  #modal-bg-video .modal-outer-wrap-video .modal-close-btn {
    top: -3rem;
  }
}
