.header--preview {
  background: #17125c;
  border-bottom: 2px solid var(--accent);
}

.header--preview .header__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: 0;
  justify-content: stretch;
}

.header--preview .nav {
  flex: 1;
  min-width: 0;
  height: 100%;
  margin-left: 0;
  flex-wrap: nowrap;
  gap: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header--preview .nav a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 0.4rem;
  color: #fff;
  opacity: 1;
  position: relative;
  text-align: center;
}

.header--preview .nav a::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.header--preview .nav a:hover,
.header--preview .nav a.is-active {
  color: #fff;
  background: rgba(249, 206, 0, 0.1);
}

.header--preview .nav a:hover::after,
.header--preview .nav a.is-active::after {
  transform: scaleX(1);
}

.header--preview .header__actions {
  flex-shrink: 0;
  height: 100%;
  padding: 0 0.85rem 0 0.5rem;
  gap: 0.7rem;
  background: rgba(0, 0, 0, 0.18);
}

.header--preview .header__phone {
  color: #fff;
  font-size: 0.82rem;
}

.header--preview .btn--primary {
  background: var(--accent);
  color: var(--navy);
}

.header--preview .btn--primary:hover {
  background: var(--accent-hover);
}

.header--preview .btn--sm {
  padding: 0.52rem 1rem;
  font-size: 0.8rem;
}

.header--preview .burger span {
  background: #fff;
}

.hero--preview {
  min-height: 100vh;
  overflow: hidden;
  place-items: center;
  align-content: center;
  background: #1a1f2a;
}

.hero--preview .hero__bg--brand {
  display: block;
  overflow: hidden;
  background:
    url("/images/hero/hero-photo.jpg?v=7") center 58% / cover no-repeat;
}

.hero--preview .hero__overlay {
  background: radial-gradient(
    ellipse 44% 52% at 50% 46%,
    rgba(10, 16, 36, 0.42) 0%,
    rgba(10, 16, 36, 0.16) 52%,
    transparent 78%
  );
}

.hero--preview .hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
  background: none;
  border: 0;
  box-shadow: none;
}

.hero__logo {
  display: inline-flex;
  margin-bottom: 0.85rem;
}

.hero__logo img {
  height: auto;
  width: min(420px, 72vw);
}

.hero__rule {
  display: block;
  width: 52px;
  height: 2px;
  margin: 0 auto 1.35rem;
  background: #f9ce00;
  border-radius: 2px;
}

.hero--preview h1 {
  max-width: 28ch;
  margin: 0 auto 2rem;
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
  line-height: 1.22;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(8, 12, 28, 0.45);
}

.hero--preview .hero__actions {
  justify-content: center;
}

.docs--preview {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.doc-card--photo {
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  border: 0;
  font: inherit;
  color: inherit;
  width: 100%;
}

.doc-card--photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  background: #f4f4f8;
}

.doc-card--photo strong,
.doc-card--photo span {
  display: block;
  padding: 0 1rem;
}

.doc-card--photo strong {
  padding-top: 0.9rem;
}

.doc-card--photo span {
  padding-bottom: 1rem;
}

.doc-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.doc-modal[hidden] {
  display: none !important;
}

.doc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 48, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.doc-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(15, 12, 48, 0.28);
}

.doc-modal__dialog img {
  width: 100%;
  display: block;
}

.doc-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(32, 24, 121, 0.92);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.about-page .about {
  padding-top: 2rem;
}

.partner-badge img[src*="rusal"] {
  max-height: 48px;
}

.to-top {
  position: fixed;
  left: 16px;
  bottom: 28px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(15, 12, 48, 0.28);
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover {
  background: rgba(15, 12, 48, 0.62);
  color: #fff;
}

.footer__logo {
  height: 42px;
  width: auto;
}

@media (max-width: 1280px) {
  .header--preview .header__phone {
    display: none;
  }
}

@media (max-width: 768px) {
  .header--preview .nav {
    inset: var(--header-h) 0 auto;
    flex: none;
    height: auto;
    font-size: 0.95rem;
    letter-spacing: 0;
    background: #17125c;
    border-bottom: 2px solid var(--accent);
  }

  .header--preview .nav a {
    flex: none;
    justify-content: flex-start;
    height: auto;
    padding: 0.85rem 0.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header--preview .nav a::after {
    display: none;
  }

  .header--preview .header__actions {
    background: transparent;
    padding-right: 0.75rem;
  }

  .hero--preview {
    min-height: 100svh;
    place-items: center;
    align-content: center;
  }

  .hero--preview .hero__bg--brand {
    position: absolute;
    inset: 0;
    background:
      url("/images/hero/hero-photo-mobile.jpg?v=6") center 48% / cover no-repeat;
  }

  .hero--preview .hero__overlay {
    display: block;
    background: radial-gradient(
      ellipse 78% 55% at 50% 48%,
      rgba(10, 16, 36, 0.46) 0%,
      rgba(10, 16, 36, 0.22) 55%,
      transparent 82%
    );
  }

  .hero--preview .hero__content {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 0 1.1rem;
    background: none;
  }

  .hero__logo {
    margin-bottom: 0.6rem;
  }

  .hero__logo img {
    width: min(240px, 68vw);
  }

  .hero__rule {
    margin-bottom: 1rem;
  }

  .hero--preview h1 {
    max-width: 18ch;
    margin: 0 auto 1.35rem;
    font-size: clamp(1.2rem, 4.8vw, 1.45rem);
    line-height: 1.28;
  }

  .hero--preview .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
  }

  .hero--preview .hero__actions .btn {
    width: auto;
    min-width: 0;
    padding: 0.85rem 1.15rem;
  }

  .hero--preview .btn--ghost {
    background: rgba(15, 12, 48, 0.35);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
  }

  .to-top {
    left: 10px;
    bottom: 16px;
  }
}
