/* Зеленава — landing styles. Vanilla CSS, mobile-first, no frameworks. */

:root {
  --green-900: #1f3d2b;
  --green-700: #2f6b46;
  --green-500: #3f9b63;
  --green-100: #e8f3ec;
  --ink: #1b2620;
  --muted: #586b60;
  --bg: #ffffff;
  --bg-alt: #f4f8f5;
  --border: #d8e4dc;
  --focus: #1f6feb;
  --radius: 12px;
  --maxw: 1100px;
  --shadow: 0 6px 24px rgba(31, 61, 43, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3 { line-height: 1.25; color: var(--green-900); }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 0.6em; }
h3 { font-size: 1.15rem; margin: 0 0 0.4em; }

p { margin: 0 0 1em; }

a { color: var(--green-700); }
a:hover { color: var(--green-500); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-900);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Buttons */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-900); color: #fff; }
.btn-ghost { background: transparent; color: var(--green-900); border-color: var(--border); }
.btn-ghost:hover { background: var(--green-100); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; }
.brand-mark { font-size: 1.4rem; }
.brand-name { font-size: 1.25rem; color: var(--green-900); }

.site-nav { position: relative; }
.nav-toggle {
  display: none;
  font: inherit;
  font-weight: 600;
  background: var(--green-100);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 14px;
  cursor: pointer;
}
.nav-list { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav-list a { text-decoration: none; font-weight: 500; color: var(--ink); }
.nav-list a:hover { color: var(--green-700); }

/* Hero */
.hero { background: linear-gradient(160deg, var(--green-100), #fff); padding: 56px 0; }
.hero-inner { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 40px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--ink); }
.hero-art { display: flex; justify-content: center; }
.leaf-card {
  width: 180px; height: 180px;
  display: grid; place-items: center;
  font-size: 5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }

/* Cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--muted); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--green-700); color: #fff;
  border-radius: 50%; font-weight: 700;
}
.step p { margin: 0; color: var(--muted); }

/* Form */
.form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input[type="email"] {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
.field input[type="email"][aria-invalid="true"] { border-color: #c0392b; }
.field-error { color: #c0392b; font-size: 0.95rem; margin: 6px 0 0; }
.field-check { display: flex; align-items: flex-start; gap: 10px; }
.field-check input { margin-top: 5px; }
.field-check label { font-weight: 400; }
.form-success {
  margin: 16px 0 0;
  padding: 14px 16px;
  background: var(--green-100);
  border: 1px solid var(--green-500);
  border-radius: var(--radius);
  color: var(--green-900);
  font-weight: 600;
}

/* FAQ */
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 18px;
  margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; color: var(--green-900); }
.faq summary::-webkit-details-marker { color: var(--green-500); }
.faq p { margin: 0 0 12px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--green-900); color: #d9e6dd; padding: 40px 0; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.site-footer .brand-name { color: #fff; }
.footer-brand p { color: #b9cfc1; margin: 8px 0 0; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: #d9e6dd; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-copy { grid-column: 1 / -1; margin: 12px 0 0; color: #9fb8a9; font-size: 0.9rem; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 720px; margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
  padding: 18px 20px;
  z-index: 80;
}
.cookie-banner p { margin: 0 0 14px; font-size: 0.95rem; }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* Legal / content pages */
.page { padding: 48px 0 64px; }
.page h1 { margin-bottom: 0.6em; }
.page h2 { margin-top: 1.4em; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 0.4em; }
.page .updated { color: var(--muted); font-size: 0.95rem; }

/* Responsive */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav-toggle { display: inline-block; }
  .nav-list {
    display: none;
    position: absolute;
    right: 0; top: calc(100% + 10px);
    flex-direction: column;
    gap: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 200px;
    padding: 8px;
  }
  .nav-list.open { display: flex; }
  .nav-list li { width: 100%; }
  .nav-list a { display: block; padding: 10px 12px; border-radius: 8px; }
  .nav-list a:hover { background: var(--green-100); }
  .cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}