/* =========================================================
   ПРОТОБАЗА — фирменный стиль
   Палитра как в логотипе:
   - фон: глубокий тёмно-синий, почти чёрный
   - акценты: яркий cyan (бирюзовый) -> электрический синий
   - текст: белый, светло-серый
   ========================================================= */

:root {
  --bg: #060a12;            /* глубокий тёмно-синий / почти чёрный */
  --bg-2: #0a1220;          /* чуть светлее для панелей */
  --bg-3: #101a2e;          /* карточки */
  --line: #1b2a45;          /* тонкие линии/рамки */
  --white: #ffffff;
  --gray: #c7d0dc;          /* светло-серый текст */
  --gray-dim: #8a95a8;      /* приглушённый серый */
  --cyan: #00e5ff;          /* яркий бирюзово-циановый */
  --blue: #2b6bff;          /* электрический синий */
  --cyan-soft: rgba(0, 229, 255, 0.12);
  --blue-soft: rgba(43, 107, 255, 0.14);
  --grad: linear-gradient(90deg, var(--cyan), var(--blue));
  --grad-vert: linear-gradient(180deg, var(--cyan), var(--blue));
  --radius: 14px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ---------- простая версия (лендинг с одной формой) ---------- */
.page {
  min-height: calc(100vh - 160px);
  padding: 48px 0 40px;
}
.container.narrow { max-width: 560px; margin: 0 auto; }
.logo-wrap {
  text-align: center;
  margin-bottom: 32px;
}
.logo-img {
  width: 220px;
  max-width: 62vw;
  height: auto;
  display: inline-block;
  border-radius: 12px;
  filter: drop-shadow(0 12px 40px rgba(0, 229, 255, 0.22));
}
.consent { margin-top: 4px; }
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--gray-dim);
  line-height: 1.5;
}
.checkbox input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  accent-color: var(--cyan);
  cursor: pointer;
}
.checkbox a { color: var(--cyan); text-decoration: none; }
.checkbox a:hover { text-decoration: underline; }
.checkbox.invalid input { outline: 2px solid #ff4757; outline-offset: 2px; }
.form-sub.note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
}
.form-sub.note a { color: var(--cyan); text-decoration: none; }
.form-sub.note a:hover { text-decoration: underline; }
.legal {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--gray-dim);
  text-align: center;
  line-height: 1.7;
}
.legal a { color: var(--cyan); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal b { color: var(--gray); font-weight: 600; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--gray);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   СЛАЙД-ПОДАЧА: логотип (экран 1) -> форма (экран 2)
   ========================================================= */
html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  height: 100%;
}
body {
  height: 100%;
  margin: 0;
}
.slide {
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  position: relative;
}
.slide-inner {
  width: 100%;
  max-width: 560px;
  text-align: center;
}

/* экран 1 — логотип */
.logo-slide .slide-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.logo-slide .logo-img {
  width: 260px;
  max-width: 78vw;
  height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 12px 40px rgba(0, 229, 255, 0.25));
  animation: fadeUp 0.8s ease forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* подсказка прокрутки — анимированная стрелка */
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 60;
  pointer-events: none;
}
/* стрелка кликабельна, ненавязчивая, статичная (без анимации) */
.scroll-hint .arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 229, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 229, 255, 0.6);
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  background: transparent;
  box-shadow: none;
  opacity: 0.8;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.25s, background 0.25s;
}
.scroll-hint .arrow:hover {
  opacity: 1;
  background: rgba(0, 229, 255, 0.1);
}

/* экран 2 — форма: максимально компактно, чтобы влезло на 1 экран */
.form-slide .slide-inner {
  max-width: 520px;
  margin: 0 auto;
}
.form-slide .form-card {
  text-align: left;
  padding: 18px 22px;
}
.form-slide .form-card h3 {
  font-size: 18px;
  margin-bottom: 2px;
}
.form-slide .form-card .form-sub {
  font-size: 12px;
  margin-bottom: 10px;
}
.form-slide .field { margin-bottom: 9px; }
.form-slide .field label {
  font-size: 12px;
  margin-bottom: 4px;
}
.form-slide .field input,
.form-slide .field textarea {
  padding: 8px 12px;
  font-size: 13px;
}
.form-slide .field textarea { min-height: 34px; }
.form-slide .btn-submit { padding: 11px; font-size: 15px; }
.form-slide .consent { margin-top: 0; }
.form-slide .checkbox { font-size: 12px; line-height: 1.4; }
.form-slide .form-sub.note { margin: 9px 0 0; font-size: 11px; }
.form-slide .opt { color: var(--gray-dim); font-weight: 400; font-size: 11px; }
/* прижимаем футер к низу экрана формы */
.form-slide { flex-direction: column; justify-content: center; padding: 10px 16px; }
.form-slide .footer {
  margin-top: auto;
  padding: 8px 0 8px;
  border-top: 0;
}
.form-slide .footer p,
.form-slide .footer .legal {
  font-size: 11px;
  margin: 1px 0;
  line-height: 1.35;
}
.form-slide .footer .container {
  flex-direction: column;
  gap: 1px;
  text-align: center;
}
.form-slide .footer .brand-name { font-size: 13px; }

/* ---------- фоновые декоративные сетки ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(0, 229, 255, 0.06), transparent 60%),
    radial-gradient(50% 45% at 85% 10%, rgba(43, 107, 255, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 50% 20%, #000 30%, transparent 90%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ---------- шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 10, 18, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { height: 44px; width: 44px; border-radius: 8px; display: block; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: 0.5px; }
.brand-name span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--white); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad);
  transition: width 0.25s;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--grad);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
}
.nav-cta::after { display: none; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: 0; }
.burger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 80px; }
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--cyan);
  background: var(--cyan-soft);
  margin-bottom: 22px;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  color: var(--white);
  font-weight: 800;
  letter-spacing: -1px;
}
.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub {
  margin: 22px 0 32px;
  font-size: 17px;
  color: var(--gray);
  max-width: 520px;
}
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 30px rgba(0, 229, 255, 0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0, 229, 255, 0.35); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.hero-visual { position: relative; }
.logo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 229, 255, 0.10), 0 20px 60px rgba(0,0,0,0.5);
}
.logo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, transparent, rgba(0,229,255,0.10), transparent, rgba(43,107,255,0.10), transparent);
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.logo-frame img { position: relative; max-width: 74%; max-height: 74%; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(0,229,255,0.25)); border-radius: 8px; }
.hero-stats {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat { border-left: 2px solid var(--grad); background: var(--grad); padding: 4px 0 4px 16px; }
.stat b { display: block; font-size: 26px; color: var(--white); font-weight: 800; }
.stat span { font-size: 13px; color: var(--gray-dim); }

/* ---------- секции ---------- */
.section { padding: 80px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.sec-head { text-align: center; max-width: 700px; margin: 0 auto 52px; }
.sec-tag { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; font-weight: 600; }
.sec-head h2 { font-size: clamp(26px, 3.5vw, 40px); color: var(--white); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 14px; }
.sec-head p { color: var(--gray-dim); font-size: 16px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0,229,255,0.35); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad);
  font-size: 24px;
  margin-bottom: 18px;
}
.card h3 { color: var(--white); font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--gray-dim); font-size: 14.5px; }

/* ---------- этапы / процесс ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.step-num {
  counter-increment: step;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.step-num::before { content: "0" counter(step); }
.step h4 { color: var(--white); font-weight: 700; margin-bottom: 8px; font-size: 16px; }
.step p { color: var(--gray-dim); font-size: 14px; }

/* ---------- контакты ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info h2 { color: var(--white); font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 16px; }
.contact-info p { color: var(--gray-dim); margin-bottom: 28px; }
.contact-methods { display: flex; flex-direction: column; gap: 16px; }
.method { display: flex; gap: 14px; align-items: flex-start; }
.method-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.method b { color: var(--white); display: block; font-size: 15px; }
.method span { color: var(--gray-dim); font-size: 14px; }

/* форма */
.form-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.form-card h3 { color: var(--white); font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.form-card .form-sub { color: var(--gray-dim); font-size: 14px; margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--gray); margin-bottom: 7px; font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-soft);
}
.field input::placeholder, .field textarea::placeholder { color: var(--gray-dim); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* honeypot — скрытое поле-ловушка для ботов */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* сообщения */
.msg {
  display: none;
  padding: 13px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 18px;
}
.msg.show { display: block; }
.msg-ok { background: rgba(0, 229, 255, 0.10); border: 1px solid var(--cyan); color: var(--cyan); }
.msg-err { background: rgba(255, 71, 87, 0.10); border: 1px solid #ff4757; color: #ff7b85; }

.btn-submit { width: 100%; justify-content: center; padding: 15px; font-size: 16px; }
.btn-submit[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- футер ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  margin-top: 20px;
}
.footer .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .brand-name { font-size: 17px; }
.footer p { color: var(--gray-dim); font-size: 13px; }
.footer a { color: var(--cyan); text-decoration: none; }

/* ---------- адаптив ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .logo-img {
    width: 168px;
    max-width: 72vw;
  }
  .page { padding: 28px 0 24px; }
  .logo-wrap { margin-bottom: 22px; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 20px;
    gap: 20px;
    align-items: flex-start;
  }
  .cards, .steps, .field-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat b { font-size: 20px; }
  .btn { width: 100%; justify-content: center; }
}
