body { background: var(--white); font-size: 18px; line-height: 1.55; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; margin-bottom: 36px; max-width: 20ch; }
h3 { font-size: 20px; font-weight: 700; }

/* ---------- шапка: тёмная, как первый экран */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--night) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: var(--white);
}
.top .logo b { background: var(--sun); color: var(--ink); }
.top__in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.top__nav { display: flex; gap: 28px; margin-left: auto; font-weight: 500; }
.top__nav a { text-decoration: none; padding: 6px 0; color: rgba(255, 255, 255, .78); }
.top__nav a:hover { color: var(--white); }
.top__cta { min-height: 44px; padding: 0 20px; font-size: 16px; border-radius: 12px; }

/* ---------- первый экран: вечерний тёмный, тёплый свет от маскота */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--white); }
.hero__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(520px 420px at 76% 62%, rgba(255, 173, 10, .28), transparent 70%),
    radial-gradient(900px 500px at 10% -10%, rgba(255, 255, 255, .05), transparent 60%);
}
.hero__in {
  position: relative;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center;
  padding: 80px 0 96px;
}
.hero__note {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px; padding: 6px 14px 6px 12px;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
  font-weight: 500; font-size: 15px; color: rgba(255, 255, 255, .85);
}
.hero__note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ccf7a; box-shadow: 0 0 0 4px rgba(60, 207, 122, .18); }
.hero h1 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 700; max-width: 17ch; }
.hero__lead { font-size: 20px; max-width: 25em; margin: 24px 0 34px; color: rgba(255, 255, 255, .78); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn--ghost { color: var(--white); }
.hero__small { margin: 18px 0 0; font-size: 16px; color: rgba(255, 255, 255, .6); }

/* телефон с живым примером и маскотом */
.hero__phone { position: relative; justify-self: end; width: min(360px, 100%); }
.phone {
  position: relative; z-index: 1;
  background: var(--white); color: var(--ink); border: 8px solid #0b0a09; border-radius: 44px;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14), 0 40px 80px rgba(0, 0, 0, .45);
  padding: 12px; display: flex; flex-direction: column; height: 580px;
}
.phone__bar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 14px; border-bottom: 1px solid var(--hair); }
.phone__bar img { width: 38px; height: auto; }
.phone__bar b { display: block; font-family: var(--display); font-size: 15px; font-weight: 700; }
.phone__bar span { font-size: 13px; color: var(--ok); font-weight: 600; }
.phone__chat { flex: 1; padding: 16px 4px; display: flex; flex-direction: column; justify-content: flex-start; gap: 12px; overflow: hidden; font-size: 15px; line-height: 1.45; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 18px; }
.msg--me { align-self: flex-end; background: var(--sun-soft); border-bottom-right-radius: 6px; font-weight: 500; }
.msg--ai { align-self: flex-start; padding-inline: 2px; white-space: pre-line; }
.msg--ai:empty { display: none; }
.msg--ai .cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--sun-deep); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.phone__input {
  display: flex; align-items: center; justify-content: space-between;
  border: 1.5px solid var(--hair); border-radius: 18px; padding: 7px 7px 7px 16px; color: var(--muted); font-size: 15px;
}
.phone__input i { width: 36px; height: 36px; border-radius: 12px; background: var(--sun); }
.hero__mascot {
  position: absolute; z-index: 2; width: 240px; height: auto; left: -170px; bottom: -36px;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45));
}

/* ---------- три шага */
.how { padding: 104px 0 96px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps li { position: relative; padding-top: 24px; border-top: 1.5px solid var(--ink); }
.steps__n {
  display: block; margin-bottom: 14px;
  font-family: var(--display); font-weight: 700; font-size: 15px; color: #c47f00;
}
.steps__n::after { content: " из 3"; color: var(--muted); font-weight: 500; }
.steps p { margin: 10px 0 0; color: var(--muted); }

/* ---------- примеры */
.can { padding: 96px 0; background: var(--paper); }
.can__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ex { border: 1px solid var(--hair); border-radius: var(--r-md); padding: 24px; background: var(--white); }
.ex--wide { grid-column: span 2; }
.ex--sun { background: var(--night); color: var(--white); border-color: var(--night); }
.ex__q { margin: 0 0 12px; font-weight: 700; font-size: 18px; line-height: 1.35; }
.ex__a { margin: 0; color: #4a4439; }
.ex--wide .ex__q { font-size: 22px; font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
.ex--wide .ex__a { font-size: 19px; max-width: 40em; }
.ex__img { border-radius: var(--r-sm); overflow: hidden; }

/* ---------- тарифы */
.price { padding: 104px 0; }
.price h2 { margin-bottom: 12px; }
.price__lead { margin: 0 0 30px; color: var(--muted); font-size: 19px; }
.period {
  display: inline-flex; padding: 4px; gap: 2px; margin-bottom: 32px;
  background: var(--paper); border-radius: 14px;
}
.period button {
  border: 0; background: none; padding: 10px 18px; border-radius: 11px; font-weight: 600; font-size: 16px; cursor: pointer; white-space: nowrap;
}
.period button em { font-style: normal; color: var(--ok); font-weight: 700; }
.period button[aria-checked="true"] { background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

.plans { display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 30px;
}
.plan--main { background: var(--night); color: var(--white); border-color: var(--night); }
.plan__flag {
  position: absolute; top: 28px; right: 28px; margin: 0; padding: 4px 12px;
  background: var(--sun); color: var(--ink); border-radius: 999px; font-weight: 700; font-size: 14px;
}
.plan h3 { font-size: 26px; }
.plan__for { margin: 6px 0 22px; color: var(--muted); }
.plan--main .plan__for { color: rgba(255, 255, 255, .62); }
.plan__price { margin: 0; font-family: var(--display); font-weight: 700; font-size: 48px; line-height: 1; letter-spacing: -.03em; }
.plan--main .plan__price { color: var(--sun); }
.plan__price small { display: inline-block; margin-left: 10px; font-family: var(--text); font-weight: 500; font-size: 17px; letter-spacing: 0; color: var(--muted); }
.plan--main .plan__price small { color: rgba(255, 255, 255, .62); }
.plan__bill { margin: 8px 0 24px; font-size: 15px; color: var(--muted); }
.plan--main .plan__bill { color: rgba(255, 255, 255, .62); }
.plan ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.plan li { padding-left: 30px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sun-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%231e1a14' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.plan--main li::before { background-color: var(--sun); }
.plan .btn { margin-top: auto; width: 100%; }

.bundle {
  display: flex; flex-direction: column; gap: 14px;
  padding: 30px 26px; border-radius: var(--r-lg); background: var(--paper);
}
.bundle .mark { width: 56px; height: auto; flex: none; }
.bundle b { display: block; font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.bundle p { margin: 0; color: #4a4439; }
.bundle .btn { margin-top: auto; }

/* ---------- вопросы */
.faq { padding: 96px 0; background: var(--paper); }
.faq__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
.faq__list { border-top: 1px solid #cfc8b8; }
.faq details { border-bottom: 1px solid #cfc8b8; }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 52px 22px 0; position: relative;
  font-weight: 600; font-size: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%;
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; background: var(--white); font-size: 22px; font-weight: 500; line-height: 1;
}
.faq details[open] summary::after { content: "−"; background: var(--sun); }
.faq details p { margin: 0 0 24px; max-width: 38em; color: #4a4439; }

/* ---------- финал и подвал */
.final { background: var(--night); color: var(--white); padding: 72px 0; overflow: hidden; }
.final__in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.final__in img { width: 110px; height: auto; margin: -40px 0 -60px; }
.final h2 { margin: 0 auto 0 0; }

.foot { padding: 40px 0 56px; font-size: 16px; }
.foot__in { display: grid; grid-template-columns: auto 1fr; gap: 18px 40px; align-items: center; }
.foot nav { display: flex; gap: 24px; justify-content: flex-end; flex-wrap: wrap; }
.foot p { grid-column: 1 / -1; margin: 0; color: var(--muted); }

/* ---------- планшет */
@media (max-width: 960px) {
  .top__nav { display: none; }
  .top__cta { margin-left: auto; }
  .hero__in { grid-template-columns: 1fr; padding: 48px 0 72px; gap: 56px; }
  .hero__phone { justify-self: center; margin-right: 0; }
  .hero__mascot { left: -110px; width: 170px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .can__grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .bundle { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; }
  .bundle p { flex: 1 1 260px; }
  .faq__in { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- телефон */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 32px); }
  .top__in { min-height: 62px; }
  .hero__in { padding: 36px 0 64px; }
  .hero__lead { font-size: 18px; }
  .hero__actions .btn { width: 100%; }
  .hero__phone { width: calc(100% - 24px); justify-self: end; }
  .phone { height: 560px; border-width: 6px; border-radius: 36px; }
  .hero__mascot { width: 120px; left: -34px; bottom: -36px; }
  .how, .can, .price, .faq { padding: 64px 0; }
  .can__grid { grid-template-columns: 1fr; }
  .ex--wide { grid-column: auto; }
  .ex--wide .ex__q { font-size: 20px; }
  .period { display: flex; width: 100%; }
  .period button { flex: 1; padding: 10px 6px; font-size: 15px; }
  .period button em { display: block; font-size: 13px; }
  .plans { grid-template-columns: 1fr; gap: 16px; }
  .plan { padding: 24px; }
  .plan__flag { top: 24px; right: 24px; }
  .plan__price { font-size: 42px; }
  .bundle { flex-direction: column; align-items: flex-start; }
  .bundle p { flex: none; }
  .bundle .btn { width: 100%; }
  .final__in img { width: 84px; margin: -20px 0 -10px; }
  .final .btn { width: 100%; }
  .foot__in { grid-template-columns: 1fr; }
  .foot nav { justify-content: flex-start; }
}
