/* ═══════════════════════════════════════════════════════
   СВАЙПЕР — verifsite.ru
   Main stylesheet
   ═══════════════════════════════════════════════════════ */

:root {
  --bg: #050810;
  --surface: #0C1020;
  --surface-2: #101528;
  --border: #1A2040;
  --border-light: #252D50;
  --cyan: #00E5FF;
  --cyan-dim: #00E5FF33;
  --cyan-dimmer: #00E5FF18;
  --cyan-glow: #00E5FF18;
  --steel: #7A8298;
  --text: #C8CDE0;
  --text-bright: #F0F2F8;
  --success: #00FF94;
  --danger: #FF4060;
  --amber: #FFB84D;
}

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── GRID BACKGROUND ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

/* ── NOISE TEXTURE ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.025;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, .brand {
  font-family: 'Unbounded', sans-serif;
  font-weight: 500;
  color: var(--text-bright);
}

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  min-width: 0;
}

section { padding: 120px 0; min-width: 0; overflow-x: clip; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  background: rgba(5, 8, 16, 0.85);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s;
}

nav.scrolled { border-bottom-color: var(--border-light); }

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
  width: 100%;
  max-width: 1320px;
  min-width: 0;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-bright);
  flex-shrink: 0;
}

.brand svg { width: 28px; height: 28px; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
}

.nav-links li {
  flex-shrink: 0;
}

.nav-links a {
  color: var(--steel);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

.nav-links a.btn-primary {
  padding: 8px 14px !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.04em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
}

.nav-links a.nav-login {
  color: var(--text-bright);
}

.nav-links a.nav-login:hover {
  color: var(--cyan);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-bright);
  transition: all 0.3s;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.97);
  backdrop-filter: blur(20px);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.open { display: flex; }

/* Close button */
.mobile-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-bright);
  font-size: 2rem;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}
.mobile-close:hover {
  color: var(--cyan);
  transform: rotate(90deg);
}

.mobile-menu a {
  font-family: 'Unbounded', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-bright);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--cyan); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.hero-grid > * {
  min-width: 0;
  max-width: 100%;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}

.hero-label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s infinite;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.6s 0.4s forwards;
}

h1 .accent {
  color: var(--cyan);
  position: relative;
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--steel);
  margin-bottom: 40px;
  max-width: 440px;
  opacity: 0;
  animation: fadeUp 0.6s 0.6s forwards;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-cta {
  display: flex;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.6s 0.8s forwards;
}

/* ── BUTTONS ── */
.btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--cyan);
  color: var(--bg);
  font-weight: 500;
}
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 30px var(--cyan-dim);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-1px);
}

/* ── SLIDER DEMO ── */
.slider-demo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeIn 1s 0.6s forwards;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.slider-demo {
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--border),
    0 20px 60px -20px #000,
    0 0 80px -20px var(--cyan-glow);
}

.slider-demo-header {
  padding: 16px 20px;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-demo-header::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

.slider-body { padding: 32px 24px; text-align: center; }

.slider-track-container {
  position: relative;
  width: 100%;
  height: 52px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.slider-track-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan-dim), #00E5FF33);
  transition: width 0.1s;
}

.slider-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel);
  pointer-events: none;
  transition: opacity 0.3s;
}

.slider-hint .arrow {
  display: inline-block;
  animation: slideHint 2s infinite;
}

.slider-handle {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--cyan);
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s;
  z-index: 2;
}

.slider-handle:active { cursor: grabbing; }

.slider-handle svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
}

.slider-handle.animating {
  animation: swipeRight 2.5s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.slider-status {
  margin-top: 16px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  min-height: 1.2em;
  transition: color 0.3s;
}

.slider-status.success { color: var(--success); }

/* ── STATS BAR ── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

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

.stat-item {
  padding: 48px 24px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-value {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}

/* ── SECTIONS ── */
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--cyan);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 64px;
  max-width: 600px;
}

/* ── FEATURES GRID ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.feature-card {
  background: var(--surface);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.feature-card:hover { background: var(--surface-2); }

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  color: var(--cyan);
}

.feature-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--steel);
}

/* ── STEPS ── */
.steps { counter-reset: step; }

.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 32px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  counter-increment: step;
  align-items: start;
  min-width: 0;
  width: 100%;
}

.step:last-child { border-bottom: none; }

.step-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--cyan);
  opacity: 0.3;
  min-width: 0;
}

.step-content {
  min-width: 0;
  max-width: 100%;
}

.step-content h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--steel);
}

.step-code {
  margin-top: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 16px 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--cyan);
  overflow-x: auto;
  max-width: 100%;
  line-height: 1.6;
  -webkit-overflow-scrolling: touch;
}

.step-code .comment { color: var(--steel); }

/* ── COMPARISON TABLE ── */
.table-scroll,
.comparison-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.comparison-table thead th {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.comparison-table thead th:first-child { color: var(--text); }
.comparison-table td:first-child {
  color: var(--text-bright);
  font-weight: 400;
}
.comparison-table td { color: var(--steel); }

.comparison-table .own-col {
  color: var(--cyan) !important;
  font-weight: 500;
}

.comparison-table .check { color: var(--success); }
.comparison-table .cross { color: var(--danger); }

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.pricing-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.pricing-toolbar-note {
  font-size: 0.82rem;
  color: var(--steel);
}

.pricing-period-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  background: var(--surface);
}

.pricing-period-btn {
  border: 0;
  background: transparent;
  color: var(--steel);
  padding: 10px 14px;
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pricing-period-btn.active {
  background: var(--surface-2);
  color: var(--text-bright);
}

.pricing-period-badge {
  font-size: 0.68rem;
  color: var(--success);
  border: 1px solid rgba(0, 255, 148, 0.35);
  border-radius: 999px;
  padding: 2px 6px;
}

.pricing-card {
  background: var(--surface);
  padding: 40px 28px;
  text-align: center;
  position: relative;
  transition: background 0.3s;
}

.pricing-card:hover { background: var(--surface-2); }

.pricing-card.featured {
  background: var(--surface-2);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--cyan);
}

.pricing-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 16px;
}

.pricing-price {
  font-family: 'Unbounded', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.pricing-period {
  font-size: 0.75rem;
  color: var(--steel);
  margin-bottom: 24px;
}

.pricing-limits {
  font-size: 0.75rem;
  color: var(--steel);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.pricing-features li {
  font-size: 0.78rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pricing-features li::before {
  content: '\u2192';
  color: var(--cyan);
  flex-shrink: 0;
}

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; }

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-bright);
  font-family: 'Unbounded', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  text-align: left;
  padding: 24px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--cyan); }

.faq-question::after {
  content: '+';
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--steel);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
  color: var(--cyan);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-answer p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--steel);
}

/* ── CONTACT FORM ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child { border-bottom: none; }

.contact-info-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}

.contact-info-value {
  font-size: 1rem;
  color: var(--text-bright);
}

.contact-info-value a {
  color: var(--text-bright);
  transition: color 0.2s;
}

.contact-info-value a:hover { color: var(--cyan); }

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-bright);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.88rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--cyan);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit-msg {
  margin-top: 12px;
  font-size: 0.8rem;
  display: none;
}

.form-submit-msg.success {
  display: block;
  color: var(--success);
}

.form-submit-msg.error {
  display: block;
  color: var(--danger);
}

/* ── DOCS ── */
.docs-sidebar {
  position: fixed;
  top: 64px;
  left: 0;
  bottom: 0;
  width: 240px;
  border-right: 1px solid var(--border);
  padding: 32px 0;
  overflow-y: auto;
  background: rgba(5, 8, 16, 0.9);
  backdrop-filter: blur(10px);
  z-index: 50;
}

.docs-sidebar a {
  display: block;
  padding: 8px 24px;
  font-size: 0.8rem;
  color: var(--steel);
  text-decoration: none;
  transition: all 0.2s;
  border-left: 2px solid transparent;
}

.docs-sidebar a:hover,
.docs-sidebar a.active {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(0, 229, 255, 0.05);
}

.docs-content {
  margin-left: 240px;
  padding: 80px 0;
}

.docs-section {
  padding-bottom: 60px;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--border);
}

.docs-section:last-child { border-bottom: none; }

.docs-section h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  scroll-margin-top: 80px;
}

.docs-section h3 {
  font-size: 1.1rem;
  margin: 24px 0 12px;
  scroll-margin-top: 80px;
}

.docs-section p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--steel);
  margin-bottom: 16px;
}

.docs-code {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 20px 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--cyan);
  overflow-x: auto;
  line-height: 1.7;
  margin-bottom: 16px;
  position: relative;
}

.docs-code .comment { color: var(--steel); }
.docs-code .key { color: var(--amber); }
.docs-code .string { color: var(--success); }

.docs-endpoint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 20px;
  margin-bottom: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
}

.docs-method {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  background: var(--cyan-dim);
  color: var(--cyan);
}

.docs-param-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}

.docs-param-table th,
.docs-param-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.docs-param-table th {
  font-family: 'Unbounded', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.docs-param-table td:first-child {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--cyan);
  font-size: 0.78rem;
}

.docs-param-table td:nth-child(2) {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--amber);
  font-size: 0.75rem;
}

.docs-param-table td:nth-child(3) {
  color: var(--steel);
  font-size: 0.8rem;
}

/* ── MARKET CARDS GRID (comparison.html) ── */
.market-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── CTA ── */
.cta-section {
  text-align: center;
  padding: 160px 0;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--steel);
  font-size: 1rem;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--steel);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--steel);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ── REKVIZITY PAGE ── */
.rekv-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.rekv-section:last-of-type {
  border-bottom: none;
}

.rekv-section h2 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.rekv-section > .container > p.lead {
  color: var(--steel);
  font-size: 0.92rem;
  line-height: 1.75;
  max-width: 720px;
  margin-bottom: 28px;
}

.rekv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.rekv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
}

.rekv-card dt {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 6px;
}

.rekv-card dd {
  font-size: 0.95rem;
  color: var(--text-bright);
  line-height: 1.5;
  margin: 0;
}

.rekv-card dd a {
  color: var(--cyan);
}

.rekv-tariffs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.rekv-tariff {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s, background 0.2s;
}

.rekv-tariff:hover {
  border-color: var(--border-light);
  background: var(--surface-2);
}

.rekv-tariff h3 {
  font-size: 1rem;
  margin: 0;
}

.rekv-tariff p {
  font-size: 0.82rem;
  color: var(--steel);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.rekv-tariff-price {
  font-family: "Unbounded", sans-serif;
  font-size: 1.25rem;
  color: var(--cyan);
  margin-top: 4px;
}

.rekv-tariff-period {
  font-size: 0.75rem;
  color: var(--steel);
}

.rekv-docs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.rekv-doc-link {
  display: block;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s;
}

.rekv-doc-link:hover {
  border-color: var(--cyan-dim, rgba(0, 229, 255, 0.2));
  background: var(--surface-2);
}

.rekv-doc-link strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.rekv-doc-link span {
  font-size: 0.8rem;
  color: var(--steel);
  line-height: 1.5;
}

.rekv-contact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  max-width: 560px;
}

.rekv-contact h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.rekv-contact p {
  font-size: 0.88rem;
  color: var(--steel);
  line-height: 1.7;
  margin-bottom: 14px;
}

.rekv-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 0.9rem;
}

.rekv-contact-links a {
  color: var(--cyan);
}

/* ── CONTENT / BLOG ── */
.page-header-compact {
  padding-bottom: 48px;
}

.content-listing {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 48px 0 80px;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.content-card h2 {
  font-size: 1.1rem;
  line-height: 1.35;
}

.content-card h2 a:hover { color: var(--cyan); }

.content-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--steel);
}

.content-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  color: var(--cyan);
  font-size: 0.72rem;
}

.content-readmore {
  margin-top: auto;
  color: var(--cyan);
  font-size: 0.88rem;
}

.content-article {
  padding: 48px 0 80px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--steel);
  font-size: 0.85rem;
}

.article-body {
  max-width: 760px;
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text);
}

.article-body .lead {
  font-size: 1.05rem;
  color: var(--text-bright);
  margin-bottom: 28px;
}

.article-body h2 {
  font-size: 1.35rem;
  margin: 36px 0 14px;
  color: var(--text-bright);
}

.article-body h3 {
  font-size: 1.05rem;
  margin: 24px 0 10px;
  color: var(--text-bright);
}

.article-body p { margin-bottom: 16px; }

.article-body ul,
.article-body ol {
  margin: 0 0 18px 1.2rem;
}

.article-body li { margin-bottom: 8px; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 0.88rem;
}

.article-body th,
.article-body td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

.article-body th {
  background: var(--surface-2);
  color: var(--text-bright);
}

.article-body code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.85em;
}

.article-body pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  overflow-x: auto;
  margin: 18px 0 24px;
  font-size: 0.82rem;
}

.content-cta-box {
  margin-top: 48px;
  max-width: 760px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  background: linear-gradient(160deg, rgba(0, 229, 255, 0.08), var(--surface) 60%);
}

.content-cta-box h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.content-cta-box p {
  color: var(--steel);
  margin-bottom: 16px;
  line-height: 1.7;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.integration-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}

.integration-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.hosting-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.hosting-hero-stats .stat {
  text-align: center;
}

@media (max-width: 720px) {
  .hosting-hero-stats { grid-template-columns: 1fr; }
}

/* ── 404 PAGE ── */
.error-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.error-page-inner {
  text-align: center;
  max-width: 720px;
}

.error-code {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(4.5rem, 14vw, 9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
  text-shadow: 0 0 40px rgba(0, 229, 255, 0.25);
  margin-bottom: 12px;
}

.error-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.error-desc {
  color: var(--steel);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 28px;
  font-size: 0.85rem;
}

.error-links a {
  color: var(--steel);
  transition: color 0.2s;
}

.error-links a:hover {
  color: var(--cyan);
}

/* ── PAGE HEADER (sub-pages) ── */
.page-header {
  padding-top: 140px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--steel);
  max-width: 560px;
}

.site-notice {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--amber);
  padding: 12px 16px;
  border: 1px solid rgba(255, 184, 77, 0.25);
  border-radius: 10px;
  background: rgba(255, 184, 77, 0.06);
}

.pricing-soon {
  color: var(--steel) !important;
  font-style: italic;
}

.pricing-soon::after {
  content: "";
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes slideHint {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}

@keyframes swipeRight {
  0% { left: 4px; }
  40% { left: calc(100% - 48px); }
  50% { left: calc(100% - 48px); }
  55% { left: 4px; }
  100% { left: 4px; }
}

@keyframes floatParticle {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-20px) scale(1); }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1400px) and (min-width: 1181px) {
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 0.68rem; }
}
@media (max-width: 768px) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── FLOATING PARTICLES ── */
.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--cyan);
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle linear infinite;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════ */

/* ── TABLET / COMPACT DESKTOP (≤ 1180px) ── */
@media (max-width: 1180px) {
  section { padding: 80px 0; }

  /* NAV */
  .nav-links { display: none !important; }
  .hamburger { display: flex !important; }

  .docs-sidebar { display: none; }
  .docs-content { margin-left: 0; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }

  /* HERO */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
    text-align: center;
    width: 100%;
    min-width: 0;
  }
  .hero-grid > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .hero-desc {
    margin: 0 auto 40px !important;
    max-width: 100% !important;
    width: 100%;
  }
  .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* FEATURES */
  .features-grid { grid-template-columns: 1fr !important; }

  /* STATS */
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stat-item:nth-child(2) { border-right: none; }

  /* COMPARISON BLOCKS */
  .comparison-block {
    grid-template-columns: 1fr !important;
  }

  /* CONTACT */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }

  /* MARKETING GRID (3 cols) */
  .marketing-grid {
    grid-template-columns: 1fr !important;
  }
  .market-cards-grid {
    grid-template-columns: 1fr !important;
  }

  .pricing-note-grid,
  .pricing-comparison-note {
    grid-template-columns: 1fr !important;
  }

  .slider-demo {
    width: min(320px, 100%) !important;
  }
}

/* ── TABLET PORTRAIT (≤ 900px) — legacy alias ── */
@media (max-width: 900px) {
  .pricing-comparison-note {
    grid-template-columns: 1fr !important;
  }
}

/* ── MOBILE (≤ 640px) ── */
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .container { padding: 0 16px; }

  /* TYPOGRAPHY */
  h1 {
    font-size: 1.8rem !important;
    line-height: 1.2;
  }
  h2 {
    font-size: 1.4rem !important;
  }
  .section-title {
    font-size: 1.4rem !important;
    margin-bottom: 32px;
  }

  /* HERO */
  .hero { min-height: auto; padding: 120px 0 64px; }
  .hero-grid {
    text-align: left !important;
    gap: 32px !important;
  }
  .hero-label {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .hero-desc {
    margin: 0 0 32px !important;
    text-align: left;
  }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* SLIDER DEMO */
  .slider-demo { width: min(280px, 100%) !important; }
  .slider-demo-wrap { width: 100%; }

  /* STATS */
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .stat-item { padding: 24px 16px !important; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-value { font-size: 1.6rem !important; }

  /* FEATURES */
  .feature-card { padding: 28px 20px !important; }

  /* PRICING */
  .pricing-grid { grid-template-columns: 1fr !important; }
  .pricing-card { padding: 28px 20px !important; }

  /* STEPS */
  .step {
    grid-template-columns: 1fr !important;
    gap: 8px;
    padding: 28px 0;
    min-width: 0;
  }
  .step-num { font-size: 1.6rem !important; }
  .step-content { min-width: 0; max-width: 100%; }
  .step-code { font-size: 0.72rem !important; padding: 12px 14px !important; }

  /* COMPARISON TABLE */
  .comparison-table { font-size: 0.7rem !important; min-width: 560px; }
  .comparison-table th,
  .comparison-table td { padding: 10px 6px !important; }

  /* DOCS */
  .docs-layout { flex-direction: column !important; }
  .docs-code { font-size: 0.7rem !important; padding: 14px 12px !important; overflow-x: auto; }
  .docs-section h2 { font-size: 1.3rem !important; }
  .docs-param-table { font-size: 0.7rem !important; }

  /* FAQ */
  .faq-question { font-size: 0.9rem !important; padding: 18px 0 !important; }

  /* FORM */
  .form-group input,
  .form-group textarea,
  .form-group select { font-size: 0.95rem !important; }

  /* FOOTER */
  .footer-inner {
    flex-direction: column !important;
    gap: 16px;
    text-align: center;
  }
  .footer-links {
    flex-direction: column !important;
    align-items: center;
    gap: 12px !important;
  }

  /* BUTTONS */
  .btn { padding: 12px 24px !important; font-size: 0.75rem !important; }

  /* PAGE HEADER */
  .page-header { padding-top: 100px !important; padding-bottom: 48px !important; }
}

/* ── SMALL MOBILE (≤ 380px) ── */
@media (max-width: 380px) {
  h1 { font-size: 1.5rem !important; }
  .hero-cta { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr !important; }
  .stat-item { border-right: none !important; }
  .slider-demo { width: 250px !important; }
  .mobile-menu a { font-size: 1.1rem !important; }
}

/* ── COOKIE BANNER ── */
#cookieConsent,
.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  background: rgba(12, 16, 32, 0.96);
  border: 1px solid var(--border-light);
  padding: 16px 18px;
  border-radius: 12px;
  max-width: 720px;
  margin: 0 auto;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.cookie-consent-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-consent-actions .btn-cookie-accept {
  background: var(--cyan);
  color: #031018;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

.cookie-consent-actions .btn-cookie-essential {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

/* ── MOBILE: BLOG / CONTENT / SUBPAGES ── */
@media (max-width: 768px) {
  .content-listing {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 32px 0 48px;
  }

  .content-card {
    padding: 18px 16px;
  }

  .content-card h2 {
    font-size: 1rem;
  }

  .content-article {
    padding: 32px 0 48px;
  }

  .article-body {
    font-size: 0.9rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .article-body h2 {
    font-size: 1.15rem;
    margin-top: 28px;
  }

  .article-body table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.72rem;
  }

  .article-body th,
  .article-body td {
    padding: 8px 6px;
    white-space: nowrap;
  }

  .content-cta-box {
    margin-top: 32px;
    padding: 18px 16px;
  }

  .content-cta-box .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .content-cta-box .btn {
    width: 100%;
    justify-content: center;
  }

  .integration-grid,
  .hosting-hero-stats {
    grid-template-columns: 1fr !important;
  }

  .page-header p {
    max-width: 100%;
  }

  .article-meta {
    font-size: 0.78rem;
  }

  #cookieConsent,
  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    padding: 14px;
    font-size: 0.78rem;
  }

  .cookie-consent-actions {
    flex-direction: column;
  }

  .cookie-consent-actions button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 0.92rem;
    max-width: calc(100% - 56px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand svg {
    width: 24px;
    height: 24px;
  }

  nav .container {
    height: 56px;
    gap: 12px;
  }

  .footer-links {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px !important;
    text-align: left;
    align-items: start;
  }

  .footer-inner {
    align-items: flex-start !important;
    text-align: left !important;
  }

  .comparison-wrap,
  .table-scroll-wrap {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
