:root {
  --primary-color: #5A9F77;
  --secondary-color: #3A7558;
  --accent-color: #2ECC71;
  --light-color: #EDF7F1;
  --dark-color: #1A3528;
  --gradient-primary: linear-gradient(135deg, #3A7558 0%, #5A9F77 100%);
  --hover-color: #2E6347;
  --background-color: #F4FAF6;
  --text-color: #263027;
  --border-color: rgba(90, 159, 119, 0.22);
  --divider-color: rgba(58, 117, 88, 0.15);
  --shadow-color: rgba(58, 117, 88, 0.12);
  --highlight-color: #F0A55A;
  --main-font: 'Playfair Display', 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.65;
  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 1rem 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  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.35rem);
  line-height: 1.4;
}

p {
  margin: 0 0 1rem 0;
  font-size: clamp(1rem, 2vw, 1.1rem);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.hamburger .line {
  width: 22px;
  height: 2px;
  background: var(--primary-color);
  margin: 2px 0;
  transition: 0.3s;
  border-radius: 1px;
}

#menu-toggle {
  display: none;
}

#menu-toggle:checked ~ .mobile-nav {
  max-height: 400px;
  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: 1rem 0;
}

.mobile-nav a {
  display: block;
  padding: 0.8rem 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);
}

header {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-color);
  padding: 1.4rem 0;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 18px 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: all 0.3s ease;
  font-size: 0.95rem;
}

.navigation a:hover {
  color: var(--primary-color);
}

.grid {
  display: grid;
  width: 100%;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  width: 100%;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  width: 100%;
}

/* Feature cards — горизонтальный стиль с иконкой слева */
.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 3px 14px var(--shadow-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  border-top: 3px solid var(--accent-color);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 26px var(--shadow-color);
}

.feature-icon {
  font-size: 2.8rem;
  margin: 0 auto 1.2rem auto;
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, #EDF7F1 0%, #d0ede0 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.feature-card:hover .feature-icon {
  background: var(--gradient-primary);
  transform: scale(1.08);
}

.testimonial {
  background: #ffffff;
  border-left: 4px solid var(--primary-color);
  border-radius: 0 10px 10px 0;
  padding: 1.8rem 2rem;
  box-shadow: 0 3px 14px var(--shadow-color);
  transition: all 0.3s ease;
  width: 100%;
}

.testimonial:hover {
  transform: translateX(4px);
  box-shadow: 0 6px 22px var(--shadow-color);
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin: 1rem 0;
  box-shadow: 0 2px 10px var(--shadow-color);
  transition: all 0.3s ease;
  padding: 1.6rem 1.8rem;
  width: 100%;
  border-left: 4px solid var(--highlight-color);
}

.faq-item:hover {
  box-shadow: 0 4px 18px var(--shadow-color);
  transform: translateY(-2px);
}

input,
textarea {
  transition: all 0.3s ease;
  font-family: var(--alt-font);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  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(90, 159, 119, 0.13);
  background: white;
}

.btn,
button {
  transition: all 0.3s ease;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 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 18px rgba(90, 159, 119, 0.30);
}

.btn:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 28px rgba(90, 159, 119, 0.40);
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.6rem;
  text-align: center;
  box-shadow: 0 2px 12px var(--shadow-color);
  transition: all 0.3s ease;
  width: 100%;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 22px var(--shadow-color);
}

.stat-number {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--main-font);
  line-height: 1;
}

.stat-text {
  font-size: 0.95rem;
  color: var(--text-color);
  margin-top: 0.5rem;
  font-weight: 500;
}

footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 3rem 0 1rem;
}

footer img[alt="logo"] {
  filter: brightness(0) invert(1);
}

/* Random block styles — timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-dot {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 1;
}

.timeline-body {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  flex: 1;
}

.timeline-body h4 {
  color: #ffffff;
  font-family: var(--main-font);
  margin: 0 0 0.4rem 0;
  font-size: 1.05rem;
}

.timeline-body p {
  color: rgba(255,255,255,0.85);
  margin: 0;
  font-size: 0.95rem;
}

/* Pattern */
.pattern-bg {
  background-image:
    radial-gradient(circle at 10% 30%, rgba(90, 159, 119, 0.08) 3px, transparent 3px),
    radial-gradient(circle at 80% 20%, rgba(46, 204, 113, 0.06) 2px, transparent 2px),
    radial-gradient(circle at 55% 80%, rgba(58, 117, 88, 0.05) 3.5px, transparent 3.5px),
    radial-gradient(circle at 30% 65%, rgba(90, 159, 119, 0.04) 4px, transparent 4px);
  background-size: 60px 60px, 45px 45px, 75px 75px, 55px 55px;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navigation {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .feature-icon {
    width: 64px;
    height: 64px;
    font-size: 2.2rem;
  }

  .feature-card,
  .testimonial,
  .faq-item {
    padding: 1.6rem 1.2rem;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  .feature-card,
  .testimonial,
  .faq-item {
    padding: 1.3rem 0.9rem;
  }
}

a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

#contact > div > div {
  width: 80%;
}

@media (max-width: 768px) {
  #contact > div > div {
    width: 100%;
  }
}