:root {
  --green: #4f8f2f;
  --green-dark: #275c25;
  --orange: #e97732;
  --ink: #263234;
  --muted: #687375;
  --line: #dfe5e1;
  --paper: #f8faf7;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: var(--paper);
}

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

a {
  color: inherit;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(38, 50, 52, 0.12);
}

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

.menu {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.menu a {
  text-decoration: none;
}

.menu a:hover {
  color: var(--green);
}

.language-switcher {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.language-switcher button {
  border: 0;
  border-radius: 6px;
  padding: 6px 9px;
  color: var(--ink);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher button.active {
  color: var(--white);
  background: var(--green);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  min-height: calc(100vh - 78px);
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 70px clamp(20px, 6vw, 80px) 70px;
  color: var(--white);
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 35, 24, 0.82), rgba(19, 35, 24, 0.25) 62%, rgba(19, 35, 24, 0.52));
}

.hero-media {
  position: absolute;
  inset: 0;
  background: var(--ink);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 900ms ease, transform 5000ms ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(690px, 100%);
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  width: min(560px, 100%);
  margin: 22px 0 30px;
  font-size: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
  text-decoration: none;
  font-weight: 800;
}

.section {
  padding: clamp(64px, 9vw, 110px) 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.25fr);
  gap: clamp(32px, 6vw, 86px);
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.copy p,
.section-head p,
.news p {
  color: var(--muted);
}

.products-section {
  background: var(--white);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head p {
  width: min(420px, 100%);
  margin: 0;
}

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

.product-card {
  min-height: 275px;
  border: 1px solid var(--line);
  border-bottom: 4px solid var(--green);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  padding: 18px;
  background: #f4f6f2;
}

.product-card h3 {
  margin: 0;
  padding: 16px;
  font-size: 18px;
  text-align: center;
}

.stats {
  padding: clamp(64px, 8vw, 96px) 0;
  background: linear-gradient(110deg, rgba(31, 44, 42, 0.9), rgba(39, 92, 37, 0.74)), url("../images/slide_1.jpg") center/cover fixed;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 40px rgba(15, 28, 22, 0.18);
  text-align: center;
  overflow: hidden;
}

.stat-card:before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--orange));
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 8px;
  color: var(--green-dark);
  background: #edf5e9;
}

.stat-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.stat-grid strong {
  color: var(--orange);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}

.stat-card > span:last-child {
  margin-top: 10px;
  font-weight: 700;
  color: var(--ink);
}

.stat-number[data-plus="true"]:after {
  content: "+";
}

.news-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: stretch;
}

.news-gallery img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 10px;
}

.contact {
  position: relative;
  min-height: 390px;
  background: var(--white);
}

.contact iframe {
  width: 100%;
  height: 390px;
  border: 0;
  display: block;
}

.contact-card {
  position: absolute;
  top: 50px;
  left: max(20px, calc((100% - 1140px) / 2));
  width: min(430px, calc(100% - 40px));
  padding: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(38, 50, 52, 0.22);
}

.contact-card h2 {
  color: var(--orange);
  font-size: 30px;
}

.contact-card a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

section.razvoj {
  padding: 50px 0;
  background: var(--white);
}

section.razvoj .inner {
  max-width: 1160px;
  margin: auto;
  padding: 1px 20px 30px 20px;
  left: 0;
  right: 0;
  display: flex;
}

section.razvoj .inner > div {
  flex: 1;
  text-align: center;
}

section.razvoj .inner > div img {
  max-width: 100%;
}

.cert-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.cert-logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cert-logos img {
  width: 100px;
  max-width: 100px;
  height: auto;
}

.rural-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.footer {
  color: #e7ece8;
  background:
    linear-gradient(135deg, rgba(38, 50, 52, 0.96), rgba(31, 44, 42, 0.98)),
    url("../images/slide_3.jpg") center/cover;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.15fr 0.85fr;
  gap: 42px;
  align-items: start;
  padding: 52px 0 44px;
}

.footer-brand img {
  width: 150px;
}

.footer a {
  color: #e7ece8;
  text-decoration: none;
  font-weight: 700;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
}

.footer p {
  margin: 8px 0 0;
  color: #cdd7d0;
}

.footer-brand p {
  max-width: 310px;
  margin-top: 18px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-contact p {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: start;
}

.footer-contact p span:first-child {
  color: var(--orange);
  font-weight: 800;
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(231, 236, 232, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.social-links a:hover {
  background: var(--green);
  text-decoration: none;
}

.social-links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 14px max(20px, calc((100% - 1140px) / 2));
  color: #c3cbc6;
  background: #1c2628;
  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: #e7ece8;
  text-decoration: none;
  font-weight: 700;
}

.modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  width: min(920px, 100%);
  max-height: 90vh;
  overflow: auto;
  position: relative;
  border-radius: 8px;
  background: var(--white);
}

.modal-panel > h2 {
  padding: 28px 64px 22px 28px;
  font-size: 22px;
  border-bottom: 1px solid var(--line);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
}

.modal-body {
  padding: 28px;
}

.modal-body h3,
.modal-foot h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.modal-body img {
  width: 100%;
  margin-top: 22px;
}

.modal-foot {
  padding: 24px 28px;
  background: #f1f3f0;
  text-align: center;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .menu {
    position: absolute;
    top: 73px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
    background: rgba(255, 255, 255, 0.98);
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    padding: 12px 0;
  }

  .language-switcher {
    align-self: flex-start;
    margin-top: 10px;
  }

  .hero {
    min-height: 690px;
  }

  .hero-slide {
    object-position: center center;
  }

  .two-column,
  .section-head,
  .footer-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .social-links {
    justify-content: flex-start;
  }

  .footer-grid {
    gap: 28px;
    padding: 42px 0 34px;
  }

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1140px);
  }

  .nav {
    padding: 12px 14px;
  }

  .brand img {
    width: 122px;
  }

  .hero {
    min-height: 620px;
    padding: 64px 20px 48px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p:not(.eyebrow) {
    font-size: 18px;
  }

  .product-grid,
  .stat-grid,
  .news-gallery {
    grid-template-columns: 1fr;
  }

  .stats {
    background-attachment: scroll;
  }

  .contact {
    display: flex;
    flex-direction: column;
  }

  .contact-card {
    position: static;
    width: auto;
    margin: -40px 14px 24px;
  }

  .modal-panel > h2 {
    padding-right: 58px;
    font-size: 19px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
