:root {
  --page-bg: #f8f1e8;
  --paper: #fffaf3;
  --paper-strong: #fffdf9;
  --mint: #d6f1e7;
  --mint-strong: #66a098;
  --mint-dark: #547f7a;
  --pink: #e68f93;
  --pink-dark: #d97984;
  --peach: #f6d8c8;
  --sand: #efe4d4;
  --line: rgba(157, 129, 112, 0.22);
  --text: #58514a;
  --shadow: 0 16px 35px rgba(185, 153, 126, 0.14);
  --card-shadow: 0 10px 24px rgba(185, 153, 126, 0.16);
  --rule-color: rgba(170, 140, 119, 0.32);
  --rule-thickness: 2px;
  --rule-inset: 110px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.88), transparent 19%),
    radial-gradient(circle at 88% 27%, rgba(255, 255, 255, 0.7), transparent 15%),
    radial-gradient(circle at 18% 76%, rgba(211, 240, 230, 0.34), transparent 20%),
    radial-gradient(circle at 84% 80%, rgba(244, 210, 193, 0.3), transparent 18%),
    linear-gradient(180deg, #fbf7f1 0%, #f7ede2 45%, #f2ece3 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(191, 164, 143, 0.12) 0.8px, transparent 0.8px),
    radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-position: 0 0, 18px 21px;
  background-size: 24px 24px, 32px 32px;
  mix-blend-mode: multiply;
  opacity: 0.65;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.section-shell {
  width: min(1020px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: 18px 0 14px;
  text-align: center;
}

.logo-wrap {
  padding-top: 8px;
}

.logo {
  font-family: "Marck Script", cursive;
  font-size: clamp(44px, 5vw, 66px);
  line-height: 0.92;
  color: var(--pink-dark);
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.65);
}

.logo-subtitle {
  margin-top: 8px;
  font-size: clamp(15px, 1.45vw, 19px);
  color: #897f76;
}

.curve {
  width: calc(100% - (var(--rule-inset) * 2));
  height: 32px;
  margin-top: 14px;
  margin-inline: auto;
  border-top: var(--rule-thickness) dotted var(--rule-color);
  border-radius: 50% / 100%;
  transform: scaleX(1.2);
}

.hero-copy {
  position: relative;
  padding: 18px 0 18px;
}

.hero-copy::before,
.hero-copy::after {
  content: "";
  position: absolute;
  left: var(--rule-inset);
  right: var(--rule-inset);
  height: 0;
  border-top: var(--rule-thickness) dotted var(--rule-color);
  border-radius: 999px;
}

.hero-copy::before {
  top: 0;
}

.hero-copy::after {
  bottom: 0;
}

.hero-copy h1 {
  max-width: 880px;
  margin: 0 auto;
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.14;
  color: var(--mint-dark);
  font-weight: 800;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 strong {
  color: var(--pink-dark);
  font-weight: 800;
}

.hero-copy p {
  margin: 18px auto 0;
  max-width: 640px;
  font-size: clamp(15px, 1.25vw, 18px);
  color: #6d655d;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  min-width: 228px;
  min-height: 58px;
  padding: 12px 26px;
  border: 2px dashed rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background:
    linear-gradient(180deg, #ef9da0 0%, #dd7f83 100%);
  box-shadow:
    inset 0 -4px 0 rgba(156, 73, 78, 0.25),
    0 10px 20px rgba(203, 115, 121, 0.3);
  color: #fff;
  font-size: clamp(18px, 1.55vw, 24px);
  font-weight: 800;
  text-decoration: none;
}

.section-shell {
  position: relative;
  padding: 18px 0 12px;
}

main > section + section {
  margin-top: 34px;
}

.section-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 0 0 32px;
  color: var(--mint-dark);
  font-size: clamp(24px, 2vw, 34px);
  font-style: italic;
  font-weight: 800;
  text-align: center;
}

.section-title::before,
.section-title::after {
  content: "";
  display: block;
  border-top: var(--rule-thickness) dotted var(--rule-color);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.soft-card {
  position: relative;
  background: rgba(255, 252, 247, 0.92);
  border: 1px solid rgba(221, 204, 191, 0.7);
  border-radius: 26px;
  box-shadow: var(--card-shadow);
}

.soft-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

.problem-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 14px 16px;
}

.problem-card p {
  margin: 0;
  font-size: clamp(15px, 1.12vw, 19px);
  line-height: 1.22;
  font-weight: 700;
}

.problem-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 22px;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.07);
}

.problem-avatar {
  background: #f7d9c6;
}

.problem-heart {
  background: #f2d7db;
}

.problem-coin {
  background: #f3d99f;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.solution-card {
  padding: 10px;
  text-align: center;
}

.solution-card h3 {
  margin: 10px 0 6px;
  font-size: clamp(14px, 1.06vw, 18px);
  line-height: 1.18;
}

.solution-illustration {
  position: relative;
  height: 72px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.solution-illustration::before,
.solution-illustration::after {
  content: "✦";
  position: absolute;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.solution-illustration::before {
  left: 14px;
  top: 16px;
}

.solution-illustration::after {
  right: 18px;
  top: 26px;
}

.pastel-peach {
  background: linear-gradient(180deg, #f9e8db 0%, #f6d5c3 100%);
}

.pastel-mint {
  background: linear-gradient(180deg, #e0f2e9 0%, #cae8dc 100%);
}

.pastel-sand {
  background: linear-gradient(180deg, #f6edde 0%, #efdfc9 100%);
}

.mini-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  font-size: 20px;
}

.section-note {
  margin: 22px 0 10px;
  text-align: center;
  font-size: clamp(16px, 1.25vw, 22px);
  color: var(--mint-dark);
  font-weight: 800;
}

.how-it-works {
  padding-top: 12px;
}

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr) 64px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

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

.step-visual {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ed9aa0 0%, #de8387 100%);
  color: #fff;
  font-size: 24px;
  box-shadow:
    inset 0 -6px 0 rgba(155, 74, 80, 0.2),
    0 8px 18px rgba(199, 111, 117, 0.24);
}

.step-card p {
  margin: 0;
  font-size: clamp(14px, 1.05vw, 18px);
  font-weight: 700;
}

.step-arrow {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, rgba(204, 149, 133, 0.2), rgba(204, 149, 133, 0.82));
  border-radius: 999px;
}

.step-arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-top: 3px solid #c88778;
  border-right: 3px solid #c88778;
  transform: translateY(-50%) rotate(45deg);
}

.advantages-band {
  position: relative;
  margin-top: 42px;
  padding: 24px 0 42px;
  background:
    radial-gradient(circle at 10% 72%, rgba(176, 226, 214, 0.55), transparent 17%),
    radial-gradient(circle at 88% 58%, rgba(165, 223, 206, 0.46), transparent 16%),
    radial-gradient(circle at 20% 93%, rgba(250, 232, 219, 0.78), transparent 11%),
    linear-gradient(180deg, #e9f6f0 0%, #d9efe6 55%, #e7f5ef 100%);
}

.advantages-band::before {
  content: "";
  position: absolute;
  left: var(--rule-inset);
  right: var(--rule-inset);
  height: 0;
  border-top: var(--rule-thickness) dotted var(--rule-color);
}

.advantages-band::before {
  top: 0;
}

.advantages-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, 430px);
  gap: 30px;
  align-items: start;
}

.advantages-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.advantages-list li {
  position: relative;
  margin-bottom: 16px;
  padding-left: 46px;
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 700;
}

.advantages-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: var(--mint-strong);
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(110, 154, 140, 0.18);
}

.lead-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: rgba(255, 251, 246, 0.9);
}

.lead-form input,
.lead-form textarea,
.lead-form select {
  width: 100%;
  border: 1px solid rgba(188, 171, 153, 0.58);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 11px 13px;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  box-shadow: inset 0 2px 8px rgba(165, 145, 124, 0.05);
}

.lead-form textarea {
  resize: vertical;
  min-height: 82px;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #8b8178;
  border-bottom: 2px solid #8b8178;
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.lead-form select {
  appearance: none;
}

.contact-options {
  display: flex;
  gap: 12px;
  margin: 2px 0 0;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid rgba(202, 182, 164, 0.5);
}

.contact-options label,
.policy-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(12px, 0.95vw, 16px);
}

.contact-options input,
.policy-check input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--mint-strong);
}

.policy-check {
  padding-top: 10px;
  border-top: 1px solid rgba(202, 182, 164, 0.5);
  color: #6e847f;
}

.form-status {
  min-height: 18px;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: #7f756d;
}

.form-status[data-state="success"] {
  color: #5d8c84;
}

.form-status[data-state="error"] {
  color: #c06a73;
}

.form-status[data-state="pending"] {
  color: #8a8179;
}

.button-wide {
  width: 100%;
  min-height: 62px;
  margin-top: 0;
}

.lead-form button:disabled {
  cursor: wait;
  opacity: 0.92;
}

.reviews-shell {
  padding: 42px 0 46px;
}

.review-placeholder {
  max-width: 430px;
  margin: 0 auto;
  padding: 18px 28px;
  text-align: center;
  font-family: "Marck Script", cursive;
  font-size: clamp(22px, 1.95vw, 30px);
  color: #5f7e81;
}

.footer {
  position: relative;
  padding: 22px 0 20px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(216, 243, 235, 0.74), transparent 38%),
    linear-gradient(180deg, rgba(231, 247, 240, 0.78) 0%, rgba(230, 244, 238, 0.9) 100%);
}

.footer::before {
  content: "";
  position: absolute;
  left: var(--rule-inset);
  right: var(--rule-inset);
  top: 0;
  height: 0;
  border-top: var(--rule-thickness) dotted var(--rule-color);
}

.footer-contact-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: clamp(12px, 1vw, 16px);
}

.footer-copy {
  position: relative;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.footer-copy::after {
  content: "Скопировано";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(155, 126, 102, 0.14);
  color: var(--mint-dark);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.footer-copy[data-copied="true"]::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer-copy[data-copied="error"]::after {
  content: "Не скопировалось";
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  color: #c06a73;
}

.footer-contact-row a {
  color: inherit;
}

.footer p {
  margin: 10px 0 0;
  font-size: clamp(11px, 0.92vw, 14px);
}

.decor {
  position: absolute;
  pointer-events: none;
}

.decor-cloud {
  width: 142px;
  height: 60px;
  background:
    radial-gradient(circle at 25% 60%, #d3f0e5 0 28px, transparent 29px),
    radial-gradient(circle at 50% 42%, #d3f0e5 0 34px, transparent 35px),
    radial-gradient(circle at 74% 60%, #d3f0e5 0 24px, transparent 25px);
  filter: drop-shadow(0 8px 16px rgba(102, 160, 152, 0.12));
  opacity: 0.9;
}

.decor-cloud::after {
  content: "";
  position: absolute;
  inset: 34px 12px 0;
  background: #d3f0e5;
  border-radius: 999px;
}

.decor-cloud-left {
  top: 286px;
  left: 58px;
}

.decor-cloud-right {
  top: 412px;
  right: 82px;
  transform: scale(0.78);
  background:
    radial-gradient(circle at 25% 60%, #fff 0 28px, transparent 29px),
    radial-gradient(circle at 50% 42%, #fff 0 34px, transparent 35px),
    radial-gradient(circle at 74% 60%, #fff 0 24px, transparent 25px);
}

.decor-cloud-right::after {
  background: #fff;
}

.decor-cloud-mid {
  top: 92px;
  right: 220px;
  transform: scale(0.72);
}

.decor-star {
  width: 18px;
  aspect-ratio: 1;
  background: currentColor;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 92%, 50% 70%, 21% 92%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.68;
}

.decor-star-a {
  top: 100px;
  left: 60px;
  color: #f1b3b4;
}

.decor-star-b {
  top: 112px;
  right: 116px;
  color: #efb3ae;
}

.decor-star-c {
  top: 338px;
  right: 260px;
  color: #f4bea9;
}

.decor-star-d {
  top: 630px;
  left: 72px;
  color: #f7c39e;
}

.decor-star-e {
  top: 1120px;
  right: 80px;
  color: #c3e4d6;
}

.decor-star-f {
  top: 1490px;
  left: 78px;
  color: #efb4ad;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  :root {
    --rule-inset: 52px;
  }

  main > section + section {
    margin-top: 18px;
  }

  .problem-grid,
  .solution-grid,
  .advantages-layout,
  .steps {
    grid-template-columns: 1fr;
  }

  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    gap: 22px;
  }

  .step-arrow {
    display: none;
  }

  .advantages-layout {
    gap: 18px;
  }

  .advantages-list {
    margin-top: 4px;
  }

  .advantages-band {
    padding-bottom: 22px;
  }
}

@media (min-width: 1100px) {
  .hero-copy {
    padding: 22px 0 26px;
  }

  .hero-copy h1 {
    max-width: 760px;
    font-size: clamp(34px, 3vw, 40px);
  }

  .hero-copy p {
    max-width: 600px;
    font-size: 16px;
  }

  .primary-button {
    min-height: 56px;
    font-size: 20px;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 34px;
  }

  .problem-card {
    min-height: 92px;
  }

  .problem-card p {
    font-size: 16px;
  }

  .solution-card h3 {
    font-size: 15px;
  }

  .section-note {
    font-size: 18px;
  }

  .step-card p {
    font-size: 15px;
  }

  .advantages-list li {
    font-size: 16px;
  }

  .lead-form {
    padding: 16px;
  }

  .lead-form input,
  .lead-form textarea,
  .lead-form select {
    font-size: 12px;
  }

  .contact-options label,
  .policy-check {
    font-size: 13px;
  }

  .button-wide {
    min-height: 58px;
    font-size: 18px;
  }
}

@media (max-width: 720px) {
  :root {
    --rule-inset: 18px;
  }

  .section-shell {
    width: min(100% - 20px, 1020px);
  }

  .hero {
    padding-top: 10px;
  }

  .curve {
    margin-top: 12px;
    transform: scaleX(1.04);
  }

  .hero-copy {
    padding: 16px 0;
  }

  .hero-copy p {
    margin-top: 14px;
  }

  .primary-button {
    min-width: 0;
    width: 100%;
    min-height: 56px;
    font-size: 22px;
  }

  .problem-card {
    min-height: 84px;
  }

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .contact-options {
    flex-direction: column;
    gap: 12px;
  }

  .advantages-layout {
    grid-template-columns: 1fr;
  }

  .decor-cloud-left,
  .decor-cloud-right,
  .decor-cloud-mid {
    opacity: 0.45;
  }
}
