/* ============================================================
   ДВОЕ — стили лендинга
   Все цвета собраны в блоке :root ниже — меняйте их там.
   ============================================================ */

:root {
  /* --- Цвета --- */
  --pink: #ff6fa5;          /* основной розовый */
  --purple: #8b5cf6;        /* фиолетовый */
  --lilac: #c9a7ff;         /* лиловый */
  --bg: #fdfaff;            /* фон страницы */
  --bg-soft: #f7f0ff;       /* фон «мягких» секций */
  --card: #ffffff;          /* фон карточек */
  --text: #2b2440;          /* основной текст */
  --text-muted: #7a7290;    /* приглушённый текст */
  --border: #efe6fb;        /* границы */

  /* --- Градиент кнопок --- */
  --gradient: linear-gradient(135deg, var(--pink) 0%, var(--purple) 100%);

  /* --- Скругления --- */
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 32px;

  /* --- Тени --- */
  --shadow-soft: 0 10px 30px rgba(139, 92, 246, 0.08);
  --shadow-card: 0 18px 44px rgba(139, 92, 246, 0.12);
  --shadow-button: 0 12px 26px rgba(255, 111, 165, 0.32);
}

/* ---------- Базовые стили ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }

.container {
  width: min(1160px, 100% - 40px);
  margin: 0 auto;
}

.center { text-align: center; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

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

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-button);
}

.btn-white {
  background: #fff;
  color: var(--purple);
  box-shadow: 0 12px 26px rgba(43, 36, 64, 0.16);
}

.btn-small { padding: 11px 20px; font-size: 15px; }
.btn-large { padding: 18px 34px; font-size: 17px; }
.btn-block { width: 100%; padding: 16px 24px; font-size: 17px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 250, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.03em;
}

.logo-dot { color: var(--pink); }

.header-nav { display: flex; gap: 26px; }

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.header-nav a:hover { color: var(--purple); }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 90px;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(201, 167, 255, 0.35) 0%, rgba(253, 250, 255, 0) 70%),
    radial-gradient(50% 50% at 5% 20%, rgba(255, 111, 165, 0.22) 0%, rgba(253, 250, 255, 0) 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  margin: 0 0 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  color: var(--purple);
  font-size: 14px;
  font-weight: 600;
}

.hero-title { font-size: clamp(34px, 5vw, 58px); font-weight: 800; }

.hero-subtitle {
  margin: 20px 0 32px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.hero-proof p { margin: 0; font-size: 14px; color: var(--text-muted); }

.hero-proof-avatars { display: flex; }

.hero-proof-avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  margin-left: -12px;
  box-shadow: var(--shadow-soft);
}

.hero-proof-avatars img:first-child { margin-left: 0; }

/* Композиция из карточек */
.hero-collage {
  position: relative;
  height: 620px;
}

.collage-card {
  position: absolute;
  margin: 0;
  width: 220px;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-card);
}

.collage-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
}

.collage-card figcaption {
  padding: 12px 8px 4px;
  display: flex;
  flex-direction: column;
}

.collage-card figcaption strong { font-size: 16px; }
.collage-card figcaption span { font-size: 13px; color: var(--text-muted); }

.collage-card-1 { top: 0; left: 2%; transform: rotate(-5deg); }
.collage-card-2 { top: 150px; right: 0; transform: rotate(5deg); }
.collage-card-3 { bottom: -30px; left: 14%; transform: rotate(-2deg); }

.collage-heart {
  position: absolute;
  top: 268px;
  left: 44%;
  font-size: 34px;
  background: #fff;
  border-radius: 50%;
  padding: 12px;
  box-shadow: var(--shadow-card);
  z-index: 2;
}

/* ---------- Общие секции ---------- */
.section { padding: 90px 0; }
.section-soft { background: var(--bg-soft); }

.section-eyebrow {
  margin: 0 0 10px;
  text-align: center;
  color: var(--pink);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
}

.section-title {
  text-align: center;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
}

.section-lead {
  margin: 14px auto 46px;
  max-width: 560px;
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
}

/* ---------- Карточки анкет ---------- */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.profile-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.profile-photo { aspect-ratio: 3 / 4; overflow: hidden; }

.profile-photo img { width: 100%; height: 100%; object-fit: cover; }

.profile-body { padding: 20px 20px 24px; }

.profile-name { font-size: 19px; font-weight: 800; }

.profile-city {
  margin: 4px 0 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.profile-city::before { content: "📍 "; }

.profile-about {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--text);
}

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

.profile-tags span {
  background: var(--bg-soft);
  color: var(--purple);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}

.profiles-note {
  margin-top: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Преимущества ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.benefit-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  text-align: center;
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,111,165,0.16), rgba(139,92,246,0.16));
  font-size: 28px;
  margin-bottom: 18px;
}

.benefit-card h3 { font-size: 19px; margin-bottom: 10px; }

.benefit-card p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* ---------- Шаги ---------- */
.steps-grid {
  list-style: none;
  margin: 0 0 50px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 16px;
}

.step-card h3 { font-size: 18px; }

/* ---------- Финальный призыв ---------- */
.final-cta { padding: 80px 0; }

.final-cta-inner {
  background: var(--gradient);
  border-radius: 40px;
  padding: 64px 30px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-card);
}

.final-cta-inner h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }

.final-cta-inner p { margin: 16px 0 30px; opacity: 0.92; font-size: 17px; }

/* ---------- Подвал ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 30px;
  background: #fff;
}

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

.footer-logo { margin: 0; font-size: 20px; font-weight: 800; }

.footer-tagline { margin: 4px 0 0; color: var(--text-muted); font-size: 15px; }

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

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

.footer-copy {
  margin: 28px 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------- Модальное окно ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(43, 36, 64, 0.45);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade-in 0.2s ease;
}

.modal-overlay[hidden] { display: none; }

.modal {
  position: relative;
  width: min(440px, 100%);
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 38px 32px 32px;
  box-shadow: 0 30px 70px rgba(43, 36, 64, 0.28);
  animation: pop-in 0.24s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-title { font-size: 26px; font-weight: 800; }

.modal-text { margin: 10px 0 24px; color: var(--text-muted); font-size: 15px; }

.field { display: block; margin-bottom: 16px; }

.field span {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
}

.field input:focus {
  outline: none;
  border-color: var(--lilac);
  box-shadow: 0 0 0 4px rgba(201, 167, 255, 0.25);
}

.modal-hint {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Капча-ползунок ---------- */
.captcha {
  position: relative;
  height: 62px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.captcha-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(135deg, rgba(255,111,165,0.35), rgba(139,92,246,0.35));
}

.captcha-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 15px;
  pointer-events: none;
}

.captcha-handle {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 22px;
  cursor: grab;
  box-shadow: var(--shadow-button);
}

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

.captcha.is-done .captcha-handle { background: #4ade80; box-shadow: none; }

.captcha-done {
  margin: 18px 0 0;
  text-align: center;
  font-weight: 700;
  color: #16a34a;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

/* Планшет */
@media (max-width: 1024px) {
  .profiles-grid { grid-template-columns: repeat(3, 1fr); }
  .benefits-grid,
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-collage { height: 600px; max-width: 560px; }
  .header-nav { display: none; }
}

/* Телефон */
@media (max-width: 680px) {
  .section { padding: 62px 0; }
  .hero { padding: 50px 0 60px; }
  .profiles-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .benefits-grid,
  .steps-grid { grid-template-columns: 1fr; }
  .profile-body { padding: 16px 16px 20px; }
  .profile-name { font-size: 17px; }
  .btn-large { width: 100%; padding: 16px 24px; }
  .header-inner .btn { display: none; }
  .final-cta-inner { padding: 46px 22px; border-radius: 30px; }

  /* Композиция превращается в аккуратный ряд карточек */
  .hero-collage {
    height: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .collage-card {
    position: static;
    width: auto;
    transform: none;
    padding: 8px;
  }
  .collage-card img { height: 180px; }
  .collage-card-3 { grid-column: span 2; }
  .collage-card-3 img { height: 220px; }
  .collage-heart { display: none; }
}


/* ============================================================
   ШАГ 3 — пустой блок под вашу форму регистрации по номеру
   ============================================================ */
.registration-slot {
  min-height: 220px;
  border: 1px dashed var(--border, #e7e0ef);
  border-radius: 20px;
  padding: 20px;
  background: #fdfbff;
}


/* ============================================================
   РЕКВИЗИТЫ КОМПАНИИ И ССЫЛКА «АДМИН» В ПОДВАЛЕ
   ============================================================ */
.footer-company {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border, #e7e0ef);
  color: var(--text-muted, #7a7186);
  font-size: 14px;
  line-height: 1.6;
}
.footer-company p { margin: 2px 0; }
.footer-company a { color: inherit; text-decoration: none; }
.footer-company a:hover { color: var(--purple, #7c5cff); }

.footer-admin {
  margin: 10px 0 0;
  text-align: center;
}
.footer-admin a {
  font-size: 11px;
  color: #cfc8d8;
  text-decoration: none;
  opacity: 0.6;
}
.footer-admin a:hover { opacity: 1; color: var(--purple, #7c5cff); }

/* Неактивная кнопка (например, «Продолжить» без заполненных полей) */
button:disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
