@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --page: #050810;
  --nav: rgba(8, 12, 22, 0.85);
  --text: #F8FAFC;
  --soft: #CBD5E1;
  --mute: #64748B;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
  --grad: linear-gradient(135deg, #6366F1 0%, #8B5CF6 45%, #3B82F6 100%);
  --grad-text: linear-gradient(135deg, #C4B5FD 0%, #A78BFA 30%, #818CF8 60%, #60A5FA 100%);
  --violet: #8B5CF6;
  --violet-light: #A78BFA;
  --violet-glow: rgba(139, 92, 246, 0.45);
  --indigo: #6366F1;
  --mint: #34D399;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --w: 1180px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-btn: 10px;
  --radius-pill: 999px;
  --radius-card: 16px;
  --tc-gutter: 20px;
  --tc-grid-lines:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  --tc-grid-size: 64px 64px;
}

html {
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: hidden;
}

body.tc-redesign,
body.tc-pay-page,
body.cv-page {
  font-family: var(--font);
  background-color: var(--page);
  color: var(--text);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Global page backdrop (как hero: mesh + glow + сетка) ── */
.tc-page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--page);
}

.tc-page-bg::before {
  content: '';
  position: absolute;
  inset: -15%;
  opacity: 0.88;
  background:
    radial-gradient(circle 520px at 88% 12%, rgba(99, 102, 241, 0.2), transparent 68%),
    radial-gradient(circle 400px at 8% 88%, rgba(139, 92, 246, 0.14), transparent 68%),
    radial-gradient(circle 320px at 48% 40%, rgba(59, 130, 246, 0.16), transparent 68%),
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(139, 92, 246, 0.16), transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(59, 130, 246, 0.1), transparent 50%);
}

.tc-page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.65;
  background-image:
    var(--tc-grid-lines),
    radial-gradient(ellipse 100% 85% at 50% 40%, transparent 38%, rgba(5, 8, 16, 0.48) 100%);
  background-size: var(--tc-grid-size), 100% 100%;
  mask-image: radial-gradient(ellipse 120% 90% at 50% 35%, #000 18%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 35%, #000 18%, transparent 82%);
}

.tc-page-bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}

body.tc-redesign:has(.tc-page-bg) .tc-hero__mesh {
  opacity: 0.45;
}

body.tc-redesign:has(.tc-page-bg) .tc-hero__glow {
  opacity: 0.72;
}

body.tc-redesign:has(.tc-page-bg) .tc-hero__grid-lines {
  opacity: 0.35;
}

body.tc-redesign > :not(.tc-page-bg):not(.tc-modal),
body.tc-pay-page > :not(.tc-page-bg):not(.tc-modal),
body.cv-page > :not(.tc-page-bg):not(.tc-modal) {
  position: relative;
  z-index: 1;
}

main {
  width: 100%;
  overflow-x: hidden;
}

/* ── GRADIENT BTN ── */
.tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, opacity 0.25s;
  white-space: nowrap;
}

.tc-btn--nav-gradient {
  height: 42px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  border-radius: var(--radius-btn);
  background: var(--grad);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.32);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s var(--ease);
  flex-shrink: 0;
}

.tc-btn--nav-gradient:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.48);
}

.tc-btn--nav-gradient:active {
  transform: translateY(0) scale(1);
  transition-duration: 0.1s;
}

.tc-btn--gradient {
  height: 50px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  border-radius: var(--radius-btn);
  background: var(--grad);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}

.tc-btn--gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
}

.tc-btn--glass {
  height: 50px;
  padding: 0 24px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  border-radius: var(--radius-btn);
  background: var(--glass);
  border-color: var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tc-btn--glass:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* ── NAV — стиль Wallester, наши цвета, оригинальная структура ── */
.tc-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
}

.tc-nav__bar {
  height: var(--nav-h);
  background: rgba(10, 14, 24, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.tc-nav.is-scrolled .tc-nav__bar {
  background: rgba(8, 11, 20, 0.96);
  border-bottom-color: rgba(139, 92, 246, 0.15);
  box-shadow: 0 4px 32px rgba(99, 102, 241, 0.12), 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* Brand gradient text */
.tc-text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tc-nav__inner {
  max-width: 1280px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.tc-nav__logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--text);
  margin-right: 40px;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}

.tc-nav__logo:hover {
  transform: translateY(-1px);
}

.tc-nav__mark {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tc-nav__mark::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.28) 0%, rgba(139, 92, 246, 0.14) 50%, rgba(59, 130, 246, 0.22) 100%);
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.4s var(--ease);
}

.tc-nav__logo:hover .tc-nav__mark::before {
  opacity: 1;
}

.tc-nav__icon,
.tc-nav__mark svg,
.tc-nav__mark .tc-nav__logo-svg {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: block;
  transition: transform 0.45s var(--ease), filter 0.45s var(--ease);
  filter:
    drop-shadow(0 4px 14px rgba(99, 102, 241, 0.35))
    drop-shadow(0 0 24px rgba(139, 92, 246, 0.18));
}

.tc-nav__logo:hover .tc-nav__mark svg,
.tc-nav__logo:hover .tc-nav__mark .tc-nav__logo-svg {
  transform: scale(1.05);
  filter:
    drop-shadow(0 8px 24px rgba(99, 102, 241, 0.5))
    drop-shadow(0 0 36px rgba(167, 139, 250, 0.35));
}

.tc-nav__wordmark {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
  white-space: nowrap;
  padding-top: 2px;
}

.tc-nav__wordmark-primary {
  font-size: 20.5px;
  font-weight: 800;
  letter-spacing: -0.055em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: filter 0.4s var(--ease);
}

.tc-nav__logo:hover .tc-nav__wordmark-primary {
  filter:
    drop-shadow(0 0 12px rgba(196, 181, 253, 0.55))
    drop-shadow(0 0 24px rgba(99, 102, 241, 0.3));
}

.tc-nav__wordmark-secondary {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.82);
  padding-left: 2px;
  transition: color 0.35s var(--ease), letter-spacing 0.45s var(--ease);
}

.tc-nav__logo:hover .tc-nav__wordmark-secondary {
  color: rgba(196, 181, 253, 0.95);
  letter-spacing: 0.36em;
}

.tc-nav__menu {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.tc-nav__menu .menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.tc-nav__menu a {
  position: relative;
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
  text-decoration: none;
  border-radius: 8px;
  transition:
    color 0.35s var(--ease),
    letter-spacing 0.5s var(--ease),
    transform 0.35s var(--ease),
    opacity 0.35s var(--ease),
    filter 0.4s var(--ease);
  white-space: nowrap;
}

.tc-nav__menu:has(.menu a:hover) .menu a:not(:hover) {
  opacity: 0.38;
  color: var(--mute);
}

.tc-nav__menu a:hover {
  letter-spacing: 0.13em;
  transform: translateY(-1px);
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 10px rgba(196, 181, 253, 0.95))
    drop-shadow(0 0 22px rgba(167, 139, 250, 0.75))
    drop-shadow(0 0 40px rgba(99, 102, 241, 0.5))
    drop-shadow(0 0 56px rgba(59, 130, 246, 0.3));
}

.tc-nav__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}
.tc-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.tc-lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.04) inset;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tc-lang__seg {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 32px;
  padding: 0 10px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
  text-decoration: none;
  border-radius: 7px;
  transition:
    color 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.tc-lang__seg:not(.is-active):hover {
  color: var(--soft);
  background: rgba(255, 255, 255, 0.06);
}

.tc-lang__seg.is-active {
  color: #fff;
  background: var(--grad);
  box-shadow:
    0 2px 14px rgba(99, 102, 241, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.tc-lang__seg.is-active:hover {
  transform: translateY(-1px);
  box-shadow:
    0 4px 18px rgba(99, 102, 241, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

/* ── HERO BG ── */
.tc-hero {
  position: relative;
  padding: calc(var(--nav-h) + 64px) 32px 80px;
  overflow-x: hidden;
}

.tc-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
}

.tc-hero__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(139, 92, 246, 0.16), transparent 55%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(59, 130, 246, 0.1), transparent 50%);
}

.tc-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.tc-hero__glow--1 {
  width: 500px;
  height: 500px;
  top: -10%;
  right: 5%;
  background: rgba(99, 102, 241, 0.18);
}

.tc-hero__glow--2 {
  width: 400px;
  height: 400px;
  bottom: 10%;
  left: -5%;
  background: rgba(139, 92, 246, 0.12);
}

.tc-hero__glow--3 {
  width: 320px;
  height: 320px;
  top: 35%;
  left: 42%;
  background: rgba(59, 130, 246, 0.14);
}

.tc-hero__grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.65;
  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: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

.tc-hero__crosses {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.8;
}

.tc-hero__cross {
  position: absolute;
  width: 14px;
  height: 14px;
}

.tc-hero__cross::before,
.tc-hero__cross::after {
  content: '';
  position: absolute;
  background: rgba(167, 139, 250, 0.35);
  border-radius: 1px;
}

.tc-hero__cross::before {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

.tc-hero__cross::after {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

.tc-hero__cross--1 { top: 18%; left: 12%; }
.tc-hero__cross--2 { top: 28%; right: 18%; }
.tc-hero__cross--3 { bottom: 32%; left: 22%; }
.tc-hero__cross--4 { bottom: 22%; right: 12%; }

.tc-hero__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 40%, rgba(5, 8, 16, 0.55) 100%);
}

.tc-hero__spotlight {
  position: absolute;
  width: 520px;
  height: 520px;
  top: 10%;
  right: 8%;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.85;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 68%);
  filter: blur(40px);
}

.tc-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--w);
  margin: 0 auto;
}

.tc-hero__grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
}

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(18px); }
body.is-ready [data-reveal] { animation: rise 0.65s var(--ease) forwards; }
body.is-ready [data-reveal="1"] { animation-delay: 0.04s; }
body.is-ready [data-reveal="2"] { animation-delay: 0.1s; }
body.is-ready [data-reveal="3"] { animation-delay: 0.16s; }
body.is-ready [data-reveal="4"] { animation-delay: 0.22s; }
body.is-ready [data-reveal="5"] { animation-delay: 0.28s; }
body.is-ready [data-reveal="6"] { animation-delay: 0.3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Copy */
.tc-hero__trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  margin-bottom: 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--soft);
  border-radius: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}

.tc-hero__trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.tc-hero__title {
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.045em;
  margin-bottom: 20px;
  max-width: 18ch;
  color: #E2E8F0;
}

.tc-hero__title .tc-text-grad {
  font-weight: 800;
}

.tc-hero__lead {
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.015em;
  color: var(--mute);
  max-width: 46ch;
  margin-bottom: 32px;
}

.tc-hero__lead-accent {
  font-weight: 600;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tc-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0;
}

/* ── HERO FACTS — единый блок: trust + метрики ── */
.tc-hero__facts {
  margin-top: 40px;
  padding: 16px 18px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.04) inset, 0 20px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tc-hero__facts-trust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tc-hero__facts-trust-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.tc-hero__facts-badge {
  display: inline-flex;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #34D399;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: 6px;
}

.tc-hero__facts-trust-text {
  font-size: 12px;
  font-weight: 500;
  color: #94A3B8;
  letter-spacing: -0.01em;
}

.tc-hero__facts-logos {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.tc-hero__facts-logos img {
  display: block;
  object-fit: contain;
  opacity: 0.92;
}

/* ── STATS — внутри hero facts ── */
.tc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 0;
}

.tc-stats__card {
  padding: 16px 16px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 0;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tc-stats__tag {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.95);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 5px;
}

.tc-stats__card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.tc-stats__value {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.tc-stats__label {
  font-size: 13px;
  font-weight: 500;
  color: #CBD5E1;
  margin-bottom: auto;
  padding-bottom: 10px;
}

.tc-stats__meta {
  font-size: 11px;
  line-height: 1.5;
  color: #64748B;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Legacy trust cards — не используются в hero */

.tc-trust-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.tc-trust-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.tc-trust-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(139, 92, 246, 0.22);
}

.tc-trust-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px;
}

.tc-trust-card__icon--brand {
  background: #FFFFFF;
  border-color: #E2E2E2;
}

.tc-trust-card__icon--pay {
  background: #050810;
  border-color: rgba(255, 255, 255, 0.08);
}

.tc-trust-card__icon img {
  display: block;
  object-fit: contain;
}

.tc-trust-card__pay--pci {
  width: 34px;
  height: auto;
}

/* Visa — официальный синий wordmark, как на trust-certificate.ru */
.tc-trust-card__pay--visa {
  width: 46px;
  height: 14px;
}

/* Mastercard — вертикальный lockup */
.tc-trust-card__pay--mc {
  width: auto;
  height: 34px;
}

/* МИР + Tether — с оф. сайта, белые на тёмном фоне, 22px как в теме */
.tc-trust-card__pay--mir {
  height: 18px;
  width: auto;
  max-width: 48px;
}

.tc-trust-card__pay--trc20 {
  height: 22px;
  width: auto;
}

.tc-trust-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tc-trust-card__name {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}

.tc-trust-card__desc {
  font-size: 12px;
  line-height: 1.35;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── PARTNERS MARQUEE — после hero ── */
.tc-partners {
  padding: 32px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 11, 20, 0.6);
  text-align: center;
}

.tc-partners__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--soft);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.tc-partners__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.7);
}

.tc-partners__marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.tc-partners__marquee-inner {
  display: flex;
  width: max-content;
  animation: tc-partners-marquee 38s linear infinite;
  will-change: transform;
}

.tc-partners__marquee:hover .tc-partners__marquee-inner {
  animation-play-state: paused;
}

@keyframes tc-partners-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tc-partners__track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 64px;
  padding: 0 32px;
}

.tc-partners__track--clone {
  padding-left: 0;
}

.tc-partners__logo {
  color: #FFFFFF;
  opacity: 0.85;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.tc-partners__logo:hover { opacity: 1; }

.tc-partners__logo--fintech {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-style: italic;
}

.tc-partners__logo-dot { font-style: normal; opacity: 0.9; }

.tc-partners__logo--biz {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tc-partners__biz-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
}

.tc-partners__logo--tether {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tc-partners__logo--tether img {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.tc-partners__logo--img {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

/* ── CERTIFICATE CARD (glass) ── */
.tc-hero__cert-wrap {
  display: flex;
  justify-content: center;
}

.tc-cert-card {
  width: 100%;
  max-width: 400px;
  perspective: 1000px;
}

.tc-cert-card__glass {
  position: relative;
  padding: 28px 32px 24px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(99, 102, 241, 0.08);
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out;
}

.tc-cert-card__shine {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.tc-cert-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}

.tc-cert-card__brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--soft);
}

.tc-cert-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--mint);
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.tc-cert-card__status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
}

.tc-cert-card__amount {
  font-family: var(--mono);
  font-size: clamp(3rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: center;
  margin-bottom: 16px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tc-cert-card__code {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--soft);
  margin-bottom: 20px;
}

.tc-cert-card__hint {
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
  color: var(--mute);
  margin-bottom: 28px;
  padding: 0 8px;
}

.tc-cert-card__foot {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  font-size: 12px;
  color: var(--mute);
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .tc-nav__inner { padding: 0 24px; }
  .tc-nav__logo { margin-right: 24px; }
  .tc-nav__menu a { padding: 8px 12px; font-size: 13px; }
}

@media (max-width: 1024px) {
  .tc-nav__actions .header_button { display: none; }

  .tc-nav__inner {
    justify-content: space-between;
    gap: 12px;
    padding-left: var(--tc-gutter);
    padding-right: var(--tc-gutter);
  }

  .tc-nav__logo {
    margin-right: 0;
    flex: 0 1 auto;
    min-width: 0;
  }

  .tc-nav__menu {
    display: none;
  }

  .tc-nav__tools {
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 0;
    gap: 6px;
  }

  .tc-hero {
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 56px;
    padding-left: var(--tc-gutter);
    padding-right: var(--tc-gutter);
    box-sizing: border-box;
  }

  .tc-hero__inner {
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
  }

  .tc-hero__grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 36px;
    width: 100%;
  }

  .tc-hero__copy {
    width: 100%;
    min-width: 0;
  }

  .tc-hero__title,
  .tc-hero__lead {
    max-width: none;
  }

  .tc-hero__cert-wrap {
    width: 100%;
    margin-top: 4px;
  }

  .tc-cert-card {
    max-width: 100%;
    margin: 0;
    width: 100%;
  }

  .tc-hero__facts {
    margin-top: 32px;
  }

  .tc-hero__facts-trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .tc-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .tc-partners__track {
    gap: 40px;
    padding: 0 var(--tc-gutter);
  }
}

@media (max-width: 560px) {
  :root {
    --nav-h: 68px;
    --tc-gutter: 20px;
  }

  .tc-hero {
    padding-top: calc(var(--nav-h) + 28px);
    padding-bottom: 40px;
    padding-left: var(--tc-gutter);
    padding-right: var(--tc-gutter);
  }

  .tc-hero__inner,
  .tc-hero__grid,
  .tc-hero__copy,
  .tc-hero__cert-wrap,
  .tc-hero__facts {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .tc-hero__cert-wrap {
    margin-top: 8px;
  }

  .tc-cert-card {
    max-width: 100%;
  }

  .tc-cert-card__glass {
    padding: 22px 20px 20px;
  }

  .tc-nav__inner {
    padding-left: var(--tc-gutter);
    padding-right: var(--tc-gutter);
    gap: 12px;
  }

  .tc-nav__logo {
    margin-right: 0;
    gap: 10px;
    min-width: 0;
  }

  .tc-nav__tools {
    gap: 4px;
    margin-right: 0;
  }

  .tc-nav__mark .tc-nav__logo-svg,
  .tc-nav__mark svg {
    width: 48px;
    height: 48px;
  }

  .tc-nav__wordmark-secondary {
    display: none;
  }

  .tc-nav__wordmark-primary {
    font-size: 17px;
  }

  .tc-nav__wordmark {
    gap: 0;
  }

  .tc-lang__seg {
    min-width: 34px;
    height: 30px;
    padding: 0 8px;
    font-size: 10px;
  }

  .tc-hero__trust-tag {
    margin-bottom: 20px;
    font-size: 11px;
    padding: 6px 12px;
  }

  .tc-hero__title {
    max-width: none;
    font-size: clamp(1.625rem, 8vw, 2rem);
    margin-bottom: 16px;
    line-height: 1.2;
  }

  .tc-hero__lead {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: none;
  }

  .tc-hero__cta {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .tc-hero__cta .tc-btn {
    width: 100%;
    height: 48px;
  }

  .tc-cert-card__amount {
    font-size: clamp(2.5rem, 12vw, 3.25rem);
  }

  .tc-cert-card__hint {
    font-size: 12px;
    margin-bottom: 20px;
  }

  .tc-hero__facts {
    margin-top: 28px;
    padding: 14px 12px;
  }

  .tc-hero__facts-trust-text {
    font-size: 11px;
    line-height: 1.45;
  }

  .tc-hero__facts-logos {
    gap: 12px 16px;
    width: 100%;
  }

  .tc-hero__facts-logos img {
    height: 14px;
    width: auto;
    max-height: 16px;
  }

  .tc-stats {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tc-stats__card {
    padding: 14px;
  }

  .tc-stats__value {
    font-size: 19px;
  }

  .tc-stats__label {
    font-size: 12px;
    padding-bottom: 8px;
  }

  .tc-stats__meta {
    font-size: 10px;
    line-height: 1.45;
    padding-top: 8px;
  }

  .tc-partners {
    padding-block: 24px;
  }

  .tc-partners__track {
    gap: 28px;
    padding: 0 var(--tc-gutter);
  }

  .tc-partners__logo--fintech {
    font-size: 18px;
  }

  .tc-partners__logo--biz {
    font-size: 15px;
  }

  .tc-hero__glow--1,
  .tc-hero__glow--2,
  .tc-hero__glow--3 {
    opacity: 0.55;
    filter: blur(70px);
  }

  .tc-hero__spotlight {
    width: 280px;
    height: 280px;
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; animation: none; }
  .tc-partners__marquee-inner { animation: none; }
  .tc-nav__menu a:hover { letter-spacing: 0.06em; transform: none; filter: none; color: var(--violet-light); -webkit-text-fill-color: var(--violet-light); }
}

.tc-redesign .home-hero_logo-strip img,
.tc-redesign .home-products_logo-strip-image,
.tc-redesign .tc-hero__facts-logos img {
  width: auto !important;
  max-width: none !important;
  max-height: 22px !important;
  height: auto !important;
  object-fit: contain;
}
