:root {
  --color-bg: #f4faf4;
  --color-surface: #ffffff;
  --color-primary: #2f7b2f;
  --color-primary-soft: #cfe8cf;
  --color-accent: #f0a500;
  --color-text: #1f2933;
  --color-muted: #6c7a89;
  --color-border: #dde5dd;
  --footer-bg: #134e4a;

  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
  --max-width: 1120px;
  --transition-fast: 0.18s ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* Global */

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.4rem;
}

.page-content {
  padding: 2rem 0 3rem;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.6rem;
  margin: 2rem 0 0.9rem;
}

h3 {
  font-size: 1.2rem;
  margin: 1.4rem 0 0.6rem;
}

p {
  margin: 0 0 0.9rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 10px 25px rgba(47, 123, 47, 0.35);
}

.btn-primary:hover {
  background: #256625;
  border-color: #256625;
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-outline {
  background: #ffffff;
  color: var(--color-primary);
  border-color: var(--color-primary-soft);
}

.btn-outline:hover {
  background: var(--color-primary-soft);
  text-decoration: none;
}

.btn-nav {
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  border-radius: 999px;
  background: #1f2933;
  color: #ffffff !important;
  border: 1px solid #1f2933;
}

/* Lists */

ul {
  padding-left: 1.3rem;
}

ul.check-list {
  padding-left: 0;
  list-style: none;
}

ul.check-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
}

ul.check-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
}

/* Header & nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 250, 244, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(221, 229, 221, 0.9);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text);
  text-decoration: none;
}

.logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: radial-gradient(
    circle at 20% 20%,
    #f0f9ff 0,
    #cfe8cf 40%,
    #2f7b2f 95%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #1f2933;
}

.logo-text-main {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.logo-text-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.main-nav {
  position: relative;
}

.nav-toggle {
  background: transparent;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  padding: 0.35rem 0.8rem;
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-text);
}

.nav-toggle-icon {
  font-size: 1.1rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0.7rem 0;
  position: absolute;
  right: 0;
  top: 120%;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  min-width: 260px;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-list.nav-list--open {
  display: flex;
}

.nav-list li a,
.nav-dropdown-toggle {
  display: block;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--color-text);
}

.nav-list li a:hover,
.nav-dropdown-toggle:hover {
  background: #edf2ee;
  text-decoration: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
}

.nav-dropdown-toggle::after {
  content: "▾";
  font-size: 0.7rem;
  margin-left: 0.25rem;
}

.nav-dropdown-menu {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0.3rem 0.3rem;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  display: none;
}

.nav-dropdown.nav-dropdown--open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu li a {
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
}

/* Hero */

.hero {
  position: relative;
  color: #ffffff;
  background: linear-gradient(
      to bottom right,
      rgba(10, 48, 10, 0.1),
      rgba(10, 48, 10, 0.5)
    ),
    url("images/hero.webp") center/cover no-repeat;
}

.hero-overlay {
  background: linear-gradient(
    to right,
    rgba(13, 58, 26, 0.85),
    rgba(13, 58, 26, 0.5)
  );
  padding: 2.4rem 0 2.8rem;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.6rem;
}

.hero-main {
  background: rgba(12, 52, 18, 0.88);
  border-radius: 22px;
  padding: 1.4rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

.hero-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #d1fae5;
}

.hero h1 {
  font-size: 2.1rem;
  margin: 0.6rem 0 0.7rem;
}

.hero-lead {
  font-size: 1rem;
  margin-bottom: 0.9rem;
}

.hero-meta {
  font-size: 0.9rem;
  opacity: 0.9;
}

.hero-actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.hero-tags {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hero-tag {
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(209, 250, 229, 0.1);
  border: 1px solid rgba(209, 250, 229, 0.4);
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.hero-side-card {
  background: rgba(12, 52, 18, 0.9);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(209, 250, 229, 0.3);
}

/* Sections */

.section {
  padding: 2.2rem 0 0;
}

.section-title {
  margin-bottom: 0.9rem;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-muted);
}

/* Cards & grids */

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.card img {
  border-radius: var(--radius-md);
  margin-bottom: 0.8rem;
}

/* Layout helpers */

.two-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

/* Contact form */

.contact-form {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.3rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: 0.9rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  border: 1px solid #cbd5c5;
  font: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(47, 123, 47, 0.35);
}

.form-note {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Map */

.map-section {
  margin-top: 2rem;
}

.map-embed {
  margin-top: 0.8rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

/* Footer */

.site-footer {
  background: var(--footer-bg);
  color: #e0f2f1;
  margin-top: 2.5rem;
}
@media (max-width: 700px) {
  .footer-top {
    flex-direction: column;
  }
}
.footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.7rem 1.4rem 1.4rem;
  display: flex;
  justify-content: space-between;
}

.site-footer h3,
.site-footer h4 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: #ecfdf5;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 0.3rem;
}

.footer-links a {
  color: #e0f2f1;
  font-size: 0.88rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(15, 118, 110, 0.5);
  padding: 0.7rem 1.4rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #cbd5d1;
}

/* Cookie banner */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: #1f2933;
  color: #f9fafb;
  padding: 0.8rem 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  transition: transform 0.25s ease-out;
  font-size: 0.85rem;
}

.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cookie-banner__text {
  margin: 0;
}

.cookie-banner__text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner__buttons .btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
}

/* Simple blog / faq / table (якщо робитимеш інші сторінки) */

.blog-list article,
.faq-item {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem 1.3rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

.legal-page p,
.legal-page li {
  font-size: 0.9rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.table th,
.table td {
  border: 1px solid #d1d9d1;
  padding: 0.45rem 0.5rem;
}

.table th {
  background: #edf2ee;
}

/* Responsive */

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .two-cols {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-banner__text {
    max-width: 70%;
  }
}

@media (min-width: 768px) {
  .header-inner {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .nav-toggle {
    display: none;
  }

  .nav-list {
    position: static;
    display: flex !important;
    flex-direction: row;
    background: transparent;
    box-shadow: none;
    min-width: 0;
    padding: 0;
    gap: 0.25rem;
    border-radius: 999px;
  }

  .nav-list li {
    position: relative;
  }

  .nav-list li a,
  .nav-dropdown-toggle {
    padding: 0.35rem 0.9rem;
  }

  .nav-dropdown-menu {
    position: absolute;
    top: 140%;
    right: 0;
    min-width: 220px;
  }
}
