:root {
  --leaf: #2f633f;
  --leaf-deep: #173725;
  --moss: #637b4e;
  --sage: #dfe8d4;
  --cream: #f5efe2;
  --paper: #fffaf1;
  --sand: #d7c4a5;
  --clay: #b8653d;
  --clay-soft: #f0d2bf;
  --ink: #20261e;
  --muted: #66705f;
  --line: #d7cbb6;
  --shadow: 0 18px 42px rgba(26, 43, 28, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  letter-spacing: 0;
}

body::selection {
  color: var(--paper);
  background: var(--leaf);
}

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

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

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px 36px;
  background: rgba(255, 250, 241, 0.92);
  border-bottom: 1px solid rgba(215, 203, 182, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--paper);
  background: var(--leaf);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.05;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.main-nav a,
.header-action,
.btn,
.filter-btn {
  min-height: 42px;
  border-radius: 8px;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--leaf-deep);
  background: var(--sage);
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--paper);
  background: var(--leaf-deep);
  font-size: 14px;
  font-weight: 800;
}

.header-action:hover,
.header-action:focus-visible,
.btn:hover,
.btn:focus-visible,
.filter-btn:hover,
.filter-btn:focus-visible {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 640px;
  padding: 92px 36px 108px;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: 58% center;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(23, 55, 37, 0.84) 0%, rgba(23, 55, 37, 0.58) 40%, rgba(23, 55, 37, 0.18) 72%, rgba(23, 55, 37, 0.08) 100%),
    linear-gradient(0deg, rgba(32, 38, 30, 0.4), rgba(32, 38, 30, 0));
}

.hero-content {
  width: min(610px, 100%);
  color: var(--paper);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2c3a4;
}

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

h1 {
  margin-bottom: 22px;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.25;
}

.hero-text {
  max-width: 560px;
  margin-bottom: 28px;
  color: rgba(255, 250, 241, 0.9);
  font-size: 18px;
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0 22px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
}

.btn-primary {
  color: var(--paper);
  background: var(--leaf);
  box-shadow: 0 12px 24px rgba(23, 55, 37, 0.2);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--leaf-deep);
}

.btn-secondary {
  color: var(--paper);
  border-color: rgba(255, 250, 241, 0.56);
  background: rgba(255, 250, 241, 0.1);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 250, 241, 0.2);
}

.hero-strip {
  position: absolute;
  right: 36px;
  bottom: 28px;
  left: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.hero-strip span {
  min-height: 54px;
  padding: 15px 16px;
  color: var(--leaf-deep);
  background: rgba(255, 250, 241, 0.86);
  border: 1px solid rgba(255, 250, 241, 0.72);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.section {
  padding: 88px 36px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 32px;
}

.section-head p:not(.eyebrow) {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 14px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto 24px;
}

.catalog-meta {
  max-width: 1180px;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.search-field input,
.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  outline: 0;
}

.search-field input {
  height: 48px;
  padding: 0 16px;
}

.search-field input:focus,
.lead-form input:focus,
.lead-form textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 4px rgba(47, 99, 63, 0.13);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-btn {
  border: 1px solid var(--line);
  padding: 0 14px;
  color: var(--leaf-deep);
  background: var(--paper);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.filter-btn.is-active {
  color: var(--paper);
  border-color: var(--leaf);
  background: var(--leaf);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(32, 38, 30, 0.08);
}

.product-visual {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #edf2e8;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}

.product-visual::after {
  display: none;
}

.product-placeholder,
.product-visual.has-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 18px;
  color: var(--leaf-deep);
  background:
    linear-gradient(135deg, rgba(223, 232, 212, 0.96), rgba(255, 250, 241, 0.78)),
    url("assets/greenleaf-hero.png") center / cover;
}

.product-placeholder span,
.product-visual.has-fallback::before {
  content: "Greenleaf";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  min-height: 42px;
  padding: 0 16px;
  color: var(--paper);
  background: var(--leaf);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

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

.product-category {
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 8px;
  color: var(--leaf-deep);
  background: var(--sage);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.product-body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
  display: -webkit-box;
  min-height: 66px;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.product-info {
  display: grid;
  gap: 4px;
  margin: 2px 0 14px;
}

.product-info strong {
  color: var(--leaf-deep);
  font-size: 18px;
  line-height: 1.2;
}

.product-info span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 16px;
  padding: 0;
  list-style: none;
}

.product-tags li {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.product-tags li::before {
  content: "#";
  color: var(--clay);
}

.product-card .btn {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
}

.product-card-skeleton .product-visual,
.product-card-skeleton span,
.product-card-skeleton h3,
.product-card-skeleton p {
  border-radius: 8px;
  background: linear-gradient(90deg, #ece4d6 0%, #f8f2e7 45%, #ece4d6 100%);
  background-size: 220% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.product-card-skeleton .product-body span {
  width: 40%;
  height: 24px;
}

.product-card-skeleton h3 {
  width: 78%;
  height: 24px;
}

.product-card-skeleton p {
  width: 100%;
  height: 18px;
  min-height: 18px;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

.empty-state {
  max-width: 1180px;
  margin: 18px auto 0;
  padding: 18px;
  color: var(--leaf-deep);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 700;
}

.cooperation {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.cooperation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.benefit {
  padding: 26px;
  background: #f8f2e7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: var(--paper);
  background: var(--clay);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.benefit p,
.contact-copy p,
.contact-points,
.form-status {
  color: var(--muted);
  line-height: 1.7;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 42px;
  max-width: 1252px;
  margin: 0 auto;
}

.contact-copy {
  padding-top: 18px;
}

.contact-points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.contact-points li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.contact-points li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--leaf);
  border-radius: 50%;
}

.lead-form {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--leaf-deep);
  font-size: 14px;
  font-weight: 800;
}

.lead-form label.wide {
  grid-column: 1 / -1;
}

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

.lead-form input,
.lead-form textarea {
  padding: 13px 14px;
}

.lead-form textarea {
  resize: vertical;
  min-height: 132px;
}

.lead-form .is-invalid {
  border-color: #bf3e2f;
  box-shadow: 0 0 0 4px rgba(191, 62, 47, 0.12);
}

.consent {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: start;
  margin: 18px 0 0;
  padding: 16px;
  background: #f8f2e7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 10px 0 0;
  accent-color: var(--leaf);
}

.consent span {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.form-footer button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.form-status.is-success {
  color: var(--leaf);
}

.form-status.is-error {
  color: #a53327;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 36px;
  color: rgba(255, 250, 241, 0.78);
  background: var(--leaf-deep);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
}

@media (max-width: 1040px) {
  .site-header {
    padding-inline: 22px;
  }

  .main-nav {
    display: none;
  }

  .hero {
    padding-inline: 22px;
  }

  .hero-strip {
    right: 22px;
    left: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 72px 22px;
  }

  .section-head,
  .catalog-toolbar,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .filter-group {
    justify-content: flex-start;
  }

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

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

@media (max-width: 680px) {
  .site-header {
    min-height: 68px;
    padding: 10px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 11px;
  }

  .header-action {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero {
    min-height: 700px;
    padding: 76px 16px 178px;
  }

  .hero-image {
    object-position: 66% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(23, 55, 37, 0.9) 0%, rgba(23, 55, 37, 0.66) 62%, rgba(23, 55, 37, 0.28) 100%),
      linear-gradient(0deg, rgba(32, 38, 30, 0.46), rgba(32, 38, 30, 0));
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

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

  .hero-actions,
  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-strip {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .hero-strip span {
    min-height: 50px;
    padding: 13px 12px;
    font-size: 13px;
  }

  .section {
    padding: 58px 16px;
  }

  .catalog-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .lead-form {
    padding: 20px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 16px;
  }
}
