:root {
  --green: #6f8f3a;
  --green-dark: #557329;
  --graphite: #354044;
  --text: #293236;
  --muted: #667176;
  --white: #ffffff;
  --soft: #f4f6ef;
  --border: #dfe5d8;
  --shadow: 0 24px 70px rgba(31, 43, 35, 0.14);
  --radius: 18px;
  --container: 1200px;
  --header: 86px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 9999;
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(53, 64, 68, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  height: 100%;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 750;
  transition: 0.2s;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--green-dark);
  background: var(--soft);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

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

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 760px;
  overflow: hidden;
  color: #ffffff;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    url("../img/media/hero-banner.webp")
    center 48% / cover
    no-repeat;
  transform: scale(1.01);
}

.hero-shade {
  background:
    linear-gradient(
      90deg,
      rgba(18, 27, 22, 0.84) 0%,
      rgba(18, 27, 22, 0.67) 46%,
      rgba(18, 27, 22, 0.18) 78%,
      rgba(18, 27, 22, 0.08) 100%
    ),
    linear-gradient(
      0deg,
      rgba(18, 27, 22, 0.54),
      transparent 50%
    );
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 125px 0 58px;
}

.hero-content {
  max-width: 1080px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #d9e8bb;
}

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

h1 {
  max-width: 1080px;
  margin-bottom: 24px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 20px;
  color: var(--graphite);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.09;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 10px;
  color: var(--graphite);
  font-size: 22px;
  line-height: 1.2;
}

.hero-text {
  max-width: 780px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 14px 32px rgba(66, 92, 34, 0.3);
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.btn-secondary {
  color: var(--graphite);
  background: #ffffff;
  border-color: var(--border);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 780px;
  margin-top: 66px;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
}

.hero-facts div {
  padding: 22px 24px 0 0;
}

.hero-facts strong {
  display: block;
  font-size: 22px;
}

.hero-facts span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* Sections */

.section {
  padding: 100px 0;
}

.section-light {
  background: var(--soft);
}

.section-title {
  max-width: 780px;
  margin-bottom: 44px;
}

.section-title > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(0, 1.1fr);
  align-items: center;
  gap: 64px;
}

.about-media {
  position: relative;
}

.about-media img {
  width: 100%;
  aspect-ratio: 1.1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-badge {
  position: absolute;
  right: -18px;
  bottom: 28px;
  min-width: 150px;
  padding: 18px 22px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.about-badge strong {
  display: block;
  color: var(--green);
  font-size: 32px;
  line-height: 1;
}

.about-badge span {
  color: var(--muted);
  font-size: 13px;
}

.about-content p:not(.eyebrow) {
  color: #526064;
  font-size: 17px;
}

/* Main supply directions */

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

.product-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  color: #ffffff;
  background: #17201b;
  border-radius: var(--radius);
  box-shadow: 0 16px 45px rgba(37, 49, 41, 0.12);
}

.product-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      0deg,
      rgba(16, 24, 19, 0.92) 0%,
      rgba(16, 24, 19, 0.56) 48%,
      rgba(16, 24, 19, 0.08) 82%
    );
}

.product-card > div {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 26px 24px;
}

.product-card span {
  display: none;
}

.product-card h3 {
  color: #ffffff;
}

.product-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.product-card:hover img {
  transform: scale(1.06);
}

/* Mission */

.mission {
  position: relative;
  overflow: hidden;
  padding: 112px 0;
  color: #ffffff;
}

.mission-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(24, 35, 29, 0.70) 0%,
      rgba(24, 35, 29, 0.55) 55%,
      rgba(24, 35, 29, 0.38) 100%
    ),
    url("../img/media/mission-seeds.webp")
    center / cover
    no-repeat;
}

.mission-inner {
  position: relative;
  z-index: 2;
}

.mission h2 {
  max-width: 1160px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

/* Advantages */

#advantages-title {
  width: max-content;
  max-width: none;
  white-space: nowrap;
  font-size: clamp(32px, 3.7vw, 48px);
}

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

.advantage-card {
  min-width: 0;
  min-height: 205px;
  padding: 28px 20px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.advantage-card > span {
  display: none;
}

.advantage-card h3 {
  max-width: 100%;
  margin-bottom: 14px;
  font-size: 19px;
  line-height: 1.25;
  overflow-wrap: break-word;
  hyphens: auto;
}

.advantage-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.advantage-card:hover {
  transform: translateY(-4px);
  border-color: rgba(111, 143, 58, 0.5);
  box-shadow: 0 18px 50px rgba(40, 54, 44, 0.1);
}
/* Detailed assortment gallery */

.gallery-section {
  background: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 245px;
  grid-auto-flow: dense;
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #dfe4da;
  border: 0;
  border-radius: 14px;
  cursor: zoom-in;
}

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

.gallery-item-tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      0deg,
      rgba(16, 24, 19, 0.65),
      transparent 55%
    );
}

.gallery-item span {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 2;
  color: #ffffff;
  text-align: left;
  font-weight: 800;
}

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

/* Workflow */

.workflow {
  background: var(--soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-height: 205px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  color: #ffffff;
  background: var(--green);
  border-radius: 50%;
  font-weight: 850;
}

.steps strong {
  display: block;
  margin-bottom: 8px;
  color: var(--graphite);
  font-size: 18px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Contacts */

.contacts {
  padding: 100px 0;
  background:
    linear-gradient(
      135deg,
      #edf2e4 0%,
      #f8faf5 48%,
      #ffffff 100%
    );
}

.contacts-header {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(300px, 420px);
  align-items: end;
  gap: 64px;
  margin-bottom: 46px;
}

.contacts-heading {
  max-width: 720px;
}

.contacts-heading h2 {
  margin-bottom: 16px;
}

.contacts-heading > p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.contacts-primary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px 30px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-primary-link {
  color: var(--graphite);
  font-size: 24px;
  font-weight: 850;
  line-height: 1.3;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.contact-primary-link:hover,
.contact-primary-link:focus-visible {
  color: var(--green-dark);
  transform: translateX(3px);
}

.contacts-primary .btn {
  margin-top: 10px;
}

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

.company-details-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 34px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 45px rgba(37, 49, 41, 0.08);
}

.company-details-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--green);
}

.company-details-language {
  margin-bottom: 14px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.company-details-card h3 {
  margin-bottom: 24px;
  font-size: 27px;
}

.company-details-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 26px;
}

.company-details-list > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 190px;
  padding: 10px 14px;
  background: var(--soft);
  border-radius: 8px;
}

.company-details-list dt {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
}

.company-details-list dd {
  margin: 0;
  color: var(--graphite);
  font-size: 15px;
  font-weight: 750;
}

.company-address {
  margin: 0;
  color: var(--muted);
  font-style: normal;
  font-size: 16px;
  line-height: 1.75;
}

.company-address strong {
  color: var(--graphite);
  font-weight: 800;
}

/* Footer */

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.75);
  background: var(--graphite);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: #ffffff;
  font-weight: 750;
}

/* Lightbox */

.lightbox {
  width: min(1100px, calc(100% - 32px));
  padding: 0;
  color: #ffffff;
  background: #111111;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
}

.lightbox::backdrop {
  background: rgba(10, 14, 12, 0.88);
  backdrop-filter: blur(5px);
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.lightbox p {
  margin: 0;
  padding: 14px 18px;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.65);
  border: 0;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
}

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Tablet */

@media (max-width: 1080px) {
  .assortment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .gallery-item-wide {
    grid-column: span 1;
  }

  .gallery-item-tall {
    grid-row: span 1;
  }
}

/* Mobile navigation and medium screens */

@media (max-width: 860px) {
  :root {
    --header: 74px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand-logo {
    width: 185px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header);
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .hero {
    min-height: 690px;
  }

  .hero-inner {
    padding: 90px 0 40px;
  }

  .hero-shade {
    background:
      linear-gradient(
        90deg,
        rgba(18, 27, 22, 0.86),
        rgba(18, 27, 22, 0.55)
      ),
      linear-gradient(
        0deg,
        rgba(18, 27, 22, 0.55),
        transparent
      );
  }

  .about-grid {
  grid-template-columns: 1fr;
  gap: 34px;
}

  .about-badge {
    right: 14px;
  }

  .section {
    padding: 72px 0;
  }

  .contacts {
    padding: 72px 0;
  }

  .mission {
    padding: 82px 0;
  }

  #advantages-title {
    width: auto;
    max-width: 100%;
    white-space: normal;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }
    .contacts-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
    margin-bottom: 32px;
  }

  .contacts-primary {
    width: 100%;
  }

  .contacts-details {
    grid-template-columns: 1fr;
  }
}

/* Small phones */

@media (max-width: 560px) {
  h1 {
    font-size: 40px;
    line-height: 1.06;
  }

  .hero-text {
    font-size: 17px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .hero-facts div {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .assortment-grid,
  .advantages-grid,
  .steps,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 350px;
  }

  .gallery-grid {
    grid-auto-rows: 260px;
  }

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

    .contacts-primary {
    padding: 24px 22px;
  }

  .contact-primary-link {
    font-size: 20px;
    overflow-wrap: anywhere;
  }

  .company-details-card {
    min-height: 0;
    padding: 28px 22px;
  }

  .company-details-card h3 {
    font-size: 24px;
  }

  .company-details-list {
    flex-direction: column;
  }

  .company-details-list > div {
    width: 100%;
    min-width: 0;
  }

  .company-address {
    font-size: 15px;
  }
}

/* Reduced motion */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
