@font-face {
  font-family: "TildaSans";
  src: url("/assets/fonts/TildaSans-VF.woff2") format("woff2-variations");
  font-weight: 250 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #74b24a;
  --green-dark: #4f8f2d;
  --text: #1e2528;
  --muted: #6f7772;
  --line: #e6e9e2;
  --soft: #f7f9f4;
  --footer: #282e33;
  --shadow: 0 18px 45px rgba(31, 48, 23, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "TildaSans", Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

a {
  color: inherit;
}

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

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

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
}

.nav {
  min-height: 184px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding-top: 30px;
  position: relative;
}

.nav::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 18px;
  background: rgba(148, 148, 148, 0.2);
}

.brand {
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin: 29px 0 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: #222;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
}

.nav-spacer {
  display: none;
  justify-self: end;
  color: var(--muted);
  font-size: 13px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: #1f2522;
}

.hero {
  padding: 196px 0 44px;
  text-align: center;
}

.hero-lead {
  max-width: 820px;
  margin: 0 auto;
  color: rgba(0, 0, 0, 0.7);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.45;
}

.hero-lead strong {
  display: block;
  margin-top: 6px;
  color: #58a026;
  font-size: 20px;
}

.section {
  padding: 62px 0;
}

.section.tight {
  padding-top: 18px;
}

.section-title {
  margin: 0 0 34px;
  font-size: 32px;
  line-height: 1.2;
  text-align: center;
}

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 34px;
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  cursor: pointer;
}

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f2f3ef;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.product-card:focus-within .product-image,
.product-card:hover .product-image {
  box-shadow: 0 0 0 1px rgba(116, 178, 74, 0.16);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 0 0;
}

.product-title {
  min-height: 78px;
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.28;
  font-weight: 700;
}

.product-note {
  min-height: 22px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.price {
  margin-top: auto;
  color: #82c653;
  font-size: 25px;
  font-weight: 700;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--green);
  border-radius: 5px;
  color: var(--green);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

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

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

.btn.full {
  width: 100%;
}

.content-page {
  max-width: 780px;
  padding: 210px 0 80px;
}

.content-page h1 {
  margin: 0 0 30px;
  font-size: 24px;
  line-height: 1.35;
}

.content-page h2 {
  margin: 34px 0 14px;
  font-size: 20px;
  line-height: 1.35;
}

.content-page p,
.content-page li {
  font-size: 18px;
}

.content-page p {
  margin: 0 0 16px;
}

.content-page ul {
  padding-left: 22px;
}

.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: start;
}

.contact-card {
  padding: 30px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.form-field {
  display: block;
  margin-bottom: 16px;
}

.form-field-hidden {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-field span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d8ddd2;
  border-radius: 5px;
  padding: 13px 14px;
  color: var(--text);
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}



.form-result {
  margin: 0 0 18px;
  padding: 13px 15px;
  border: 1px solid rgba(88, 160, 38, 0.24);
  border-radius: 6px;
  color: #273025;
  background: #f8fbf5;
  font-size: 14px;
  line-height: 1.45;
}

.form-result.error {
  border-color: rgba(190, 65, 55, 0.24);
  color: #6f2b24;
  background: #fff7f5;
}

.form-result.success {
  border-color: rgba(88, 160, 38, 0.28);
  color: #315b1e;
  background: #f5faef;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.muted {
  color: var(--muted);
}

.site-footer {
  margin-top: auto;
  flex-shrink: 0;
  padding: 24px 0;
  color: #c8c8c8;
  background: var(--footer);
  text-align: center;
}

.site-footer a {
  color: #c8c8c8;
  text-decoration: none;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-panel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden auto;
  background: #fff;
  transform: translateY(18px);
  transition: transform 0.38s ease;
}

.modal.open .modal-panel {
  transform: translateY(0);
}

.modal-close {
  position: fixed;
  top: 26px;
  right: 30px;
  z-index: 2;
  width: 54px;
  height: 54px;
  border: 0;
  color: #1f2522;
  background: transparent;
  font-size: 46px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  color: var(--green);
  transform: rotate(90deg);
}

.modal-content {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 54px;
  width: min(1180px, calc(100% - 72px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 86px 0 70px;
  align-items: start;
}

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

.modal-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f3f3ef;
}

.modal-text h2 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.2;
}

.modal-text p {
  margin: 0 0 14px;
  font-size: 18px;
}

.modal-text .price {
  margin: 18px 0;
}

@media (max-width: 900px) {
  .site-header {
    position: fixed;
  }

  .nav {
    min-height: 64px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    padding-top: 0;
  }

  .nav::after {
    display: none;
  }

  .brand {
    justify-self: start;
  }

  .brand img {
    width: 132px;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .nav-spacer {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 14px 20px 22px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 11px;
    font-size: 18px;
  }

  .hero {
    padding: 105px 0 28px;
  }

  .hero-lead {
    font-size: 21px;
  }

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

  .contacts,
  .modal-content {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: min(100% - 34px, 700px);
    padding: 82px 0 46px;
    gap: 28px;
  }

  .modal-gallery {
    grid-template-columns: 1fr;
  }
}

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

  .hero-lead,
  .hero-lead strong {
    font-size: 18px;
  }

  .section {
    padding: 42px 0;
  }

  .products {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }

  .content-page {
    padding: 105px 0 54px;
  }

  .content-page p,
  .content-page li {
    font-size: 17px;
  }
}
