:root {
  --dexa-green: #23523a;
  --dexa-red: #ca1b1f;
  --dexa-gold: #eab459;
  --dexa-ink: #173428;
  --dexa-white: #fff;
  --dexa-surface: #f8f5ef;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dexa-white);
  color: #49554f;
  font-family: "Exo 2", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
  overflow-x: hidden;
}

h1,
h2,
p {
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}

a:hover,
a:focus {
  color: var(--dexa-gold);
}

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

.preloader {
  align-items: center;
  background: var(--dexa-green);
  display: flex;
  height: 100%;
  justify-content: center;
  left: 0;
  opacity: 1;
  position: fixed;
  top: 0;
  transition: opacity 250ms ease, visibility 250ms ease;
  visibility: visible;
  width: 100%;
  z-index: 9999;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-ripple {
  display: inline-block;
  height: 80px;
  position: relative;
  width: 80px;
}

.loader-ripple div {
  animation: loader-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
  border: 4px solid var(--dexa-gold);
  border-radius: 50%;
  opacity: 1;
  position: absolute;
}

.loader-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}

@keyframes loader-ripple {
  0% { height: 0; left: 36px; opacity: 1; top: 36px; width: 0; }
  100% { height: 72px; left: 0; opacity: 0; top: 0; width: 72px; }
}

.site-header {
  background: var(--dexa-white);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header-inner {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 118px;
}

.header-balance {
  display: block;
}

.brand-logo {
  justify-self: center;
}

.brand-logo img {
  height: auto;
  width: 196px;
}

.language-switcher {
  align-items: center;
  color: var(--dexa-green);
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 9px;
  justify-self: end;
  letter-spacing: 0.16em;
}

.language-switcher [aria-current="page"] {
  color: var(--dexa-red);
}

.language-separator {
  color: #b9b9b9;
}

.hero {
  background: var(--dexa-green);
  height: clamp(420px, 42vw, 680px);
  overflow: hidden;
}

.hero img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.info-area {
  margin-top: -62px;
  position: relative;
  z-index: 3;
}

.info-grid {
  background: var(--dexa-red);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.info-box {
  align-items: center;
  color: var(--dexa-white);
  display: flex;
  gap: 22px;
  min-height: 150px;
  padding: 32px 36px;
  position: relative;
}

.info-box:not(:last-child)::after {
  background: rgba(255, 255, 255, 0.34);
  content: "";
  height: calc(100% - 54px);
  position: absolute;
  right: 0;
  top: 27px;
  width: 1px;
}

.info-icon {
  flex: 0 0 52px;
}

.info-icon svg {
  fill: none;
  height: 52px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 52px;
}

.info-box h2 {
  color: var(--dexa-white);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
}

.info-box p {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 0;
}

.info-box a:hover,
.info-box a:focus {
  color: var(--dexa-white);
  opacity: 0.78;
}

.about-area {
  padding: 120px 0;
  position: relative;
}

.about-left {
  position: relative;
}

.about-left::before {
  border: 5px solid var(--dexa-gold);
  bottom: -15px;
  content: "";
  left: -15px;
  position: absolute;
  right: -15px;
  top: -15px;
}

.about-img {
  background: var(--dexa-green);
  height: 360px;
  position: relative;
  width: 370px;
}

.about-img img {
  height: auto;
  position: absolute;
  width: 370px;
}

.about-img-1 {
  right: 100px;
  top: -60px;
  z-index: 2;
}

.about-img-2 {
  bottom: -60px;
  left: 100px;
  z-index: 1;
}

.about-right {
  display: block;
  padding-left: 30px;
  position: relative;
}

.site-heading {
  margin-bottom: 50px;
}

.site-title-tagline {
  color: var(--dexa-red);
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.site-title {
  color: var(--dexa-ink);
  font-size: 50px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0;
}

.about-text {
  font-size: 16px;
  line-height: 1.8;
  max-width: 610px;
}

.about-text p {
  margin-bottom: 18px;
}

.about-text p:last-child {
  color: var(--dexa-ink);
  margin-bottom: 0;
}

.services-area {
  background: var(--dexa-surface);
  padding: 105px 0 110px;
}

.services-heading {
  margin: 0 auto 48px;
  max-width: 820px;
  text-align: center;
}

.services-heading .site-title {
  color: var(--dexa-green);
}

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

.service-item {
  background: var(--dexa-white);
  border: 1px solid rgba(234, 180, 89, 0.55);
  box-shadow: 0 12px 30px rgba(35, 82, 58, 0.07);
  min-height: 270px;
  padding: 38px 24px 32px;
  text-align: center;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-item:hover {
  border-color: var(--dexa-gold);
  box-shadow: 0 16px 34px rgba(35, 82, 58, 0.11);
  transform: translateY(-3px);
}

.service-icon {
  align-items: center;
  color: var(--dexa-green);
  display: flex;
  height: 72px;
  justify-content: center;
  margin: 0 auto 22px;
  width: 72px;
}

.service-icon svg {
  fill: none;
  height: 64px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 64px;
}

.service-icon .service-icon-accent {
  stroke: var(--dexa-red);
}

.service-item h3 {
  color: var(--dexa-green);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 11px;
}

.service-item p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0;
}

.partner-area {
  background: var(--dexa-surface);
  padding: 50px 0;
}

.partner-title {
  color: var(--dexa-ink);
  font-size: 35px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 36px;
  text-align: center;
  text-transform: uppercase;
}

.partner-wrapper {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.partner-item {
  align-items: center;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.partner-item img {
  filter: grayscale(1);
  height: auto;
  max-height: 100px;
  opacity: 0.58;
  transition: filter 220ms ease, opacity 220ms ease;
  width: min(100%, 210px);
}

@media (hover: hover) and (pointer: fine) {
  .partner-item:hover img {
    filter: grayscale(0);
    opacity: 1;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.map-area {
  background: var(--dexa-surface);
  width: 100%;
}

.map-area iframe {
  border: 0;
  display: block;
  height: 460px;
  width: 100%;
}

.site-footer {
  background: var(--dexa-gold);
  color: var(--dexa-green);
  font-weight: 500;
  padding: 70px 0 34px;
  text-align: center;
}

.footer-inner p {
  margin-bottom: 8px;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--dexa-ink);
}

.footer-social {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
}

.footer-social a {
  align-items: center;
  color: var(--dexa-green);
  display: inline-flex;
  justify-content: center;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-social a:hover,
.footer-social a:focus {
  transform: translateY(-2px);
}

.footer-social a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.footer-social svg {
  fill: currentColor;
  height: 26px;
  width: 26px;
}

.footer-social rect,
.footer-social circle:not(.social-icon-dot) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.footer-social .social-icon-dot {
  fill: currentColor;
  stroke: none;
}

.footer-logo {
  filter: drop-shadow(0 1px 0 rgba(35, 82, 58, 0.16));
  margin: 0 auto 30px;
  width: 220px;
}

.copyright {
  border-top: 1px solid rgba(35, 82, 58, 0.24);
  font-size: 13px;
  letter-spacing: 0.14em;
  margin-top: 32px;
  padding-top: 24px;
}

#scroll-top {
  align-items: center;
  background: var(--dexa-red);
  border-radius: 50%;
  bottom: 22px;
  color: var(--dexa-white);
  display: flex;
  font-size: 21px;
  height: 46px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 24px;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  width: 46px;
  z-index: 20;
}

#scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 1199px) {
  .info-box {
    gap: 16px;
    padding: 28px 22px;
  }

  .info-icon {
    flex-basis: 44px;
  }

  .info-icon svg {
    height: 44px;
    width: 44px;
  }

  .about-img-2 { left: 70px; }
}

@media (max-width: 991px) {
  .site-header-inner {
    min-height: 100px;
  }

  .brand-logo img {
    width: 168px;
  }

  .hero {
    height: clamp(360px, 56vw, 520px);
  }

  .info-area {
    margin-top: 0;
  }

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

  .info-box {
    justify-content: center;
    min-height: 128px;
  }

  .info-box > div {
    width: min(100%, 380px);
  }

  .info-box:not(:last-child)::after {
    bottom: 0;
    height: 1px;
    left: 28px;
    right: 28px;
    top: auto;
    width: auto;
  }

  .about-area {
    padding: 120px 0;
  }

  .about-right {
    margin-top: 50px;
    padding-left: 0;
  }

  .about-img {
    margin: 50px;
  }

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

@media (max-width: 767px) {
  .about-img {
    width: 350px;
  }

  .partner-wrapper {
    display: grid;
    gap: 16px;
    grid-auto-columns: calc((100% - 16px) / 2);
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-template-rows: 1fr;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0 0 14px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .partner-wrapper::-webkit-scrollbar {
    height: 6px;
  }

  .partner-wrapper::-webkit-scrollbar-track {
    background: transparent;
  }

  .partner-wrapper::-webkit-scrollbar-thumb {
    background: rgba(35, 82, 58, 0.28);
    border-radius: 999px;
  }

  .partner-item {
    min-height: 110px;
    scroll-snap-align: none;
  }

  .partner-item:nth-child(odd) {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

@media (max-width: 575px) {
  .site-header-inner {
    grid-template-columns: 56px 1fr 56px;
    min-height: 86px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand-logo img {
    width: min(144px, 44vw);
  }

  .language-switcher {
    font-size: 11px;
    gap: 4px;
    letter-spacing: 0.04em;
  }

  .hero {
    height: 330px;
  }

  .hero img {
    object-position: 50% center;
  }

  .info-box {
    justify-content: flex-start;
    min-height: 116px;
    padding: 25px 24px;
  }

  .info-icon {
    flex-basis: 40px;
  }

  .info-icon svg {
    height: 40px;
    width: 40px;
  }

  .info-box h2 {
    font-size: 19px;
  }

  .about-area {
    padding: 90px 0 80px;
  }

  .about-img {
    height: min(56.43vw, 221px);
    margin: min(9.4vw, 37px) 0;
    width: min(58vw, 228px);
  }

  .about-img img {
    height: auto;
    width: min(58vw, 228px);
  }

  .about-img-1 {
    right: min(16vw, 62px);
    top: max(-9.4vw, -37px);
  }

  .about-img-2 {
    bottom: max(-9.4vw, -37px);
    left: min(16vw, 62px);
  }

  .about-right {
    margin-top: 50px;
  }

  .site-title {
    font-size: 36px;
  }

  .about-text {
    font-size: 16px;
  }

  .map-area iframe {
    height: 330px;
  }

  .services-area {
    padding: 78px 0 80px;
  }

  .services-heading {
    margin-bottom: 36px;
    text-align: left;
  }

  .services-heading .site-title {
    font-size: 34px;
  }

  .services-grid {
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .service-item {
    min-height: 0;
    padding: 30px 22px 27px;
  }

  .service-icon {
    height: 60px;
    margin-bottom: 18px;
    width: 60px;
  }

  .service-icon svg {
    height: 56px;
    width: 56px;
  }

  .partner-title {
    font-size: 29px;
    letter-spacing: 0.06em;
    margin-bottom: 30px;
  }

  .footer-logo {
    width: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-item {
    transition: none;
  }

  .partner-wrapper {
    scroll-behavior: auto;
  }
}
