@font-face { font-family: 'Exo 2'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/Exo2-Regular.woff2) format('woff2'); }
@font-face { font-family: 'Exo 2'; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/Exo2-SemiBold.woff2) format('woff2'); }
@font-face { font-family: 'Exo 2'; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/Exo2-Bold.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/OpenSans-Regular.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/OpenSans-SemiBold.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/OpenSans-Bold.woff2) format('woff2'); }

:root {
  --c-brand-main: #d52833;
  --c-brand-add: #d52871;
  --c-brand-hover: #b82730;
  --c-brand: linear-gradient(to right, #d52833 0%, #d52871 100%);
  --c-text: #122037;
  --c-text-op: rgba(18, 32, 55, .85);
  --c-text-gray: rgba(18, 32, 55, .5);
  --c-bg: #f0f2f3;
  --c-white: #fff;
  --c-border: #d7d7da;
  --c-placeholder: #aeaeb6;
  --brs: 20px;
  --brs-lg: 50px;
  --brs-card: 50px 10px;
  --brs-pill: 73px;
  --f-base: 'Open Sans', OpenSans, sans-serif;
  --f-title: 'Exo 2', Exo2, sans-serif;
  --shadow: 0 30px 60px -20px rgba(18, 32, 55, .18), 0 2px 6px rgba(18, 32, 55, .04);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font: 400 16px/1.5 var(--f-base);
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--f-title); font-weight: 700; line-height: 1.15; margin: 0; }
a { color: var(--c-brand-main); }
a:hover { color: var(--c-brand-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg__blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .22;
  animation: float 18s ease-in-out infinite alternate;
}
.bg__blob--1 { width: 520px; height: 520px; background: var(--c-brand-main); top: -180px; right: -120px; }
.bg__blob--2 { width: 420px; height: 420px; background: var(--c-brand-add); bottom: -160px; left: -140px; animation-duration: 22s; }
.bg__blob--3 { width: 260px; height: 260px; background: #85abef; top: 40%; left: 45%; opacity: .14; animation-duration: 26s; }
@keyframes float {
  to { transform: translate(-60px, 50px) scale(1.12); }
}

/* ---------- header ---------- */
.header {
  max-width: 1200px; margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-text); }
.logo img { width: 56px; height: 56px; transition: transform .6s var(--ease-spring); }
.logo:hover img { transform: rotate(-12deg) scale(1.05); }
.logo:hover { color: var(--c-text); }
.logo__text { font-size: 13px; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
.header__phone { font-family: var(--f-title); font-size: 20px; color: var(--c-text); text-decoration: none; white-space: nowrap; }

/* ---------- layout ---------- */
.page {
  max-width: 1200px; margin: 0 auto; padding: 12px 24px 64px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start;
}
.hero { padding-top: 32px; position: sticky; top: 72px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: var(--brs-pill);
  background: var(--c-white); box-shadow: 0 6px 20px -8px rgba(18, 32, 55, .2);
  font-size: 13px; font-weight: 600;
}
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-brand-main); box-shadow: 0 0 0 0 rgba(213, 40, 51, .5); animation: pulse 2s infinite; margin-left: 6px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(213, 40, 51, 0); } 100% { box-shadow: 0 0 0 0 rgba(213, 40, 51, 0); } }
.hero__title { margin-top: 22px; font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.01em; }
.hero__title em {
  font-style: normal; background: var(--c-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__text { margin: 20px 0 0; font-size: 17px; color: var(--c-text-op); max-width: 470px; }
.hero__school {
  margin-top: 28px; display: flex; gap: 14px; align-items: center;
  padding: 16px 20px; background: var(--c-white); border-radius: var(--brs-card); box-shadow: var(--shadow); max-width: 440px;
}
.hero__pin {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-brand); color: var(--c-white);
}
.hero__school-name { font-family: var(--f-title); font-weight: 700; font-size: 18px; }
.hero__school-addr { font-size: 14px; color: var(--c-text-gray); }
.hero__facts { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 0; padding: 0; list-style: none; }
.hero__facts li {
  display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  padding: 8px 14px; border-radius: var(--brs-pill); border: 1px solid rgba(18, 32, 55, .12);
}
.hero__facts svg { color: var(--c-brand-main); }

/* ---------- card / wizard ---------- */
.card {
  position: relative; background: var(--c-white); border-radius: var(--brs-card);
  box-shadow: var(--shadow); padding: 40px 44px 36px; overflow: hidden;
}
.progress { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.progress__track { flex: 1; height: 6px; border-radius: 6px; background: var(--c-bg); overflow: hidden; }
.progress__fill { height: 100%; width: 0; border-radius: 6px; background: var(--c-brand); transition: width .6s var(--ease); }
.progress__label { font-size: 13px; font-weight: 600; color: var(--c-text-gray); white-space: nowrap; font-variant-numeric: tabular-nums; }

.steps { position: relative; }
.step { display: none; }
.step.is-active { display: block; animation: stepIn .55s var(--ease) both; }
.step.is-back { animation-name: stepInBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }

.step__num { font-family: var(--f-title); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-brand-main); }
.step__title { margin-top: 8px; font-size: clamp(22px, 2.4vw, 28px); }
.step__hint { margin: 8px 0 0; color: var(--c-text-gray); font-size: 15px; }
.step__body { margin-top: 26px; display: grid; gap: 18px; }

/* fields */
.field { position: relative; display: block; }
.field__input {
  width: 100%; height: 56px; padding: 22px 22px 6px; border: 1px solid var(--c-border); border-radius: var(--brs-pill);
  background: var(--c-white); outline: none; font-size: 16px;
  transition: border-color .25s, box-shadow .25s;
}
textarea.field__input { height: auto; min-height: 112px; border-radius: var(--brs); resize: vertical; padding-top: 28px; line-height: 1.45; }
.field__label {
  position: absolute; left: 23px; top: 17px; color: var(--c-placeholder); pointer-events: none;
  transform-origin: left top; transition: transform .25s var(--ease), color .25s;
}
.field__input:focus, .field__input:not(:placeholder-shown) { border-color: rgba(213, 40, 51, .5); }
.field__input:focus { box-shadow: 0 0 0 4px rgba(213, 40, 51, .1); }
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label { transform: translateY(-10px) scale(.75); color: var(--c-brand-main); }
.field.is-error .field__input { border-color: var(--c-brand-main); animation: shake .4s; }
.field__err { display: block; margin: 6px 0 0 22px; font-size: 13px; color: var(--c-brand-main); min-height: 0; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.select { position: relative; }
.select select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  width: 100%; height: 56px; padding: 22px 50px 6px 22px; border: 1px solid var(--c-border); border-radius: var(--brs-pill);
  background: var(--c-white); outline: none; font-size: 16px; transition: border-color .25s, box-shadow .25s;
}
.select select:focus { border-color: rgba(213, 40, 51, .5); box-shadow: 0 0 0 4px rgba(213, 40, 51, .1); }
.select__label { position: absolute; left: 23px; top: 7px; font-size: 12px; color: var(--c-brand-main); pointer-events: none; }
.select::after {
  content: ''; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--c-text); border-bottom: 2px solid var(--c-text); transform: rotate(45deg); pointer-events: none;
}
.school-addr { display: flex; align-items: center; gap: 8px; margin: -6px 0 0 22px; font-size: 14px; color: var(--c-text-gray); }
.school-addr.flash { animation: flash .6s var(--ease); }
@keyframes flash { from { opacity: 0; transform: translateY(-4px); } }

/* score scale */
.scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 6px; }
.scale__btn {
  --h: 0;
  position: relative; height: 52px; border-radius: 14px; border: 1px solid var(--c-border); background: var(--c-white);
  font-family: var(--f-title); font-size: 18px; font-weight: 700; cursor: pointer;
  transition: transform .25s var(--ease-spring), border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.scale__btn:hover { border-color: hsl(var(--h) 70% 50%); color: hsl(var(--h) 70% 38%); transform: translateY(-3px); }
.scale__btn:focus-visible { outline: 3px solid hsl(var(--h) 70% 50% / .4); outline-offset: 2px; }
.scale__btn[aria-checked="true"] {
  background: hsl(var(--h) 70% 48%); border-color: hsl(var(--h) 70% 48%); color: var(--c-white);
  box-shadow: 0 10px 22px -8px hsl(var(--h) 70% 40% / .7);
  animation: pop .45s var(--ease-spring);
}
.scale.has-value .scale__btn:not([aria-checked="true"]) { opacity: .55; }
.scale.has-value .scale__btn:not([aria-checked="true"]):hover { opacity: 1; }
@keyframes pop { 0% { transform: scale(.8); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
.scale-legend { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--c-text-gray); margin-top: -8px; }
.reaction {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 16px; border-radius: var(--brs);
  background: var(--c-bg); font-weight: 600; font-size: 15px;
}
.reaction__emoji { font-size: 26px; line-height: 1; display: inline-block; }
.reaction.is-new .reaction__emoji { animation: wobble .6s var(--ease-spring); }
.reaction.is-new .reaction__text { animation: flash .5s var(--ease); }
@keyframes wobble { 0% { transform: scale(.3) rotate(-20deg); } 70% { transform: scale(1.2) rotate(8deg); } 100% { transform: none; } }

/* collapsible extra */
.more {
  border: 1px dashed rgba(18, 32, 55, .2); border-radius: var(--brs); transition: border-color .25s, background .25s;
}
.more[open] { border-style: solid; border-color: rgba(213, 40, 51, .25); background: #fcfcfd; }
.more > summary {
  list-style: none; cursor: pointer; padding: 14px 18px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before {
  content: '+'; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--c-brand); color: var(--c-white); font-weight: 700; transition: transform .3s var(--ease);
}
.more[open] > summary::before { transform: rotate(45deg); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.more__body { padding: 4px 18px 18px; display: grid; gap: 14px; animation: flash .4s var(--ease); }

/* checkbox */
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--c-text-op); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  flex: none; width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--c-border); background: var(--c-white);
  display: grid; place-items: center; transition: background .2s, border-color .2s, transform .25s var(--ease-spring);
}
.check__box svg { width: 14px; height: 14px; color: var(--c-white); stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .3s var(--ease) .05s; }
.check input:checked + .check__box { background: var(--c-brand-main); border-color: var(--c-brand-main); transform: scale(1.06); }
.check input:checked + .check__box svg { stroke-dashoffset: 0; }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 4px rgba(213, 40, 51, .15); }
.check.is-error .check__box { border-color: var(--c-brand-main); animation: shake .4s; }

/* buttons */
.actions { display: flex; align-items: center; gap: 12px; margin-top: 30px; }
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 34px; border: 0; border-radius: var(--brs-pill); cursor: pointer;
  font-family: var(--f-title); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  transition: transform .25s var(--ease-spring), box-shadow .25s, opacity .2s, background .2s;
}
.btn--primary { background: var(--c-brand); color: var(--c-white); box-shadow: 0 14px 28px -12px rgba(213, 40, 51, .7); margin-left: auto; }
.btn--primary::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg);
}
.btn--primary:hover { color: var(--c-white); transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(213, 40, 51, .8); }
.btn--primary:hover::after { animation: shine .8s var(--ease); }
.btn:active { transform: scale(.97); }
.btn--primary[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--primary[disabled]::after { display: none; }
.btn--ghost { background: transparent; color: var(--c-text); padding: 0 18px; }
.btn--ghost:hover { background: var(--c-bg); color: var(--c-text); }
.btn--light { background: var(--c-bg); color: var(--c-text); }
.btn--light:hover { background: #e4e7e9; color: var(--c-text); }
.btn svg { transition: transform .3s var(--ease); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__text { opacity: 0; }
.btn.is-loading::before {
  content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: var(--c-white); animation: spin .7s linear infinite;
}
@keyframes shine { to { left: 130%; } }
@keyframes spin { to { transform: rotate(360deg); } }
.form-error { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--brs); background: rgba(213, 40, 51, .08); color: var(--c-brand-hover); font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- finale ---------- */
.finale { text-align: center; animation: stepIn .7s var(--ease) both; animation-name: rise; }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.finale__check { width: 96px; height: 96px; margin: 0 auto; }
.finale__check circle { stroke-dasharray: 290; stroke-dashoffset: 290; animation: draw .8s var(--ease) .1s forwards; }
.finale__check path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s var(--ease) .75s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.finale__title { margin-top: 20px; font-size: clamp(26px, 3vw, 36px); }
.finale__text { margin: 12px auto 0; max-width: 460px; color: var(--c-text-op); }
.finale__blocks { margin-top: 28px; display: grid; gap: 14px; text-align: left; }
.offer {
  border-radius: var(--brs); padding: 22px 22px 20px; background: var(--c-bg);
  animation: rise .6s var(--ease) both;
}
.offer:nth-child(2) { animation-delay: .12s; }
.offer--accent { background: linear-gradient(135deg, rgba(213, 40, 51, .08), rgba(213, 40, 113, .1)); border: 1px solid rgba(213, 40, 113, .2); }
.offer__head { display: flex; gap: 14px; align-items: flex-start; }
.offer__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: var(--c-white); box-shadow: 0 6px 16px -8px rgba(18, 32, 55, .3); }
.offer__title { font-size: 18px; }
.offer__text { margin: 4px 0 0; font-size: 14px; color: var(--c-text-op); }
.offer__form { margin-top: 16px; display: grid; gap: 12px; }
.offer__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.offer__form .btn { margin-left: 0; justify-self: start; height: 50px; }
.offer__done { margin-top: 14px; display: flex; align-items: center; gap: 10px; font-weight: 600; color: #1f9d55; animation: flash .4s var(--ease); }
.offer--compact { padding: 16px 20px; }
.offer--compact .offer__icon { width: 36px; height: 36px; font-size: 18px; }
.offer--compact .offer__title { font-size: 16px; }
.offer details > summary { list-style: none; cursor: pointer; }
.offer details > summary::-webkit-details-marker { display: none; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--c-brand-main); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--c-brand-hover); }
.finale__footer { margin-top: 28px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.finale__footer .btn--primary { margin-left: 0; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; }

/* ---------- footer ---------- */
.footer { max-width: 1200px; margin: 0 auto; padding: 0 24px 40px; font-size: 13px; color: var(--c-text-gray); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: inherit; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .page { grid-template-columns: 1fr; gap: 24px; }
  .hero { position: static; padding-top: 8px; }
  .hero__text { font-size: 16px; }
  .hero__facts { margin-top: 18px; }
}
@media (max-width: 600px) {
  .header { padding: 14px 16px; }
  .logo img { width: 44px; height: 44px; }
  .header__phone { font-size: 16px; }
  .logo__text { display: none; }
  .page { padding: 4px 16px 40px; }
  .hero__school { margin-top: 20px; }
  .card { padding: 28px 20px 24px; border-radius: 34px 10px; }
  .scale { grid-template-columns: repeat(6, 1fr); }
  .scale__btn { height: 48px; }
  .offer__row { grid-template-columns: 1fr; }
  .actions .btn--primary { flex: 1; padding: 0 20px; }
  .footer { padding: 0 16px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
details.offer > summary, .offer details > summary { list-style: none; cursor: pointer; }
details.offer > summary::-webkit-details-marker, .offer details > summary::-webkit-details-marker { display: none; }
.offer details[open] > summary { display: none !important; }
.card { scroll-margin-top: 90px; }
@media (max-width: 600px) {
  .hero__eyebrow { font-size: 12px; }
  .hero__title { margin-top: 14px; font-size: 30px; }
  .hero__text { margin-top: 12px; font-size: 15px; }
  .hero__school { margin-top: 16px; padding: 12px 16px; }
  .hero__pin { width: 38px; height: 38px; }
  .hero__facts { margin-top: 12px; gap: 6px; }
  .hero__facts li { font-size: 12px; padding: 6px 10px; }
  .hero__facts li:last-child { display: none; }
}
