@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:wght@500;600&display=swap");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: #faf9f6;
  color: #2b2b2b;
  line-height: 1.7;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 18px;
}

/* HEADER */
.header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e6e2dc;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-link,
.logo-link:visited,
.logo-link:hover,
.logo-link:active,
.logo-link:focus {
  color: #2b2b2b; /* основной чёрный */
  text-decoration: none;
}

.logo {
  color: inherit;
}

.logo-link {
  text-decoration: none;
  display: inline-block;
}

.logo-link .logo {
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.logo-link:hover .logo {
  opacity: 0.75;
}

.logo {
  font-weight: 600;
  padding: 16px 0;
  text-align: center;
}

/* HERO */
.hero {
  padding: 56px 0 40px;
  text-align: center;
  background: linear-gradient(to bottom, #f1eee9, #faf9f6);
}

.badge {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #3a7f5f;
  margin-bottom: 12px;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  margin-bottom: 16px;
}

.hero-text {
  font-size: 17px;
  color: #555;
}

/* IMAGES */
.image-block {
  margin: 36px 0;
  text-align: center;
}

/* WIDE IMAGE CONTAINER (desktop-friendly) */
.image-block.container {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.image-block img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.caption {
  font-size: 14px;
  color: #777;
  margin-top: 10px;
}

/* ARTICLE */
.article {
  padding: 40px 0;
}

.article > * {
  padding-left: 6px;
  padding-right: 6px;
}

.article p {
  margin-bottom: 20px;
}

.center-text {
  text-align: center;
}

.muted {
  color: #666;
}

.highlight {
  background: #f3efe7;
  padding: 18px;
  border-radius: 16px;
  margin: 30px 0;
  font-style: italic;
}

/* DIVIDER */
.divider {
  height: 1px;
  background: #e2ded8;
  margin: 48px 0;
}

/* LEFT-ALIGNED TIMELINE */
.timeline-left {
  text-align: left;
  max-width: 520px;
  margin: 0 auto;
}

.timeline-left li {
  padding-left: 18px;
  position: relative;
}

/* TESTIMONIALS */
.testimonials {
  margin: 40px 20px;
}

.testimonial {
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
}

.testimonial img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 600;
}

.testimonial-text {
  font-size: 15px;
  color: #555;
}

.cta-box {
  background: linear-gradient(135deg, #efe8da, #f7f4ee);
  padding: 28px 22px;
  border-radius: 22px;
  text-align: center;
  margin: 40px auto 0;
  max-width: 560px;
}

.btn-primary {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 26px;
  background: linear-gradient(90deg, #3a7f5f, #2f6b52);
  color: #fff;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 600;
}

.cta-note {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}

/* FOOTER */
.footer {
  border-top: 1px solid #e6e2dc;
  padding: 36px 0;
  font-size: 14px;
  color: #666;
  text-align: center;
}

.footer a {
  color: #555;
  text-decoration: none;
  margin: 0 8px;
}

/* DESKTOP */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 40px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 820px;
  }
}

/* QUIZ OVERLAY */
.quiz-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.quiz-overlay.active {
  display: flex;
}

.quiz-modal {
  background: #fff;
  width: 92%;
  max-width: 420px;
  border-radius: 22px;
  padding: 22px;
  animation: fadeUp 0.25s ease-out;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.quiz-close {
  background: none;
  border: none;
  font-size: 14px;
  color: #666;
  cursor: pointer;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
}

.quiz-step h3 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  margin-bottom: 20px;
  text-align: center;
}

.quiz-step button {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 14px;
  border: 1px solid #e0ddd7;
  background: #f7f4ee;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quiz-step button:hover {
  background: #efe8da;
}

button,
.btn-primary {
  cursor: pointer;
}

.btn-primary {
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.quiz-step button {
  cursor: pointer;
}

.quiz-step button:hover {
  background: #efe8da;
  transform: translateY(-1px);
}

.sticky-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #007bff;
  color: #fff;
  padding: 12px 18px;
  border-radius: 24px;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  z-index: 999;
}

@media (max-width: 768px) {
  .sticky-cta {
    right: 50%;
    transform: translateX(50%);
  }
}
