/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

* {
  padding: 0;
  margin: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  line-height: 130%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: "Instrument Sans";
  src:
    url("./fonts/InstrumentSans-Medium.woff2") format("woff2"),
    url("./fonts/InstrumentSans-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Heading Compressed Pro";
  src:
    url("./fonts/heading-compressed-pro-bold 2.woff2") format("woff2"),
    url("./fonts/heading-compressed-pro-bold 2.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  font-size: 20px;
  background-color: #ffffff;
  font-family: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #012b19;
  letter-spacing: 0em;
  position: relative;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Heading Compressed Pro", "Instrument Sans", sans-serif;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 80px;
}

.section {
  margin-top: 80px;
  scroll-margin-top: 120px;
}

.container {
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero_bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(1, 43, 25, 0.8) 0%, rgba(1, 43, 25, 0.3) 100%);
  z-index: 2;
}

.hero_info {
  position: relative;
  z-index: 3;
}

.btns {
  display: flex;
  gap: 20px;
}

.btn {
  display: inline-block;
  padding: 30px 40px;
  background: #93c43c;
  color: #000;
  text-decoration: none;
  border-radius: 100px;
  transition: all 0.3s ease;
  margin-top: 80px;
}

.btn:hover {
  scale: 0.97;
  opacity: 0.8;
  cursor: pointer;
}

.btn_book {
  background: #fff;
}

.hero_info {
  color: #fff;
}

h1 span {
  color: #93c43c;
}

h1 {
  font-size: clamp(52px, 8vw, 120px);
  line-height: 80% !important;
}

.hero_info_descr {
  font-size: 28px;
  margin-top: 20px;
  max-width: 600px;
}

.footer {
  background: #012b19;
  color: #fff;
  padding: 50px;
  border-radius: 20px;
  margin-top: 80px;
  margin-bottom: 20px;
}

.footer_inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.footer_title {
  color: #93c43c;
  font-size: clamp(26px, 4vw, 60px);
  line-height: 90% !important;
}

h2 {
  font-size: clamp(26px, 4vw, 60px);
  line-height: 90% !important;
}

h2 span {
  color: #93c43c;
}

p {
  margin-bottom: 20px;
}

.footer_descr {
  font-size: 28px;
  margin-top: 50px;
}

.footer_contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer_contact {
  color: #fff;
  font-family: "Heading Compressed Pro", "Instrument Sans", sans-serif;
  font-size: clamp(54px, 5vw, 90px);
  font-weight: 700;
  line-height: 100%;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: all 0.3s ease;
}

.footer_contact:hover,
.footer_link:hover {
  opacity: 0.7;
}

.footer_contact + .footer_contact {
  margin-top: 40px;
}

.footer_address {
  color: #fff;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 130%;
  margin-top: 40px;
}

.footer_btn {
  margin-top: 80px;
  align-self: flex-start;
}

.footer_bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  margin-top: 120px;
}

.footer_copy,
.footer_link {
  color: #fff;
  font-size: 16px;
}

.footer_links {
  display: flex;
  gap: 50px;
}

.footer_link {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: all 0.3s ease;
}

.bullets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bullet_item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #f3ffdc;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid #c8e4d8;
}

.bullet_item img {
  width: 60px;
  object-fit: contain;
}

.bullet_title {
  font-size: 40px;
  font-family: "Heading Compressed Pro", "Instrument Sans", sans-serif;
}

.bullet_item_info {
  margin-top: 20px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
  padding: 12px 0;
  box-shadow: none;
  transform: translateY(0);
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.3s ease,
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
  will-change: transform;
}

.header_scrolled {
  background: rgba(1, 43, 25, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.header_hide {
  transform: translateY(-110%);
}

.header_block {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header_block_inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.menu_link,
.contacts_link {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.menu_link:hover,
.contacts_link:hover {
  opacity: 0.7;
}

.header_logo img {
  width: 180px;
}

.contacts {
  display: flex;
  align-items: center;
  gap: 30px;
}

.services_block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.service_item {
  position: relative;
  min-height: 520px;
  cursor: pointer;
  perspective: 1200px;
  transition: all 0.3s ease;
}

.service_item:hover {
  transform: scale(0.98);
  cursor: pointer;
}

.service_item_inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}

.service_item.is_flipped .service_item_inner {
  transform: rotateY(180deg);
}

.service_item_front,
.service_item_back {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #f3ffdc;
  padding: 30px;
  border: 1px solid #c8e4d8;
  border-radius: 20px;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: 0 20px 40px rgba(1, 43, 25, 0.08);
}

.service_item_back {
  background: #012b19;
  color: #fff;
  border-color: #012b19;
  transform: rotateY(180deg);
}

.service_item_back_btns .btn {
  padding: 20px 30px;
  margin-top: 0px;
}

.service_item_back_btns .btn_book {
  background: #fff;
  color: #012b19;
}

.service_item_back_btns {
  display: flex;
  gap: 10px;
  margin-top: 40px;
}

.service_item_back_content {
  margin-top: 30px;
}

.service_item_title {
  font-size: 40px;
  font-family: "Heading Compressed Pro", "Instrument Sans", sans-serif;
  margin-top: 40px;
}

.service_item_back .service_item_title {
  margin-top: 0;
}

.service_item_thumbnail {
  height: 300px;
}

.service_item_thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.team {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 60px;
}

.team_item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.team_item_img {
  aspect-ratio: 1 / 1;
  background: #f3ffdc;
  border: 1px solid #c8e4d8;
  border-radius: 20px;
  overflow: hidden;
}

.team_item_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team_item_name {
  font-size: 40px;
  line-height: 100% !important;
}

.team_item_position {
  color: #5f8f23;
  font-size: 16px;
  margin-top: 10px;
}

.team_item_text {
  margin-top: 30px;
  font-size: 18px;
}

.team_item_text p:last-child {
  margin-bottom: 0;
}

.man {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 20px;
}

.man_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  z-index: 1;
}

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

.man_info .btn {
  color: #000;
  background: #fff;
}

.man_info h2 {
  color: #fff;
  max-width: 600px;
}

.description {
  margin-top: 40px;
  max-width: 600px;
}

.case_block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.case_item {
  position: relative;
  aspect-ratio: 16 / 10;
  cursor: pointer;
  perspective: 1200px;
  transition: all 0.3s ease;
}

.case_item:hover {
  transform: scale(0.98);
  cursor: pointer;
}

.case_item_inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}

.case_item.is_flipped .case_item_inner {
  transform: rotateY(180deg);
}

.case_item_front,
.case_item_back {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #012b19;
  border-radius: 20px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: 0 20px 40px rgba(1, 43, 25, 0.08);
}

.case_item_back {
  transform: rotateY(180deg);
}

.case_item_img,
.case_item_img img {
  width: 100%;
  height: 100%;
}

.case_item_img img {
  display: block;
  object-fit: cover;
  transition: opacity 0.45s ease;
}

.case_item_back .case_item_img img {
  opacity: 0.3;
}

.case_item_info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: #fff;
}

.case_item_title {
  font-size: 40px;
  font-family: "Heading Compressed Pro", "Instrument Sans", sans-serif;
}

.case_item_text {
  max-width: 680px;
  margin-top: 20px;
}

.page_inner {
  margin-top: 200px;
}

.page_404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  padding-bottom: 100px;
  height: 100vh;
  width: 100%;
}

.page_404_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.btn_home {
  background: #fff;
  color: #000;
  margin: 0 20px;
}

.page_content {
  margin-top: 60px;
}

.page_content ul {
  margin-left: 20px;
}

body.quote_popup_open {
  overflow: hidden;
}

.quote_popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.quote_popup.is_open {
  opacity: 1;
  pointer-events: auto;
}

.quote_popup_overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.quote_popup_content {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  color: #012b19;
  padding: 30px 30px 10px 30px;
  border-radius: 20px;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quote_popup.is_open .quote_popup_content {
  transform: translateY(0) scale(1);
}

.quote_popup_close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f3ffdc;
  color: #012b19;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.quote_popup_title {
  font-family: "Heading Compressed Pro", "Instrument Sans", sans-serif;
  font-size: 40px;
  line-height: 90%;
  text-align: center;
}

.quote_popup_text {
  max-width: 520px;
  margin: 25px auto 35px;
  text-align: center;
}

.quote_popup .wpforms-container {
  margin: 0;
}

.quote_popup .wpforms-field {
  padding: 0 0 28px;
}

.quote_popup .wpforms-field-label {
  font-weight: 500;
}

.quote_popup input,
.quote_popup select,
.quote_popup textarea {
  border: 0 !important;
  border-bottom: 1px solid rgba(1, 43, 25, 0.5) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  font-size: 20px !important;
}

.quote_popup textarea {
  min-height: 120px;
}

.quote_popup .wpforms-submit {
  width: 100%;
  padding: 28px 40px !important;
  background: #93c43c !important;
  color: #000 !important;
  border: 0 !important;
  border-radius: 100px !important;
}

.wpforms-container input.wpforms-field-medium,
.wpforms-container select.wpforms-field-medium,
.wpforms-container .wpforms-field-row.wpforms-field-medium,
.wp-core-ui div.wpforms-container input.wpforms-field-medium,
.wp-core-ui div.wpforms-container select.wpforms-field-medium,
.wp-core-ui div.wpforms-container .wpforms-field-row.wpforms-field-medium {
  max-width: 100% !important;
}

.wpforms-submit {
  height: 80px !important;
  font-size: 20px !important;
  transition: all 0.3s ease !important;
}
.wpforms-submit:hover {
  scale: 0.97 !important;
  opacity: 0.8 !important;
  cursor: pointer !important;
}

.wpforms-container {
  font-size: 20px !important;
}

@media (max-width: 1200px) {
  .header_block_inner {
    gap: 40px;
  }

  .contacts,
  .menu {
    gap: 18px;
  }

  .header_logo img {
    width: 140px;
  }

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

  .footer_contact {
    font-size: clamp(46px, 5vw, 72px);
  }
}

@media (max-width: 991px) {
  .section {
    margin-top: 60px;
  }

  .header_block {
    align-items: flex-start;
    gap: 18px;
  }

  .header_block_inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .contacts {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    font-size: 16px;
  }

  .menu {
    flex-wrap: wrap;
  }

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

  .bullet_item {
    min-height: 220px;
  }

  .team_item,
  .man {
    grid-template-columns: 1fr;
  }

  .team_item_img {
    max-width: 520px;
  }

  .man {
    min-height: 520px;
    aspect-ratio: auto;
    padding: 40px;
  }

  .man > div:first-of-type {
    display: none;
  }

  .footer_inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .footer_btn {
    align-self: flex-start;
  }

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

@media (max-width: 767px) {
  body {
    font-size: 18px;
  }

  .container {
    padding: 0 15px;
  }

  .header {
    padding: 10px 0;
  }

  .header_block {
    align-items: center;
    gap: 15px;
    justify-content: space-between;
  }

  .header_block_inner {
    align-items: center;
    flex-direction: row;
  }

  .header_logo img {
    width: 115px;
  }

  .menu {
    display: none;
  }

  .contacts {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 14px;
    gap: 0;
  }

  .contacts_link[href^="mailto:"] {
    display: none;
  }

  .hero {
    min-height: 680px;
    height: auto;
    padding-bottom: 45px;
  }

  h1 {
    font-size: clamp(52px, 12vw, 86px);
  }

  h2,
  .footer_title {
    font-size: clamp(26px, 6vw, 42px);
  }

  .hero_info_descr,
  .footer_descr {
    font-size: 22px;
  }

  .btns,
  .service_item_back_btns {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    padding: 22px 30px;
    text-align: center;
    margin-top: 35px;
  }

  .btns .btn + .btn {
    margin-top: 0;
  }

  .services_block {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .service_item {
    min-height: 470px;
  }

  .service_item_front,
  .service_item_back {
    padding: 24px;
  }

  .service_item_thumbnail {
    height: 260px;
  }

  .service_item_title,
  .case_item_title,
  .bullet_title {
    font-size: 34px;
  }

  .service_item_back_content {
    margin-top: 20px;
    font-size: 16px;
  }

  .team {
    gap: 40px;
    margin-top: 40px;
  }

  .team_item {
    gap: 25px;
  }

  .team_item_img {
    max-width: 100%;
  }

  .team_item_name {
    font-size: 34px;
  }

  .team_item_text {
    margin-top: 20px;
    font-size: 16px;
  }

  .man {
    min-height: 460px;
    padding: 25px;
  }

  .description {
    margin-top: 25px;
  }

  .case_item {
    aspect-ratio: auto;
    min-height: 420px;
  }

  .case_item_info {
    padding: 24px;
  }

  .case_item_text {
    font-size: 16px;
  }

  .footer {
    padding: 35px 25px;
    margin-top: 60px;
  }

  .footer_descr {
    margin-top: 30px;
  }

  .footer_contact {
    font-size: clamp(38px, 11vw, 58px);
  }

  .footer_contact + .footer_contact {
    margin-top: 25px;
  }

  .footer_address {
    font-size: 20px;
    margin-top: 25px;
  }

  .footer_btn {
    margin-top: 50px;
  }

  .footer_bottom {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 25px;
    margin-top: 80px;
  }

  .footer_links {
    gap: 25px;
  }

  .quote_popup {
    padding: 12px;
  }

  .quote_popup_content {
    width: 100%;
    padding: 42px 20px 18px;
    border-radius: 16px;
  }

  .quote_popup_title {
    font-size: 36px;
  }

  .quote_popup_text {
    margin: 18px auto 25px;
  }

  .quote_popup input,
  .quote_popup select,
  .quote_popup textarea,
  .wpforms-container {
    font-size: 16px !important;
  }

  .wpforms-submit {
    height: 66px !important;
    font-size: 16px !important;
  }
}

@media (max-width: 480px) {
  .header_block {
    justify-content: space-between;
  }

  .header_block_inner {
    flex-direction: row;
  }

  .hero {
    min-height: 620px;
  }

  .hero_title br,
  .footer_title br {
    display: none;
  }

  .btn {
    max-width: none;
  }

  .bullet_item,
  .service_item_front,
  .service_item_back {
    border-radius: 16px;
  }

  .service_item {
    min-height: 450px;
  }

  .service_item_thumbnail {
    height: 220px;
  }

  .service_item_back_btns .btn {
    width: 100%;
  }

  .case_item {
    min-height: 390px;
  }

  .footer {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .footer_links {
    flex-direction: column;
    gap: 14px;
  }
}
