/* ==========================================================================
   GETPARI BRANDBOOK TOKENS & SYSTEM
   ========================================================================== */
:root {
  --gp-black: #0A0A0A;
  --gp-dark: #121418;
  --gp-gray-bg: #F4F6FA;
  --gp-white: #FFFFFF;
  --gp-card-border: #E2E8F0;
  
  /* Brand Red Palette */
  --gp-red: #E31E24;
  --gp-red-dark: #A81217;
  --gp-red-light: #FF4B50;
  --gp-red-pattern: #C21C20;
  --gp-red-glow: rgba(227, 30, 36, 0.25);

  /* Brand Green Palette (Success / Payouts) */
  --gp-green: #00A651;
  --gp-green-dark: #067A3C;
  --gp-green-light: #3FD07F;
  --gp-green-pattern: #037D3E;
  --gp-green-bg: rgba(0, 166, 81, 0.08);

  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-light: #94A3B8;

  --max-width: 1280px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --shadow-card: 0 10px 30px rgba(10, 10, 10, 0.05);
  --shadow-hover: 0 18px 45px rgba(10, 10, 10, 0.1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: clamp(60px, 9vh, 90px);
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--gp-gray-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  -webkit-text-size-adjust: 100%;
}

/* Доступный фокус для клавиатурной навигации */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gp-red);
  outline-offset: 3px;
}

/* ==========================================================================
   SIDE VECTOR MARGINS (CSS/SVG GRAPHICS FOR ULTRA-FAST LOAD)
   ========================================================================== */
@media (min-width: 1441px) {
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: calc((100vw - var(--max-width)) / 2);
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 900' fill='none'%3E%3Cpath d='M-60 120 C 140 180, 210 380, 10 520' stroke='%23C21C20' stroke-width='32' stroke-linecap='round' opacity='0.35'/%3E%3Cpath d='M-70 170 C 120 220, 180 400, 0 540' stroke='%23037D3E' stroke-width='22' stroke-linecap='round' opacity='0.45'/%3E%3Cpath d='M-80 210 C 90 250, 140 410, -10 550' stroke='%23CBD5E1' stroke-width='6' stroke-dasharray='10 15' opacity='0.5'/%3E%3Ccircle cx='90' cy='240' r='30' stroke='%230A0A0A' stroke-width='4' fill='%23FFFFFF' opacity='0.4'/%3E%3Cpath d='M75 230 L105 230 L115 250 L90 265 L65 250 Z' fill='%230A0A0A' opacity='0.3'/%3E%3Cpath d='M-40 680 C 120 720, 170 820, 40 920' stroke='%23C21C20' stroke-width='20' opacity='0.25'/%3E%3Cpath d='M-50 720 C 100 750, 150 840, 20 940' stroke='%2300A651' stroke-width='14' opacity='0.3'/%3E%3C/svg%3E");
  }

  body::after {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: calc((100vw - var(--max-width)) / 2);
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 900' fill='none'%3E%3Ccircle cx='180' cy='180' r='54' stroke='%23C21C20' stroke-width='10' stroke-dasharray='16 12' opacity='0.3'/%3E%3Ccircle cx='180' cy='180' r='38' stroke='%230A0A0A' stroke-width='4' opacity='0.2'/%3E%3Crect x='120' y='360' width='50' height='50' rx='12' transform='rotate(25 120 360)' stroke='%2300A651' stroke-width='6' opacity='0.3'/%3E%3Ccircle cx='140' cy='390' r='4' fill='%2300A651' opacity='0.5'/%3E%3Ccircle cx='160' cy='380' r='4' fill='%2300A651' opacity='0.5'/%3E%3Cpath d='M260 520 C 120 570, 70 730, 250 840' stroke='%2300A651' stroke-width='28' stroke-linecap='round' opacity='0.35'/%3E%3Cpath d='M270 560 C 140 600, 100 740, 260 860' stroke='%23C21C20' stroke-width='18' stroke-linecap='round' opacity='0.45'/%3E%3Ccircle cx='160' cy='760' r='40' stroke='%23CBD5E1' stroke-width='6' stroke-dasharray='8 14' opacity='0.4'/%3E%3C/svg%3E");
  }
}

/* ==========================================================================
   TYPOGRAPHY & ACCENTS
   ========================================================================== */
h1, h2, h3, h4, h5 {
  color: var(--text-primary);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.8rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.4rem); }
h4 { font-size: 1.15rem; }

.highlight-red { color: var(--gp-red); }
.highlight-green { color: var(--gp-green); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #FFF;
  border: 1px solid rgba(227, 30, 36, 0.2);
  border-radius: var(--radius-pill);
  color: var(--gp-red);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(227, 30, 36, 0.08);
  max-width: 100%;
}

.badge-green {
  background: var(--gp-green-bg);
  border-color: rgba(0, 166, 81, 0.3);
  color: var(--gp-green);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 20px;
  position: relative;
  z-index: 2;
}

.max-w-narrow {
  max-width: 860px;
}

/* ==========================================================================
   BUTTONS (BRANDBOOK GRADIENTS)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gp-red-light) 0%, var(--gp-red-dark) 100%);
  color: var(--gp-white);
  box-shadow: 0 8px 24px var(--gp-red-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(227, 30, 36, 0.45);
}

.btn-green {
  background: linear-gradient(135deg, var(--gp-green-light) 0%, var(--gp-green-dark) 100%);
  color: #FFF;
  box-shadow: 0 8px 24px rgba(0, 166, 81, 0.3);
}

.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 166, 81, 0.45);
}

.btn-outline {
  background: var(--gp-white);
  color: var(--text-primary);
  border: 1px solid var(--gp-card-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-outline:hover {
  border-color: var(--gp-red);
  color: var(--gp-red);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-full { width: 100%; }
.mt-4 { margin-top: 1rem; }

/* ==========================================================================
   CLASSIC CLEAN LIGHT NAVBAR (ADAPTIVE & FLEX-SAFE)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: #F3F5F8;
  border-bottom: 1px solid rgba(227, 232, 240, 0.8);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 38px;
  width: auto;
  max-width: 190px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  margin-right: 20px;
}

.nav-links a {
  color: #0A0A0A;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gp-red);
}

.nav-btn {
  background: #E31E24 !important;
  color: #FFFFFF !important;
  padding: 11px 26px !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  border-radius: 9999px !important;
  text-transform: capitalize !important;
  box-shadow: 0 4px 18px rgba(227, 30, 36, 0.35) !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s ease !important;
}

.nav-btn:hover {
  background: #C21C20 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(227, 30, 36, 0.45) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

.menu-toggle svg {
  stroke: #0A0A0A;
  display: block;
}

@media (max-width: 1024px) {
  .nav-links, .navbar .nav-btn { display: none !important; }
  .menu-toggle { display: block; }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 10px 14px;
    gap: 8px;
  }
  .logo img {
    height: 30px;
    max-width: 135px;
  }
  .lang-current-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    gap: 5px;
  }
  .lang-current-btn .lang-flag-img {
    width: 16px;
    height: 12px;
  }
  .lang-chevron {
    width: 10px;
    height: 10px;
  }
}

/* ==========================================================================
   MOBILE DRAWER
   ========================================================================== */
#mobile-drawer,
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
}

#mobile-drawer.active,
.mobile-drawer.active {
  display: flex !important;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(4px);
}

.drawer-body {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 85%;
  max-width: 320px;
  background: #121824;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 2;
  overflow-y: auto;
}

.drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px;
}

.drawer-body a {
  color: #E2E8F0;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer-body a:hover,
.drawer-body a.active {
  color: var(--gp-red);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 70px 0 50px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--gp-gray-bg) 100%);
  border-bottom: 1px solid var(--gp-card-border);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-title { margin-bottom: 20px; }

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-meta-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--gp-card-border);
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  flex-wrap: wrap;
}

.meta-label {
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}

.meta-val {
  color: var(--text-secondary);
  word-break: break-word;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-visual img,
.hero-art {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 20px 45px rgba(10, 10, 10, 0.12);
  position: relative;
  z-index: 2;
  display: block;
}

.floating-pill {
  position: absolute;
  background: #FFF;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: 0 14px 35px rgba(10, 10, 10, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--gp-card-border);
  z-index: 3;
}

.pill-1 { top: 3%; left: -20px; }
.pill-2 { bottom: 3%; right: -20px; }

.pill-icon { font-size: 1.5rem; }

.pill-num {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--gp-green);
  line-height: 1;
}

.pill-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-meta-bar { align-items: center; }
  .meta-row { justify-content: center; }
  .pill-1 { left: 4px; top: 4px; }
  .pill-2 { right: 4px; bottom: 4px; }
}

@media (max-width: 540px) {
  .floating-pill {
    padding: 8px 12px;
    gap: 8px;
  }
  .pill-icon { font-size: 1.2rem; }
  .pill-num { font-size: 1.1rem; }
  .pill-desc { font-size: 0.7rem; }
  .hero-actions .btn { width: 100%; }
}

/* ==========================================================================
   METRICS BAR
   ========================================================================== */
.metrics-section {
  background: #FFF;
  border-bottom: 1px solid var(--gp-card-border);
  padding: 32px 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.metric-item h3 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: var(--gp-red);
}

.metric-item p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ==========================================================================
   SECTIONS & CARDS
   ========================================================================== */
.section { padding: 75px 0; }
.section-alt { background-color: #FFF; }

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
}

.section-header p {
  margin-top: 10px;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: #FFF;
  border: 1px solid var(--gp-card-border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-wrap: break-word;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--gp-red);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.card h3 { margin-bottom: 10px; }

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   COMMISSION TIERS
   ========================================================================== */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
}

.model-card {
  background: #FFF;
  border: 1px solid var(--gp-card-border);
  border-radius: var(--radius-lg);
  padding: 38px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.model-card.featured {
  border: 2px solid var(--gp-red);
  box-shadow: 0 16px 40px var(--gp-red-glow);
}

@media (min-width: 993px) {
  .model-card.featured {
    transform: scale(1.02);
  }
}

.model-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gp-red);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 18px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  white-space: nowrap;
}

.model-rate {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--gp-red);
  margin: 12px 0 4px;
}

.model-sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.model-features {
  list-style: none;
  margin-bottom: 28px;
  flex-grow: 1;
}

.model-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.model-features li strong { color: var(--text-primary); }
.check { color: var(--gp-green); font-weight: 800; flex-shrink: 0; }

/* ==========================================================================
   ACCORDIONS (FAQ)
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #FFF;
  border: 1px solid var(--gp-card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s;
}

.faq-header {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.faq-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

.faq-arrow {
  color: var(--gp-red);
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-body {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: none;
  line-height: 1.65;
}

/* ==========================================================================
   TUTORIALS & GUIDES
   ========================================================================== */
.tutorial-card {
  background: #FFF;
  border: 1px solid var(--gp-card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.step-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gp-red);
  margin-bottom: 10px;
}

.code-block {
  background: var(--gp-black);
  color: #3FD07F;
  font-family: monospace;
  font-size: 0.82rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin: 12px 0;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ==========================================================================
   CONVERSION HUB: APPLICATION FORM
   ========================================================================== */
.section-contact {
  position: relative;
  padding: 70px 0 85px;
  background: #FFFFFF;
}

.section-contact::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 380px;
  pointer-events: none;
  z-index: 1;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 380' fill='none'%3E%3Cpath d='M-80 340 C 220 280, 440 330, 580 400' stroke='%23C21C20' stroke-width='22' stroke-linecap='round' opacity='0.16'/%3E%3Cpath d='M-50 375 C 240 315, 460 360, 600 425' stroke='%2300A651' stroke-width='14' stroke-linecap='round' opacity='0.20'/%3E%3Cpath d='M1520 340 C 1220 280, 1000 330, 860 400' stroke='%2300A651' stroke-width='22' stroke-linecap='round' opacity='0.16'/%3E%3Cpath d='M1490 375 C 1200 315, 980 360, 840 425' stroke='%23C21C20' stroke-width='14' stroke-linecap='round' opacity='0.20'/%3E%3C/svg%3E");
}

.form-container-card {
  position: relative;
  z-index: 2;
  background: #FFFFFF;
  border-radius: 24px;
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 42px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.7);
}

.form-container-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #E31E24 0%, #FF4B50 50%, #00A651 100%);
  border-radius: 24px 24px 0 0;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  margin-bottom: 18px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #334155;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  height: 48px;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0F172A;
  transition: all 0.2s ease;
}

.form-input::placeholder {
  color: #94A3B8;
  font-weight: 500;
}

.form-input:hover {
  border-color: #94A3B8;
  background: #FFFFFF;
}

.form-input:focus {
  outline: none;
  background: #FFFFFF;
  border-color: var(--gp-red);
  box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.12);
}

.select-wrapper {
  position: relative;
}

.form-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
}

.select-wrapper::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--gp-red);
  pointer-events: none;
}

.form-select option,
.form-select optgroup {
  background: #FFFFFF;
  color: #0F172A;
}

.messenger-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.messenger-icon {
  width: 16px;
  height: 16px;
}

.tg-icon { color: #229ED9; }
.wa-icon { color: #25D366; }

.form-submit-wrapper {
  margin-top: 24px;
}

#submit-btn {
  background: linear-gradient(135deg, #FF4B50 0%, #E31E24 50%, #A81217 100%) !important;
  color: #FFFFFF !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.05em !important;
  padding: 15px 32px !important;
  border-radius: 9999px !important;
  box-shadow: 0 10px 25px rgba(227, 30, 36, 0.40) !important;
  transition: all 0.25s ease !important;
}

#submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(227, 30, 36, 0.55) !important;
}

@media (max-width: 768px) {
  .section-contact { padding: 45px 0 60px; }
  .form-container-card { padding: 26px 18px; border-radius: 18px; }
  .form-row-2 { grid-template-columns: 1fr; gap: 14px; }
  .form-field { margin-bottom: 12px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #0A0A0A;
  color: #FFF;
  padding: 60px 0 26px;
  border-top: 1px solid #1E232E;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-light);
  margin-top: 14px;
  font-size: 0.9rem;
  max-width: 380px;
}

.footer-col h4 {
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: #FFF;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-light);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--gp-red-light);
}

.footer-bottom {
  border-top: 1px solid #1E232E;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  text-decoration: none;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   LANGUAGE SWITCHER
   ========================================================================== */
.lang-switch-wrap {
  position: relative;
  display: inline-block;
  user-select: none;
  flex-shrink: 0;
}

.lang-current-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-pill);
  padding: 7px 12px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  white-space: nowrap;
}

.lang-current-btn:hover {
  border-color: var(--gp-red);
}

.lang-chevron {
  transition: transform 0.25s ease;
  color: #64748B;
  flex-shrink: 0;
}

.lang-switch-wrap.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  min-width: 170px;
  list-style: none;
  padding: 6px;
  margin: 0;
  display: none;
  z-index: 1000;
  animation: langFadeIn 0.2s ease-out;
}

.lang-switch-wrap.open .lang-dropdown-menu {
  display: block;
}

@keyframes langFadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.lang-option:hover {
  background: #F8FAFC;
  color: var(--gp-red);
}

.lang-option.active {
  background: rgba(227, 30, 36, 0.08);
  color: var(--gp-red);
  font-weight: 700;
}

/* RTL-поддержка */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .nav-links {
  margin-left: 0;
  margin-right: auto;
}
html[dir="rtl"] .lang-dropdown-menu {
  right: auto;
  left: 0;
}
html[dir="rtl"] .hero-grid {
  direction: rtl;
}
html[dir="rtl"] .custom-country-selected:after {
  margin-left: 0;
  margin-right: auto;
}
html[dir="rtl"] .select-wrapper::after {
  right: auto;
  left: 16px;
}
html[dir="rtl"] .form-select {
  padding-right: 16px;
  padding-left: 40px;
}

/* ==========================================================================
   FORM STATUS FEEDBACK
   ========================================================================== */
.form-status-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  animation: statusFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes statusFadeIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.status-icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
  font-weight: 900;
}

.success-circle {
  background: rgba(0, 166, 81, 0.12);
  color: var(--gp-green);
  border: 2px solid var(--gp-green);
  box-shadow: 0 0 25px rgba(0, 166, 81, 0.25);
}

.error-circle {
  background: rgba(227, 30, 36, 0.1);
  color: var(--gp-red);
  border: 2px solid var(--gp-red);
}

.status-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: #0A0A0A;
  margin-bottom: 10px;
}

.status-desc {
  font-size: 0.98rem;
  color: #5A6474;
  max-width: 520px;
  line-height: 1.6;
}

.status-desc strong {
  color: #0A0A0A;
}

/* ==========================================================================
   FLAG IMAGES & CUSTOM COUNTRY DROPDOWN
   ========================================================================== */
.lang-flag-img {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
  display: inline-block;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.custom-country-dropdown {
  position: relative;
  width: 100%;
}

.custom-country-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  padding: 0 16px;
  height: 48px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0F172A;
  user-select: none;
  transition: all 0.2s ease;
}

.custom-country-selected:hover {
  background: #FFFFFF;
  border-color: #94A3B8;
}

.custom-country-selected:after {
  content: "";
  margin-left: auto;
  border: solid #64748B;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.custom-country-dropdown.open .custom-country-selected:after {
  transform: rotate(-135deg);
}

.custom-country-list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 250px;
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid var(--gp-card-border);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  z-index: 100;
  list-style: none;
  padding: 6px 0;
  margin: 0;
  -webkit-overflow-scrolling: touch;
}

.custom-country-list.open {
  display: block;
}

.custom-country-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: #1E293B;
  transition: background 0.15s ease;
}

.custom-country-item:hover {
  background: #F1F5F9;
  color: var(--gp-red);
}

.custom-country-group-label {
  padding: 10px 16px 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #94A3B8;
  letter-spacing: 0.06em;
  pointer-events: none;
  background: #FAFAFA;
}

/* ==========================================================================
   HARD MOBILE OVERFLOW FIX & MEDIA QUERIES
   ========================================================================== */
html, body {
  max-width: 100vw !important;
  overflow-x: hidden !important;
  position: relative;
}

.logo {
  max-width: 48vw !important;
  min-width: 0 !important;
  overflow: hidden;
}

.logo img {
  max-width: 100% !important;
  width: auto !important;
  height: clamp(26px, 6vw, 36px) !important;
  object-fit: contain !important;
}

@media (max-width: 768px) {
  .hero-visual {
    position: relative !important;
    display: inline-block !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    width: 100% !important;
  }

  .hero-visual img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  .floating-pill {
    position: absolute !important;
    z-index: 5 !important;
    padding: 8px 12px !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18) !important;
  }

  .pill-1 {
    top: 14px !important;
    left: 14px !important;
    right: auto !important;
    bottom: auto !important;
  }

  .pill-2 {
    bottom: 14px !important;
    right: 14px !important;
    left: auto !important;
    top: auto !important;
  }

  .pill-icon {
    font-size: 1.15rem !important;
  }

  .pill-num {
    font-size: 1.05rem !important;
  }

  .pill-desc {
    font-size: 0.68rem !important;
  }

  .code-block {
    word-break: break-all !important;
    white-space: normal !important;
  }

  .nav-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 14px !important;
    width: 100% !important;
  }
}


/* ==========================================================================
   GP MANAGER SECURE ECOSYSTEM (FIXED WIDTH OVERFLOW)
   ========================================================================== */
.gp-manager-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  padding: 85px 0;
  border-top: 1px solid var(--gp-card-border);
  border-bottom: 1px solid var(--gp-card-border);
  box-sizing: border-box;
}

/* Ограничиваем обертку колонок и разрешаем сжатие колонок через minmax(0, ...) */
.gp-manager-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

/* Принудительный min-width: 0 для колонок, чтобы текст не распирал сетку */
.gp-manager-info,
.gp-manager-compare-box {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.gp-manager-title {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  overflow-wrap: break-word;
}

.gp-manager-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  overflow-wrap: break-word;
}

/* Защита внутренней сетки карточек: колонки minmax(0, 1fr) */
.gp-manager-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 36px;
  width: 100%;
  box-sizing: border-box;
}

.gp-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid var(--gp-card-border);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease;
  min-width: 0;
  box-sizing: border-box;
}

.gp-feature-card > div {
  min-width: 0;
}

.gp-feature-card h4 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-primary);
  overflow-wrap: break-word;
}

.gp-feature-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
  overflow-wrap: break-word;
}

.gp-manager-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Правая колонка сравнения */
.gp-manager-compare-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.compare-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
  position: relative;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.compare-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

/* Адаптив для планшетов и мобильных */
@media (max-width: 1024px) {
  .gp-manager-wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .gp-manager-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .gp-manager-actions .btn {
    width: 100%;
  }
  .compare-card {
    padding: 18px 14px;
  }
}

.safe-badge-strip {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--gp-card-border);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gp-green);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}


/* ==========================================================================
   GP MANAGER APP BRAND HEADER & ICON
   ========================================================================== */
.gp-manager-brand-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.gp-app-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.8);
  flex-shrink: 0;
  transition: transform 0.25s ease;
  background: #FFFFFF;
}

.gp-app-icon:hover {
  transform: translateY(-2px) scale(1.02);
}

.gp-brand-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.gp-app-subtitle {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 540px) {
  .gp-manager-brand-header {
    gap: 12px;
  }
  .gp-app-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
  .gp-app-subtitle {
    font-size: 0.74rem;
  }
}



.form-container-card {
  padding: 30px 16px;
}

#register-embed {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#register-frame {
  width: 100%;
  max-width: 480px;
  min-height: 480px;
  border: 0;
  border-radius: 16px;
  background: transparent;
}

#register-fallback {
  margin-top: 18px;
  text-align: center;
}

#register-fallback a {
  display: inline-block;
  padding: 12px 24px;
  background: #FFFFFF;
  color: #E31E24;
  border: 1.5px solid #E31E24;
  border-radius: 9999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.2s ease;
}

#register-fallback a:hover {
  background: #E31E24;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(227, 30, 36, 0.25);
}


.section-contact .form-container-card {
  max-width: 540px;      
  margin: 0 auto;  
  padding: 24px 16px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

#register-embed {
  width: 100%;
}

#register-frame {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border: 0;
  border-radius: 16px;
  display: block;
}


.contact-split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
}

/* Левая колонка: Промо-оффер и список преимуществ */
.contact-promo-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-promo-title {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-dark, #0F172A);
  margin: 0;
  letter-spacing: -0.02em;
}

.contact-promo-desc {
  font-size: 1rem;
  color: var(--text-muted, #64748B);
  line-height: 1.6;
  margin: 0 0 8px 0;
}

.contact-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.benefit-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-benefit-item h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark, #0F172A);
  margin: 0 0 4px 0;
}

.contact-benefit-item p {
  font-size: 0.85rem;
  color: var(--text-muted, #64748B);
  line-height: 1.45;
  margin: 0;
}

.contact-promo-footnote {
  padding: 10px 14px;
  background: rgba(0, 166, 81, 0.08);
  border: 1px solid rgba(0, 166, 81, 0.25);
  border-radius: 10px;
  font-size: 0.85rem;
  color: #00A651;
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.contact-form-col {
  width: 100%;
}

.contact-form-col .form-container-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 12px;
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid var(--border-color, #E2E8F0);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

.contact-form-col .form-container-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #E31E24 0%, #FF4B50 50%, #00A651 100%);
}

#register-embed {
  width: 100%;
}

#register-frame {
  width: 100%;
  max-width: 480px;
  height: 760px;
  margin: 0 auto;
  border: 0;
  border-radius: 16px;
  display: block;
}

#register-fallback {
  margin-top: 14px;
  text-align: center;
}

#register-fallback a {
  display: inline-block;
  padding: 10px 20px;
  background: #FFFFFF;
  color: #E31E24;
  border: 1.5px solid #E31E24;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

#register-fallback a:hover {
  background: #E31E24;
  color: #FFFFFF;
}

/* Медиа-запрос для десктопа (2 полноценные колонки) */
@media (min-width: 992px) {
  .contact-split-layout {
    grid-template-columns: 1.15fr 0.95fr;
    gap: 48px;
    align-items: center;
  }
  .contact-promo-title {
    font-size: 2.5rem;
  }
}