/* ============================================================
   Страница «Контакты» (contacts/)
   ============================================================ */

.ct-orb {
  position: absolute;
  width: 551px;
  height: 400px;
  left: calc(50% + 5px);
  top: 120px;
  background: radial-gradient(ellipse, rgba(77, 107, 255, 0.3) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Общие заголовки/бейджи, общие с другими страницами ---------- */
.ct-h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.ct-body {
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text);
}
.ct-eyebrow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 620px;
}

/* ============================================================
   ЭКРАН 1 — HERO + ФОРМА ЗАЯВКИ
   ============================================================ */
.ct-hero-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(40px, 5vw, 90px);
  position: relative;
}

.ct-hero-left {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 3vw, 48px);
  width: clamp(420px, 36vw, 600px);
  flex-shrink: 0;
}
.ct-hero-left > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* --fs-hero-tight, а не общий H1: на широких экранах (1920) заголовок
   при общем кегле уходил в четвёртую строку (см. tokens.css). */
.ct-hero-title {
  font-size: var(--fs-hero-tight);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.ct-hero-desc {
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text);
}

.ct-hero-buttons { display: flex; gap: 12px; }
.ct-hero-btn-col { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Форма заявки ---------- */
.ct-form {
  position: relative;
  z-index: 1;
  width: clamp(420px, 38vw, 600px);
  flex-shrink: 0;
  padding: clamp(20px, 2vw, 28px);
  border-radius: var(--r-card-lg);
  border: 0.5px solid var(--text-20);
  background: rgba(232, 237, 247, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 24px);
}

.ct-form-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}
.ct-form-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.ct-form-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ct-form-label {
  font-size: var(--fs-card);
  font-weight: 600;
  color: var(--text);
}

.ct-form-textarea {
  width: 100%;
  min-height: 60px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-30);
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: var(--fs-card);
  line-height: 1.3;
  resize: none;
}
.ct-form-textarea::placeholder { color: var(--text-30); }

.ct-form-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.ct-form-option {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--text-50);
  font-size: var(--fs-card);
  text-align: left;
  transition: color 0.2s var(--ease);
}
.ct-form-option.selected { color: var(--text); }
.ct-form-option-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-30);
  transition: color 0.2s var(--ease);
}
.ct-form-option.selected .ct-form-option-icon { color: var(--accent); }
.ct-form-option-icon svg { width: 100%; height: 100%; }

.ct-form-inputs { display: flex; gap: 12px; }
.ct-form-input-wrap { flex: 1; min-width: 0; }
.ct-form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-30);
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: var(--fs-card);
}
.ct-form-input::placeholder { color: var(--text-30); }

.ct-form-submit {
  width: 100%;
  height: calc(var(--fs-btn) * 2.9);
  border-radius: var(--r-btn);
  border: none;
  background: var(--surface-30);
  color: var(--text-30);
  font-family: inherit;
  font-weight: 500;
  font-size: var(--fs-btn);
  cursor: not-allowed;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), filter 0.2s var(--ease);
}
.ct-form-submit.ready { background: var(--accent); color: var(--text); cursor: pointer; }
.ct-form-submit.ready:hover { filter: brightness(1.1); }

.ct-form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: clamp(40px, 5vw, 64px) 20px;
}
.ct-form-success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-15);
  border: 0.5px solid var(--accent-30);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ct-form-success-icon svg { width: 18px; height: 18px; }
.ct-form-success-title { font-size: var(--fs-title); font-weight: 600; color: var(--text); }
.ct-form-success-desc { font-size: var(--fs-card); color: var(--text-50); max-width: 360px; }

/* ============================================================
   ЭКРАН 2 — ПРОЦЕСС ПОСЛЕ ОТПРАВКИ
   ============================================================ */
.ct-process-grid {
  display: flex;
  gap: clamp(40px, 4.2vw, 80px);
  align-items: center;
}

.ct-process-left {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2vw, 28px);
  width: clamp(420px, 36vw, 620px);
  flex-shrink: 0;
}

.ct-process-scroll { display: flex; flex-direction: column; gap: 8px; }
.ct-process-pagination {
  font-size: var(--fs-body);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.ct-process-pagination .current { color: var(--accent); }
.ct-process-pagination .sep, .ct-process-pagination .total { color: var(--text-50); }

.ct-process-track {
  width: clamp(160px, 12vw, 220px);
  height: 6px;
  background: var(--track);
  border-radius: 999px;
  overflow: hidden;
}
.ct-process-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.5s var(--ease-out);
}

.ct-process-panel {
  flex: 1;
  min-width: 0;
  padding: clamp(24px, 2.5vw, 32px);
  border-radius: var(--r-card-lg);
  border: 0.5px solid var(--text-20);
  background: rgba(232, 237, 247, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  min-height: clamp(220px, 20vw, 280px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.6vw, 20px);
}
.ct-process-panel-head { display: flex; flex-direction: column; gap: 6px; }
.ct-process-panel-stage { font-size: var(--fs-label); color: var(--text-50); }
.ct-process-panel-title {
  font-size: var(--fs-title);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.ct-process-panel-divider { height: 0.5px; background: var(--text-20); }
.ct-process-panel-desc { font-size: var(--fs-card); color: var(--text-50); line-height: 1.4; }
.ct-process-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-card);
  color: var(--text);
  margin-top: auto;
}
.ct-process-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }

/* Сегменты — только мобильная замена счётчику/треку, см. @media ниже */
.ct-process-segments { display: none; }

/* ============================================================
   ЭКРАН 3 — ДРУГИЕ ТОЧКИ ВХОДА
   ============================================================ */
.ct-reasons-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: clamp(32px, 3.5vw, 48px);
}
.ct-reasons-cta-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  flex-shrink: 0;
  margin-top: 4px;
}

.ct-reasons-grid { display: flex; gap: clamp(20px, 2vw, 28px); }
.ct-reason-card {
  flex: 1;
  padding: clamp(20px, 2vw, 28px);
  border-radius: var(--r-card-lg);
  border: 0.5px solid var(--text-20);
  background:
    linear-gradient(160deg, rgba(77, 107, 255, 0.12) 0%, rgba(18, 20, 26, 0) 60%),
    rgba(232, 237, 247, 0.02);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ct-reason-num { font-size: var(--fs-label); color: var(--text-50); }
.ct-reason-title { font-size: var(--fs-title); font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.ct-reason-desc { font-size: var(--fs-card); color: var(--text-50); line-height: 1.4; flex: 1; }
.ct-reason-cta { align-self: flex-start; margin-top: 8px; }

/* Сегменты — только мобильная карусель, см. @media ниже */
.ct-reasons-segments { display: none; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1024px) {
  /* ---------- Экран 1 ---------- */
  .ct-hero-grid { flex-direction: column; align-items: stretch; gap: clamp(32px, 8vw, 48px); }
  .ct-hero-left { width: 100%; gap: clamp(28px, 6vw, 40px); }
  .ct-hero-buttons { flex-direction: column; align-items: stretch; }
  .ct-hero-btn-col .btn { width: 100%; }
  .ct-form { width: 100%; }
  .ct-form-inputs { flex-direction: column; }

  /* ---------- Экран 2 ---------- */
  .ct-process-grid { flex-direction: column; align-items: stretch; gap: clamp(24px, 6vw, 36px); }
  .ct-process-left { width: 100%; }
  .ct-process-scroll { display: none; }
  .ct-process-segments {
    display: flex;
    gap: 6px;
    width: 100%;
  }
  .ct-process-segment {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: var(--track);
  }
  .ct-process-segment.active { background: var(--accent); }

  /* ---------- Экран 3 ---------- */
  .ct-reasons-head { flex-direction: column; gap: 20px; }
  .ct-reasons-cta-col { width: 100%; margin-top: 0; }
  .ct-reasons-cta-col .btn { width: 100%; }

  /* Карусель: все три карточки лежат в окне друг на друге и ездят по
     горизонтали (initCardCarousel в nav.js — окно, положение и высоту
     держит он). Раньше здесь было display: none / flex — карточка
     менялась скачком, соседнюю было не подцепить пальцем, а
     спрятанная не отдавала высоту, и окно прыгало под самую длинную
     из трёх только после смены. */
  .ct-reasons-grid { display: block; }
  .ct-reason-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }

  .ct-reasons-segments {
    display: flex;
    gap: 6px;
    margin-top: clamp(20px, 5vw, 28px);
  }
  .ct-reason-segment {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: var(--track);
    border: none;
    padding: 0;
    cursor: pointer;
  }
  .ct-reason-segment.active { background: var(--accent); }
  .ct-reason-segment-fill { display: none; }
}
