*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #2d6a4f;
  --green-light: #40916c;
  --green-pale: #d8f3dc;
  --dark: #1b4332;
  --gray: #6c757d;
  --gray-light: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: #333;
  line-height: 1.6;
  background: var(--white);
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Header */
header {
  background: var(--dark);
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--white);
  letter-spacing: 2px;
  text-decoration: none;
}

.logo span {
  color: var(--green-pale);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--white);
  font-size: 0.95rem;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
  border-bottom-color: var(--green-pale);
  text-decoration: none;
}

/* Banner */
.banner {
  width: 100%;
  overflow: hidden;
}

.banner img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.banner-caption {
  background: var(--green-pale);
  text-align: center;
  padding: 1rem 1.5rem;
  color: var(--dark);
  font-size: 1.1rem;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 3rem 0;
}

section h2 {
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
  text-align: center;
}

section .subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 2rem;
}

/* Hero text block */
.hero-text {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--gray-light);
}

.hero-text h1 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.hero-text p {
  max-width: 650px;
  margin: 0 auto 1.5rem;
  color: #555;
}

.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--green-light);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

/* Product grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: var(--gray-light);
  padding: 1rem;
}

.product-info {
  padding: 1.25rem;
}

.product-info h3 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.product-info p {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 0.75rem;
}

.price {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--green);
  margin-bottom: 1rem;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature {
  text-align: center;
  padding: 1.5rem;
  background: var(--gray-light);
  border-radius: 8px;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.feature h3 {
  color: var(--dark);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.feature p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: var(--white);
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.testimonial-stars {
  color: #f4a261;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.testimonial p {
  font-style: italic;
  color: #444;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--dark);
  font-size: 1rem;
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  color: var(--dark);
  font-size: 0.95rem;
}

.author-info span {
  font-size: 0.8rem;
  color: var(--gray);
}

/* Stories */
.story {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid #e9ecef;
  flex-wrap: wrap;
}

.story:last-child {
  border-bottom: none;
}

.story-badge {
  background: var(--green);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  min-width: 120px;
  flex-shrink: 0;
}

.story-badge .lost {
  font-size: 2rem;
  font-weight: bold;
  display: block;
}

.story-badge .period {
  font-size: 0.85rem;
  opacity: 0.9;
}

.story-content h3 {
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.story-content .meta {
  color: var(--gray);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.story-content p {
  color: #444;
  font-size: 0.95rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-grid p {
  margin-bottom: 1rem;
  color: #444;
}

.values-list {
  list-style: none;
  margin-top: 1rem;
}

.values-list li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #444;
}

.values-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: bold;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info h3 {
  color: var(--dark);
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.75rem;
  color: #444;
}

.contact-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: var(--dark);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form textarea {
  height: 120px;
  resize: vertical;
}

.form-success {
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  color: var(--dark);
}

.form-success p {
  margin-bottom: 0.5rem;
}

.form-success p:last-child {
  margin-bottom: 0;
}

/* Legal pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.legal-content h2 {
  color: var(--dark);
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
}

.legal-content h3 {
  color: var(--dark);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
  color: #444;
  margin-bottom: 0.75rem;
}

.legal-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

.legal-content .updated {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid #dee2e6;
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.cookie-table th {
  background: var(--green-pale);
  color: var(--dark);
  font-weight: bold;
}

.cookie-table tr:nth-child(even) {
  background: var(--gray-light);
}

@media (max-width: 768px) {
  .cookie-table {
    display: block;
    overflow-x: auto;
  }
}

/* Page header */
.page-header {
  background: var(--green-pale);
  padding: 2rem 0;
  text-align: center;
}

.page-header h1 {
  color: var(--dark);
  font-size: 2rem;
}

.page-header p {
  color: var(--gray);
  margin-top: 0.5rem;
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 2.5rem 0 1rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  color: var(--green-pale);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.footer-grid p,
.footer-grid li {
  font-size: 0.85rem;
  color: #adb5bd;
  line-height: 1.8;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid a {
  color: #adb5bd;
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #adb5bd;
}

/* Responsive */
@media (max-width: 768px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .story {
    flex-direction: column;
  }

  nav ul {
    gap: 0.75rem;
  }

  .hero-text h1 {
    font-size: 1.5rem;
  }
}
