/* Base styles – sage palette, yumşaq kölgələr, 24px radius */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7f3;
  color: #1e2620;
  line-height: 1.6;
}

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

a {
  color: #3c6c4a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 247, 243, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(40, 60, 45, 0.06);
}

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

.logo {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #2b4232;
}

.main-nav {
  display: flex;
  gap: 16px;
  font-size: 0.95rem;
}

.main-nav a {
  padding: 6px 10px;
  border-radius: 999px;
}

.main-nav a.is-active {
  background: #d7e4d7;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(44, 66, 50, 0.2);
  font-size: 0.9rem;
}

.cart-link.is-active {
  background: #d7e4d7;
}

.cart-count {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #355b3f;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* Hero */

.hero {
  padding: 40px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.hero-text p {
  margin-bottom: 12px;
}

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

.hero-media {
  position: relative;
}

.hero-image {
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(18, 36, 22, 0.25);
}

.hero-note {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(244, 247, 243, 0.92);
  font-size: 0.85rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.btn-primary {
  background: #355b3f;
  color: #fff;
}

.btn-primary:hover {
  background: #2b4a34;
}

.btn-ghost {
  border: 1px solid rgba(53, 91, 63, 0.3);
  color: #355b3f;
  background: transparent;
}

.link-inline {
  font-weight: 500;
}

/* Sections */

.section {
  padding: 32px 0;
}

.page-header {
  padding: 24px 0 8px;
}

.page-header h1 {
  margin-bottom: 8px;
}

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

.card {
  background: #ffffff;
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 10px 26px rgba(20, 38, 22, 0.12);
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 6px;
}

.section-highlights .split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.media-image {
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(14, 30, 18, 0.22);
}

.section-cta .cta-inner {
  background: #e1ecdf;
  border-radius: 24px;
  padding: 20px 20px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
}

/* Catalog */

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

.product-card .product-image {
  border-radius: 18px;
  margin-bottom: 10px;
}

.product-meta {
  font-size: 0.9rem;
  opacity: 0.85;
}

.product-price {
  font-weight: 600;
  margin-top: 4px;
}

.product-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.product-image-lg {
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(22, 42, 26, 0.24);
}

.product-price-lg {
  font-size: 1.4rem;
  font-weight: 600;
}

/* Cart */

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}

.cart-box, .cart-form-box {
  background: #ffffff;
  border-radius: 24px;
  padding: 18px 18px 20px;
  box-shadow: 0 16px 40px rgba(20, 38, 24, 0.18);
}

.cart-items {
  border-radius: 16px;
  border: 1px solid rgba(40, 60, 45, 0.08);
  padding: 10px 12px;
  max-height: 260px;
  overflow: auto;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(40, 60, 45, 0.06);
  font-size: 0.95rem;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-title {
  flex: 1;
}

.cart-item-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-weight: 600;
}

/* Forms */

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

input, textarea {
  border-radius: 14px;
  border: 1px solid rgba(40, 60, 45, 0.25);
  padding: 8px 10px;
  font: inherit;
  background: #f9fbf8;
}

input:focus, textarea:focus {
  outline: 2px solid #9fbea6;
  outline-offset: 1px;
}

.form-note {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Text pages */

.text-column {
  max-width: 760px;
}

.text-column h2 {
  margin-top: 16px;
}

.text-column ul,
.text-column ol {
  padding-left: 20px;
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
}

.contact-info ul {
  padding-left: 18px;
}

.success-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.success-box h1 {
  margin-bottom: 8px;
}

/* Footer */

.site-footer {
  margin-top: 32px;
  padding: 20px 0 16px;
  border-top: 1px solid rgba(40, 60, 45, 0.08);
  background: #f0f3ef;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  font-size: 0.85rem;
}

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

.footer-links li {
  margin-bottom: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  font-size: 0.8rem;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid,
  .section-highlights .split,
  .section-cta .cta-inner,
  .catalog-grid,
  .product-layout,
  .cart-layout,
  .contact-layout,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .main-nav {
    order: 2;
    width: 100%;
    justify-content: center;
  }

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

@media (max-width: 640px) {
  .section-features .features-grid,
  .catalog-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .site-header {
    position: static;
  }
}
