:root {
  --bg: #f4f6f4;
  --bg2: #ffffff;
  --ink: #1a221c;
  --muted: #5c6a60;
  --accent: #2f6b4f;
  --accent-soft: #dceee4;
  --line: rgba(47, 107, 79, 0.18);
  --shadow: 0 16px 40px rgba(26, 34, 28, 0.08);
  --radius: 14px;
  --font: "Century Gothic", "Trebuchet MS", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(1140px, calc(100% - 32px)); margin: 0 auto; }
button, input, select, textarea { font: inherit; }

.demo-banner {
  text-align: center;
  font-size: 12px;
  padding: 8px 12px;
  background: #e7efe9;
  color: #355744;
  border-bottom: 1px solid var(--line);
}

.topbar {
  background: var(--ink);
  color: #d7ddd8;
  font-size: 13px;
}
.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
}
.topbar a { color: #fff; font-weight: 700; }
.topbar .muted { color: #9aa59d; }

.header {
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 750;
  letter-spacing: 0.04em;
}
.logo span { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}
.nav a:hover { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.06); }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-light {
  background: #fff;
  color: var(--accent);
}

.hero {
  padding: 28px 0 8px;
}
.slider {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: #142018;
  background-image:
    linear-gradient(120deg, rgba(10,18,24,0.9), rgba(10,18,24,0.55)),
    url("assets/maf-hero-dark.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 42px 32px;
  box-shadow: var(--shadow);
  min-height: 280px;
  display: grid;
  align-content: center;
  gap: 12px;
}
.slider h1,
.slider p,
.slider .tag {
  text-shadow: 0 1px 12px rgba(0,0,0,0.45);
}
.slider .btn-ghost {
  border-color: rgba(255,255,255,0.55) !important;
  color: #fff !important;
  background: rgba(0,0,0,0.25);
}
.slider .tag {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.slider h1 {
  margin: 0;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.1;
  max-width: 16ch;
}
.slider p { margin: 0; color: #d7ddd8; max-width: 40em; }
.slider-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.dots {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}
.dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
}
.dots button.active { background: #fff; width: 22px; border-radius: 999px; }

.advantages {
  display: grid;
  gap: 10px;
  margin: 18px 0 8px;
}
@media (min-width: 800px) {
  .advantages { grid-template-columns: repeat(4, 1fr); }
}
.adv {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.adv strong { display: block; margin-bottom: 4px; }
.adv span { color: var(--muted); font-size: 13px; }

.section { padding: 40px 0; }
.section h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); }
.section-lead { margin: 0 0 20px; color: var(--muted); max-width: 46em; }

.cats {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 700px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .cats { grid-template-columns: repeat(4, 1fr); }
}
.cat {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.cat:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-2px);
}
.cat .pic {
  aspect-ratio: 16/10;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #e8eee9;
  border: 1px solid var(--line);
}
.cat .pic img,
.product .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cat h3 { margin: 0 0 4px; font-size: 15px; }
.cat p { margin: 0; color: var(--muted); font-size: 12px; }

.products {
  display: grid;
  gap: 12px;
}
@media (min-width: 800px) {
  .products { grid-template-columns: repeat(3, 1fr); }
}
.product {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.product .pic {
  aspect-ratio: 4/3;
  background: #e8eee9;
  overflow: hidden;
}
.product .body { padding: 14px; }
.product .meta { color: var(--accent); font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.product h3 { margin: 0 0 6px; font-size: 16px; }
.product p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.product .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.price { font-weight: 750; }

.about {
  display: grid;
  gap: 18px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
@media (min-width: 860px) {
  .about { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
}
.about p { color: var(--muted); margin: 0 0 10px; }
.cta-box {
  background: var(--accent-soft);
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
}
.cta-box h3 { margin: 0 0 6px; }
.cta-box p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }

.faq details {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.form-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 860px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}
.form-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.form { display: grid; gap: 10px; }
.form label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fbfcfb;
  color: var(--ink);
}
.form textarea { min-height: 90px; resize: vertical; }
.consent {
  display: grid !important;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
}
.consent input { width: auto; margin-top: 2px; }
.form-note { margin: 0; font-size: 13px; color: var(--muted); }
.form-note.ok { color: var(--accent); font-weight: 700; }

.footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.footer a { color: var(--accent); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(26, 34, 28, 0.45);
}
.modal[hidden] { display: none; }
.modal-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: var(--shadow);
}
.modal-card h3 { margin: 0 0 8px; }
.modal-card p { margin: 0 0 14px; color: var(--muted); }

@media (max-width: 800px) {
  .nav { display: none; }
}
