/* ===== CSS Variables ===== */
:root {
  --color-black: #01040a;
  --color-white: #ffffff;
  --color-gray-50: #fafafa;
  --color-gray-100: #f5f5f5;
  --color-gray-200: #e5e5e5;
  --color-gray-300: #d4d4d4;
  --color-gray-400: #a3a3a3;
  --color-gray-500: #737373;
  --color-gray-600: #525252;
  --color-gray-700: #404040;
  --color-gray-800: #262626;
  --color-gray-900: #171717;

  --color-peach: #f4c8a5;
  --color-blue: #a5c8e8;
  --color-blue-light: #d4e4f4;

  --font-family: 'Albert Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --page-bg: #ffffff;
  --hero-card-bg: #f2f2f2;
  --container-max: 1440px;
  --container-padding: 20px;

  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-hero-card: 32px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-black);
  background: var(--page-bg);
  overflow-x: hidden;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.2;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius-sm);
}

.btn-primary:hover {
  background: var(--color-gray-800);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-sm {
  padding: 12px 24px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 500;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 20px;
  width: auto;
  display: block;
}

.logo-img-light {
  filter: brightness(0) invert(1);
}

/* ===== Sticky Header (hidden by default, shows on scroll) ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transform: translateY(-100%);
  transition: transform var(--transition-base);
}

.header.visible {
  transform: translateY(0);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* App auth links (home header + hero nav) */
.nav-auth {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 12px;
}

.nav-auth-link {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 16px;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.nav-auth-link--login {
  color: #01040a;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.nav-auth-link--login:hover {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.nav-auth-link--signup {
  color: #fff;
  background: #01040a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.nav-auth-link--signup:hover {
  background: #1a1d24;
}

@media (max-width: 480px) {
  .nav-auth-link {
    font-size: 13px;
    padding: 8px 12px;
  }
}

/* ==========================================================
   HERO SECTION
   ========================================================== */
.hero {
  padding: 40px 0 0;
  position: relative;
  background-image: url('Images/HERO BG.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  min-height: 60vh;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-card {
  background: var(--hero-card-bg);
  border-radius: var(--radius-hero-card);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Nav inside hero card */
.hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
}

/* Hero body: text left, phone right */
.hero-body {
  display: flex;
  flex-direction: column;
  padding: 0 24px 40px;
  gap: 40px;
  padding-top: 40px;
}

/* Mobile: больше отступ от хедера до заголовка, изображение прижато к правому краю */
@media (max-width: 767px) {
  .hero-body {
    padding-top: 48px;
    padding-right: 0;
    padding-bottom: 0;
  }

  .hero-content {
    padding-right: 24px;
    padding-bottom: 40px;
  }

  .hero-card {
    overflow: visible;
  }

  .hero-phone {
    justify-content: flex-end;
    margin-right: calc(-1 * var(--container-padding));
    margin-bottom: 0;
  }

  .hero-image-img {
    max-width: 85%;
    object-position: right bottom;
  }
}

.hero-content {
  flex: 1;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 32px;
  animation: fadeInUp 0.7s ease forwards;
}

/* Asterisk with tooltip */
.asterisk-wrap {
  position: relative;
  display: inline;
}

.asterisk {
  font-size: 0.35em;
  vertical-align: super;
  color: var(--color-gray-400);
  cursor: default;
  line-height: 1;
  margin-left: 1px;
}

.asterisk-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-black);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  width: max-content;
  max-width: 260px;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

.asterisk-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-black);
}

.asterisk-wrap:hover .asterisk-tooltip {
  opacity: 1;
  visibility: visible;
}

.hero-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
  animation: fadeInUp 0.7s ease 0.1s forwards;
  opacity: 0;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-gray-700);
}

.check-icon {
  width: 24px;
  height: 24px;
  color: var(--color-black);
  flex-shrink: 0;
}

/* CTA row: button + note side by side */
.hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeInUp 0.7s ease 0.2s forwards;
  opacity: 0;
}

.hero-note {
  font-size: 13px;
  color: var(--color-gray-500);
  line-height: 1.5;
  max-width: 220px;
}

/* Hero image (phone + hand mockup) — Figma placement */
.hero-phone {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  animation: fadeInUp 0.7s ease 0.3s forwards;
  opacity: 0;
}

.hero-image-img {
  width: 100%;
  max-width: 340px;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

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

/* ==========================================================
   ADVANTAGES SECTION
   ========================================================== */
.advantages {
  padding-top: 160px;
  padding-bottom: 80px;
  background: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
}

@media (max-width: 767px) {
  .section-title {
    text-align-last: center;
  }
}

/* Region Roller — vertical-align:top + same line-height ensures identical text position */
.region-roller {
  display: inline-block;
  overflow: hidden;
  height: 1.2em;
  vertical-align: top;
  line-height: 1.2;
  text-align: left;
}

.region-track {
  display: block;
  animation: roll 6s ease-in-out infinite;
}

.region {
  display: block;
  height: 1.2em;
  line-height: 1.2;
  color: var(--color-gray-400);
  font-weight: 700;
}

@keyframes roll {
  0%,
  18% {
    transform: translateY(0);
  }
  22%,
  38% {
    transform: translateY(-1.2em);
  }
  42%,
  58% {
    transform: translateY(-2.4em);
  }
  62%,
  78% {
    transform: translateY(-3.6em);
  }
  82%,
  100% {
    transform: translateY(-4.8em);
  }
}

/* Bento Grid */
.bento-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.bento-card {
  background: #f2f2f2;
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-card-vault {
  background: #fff;
  border: 1px solid #d9d9da;
}

.bento-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.bento-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  /* Иконки из папки Icons с белым stroke — делаем тёмными на светлом фоне */
  filter: brightness(0);
}

.bento-icon svg {
  width: 40px;
  height: 40px;
}

.bento-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.bento-card-wide h3 {
  font-size: 32px;
}

.bento-card p {
  font-size: 14px;
  color: var(--color-gray-500);
  line-height: 1.6;
}

/* Currency badges */
.currency-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.currency-badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-white);
  background: var(--color-black);
  border-radius: 6px;
  letter-spacing: 0.02em;
}

/* Flag images */
.flag-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.flag-img {
  width: 36px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
}

/* Card visual (Visa card) */
/* Карточка выходит за нижний и правый край блока */

.card-visual {
  transform: rotate(-24deg) translate(-100px, 0px);
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  min-height: 100px;
}

.card-visual .card-image {
  width: 220px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  transform: rotate(6deg) translate(15px, 20px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Coming soon badge */
.bento-card-badge {
  position: absolute;
  top: 32px;
  right: 32px;
  padding: 4px 10px;
  background: var(--color-gray-100);
  color: var(--color-gray-600);
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
}

/* ==========================================================
   FAQ SECTION
   ========================================================== */
.faq {
  padding-bottom: 120px;
  padding-top: 80px;
}

.faq-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.faq-heading {
  font-size: clamp(48px, 12vw, 120px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-black);
  margin: 0;
}

.faq-list {
  flex: 1;
}

@media (min-width: 768px) {
  .faq-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 240px;
  }

  .faq-heading {
    flex-shrink: 0;
    position: sticky;
    top: 120px;
  }

  .faq-list {
    flex: 0 1 auto;
    min-width: 0;
  }
}

.faq-item {
  background: #f2f2f2;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-family: var(--font-family);
  font-size: 24px;
  font-weight: 600;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.faq-question:hover {
  background: #e8e8e8;
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--color-gray-600);
  line-height: 1.7;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  padding: 12px;
}

.footer .container {
  background: var(--color-black);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 24px 24px;
}

/* Top: brand + link columns */
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--color-gray-400);
  max-width: 280px;
  line-height: 1.5;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--color-gray-400);
  background: var(--color-gray-800);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.footer-social a:hover {
  color: var(--color-white);
  background: var(--color-gray-700);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-column h4 {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-column a {
  display: block;
  font-size: 14px;
  color: var(--color-gray-300);
  margin-bottom: 6px;
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--color-white);
}

.footer-address {
  font-size: 13px;
  color: var(--color-gray-500);
  line-height: 1.5;
  margin-top: 4px;
}

/* Disclaimer block */
.footer-disclaimer {
  padding: 20px 0;
  border-top: 1px solid var(--color-gray-800);
  border-bottom: 1px solid var(--color-gray-800);
  margin-bottom: 20px;
}

.footer-disclaimer p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--color-gray-600);
  margin-bottom: 8px;
}

.footer-disclaimer p:last-child {
  margin-bottom: 0;
}

.footer-disclaimer a {
  color: var(--color-gray-400);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.footer-disclaimer a:hover {
  color: var(--color-white);
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--color-gray-500);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a {
  font-size: 12px;
  color: var(--color-gray-500);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--color-white);
}

/* ==========================================================
   MODAL (Request access)
   ========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 4, 10, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 400px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  transform: scale(0.96);
  transition: transform var(--transition-base);
}

.modal-overlay.is-open .modal {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  color: var(--color-gray-500);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-black);
  background: var(--color-gray-100);
}

.modal-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-right: 36px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gray-700);
}

.modal-optional {
  font-weight: 400;
  color: var(--color-gray-400);
  font-size: 12px;
}

.modal-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-family);
  font-size: 16px;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  color: var(--color-black);
  background: var(--color-white);
  transition: border-color var(--transition-fast);
}

.modal-input::placeholder {
  color: var(--color-gray-400);
}

.modal-input:focus {
  outline: none;
  border-color: var(--color-black);
}

.modal-submit {
  width: 100%;
  margin-top: 8px;
}

/* Toast (top center) */
.toast-container {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  max-width: min(360px, calc(100vw - 32px));
  white-space: normal;
  animation: toastIn 0.3s ease;
}

.toast-success {
  background: #15803d;
  color: var(--color-white);
}

.toast-success .toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal: body scroll lock on open */
body.modal-open {
  overflow: hidden;
}

/* ==========================================================
   TABLET (640px+)
   ========================================================== */
@media (min-width: 640px) {
  :root {
    --container-padding: 32px;
  }

  .hero-nav {
    padding: 24px 32px 24px;
  }

  .hero-body {
    padding: 48px 32px 0;
    min-height: 420px;
    justify-content: space-between;
  }

  .hero-content {
    padding-bottom: 40px;
  }

  .hero-phone {
    margin-top: auto;
    align-items: flex-end;
  }

  .hero-title {
    font-size: 44px;
  }

  .hero-cta-row {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

  .bento-row-bottom {
    flex-direction: row;
  }

  .bento-row-bottom .bento-card {
    flex: 1;
  }

  .footer .container {
    padding: 32px 28px 24px;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ==========================================================
   DESKTOP (1024px+)
   ========================================================== */
@media (min-width: 1024px) {
  :root {
    --container-padding: 64px;
  }

  .hero-nav {
    padding: 32px 56px 24px;
  }

  .hero-body {
    flex: 1;
    flex-direction: row;
    align-items: stretch;
    padding: 48px 56px 0;
    gap: 40px;
    min-height: 540px;
  }

  .hero-content {
    flex: 1;
    padding-bottom: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-title {
    font-size: 54px;
  }

  .hero-phone {
    flex: 0 0 auto;
    align-self: flex-end;
    display: flex;
    align-items: flex-end;
    margin-top: 0;
  }

  .hero-image-img {
    max-width: 500px;
    object-position: center bottom;
    display: block;
  }

  .bento-row {
    flex-direction: row;
    gap: 20px;
    margin-bottom: 20px;
  }

  .bento-card-wide {
    flex: 2;
  }

  .bento-card-narrow {
    flex: 1;
  }

  .bento-row-bottom .bento-card {
    flex: 1;
  }

  .bento-card {
    padding: 36px;
    min-height: 340px;
  }

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
  }

  .footer-links {
    gap: 48px;
  }

  .footer .container {
    padding: 40px 48px 28px;
  }
}

/* ==========================================================
   LARGE DESKTOP (1280px+)
   ========================================================== */
@media (min-width: 1280px) {
  .hero-body {
    min-height: 600px;
    gap: 60px;
  }

  .hero-title {
    font-size: 60px;
    max-width: 580px;
  }

  .hero-image-img {
    max-width: 600px;
  }

  .bento-card {
    min-height: 360px;
  }

  .bento-card h3 {
    font-size: 22px;
  }

  .bento-card-wide h3 {
    font-size: 32px;
  }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
