:root {
  --brand: #e0409a;
  --brand-600: #c92f86;
  --brand-50: #fdeef6;
  --ink: #141414;
  --ink-2: #5c5c66;
  --bg: #f4f4f6;
  --card: #fff;
  --line: #e7e7ec;
  --wa: #1fae57;
  --wa-600: #178f47;
  --r: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(36px, 5.6vw, 60px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: 700 16px/1.1 var(--font); color: #fff;
  transition: transform .25s var(--ease), background .2s, box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn--dark { background: var(--ink); }
.btn--dark:hover { background: #2c2c2c; box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); }
.btn--wa { background: var(--wa); }
.btn--wa:hover { background: var(--wa-600); box-shadow: 0 10px 24px -10px rgba(31,174,87,.8); }
.btn--small { padding: 12px 20px; font-size: 14px; }
.btn--big { padding: 18px 30px; font-size: 17px; }
.btn--block { width: 100%; }
.i { width: 22px; height: 22px; flex: none; }
:focus-visible { outline: 3px solid #ffb3da; outline-offset: 3px; border-radius: 8px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 6px 24px -18px rgba(0,0,0,.5); }
.header__row { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 800 15px/1 var(--font); letter-spacing: .02em; }
.logo span { font-size: 15px; }
.logo--muted { opacity: .45; }

/* Hero */
.hero { background: var(--brand); color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.hero::before { width: 520px; height: 520px; right: -160px; top: -220px; animation: drift 14s ease-in-out infinite; }
.hero::after { width: 300px; height: 300px; left: -120px; bottom: -160px; animation: drift 18s ease-in-out infinite reverse; }
@keyframes drift { 50% { transform: translate(-30px, 30px) scale(1.06); } }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .lead { font-size: clamp(18px, 2vw, 21px); font-weight: 700; }
.hero__text > p:not(.lead) { opacity: .92; max-width: 34em; }
.hero__facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__facts li { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 16px; padding: 10px 16px; line-height: 1.25; }
.hero__facts b { display: block; font-size: 15px; }
.hero__facts span { font-size: 14px; opacity: .85; }

/* Form */
.form { background: #fff; color: var(--ink); border-radius: 28px; padding: 28px; display: grid; gap: 12px; box-shadow: 0 30px 60px -30px rgba(70,0,40,.55); }
.form__title { font-weight: 800; font-size: 20px; line-height: 1.25; margin: 0 0 4px; }
.seg { display: flex; gap: 8px; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: flex; align-items: center; justify-content: center; text-align: center; height: 100%;
  padding: 10px 12px; border-radius: 999px; border: 1.5px solid var(--brand); color: var(--ink);
  font-weight: 700; font-size: 14px; line-height: 1.2; cursor: pointer; transition: background .25s var(--ease), color .25s;
}
.seg input:checked + span { background: var(--brand); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid #ffb3da; outline-offset: 2px; }
.seg--small span { border-color: var(--line); font-size: 13px; padding: 9px 8px; }
.seg--small input:checked + span { background: var(--brand-50); color: var(--brand-600); border-color: var(--brand); }
.field input {
  width: 100%; padding: 15px 20px; border: 1.5px solid transparent; border-radius: 999px; background: var(--bg);
  font: 500 16px var(--font); color: var(--ink); transition: border-color .2s, background .2s;
}
.field input::placeholder { color: #8a8a94; }
.field input:focus { outline: none; border-color: var(--brand); background: #fff; }
.field.is-invalid input { border-color: #d92d4c; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
[data-only] { display: block; overflow: hidden; transition: max-height .35s var(--ease), opacity .3s; max-height: 80px; }
[data-only].is-hidden { max-height: 0; opacity: 0; margin-top: -12px; }
.form__error { color: #d92d4c; font-weight: 700; font-size: 14px; margin: 0; }
.form__note { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); text-align: center; }

/* Sections */
.section { padding: 72px 0 0; }
.section--flush { padding-top: 40px; }
main > .section:last-of-type { padding-bottom: 72px; }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile, .card, .panel { background: var(--card); border-radius: var(--r); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.tile { padding: 26px; }
.tile:hover, .card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(0,0,0,.25); }
.tile__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--brand-50); font-size: 28px; margin-bottom: 18px; transition: transform .4s var(--ease); }
.tile:hover .tile__ico { transform: rotate(-8deg) scale(1.08); }
.tile p, .card p { color: var(--ink-2); font-size: 15.5px; margin: 0; }

.panel { padding: 44px; }
.lessons { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { background: var(--bg); border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14px; }
.pills .pills__accent { color: var(--brand); border: 1.5px solid var(--brand-50); background: #fff; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.checks li { position: relative; padding-left: 38px; color: var(--ink-2); }
.checks b { color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3L17 9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 28px; border-top: 4px solid var(--brand); }

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
details { border-bottom: 1px solid #dcdce2; }
summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 700; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease);
}
details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
details p { color: var(--ink-2); margin: 0; padding: 0 0 20px; animation: fadeIn .35s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } }

.cta { background: var(--brand); color: #fff; border-radius: 32px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.1); right: 22%; top: -140px; animation: drift 12s ease-in-out infinite; }
.cta h2 { margin-bottom: .3em; }
.cta p { margin: 0; max-width: 32em; opacity: .95; }
.cta .btn { position: relative; z-index: 1; flex: none; }

.footer { padding: 40px 0 48px; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--brand); }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(23,143,71,.7);
  transform: scale(0); transition: transform .4s var(--ease);
}
.wa-float.is-visible { transform: scale(1); }
.wa-float.is-visible::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--wa); z-index: -1; animation: pulse 2.6s ease-out infinite; }
.wa-float .i { width: 30px; height: 30px; }
@keyframes pulse { from { transform: scale(1); opacity: .5; } to { transform: scale(1.7); opacity: 0; } }

/* Появление при прокрутке */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1100px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 960px) {
  .hero__grid, .lessons { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 36px 0 40px; }
  .header__row { height: 64px; }
  .header .btn--small { padding: 10px 14px; font-size: 13px; }
  .bento { grid-template-columns: 1fr; }
  .panel, .cta { padding: 28px 22px; border-radius: 24px; }
  .form { padding: 22px 18px; }
  .section { padding-top: 56px; }
  .cta .btn { width: 100%; }
  .footer { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
