:root {
  --primary-color: #9C1C66;
  --secondary-color: #F2D4C9;
  --accent-color: #c4507e;
  --light-color: #fdf0f5;
  --dark-color: #4B1461;
  --gradient-primary: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  --hover-color: #7a1450;
  --background-color: #fefcfd;
  --text-color: #3d2a35;
  --border-color: rgba(156,28,102,0.15);
  --divider-color: rgba(156,28,102,0.08);
  --shadow-color: rgba(156,28,102,0.10);
  --highlight-color: #F0A55A;
  --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(156,28,102,0.07);
  --shadow-hover: 0 6px 24px rgba(156,28,102,0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--alt-font);
  background-color: var(--background-color);
  color: var(--text-color);
  font-size: clamp(14px, 4vw, 17px);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary-color); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--hover-color); }

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  padding: 0 16px;
  margin: 0 auto;
}
@media (min-width: 1200px) {
  .container { max-width: 1200px; }
}

/* ===== HEADER ===== */
header {
  position: relative;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 0 16px;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 64px;
}
.logo a { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }

/* Hamburger */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  min-height: 44px;
  justify-content: center;
}
.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: all 0.3s;
}
.navigation {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  z-index: 99;
}
.nav-toggle:checked ~ .navigation {
  max-height: 400px;
}
.navigation ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 4px;
}
.navigation ul li a {
  display: block;
  padding: 10px 12px;
  min-height: 44px;
  color: var(--text-color);
  font-family: var(--alt-font);
  font-size: 15px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.navigation ul li a:hover {
  background: var(--light-color);
  color: var(--primary-color);
}
@media (min-width: 768px) {
  .nav-toggle-label { display: none; }
  .navigation {
    max-height: none;
    overflow: visible;
    position: static;
    background: transparent;
    border-bottom: none;
  }
  .navigation ul {
    flex-direction: row;
    padding: 0;
    gap: 4px;
    align-items: center;
  }
}

/* ===== HERO — floating-card ===== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('./img/bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 48px 16px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 50, 30, 0.40);
}
.hero-card {
  position: relative;
  background: rgba(255,255,255,0.93);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  max-width: 600px;
  width: 100%;
  text-align: center;
  backdrop-filter: blur(4px);
}
.hero-card h1 {
  font-family: var(--main-font);
  font-size: clamp(28px, 6vw, 52px);
  color: var(--dark-color);
  line-height: 1.25;
  margin-bottom: 16px;
}
.hero-card p {
  font-size: clamp(14px, 3vw, 17px);
  color: var(--text-color);
  margin-bottom: 28px;
}
@media (min-width: 768px) {
  .hero-card { padding: 52px 48px; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  min-height: 44px;
  border-radius: var(--radius-btn);
  font-family: var(--alt-font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.22s, transform 0.18s, box-shadow 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary-color);
  color: #fff;
}
.btn-primary:hover {
  background: var(--hover-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* ===== SECTION BASE ===== */
section { padding: 48px 16px; }
@media (min-width: 768px) { section { padding: 80px 24px; } }

.section-title {
  font-family: var(--main-font);
  font-size: clamp(22px, 5vw, 38px);
  color: var(--dark-color);
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-color);
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: clamp(14px, 3vw, 16px);
}

/* ===== PATTERN BG ===== */
.pattern-bg {
  background-color: var(--light-color);
  background-image: radial-gradient(circle, var(--accent-color) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center;
}

/* ===== INTRO ===== */
#intro { background: var(--light-color); }
.intro-content { max-width: 760px; margin: 0 auto; text-align: center; }
.intro-content h2 { font-family: var(--main-font); font-size: clamp(20px, 4vw, 32px); color: var(--dark-color); margin-bottom: 16px; }
.intro-content p { color: var(--text-color); margin-bottom: 12px; }

/* ===== BETWEEN INTRO & FEATURES — checklist (Пул C) ===== */
#checklist-section {
  background: var(--gradient-primary);
  padding: 48px 16px;
}
@media (min-width: 768px) { #checklist-section { padding: 72px 24px; } }
.checklist-inner { max-width: 1200px; margin: 0 auto; }
.checklist-inner .section-title { color: #fff; margin-bottom: 8px; }
.checklist-inner .section-subtitle { color: rgba(255,255,255,0.85); margin-bottom: 36px; }
.checklist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .checklist-grid { grid-template-columns: repeat(2, 1fr); }
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.checklist-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--primary-color);
  font-weight: 700;
  margin-top: 2px;
}
.checklist-item p { color: #fff; font-size: 15px; line-height: 1.5; }

/* ===== FEATURES — features-numbered (Пул A) ===== */
#features { background: var(--background-color); }
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.feature-num {
  font-family: var(--main-font);
  font-size: clamp(42px, 7vw, 64px);
  color: var(--secondary-color);
  line-height: 1;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-icon {
  text-align: center;
  font-size: 36px;
  margin-bottom: 10px;
}
.feature-card h3 {
  font-family: var(--main-font);
  font-size: clamp(16px, 3vw, 20px);
  color: var(--dark-color);
  margin-bottom: 10px;
}
.feature-card p { font-size: 14px; color: var(--text-color); }

/* ===== IMAGE+TEXT — img-right (Пул B) ===== */
#img-text-section { background: var(--light-color); }
.img-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}
.img-text-content { order: 1; }
.img-text-img { order: 2; border-radius: var(--radius-lg); overflow: hidden; width: 100%; }
.img-text-img img { width: 100%; height: 340px; object-fit: cover; border-radius: var(--radius-lg); }
.img-text-content h2 { font-family: var(--main-font); font-size: clamp(20px, 4vw, 32px); color: var(--dark-color); margin-bottom: 16px; }
.img-text-content p { color: var(--text-color); margin-bottom: 14px; }
@media (min-width: 768px) {
  .img-text-wrap { flex-direction: row; }
  .img-text-content { order: 1; flex: 0 0 55%; }
  .img-text-img { order: 2; flex: 0 0 45%; }
}

/* ===== TESTIMONIALS — testimonials-cards (Пул D) ===== */
#testimonials { background: var(--background-color); }
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 640px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--primary-color);
}
.testimonial-stars { color: #f0a55a; font-size: 18px; margin-bottom: 10px; }
.testimonial-text { color: var(--text-color); font-size: 15px; line-height: 1.65; margin-bottom: 14px; }
.testimonial-name { font-weight: 700; color: var(--dark-color); font-size: 14px; }

/* ===== CONTACT ===== */
#contact { background: var(--light-color); }
.contact-wrap {
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .contact-wrap {
    flex-direction: row;
    width: 80%;
    align-items: flex-start;
  }
}
.contact-info { flex: 0 0 300px; }
.contact-info h2 { font-family: var(--main-font); font-size: clamp(20px, 4vw, 28px); color: var(--dark-color); margin-bottom: 20px; }
.contact-info p { color: var(--text-color); margin-bottom: 10px; display: flex; gap: 10px; align-items: flex-start; }
.contact-info p span { color: var(--primary-color); font-weight: 700; flex-shrink: 0; }

.contact-form-wrap { flex: 1; }
.contact-form-wrap h3 { font-family: var(--main-font); font-size: clamp(16px, 3vw, 22px); color: var(--dark-color); margin-bottom: 20px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--alt-font);
  font-size: 15px;
  color: var(--text-color);
  background: #fff;
  min-height: 44px;
  transition: border-color 0.2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}
.contact-form textarea { min-height: 110px; }

/* ===== FAQ ===== */
#faq { background: var(--background-color); }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--accent-color);
}
.faq-item h3 { font-family: var(--main-font); font-size: clamp(15px, 3vw, 18px); color: var(--dark-color); margin-bottom: 10px; }
.faq-item p { color: var(--text-color); font-size: 15px; }

/* ===== FOOTER ===== */
footer {
  background: var(--dark-color);
  color: rgba(255,255,255,0.85);
  padding: 40px 16px 24px;
}
footer img[alt="logo"] { filter: brightness(0) invert(1); }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-logo .logo img { height: 36px; }
.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.footer-nav ul li a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  transition: color 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-nav ul li a:hover { color: #fff; }
.footer-copy {
  width: 100%;
  max-width: 1200px;
  margin: 24px auto 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 16px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-nav ul { flex-direction: row; flex-wrap: wrap; gap: 4px 20px; justify-content: flex-end; }
}