/* ===== CSS VARIABLES ===== */
:root {
  --primary-color: #3D7A5C;
  --secondary-color: #5A9F77;
  --accent-color: #2E6B4A;
  --light-color: #EBF5EF;
  --dark-color: #1E3D2C;
  --gradient-primary: linear-gradient(135deg, #5A9F77 0%, #2E6B4A 100%);
  --hover-color: #1E5238;
  --background-color: #F5FAF7;
  --text-color: #374840;
  --border-color: rgba(61, 122, 92, 0.18);
  --divider-color: rgba(61, 122, 92, 0.1);
  --shadow-color: rgba(61, 122, 92, 0.1);
  --highlight-color: #C0E0B1;
  --main-font: 'Merriweather', serif;
  --alt-font: 'Lato', sans-serif;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-btn: 8px;
  --shadow-card: 0 2px 12px rgba(45, 92, 127, 0.07);
  --shadow-hover: 0 8px 24px rgba(45, 92, 127, 0.14);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--alt-font);
  font-size: clamp(14px, 4vw, 17px);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-color); text-decoration: none; }
a:hover { color: var(--hover-color); }
ul { list-style: none; }

/* ===== PATTERN BG ===== */
.pattern-bg {
  background-color: var(--light-color);
  background-image: radial-gradient(circle at 20% 30%, rgba(74, 144, 226, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(90, 159, 119, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(45, 92, 127, 0.04) 0%, transparent 70%);
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== HEADER ===== */
header {
  position: static;
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 0 16px;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo a { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }

.navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.navigation ul li a {
  display: block;
  padding: 8px 10px;
  min-height: 44px;
  font-size: clamp(13px, 3vw, 15px);
  font-family: var(--alt-font);
  color: var(--text-color);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
}
.navigation ul li a:hover {
  background: var(--light-color);
  color: var(--primary-color);
}

/* mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
  color: var(--primary-color);
  font-size: 22px;
}

@media (max-width: 767px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .navigation {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 16px;
    z-index: 99;
  }
  .navigation.open { display: block; }
  .navigation ul { flex-direction: column; gap: 2px; }
}

/* ===== HERO — floating-card ===== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 48px 16px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('./img/bg.jpg') center center / cover no-repeat;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45, 92, 127, 0.55) 0%, rgba(26, 58, 82, 0.6) 100%);
  z-index: 1;
}
.hero-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  padding: 40px 28px;
  max-width: 620px;
  width: 100%;
  text-align: center;
}
.hero-card h1 {
  font-family: var(--main-font);
  font-size: clamp(26px, 6vw, 52px);
  color: var(--dark-color);
  line-height: 1.25;
  margin-bottom: 16px;
}
.hero-card .subtitle {
  font-size: clamp(15px, 3.5vw, 18px);
  color: var(--text-color);
  margin-bottom: 28px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 14px 32px;
  min-height: 44px;
  font-family: var(--alt-font);
  font-size: clamp(14px, 3.5vw, 16px);
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.2s, opacity 0.2s;
  text-decoration: none;
}
.btn-primary:hover {
  box-shadow: var(--shadow-hover);
  opacity: 0.9;
  color: #fff;
}

/* ===== INTRO ===== */
.intro-section {
  padding: 48px 16px;
  background: #fff;
}
.intro-section .container { max-width: 800px; }
.section-title {
  font-family: var(--main-font);
  font-size: clamp(22px, 5vw, 38px);
  color: var(--dark-color);
  margin-bottom: 16px;
  line-height: 1.3;
}
.section-subtitle {
  font-size: clamp(14px, 3.5vw, 17px);
  color: var(--text-color);
  margin-bottom: 12px;
}

/* ===== WIDE THEMATIC BLOCK (between intro and features) ===== */
.thematic-block {
  width: 100%;
  background: var(--gradient-primary);
  padding: 48px 16px;
  text-align: center;
}
.thematic-block .thematic-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.thematic-block h2 {
  font-family: var(--main-font);
  font-size: clamp(20px, 5vw, 34px);
  color: #fff;
  margin-bottom: 16px;
}
.thematic-block p {
  font-size: clamp(14px, 3.5vw, 17px);
  color: rgba(255,255,255,0.9);
  max-width: 720px;
  margin: 0 auto 24px;
}
.thematic-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}
.thematic-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  min-width: 100px;
}
.thematic-icon-item span.icon { font-size: 32px; }
.thematic-icon-item span.label {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

/* ===== FEATURES — features-numbered ===== */
.features-section {
  padding: 48px 16px;
}
.features-section .section-header {
  text-align: center;
  margin-bottom: 32px;
}
.features-numbered {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .features-numbered { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .features-numbered { grid-template-columns: repeat(3, 1fr); }
}
.feature-num-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-num-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.feature-num {
  font-family: var(--main-font);
  font-size: clamp(36px, 7vw, 60px);
  color: var(--accent-color);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.85;
}
.feature-num-card h3 {
  font-family: var(--main-font);
  font-size: clamp(16px, 3.5vw, 20px);
  color: var(--dark-color);
  margin-bottom: 8px;
}
.feature-num-card p {
  font-size: clamp(13px, 3vw, 15px);
  color: var(--text-color);
}

/* ===== IMG+TEXT — img-right ===== */
.img-text-section {
  padding: 48px 16px;
  background: #fff;
}
.img-text-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 768px) {
  .img-text-grid { grid-template-columns: 55% 45%; }
}
.img-text-content h2 {
  font-family: var(--main-font);
  font-size: clamp(20px, 5vw, 34px);
  color: var(--dark-color);
  margin-bottom: 16px;
}
.img-text-content p { margin-bottom: 14px; font-size: clamp(14px, 3.5vw, 16px); }
.img-text-img img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* ===== CHECKLIST (Пул C) ===== */
.checklist-section {
  padding: 48px 16px;
  background: var(--light-color);
}
.checklist-section .section-header {
  text-align: center;
  margin-bottom: 32px;
}
.checklist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .checklist-grid { grid-template-columns: repeat(2, 1fr); }
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
}
.check-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: var(--highlight-color);
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.checklist-item p {
  font-size: clamp(13px, 3vw, 15px);
  color: var(--text-color);
}

/* ===== TESTIMONIALS — cards ===== */
.testimonials-section {
  padding: 48px 16px;
  background: #fff;
}
.testimonials-section .section-header {
  text-align: center;
  margin-bottom: 32px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}
.testimonial-card {
  background: var(--light-color);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s;
}
.testimonial-card:hover { box-shadow: var(--shadow-hover); }
.stars { color: #F4A235; font-size: 18px; margin-bottom: 10px; }
.testimonial-card p { font-size: clamp(13px, 3vw, 15px); color: var(--text-color); margin-bottom: 14px; font-style: italic; }
.testimonial-author { font-weight: 700; font-size: 14px; color: var(--primary-color); }

/* ===== CONTACT ===== */
.contact-section {
  padding: 48px 16px;
  background: var(--light-color);
}
.contact-section .section-header { text-align: center; margin-bottom: 32px; }
.contact-wrap {
  width: 100%;
  max-width: 100%;
}
@media (min-width: 768px) {
  .contact-wrap { width: 80%; margin: 0 auto; }
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-info h3 {
  font-family: var(--main-font);
  font-size: clamp(18px, 4vw, 24px);
  color: var(--dark-color);
  margin-bottom: 16px;
}
.contact-info p { font-size: clamp(13px, 3vw, 15px); margin-bottom: 10px; color: var(--text-color); }
.contact-info a { color: var(--primary-color); }
.contact-form h3 {
  font-family: var(--main-font);
  font-size: clamp(16px, 4vw, 22px);
  color: var(--dark-color);
  margin-bottom: 20px;
}
.form-field {
  width: 100%;
  margin-bottom: 14px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--alt-font);
  font-size: 15px;
  color: var(--text-color);
  background: #fff;
  min-height: 44px;
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}
.form-field textarea { min-height: 110px; resize: vertical; }

/* ===== FAQ ===== */
.faq-section {
  padding: 48px 16px;
  background: #fff;
}
.faq-section .section-header { text-align: center; margin-bottom: 32px; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.faq-item {
  border-radius: var(--radius-md);
  background: var(--light-color);
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
}
.faq-item h3 {
  font-family: var(--main-font);
  font-size: clamp(15px, 3.5vw, 18px);
  color: var(--dark-color);
  margin-bottom: 10px;
}
.faq-item p { font-size: clamp(13px, 3vw, 15px); color: var(--text-color); }

/* ===== FOOTER ===== */
footer {
  background: var(--dark-color);
  color: rgba(255,255,255,0.82);
  padding: 40px 16px 20px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
}
footer img[alt="logo"] { filter: brightness(0) invert(1); }
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
@media (min-width: 768px) {
  .footer-nav ul {
    flex-direction: row;
    gap: 24px;
    align-items: center;
  }
}
.footer-nav ul li a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-nav ul li a:hover { color: #fff; }
.footer-copy {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  margin-top: 16px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== DESKTOP PADDING ===== */
@media (min-width: 1024px) {
  .intro-section,
  .thematic-block,
  .features-section,
  .img-text-section,
  .checklist-section,
  .testimonials-section,
  .contact-section,
  .faq-section {
    padding-top: 80px;
    padding-bottom: 80px;
    padding-left: 24px;
    padding-right: 24px;
  }
}