/* ===== Переменные / тема «Золото пустыни» (Duna) ===== */
:root {
  --bg: #efe5d0;            /* тёплый кремовый песок */
  --bg-soft: #f5eddc;
  --surface: #fbf6ec;       /* светлая поверхность карточек */
  --surface-2: #f1e6cd;
  --border: #e0cfa6;        /* мягкая золотисто-песочная рамка */
  --text: #3d2f17;          /* глубокий тёплый коричневый */
  --muted: #8a7551;         /* приглушённый таупе-песок */
  --accent: #c2922f;        /* благородное золото */
  --accent-2: #a06a23;      /* бронза / тёмное золото */
  --accent-grad: linear-gradient(120deg, #e6c25c, #b8860b);
  --sun: #f0d585;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1160px;
  --shadow: 0 22px 50px -22px rgba(120, 90, 30, .35);
}

/* ===== Базовое ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent-grad);
  color: #3a2406;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(184, 134, 11, .45);
}
.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn__icon { flex: none; }

/* ===== Хедер ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 237, 220, .8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.logo__mark { display: none; }
.logo__accent { color: var(--accent); }
.logo__text--sm { font-size: 17px; }

.nav { display: flex; gap: 32px; }
.nav__link {
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  transition: color .2s ease;
}
.nav__link:hover { color: var(--text); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero — золотой рассвет над дюнами ===== */
.hero {
  position: relative;
  padding: 90px 0 110px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 78% 6%, rgba(240, 213, 133, .55), transparent 55%),
    linear-gradient(180deg, #f7efdd 0%, var(--bg) 70%);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 70% 25%, #000 0%, transparent 65%);
  opacity: .4;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
/* Солнце */
.hero__glow--1 { width: 360px; height: 360px; background: var(--sun); top: -40px; right: 6%; opacity: .7; }
/* Тёплое золотое марево */
.hero__glow--2 { width: 420px; height: 420px; background: #e3b85a; bottom: -150px; left: -60px; opacity: .4; }

/* Силуэты дюн внизу hero */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 620px;
  z-index: 0;
  pointer-events: none;
  background: url("dunes.svg") bottom center / 100% 100% no-repeat;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 26px;
  box-shadow: 0 4px 14px -8px rgba(120, 90, 30, .35);
}
.badge__flag { font-size: 16px; }

.hero__title {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 22px;
}
.hero__subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 36px;
}
.hero__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero__hint { color: var(--muted); font-size: 14px; }

/* Hero визуал — абстрактная схема платежей */
.hero__visual { display: flex; justify-content: center; }
.scheme {
  position: relative;
  width: min(380px, 80vw);
  aspect-ratio: 1;
}
.scheme__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.scheme__line {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 6 8;
  opacity: .6;
  animation: dash 18s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -200; } }

.scheme__core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 96px; height: 96px;
  border-radius: 24px;
  background: var(--accent-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #3a2406;
  font-size: 17px;
  box-shadow: 0 0 42px rgba(224, 169, 74, .55);
  z-index: 2;
}
.scheme__pulse {
  position: absolute; inset: 0;
  border-radius: 24px;
  border: 2px solid var(--accent);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: .8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.scheme__node {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 2;
  box-shadow: 0 6px 16px -10px rgba(120, 90, 30, .4);
}
.scheme__node--merchant { top: 6%;  left: 2%; }
.scheme__node--bank     { top: 6%;  right: 2%; }
.scheme__node--client   { bottom: 6%; left: 2%; }
.scheme__node--payout   { bottom: 6%; right: 2%; }

/* ===== Секции ===== */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.section__note { text-align: center; color: var(--muted); margin-top: 36px; }
.lead { font-size: 17px; color: var(--muted); }

/* About */
.about {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 50px;
  align-items: center;
}
.about__text .section__title { margin-bottom: 20px; }
.highlight {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.highlight__flag { font-size: 20px; }

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px -20px rgba(120, 90, 30, .5);
}
.stat__num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
}
.stat__label { font-size: 14px; color: var(--muted); }

/* Карточки */
.cards { display: grid; gap: 20px; }
.cards--industries { grid-template-columns: repeat(5, 1fr); }
.cards--solutions  { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 10px 26px -22px rgba(120, 90, 30, .5);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.card--industry { text-align: center; }
.card__icon { font-size: 32px; margin-bottom: 14px; }
.card__title { font-size: 16px; font-weight: 700; }

.card--solution .card__title { margin: 14px 0 10px; font-size: 19px; }
.card__num {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: 8px;
}
.card__text { color: var(--muted); font-size: 15px; }

/* Контакты */
.section--contacts {
  background:
    radial-gradient(circle at 50% 0%, rgba(224, 169, 74, .22), transparent 60%),
    var(--bg-soft);
}
.contacts { text-align: center; max-width: 620px; margin: 0 auto; }
.contacts__lead { margin: 18px 0 34px; }
.copy {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 22px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}
.copy__handle {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  border-bottom: 1px dashed var(--accent);
  padding-bottom: 2px;
}
.copy__hint { font-size: 13px; color: var(--muted); }

/* Футер */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 40px 0 24px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); font-size: 14px; transition: color .2s ease; }
.footer__links a:hover { color: var(--text); }
.footer__contact { color: var(--muted); font-size: 14px; }
.footer__contact a { color: var(--accent); }
.footer__copy {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

/* ===== Анимация появления ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Адаптив ===== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .about { grid-template-columns: 1fr; }
  .cards--industries { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .header__cta { display: none; }
  .burger { display: flex; }

  .nav {
    position: fixed;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    transform: translateY(-120%);
    transition: transform .3s ease;
    z-index: 90;
  }
  .nav.is-open { transform: translateY(0); }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; }

  .section { padding: 64px 0; }
  .hero { padding: 60px 0 80px; }
  .cards--solutions { grid-template-columns: 1fr; }
  .cards--industries { grid-template-columns: repeat(2, 1fr); }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .cards--industries { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
}

/* Доступность: уважать prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
