:root {
  --bg: #ffffff;
  --text: #212529;
  --muted: #6d776f;
  --heading: #243f2d;
  --accent: #2f6f3e;
  --accent-dark: #255b32;
  --surface: #f5f7f3;
  --dark: #101010;
  --white: #ffffff;
  --border: rgba(0, 0, 0, 0.12);
  --shadow: 0 16px 45px rgba(0, 0, 0, 0.08);
  --header-height: 68px;
  --default-font: "Open Sans", system-ui, sans-serif;
  --heading-font: "Marcellus", serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  padding-top: var(--header-height);
  font-family: var(--default-font);
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.25s ease;
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--heading);
  font-family: var(--heading-font);
}

img {
  max-width: 100%;
  display: block;
}

.section {
  padding: 92px 0;
}

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.scrolled .header {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.header .container-xl {
  height: 100%;
}

.logo img {
  max-height: 30px;
}

.navmenu ul {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navmenu a {
  position: relative;
  font-size: 16px;
  font-weight: 500;
  color: #2c342f;
}

.navmenu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.navmenu a:hover,
.navmenu a.active {
  color: var(--accent);
}

.navmenu a:hover::after,
.navmenu a.active::after {
  transform: scaleX(1);
}

.mobile-nav-toggle {
  display: none;
  font-size: 28px;
  color: var(--heading);
  cursor: pointer;
}

.hero {
  padding: 0;
  background: var(--dark);
}

.hero .carousel,
.hero .carousel-item,
.hero .carousel-item img {
  min-height: calc(100vh - var(--header-height));
}

.hero .carousel-item {
  position: relative;
}

.hero .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.34);
  z-index: 1;
}

.hero .carousel-item img {
  width: 100%;
  object-fit: cover;
}

.hero .carousel-container {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 72px;
}

.hero h2,
.hero p {
  color: var(--white);
}

.hero h2 {
  max-width: 820px;
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  line-height: 1.03;
}

.hero p {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: 18px;
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
  width: 7%;
  z-index: 3;
}

.hero .carousel-control-prev-icon,
.hero .carousel-control-next-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-image: none;
  background: rgba(255, 255, 255, 0.14);
  font-size: 30px;
}

.hero .carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 30px;
}

.hero .carousel-indicators li {
  width: 46px;
  height: 4px;
  list-style: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero .carousel-indicators li.active {
  background: var(--white);
}

.section-title {
  margin-bottom: 48px;
  text-align: center;
}

.section-title h2 {
  margin-bottom: 8px;
  font-size: 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-title p {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.12;
}

.about-3 .container,
.services-2 .container,
.about .container,
.team .container,
.contact .container {
  max-width: 1480px;
}

.about-3 .content-title {
  font-size: clamp(2.3rem, 4vw, 3.5rem);
  color: #356f44;
}

.about-3 p,
.about-3 .list-check li {
  font-size: 18px;
  line-height: 1.7;
}

.list-check {
  margin: 0 0 34px;
  padding: 0;
}

.list-check li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 28px;
  list-style: none;
}

.list-check li::before {
  content: "\f26a";
  position: absolute;
  left: 0;
  top: 1px;
  font-family: bootstrap-icons !important;
  color: var(--accent);
}

.btn-cta {
  display: inline-block;
  padding: 18px 34px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-cta:hover {
  color: var(--white);
  background: var(--accent-dark);
}

.pulsating-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(var(--accent) 52%, rgba(47, 111, 62, 0.3) 54%);
}

.pulsating-play-btn::before {
  content: "";
  position: absolute;
  inset: -16px;
  border: 5px solid rgba(47, 111, 62, 0.26);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.pulsating-play-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 20px solid var(--white);
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
}

.video-modal.is-open {
  display: flex;
}

.video-modal-dialog {
  width: min(960px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-modal video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.video-modal-close {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.26);
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }

  100% {
    transform: scale(1.14);
    opacity: 0;
  }
}

.services-2 {
  background: var(--dark);
  color: var(--white);
}

.services-2 .section-title {
  text-align: left;
}

.services-2 .section-title-action {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.services-2 .section-title h2 {
  color: rgba(255, 255, 255, 0.6);
}

.services-2 .section-title p {
  color: var(--white);
  max-width: 760px;
}

.gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--white);
  font-weight: 700;
}

.gallery-link:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.services-carousel-wrap {
  position: relative;
}

.services-2 .swiper {
  padding: 0 8px 56px;
}

.services-2 .service-item {
  position: relative;
  overflow: hidden;
  height: 560px;
}

.services-2 .service-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.08) 55%);
  z-index: 1;
}

.services-2 .service-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-item-contents {
  position: absolute;
  right: 28px;
  bottom: 24px;
  left: 28px;
  z-index: 2;
}

.service-item-category {
  display: inline-block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.service-item-title {
  margin: 0;
  color: var(--white);
  font-size: 34px;
}

.navigation-prev,
.navigation-next {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 56px;
  height: 56px;
  border: 0;
  background: var(--white);
  color: #111;
  transform: translateY(-50%);
}

.navigation-prev {
  left: 8px;
}

.navigation-next {
  right: 8px;
}

.navigation-prev i,
.navigation-next i {
  font-size: 34px;
  line-height: 1;
}

.swiper-pagination-bullet {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #6ab37d;
}

.about {
  padding: 0;
}

.about .content {
  background: transparent;
}

.img-overlap {
  width: 100%;
  height: 100%;
  min-height: 660px;
  object-fit: cover;
}

.about-panel {
  padding: 76px 74px 76px 86px;
  background: #356f44;
}

.about .content-subtitle,
.about .content-title,
.about .about-panel i,
.about .about-panel h4,
.about .about-panel p {
  color: var(--white);
}

.about .content-subtitle {
  margin-bottom: 14px;
  font-size: 24px;
  text-transform: uppercase;
}

.about .content-title {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.12;
}

.team {
  background: var(--bg);
}

.team .section-title h2 {
  color: #3b5671;
}

.team .person {
  text-align: center;
}

.team .person figure {
  position: relative;
  overflow: hidden;
  margin: 0 0 26px;
  background: #f4f4ef;
}

.team .person img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.team .social {
  position: absolute;
  bottom: 18px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team .social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: var(--white);
  color: var(--accent);
}

.team .social a:hover {
  background: var(--accent);
  color: var(--white);
}

.person-contents h3 {
  margin-bottom: 8px;
  font-size: 28px;
  color: #3b5671;
}

.person-contents .position {
  color: var(--accent);
  font-size: 18px;
}

.contact {
  padding-top: 0;
}

.contact .info {
  height: 100%;
  padding: 42px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact .info h3 {
  margin-bottom: 16px;
  font-size: 44px;
  color: #3b5671;
}

.contact .info > p {
  margin-bottom: 24px;
  color: var(--muted);
}

.info-item + .info-item {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.info-item i {
  margin-right: 18px;
  color: var(--accent);
  font-size: 22px;
}

.info-item h4 {
  margin-bottom: 6px;
  font-size: 18px;
  font-family: var(--default-font);
  font-weight: 700;
}

.info-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-form .form-group {
  margin-bottom: 0;
}

.contact-form .form-control {
  min-height: 58px;
  border-radius: 0;
  border: 1px solid var(--border);
  box-shadow: none;
}

.contact-form textarea.form-control {
  min-height: 180px;
  resize: vertical;
}

.contact-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: none;
}

.contact-form button {
  margin-top: 18px;
  padding: 16px 34px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
}

.contact-form button:hover {
  background: var(--accent-dark);
}

.contact iframe {
  border: 0;
}

.gallery-hero {
  position: relative;
  padding: 118px 0 76px;
  background: linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)), url("../img/hero_1.jpg") center / cover;
}

.gallery-hero h1 {
  margin: 18px 0 10px;
  color: var(--white);
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.98;
}

.gallery-hero p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.back-link:hover {
  color: var(--white);
}

.gallery-section {
  background: var(--surface);
}

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

.gallery-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: #000;
}

.gallery-card-wide {
  grid-column: span 2;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.08) 60%);
}

.gallery-card span {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  z-index: 1;
  color: var(--white);
  font-family: var(--heading-font);
  font-size: 28px;
  line-height: 1.1;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.footer {
  background: #141414;
}

.copyright {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.9);
  background: #090909;
  font-size: 15px;
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  color: var(--white);
  background: var(--accent-dark);
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--white);
}

#preloader::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(47, 111, 62, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (max-width: 1199px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navmenu ul {
    position: fixed;
    top: var(--header-height);
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .mobile-nav-active .navmenu ul {
    display: flex;
  }

  .hero h2,
  .hero p {
    text-align: center;
    margin-right: auto;
    margin-left: auto;
  }

  .about-panel {
    padding: 48px 32px;
  }

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

@media (max-width: 767px) {
  :root {
    --header-height: 62px;
  }

  .section {
    padding: 72px 0;
  }

  .hero .carousel,
  .hero .carousel-item,
  .hero .carousel-item img {
    min-height: calc(68vh - var(--header-height));
  }

  .hero .carousel-container {
    padding-bottom: 54px;
  }

  .hero .carousel-control-prev,
  .hero .carousel-control-next {
    display: none;
  }

  .services-2 .service-item {
    height: 420px;
  }

  .services-2 .section-title-action {
    display: block;
  }

  .gallery-link {
    margin-top: 22px;
  }

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

  .gallery-card,
  .gallery-card img {
    min-height: 260px;
  }

  .gallery-card-wide {
    grid-column: auto;
  }

  .img-overlap {
    min-height: 420px;
  }

  .contact .info {
    padding: 32px 24px;
  }

  .contact .info h3 {
    font-size: 34px;
  }

  .person-contents h3 {
    font-size: 24px;
  }
}
