:root {
  --bg: #0e1116;
  --bg-soft: #151a22;
  --bg-card: rgba(22, 27, 36, 0.76);
  --line: #2d3541;
  --line-soft: rgba(207, 216, 230, 0.12);
  --text: #f3f6fb;
  --text-muted: #b2bccd;
  --accent: #b89254;
  --accent-strong: #c6a264;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.42);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 12% 0%, #1a202a, var(--bg) 55%);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3.5vw, 3.6rem);
  line-height: 1.05;
}

.section-tag {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d9bf8f;
  font-weight: 700;
}

.section-text {
  margin: 0 0 30px;
  max-width: 760px;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(12, 15, 20, 0.84);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.header__inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand__title {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand__title--gold {
  color: #efd59b;
  text-shadow: 0 0 18px rgba(184, 146, 84, 0.5);
  animation: gold-flicker 2.4s ease-in-out infinite;
}

.brand__subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.nav {
  justify-self: center;
  display: flex;
  gap: 24px;
  color: #dbe3ef;
}

.nav a {
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #fff;
}

.nav__cta {
  display: none;
}

.btn {
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 13px 22px;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  color: #161208;
  background: linear-gradient(140deg, var(--accent), #a8844b);
  box-shadow: 0 10px 24px rgba(184, 146, 84, 0.28);
}

.btn--primary:hover {
  background: linear-gradient(140deg, #d2b274, var(--accent));
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: #495262;
}

.hero-slider {
  position: relative;
  min-height: min(900px, calc(100vh - 82px));
  overflow: hidden;
}

.hero-slider__track {
  position: relative;
  min-height: inherit;
}

.hero-slide {
  --slide-current: var(--slide-image);
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  pointer-events: none;
  transform: scale(1);
  transition: opacity 0.85s ease;
  background:
    linear-gradient(110deg, rgba(8, 11, 16, 0.55), rgba(8, 11, 16, 0.1)),
    var(--slide-current) center/cover no-repeat;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 11, 15, 0.25), rgba(9, 11, 15, 0.82));
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  padding-bottom: 130px;
}

.hero-slide__eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #e6cb8f;
  text-shadow: 0 0 16px rgba(184, 146, 84, 0.28);
}

.hero-slide__eyebrow--gold {
  color: #f0d596;
  text-shadow: 0 0 22px rgba(184, 146, 84, 0.42);
  animation: gold-flicker 2.2s ease-in-out infinite;
}

@keyframes gold-flicker {
  0%,
  100% {
    opacity: 1;
    color: #f0d596;
    text-shadow: 0 0 14px rgba(184, 146, 84, 0.5), 0 0 28px rgba(184, 146, 84, 0.24);
  }
  50% {
    opacity: 1;
    color: #ffe3a7;
    text-shadow: 0 0 22px rgba(184, 146, 84, 0.78), 0 0 38px rgba(184, 146, 84, 0.38);
  }
}

.hero-slide h1,
.hero-slide h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.98;
  max-width: 760px;
}

.hero-slide p {
  max-width: 620px;
  margin: 0 0 26px;
  color: #e3eaf5;
  font-size: clamp(1rem, 2.2vw, 1.22rem);
}

.hero-slider__controls {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.hero-slider__dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.hero-dot.is-active {
  width: 34px;
  border-radius: 999px;
  background: #fff;
}

.hero-kpis {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  background: rgba(10, 13, 18, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-kpis__inner {
  min-height: 64px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
}

.hero-kpis span {
  font-weight: 700;
  color: #e4ebf7;
}

.hero-kpis span::before {
  content: "•";
  color: var(--accent);
  margin-right: 10px;
}

.services-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  min-height: 220px;
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--line-soft);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  padding: 24px 22px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 146, 84, 0.55);
  box-shadow: var(--shadow);
}

.service-card__line {
  display: block;
  width: 44px;
  height: 3px;
  margin-bottom: 24px;
  background: linear-gradient(90deg, #ffffff, var(--accent));
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.34rem;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
}

.service-card--a {
  background: linear-gradient(165deg, rgba(33, 40, 52, 0.88), rgba(16, 20, 28, 0.9));
}

.service-card--b {
  background: linear-gradient(165deg, rgba(39, 37, 47, 0.88), rgba(16, 20, 28, 0.9));
}

.service-card--c {
  background: linear-gradient(165deg, rgba(28, 39, 47, 0.88), rgba(16, 20, 28, 0.9));
}

.service-card--d {
  background: linear-gradient(165deg, rgba(35, 33, 48, 0.88), rgba(16, 20, 28, 0.9));
}

.quiz-preview {
  border: 1px solid rgba(184, 146, 84, 0.35);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(33, 36, 47, 0.94), rgba(19, 23, 31, 0.95));
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  padding: 36px;
}

.quiz-preview p {
  color: var(--text-muted);
  max-width: 620px;
}

.quiz-preview__steps {
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: rgba(10, 13, 19, 0.38);
  padding: 22px;
  align-self: start;
}

.quiz-preview__steps p {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.quiz-preview__steps p:last-child {
  border-bottom: 0;
}

.quiz-preview__steps span {
  display: inline-block;
  min-width: 62px;
  color: #e2cd9f;
  font-weight: 700;
}

.section--muted {
  background: rgba(255, 255, 255, 0.02);
}

.guarantees {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.guarantees p {
  margin: 0 0 22px;
  color: var(--text-muted);
}

.guarantees-note {
  margin-top: -8px;
  margin-bottom: 16px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #9ca8be;
}

.guarantees ul {
  margin: 0;
  list-style: none;
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: rgba(12, 16, 23, 0.55);
  display: grid;
  gap: 12px;
}

.guarantees li {
  color: #dce3ef;
  position: relative;
  padding-left: 18px;
}

.guarantees li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background: var(--accent);
}

.delivery-flow {
  margin: 22px 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.delivery-flow article {
  border: 1px solid var(--line-soft);
  background: rgba(20, 25, 34, 0.65);
  border-radius: 20px;
  padding: 18px 12px;
  text-align: center;
}

.delivery-flow strong {
  display: block;
  font-size: 1.35rem;
  color: #e0c793;
}

.delivery-flow span {
  color: #d4dbe8;
  font-weight: 600;
}

.delivery-note {
  color: var(--text-muted);
  margin: 0 0 24px;
}

.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contacts p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.map-card {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--line-soft);
  min-height: 340px;
  overflow: hidden;
  background: #0f141d;
}

.map-card--link {
  display: block;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.map-card--link:hover {
  border-color: rgba(184, 146, 84, 0.7);
  transform: translateY(-2px);
}

.map-card__image {
  width: 100%;
  height: 100%;
  min-height: 340px;
  display: block;
  object-fit: cover;
}

.map-card__content {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(10, 14, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.map-card__content p {
  margin: 0;
  font-weight: 700;
  color: #ecf2fc;
}

.map-card__content small {
  color: #b6c0d1;
  font-size: 0.8rem;
}

.map-rating {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border: 1px solid rgba(255, 56, 56, 0.38);
  border-radius: 14px;
  background: rgba(14, 18, 24, 0.94);
  backdrop-filter: blur(4px);
  padding: 10px 12px;
  display: grid;
  gap: 2px;
  justify-items: end;
  z-index: 3;
}

.map-rating__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
}

.map-rating__icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #ff2c2c;
  background: #ffffff;
}

.map-rating strong {
  font-size: 1.5rem;
  line-height: 1;
  color: #ff4747;
}

.map-rating small {
  color: #aeb8ca;
  font-size: 0.72rem;
}

.final-cta {
  border-radius: 28px;
  border: 1px solid rgba(184, 146, 84, 0.36);
  background: linear-gradient(142deg, rgba(184, 146, 84, 0.18), rgba(22, 28, 39, 0.92));
  text-align: center;
  padding: 40px;
}

.final-cta p {
  margin: 0 auto 22px;
  max-width: 720px;
  color: #e4ebf7;
}

.footer {
  padding: 38px 0 46px;
  border-top: 1px solid var(--line-soft);
}

.footer__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.footer p {
  margin: 0;
  color: var(--text-muted);
}

.footer h3 {
  margin: 0 0 8px;
}

.footer__nav {
  display: grid;
  gap: 8px;
  justify-items: start;
  color: #d4dced;
}

.quiz-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
  z-index: 200;
}

.quiz-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.quiz-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 12, 0.74);
  backdrop-filter: blur(3px);
}

.quiz-modal__dialog {
  position: relative;
  width: min(760px, 92%);
  max-height: 90vh;
  overflow: auto;
  overflow-x: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(23, 29, 39, 0.97), rgba(14, 18, 25, 0.97));
  box-shadow: var(--shadow);
  padding: 28px;
}

.quiz-modal__close {
  position: absolute;
  right: 14px;
  top: 10px;
  background: transparent;
  border: 0;
  color: #dde4f2;
  font-size: 1.8rem;
  cursor: pointer;
}

.quiz-modal__header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.quiz-modal__header p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.quiz-progress-wrap {
  margin-top: 16px;
}

.quiz-progress {
  display: inline-block;
  font-weight: 700;
  color: #e4cf9f;
  margin-bottom: 7px;
}

.quiz-progress-line {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.quiz-progress-line i {
  display: block;
  height: 100%;
  width: 33.33%;
  background: linear-gradient(90deg, #d8bc86, #b89254);
  transition: width 0.3s ease;
}

.quiz-step {
  display: none;
}

.quiz-step.is-active {
  display: block;
}

.quiz-step__title {
  margin: 18px 0 14px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field span {
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(8, 11, 16, 0.65);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(184, 146, 84, 0.9);
}

.field__error {
  min-height: 18px;
  color: #f98776;
  font-size: 0.84rem;
}

.is-invalid {
  border-color: #f98776;
}

.messenger {
  border: 0;
  margin: 18px 0 0;
  padding: 0;
}

.messenger legend {
  font-weight: 700;
  margin-bottom: 10px;
}

.messenger-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.messenger-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 12px;
  display: grid;
  justify-items: center;
  gap: 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.messenger-card input {
  position: absolute;
  opacity: 0;
}

.messenger-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(11, 14, 20, 0.85);
}

.messenger-card__icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.messenger-card__name {
  font-weight: 700;
  color: #d5deeb;
}

.messenger-card:has(input:checked) {
  border-color: rgba(184, 146, 84, 0.92);
  background: rgba(184, 146, 84, 0.16);
  transform: translateY(-1px);
}

.messenger-card:has(input:checked)::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d7bb83;
}

.messenger-card:has(input:checked) .messenger-card__icon {
  border-color: rgba(184, 146, 84, 0.92);
  background: rgba(184, 146, 84, 0.12);
}

.messenger-username {
  margin-top: 14px;
  width: 100%;
}

.is-hidden {
  display: none;
}

.field--full {
  grid-column: 1 / -1;
}

.stage-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.stage-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  display: flex;
  gap: 0;
  align-items: center;
  background: rgba(255, 255, 255, 0.01);
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.stage-card input {
  position: absolute;
  opacity: 0;
}

.stage-card span {
  font-weight: 600;
  color: #d6deeb;
}

.stage-card:has(input:checked) {
  border-color: rgba(184, 146, 84, 0.92);
  background: rgba(184, 146, 84, 0.14);
  transform: translateY(-1px);
}

.stage-card:has(input:checked)::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d7bb83;
  margin-right: 10px;
}

.quiz-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.68s ease, transform 0.68s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guarantees,
  .contacts,
  .quiz-preview {
    grid-template-columns: 1fr;
  }

  .delivery-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .header__inner {
    grid-template-columns: auto auto auto;
  }

  .burger {
    display: inline-block;
    justify-self: end;
  }

  .header__cta {
    display: none;
  }

  .nav__cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }

  .nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 16px 4%;
    background: #0f141b;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
  }

  .nav.is-open {
    display: flex;
  }

  .hero-slide__content {
    padding-bottom: 126px;
  }

  .field-grid,
  .messenger-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .quiz-modal {
    place-items: end center;
  }

  .quiz-modal__dialog {
    width: 100%;
    max-height: 100dvh;
    border-radius: 20px 20px 0 0;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .hero-slide {
    --slide-current: var(--slide-image-mobile, var(--slide-image));
  }

  .section {
    padding: 72px 0;
  }

  .hero-slider {
    min-height: calc(100vh - 82px);
  }

  .hero-slide__content {
    padding-bottom: 140px;
  }

  .hero-kpis__inner {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    min-height: 60px;
    font-size: 0.84rem;
    gap: 0;
    padding: 0 8px;
  }

  .hero-kpis span::before {
    margin-right: 4px;
  }

  .delivery-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .quiz-actions .btn {
    width: auto;
    flex: 1;
  }
}
