/* ===== Reset & base ===== */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #1f2937;
  background: #fff8ef;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; }

/* ===== Background ===== */
.bg-soft {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #fff8ef 0%, #ffeede 60%, #fff5e8 100%);
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
}
.blob--a {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #ffb86b 0%, transparent 70%);
  top: -120px; left: -100px;
}
.blob--b {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #ffd28a 0%, transparent 70%);
  bottom: -200px; right: -150px;
}

/* ===== Topbar ===== */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: 20px 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; color: #4a2a00;
}
.brand__logo {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #ff9a3d, #ffba6a);
  box-shadow: 0 8px 18px rgba(255, 138, 30, .35);
  font-size: 18px;
}
.brand__name b { color: #ff7a1a; }
.topnav { display: flex; gap: 22px; font-weight: 600; color: #6b4a22; }
.topnav a:hover { color: #ff7a1a; }

/* ===== Hero ===== */
.hero {
  max-width: 1120px; margin: 0 auto; padding: 32px 24px 64px;
}
.hero__inner {
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(10px);
  border: 1px solid #ffe0bf;
  border-radius: 28px;
  padding: 44px 36px;
  box-shadow: 0 30px 60px -30px rgba(255, 138, 30, .35);
}
.pill {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff2e0;
  border: 1px solid #ffd9b0;
  font-weight: 700; font-size: 13px; color: #c45a00;
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(28px, 4.4vw, 48px);
  line-height: 1.15; margin: 0 0 16px;
  font-weight: 800; color: #2a1700;
  letter-spacing: -0.02em;
}
.accent {
  background: linear-gradient(135deg, #ff7a1a, #ffb04a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: #5b4628; max-width: 720px; margin: 0 0 28px;
}

/* ===== MAX step ===== */
.max-step {
  background: #fff;
  border: 1px solid #ffd9b0;
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px -15px rgba(255, 138, 30, .35);
}
.max-step__row {
  display: flex; align-items: center; gap: 18px;
}
.max-step__num, .cta-block__num {
  width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a1a, #ffb04a);
  color: #fff; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(255, 138, 30, .4);
}
.max-step__text { flex: 1; }
.max-step__text h3 { margin: 0 0 4px; font-size: 17px; color: #2a1700; }
.max-step__text p  { margin: 0; color: #6b5232; font-size: 14px; }
.max-step__hint {
  margin: 14px 0 0; padding-left: 54px;
  font-size: 13px; color: #6b5232;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px;
  font-weight: 700; font-size: 16px;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--max {
  background: #fff; color: #2a1700;
  border: 2px solid #2a1700;
  box-shadow: 0 6px 0 #2a1700;
}
.btn--max:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #2a1700; }
.btn--max.is-done {
  background: #d5f5d5; border-color: #2f8f3a; color: #1f6e29; box-shadow: 0 6px 0 #2f8f3a;
}
.btn__icon {
  width: 26px; height: 26px; border-radius: 7px;
  display: block; object-fit: contain;
}
.btn--primary {
  background: linear-gradient(135deg, #ff7a1a, #ffb04a);
  color: #fff;
  padding: 18px 28px; font-size: 17px;
  width: 100%;
  box-shadow: 0 14px 30px -8px rgba(255, 138, 30, .55);
}
.btn--primary:hover { transform: translateY(-2px); }
.cta--locked {
  background: #f1e4d0 !important; color: #a08766 !important;
  cursor: not-allowed; box-shadow: none !important;
}

/* ===== CTA block ===== */
.cta-block {
  background: #fff;
  border: 1px solid #ffd9b0;
  border-radius: 20px;
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px; align-items: stretch;
  position: relative;
  margin-bottom: 28px;
}
.cta-block__num {
  position: absolute; top: 22px; left: 22px;
}
.cta-block .btn--primary { margin-left: 0; margin-top: 14px; }
.cta-block__meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; color: #6b5232; font-size: 14px;
}
.cta-block__meta b { color: #2a1700; }

/* ===== Benefits ===== */
.benefits {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 8px;
}
.benefit {
  background: #fff;
  border: 1px solid #ffe0bf;
  border-radius: 16px;
  padding: 18px;
}
.benefit__icon { font-size: 26px; margin-bottom: 8px; }
.benefit h4 { margin: 0 0 6px; color: #2a1700; font-size: 16px; }
.benefit p  { margin: 0; color: #6b5232; font-size: 14px; }

/* ===== Sections ===== */
.section {
  max-width: 1120px; margin: 0 auto; padding: 56px 24px;
}
.section--alt {
  background: rgba(255, 255, 255, .55);
  border-top: 1px solid #ffe0bf;
  border-bottom: 1px solid #ffe0bf;
  max-width: 100%; padding: 56px 24px;
}
.section--alt > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.section__head { text-align: center; margin-bottom: 28px; }
.section__head h2 {
  margin: 0 0 8px; font-size: clamp(24px, 3vw, 34px);
  color: #2a1700; letter-spacing: -0.01em;
}
.section__head p { margin: 0; color: #6b5232; }

/* ===== Subjects ===== */
.subjects {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.subj {
  background: #fff; border: 1px solid #ffe0bf;
  border-radius: 14px; padding: 14px 16px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  font-weight: 700; color: #2a1700; text-align: left;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  font-family: inherit; font-size: 15px;
}
.subj:hover { transform: translateY(-2px); border-color: #ff9a3d; box-shadow: 0 10px 24px -14px rgba(255, 138, 30, .55); }
.subj:active { transform: translateY(0); }
.subj__ico { font-size: 22px; }
.subj__name { display: block; }
.subj__desc { display: block; font-weight: 500; font-size: 12px; color: #8a6a3d; line-height: 1.35; }

/* ===== Authors ===== */
.authors {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.author {
  background: #fff; border: 1px solid #ffe0bf;
  border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; gap: 4px;
  text-align: left; cursor: pointer; font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.author:hover { transform: translateY(-2px); border-color: #ff9a3d; box-shadow: 0 10px 24px -14px rgba(255, 138, 30, .55); }
.author b { color: #2a1700; font-size: 16px; }
.author span { color: #8a6a3d; font-size: 13px; }

/* ===== Modal ===== */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 16px;
}
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(40, 20, 0, .55); backdrop-filter: blur(4px);
}
.modal__card {
  position: relative; z-index: 1;
  background: #fff; border-radius: 20px;
  padding: 28px 26px 22px; max-width: 460px; width: 100%;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.4);
  animation: modalIn .2s ease-out;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.modal__close {
  position: absolute; top: 10px; right: 14px;
  font-size: 26px; line-height: 1; color: #8a6a3d;
  background: none; border: 0; cursor: pointer;
}
.modal__title { margin: 0 0 8px; font-size: 22px; color: #2a1700; }
.modal__text { margin: 0 0 12px; color: #5b4628; }
.modal__list { margin: 0 0 18px; padding-left: 18px; color: #4a3618; }
.modal__list li { margin-bottom: 6px; }
.modal__cta { width: 100%; padding: 12px 16px; }

/* ===== Proof ===== */
.proof {
  max-width: 1120px; margin: 0 auto; padding: 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.proof__num {
  background: #fff; border: 1px solid #ffe0bf;
  border-radius: 16px; padding: 18px; text-align: center;
}
.proof__num b {
  display: block; font-size: 26px; color: #ff7a1a; line-height: 1.2;
}
.proof__num span { font-size: 13px; color: #6b5232; }

/* ===== Final CTA ===== */
.final {
  max-width: 760px; margin: 24px auto 64px; padding: 36px 24px;
  text-align: center;
  background: #fff;
  border: 1px solid #ffd9b0;
  border-radius: 24px;
  box-shadow: 0 20px 50px -25px rgba(255, 138, 30, .4);
}
.final h2 { margin: 0 0 8px; color: #2a1700; font-size: clamp(22px, 3vw, 30px); }
.final p  { margin: 0 0 18px; color: #6b5232; }

/* ===== FAQ ===== */
.faq { display: grid; gap: 10px; max-width: 760px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid #ffe0bf; border-radius: 14px;
  padding: 14px 18px;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: #2a1700; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::after {
  content: '+'; font-size: 22px; color: #ff7a1a; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 10px 0 0; color: #6b5232; font-size: 14px; }

/* ===== Footer ===== */
.footer {
  max-width: 1120px; margin: 0 auto; padding: 32px 24px;
  border-top: 1px solid #ffe0bf;
  color: #6b5232; font-size: 13px;
}
.footer__row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap;
}
.footer__links { display: flex; gap: 16px; align-items: center; }
.footer__links a:hover { color: #ff7a1a; }
.age {
  border: 1px solid #ffd9b0; padding: 2px 8px; border-radius: 8px; font-weight: 700;
}
.footer__note { margin: 12px 0 0; color: #8a6a3d; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .topnav { display: none; }
  .hero__inner { padding: 28px 20px; }
  .max-step__row { flex-wrap: wrap; }
  .max-step__row .btn { width: 100%; }
  .max-step__hint { padding-left: 0; }
  .benefits, .subjects, .authors, .proof { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .benefits, .subjects, .authors, .proof { grid-template-columns: 1fr; }
}


/* ===== Info modal ===== */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(40, 20, 0, .55); backdrop-filter: blur(4px); }
.modal__card {
  position: relative; z-index: 1; background: #fff; border-radius: 20px;
  padding: 28px 26px 22px; max-width: 460px; width: 100%;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.4);
  animation: modalIn .2s ease-out;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.modal__close { position: absolute; top: 10px; right: 14px; font-size: 26px; line-height: 1; color: #8a6a3d; background: none; border: 0; cursor: pointer; }
.modal__title { margin: 0 0 8px; font-size: 22px; color: #2a1700; }
.modal__text { margin: 0 0 12px; color: #5b4628; }
.modal__list { margin: 0 0 18px; padding-left: 18px; color: #4a3618; }
.modal__list li { margin-bottom: 6px; }
.modal__cta { width: 100%; padding: 12px 16px; }
