/* =============== БАЗА =============== */
:root {
  --bg: #0d0d0d;
  --bg-alt: #141414;
  --bg-card: #1a1a1a;
  --border: #262626;
  --text: #ffffff;
  --text-muted: #9a9a9a;
  --yellow: #ffd400;
  --yellow-hover: #ffe24d;
  --yellow-dark: #c9a800;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Manrope",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: 820px;
}

.accent {
  color: var(--yellow);
}

/* =============== TOPBAR =============== */
.topbar {
  background: var(--yellow);
  color: #111;
  font-weight: 600;
  font-size: 14px;
}
.topbar__inner {
  padding: 10px 24px;
  text-align: center;
}
.topbar__text strong {
  font-weight: 800;
}

/* =============== HEADER =============== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
}
.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
}
.logo__mark {
  background: var(--yellow);
  color: #111;
  padding: 4px 10px;
  border-radius: 8px;
  margin-right: 2px;
}
.logo__text {
  color: var(--text);
}

.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
  transition: color var(--transition);
}
.nav a:hover {
  color: var(--yellow);
}

.header__phone {
  color: var(--yellow);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.header__phone:hover {
  color: var(--yellow-hover);
}
.header__phone-icon {
  display: none;
}

.burger {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--yellow);
  border-radius: 2px;
}

/* =============== BUTTONS =============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  line-height: 1.2;
}
.btn--primary {
  background: var(--yellow);
  color: #111;
}
.btn--primary:hover {
  background: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 212, 0, 0.25);
}
.btn--ghost {
  background: transparent;
  color: var(--yellow);
  border-color: var(--yellow);
}
.btn--ghost:hover {
  background: var(--yellow);
  color: #111;
}
.btn--block {
  width: 100%;
}
.btn--lg {
  padding: 18px 36px;
  font-size: 17px;
}

/* =============== HERO =============== */
.hero {
  position: relative;
  padding: 18px 0 100px;
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(
      180deg,
      rgba(13, 13, 13, 0.5) 0%,
      rgba(13, 13, 13, 0.75) 60%,
      var(--bg) 100%
    ),
    linear-gradient(
      90deg,
      rgba(13, 13, 13, 0.85) 0%,
      rgba(13, 13, 13, 0.45) 50%,
      rgba(13, 13, 13, 0.15) 100%
    ),
    url("background.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, center;
  background-repeat: no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(
    circle at center,
    rgba(255, 212, 0, 0.18) 0%,
    transparent 65%
  );
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: start;
}
.hero__right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero__vk-mini {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  background: rgba(255, 212, 0, 0.12);
  border: 1px solid rgba(255, 212, 0, 0.3);
  color: var(--yellow);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  backdrop-filter: blur(6px);
  transition: all var(--transition);
}
.hero__vk-mini:hover {
  background: rgba(255, 212, 0, 0.2);
  border-color: rgba(255, 212, 0, 0.5);
  color: var(--yellow);
  transform: translateY(-1px);
}
.hero__vk-mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0077ff;
  color: #fff;
  flex-shrink: 0;
}
.hero__badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255, 212, 0, 0.12);
  color: var(--yellow);
  border: 1px solid rgba(255, 212, 0, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.hero__lead {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 540px;
}
.hero__vk-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  margin: 0 0 24px;
  background: linear-gradient(135deg, #0077ff 0%, #2a8aff 100%);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  box-shadow: 0 8px 24px rgba(0, 119, 255, 0.35);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  width: fit-content;
  max-width: 100%;
}
.hero__vk-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 119, 255, 0.5);
  color: #fff;
}
.hero__vk-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}
.hero__vk-cta-text {
  flex: 0 1 auto;
  white-space: nowrap;
}
.hero__vk-cta-arrow {
  font-size: 16px;
  line-height: 1;
  transition: transform var(--transition);
}
.hero__vk-cta:hover .hero__vk-cta-arrow {
  transform: translateX(4px);
}
.hero__chips {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
}
.hero__chips .hero__vk-cta,
.hero__chips .hero__max-cta {
  margin: 0;
}
.hero__max-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 60%, #7e22ce 100%);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  box-shadow: 0 8px 24px rgba(76, 29, 149, 0.45);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  width: fit-content;
  max-width: 100%;
}
.hero__max-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(109, 40, 217, 0.6);
  color: #fff;
}
.hero__max-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.hero__max-cta-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__max-cta-text {
  flex: 0 1 auto;
  white-space: nowrap;
}
.hero__max-cta-arrow {
  font-size: 16px;
  line-height: 1;
  transition: transform var(--transition);
}
.hero__max-cta:hover .hero__max-cta-arrow {
  transform: translateX(4px);
}
.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat__num {
  font-size: 32px;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 6px;
}
.stat__label {
  font-size: 14px;
  color: var(--text-muted);
}

.hero__visual {
  position: relative;
  height: 460px;
  display: none;
}
.hero__circle {
  display: none;
}
.hero__grid {
  display: none;
}

/* =============== QUIZ =============== */
.quiz {
  background: rgba(20, 20, 20, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  backdrop-filter: blur(14px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 212, 0, 0.05);
  position: relative;
  overflow: hidden;
}
.quiz::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 212, 0, 0.5),
    transparent 40%,
    rgba(255, 212, 0, 0.2) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.quiz__head {
  margin-bottom: 18px;
}
.quiz__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.quiz__sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Прогресс-бар */
.quiz__progress {
  margin-bottom: 22px;
}
.quiz__progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.quiz__progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--yellow-dark), var(--yellow));
  border-radius: 100px;
  transition: width 0.4s ease;
  box-shadow: 0 0 12px rgba(255, 212, 0, 0.5);
}
.quiz__progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}
.quiz__progress-meta span:last-child {
  color: var(--yellow);
}

/* Шаги */
.quiz__step {
  display: none;
  animation: stepIn 0.35s ease both;
}
.quiz__step.is-active {
  display: block;
}
@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.quiz__q {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.quiz__hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.quiz__opts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.quiz__opts--stack {
  flex-direction: column;
}

/* Опции */
.qopt {
  cursor: pointer;
  display: block;
  flex: 1;
}
.qopt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.qopt__box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(13, 13, 13, 0.6);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  min-height: 56px;
}
.qopt:hover .qopt__box {
  border-color: #444;
}
.qopt input:checked + .qopt__box {
  border-color: var(--yellow);
  background: rgba(255, 212, 0, 0.08);
}
.qopt__icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qopt__icon svg {
  width: 100%;
  height: 100%;
}
.qopt__title {
  display: block;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
}
.qopt__desc {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
}
.qopt input:checked + .qopt__box .qopt__title {
  color: var(--yellow);
}

/* Чекбокс-вариант */
.qopt--check .qopt__check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition);
}
.qopt--check input:checked + .qopt__box .qopt__check {
  background: var(--yellow);
  border-color: var(--yellow);
}
.qopt--check input:checked + .qopt__box .qopt__check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #111;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.qopt--check input:disabled + .qopt__box {
  opacity: 0.85;
  cursor: not-allowed;
}

/* Площадь */
.quiz__area {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.quiz__area input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  outline: none;
}
.quiz__area input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yellow);
  cursor: pointer;
  border: 3px solid #111;
  box-shadow: 0 0 0 1px var(--yellow);
}
.quiz__area input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yellow);
  cursor: pointer;
  border: 3px solid #111;
}
.quiz__area-value {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(13, 13, 13, 0.6);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
}
.quiz__area-value input {
  width: 60px;
  background: transparent;
  border: none;
  color: var(--yellow);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
  text-align: right;
}
.quiz__area-value input::-webkit-outer-spin-button,
.quiz__area-value input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.quiz__area-value span {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}
.quiz__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  background: rgba(13, 13, 13, 0.6);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 14px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: all var(--transition);
}
.chip:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* Финальный шаг */
.quiz__step--final {
  text-align: center;
}
.quiz__final-percent {
  font-size: 56px;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 30px rgba(255, 212, 0, 0.4);
}
.quiz__final-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}
.quiz__final-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.quiz__result {
  background: linear-gradient(
    135deg,
    rgba(255, 212, 0, 0.14),
    rgba(255, 212, 0, 0.04)
  );
  border: 1px solid rgba(255, 212, 0, 0.35);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 18px;
}
.quiz__result-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.quiz__result-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1.2;
}
.quiz__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.quiz__contact input {
  padding: 14px 16px;
  background: rgba(13, 13, 13, 0.6);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--transition);
  text-align: center;
}
.quiz__contact input:focus {
  outline: none;
  border-color: var(--yellow);
}
.quiz__contact input::placeholder {
  color: #666;
}
.quiz__contact input.is-error {
  border-color: #ff4d4d;
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}
.quiz__policy {
  margin: 6px 0 0;
  font-size: 11px;
  color: #666;
  text-align: center;
  line-height: 1.4;
}

/* Навигация квиза */
.quiz__nav {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.quiz__nav.is-hidden {
  display: none !important;
}
.btn--sm {
  padding: 12px 22px;
  font-size: 14px;
  flex: 1;
}
#quizBack {
  flex: 0 0 auto;
}
#quizBack[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* =============== QUIZ LOADER =============== */
.quiz__loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 280px;
  padding: 30px 10px;
  animation: stepIn 0.3s ease both;
}
.quiz__loader[hidden] {
  display: none;
}
.quiz__loader-spinner {
  position: relative;
  width: 70px;
  height: 70px;
}
.quiz__loader-ring {
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
.quiz__loader-ring:nth-child(2) {
  inset: 8px;
  border-top-color: rgba(255, 212, 0, 0.5);
  animation-duration: 1.6s;
  animation-direction: reverse;
}
.quiz__loader-ring:nth-child(3) {
  inset: 16px;
  border-top-color: rgba(255, 212, 0, 0.25);
  animation-duration: 2s;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.quiz__loader-text {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  max-width: 280px;
  animation: fadeUp 0.4s ease both;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Иконки в карточках услуг — теперь SVG */
.service__icon svg,
.modal__icon svg {
  width: 100%;
  height: 100%;
}
.service__icon {
  width: 44px;
  height: 44px;
  color: var(--yellow);
  margin-bottom: 16px;
}
.modal__icon {
  width: 64px;
  height: 64px;
  color: var(--yellow);
  margin: 0 auto 14px;
}

/* Иконка в топбаре */
.topbar__text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.topbar__text .ic {
  flex-shrink: 0;
}

/* Иконка-подарок в преимуществе */
.adv--accent .adv__num {
  width: 36px;
  height: 36px;
  color: #111;
}
.adv--accent .adv__num svg {
  width: 100%;
  height: 100%;
}

/* =============== SECTION =============== */
.section {
  padding: 100px 0;
}
.section--alt {
  background: var(--bg-alt);
}
.section__head {
  text-align: center;
  margin-bottom: 60px;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.section__sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* =============== SERVICES =============== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.service {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
}
.service:hover {
  border-color: var(--yellow);
  transform: translateY(-4px);
}
.service h3 {
  font-size: 20px;
  margin: 0 0 10px;
  font-weight: 700;
}
.service p {
  color: var(--text-muted);
  margin: 0;
  font-size: 15px;
}

/* =============== CALC =============== */
.calc {
  max-width: 880px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.calc__group {
  margin-bottom: 32px;
}
.calc__label {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
}
.calc__options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.calc__options--stack {
  flex-direction: column;
}
.opt {
  cursor: pointer;
  flex: 1;
  min-width: 140px;
}
.opt--inline {
  flex: 1;
}
.opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.opt__box {
  display: block;
  padding: 16px 20px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  height: 100%;
}
.opt__title {
  display: block;
  font-weight: 600;
  font-size: 15px;
}
.opt__desc {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.opt input:checked + .opt__box {
  border-color: var(--yellow);
  background: rgba(255, 212, 0, 0.07);
}
.opt:hover .opt__box {
  border-color: #444;
}
.opt input:checked + .opt__box .opt__title {
  color: var(--yellow);
}

.calc__area {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.calc__area input[type="range"] {
  flex: 1;
  min-width: 200px;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  outline: none;
}
.calc__area input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yellow);
  cursor: pointer;
  border: 3px solid #111;
  box-shadow: 0 0 0 1px var(--yellow);
}
.calc__area input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yellow);
  cursor: pointer;
  border: 3px solid #111;
}
.calc__area input[type="number"] {
  width: 100px;
  padding: 12px 14px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  -moz-appearance: textfield;
  appearance: textfield;
}
.calc__area input[type="number"]::-webkit-outer-spin-button,
.calc__area input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.calc__unit {
  color: var(--text-muted);
  font-weight: 600;
}

.calc__result {
  background: linear-gradient(
    135deg,
    rgba(255, 212, 0, 0.12),
    rgba(255, 212, 0, 0.03)
  );
  border: 1px solid rgba(255, 212, 0, 0.35);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin-bottom: 28px;
}
.calc__result-label {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.calc__result-value {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--yellow);
  line-height: 1.1;
  margin-bottom: 8px;
}
.calc__result-hint {
  font-size: 13px;
  color: var(--text-muted);
}

.calc__contact {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
}
.calc__contact input {
  padding: 16px 18px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--transition);
}
.calc__contact input:focus {
  outline: none;
  border-color: var(--yellow);
}
.calc__contact input::placeholder {
  color: #666;
}
.calc__policy {
  margin: 14px 0 0;
  font-size: 12px;
  color: #666;
  text-align: center;
}

/* =============== ADVANTAGES =============== */
.advantages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.adv {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
}
.adv:hover {
  border-color: var(--yellow);
}
.adv__num {
  font-size: 28px;
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: 14px;
}
.adv h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
}
.adv p {
  color: var(--text-muted);
  margin: 0;
  font-size: 15px;
}
.adv--accent {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  border-color: var(--yellow);
}
.adv--accent .adv__num,
.adv--accent h3,
.adv--accent p {
  color: #111;
}
.adv--accent p {
  opacity: 0.8;
}

/* =============== STEPS =============== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--yellow);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
.step p {
  color: var(--text-muted);
  margin: 0;
  font-size: 14px;
}

/* =============== PORTFOLIO / CAROUSEL =============== */
.carousel {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.carousel__slide {
  flex: 0 0 100%;
  margin: 0;
  aspect-ratio: 21 / 9;
  cursor: zoom-in;
  overflow: hidden;
  position: relative;
}
.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.carousel__slide:hover img {
  transform: scale(1.03);
}
.carousel__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.carousel__arrow:hover {
  background: var(--yellow);
  color: #111;
  border-color: var(--yellow);
}
.carousel__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.carousel__dots {
  grid-column: 2 / 3;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #333;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}
.carousel__dot.is-active {
  background: var(--yellow);
  width: 24px;
  border-radius: 4px;
}

/* =============== LIGHTBOX =============== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  animation: lbFade 0.25s ease;
}
.lightbox[hidden] {
  display: none;
}
@keyframes lbFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: lbZoom 0.3s ease;
}
@keyframes lbZoom {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.lightbox__close,
.lightbox__arrow {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.lightbox__close:hover,
.lightbox__arrow:hover {
  background: var(--yellow);
  color: #111;
  border-color: var(--yellow);
}
.lightbox__close {
  top: 20px;
  right: 20px;
}
.lightbox__arrow--prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__arrow--next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__counter {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
@media (max-width: 640px) {
  .carousel {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 100%;
  }
  .carousel__arrow {
    display: none;
  }
  .carousel__slide {
    aspect-ratio: 4 / 3;
  }
  .carousel__dots {
    grid-column: 1 / 2;
    margin-top: 12px;
  }
  .lightbox {
    padding: 20px 8px;
  }
  .lightbox__arrow {
    width: 40px;
    height: 40px;
  }
  .lightbox__arrow--prev {
    left: 8px;
  }
  .lightbox__arrow--next {
    right: 8px;
  }
  .lightbox__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }
  .lightbox__counter {
    top: 18px;
    font-size: 13px;
  }
}

/* =============== FAQ =============== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 24px;
  transition: border-color var(--transition);
}
.faq__item[open] {
  border-color: var(--yellow);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary::after {
  content: "+";
  color: var(--yellow);
  font-size: 24px;
  font-weight: 400;
  transition: transform var(--transition);
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
}
.faq__item p {
  margin: 0 0 20px;
  color: var(--text-muted);
}

/* =============== CTA =============== */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  color: #111;
}
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta__text h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
}
.cta__text p {
  margin: 0;
  font-size: 17px;
  opacity: 0.8;
}
.cta__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cta .btn--primary {
  background: #111;
  color: var(--yellow);
}
.cta .btn--primary:hover {
  background: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.cta .btn--ghost {
  background: transparent;
  color: #111;
  border-color: #111;
}
.cta .btn--ghost:hover {
  background: #111;
  color: var(--yellow);
}

/* =============== FOOTER =============== */
.footer {
  background: #050505;
  padding: 70px 0 30px;
  border-top: 1px solid var(--border);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.logo--footer {
  margin-bottom: 16px;
}
.footer__tag {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
  max-width: 280px;
}
.footer h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--yellow);
  margin: 0 0 16px;
  font-weight: 700;
}
.footer ul li {
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 14px;
}
.footer ul a:hover {
  color: var(--yellow);
}
.footer__vk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__vk:hover {
  color: var(--yellow);
}
.footer__vk svg {
  flex-shrink: 0;
}
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

/* =============== FLOAT STACK =============== */
.float-stack {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 40;
}
.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition);
}
.float-btn:hover {
  transform: scale(1.1);
}
.float-btn--vk {
  background: #0077ff;
  color: #fff;
}
.float-btn--max {
  background: #fff;
  color: var(--yellow);
  overflow: hidden;
  padding: 0;
}
.float-btn__max-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.float-call {
  background: var(--yellow);
  color: #111;
  box-shadow: 0 10px 30px rgba(255, 212, 0, 0.4);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 10px 30px rgba(255, 212, 0, 0.4);
  }
  50% {
    box-shadow: 0 10px 40px rgba(255, 212, 0, 0.7);
  }
}

/* =============== MODAL =============== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] {
  display: none;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}
.modal__box {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  border-radius: 50%;
}
.modal__close:hover {
  background: var(--bg);
  color: var(--yellow);
}
.modal h3 {
  margin: 0 0 8px;
  font-size: 24px;
}
.modal p {
  color: var(--text-muted);
  margin: 0 0 24px;
}

/* =============== RESPONSIVE =============== */
@media (max-width: 980px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    display: none;
  }
  .hero__vk-mini {
    align-self: flex-start;
  }
  .quiz {
    margin-top: 20px;
  }
  .header__max {
    display: none;
  }
  .header__contacts {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav {
    display: none;
  }
  .burger {
    display: flex;
    flex-shrink: 0;
  }
  .header__inner {
    gap: 12px;
    padding: 14px 16px;
  }
  .header__phone {
    padding: 0;
    background: none;
    color: var(--yellow);
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
  }
  .header__phone-icon {
    display: none !important;
  }
  .header__phone-text {
    display: inline;
  }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-alt);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 70px 0;
  }
  .hero {
    padding: 50px 0 70px;
  }
  .hero__vk-cta {
    font-size: 13px;
    padding: 10px 14px 10px 10px;
    gap: 10px;
  }
  .hero__vk-cta-icon {
    width: 28px;
    height: 28px;
  }
  .quiz {
    padding: 22px 18px;
  }
  .quiz__final-percent {
    font-size: 44px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cta__inner {
    flex-direction: column;
    text-align: center;
  }
  .cta__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .cta__actions .btn {
    width: 100%;
  }
  .topbar__text {
    font-size: 13px;
  }
  .hero__stats {
    gap: 24px;
  }
  .stat__num {
    font-size: 26px;
  }
  .logo {
    font-size: 18px;
  }
  .logo__mark {
    padding: 3px 8px;
  }
  .header__phone {
    font-size: 14px;
  }
  .header__inner {
    padding: 12px 14px;
    gap: 8px;
  }
}

/* =============== HEADER CONTACTS =============== */
.header__contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.header__max {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 60%, #7e22ce 100%);
  color: #fff;
  border: 1px solid rgba(196, 181, 253, 0.55);
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  box-shadow:
    0 6px 18px rgba(76, 29, 149, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.header__max:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 24px rgba(109, 40, 217, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(221, 214, 254, 0.8);
  color: #fff;
}
.header__max img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.header__vk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 119, 255, 0.12);
  color: #4fa3ff;
  transition: all var(--transition);
  flex-shrink: 0;
}
.header__vk:hover {
  background: #0077ff;
  color: #fff;
  transform: translateY(-2px);
}

/* =============== VK PROMO BLOCK =============== */
.vk-block {
  padding: 50px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.vk-block__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}
.vk-block__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(0, 119, 255, 0.12);
  color: #4fa3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vk-block__title {
  margin: 0 0 8px;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  line-height: 1.3;
}
.vk-block__lead {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 640px;
}
.vk-block__lead strong {
  color: var(--text);
  font-weight: 700;
}
.vk-block__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.vk-block__points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.vk-block__points svg {
  color: var(--yellow);
  flex-shrink: 0;
}
.vk-block__actions {
  flex-shrink: 0;
}

/* =============== BUTTON VARIANTS: VK / MAX =============== */
.btn--vk {
  background: #0077ff;
  color: #fff;
  border-color: #0077ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn--vk:hover {
  background: #0066dd;
  border-color: #0066dd;
  box-shadow: 0 10px 28px rgba(0, 119, 255, 0.4);
  color: #fff;
}
.btn--max {
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 60%, #7e22ce 100%);
  color: #fff;
  border: 1px solid rgba(255, 212, 0, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow:
    0 6px 18px rgba(76, 29, 149, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn--max:hover {
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 60%, #9333ea 100%);
  color: #fff;
  border-color: var(--yellow);
  box-shadow:
    0 10px 24px rgba(109, 40, 217, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.max-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  display: block;
  flex-shrink: 0;
  object-fit: cover;
}

/* CTA: цвета поверх жёлтого фона */
.cta .btn--vk {
  background: #0077ff;
  color: #fff;
  border-color: #0077ff;
}
.cta .btn--vk:hover {
  background: #0066dd;
}
.cta .btn--max {
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 60%, #7e22ce 100%);
  color: #fff;
  border-color: rgba(255, 212, 0, 0.7);
}
.cta .btn--max:hover {
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 60%, #9333ea 100%);
  border-color: var(--yellow);
}

@media (max-width: 880px) {
  .vk-block__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .vk-block__icon {
    margin: 0 auto;
  }
  .vk-block__lead {
    margin-left: auto;
    margin-right: auto;
  }
  .vk-block__points {
    justify-content: center;
  }
  .vk-block__actions .btn {
    width: 100%;
    max-width: 360px;
  }
}
@media (max-width: 640px) {
  .header__vk {
    width: 36px;
    height: 36px;
  }
  .float-stack {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }
  .float-btn {
    width: 50px;
    height: 50px;
  }
}
