/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --bg-primary:     #FFFFFF;
  --bg-secondary:   #F7F7F9;
  --bg-tertiary:    #EEEEF2;
  --text-primary:   #0E0D1A;
  --text-secondary: #6B7280;
  --text-muted:     #9CA3AF;
  --accent:         #6B46FA;
  --accent-dim:     #5535D4;
  --accent-glow:    rgba(107,70,250,0.08);
  --border:         rgba(0,0,0,0.08);
  --shadow-sm:      0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:      0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:      0 8px 40px rgba(0,0,0,0.10);
  --radius-sm:      8px;
  --radius-md:      16px;
  --radius-lg:      24px;
  --radius-xl:      32px;
  --transition:     0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h:          68px;
  --font-display:   'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:      'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:      'JetBrains Mono', monospace;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: none;
}

html {
  /* scroll-behavior убран — плавный скролл обеспечивает Lenis */
  -webkit-text-size-adjust: 100%;
  overflow-x: clip; /* clip вместо hidden — не ломает скролл */
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  /* overflow-x убран с body — Chrome-баг: overflow-x:hidden на body блокирует скролл */
  cursor: none;
}

body.menu-open {
  overflow: hidden;
}

/* Горизонтальное переполнение блокируем на враппере, не на body */
main, footer, nav { overflow-x: clip; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: none;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { color: var(--text-secondary); line-height: 1.7; }

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

.section-head {
  margin-bottom: 56px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary, .btn-outline, .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px rgba(107,70,250,0.35);
}

.btn-primary:hover {
  background: var(--accent-dim);
  box-shadow: 0 8px 32px rgba(107,70,250,0.45);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  font-size: 0.875rem;
  box-shadow: 0 2px 16px rgba(107,70,250,0.30);
}

.nav-cta:hover {
  background: var(--accent-dim);
  color: #fff;
}

.btn-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =============================================
   CURSOR
   ============================================= */
.cursor,
.cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

.cursor {
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(107,70,250,0.5);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor.hover ~ .cursor-ring,
.cursor-ring.hover {
  width: 56px;
  height: 56px;
  border-color: var(--accent);
}

/* =============================================
   PAGE OVERLAY (transitions)
   ============================================= */
.page-overlay {
  position: fixed;
  inset: 0;
  background: var(--accent);
  z-index: 9990;
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
}

/* =============================================
   PRELOADER
   ============================================= */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9980;
}

.preloader-logo {
  width: 280px;
  height: auto;
}

/* =============================================
   NAV
   ============================================= */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  gap: 32px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
}

#nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-color: rgba(0,0,0,0.07);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: height .3s, opacity .2s;
}
#nav.scrolled .logo-img { height: 36px; }
.nav-logo:hover .logo-img { opacity: 0.8; }

/* Links */
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: .01em;
  transition: color .2s;
  position: relative;
  cursor: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Right group */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Messengers */
.nav-messengers {
  display: flex;
  gap: 6px;
}

.messenger-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: none;
  outline: none;
  white-space: nowrap;
  transition: transform .15s, box-shadow .2s, opacity .2s;
  border: none;
  line-height: 1;
}

.messenger-btn:hover { transform: translateY(-1px); }
.messenger-btn:active { transform: translateY(0); }

.messenger-btn--tg {
  background: #2AABEE;
  color: #fff;
  box-shadow: 0 2px 8px rgba(42,171,238,.2);
}
.messenger-btn--tg:hover { background: #1a9fd8; color: #fff; }

.messenger-btn--max {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(107,70,250,.2);
}
.messenger-btn--max:hover { background: var(--accent-dim); color: #fff; }

.messenger-btn__text { line-height: 1; }

/* CTA */
.nav-cta {
  background: var(--text-primary);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: none;
  text-decoration: none;
  transition: background .2s, transform .15s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.nav-cta:hover {
  background: #252333;
  transform: translateY(-1px);
  color: #fff;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: none;
  padding: 4px;
  z-index: 200;
}

.burger-line {
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  display: block;
  transition: transform .3s, opacity .3s;
}

.burger.open .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open .burger-line:nth-child(2) { opacity: 0; }
.burger.open .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MARQUEE STRIP ── */
.site-marquee {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 99;
  height: 32px;
  background: var(--text-primary);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.site-marquee__track {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  animation: siteMarquee 25s linear infinite;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.site-marquee__sep {
  color: var(--accent);
  opacity: 0.7;
}

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

.site-marquee:hover .site-marquee__track {
  animation-play-state: paused;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 890;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.mobile-nav a {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition);
}

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

.mobile-nav .btn-primary {
  margin-top: 16px;
  font-size: 1rem;
}

/* Nav responsive */
@media (max-width: 1100px) {
  #nav { padding: 0 32px; gap: 16px; }
  .nav-links { gap: 20px; }
  .messenger-btn__text { display: none; }
  .messenger-btn { padding: 7px 9px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-messengers { display: none; }
  .burger { display: flex; }
  .logo-img { height: 34px; }
}

@media (max-width: 768px) {
  .site-marquee { height: 28px; font-size: 9px; }
}

/* =============================================
   MAIN CONTENT
   ============================================= */
main {
  padding-top: calc(var(--nav-h) + 32px);
  min-height: 60vh;
}

/* hero old block removed — see HERO below */

/* =============================================
   SECTION BACKGROUNDS
   ============================================= */
.bg-secondary { background: var(--bg-secondary); }
.bg-primary   { background: var(--bg-primary); }

/* =============================================
   REVEAL ANIMATIONS
   ============================================= */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal { transform: translateY(32px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal,
.no-js .reveal-left,
.no-js .reveal-right {
  opacity: 1;
  transform: none;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-top {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  max-width: 280px;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  filter: brightness(10);
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col {
  min-width: 120px;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

.footer-tg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-tg:hover { color: #fff; }

/* =============================================
   BREADCRUMBS
   ============================================= */
.breadcrumbs {
  padding: 20px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--text-secondary); }

.breadcrumbs .sep {
  color: var(--border);
  user-select: none;
}

/* =============================================
   TAGS & BADGES
   ============================================= */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--accent-glow);
  border: 1px solid rgba(107,70,250,0.12);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

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

/* =============================================
   COUNTER / STATS
   ============================================= */
.stats-row {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 140px;
  padding: 32px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.stat-item:last-child { border-right: none; }

.stat-item .stat-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  text-align: center;
  padding: 100px 0;
  background: var(--bg-primary);
}

.cta-section .section-title { max-width: 480px; margin: 0 auto 12px; }
.cta-section .section-sub  { margin: 0 auto 40px; text-align: center; }

.cta-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-form input {
  flex: 1;
  min-width: 200px;
  height: 52px;
  padding: 0 20px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-size: 0.95rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: border-color var(--transition);
  outline: none;
}

.cta-form input:focus { border-color: var(--accent); }
.cta-form input.error { border-color: #EF4444; }
.cta-form input::placeholder { color: var(--text-muted); }

.cta-success {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px;
  display: none;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  section { padding: 80px 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  #nav { padding: 0 24px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  section { padding: 64px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-cols { gap: 32px; }
  .logo-img { height: 36px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .section-head { margin-bottom: 36px; }
  .stats-row { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .btn-actions { flex-direction: column; align-items: flex-start; }
  #nav { padding: 0 16px; }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-spotlight {
  position: absolute;
  width: 60vw;
  height: 60vh;
  top: -10%;
  right: -5%;
  background: radial-gradient(ellipse at center,
    rgba(107,70,250,0.10) 0%,
    rgba(107,70,250,0.04) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-diag-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 48px;
  align-items: center;
}

/* Left column */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-glow);
  border: 1px solid rgba(107,70,250,0.15);
  border-radius: 100px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

.hero-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.hero-title__row--accent {
  position: relative;
  color: var(--accent);
  display: inline-block;
}

.hero-title__underline {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 10px;
  overflow: visible;
  pointer-events: none;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 40px;
}

.hero-sub strong { color: var(--text-primary); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* Right column */
.hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  opacity: 0;
}

/* Stats card */
.hero-stats {
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.hero-stat {
  padding: 28px 36px;
  border-bottom: 1px solid var(--border);
}

.hero-stat:last-child { border-bottom: none; }

.hero-stat__num {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.hero-stat__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 60px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 40px;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { left: -100%; }
  100% { left: 100%; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero { padding: 40px 0 80px; }
  .hero-scroll-hint { left: 24px; }
}

@media (max-width: 768px) {
  .hero { padding: 32px 0 60px; min-height: auto; }
  .hero-scroll-hint { display: none; }
}

/* =============================================
   CTA SECTION — REFINED
   ============================================= */
.cta-section {
  border-top: 1px solid var(--border);
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 100px 0;
}

.cta-title {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.cta-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 48px;
}

.cta-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.cta-input {
  flex: 1;
  height: 52px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 0 20px;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition);
  cursor: text;
}

.cta-input::placeholder { color: var(--text-muted); }
.cta-input:focus  { border-color: rgba(107,70,250,0.5); }
.cta-input.error  { border-color: #EF4444; }

.cta-success {
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  min-height: 24px;
}

/* Portfolio empty state */
.portfolio-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.portfolio-empty p { margin-bottom: 20px; }

@media (max-width: 768px) {
  .cta-form { flex-direction: column; align-items: stretch; }
  .cta-input { height: 52px; }
  .cta-inner { padding: 64px 0; }
  .cta-title { font-size: 2.2rem; }
}

/* ── Кнопки мессенджеров ── */
.nav-messengers {
  display: flex;
  gap: 8px;
  align-items: center;
}

.messenger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: none;
  outline: none;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s;
  border: 2px solid transparent;
}

.messenger-btn:hover { transform: translateY(-2px); }
.messenger-btn:active { transform: translateY(0); }

.messenger-btn--tg {
  background: #2AABEE;
  color: #fff;
  box-shadow: 0 2px 12px rgba(42,171,238,0.25);
}
.messenger-btn--tg:hover {
  background: #1a9fd8;
  box-shadow: 0 6px 20px rgba(42,171,238,0.4);
  color: #fff;
}

.messenger-btn--max {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(107,70,250,0.25);
}
.messenger-btn--max:hover {
  background: var(--accent-dim);
  box-shadow: 0 6px 20px rgba(107,70,250,0.4);
  color: #fff;
}

.messenger-btn__text { line-height: 1; }

@media (max-width: 1200px) {
  .messenger-btn__text { display: none; }
  .messenger-btn { padding: 9px 10px; }
}

@media (max-width: 768px) {
  .nav-messengers { display: none; }
}
