:root {
  --green: #78a22f;
  --green-dark: #46651e;
  --red: #d94b3b;
  --ink: #252525;
  --muted: #6f7568;
  --line: #e3eadb;
  --paper: #ffffff;
  --soft: #f5f8ef;
  --footer: #27311f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  letter-spacing: 0;
}

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

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

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

.topline {
  background: var(--green);
  color: #fff;
  font-size: 15px;
}

.topline__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  flex-wrap: wrap;
}

.topline__item {
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  box-shadow: 0 2px 18px rgba(31, 51, 20, 0.12);
}

.nav-row {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 210px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
}

.main-nav a {
  color: #333;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--green-dark);
}

.hero {
  padding: 62px 0 46px;
  background: linear-gradient(180deg, #f8fbf3 0%, #ffffff 100%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: 46px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}

.breadcrumbs a {
  color: var(--green-dark);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: 48px;
  line-height: 1.14;
  font-weight: 900;
  color: var(--green-dark);
}

.hero__lead {
  max-width: 650px;
  margin: 0 0 28px;
  font-size: 19px;
  color: #40443b;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 900;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--red);
  color: #fff;
}

.btn--primary:hover {
  background: #b8382c;
}

.btn--light {
  background: #fff;
  color: var(--green-dark);
  border-color: var(--line);
}

.hero__image {
  margin: 0;
  border: 8px solid #fff;
  box-shadow: 0 24px 55px rgba(47, 74, 32, 0.18);
}

.hero__image img {
  width: 100%;
}

.category-band {
  background: var(--green);
}

.category-band__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px 0;
}

.category-band a {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 800;
}

.content-section {
  padding: 56px 0 70px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) 320px;
  align-items: start;
  gap: 42px;
}

.article-copy {
  min-width: 0;
}

.article-copy h1,
.article-copy h2,
.article-copy h3,
.article-copy h4 {
  text-align: center;
  line-height: 1.28;
  color: var(--green-dark);
  font-weight: 900;
}

.article-copy h1 {
  margin: 0 0 28px;
  font-size: 36px;
}

.article-copy h2 {
  margin: 44px 0 18px;
  font-size: 31px;
}

.article-copy h3 {
  margin: 38px 0 18px;
  font-size: 27px;
}

.article-copy h4 {
  margin: 30px 0 16px;
  font-size: 22px;
}

.article-copy p,
.article-copy li {
  font-size: 18px;
}

.article-copy p {
  margin: 0 0 18px;
}

.article-copy ul,
.article-copy ol {
  margin: 0 0 22px;
  padding-left: 30px;
}

.article-copy li + li {
  margin-top: 7px;
}

.article-copy img {
  margin: 22px auto 24px;
  border-radius: 0;
  box-shadow: 0 12px 28px rgba(45, 62, 31, 0.15);
}

.article-copy strong {
  color: #1f3314;
}

.side-panel {
  position: sticky;
  top: 154px;
  display: grid;
  gap: 20px;
}

.side-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--soft);
}

.side-box h2 {
  margin: 0 0 16px;
  font-size: 22px;
  color: var(--green-dark);
}

.side-box a:not(.btn) {
  display: block;
  padding: 10px 0;
  color: #384829;
  font-weight: 800;
  border-bottom: 1px solid var(--line);
}

.side-box--contact {
  background: #fff;
}

.contact-line {
  font-size: 22px;
  font-weight: 900;
  color: var(--red);
}

.product-strip {
  padding: 58px 0 64px;
  background: var(--soft);
  text-align: center;
}

.product-strip h2,
.news-section h2 {
  margin: 0 0 12px;
  font-size: 34px;
  color: var(--green-dark);
}

.product-strip p {
  margin: 0 auto 30px;
  max-width: 760px;
  font-size: 18px;
}

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

.promo-grid figure,
.news-grid article {
  margin: 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(45, 62, 31, 0.11);
}

.promo-grid img,
.news-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.promo-grid figcaption,
.news-grid h3 {
  min-height: 78px;
  margin: 0;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.news-section {
  padding: 58px 0 68px;
  text-align: center;
}

.site-footer {
  background: var(--footer);
  color: #fff;
  padding: 52px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 42px;
}

.footer-logo {
  width: 150px;
  margin-bottom: 18px;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 10px;
}

.site-footer a:hover {
  color: #bdda77;
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.scroll-up {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(31, 51, 20, 0.2);
}

@media (max-width: 980px) {
  .hero__grid,
  .content-layout,
  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

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

  .side-panel {
    position: static;
  }

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

@media (max-width: 760px) {
  .topline__inner {
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 0;
  }

  .nav-row {
    min-height: 74px;
  }

  .brand img {
    width: 164px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(31, 51, 20, 0.16);
  }

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

  .main-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    padding-top: 36px;
  }

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

  .hero__lead,
  .article-copy p,
  .article-copy li {
    font-size: 16px;
  }

  .article-copy h1 {
    font-size: 29px;
  }

  .article-copy h2 {
    font-size: 26px;
  }

  .article-copy h3 {
    font-size: 23px;
  }

  .promo-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
}
