:root {
  --bg: #f3f6f9;
  --bg-deep: #e6eef5;
  --surface: #ffffff;
  --ink: #152033;
  --muted: #5b6b7c;
  --line: #d5dee8;
  --brand: #0e5a8a;
  --brand-deep: #0a4468;
  --brand-soft: #d7eaf5;
  --accent: #5ce1e6;
  --shadow: 0 18px 40px rgba(14, 40, 70, 0.1);
  --radius: 18px;
  --container: 1120px;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(92, 225, 230, 0.2), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(14, 90, 138, 0.12), transparent 50%),
    var(--bg);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(14, 90, 138, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 90, 138, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  z-index: -1;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

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

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(14, 90, 138, 0.25);
}

.btn--primary:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
}

.btn--block {
  width: 100%;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}

.logo__img {
  display: block;
  width: auto;
  height: 52px;
  max-width: min(220px, 48vw);
  object-fit: contain;
}

.logo__img--footer {
  height: 56px;
}

.header__bar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(244, 247, 245, 0.88);
  border-bottom: 1px solid rgba(213, 224, 218, 0.7);
}

.header__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header__phone:hover {
  color: var(--brand-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header__phone svg {
  flex-shrink: 0;
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 20, 36, 0.86) 0%, rgba(8, 20, 36, 0.58) 42%, rgba(8, 20, 36, 0.28) 100%),
    linear-gradient(180deg, rgba(8, 20, 36, 0.2) 0%, rgba(8, 20, 36, 0.58) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 6.5rem;
  max-width: 680px;
  margin-left: max(16px, calc((100% - var(--container)) / 2));
  margin-right: auto;
  width: min(100% - 32px, 680px);
  animation: riseIn 0.8s ease both;
}

.hero__brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--accent);
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.hero__title {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 16ch;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.quiz-block__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.quiz-block__q {
  font-weight: 700;
  font-size: 1.05rem;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.choice {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 16px;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.choice--inline {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 160px;
}

.choice:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.choice.is-selected {
  background: rgba(92, 225, 230, 0.2);
  border-color: var(--accent);
  color: var(--accent);
}

.choice__label {
  font-weight: 700;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  animation: bob 2.4s ease-in-out infinite;
}

.section {
  padding: 4.5rem 0;
}

.section--tint {
  background: linear-gradient(180deg, rgba(232, 239, 234, 0.7), rgba(244, 247, 245, 0));
}

.section__title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.space-strip {
  padding: 1.5rem 0 0.5rem;
  background:
    linear-gradient(180deg, transparent, rgba(14, 90, 138, 0.05)),
    var(--bg-deep);
}

.space-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.space-card {
  appearance: none;
  border: 0;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
  padding: 0 0 1.1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.space-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.space-card__title {
  display: block;
  margin: 1rem 1rem 0.7rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.space-card__btn {
  display: inline-flex;
  margin-left: 1rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-weight: 700;
  font-size: 0.92rem;
}

.space-card__btn .is-on {
  display: none;
}

.space-card:hover {
  transform: translateY(-4px);
}

.space-card.is-selected {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.space-card.is-selected .space-card__btn {
  background: var(--brand);
  color: #fff;
}

.space-card.is-selected .space-card__btn .is-idle {
  display: none;
}

.space-card.is-selected .space-card__btn .is-on {
  display: inline;
}

.need-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.need-card,
.bonus-card {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.need-card {
  padding: 1.25rem 1.15rem 1.15rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.need-card:hover,
.bonus-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.need-card.is-selected,
.bonus-card.is-selected {
  border-color: var(--brand);
  background: linear-gradient(180deg, #fff, var(--brand-soft));
}

.need-card__icon,
.bonus-card__icon {
  color: var(--brand);
}

.need-card__title,
.bonus-card__title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
}

.need-card__text {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.need-card__btn,
.bonus-card__btn {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
}

.check {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
}

.need-card.is-selected .check,
.bonus-card.is-selected .check {
  background: var(--brand);
  border-color: var(--brand);
}

.need-card.is-selected .check::after,
.bonus-card.is-selected .check::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: center / 12px 12px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12.5 10 17l9-10' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 1rem;
  justify-content: start;
}

.bonus-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2.5rem 1.2rem 1.2rem;
  min-height: 110px;
}

.bonus-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

.bonus-note {
  margin: 1.4rem 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.bonus-note strong {
  color: var(--brand);
  text-transform: uppercase;
}

.bonus-fine {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 54ch;
}

.finish-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.finish-panel {
  background: var(--surface);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.finish-panel__title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.finish-panel__meta {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.finish-panel__label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.finish-panel a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
  font-size: 1.15rem;
}

.finish-panel__offer {
  margin: 0 0 1.2rem;
  max-width: 34ch;
}

.finish-panel__offer strong {
  color: var(--brand);
}

.finish-panel__lead {
  margin: 0 0 0.5rem;
  font-weight: 600;
  max-width: 28ch;
}

.finish-panel__promo {
  margin: 0 0 1.1rem;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 700;
}

.finish-panel__map {
  margin-top: 1.25rem;
  height: 140px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(14, 90, 138, 0.14), rgba(92, 225, 230, 0.28)),
    url("https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=900&q=70") center / cover;
  filter: saturate(0.7);
}

.finish-panel--home {
  background:
    linear-gradient(160deg, #0a334d 0%, #0e5a8a 48%, #1574ad 100%);
  color: #fff;
  border: 0;
}

.finish-panel--home .finish-panel__promo {
  color: var(--accent);
}

.lead-form {
  display: grid;
  gap: 0.75rem;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  outline: none;
}

.finish-panel--studio .lead-form input,
.finish-panel--studio .lead-form textarea {
  border-color: var(--line);
  background: #fff;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 90, 138, 0.15);
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.finish-panel--studio .consent-check,
.modal .consent-check {
  color: var(--muted);
}

.consent-check input {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  margin: 0.08rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  accent-color: var(--accent);
}

.form-note {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.finish-panel--studio .form-note {
  color: var(--muted);
}

.footer {
  padding: 2.5rem 0 2rem;
  background: #0b1c2b;
  color: #e7f0eb;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo--footer {
  padding: 0.35rem 0.55rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
}

.footer__phone {
  color: #fff;
  font-size: 1.05rem;
}

.footer__legal {
  padding-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.75);
}

.footer__secret-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font: inherit;
  cursor: pointer;
}

.footer__secret-link:hover {
  color: #fff;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 16, 0.55);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: min(100%, 420px);
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  animation: popIn 0.28s ease;
}

.modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.85rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.modal__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.modal__subtitle {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

.success-modal__dialog {
  text-align: center;
}

.success-modal__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 1rem;
  color: #fff;
  background: #20b964;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(32, 185, 100, 0.28);
}

.success-modal__dialog .modal__title {
  margin-bottom: 0.55rem;
}

.success-modal__dialog .modal__subtitle {
  margin-bottom: 1.25rem;
}

.input-row {
  display: grid;
  gap: 0.7rem;
}

.modal .form-note {
  color: var(--muted);
}

.toast[hidden] {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 70;
  background: var(--ink);
  color: #fff;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  animation: popIn 0.25s ease;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 6px);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 960px) {
  .need-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .finish-grid,
  .space-grid,
  .bonus-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header__phone span {
    display: inline;
  }

  .hero__content {
    padding: 3.2rem 0 5.5rem;
  }

  .hero__scroll span {
    max-width: 220px;
    text-align: center;
  }

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

  .footer__inner,
  .footer__legal {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .header__actions .btn {
    display: none;
  }

  .header__phone {
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Refined layout and multi-select quiz */
:root {
  --bg: #f4f7fb;
  --bg-deep: #eaf0f7;
  --surface: #ffffff;
  --ink: #101b2d;
  --muted: #647187;
  --line: #dce4ee;
  --brand: #1668e8;
  --brand-deep: #0d50bd;
  --brand-soft: #eaf2ff;
  --accent: #63e5ff;
  --shadow: 0 24px 70px rgba(14, 34, 65, 0.12);
  --radius: 22px;
  --font-display: "Onest", "Manrope", sans-serif;
}

body {
  background: var(--bg);
  color: var(--ink);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(22, 104, 232, 0.3);
  outline-offset: 3px;
}

.header__bar {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(220, 228, 238, 0.9);
  box-shadow: 0 8px 30px rgba(17, 34, 59, 0.05);
}

.header__bar-inner {
  min-height: 76px;
}

.header__actions .btn {
  padding-inline: 1.5rem;
}

.hero {
  min-height: 700px;
  align-items: center;
  background: #081426;
  isolation: isolate;
}

.hero__media {
  z-index: -2;
}

.hero__media img {
  object-position: 66% center;
}

.hero__veil {
  z-index: 1;
  background:
    radial-gradient(circle at 78% 34%, rgba(31, 129, 255, 0.18), transparent 27%),
    linear-gradient(90deg, rgba(5, 14, 29, 0.98) 0%, rgba(6, 17, 34, 0.9) 42%, rgba(7, 19, 36, 0.68) 100%),
    linear-gradient(180deg, rgba(7, 18, 34, 0.18), rgba(7, 18, 34, 0.72));
}

.hero__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-block: 5.25rem;
}

.hero__content {
  width: auto;
  max-width: 650px;
  margin: 0;
  padding: 0;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  color: #b7c7db;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero__eyebrow span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5ce49c;
  box-shadow: 0 0 0 6px rgba(92, 228, 156, 0.12);
}

.hero__title {
  max-width: 13ch;
  margin-bottom: 1.3rem;
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 4.8vw, 4.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 570px;
  margin-bottom: 2.1rem;
  color: #c9d5e5;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
}

.hero__benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.hero__benefits div {
  display: grid;
  gap: 0.18rem;
}

.hero__benefits strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.hero__benefits span {
  color: #8fa2b9;
  font-size: 0.82rem;
}

.quiz-panel {
  color: var(--ink);
}

.quiz-panel--hero {
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
}

.quiz-panel__meta,
.section-head__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.quiz-panel__step,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.quiz-panel__hint,
.section-hint {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.quiz-panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.quiz-panel__description {
  margin: 0.7rem 0 1.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.quiz-panel .choice-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.quiz-panel .choice {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 78px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
  color: var(--ink);
  text-align: left;
}

.quiz-panel .choice:hover {
  border-color: #abc8f5;
  background: #f2f7ff;
}

.quiz-panel .choice.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-deep);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.choice__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 13px;
  background: #fff;
  color: var(--brand);
  box-shadow: 0 5px 18px rgba(15, 47, 90, 0.08);
}

.choice__content {
  display: grid;
  gap: 0.18rem;
}

.choice__content small {
  color: var(--muted);
  font-size: 0.76rem;
}

.choice__label {
  font-family: var(--font-display);
  font-size: 0.93rem;
}

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.quiz-nav__status {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.btn--quiz {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.2rem;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 28px rgba(22, 104, 232, 0.23);
}

.btn--quiz:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
}

.quiz-section,
.finish-section {
  scroll-margin-top: 76px;
  padding-block: clamp(4.5rem, 8vw, 7rem);
  background: #fff;
}

.quiz-section--soft {
  background: #f2f6fb;
}

#bonus {
  background: #fff;
}

.section-head {
  max-width: 790px;
  margin-bottom: 2.5rem;
}

.section-head__meta {
  justify-content: flex-start;
  margin-bottom: 1.2rem;
}

.section__title {
  display: block;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.048em;
  text-wrap: balance;
}

.section__subtitle {
  max-width: 650px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.space-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 0;
}

.space-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(21, 42, 72, 0.07);
}

.space-card img {
  aspect-ratio: 16 / 10;
  filter: saturate(0.88);
  transition: transform 0.45s ease, filter 0.25s ease;
}

.space-card:hover img {
  transform: scale(1.025);
  filter: saturate(1);
}

.space-card__title {
  margin: 1.15rem 1.15rem 0.8rem;
  font-size: 1.35rem;
}

.space-card__btn {
  margin-left: 1.15rem;
  border: 0;
  background: var(--brand-soft);
  color: var(--brand);
}

.space-card.is-selected {
  border-color: var(--brand);
  outline: 0;
  box-shadow: 0 18px 50px rgba(22, 104, 232, 0.17), inset 0 0 0 1px var(--brand);
}

.need-grid {
  gap: 1.05rem;
}

.need-card,
.bonus-card {
  border-radius: 20px;
  box-shadow: 0 10px 35px rgba(19, 39, 68, 0.055);
}

.need-card {
  min-height: 230px;
  padding: 1.25rem;
}

.need-card__icon,
.bonus-card__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--brand-soft);
}

.need-card__title,
.bonus-card__title {
  font-family: var(--font-display);
  line-height: 1.2;
}

.need-card__text {
  line-height: 1.55;
}

.need-card__btn,
.bonus-card__btn {
  background: transparent;
  color: var(--brand);
  padding: 0;
}

.need-card.is-selected,
.bonus-card.is-selected {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 16px 45px rgba(22, 104, 232, 0.14), inset 0 0 0 1px var(--brand);
}

.need-card.is-selected .need-card__icon,
.bonus-card.is-selected .bonus-card__icon {
  background: var(--brand);
  color: #fff;
}

.check {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

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

.bonus-card {
  min-height: 132px;
  padding: 1.3rem 3rem 1.3rem 1.3rem;
}

.quiz-nav--section {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
}

.repairs-section {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 76px;
  padding-block: clamp(4.5rem, 8vw, 7rem);
  background:
    radial-gradient(circle at 92% 6%, rgba(40, 132, 255, 0.2), transparent 27%),
    linear-gradient(145deg, #071426 0%, #0b2039 100%);
  color: #fff;
}

.repairs-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(99, 229, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 229, 255, 0.09) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

.repairs-section .container {
  position: relative;
  z-index: 1;
}

.section-head--repairs {
  max-width: 850px;
}

.repairs-section .section-kicker {
  background: rgba(99, 229, 255, 0.12);
  color: var(--accent);
}

.repairs-section .section-hint,
.repairs-section .section__subtitle {
  color: #aebdd0;
}

.repair-catalog {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.3);
}

.repair-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.75rem;
  background: #102943;
}

.repair-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 54px;
  padding: 0.8rem 1rem;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: #b7c6d7;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.repair-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.repair-tab.is-active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.repair-panel {
  padding: clamp(1.4rem, 4vw, 2.5rem);
  color: var(--ink);
  animation: repairPanelIn 0.4s cubic-bezier(.2, .75, .25, 1) both;
}

.repair-panel[hidden] {
  display: none;
}

.repair-panel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.repair-panel__eyebrow {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.repair-panel__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.repair-panel__price {
  flex: 0 0 auto;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
}

.repair-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.repair-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 58px;
  padding: 0.85rem 1rem;
  border: 1px solid #e5ebf2;
  border-radius: 13px;
  background: #f7f9fc;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.repair-list li:hover {
  border-color: #b8d1f6;
  background: #f0f6ff;
  transform: translateY(-2px);
}

.repair-list span {
  color: #344158;
  font-size: 0.9rem;
  line-height: 1.35;
}

.repair-list strong {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 0.9rem;
  white-space: nowrap;
}

.repair-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1.5rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.repair-footer p {
  max-width: 680px;
  margin: 0;
  color: #aebdd0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.repair-footer strong {
  color: #fff;
}

.btn--repair {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  background: #20b964;
  color: #fff;
  box-shadow: 0 12px 28px rgba(32, 185, 100, 0.24);
}

.btn--repair:hover {
  background: #159a50;
  transform: translateY(-1px);
}

.btn--repair svg {
  animation: arrowNudge 1.4s ease-in-out infinite;
}

.finish-section {
  background: #edf3fa;
}

.section-head--finish {
  max-width: 900px;
}

.quiz-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding: 1rem 1.15rem;
  border: 1px solid #cddbeb;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.quiz-summary__label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quiz-summary__text {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiz-summary__edit {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 750;
  cursor: pointer;
}

.finish-panel {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 24px;
}

.finish-panel__title {
  font-family: var(--font-display);
  font-size: 1.65rem;
}

.finish-panel--home {
  background:
    radial-gradient(circle at 95% 0%, rgba(99, 229, 255, 0.18), transparent 32%),
    linear-gradient(145deg, #0a1a30 0%, #0c3764 100%);
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero__layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-block: 4.5rem;
  }

  .hero__content {
    max-width: 760px;
  }

  .hero__title {
    max-width: 15ch;
  }

  .quiz-panel--hero {
    max-width: 720px;
  }

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

@media (max-width: 720px) {
  .header__bar-inner {
    min-height: 68px;
  }

  .header__actions .btn {
    padding: 0.72rem 1rem;
    font-size: 0.82rem;
  }

  .hero__layout {
    padding-block: 3.5rem;
  }

  .hero__title {
    max-width: none;
    font-size: clamp(2.35rem, 12vw, 3.5rem);
    letter-spacing: -0.045em;
  }

  .hero__benefits {
    gap: 0.7rem;
  }

  .hero__benefits strong {
    font-size: 0.9rem;
  }

  .quiz-panel--hero {
    padding: 1.2rem;
    border-radius: 22px;
  }

  .quiz-panel__meta,
  .section-head__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .quiz-section,
  .finish-section {
    padding-block: 4rem;
  }

  .section__title {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .space-grid,
  .need-grid,
  .bonus-grid,
  .finish-grid {
    grid-template-columns: 1fr;
  }

  .need-card {
    min-height: 205px;
  }

  .quiz-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .quiz-nav .btn {
    width: 100%;
  }

  .quiz-summary {
    grid-template-columns: 1fr auto;
  }

  .quiz-summary__label {
    grid-column: 1 / -1;
  }

  .quiz-summary__text {
    white-space: normal;
  }

  .repairs-section {
    padding-block: 4rem;
  }

  .repair-tabs {
    gap: 0.35rem;
    padding: 0.5rem;
  }

  .repair-tab {
    flex-direction: column;
    gap: 0.25rem;
    min-height: 66px;
    padding: 0.55rem 0.25rem;
    font-size: 0.72rem;
  }

  .repair-panel {
    padding: 1.15rem;
  }

  .repair-panel__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .repair-list {
    grid-template-columns: 1fr;
  }

  .repair-list li {
    min-height: 54px;
  }

  .repair-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
  }

  .btn--repair {
    width: 100%;
  }
}

@keyframes repairPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Motion */
.header__bar {
  animation: headerDrop 0.65s cubic-bezier(.2, .75, .25, 1) both;
}

.btn--header-pulse {
  position: relative;
  isolation: isolate;
  overflow: visible;
  background: #20b964;
  color: #fff;
  box-shadow: 0 10px 26px rgba(32, 185, 100, 0.34);
  animation: headerButtonPulse 2.2s ease-in-out infinite;
}

.btn--header-pulse::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -5px;
  border: 2px solid rgba(32, 185, 100, 0.6);
  border-radius: inherit;
  pointer-events: none;
  animation: headerButtonRing 2.2s ease-out infinite;
}

.btn--header-pulse:hover {
  background: #159a50;
  box-shadow: 0 12px 30px rgba(21, 154, 80, 0.4);
  animation: none;
}

.btn--header-pulse:hover::before {
  animation: none;
  opacity: 0;
}

.logo:hover .logo__img {
  transform: translateY(-2px);
}

.logo__img {
  transition: transform 0.3s cubic-bezier(.2, .75, .25, 1);
}

.hero__eyebrow span {
  animation: onlinePulse 1.8s ease-in-out infinite;
}

.quiz-panel--hero {
  animation: quizPanelEnter 0.8s cubic-bezier(.2, .75, .25, 1) 0.12s both;
}

.hero__benefits div {
  animation: benefitEnter 0.65s cubic-bezier(.2, .75, .25, 1) both;
}

.hero__benefits div:nth-child(1) {
  animation-delay: 0.2s;
}

.hero__benefits div:nth-child(2) {
  animation-delay: 0.32s;
}

.hero__benefits div:nth-child(3) {
  animation-delay: 0.44s;
}

.btn--quiz svg {
  animation: arrowNudge 1.4s ease-in-out infinite;
}

.space-card__btn,
.need-card__btn,
.bonus-card__btn {
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.space-card:hover .space-card__btn,
.need-card:hover .need-card__btn,
.bonus-card:hover .bonus-card__btn {
  transform: translateX(3px);
}

.choice__icon,
.need-card__icon,
.bonus-card__icon {
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s cubic-bezier(.2, .75, .25, 1);
}

.choice:hover .choice__icon,
.need-card:hover .need-card__icon,
.bonus-card:hover .bonus-card__icon {
  transform: translateY(-2px) scale(1.04);
}

.choice.is-selected,
.space-card.is-selected,
.need-card.is-selected,
.bonus-card.is-selected {
  animation: selectionPop 0.32s cubic-bezier(.2, .9, .3, 1);
}

.need-card.is-selected .check::after,
.bonus-card.is-selected .check::after {
  animation: checkDraw 0.28s cubic-bezier(.2, .9, .3, 1) both;
}

.modal:not([hidden]) .modal__dialog {
  animation: modalSpring 0.4s cubic-bezier(.2, .85, .25, 1.15) both;
}

@keyframes headerDrop {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headerButtonPulse {
  0%,
  100% {
    background: #20b964;
    box-shadow: 0 9px 24px rgba(32, 185, 100, 0.28);
  }
  50% {
    background: #27ca70;
    box-shadow: 0 12px 34px rgba(32, 185, 100, 0.5);
  }
}

@keyframes headerButtonRing {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  28% {
    opacity: 0.7;
  }
  72%,
  100% {
    opacity: 0;
    transform: scale(1.16);
  }
}

@keyframes onlinePulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(92, 228, 156, 0.1);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(92, 228, 156, 0.18);
  }
}

@keyframes quizPanelEnter {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes benefitEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes arrowNudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(4px);
  }
}

@keyframes selectionPop {
  0% {
    transform: scale(1);
  }
  52% {
    transform: scale(1.018);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes checkDraw {
  from {
    opacity: 0;
    transform: scale(0.45) rotate(-12deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes modalSpring {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.legal-page {
  min-height: 100vh;
}

.legal-header {
  padding: 22px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-header .logo__img {
  width: 180px;
  height: auto;
}

.legal-header__back {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.legal-main {
  padding: 56px 0 80px;
}

.legal-document {
  width: min(100%, 860px);
  padding: clamp(24px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-document h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
}

.legal-document h2 {
  margin: 32px 0 12px;
  font-size: clamp(20px, 3vw, 25px);
  line-height: 1.25;
}

.legal-document p,
.legal-document li {
  color: var(--muted);
}

.legal-document a {
  color: var(--brand);
}

.legal-document__date {
  margin: 0 0 32px;
  color: var(--muted);
}

.legal-document ul,
.legal-document ol {
  padding-left: 22px;
}

.access-card {
  width: min(100%, 560px);
  margin-bottom: 24px;
}

.access-card__form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.access-card__label {
  color: var(--ink);
  font-weight: 700;
}

.access-card__input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  letter-spacing: 0.12em;
}

.access-card__input::placeholder {
  color: #9aa7b8;
  letter-spacing: 0;
}

.access-card__error {
  min-height: 1.4em;
  margin: 0;
  color: #b42318;
  font-size: 0.9rem;
}

.service-info {
  width: min(100%, 860px);
}

.service-info[hidden] {
  display: none;
}

.service-info__lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.service-info__list {
  display: grid;
  gap: 12px;
  padding-left: 22px;
}

@media (max-width: 560px) {
  .legal-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-main {
    padding: 28px 0 48px;
  }
}
