:root {
  --primary-color: #3D6B4F;
  --secondary-color: #2a5038;
  --accent-color: #5A9F77;
  --light-color: #EDF5F0;
  --dark-color: #132218;
  --gradient-primary: linear-gradient(135deg, #3D6B4F 0%, #5A9F77 100%);
  --hover-color: #2a5038;
  --background-color: #F6FAF7;
  --text-color: #1e3329;
  --border-color: rgba(61, 107, 79, 0.17);
  --divider-color: rgba(61, 107, 79, 0.12);
  --shadow-color: rgba(61, 107, 79, 0.10);
  --highlight-color: #F0DB4F;
  --main-font: 'Playfair Display', serif;
  --alt-font: 'Lato', sans-serif;
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  background: white;
  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: 1px;
}

#menu-toggle {
  display: none;
}

#menu-toggle:checked ~ .mobile-nav {
  max-height: 350px;
  opacity: 1;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  border-bottom: 2px solid var(--border-color);
  z-index: 1000;
}

.mobile-nav ul {
  padding: 2rem;
  margin: 0;
  list-style: none;
}

.mobile-nav li {
  margin: 0.8rem 0;
}

.mobile-nav a {
  display: block;
  padding: 1rem 0;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}

.mobile-nav a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Feature Cards — горизонтальный лейаут с левой иконкой */
.feature-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 3px 16px var(--shadow-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.4rem;
  padding: 1.8rem 2rem;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  position: relative;
}

.feature-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 28px var(--shadow-color);
  border-left-color: var(--accent-color);
}

.feature-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  background: var(--light-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
  border-color: transparent;
}

.feature-number {
  position: absolute;
  top: 0.8rem;
  right: 1.2rem;
  font-size: 4rem;
  font-weight: 700;
  font-family: var(--main-font);
  color: var(--primary-color);
  opacity: 0.06;
  line-height: 1;
  user-select: none;
}

.feature-card-body {
  text-align: left;
  flex: 1;
}

.feature-card-body h3 {
  margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonial {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem 1.8rem 1.6rem;
  margin: 1rem 0;
  box-shadow: 0 3px 16px var(--shadow-color);
  position: relative;
  transition: all 0.3s ease;
  border-bottom: 3px solid var(--accent-color);
}

.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 26px var(--shadow-color);
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 5.5rem;
  color: var(--primary-color);
  font-family: Georgia, serif;
  opacity: 0.12;
  line-height: 1;
}

/* FAQ Items */
.faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin: 1rem 0;
  box-shadow: 0 3px 14px var(--shadow-color);
  transition: all 0.3s ease;
  padding: 2.2rem;
  border-left: 4px solid var(--accent-color);
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px var(--shadow-color);
  border-left-color: var(--primary-color);
}

.faq-item h3 {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.faq-item h3::before {
  content: 'Q';
  background: var(--gradient-primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  margin-top: 3px;
  flex-shrink: 0;
  font-family: var(--alt-font);
}

/* Form Styles */
input,
textarea {
  transition: all 0.3s ease;
  font-family: var(--alt-font);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 1.2rem;
  background-color: white;
  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, 107, 79, 0.1);
}

input:hover,
textarea:hover {
  border-color: var(--secondary-color);
}

/* Button Styles */
button,
.btn {
  transition: all 0.3s ease;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1.2rem 2.6rem;
  border-radius: 8px;
  font-weight: 700;
  font-family: var(--main-font);
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 3px 14px rgba(61, 107, 79, 0.28);
  letter-spacing: 0.03em;
}

button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(61, 107, 79, 0.38);
}

/* Typography */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background: var(--background-color);
  line-height: 1.72;
  max-width: 100vw;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--main-font);
  font-weight: 700;
  color: var(--primary-color);
}

/* Header and Footer */
header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  color: var(--text-color);
  padding: 1.5rem 0;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 14px var(--shadow-color);
}

footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 3.5rem 0 1.5rem;
}

/* Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Tip cards for random block */
.tip-card {
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  padding: 1.6rem;
  text-align: center;
  transition: all 0.3s ease;
}

.tip-card:hover {
  background: rgba(255,255,255,0.20);
  transform: translateY(-3px);
}

.tip-icon {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
  display: block;
}

/* Grid Layouts */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.6rem;
  margin: 2rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.4rem;
  margin-top: 2.5rem;
}

/* Pattern Background */
.pattern-bg {
  background-image:
    radial-gradient(circle at 10% 20%, rgba(90, 159, 119, 0.08) 0%, transparent 38%),
    radial-gradient(circle at 90% 80%, rgba(61, 107, 79, 0.07) 0%, transparent 42%),
    radial-gradient(ellipse at 50% 50%, rgba(240, 219, 79, 0.03) 0%, transparent 55%);
  background-size: 100% 100%;
}

/* Responsive */
* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
}

.contact-block {
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navigation {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.25;
    padding: 0 1rem;
  }

  .container {
    padding: 0 1rem;
    max-width: 100vw;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 0 0.3rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding: 0 0.3rem;
  }

  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card,
  .testimonial,
  .faq-item {
    margin: 0.6rem 0;
    max-width: 100%;
    word-wrap: break-word;
  }

  .contact-block {
    max-width: 100% !important;
  }

  .feature-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.7rem;
    line-height: 1.25;
    padding: 0 0.5rem;
  }

  .hero p {
    font-size: 0.97rem;
    padding: 0 0.5rem;
  }

  .feature-card {
    padding: 1.4rem 1rem;
  }

  .testimonial,
  .faq-item {
    padding: 1.4rem 1rem;
    max-width: 100%;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 0.5rem;
  }

  input, textarea {
    font-size: 16px;
    padding: 0.9rem;
  }

  .btn {
    padding: 0.9rem 1.6rem;
    font-size: 0.88rem;
  }
}