:root {
  --ink: #0c1a22;
  --ink-soft: #243743;
  --teal: #0f6e5c;
  --teal-deep: #0a4f43;
  --sand: #e7efe9;
  --mist: #f3f7f4;
  --line: rgba(12, 26, 34, 0.12);
  --warn: #9a3412;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(12, 26, 34, 0.12);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--mist);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--teal-deep);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--teal);
  color: #fff;
}

.btn--primary:hover {
  background: var(--teal-deep);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(12, 26, 34, 0.18);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(243, 247, 244, 0.86);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.logo__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--teal) 0%, #1f9a7f 55%, #c4e7d8 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.logo__text {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.header__phone {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.header__cta {
  display: none;
}

@media (min-width: 760px) {
  .header__cta {
    display: inline-flex;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(100vh, 920px);
  display: flex;
  align-items: flex-end;
  padding: 4.5rem 0 4rem;
  color: #f4faf7;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(31, 154, 127, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(196, 231, 216, 0.12), transparent 50%),
    linear-gradient(160deg, #07141b 0%, #0c2a28 42%, #12352f 100%);
  animation: heroGlow 12s ease-in-out infinite alternate;
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 85%);
  opacity: 0.5;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% 35%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(15, 110, 92, 0.45), transparent 70%);
  filter: blur(10px);
  animation: drift 16s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from { filter: saturate(1); }
  to { filter: saturate(1.15) brightness(1.05); }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-6%, -4%, 0) scale(1.08); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  animation: rise 0.9s ease both;
}

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

.hero__brand {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #c9ebe0;
}

.hero__title {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-size: clamp(1.85rem, 5.2vw, 3.35rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.hero__title span {
  color: #9fd9c7;
}

.hero__lead {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  font-size: 1.08rem;
  color: rgba(244, 250, 247, 0.86);
}

.hero__points {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.hero__points li {
  position: relative;
  padding-left: 1.35rem;
  color: rgba(244, 250, 247, 0.92);
}

.hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #7dceb8;
  box-shadow: 0 0 0 4px rgba(125, 206, 184, 0.18);
}

.hero__actions {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.hero__hint {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(244, 250, 247, 0.65);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section__title {
  margin: 0 0 1.75rem;
  font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.suitable {
  background: #fff;
}

.suitable__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .suitable__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .suitable__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.suitable__item {
  padding: 1.35rem 1.25rem 1.4rem;
  border-top: 2px solid var(--teal);
  background: var(--mist);
  animation: rise 0.7s ease both;
}

.suitable__item:nth-child(2) { animation-delay: 0.05s; }
.suitable__item:nth-child(3) { animation-delay: 0.1s; }
.suitable__item:nth-child(4) { animation-delay: 0.15s; }
.suitable__item:nth-child(5) { animation-delay: 0.2s; }

.suitable__num {
  display: block;
  margin-bottom: 0.65rem;
  font-family: var(--display);
  font-size: 0.85rem;
  color: var(--teal);
  letter-spacing: 0.04em;
}

.suitable__item p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.steps {
  background:
    linear-gradient(180deg, var(--sand), #f7fbf8 40%, #fff);
}

.steps__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.steps__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.steps__item:last-child {
  border-bottom: 0;
}

.steps__num {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
}

.steps__item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
}

.steps__item p {
  margin: 0;
  color: var(--ink-soft);
}

/* Quiz */
.quiz-section {
  background: #0c1a22;
  color: #f4faf7;
}

.quiz-section .section__title {
  color: #f4faf7;
}

.quiz-section__inner {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .quiz-section__inner {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }
}

.quiz-intro__text {
  margin: 0;
  color: rgba(244, 250, 247, 0.75);
  max-width: 28rem;
}

.quiz {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 1.35rem 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .quiz {
    padding: 1.75rem;
  }
}

.quiz__progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.quiz__bar {
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, #1f9a7f, #7dceb8);
  border-radius: inherit;
  transition: width 0.35s ease;
}

.quiz__step-label {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  color: rgba(244, 250, 247, 0.55);
}

.quiz__step {
  margin: 0;
  padding: 0;
  border: 0;
  min-height: 220px;
  animation: rise 0.35s ease both;
}

.quiz__step[hidden] {
  display: none !important;
}

.quiz__step legend {
  padding: 0;
  margin-bottom: 1rem;
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.option:hover {
  border-color: rgba(125, 206, 184, 0.55);
}

.option:has(input:checked) {
  border-color: #7dceb8;
  background: rgba(15, 110, 92, 0.28);
}

.option input {
  accent-color: #7dceb8;
}

.option span {
  font-weight: 600;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.field__label {
  font-size: 0.9rem;
  color: rgba(244, 250, 247, 0.7);
}

.field__input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
}

.field__input::placeholder {
  color: rgba(244, 250, 247, 0.4);
}

.field__input:focus {
  outline: 2px solid rgba(125, 206, 184, 0.55);
  outline-offset: 1px;
}

.check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0.5rem 0 0.25rem;
  font-size: 0.88rem;
  color: rgba(244, 250, 247, 0.75);
}

.check a {
  color: #9fd9c7;
}

.quiz__note {
  margin: -0.35rem 0 1rem;
  color: rgba(244, 250, 247, 0.7);
}

.quiz__reject {
  margin: 0.85rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(154, 52, 18, 0.22);
  border: 1px solid rgba(251, 146, 60, 0.35);
  color: #ffd7b5;
  font-size: 0.92rem;
}

.quiz__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.quiz__nav .btn[hidden] {
  display: none !important;
}

/* Кнопка «Назад» стоит на тёмном фоне квиза — нужна светлая обводка и текст */
.quiz__nav .btn--ghost {
  color: #f4faf7;
  border-color: rgba(255, 255, 255, 0.35);
}

.quiz__nav .btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.quiz__nav .btn--primary {
  margin-left: auto;
}

.quiz__success {
  text-align: center;
  padding: 2rem 0.5rem;
  animation: rise 0.4s ease both;
}

.quiz__success h3 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: 1.4rem;
}

.quiz__success p {
  margin: 0 0 1.25rem;
  color: rgba(244, 250, 247, 0.75);
}

.cta-band {
  background: var(--sand);
  text-align: center;
}

.cta-band__inner h2 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  letter-spacing: -0.03em;
}

.cta-band__inner p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

.footer {
  padding: 2rem 0 2.5rem;
  background: #07141b;
  color: rgba(244, 250, 247, 0.55);
  font-size: 0.86rem;
}

.footer a {
  color: #9fd9c7;
}

.footer__inner {
  display: grid;
  gap: 0.65rem;
}

.footer p {
  margin: 0;
}

/* Privacy page */
.legal {
  padding: 3rem 0 4rem;
  background: #fff;
  min-height: 70vh;
}

.legal h1 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.legal p {
  max-width: 44rem;
  color: var(--ink-soft);
}

/* Demo switcher */
.demo-bar {
  background: #041016;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.55rem 0;
}

.demo-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.demo-bar__back {
  color: rgba(244, 250, 247, 0.7);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.demo-bar__back:hover {
  color: #fff;
}

.offer-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-left: auto;
}

.offer-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(244, 250, 247, 0.78);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.offer-chip.is-active,
.offer-chip:hover {
  background: rgba(125, 206, 184, 0.18);
  border-color: rgba(125, 206, 184, 0.55);
  color: #fff;
}

.hero__accent {
  color: #9fd9c7;
}

/* Themes */
.theme-vykup {
  --teal: #8a5a2b;
  --teal-deep: #6b4320;
}

.theme-vykup .hero__bg {
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(180, 120, 60, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(232, 210, 170, 0.1), transparent 50%),
    linear-gradient(160deg, #140e09 0%, #2a1c12 42%, #3a2818 100%);
}

.theme-vykup .hero__accent,
.theme-vykup .hero__brand {
  color: #e8c796;
}

.theme-vykup .hero__points li::before {
  background: #e0b56a;
  box-shadow: 0 0 0 4px rgba(224, 181, 106, 0.18);
}

.theme-vykup .btn--primary {
  background: #8a5a2b;
}

.theme-vykup .btn--primary:hover {
  background: #6b4320;
}

.theme-vykup .suitable__item {
  border-top-color: #8a5a2b;
}

.theme-vykup .suitable__num {
  color: #8a5a2b;
}

.theme-vykup .quiz__bar {
  background: linear-gradient(90deg, #8a5a2b, #e0b56a);
}

.theme-bez-banka {
  --teal: #1f4f7a;
  --teal-deep: #163a5a;
}

.theme-bez-banka .hero__bg {
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(60, 120, 180, 0.32), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(170, 200, 230, 0.1), transparent 50%),
    linear-gradient(160deg, #081018 0%, #122433 42%, #1a3348 100%);
}

.theme-bez-banka .hero__accent,
.theme-bez-banka .hero__brand {
  color: #9ec4e6;
}

.theme-bez-banka .hero__points li::before {
  background: #7eb0d8;
  box-shadow: 0 0 0 4px rgba(126, 176, 216, 0.18);
}

.theme-bez-banka .btn--primary {
  background: #1f4f7a;
}

.theme-bez-banka .btn--primary:hover {
  background: #163a5a;
}

.theme-bez-banka .suitable__item {
  border-top-color: #1f4f7a;
}

.theme-bez-banka .suitable__num {
  color: #1f4f7a;
}

.theme-bez-banka .quiz__bar {
  background: linear-gradient(90deg, #1f4f7a, #7eb0d8);
}

/* Hub */
.hub-badge {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal-deep);
  background: rgba(15, 110, 92, 0.1);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.hub-main {
  padding: 3.5rem 0 4rem;
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(15, 110, 92, 0.1), transparent 55%),
    var(--mist);
  min-height: 70vh;
}

.hub-kicker {
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.02em;
}

.hub-title {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.hub-lead {
  margin: 0 0 2rem;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.hub-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 840px) {
  .hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hub-card {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 1.35rem 1.25rem 1.4rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px rgba(12, 26, 34, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease;
  min-height: 280px;
}

.hub-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 110, 92, 0.35);
}

.hub-card__label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
}

.hub-card__title {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hub-card__accent {
  color: var(--ink-soft);
  font-weight: 700;
}

.hub-card__note {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.hub-card__cta {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 800;
  color: var(--teal-deep);
}

.hub-card.theme-vykup {
  --teal: #8a5a2b;
  --teal-deep: #6b4320;
}

.hub-card.theme-bez-banka {
  --teal: #1f4f7a;
  --teal-deep: #163a5a;
}

.hub-ref {
  margin: 2rem 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
