:root {
  --bg: #030612;
  --panel: rgba(9, 18, 42, 0.78);
  --panel-strong: rgba(12, 23, 52, 0.94);
  --text: #f5f8ff;
  --muted: #a9b7d0;
  --cyan: #21d8ff;
  --blue: #3d7dff;
  --violet: #a855f7;
  --line: rgba(141, 199, 255, 0.22);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: rgba(3, 6, 18, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(33, 216, 255, 0.64);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, rgba(33, 216, 255, 0.22), rgba(168, 85, 247, 0.22));
  box-shadow: 0 0 24px rgba(33, 216, 255, 0.32);
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 6, 18, 0.94) 0%, rgba(3, 6, 18, 0.75) 42%, rgba(3, 6, 18, 0.38) 100%),
    url("../img/hero-payments.png") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-routes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.72;
}

.hero-routes svg {
  width: 100%;
  height: 100%;
  display: block;
}

.routes-lines path {
  fill: none;
  stroke: url(#routeGradient);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 8 18;
  animation: routeFlow 18s linear infinite;
}

.routes-lines path:nth-child(2n) {
  animation-duration: 22s;
  animation-direction: reverse;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent 82%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 120px 0 72px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(44px, 6.6vw, 88px);
  line-height: 0.98;
  font-weight: 800;
  max-width: 850px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4.2vw, 58px);
  line-height: 1.04;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.lead {
  max-width: 680px;
  color: #d5def1;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 36px 0;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(110deg, transparent 8%, rgba(255,255,255,0.42) 45%, transparent 72%);
  transform: translateX(-140%);
  opacity: 0;
  pointer-events: none;
}

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

.btn:hover::before {
  animation: buttonSheen 900ms ease;
}

.btn-primary {
  color: #06101e;
  background: linear-gradient(135deg, var(--cyan), #7c5cff);
  box-shadow: 0 0 30px rgba(33, 216, 255, 0.34);
  animation: softButtonGlow 4.8s ease-in-out infinite;
}

.btn-secondary {
  color: var(--text);
  border-color: rgba(141, 199, 255, 0.34);
  background: rgba(255,255,255,0.04);
}

.btn-secondary:hover {
  border-color: rgba(33, 216, 255, 0.58);
  box-shadow: 0 0 22px rgba(33, 216, 255, 0.16);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
}

.hero-metrics div,
.hero-panel,
.card,
.service-list div,
.timeline div,
.lead-form {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(9, 18, 42, 0.86), rgba(6, 12, 29, 0.72));
  box-shadow: inset 0 0 28px rgba(33, 216, 255, 0.06), 0 0 30px rgba(32, 88, 255, 0.12);
}

.hero-metrics div,
.hero-panel,
.card,
.service-list div,
.timeline div,
.lead-form,
.country-grid span {
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.hero-metrics div {
  padding: 18px;
  border-radius: 8px;
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  margin-bottom: 4px;
  font-size: 20px;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 13px;
}

.hero-panel {
  position: relative;
  align-self: end;
  min-height: 380px;
  padding: 32px;
  border-radius: 8px;
  overflow: hidden;
}

.panel-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.52), transparent 68%);
}

.hero-panel > *:not(.panel-glow) {
  position: relative;
}

.hero-panel p {
  position: relative;
  margin-bottom: 28px;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 800;
}

.hero-panel ul {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  color: #dbe7ff;
  list-style: none;
}

.hero-panel li {
  padding-left: 22px;
  background: linear-gradient(90deg, var(--cyan), var(--violet)) 0 9px / 10px 10px no-repeat;
}

.quick-form {
  display: grid;
  gap: 16px;
}

.quick-form h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.12;
}

.quick-form input[type="text"] {
  min-height: 52px;
}

.quick-form .btn {
  width: 100%;
}

.quick-consent {
  align-items: flex-start;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.quick-consent a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(33, 216, 255, 0.35);
}

.quick-consent a:hover {
  color: #dffbff;
  border-color: rgba(223, 251, 255, 0.7);
}

.quick-message {
  margin-bottom: 0;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-dark {
  width: 100%;
  padding-inline: max(18px, calc((100% - var(--max)) / 2));
  background: radial-gradient(circle at 20% 0%, rgba(33, 216, 255, 0.12), transparent 32%), #050a18;
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.quiz-section {
  padding-top: 84px;
}

.quiz {
  max-width: 980px;
}

.quiz-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(9, 18, 42, 0.9), rgba(6, 12, 29, 0.76));
  box-shadow: inset 0 0 28px rgba(33, 216, 255, 0.06), 0 0 30px rgba(32, 88, 255, 0.12);
}

.quiz-track {
  display: flex;
  transition: transform 460ms cubic-bezier(0.22, 0.85, 0.24, 1);
}

.quiz-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  min-inline-size: 0;
  min-height: 320px;
  margin: 0;
  padding: 40px;
  border: 0;
}

.quiz-card legend {
  margin-bottom: 24px;
  padding: 0;
  color: var(--text);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.08;
}

.quiz-option {
  display: flex;
  margin-bottom: 12px;
  cursor: pointer;
}

.quiz-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quiz-option span {
  width: 100%;
  padding: 18px 20px;
  border: 1px solid rgba(141, 199, 255, 0.22);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
  color: #dbe7ff;
  font-size: 18px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.quiz-option:hover span,
.quiz-option input:checked + span {
  transform: translateY(-1px);
  border-color: rgba(33, 216, 255, 0.62);
  background: rgba(33, 216, 255, 0.09);
  box-shadow: 0 0 24px rgba(33, 216, 255, 0.14);
}

.quiz-field {
  gap: 12px;
}

.quiz-field span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.quiz-consent {
  align-items: flex-start;
  margin: 18px 0 0;
  font-size: 13px;
}

.quiz-error {
  min-height: 20px;
  margin: 14px 0 0;
  color: #ffb86b;
  font-size: 14px;
  font-weight: 700;
}

.quiz-footer {
  display: grid;
  grid-template-columns: 120px minmax(140px, 1fr) 140px;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.quiz-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(141, 199, 255, 0.14);
}

.quiz-progress span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 18px rgba(33, 216, 255, 0.28);
  transition: width 360ms ease;
}

.quiz-submit {
  display: none;
}

.quiz-success-card {
  max-width: 980px;
  min-height: 320px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(9, 18, 42, 0.9), rgba(6, 12, 29, 0.76));
  box-shadow: inset 0 0 28px rgba(33, 216, 255, 0.06), 0 0 30px rgba(32, 88, 255, 0.12);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 360ms ease, transform 360ms ease;
}

.quiz-success-card[hidden] {
  display: block;
  height: 0;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(18px);
  pointer-events: none;
}

.quiz.is-sent {
  height: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.quiz-success-card h3 {
  margin-bottom: 12px;
  font-size: clamp(30px, 3.4vw, 46px);
}

.quiz-success-card p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.quiz.is-first .quiz-prev {
  visibility: hidden;
}

.quiz.is-last .quiz-next {
  display: none;
}

.quiz.is-last .quiz-submit {
  display: inline-flex;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.country-grid span {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 16px 18px;
  border: 1px solid rgba(141, 199, 255, 0.22);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
  font-weight: 700;
}

.flag {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 0 18px rgba(33, 216, 255, 0.14);
  object-fit: cover;
  object-position: center;
  overflow: hidden;
}

.country-grid span:hover,
.card:hover,
.service-list div:hover,
.timeline div:hover,
.hero-metrics div:hover {
  transform: translateY(-3px);
  border-color: rgba(33, 216, 255, 0.46);
  box-shadow: inset 0 0 30px rgba(33, 216, 255, 0.09), 0 0 32px rgba(33, 216, 255, 0.14);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-height: 260px;
  padding: 26px;
  border-radius: 8px;
}

.icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--cyan);
  border: 1px solid rgba(33, 216, 255, 0.5);
  box-shadow: 0 0 22px rgba(33, 216, 255, 0.22);
  font-weight: 800;
}

.card p,
.service-list p,
.timeline p,
.request-copy p {
  color: var(--muted);
  line-height: 1.55;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-list div {
  padding: 32px;
  border-radius: 8px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.timeline div {
  padding: 24px;
  border-radius: 8px;
}

.timeline span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #06101e;
  font-weight: 800;
}

.request-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 48px;
  align-items: start;
}

.lead-form {
  padding: 28px;
  border-radius: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wide {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 8px;
  color: #dbe7ff;
  font-size: 13px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(141, 199, 255, 0.24);
  border-radius: 8px;
  padding: 15px 16px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(33, 216, 255, 0.42);
  border-color: rgba(33, 216, 255, 0.62);
}

.consent {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 20px;
  color: var(--muted);
  font-weight: 500;
}

.consent input {
  width: 18px;
  height: 18px;
}

.form-message {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(33, 216, 255, 0.3);
  border-radius: 8px;
  color: #bff6ff;
  background: rgba(33, 216, 255, 0.08);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes routeFlow {
  to {
    stroke-dashoffset: -260;
  }
}

@keyframes softButtonGlow {
  0%,
  100% {
    box-shadow: 0 0 26px rgba(33, 216, 255, 0.28), 0 0 0 rgba(168, 85, 247, 0);
  }
  50% {
    box-shadow: 0 0 36px rgba(33, 216, 255, 0.42), 0 0 42px rgba(168, 85, 247, 0.22);
  }
}

@keyframes buttonSheen {
  0% {
    opacity: 0;
    transform: translateX(-140%);
  }
  18% {
    opacity: 0.68;
  }
  100% {
    opacity: 0;
    transform: translateX(140%);
  }
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .hero {
    min-height: 0;
  }

  .hero-inner,
  .request-section {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    align-self: stretch;
    min-height: 0;
  }

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

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

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .hero-inner {
    padding-top: 72px;
  }

  .hero-actions,
  .footer {
    flex-direction: column;
  }

  .hero-metrics,
  .cards,
  .timeline,
  .country-grid,
  .service-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

  .section-dark {
    padding-inline: 18px;
  }

  .quiz-card,
  .quiz-success-card {
    padding: 26px;
  }

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

  .quiz.is-first .quiz-prev {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero-routes {
    opacity: 0.35;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
