@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #f7f8f5;
  --surface-2: #eef2eb;
  --text: #242424;
  --muted: #5d665d;
  --border: #d9e2d5;
  --accent: #76af2f;
  --accent-dark: #5e9423;
  --accent-soft: #edf7dd;
  --max: 1180px;
  --radius: 8px;
  --shadow: 0 16px 40px rgba(28, 35, 20, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.page {
  min-height: 100vh;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.site-header__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 160px;
  height: auto;
}

.tagline {
  max-width: 520px;
  color: var(--muted);
  font-size: 13px;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-links a {
  text-decoration: none;
  color: var(--accent);
  font-size: 14px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.lang-switcher a {
  text-decoration: none;
  opacity: 0.5;
}

.lang-switcher a.is-active {
  opacity: 1;
  text-decoration: underline;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--text);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay--visible {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
  width: 300px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.drawer--open {
  transform: translateX(0);
}

.drawer__header {
  display: flex;
  justify-content: flex-end;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.drawer__close {
  font-size: 28px;
  line-height: 1;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0 4px;
  color: var(--text);
}

.drawer__nav {
  display: grid;
  gap: 4px;
  padding: 20px 16px;
}

.drawer__nav a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.drawer__nav a:hover {
  background: var(--surface);
}

.drawer__lang {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.drawer__lang a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius);
  opacity: 0.5;
  text-decoration: none;
}

.drawer__lang a.is-active {
  opacity: 1;
  text-decoration: underline;
}

.hero {
  background: var(--accent);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: stretch;
}

.hero__content {
  color: #fff;
  padding: 70px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 360px;
}

.hero__title {
  margin: 0 0 20px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}

.hero__lead {
  margin: 0;
  max-width: 520px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
}

.hero__lead a {
  color: #fff;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 72px 0;
}

.section--tight {
  padding: 56px 0;
}

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

.section-title {
  margin: 0 0 28px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
}

.section-title--center {
  text-align: center;
}

.section-intro {
  max-width: 860px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 17px;
}

.clients-carousel {
  --clients-gap: 24px;
  --clients-per-view: 4;
  position: relative;
  padding: 0 42px;
}

.clients-carousel__viewport {
  overflow: hidden;
}

.clients {
  display: flex;
  gap: var(--clients-gap);
  align-items: stretch;
  will-change: transform;
}

.clients-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(36, 36, 36, 0.58);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
}

.clients-carousel__arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.clients-carousel__arrow:hover {
  background: rgba(36, 36, 36, 0.74);
}

.clients-carousel__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.clients-carousel__arrow--prev {
  left: 0;
}

.clients-carousel__arrow--prev::before {
  transform: rotate(-135deg);
}

.clients-carousel__arrow--next {
  right: 0;
}

.clients-carousel__arrow--next::before {
  transform: rotate(45deg);
}

.client {
  flex: 0 0 calc((100% - (var(--clients-gap) * (var(--clients-per-view) - 1))) / var(--clients-per-view));
  text-align: center;
  min-width: 0;
}

.client__logo {
  aspect-ratio: 4 / 2.2;
  display: grid;
  place-items: center;
  padding: 12px 0;
}

.client__logo img {
  max-height: 105px;
  width: auto;
}

.client__caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.services {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 44px;
  align-items: center;
}

.service-list {
  display: grid;
  gap: 28px;
}

.service-item h3 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.15;
}

.service-item p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.services__visual {
  padding: 0;
}

.services__visual img {
  width: 100%;
}

.about {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: start;
}

.about__certificate {
  padding: 0;
}

.about__certificate figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.about__body p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
}

.bullet-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.bullet-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.cta-strip {
  margin-top: 32px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #def6e4 0%, #edf8d4 100%);
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

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

.footer {
  margin-top: 24px;
  background: var(--accent);
  color: rgba(255, 255, 255, 0.92);
}

.footer__inner {
  padding: 22px 0 28px;
  font-size: 13px;
}

.footer__inner a {
  color: inherit;
}

@media (max-width: 1080px) {
  .services,
  .about {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header__top {
    grid-template-columns: 1fr;
    gap: 14px;
    position: relative;
  }

  .brand {
    justify-self: center;
  }

  .tagline {
    max-width: none;
    text-align: center;
    font-size: 12px;
  }

  .header-tools {
    justify-content: center;
    gap: 12px;
  }

  .header-tools .lang-switcher {
    display: none;
  }

  .social-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .site-nav {
    display: none;
  }

  .hamburger {
    position: absolute;
    top: 18px;
    right: 0;
    display: flex;
  }

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

  .hero__content {
    padding: 48px 24px;
    min-height: 0;
    text-align: center;
  }

  .hero__title {
    margin-bottom: 16px;
    font-size: clamp(30px, 10vw, 44px);
  }

  .hero__lead {
    max-width: none;
    font-size: 17px;
  }

  .hero__media {
    aspect-ratio: 16 / 11;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    margin-bottom: 22px;
    font-size: clamp(26px, 8vw, 36px);
  }

  .section-intro,
  .about__body p,
  .service-item p,
  .cta-strip {
    font-size: 15px;
  }

  .services {
    gap: 28px;
  }

  .service-list {
    gap: 22px;
  }

  .about {
    gap: 28px;
  }

  .clients {
    --clients-gap: 18px;
  }

  .footer__inner {
    justify-content: center;
    text-align: center;
  }
}

@media (min-width: 761px) {
  .drawer,
  .drawer-overlay {
    display: none;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .site-header__top {
    padding: 14px 0 12px;
  }

  .hamburger {
    top: 14px;
  }

  .brand img {
    width: 142px;
  }

  .clients-carousel {
    padding: 0 34px;
  }

  .hero__content {
    padding: 36px 18px;
  }

  .hero__media {
    aspect-ratio: 4 / 3;
  }

  .section {
    padding: 48px 0;
  }

  .client__logo {
    aspect-ratio: 16 / 9;
  }

  .client__logo img {
    max-height: 84px;
  }

  .client__caption {
    font-size: 12px;
  }

  .clients {
    --clients-gap: 14px;
  }

  .footer__inner {
    padding: 20px 0 24px;
  }
}
