:root {
  --primary-color: #3D7A5A;
  --secondary-color: #2B5C42;
  --accent-color: #5A9F77;
  --light-color: #EDF6F0;
  --dark-color: #162B20;
  --gradient-primary: linear-gradient(135deg, #3D7A5A 0%, #5A9F77 100%);
  --hover-color: #2E6347;
  --background-color: #F5FAF7;
  --text-color: #243328;
  --border-color: rgba(90, 159, 119, 0.22);
  --divider-color: rgba(61, 122, 90, 0.14);
  --shadow-color: rgba(61, 122, 90, 0.13);
  --highlight-color: #F4D03F;
  --main-font: 'Lora', serif;
  --alt-font: 'Roboto', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; width: 100%; }

body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background: var(--background-color);
  line-height: 1.75;
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 320px;
}

img { max-width: 100%; height: auto; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

h1, h2, h3 {
  font-family: var(--main-font);
  font-weight: 700;
  color: var(--primary-color);
  margin: 0 0 1.2rem 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); line-height: 1.3; }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); line-height: 1.4; }

p { margin: 0 0 1rem 0; font-size: clamp(1rem, 2vw, 1.1rem); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.hamburger .line {
  width: 24px;
  height: 2px;
  background: var(--primary-color);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

#menu-toggle { display: none; }

#menu-toggle:checked ~ .mobile-nav {
  max-height: 500px;
  opacity: 1;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.mobile-nav ul {
  padding: 2rem;
  margin: 0;
  list-style: none;
}

.mobile-nav li { margin: 1.2rem 0; }

.mobile-nav a {
  display: block;
  padding: 0.8rem 0;
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.mobile-nav a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.97);
  padding: 1.2rem 0;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 16px var(--shadow-color);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { height: 3rem; width: auto; }

.navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.navigation a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

.navigation a:hover { color: var(--primary-color); }

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.6rem;
  width: 100%;
}

/* Feature card — horizontal icon left */
.feature-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 10px;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 3px 16px var(--shadow-color);
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  width: 100%;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px var(--shadow-color);
  border-left: 3px solid var(--accent-color);
}

.feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
  color: white;
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  border-radius: 50%;
}

.feature-content { flex: 1; }
.feature-content h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.feature-content p { margin: 0; font-size: 0.97rem; color: var(--text-color); }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
}

.testimonial {
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 3px 16px var(--shadow-color);
  transition: all 0.3s ease;
  position: relative;
}

.testimonial::before {
  content: '"';
  font-family: var(--main-font);
  font-size: 4rem;
  color: var(--accent-color);
  opacity: 0.25;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  line-height: 1;
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 26px var(--shadow-color);
}

/* FAQ */
.faq-item {
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin: 1rem 0;
  padding: 1.8rem 2rem;
  box-shadow: 0 2px 10px var(--shadow-color);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px var(--shadow-color);
  border-color: var(--accent-color);
}

/* Form */
input, textarea {
  transition: all 0.3s ease;
  font-family: var(--alt-font);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-color);
  font-size: 1rem;
  width: 100%;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(61, 122, 90, 0.12);
  background: white;
}

.btn, button {
  transition: all 0.3s ease;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--alt-font);
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 4px 16px rgba(61, 122, 90, 0.28);
}

.btn:hover, button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(61, 122, 90, 0.36);
}

/* Compare table (random block) */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow-color);
}

.compare-table th {
  padding: 1.2rem 1.6rem;
  font-family: var(--main-font);
  font-size: 1.05rem;
  text-align: left;
}

.compare-table th:first-child {
  background: var(--gradient-primary);
  color: white;
  width: 34%;
}

.compare-table th:nth-child(2) {
  background: rgba(90, 159, 119, 0.12);
  color: var(--primary-color);
}

.compare-table th:nth-child(3) {
  background: rgba(244, 208, 63, 0.15);
  color: #7a6210;
}

.compare-table td {
  padding: 1rem 1.6rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.97rem;
  color: var(--text-color);
  vertical-align: top;
}

.compare-table tr:last-child td { border-bottom: none; }

.compare-table tr:hover td { background: rgba(90, 159, 119, 0.04); }

.badge-ok {
  display: inline-block;
  background: rgba(90, 159, 119, 0.15);
  color: var(--primary-color);
  border-radius: 20px;
  padding: 0.2rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.badge-warn {
  display: inline-block;
  background: rgba(244, 208, 63, 0.2);
  color: #7a6210;
  border-radius: 20px;
  padding: 0.2rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Pattern background */
.pattern-bg {
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(90, 159, 119, 0.08) 0%, transparent 52%),
    radial-gradient(ellipse at 80% 80%, rgba(61, 122, 90, 0.07) 0%, transparent 52%),
    repeating-linear-gradient(30deg, rgba(90, 159, 119, 0.025) 0px, rgba(90, 159, 119, 0.025) 1px, transparent 1px, transparent 44px);
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 3rem 0 1rem;
}

footer a { color: var(--light-color); text-decoration: none; transition: opacity 0.2s; }
footer a:hover { opacity: 0.75; }

/* Responsive */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navigation { display: none; }
  .mobile-nav { display: block; }

  .features-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .feature-card { flex-direction: column; align-items: flex-start; }
  .feature-icon { width: 56px; height: 56px; font-size: 1.7rem; }

  .compare-table th, .compare-table td { padding: 0.8rem 0.9rem; font-size: 0.9rem; }

  .faq-item { padding: 1.5rem 1.2rem; }

  #contact .grid { max-width: 100% !important; }
}

@media (max-width: 480px) {
  .container { padding: 0 0.75rem; }
  .compare-table { font-size: 0.85rem; }
  .compare-table th, .compare-table td { padding: 0.7rem 0.7rem; }
}

a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}