:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #effff4 0%, #f4f9f0 27%, #f7fbf7 100%);
  color: #102214;
  --bg: #f5fcf4;
  --surface: rgba(255, 255, 255, 0.95);
  --surface-strong: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.78);
  --primary: #1e8b4f;
  --primary-strong: #196535;
  --accent: #27c25b;
  --text: #102214;
  --muted: #5a6f58;
  --shadow: 0 28px 70px rgba(18, 54, 29, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.65;
  min-height: 100vh;
  background: var(--bg);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

body.loaded {
  opacity: 1;
  transform: translateY(0);
}

body.fade-out {
  opacity: 0;
  transform: translateY(12px);
}

.page-loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

.page-loader.active {
  opacity: 1;
  pointer-events: all;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(30, 139, 79, 0.18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.35rem 1.8rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(34, 83, 42, 0.08);
}

.site-footer {
  padding: 2rem;
  background: linear-gradient(135deg, #1f7f49, #225e3a);
  color: #fff;
}

.brand h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 0.06em;
}

.brand p {
  margin: 0.35rem 0 0;
  opacity: 0.8;
  color: var(--muted);
}

.language-switcher {
  display: flex;
  gap: 0.6rem;
}

.lang-btn {
  border: 1px solid rgba(34, 83, 42, 0.16);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  padding: 1rem 1.8rem;
  background: transparent;
}

.site-nav .nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  background: rgba(30, 139, 79, 0.12);
  color: var(--primary-strong);
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(30, 139, 79, 0.08);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 4.5rem 2.2rem;
  overflow: hidden;
  min-height: 72vh;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.55) contrast(0.95);
  transition: background-image 0.7s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.94));
  z-index: 1;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: rgba(30, 139, 79, 0.12);
  color: var(--primary-strong);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h2,
.section-header h3 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 3vw, 3.85rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-copy p,
.section-header p,
.product-item p,
.card p,
.distributor-card p,
.contact-card p,
.benefits-list li,
.hero-card p {
  margin: 0 0 1.2rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.75rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(30, 139, 79, 0.15);
}

.primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
}

.secondary {
  background: rgba(255, 255, 255, 0.98);
  color: var(--primary-strong);
  border: 1px solid rgba(30, 139, 79, 0.16);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat-item {
  padding: 1.2rem 1.35rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(34, 83, 42, 0.08);
  box-shadow: 0 16px 40px rgba(31, 79, 47, 0.05);
}

.stat-item strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
  color: var(--primary-strong);
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-carousel-controls {
  position: absolute;
  inset: auto 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  width: calc(100% - 3rem);
  z-index: 2;
  pointer-events: none;
}

.carousel-button {
  pointer-events: all;
  border: none;
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary-strong);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 40px rgba(15, 60, 28, 0.15);
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 1);
}

.hero-carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.hero-dot.active {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.1);
}

.product-card {
  width: min(380px, 100%);
  padding: 2.4rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  border: 1px solid rgba(30, 139, 79, 0.08);
}

.product-card span {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--primary-strong);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.content-section {
  padding: 3.5rem 2.2rem;
}

.alternate {
  background: rgba(255,255,255,0.74);
}

.section-header {
  max-width: 720px;
}

.section-header h3 {
  color: var(--text);
}

.section-header p {
  color: var(--muted);
  font-size: 1rem;
}

.cards-grid,
.product-grid,
.distributor-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.cards-grid,
.distributor-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.npk-section {
  padding-top: 2.5rem;
}

.npk-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2rem;
}

.npk-card {
  padding: 2rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), #f5fbf6);
  border: 1px solid rgba(30, 139, 79, 0.12);
  box-shadow: 0 20px 40px rgba(30, 139, 79, 0.07);
}

.npk-card h4 {
  margin-bottom: 0.85rem;
}

.npk-card p {
  margin: 0;
  color: var(--muted);
}

.npk-highlight {
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  color: #fff;
}

.npk-badge {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

.npk-badge span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-weight: 700;
  font-size: 1.15rem;
}

.npk-value strong {
  display: block;
  font-size: 2.25rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.75rem;
}

.npk-value p {
  color: rgba(255, 255, 255, 0.92);
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  align-items: start;
}

.admin-panel {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.admin-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 2rem;
}

.admin-form-card {
  padding: 2rem;
}

.admin-form {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

.admin-field {
  display: grid;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--primary-strong);
}

.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  border: 1px solid rgba(34, 83, 42, 0.16);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: #fbfdf9;
  color: var(--text);
}

.admin-preview {
  min-height: 220px;
  border-radius: 22px;
  background: rgba(30, 139, 79, 0.08);
  border: 1px dashed rgba(30, 139, 79, 0.22);
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.admin-preview img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 18px;
}

.admin-note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-item,
.card,
.distributor-card,
.contact-card,
.contact-form {
  padding: 2rem;
  border-radius: 28px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 20px 48px rgba(30, 139, 79, 0.08);
}

.product-image {
  width: 100%;
  min-height: 220px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(30, 139, 79, 0.08), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(30, 139, 79, 0.12);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.product-item h4,
.card h4,
.distributor-card h4,
.contact-card h4 {
  margin: 0 0 0.85rem;
  color: var(--primary-strong);
}

.details-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  background: rgba(30, 139, 79, 0.1);
  border: 1px solid rgba(30, 139, 79, 0.16);
  color: var(--primary-strong);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.details-toggle:hover {
  background: rgba(30, 139, 79, 0.16);
  transform: translateY(-1px);
}

.product-benefits {
  display: none;
  margin-top: 1.5rem;
}

.product-benefits.open {
  display: block;
}

.product-benefits h5 {
  margin-bottom: 0.8rem;
  color: var(--primary-strong);
}

.product-benefits ul {
  list-style: disc;
  margin: 0;
  padding-left: 1.3rem;
}

.product-benefits li {
  margin-bottom: 0.8rem;
  color: var(--muted);
}

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

.product-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.product-actions .btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0;
}

.product-actions .btn svg {
  width: 20px;
  height: 20px;
}

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

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  font-weight: 700;
  color: var(--primary-strong);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(34, 83, 42, 0.18);
  border-radius: 18px;
  padding: 1rem 1.15rem;
  font-size: 0.97rem;
  color: var(--text);
  background: #fbfdf9;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  width: fit-content;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1rem;
}

.benefits-list li {
  padding: 1.4rem 1.5rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(30, 139, 79, 0.09);
  box-shadow: 0 14px 30px rgba(30, 139, 79, 0.04);
}

.site-footer {
  text-align: center;
}

.site-footer a {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 1200px) {
  .hero-section {
    grid-template-columns: 1fr;
    padding: 3.4rem 1.6rem;
  }

  .hero-copy,
  .hero-image {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-header,
  .site-nav,
  .hero-section,
  .content-section,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header {
    position: relative;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.96);
    padding: 1rem;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 60, 28, 0.14);
    z-index: 10;
  }

  .site-header.nav-open + .site-nav,
  .site-nav.nav-open,
  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    z-index: 12;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-nav .nav-link {
    width: 100%;
    padding: 0.9rem 1rem;
  }

  .site-nav .nav-link:hover,
  .site-nav .nav-link.active {
    background: rgba(30, 139, 79, 0.14);
  }

  .site-nav {
    justify-content: center;
  }

  .hero-section {
    gap: 1.5rem;
  }

  .hero-carousel-controls {
    inset: auto 0 1rem;
    width: auto;
    padding: 0 1rem;
  }

  .hero-actions {
    gap: 0.85rem;
  }

  .product-card-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.85rem;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-nav,
  .hero-section,
  .content-section,
  .site-footer {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .hero-copy h2 {
    font-size: 2rem;
  }

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

  .product-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .product-actions {
    justify-content: flex-start;
  }

  .details-toggle {
    width: 100%;
  }

  .product-actions .btn {
    width: 40px;
    height: 40px;
  }

  .admin-grid,
  .cards-grid,
  .distributor-grid,
  .contact-grid,
  .npk-grid {
    grid-template-columns: 1fr;
  }
}
