/* PayFlow — лендинг и личный кабинет */
:root {
  --bg: #070b10;
  --bg-soft: #0a1017;
  --bg-elev: #0e151d;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9eef5;
  --muted: #94a1b2;
  --dim: #6b7889;
  --lime: #c9f45a;
  --lime-strong: #b3ea2f;
  --lime-soft: rgba(201, 244, 90, 0.12);
  --teal: #5eead4;
  --orange: #ffb35c;
  --red: #ff8080;
  --radius: 18px;
  --radius-lg: 26px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.38);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, p, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--lime);
  color: #0a1007;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  inset-inline-start: 20px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--lime);
  color: #0a1007;
  border-radius: 10px;
  font-weight: 700;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 14px;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}

.site-header.is-scrolled {
  background: rgba(7, 11, 16, 0.82);
  border-bottom-color: var(--border);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 19px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--lime);
  color: #0a1007;
  flex: none;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

.nav {
  display: flex;
  gap: 26px;
  margin-inline-start: 12px;
  font-size: 14.5px;
  color: var(--muted);
}

.nav a {
  transition: color 0.15s;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-inline-start: auto;
}

.link-quiet {
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.15s;
}

.link-quiet:hover {
  color: var(--text);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--lime);
  color: #0b1207;
  box-shadow: 0 10px 30px rgba(201, 244, 90, 0.16);
}

.btn-primary:hover {
  background: #d6ff6f;
  box-shadow: 0 12px 36px rgba(201, 244, 90, 0.26);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.26);
}

.btn-sm {
  padding: 10px 17px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 26px;
  font-size: 15.5px;
}

.btn-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-block {
  width: 100%;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 78px) 0 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -280px;
  right: -160px;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(201, 244, 90, 0.14), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 160px;
  left: -260px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.1), transparent 64%);
  pointer-events: none;
}

.hero-grid-bg {
  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: 72px 72px;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 40px;
  align-items: center;
  padding-bottom: 84px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.hero h1 {
  font-size: clamp(42px, 5.4vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
}

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

.hero-lead {
  margin-top: 24px;
  max-width: 520px;
  font-size: clamp(16px, 1.35vw, 18px);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  font-size: 13.5px;
  color: var(--dim);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-points svg {
  width: 15px;
  height: 15px;
  color: var(--lime);
}

/* match stack */

.hero-visual {
  position: relative;
  min-height: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.match-stack {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 460px;
}

.match-card {
  position: absolute;
  width: 330px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(155deg, #141d27, #0b1219 70%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.match-card--back {
  top: 26px;
  right: 0;
  transform: rotate(7deg) scale(0.88);
  opacity: 0.5;
  animation: float 9s ease-in-out infinite;
}

.match-card--mid {
  top: 132px;
  left: -6px;
  transform: rotate(-5deg) scale(0.94);
  opacity: 0.78;
  animation: float 8s ease-in-out infinite 0.6s;
}

.match-card--front {
  top: 242px;
  left: 34px;
  transform: rotate(1.5deg);
  border-color: rgba(201, 244, 90, 0.32);
  animation: float 7s ease-in-out infinite 0.3s;
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.mc-ribbon {
  position: absolute;
  top: -12px;
  inset-inline-end: 18px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--lime);
  color: #0b1207;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.mc-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mc-logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 16px;
  color: var(--lime);
  flex: none;
}

.mc-head div {
  min-width: 0;
}

.mc-head strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.mc-head span {
  display: block;
  font-size: 12px;
  color: var(--dim);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mc-percent {
  margin-inline-start: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--lime);
  background: var(--lime-soft);
  border-radius: 8px;
  padding: 4px 8px;
}

.mc-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}

.mc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag {
  font-size: 11.5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
  white-space: nowrap;
}

.tag-lime {
  border-color: rgba(201, 244, 90, 0.35);
  background: var(--lime-soft);
  color: var(--lime);
}

.mc-status {
  position: absolute;
  bottom: 0;
  inset-inline-end: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--dim);
  background: rgba(10, 16, 23, 0.8);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 13px;
  backdrop-filter: blur(8px);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}

/* ticker */

.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 15px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 48s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  font-size: 13px;
  color: var(--dim);
  white-space: nowrap;
}

.ticker-item::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(201, 244, 90, 0.4);
  margin-inline-start: 12px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section {
  padding: 108px 0;
}

.section-head {
  max-width: 660px;
  margin-bottom: 46px;
}

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin-top: 12px;
}

.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
}

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}

.section-head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-head--row > div:first-child {
  max-width: 640px;
}

.catalog-count {
  flex: none;
  font-size: 13px;
  color: var(--dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
}

.catalog-count span {
  color: var(--text);
  font-weight: 600;
}

/* stats band */

.stats-band {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 34px 28px;
  border-inline-start: 1px solid var(--border);
}

.stat:first-child {
  border-inline-start: 0;
  padding-inline-start: 0;
}

.stat strong {
  display: block;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.stat span {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--dim);
}

/* steps */

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

.step-card {
  position: relative;
  padding: 28px 24px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
  overflow: hidden;
}

.step-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 244, 90, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.step-card:hover::after {
  opacity: 1;
}

.step-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--lime);
  letter-spacing: 0.08em;
}

.step-card h3 {
  margin-top: 18px;
  font-size: 20px;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.step-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- catalog ---------- */

.section--catalog {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.search-field {
  position: relative;
  flex: 1 1 280px;
  max-width: 380px;
}

.search-field svg {
  position: absolute;
  inset-inline-start: 15px;
  top: 50%;
  translate: 0 -50%;
  width: 18px;
  height: 18px;
  color: var(--dim);
}

.search-field input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.15s, background 0.15s;
}

.search-field input::placeholder {
  color: var(--dim);
}

.search-field input:focus {
  outline: none;
  border-color: rgba(201, 244, 90, 0.45);
  background: rgba(255, 255, 255, 0.055);
}

.select-field select {
  height: 46px;
  padding-block: 0;
  padding-inline: 14px 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' stroke='%2394a1b2' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--text);
  font-size: 14px;
  appearance: none;
  min-width: 190px;
}

.select-field select:focus {
  outline: none;
  border-color: rgba(201, 244, 90, 0.45);
}

.chip-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  transition: all 0.15s;
}

.chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.chip.is-active {
  background: var(--lime);
  border-color: var(--lime);
  color: #0b1207;
  font-weight: 600;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.method-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.method-card:hover {
  border-color: rgba(201, 244, 90, 0.32);
  transform: translateY(-2px);
  background: linear-gradient(170deg, rgba(201, 244, 90, 0.07), rgba(255, 255, 255, 0.012));
}

.mc-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.mc-name {
  min-width: 0;
}

.mc-name strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-name span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.geo-pill {
  margin-inline-start: auto;
  flex: none;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.method-line {
  font-size: 13.5px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 41px;
}

.method-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--dim);
}

.method-rate {
  color: var(--text);
  font-weight: 600;
  font-size: 13.5px;
}

.method-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--dim);
}

.method-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.mini-badge {
  font-size: 10.5px;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--dim);
}

.mini-badge--green {
  color: var(--teal);
  border-color: rgba(94, 234, 212, 0.25);
  background: rgba(94, 234, 212, 0.07);
}

.catalog-empty {
  grid-column: 1 / -1;
  padding: 48px;
  text-align: center;
  color: var(--dim);
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
}

.catalog-more {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

/* ---------- geo ---------- */

.section--geo {
  padding-top: 96px;
}

.geo-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 60px;
  align-items: center;
}

.geo-copy .kicker {
  margin-bottom: 12px;
  display: inline-block;
}

.geo-copy h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
}

.geo-copy p {
  margin-top: 18px;
  color: var(--muted);
  max-width: 460px;
}

.geo-highlights {
  display: flex;
  gap: 34px;
  margin-top: 34px;
}

.geo-highlights strong {
  display: block;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.geo-highlights span {
  font-size: 12.5px;
  color: var(--dim);
}

.geo-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-start;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 30% 20%, rgba(201, 244, 90, 0.07), transparent 55%), var(--surface);
}

.geo-chip {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  color: var(--muted);
  transition: all 0.15s;
}

.geo-chip:hover {
  color: var(--text);
  border-color: rgba(201, 244, 90, 0.4);
  background: var(--lime-soft);
}

.geo-chip--more {
  color: var(--lime);
  border-color: rgba(201, 244, 90, 0.3);
  background: var(--lime-soft);
}

/* ---------- benefits ---------- */

.section--benefits {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.benefit {
  padding: 26px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.benefit-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--lime-soft);
  color: var(--lime);
  margin-bottom: 18px;
}

.benefit-icon svg {
  width: 22px;
  height: 22px;
}

.benefit h3 {
  font-size: 17px;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.benefit p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- faq ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 60px;
  align-items: start;
}

.faq-layout .section-head {
  margin-bottom: 0;
  position: sticky;
  top: 100px;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.25s, background 0.25s, color 0.25s;
}

.faq-item[open] summary::after {
  content: "−";
  background: var(--lime);
  border-color: var(--lime);
  color: #0b1207;
}

.faq-body {
  padding: 0 44px 22px 4px;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- apply / form ---------- */

.section--apply {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(201, 244, 90, 0.09), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(94, 234, 212, 0.07), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--border);
}

.apply-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 60px;
  align-items: start;
}

.apply-copy {
  position: sticky;
  top: 110px;
}

.apply-copy h2 {
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin-top: 12px;
}

.apply-copy > p {
  margin-top: 18px;
  color: var(--muted);
  max-width: 420px;
}

.apply-points {
  margin-top: 30px;
  display: grid;
  gap: 12px;
}

.apply-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--muted);
}

.apply-points span {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--lime-soft);
  border: 1px solid rgba(201, 244, 90, 0.25);
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--mono);
}

.apply-note {
  margin-top: 34px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  font-size: 13.5px;
  color: var(--dim);
}

.apply-note strong {
  color: var(--text);
  font-weight: 600;
}

.apply-note a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-card {
  position: relative;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #f6f8f0, #e9eee0);
  color: #101a14;
  box-shadow: var(--shadow-lg);
}

.form-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
}

.fp-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #7d8a76;
  transition: color 0.2s;
}

.fp-step span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #cfd7c6;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  transition: all 0.2s;
}

.fp-step em {
  font-style: normal;
}

.fp-step.is-active {
  color: #101a14;
  font-weight: 600;
}

.fp-step.is-active span {
  background: #101a14;
  border-color: #101a14;
  color: var(--lime);
}

.fp-step.is-done span {
  background: var(--lime);
  border-color: var(--lime);
  color: #101a14;
}

.fp-line {
  flex: 1;
  height: 1px;
  background: #d3dac8;
  min-width: 8px;
}

.form-step {
  display: none;
}

.form-step.is-active {
  display: block;
  animation: stepIn 0.28s ease;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.form-title {
  font-size: 21px;
  letter-spacing: -0.02em;
  font-weight: 650;
  margin-bottom: 20px;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #3c4638;
  margin-bottom: 7px;
}

.field-label b {
  color: #b23b2e;
  font-weight: 600;
}

.field-hint {
  color: #8b967f;
  font-weight: 400;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid #d3dac8;
  background: #fff;
  color: #101a14;
  font-size: 14.5px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
  resize: vertical;
  min-height: 78px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9aa58f;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: #101a14;
  box-shadow: 0 0 0 3px rgba(16, 26, 20, 0.08);
}

.field.has-error input,
.field.has-error textarea {
  border-color: #c8493a;
  background: #fff7f5;
}

.field-error {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #b23b2e;
  min-height: 0;
}

.field-error:empty {
  display: none;
}

.form-error {
  margin-top: 10px;
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.option-grid {
  display: grid;
  gap: 8px;
}

.option-grid--2 { grid-template-columns: repeat(2, 1fr); }
.option-grid--3 { grid-template-columns: repeat(3, 1fr); }
.option-grid--4 { grid-template-columns: repeat(4, 1fr); }

.option {
  position: relative;
  display: block;
  cursor: pointer;
}

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

.option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d3dac8;
  border-radius: 11px;
  background: #fff;
  font-size: 13.5px;
  color: #2b3527;
  text-align: center;
  transition: all 0.15s;
}

.option:hover span {
  border-color: #a9b59c;
}

.option input:checked + span {
  background: #101a14;
  border-color: #101a14;
  color: #f4f7ec;
  font-weight: 600;
}

.option input:focus-visible + span {
  outline: 2px solid #101a14;
  outline-offset: 2px;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.check-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid #d3dac8;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.check-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-box {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 6px;
  border: 1.5px solid #b9c3ae;
  background: #fff;
  display: grid;
  place-items: center;
  transition: all 0.15s;
}

.check-box::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #101a14;
  border-bottom: 2px solid #101a14;
  rotate: -45deg;
  opacity: 0;
  translate: 0 -1px;
}

.check-card input:checked + .check-box {
  background: var(--lime);
  border-color: var(--lime);
}

.check-card input:checked + .check-box::after {
  opacity: 1;
}

.check-card:has(input:checked) {
  border-color: #101a14;
  background: #fbfdf6;
}

.check-card strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1a2416;
}

.check-card em {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  color: #7d8a76;
  margin-top: 1px;
}

.chip-group--wrap {
  gap: 6px;
}

.currency-chip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.currency-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.currency-chip span {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #d3dac8;
  border-radius: 9px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  color: #404b3b;
  transition: all 0.15s;
}

.currency-chip input:checked + span {
  background: #101a14;
  border-color: #101a14;
  color: var(--lime);
}

.form-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 14px;
}

.summary-chip {
  font-size: 11.5px;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(16, 26, 20, 0.06);
  color: #3c4638;
}

.summary-chip b {
  font-weight: 600;
  color: #101a14;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: #5a6654;
  cursor: pointer;
  line-height: 1.45;
}

.consent input {
  margin: 2px 0 0;
  width: 16px;
  height: 16px;
  accent-color: #101a14;
  flex: none;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.form-actions .btn {
  padding: 13px 22px;
}

.form-actions .btn-ghost {
  border-color: #c3ccb7;
  color: #101a14;
}

.form-actions .btn-ghost:hover {
  background: rgba(16, 26, 20, 0.06);
  border-color: #101a14;
}

.form-actions .btn-primary {
  background: #101a14;
  color: #f4f7ec;
  box-shadow: none;
  margin-inline-start: auto;
}

.form-actions .btn-primary:hover {
  background: #1d2b1c;
  box-shadow: 0 8px 24px rgba(16, 26, 20, 0.18);
}

.form-legal {
  margin-top: 14px;
  font-size: 11.5px;
  color: #8b967f;
  line-height: 1.45;
}

.form-success {
  text-align: center;
  padding: 26px 10px 18px;
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  color: #2f6b2a;
}

.form-success h3 {
  font-size: 26px;
  letter-spacing: -0.03em;
  font-weight: 650;
}

.form-success p {
  margin-top: 10px;
  color: #4a5545;
  font-size: 14.5px;
}

.form-success .success-hint {
  font-size: 12.5px;
  color: #7d8a76;
  margin-top: 8px;
}

.form-success .btn {
  margin-top: 20px;
  background: #101a14;
  color: #f4f7ec;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 64px 0 26px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 300px;
  font-size: 13.5px;
  color: var(--dim);
}

.footer-col h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.15s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--dim);
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  translate: -50% 20px;
  z-index: 90;
  padding: 12px 18px;
  border-radius: 12px;
  background: #f4f7ec;
  color: #101a14;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, translate 0.2s;
  max-width: min(90vw, 460px);
}

.toast.is-visible {
  opacity: 1;
  translate: -50% 0;
}

.toast.is-error {
  background: #ffd9d4;
  color: #7b1f15;
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .match-stack {
    max-width: 480px;
    margin-inline: auto;
  }

  .steps,
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .geo-layout,
  .faq-layout,
  .apply-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .faq-layout .section-head,
  .apply-copy {
    position: static;
  }

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

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }

  .container {
    width: min(1180px, calc(100% - 32px));
  }

  .nav,
  .link-quiet {
    display: none;
  }

  .header-actions .btn {
    padding: 9px 14px;
    font-size: 13px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 48px);
  }

  .hero-inner {
    padding-bottom: 54px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-visual {
    min-height: auto;
  }

  .match-stack {
    height: auto;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding-top: 8px;
  }

  .match-card {
    width: min(300px, 86vw);
  }

  .match-card--back,
  .match-card--mid {
    display: none;
  }

  .match-card--front {
    position: static;
    animation: none;
    margin: 0;
  }

  .mc-status {
    position: static;
    margin-inline: auto;
    bottom: auto;
    inset-inline-end: auto;
  }

  .section {
    padding: 72px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: 22px 18px;
  }

  .stat:nth-child(odd) {
    border-inline-start: 0;
    padding-inline-start: 0;
  }

  .stats-grid .stat:nth-child(3),
  .stats-grid .stat:nth-child(4) {
    border-top: 1px solid var(--border);
  }

  .steps,
  .benefit-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .section-head--row {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .catalog-controls {
    align-items: stretch;
  }

  .search-field {
    max-width: none;
  }

  .select-field select {
    width: 100%;
  }

  .chip-group {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .form-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .fp-step em {
    display: none;
  }

  .fp-step span {
    width: 24px;
    height: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .check-grid {
    grid-template-columns: 1fr;
  }

  .option-grid--3,
  .option-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

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

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

/* ---------- флаги и гео ---------- */
.flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
  vertical-align: -1px;
  flex: none;
}

.mc-head div span.mc-geo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mc-head div span.mc-geo .flag {
  width: 14px;
  height: 10px;
}

.geo-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.geo-pill .flag {
  width: 15px;
  height: 10px;
}

.geo-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.geo-chip .flag {
  width: 16px;
  height: 11px;
}

.catalog-controls .select-field {
  flex: 0 0 auto;
}

/* ---------- глобус ---------- */
.globe-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}

#globeCanvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  border-radius: 50%;
}

.globe-tooltip {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(201, 244, 90, 0.35);
  background: rgba(8, 13, 18, 0.94);
  color: var(--text);
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

.globe-hint {
  position: absolute;
  left: 50%;
  bottom: 2px;
  translate: -50% 0;
  font-size: 11.5px;
  color: var(--dim);
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .globe-wrap { max-width: 330px; }
  .globe-hint { white-space: normal; width: 100%; font-size: 10.5px; }
}

/* ---------- бегущая строка: две ленты ---------- */
.ticker {
  padding: 0;
}

.ticker-track {
  padding: 11px 0;
  animation-duration: 46s;
}

.ticker-track + .ticker-track {
  border-top: 1px solid var(--border);
  animation-direction: reverse;
  animation-duration: 62s;
}

.ticker-item--country {
  color: var(--muted);
  gap: 8px;
}

.ticker-item--country .flag {
  width: 18px;
  height: 12px;
  margin-inline-end: 1px;
}
/* ---------- новый знак (orbit) и фильтры ---------- */
.brand-mark {
  background: transparent;
  padding: 0;
  border-radius: 12px;
}

.brand-mark svg {
  width: 34px;
  height: 34px;
}

.select-field select {
  color-scheme: dark;
}

.select-field option {
  background-color: #0b1118;
  color: #e9eef5;
}
/* ---------- переключатель языка ---------- */
.lang-switch {
  position: relative;
  flex: none;
}

.lang-switch summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.lang-switch summary::-webkit-details-marker {
  display: none;
}

.lang-switch summary:hover,
.lang-switch[open] summary {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.26);
  background: var(--surface-2);
}

.lang-switch summary:focus-visible,
.lang-menu a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.lang-switch .flag {
  width: 20px;
  height: 14px;
  border-radius: 3px;
}

.lang-switch-caret {
  width: 10px;
  height: 7px;
  transition: rotate 0.2s;
}

.lang-switch[open] .lang-switch-caret {
  rotate: 180deg;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 60;
  min-width: 196px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(10, 16, 23, 0.98);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.lang-menu a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.lang-menu a.is-current {
  color: var(--text);
  background: var(--lime-soft);
}

.lang-menu a.is-current::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-inline-start: auto;
  border-radius: 50%;
  background: var(--lime);
}

.auth-lang {
  position: fixed;
  top: 18px;
  inset-inline-end: 20px;
  z-index: 20;
}

/* em используется как обёртка текста рядом с иконками — без курсива */
.apply-points em,
.app-stats em,
.cab-loader em {
  font-style: normal;
}

@media (max-width: 560px) {
  .header-inner {
    gap: 12px;
  }

  .header-actions {
    gap: 10px;
    min-width: 0;
  }

  .header-actions .btn {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .lang-switch summary {
    height: 34px;
    padding: 0 9px;
    gap: 5px;
  }

  .lang-switch-code {
    display: none;
  }
}

/* ---------- шрифты и типографика для не-кириллических письменностей ---------- */
html[lang="zh-CN"] {
  --font: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "WenQuanYi Zen Hei", system-ui, sans-serif;
}

html[lang="hi"] {
  --font: "Inter", "Noto Sans Devanagari", "Nirmala UI", "Mangal", "Kohinoor Devanagari", system-ui, sans-serif;
}

html[lang="ar"] {
  --font: "Inter", "Noto Sans Arabic", "Segoe UI", "Geeza Pro", "Tahoma", system-ui, sans-serif;
}

html[lang="ur"] {
  --font: "Inter", "Noto Naskh Arabic", "Noto Sans Arabic", "Segoe UI", "Geeza Pro", "Tahoma", system-ui, sans-serif;
}

/* отрицательный трекинг и разрядка ломают арабскую вязь и деванагари */
html[lang="ar"] *,
html[lang="ur"] *,
html[lang="hi"] *,
html[lang="zh-CN"] * {
  letter-spacing: 0 !important;
}

html[lang="ar"] body,
html[lang="ur"] body,
html[lang="hi"] body {
  line-height: 1.7;
}

html[lang="ar"] h1,
html[lang="ur"] h1,
html[lang="hi"] h1,
html[lang="ar"] h2,
html[lang="ur"] h2,
html[lang="hi"] h2 {
  line-height: 1.3;
}

/* ---------- RTL ---------- */
[dir="rtl"] .btn-arrow,
[dir="rtl"] .back-arrow,
[dir="rtl"] .ext-arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .btn:hover .btn-arrow {
  transform: scaleX(-1) translateX(3px);
}

[dir="rtl"] .back-arrow {
  display: inline-block;
}

/* бегущая строка анимируется сдвигом влево — оставляем ей LTR-поток */
[dir="rtl"] .ticker {
  direction: ltr;
}

[dir="rtl"] .ticker-item {
  unicode-bidi: isolate;
}

[dir="rtl"] .select-field select {
  background-position: left 14px center;
}

[dir="rtl"] .kicker {
  text-transform: none;
}

/* карточки каталога не должны растягивать колонку длинной строкой методов (видно в RTL на 390px) */
.catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.method-card,
.method-line {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 1080px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .catalog-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------- баннер cookie (shared/consent.js) ---------------- */

.cookie-banner {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 16px 24px;
  max-width: 880px;
  margin-inline: auto;
  padding: 16px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { margin: 0; flex: 1; color: var(--muted); }
.cookie-banner__text a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner__actions .btn { min-width: 150px; justify-content: center; }

@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; inset-inline: 12px; bottom: 12px; }
  .cookie-banner__actions .btn { flex: 1; min-width: 0; }
}

.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.footer-legal a,
.footer-legal button { color: inherit; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.footer-legal a:hover,
.footer-legal button:hover { color: var(--text); }
.footer-legal [hidden] { display: none; }
.form-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
