/* ===========================================================================
   MomentX — лендинг. Фирменный стиль (тёмная тема, персик → лаванда).
   =========================================================================== */

:root {
  --bg:          #0a0a14;
  --bg-2:        #0f0f1a;
  --surface:     #16182b;
  --surface-2:   #1d1f36;
  --surface-3:   #24264180;
  --border:      rgba(255, 255, 255, .08);
  --border-2:    rgba(255, 255, 255, .14);

  --text:        #f5f5fa;
  --muted:       #a7a7c2;
  --muted-2:     #8a8aa6;

  --peach:       #f48da0;
  --peach-2:     #e8758c;
  --lavender:    #9c6eff;
  --lavender-2:  #b388ff;
  --gold:        #d4af37;
  --green:       #2ecc71;

  --grad:        linear-gradient(135deg, #f48da0 0%, #9c6eff 100%);
  --grad-2:      linear-gradient(135deg, #b388ff 0%, #f48da0 100%);
  --grad-soft:   linear-gradient(135deg, rgba(244,141,160,.16), rgba(156,110,255,.16));

  --radius:      18px;
  --radius-sm:   12px;
  --shadow:      0 18px 50px -12px rgba(0, 0, 0, .6);
  --shadow-glow: 0 10px 40px -8px rgba(156, 110, 255, .5);
  --container:   1200px;
  --header-h:    72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 46px -6px rgba(156,110,255,.65); }
.btn-ghost {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .09); border-color: var(--lavender-2); }
.btn-lg { padding: 16px 36px; font-size: 16px; border-radius: 14px; }

/* видимый фокус для клавиатурной навигации */
.btn:focus-visible,
.nav a:focus-visible,
.city-chip:focus-visible,
.slider-arrow:focus-visible,
.footer-links a:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--lavender-2);
  outline-offset: 2px;
  border-radius: 8px;
}
.profile-card:focus-visible { box-shadow: 0 0 0 3px var(--lavender-2); outline: none; }

/* ===========================================================================
   Header
   =========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 20, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.5px; }
.logo svg { width: 30px; height: 30px; filter: drop-shadow(0 4px 12px rgba(156,110,255,.5)); }
.logo b { font-weight: 800; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 15px; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.burger { display: none; flex-direction: column; gap: 5px; width: 26px; height: 20px; justify-content: center; }
.burger span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: .25s; }

/* ===========================================================================
   Hero
   =========================================================================== */
.hero {
  position: relative;
  padding: 70px 0 56px;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .55;
  z-index: 0;
  pointer-events: none;
}
.hero::before { width: 540px; height: 540px; background: rgba(156,110,255,.45); top: -180px; left: -120px; }
.hero::after  { width: 480px; height: 480px; background: rgba(244,141,160,.40); top: -120px; right: -120px; }
.hero .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--lavender-2);
  background: var(--grad-soft);
  border: 1px solid var(--border-2);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1.5px;
  max-width: 760px;
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 34px;
}

/* ---------- Фильтр поиска ---------- */
.search-card {
  background: linear-gradient(180deg, rgba(29,31,54,.92), rgba(22,24,43,.92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 1.6fr auto;
  gap: 18px;
  align-items: end;
}
.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 9px;
}
.field select {
  width: 100%;
  appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a7a7c2' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 13px 38px 13px 14px;
  font-size: 15px;
  cursor: pointer;
  transition: border-color .2s;
}
.field select:hover { border-color: var(--lavender-2); }
.field select option { background: var(--surface); color: var(--text); }

/* dual range */
.range-field { min-width: 0; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
.range-head label { margin: 0; }
.range-val { font-size: 14px; font-weight: 700; color: var(--lavender-2); }
.range-wrap { position: relative; height: 34px; display: flex; align-items: center; }
.range-track { position: absolute; left: 0; right: 0; height: 5px; border-radius: 4px; background: var(--surface-2); }
.range-fill { position: absolute; height: 5px; border-radius: 4px; background: var(--grad); }
.range-wrap input[type="range"] {
  position: absolute;
  width: 100%;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
}
.range-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: all;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--lavender);
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  cursor: pointer;
}
.range-wrap input[type="range"]::-moz-range-thumb {
  pointer-events: all;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--lavender);
  cursor: pointer;
}

/* ===========================================================================
   Секции / заголовки
   =========================================================================== */
section { position: relative; }
.section { padding: 64px 0; }
.section-head { margin-bottom: 36px; }
.section-head.center { text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
  font-size: clamp(27px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.12;
}
.section-head p { color: var(--muted); margin-top: 14px; max-width: 640px; font-size: 17px; }
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ===========================================================================
   Карусели анкет
   =========================================================================== */
.carousel { padding: 44px 0; }
.carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.carousel-head h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  letter-spacing: -.8px;
}
.carousel-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.online-count {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  background: rgba(46, 204, 113, .1);
  border: 1px solid rgba(46, 204, 113, .3);
  padding: 5px 12px; border-radius: 100px;
}
.online-count .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.carousel-controls { display: flex; gap: 10px; }
.slider-arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  transition: .2s;
}
.slider-arrow:hover:not(:disabled) { background: var(--grad); border-color: transparent; transform: scale(1.06); }
.slider-arrow:disabled { opacity: .35; cursor: not-allowed; }
.slider-arrow svg { width: 20px; height: 20px; }

.slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px 14px;
  scrollbar-width: none;
  cursor: grab;
}
.slider::-webkit-scrollbar { display: none; }
.slider.dragging { cursor: grabbing; scroll-behavior: auto; }

.profile-card {
  position: relative;
  flex: 0 0 230px;
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: transform .25s ease, box-shadow .25s ease;
}
.profile-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.profile-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.profile-card:hover img { transform: scale(1.05); }
.profile-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,20,0) 42%, rgba(10,10,20,.85) 100%);
}
.profile-card .badges {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700;
  padding: 5px 10px;
  border-radius: 100px;
  backdrop-filter: blur(6px);
}
.badge-top { background: linear-gradient(135deg, var(--gold), #b89530); color: #1a1404; }
.badge-online { background: rgba(46,204,113,.18); color: #6ff0a0; border: 1px solid rgba(46,204,113,.4); }
.badge-online .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.profile-card .info {
  position: absolute;
  left: 14px; right: 14px; bottom: 13px;
}
.profile-card .info .name { font-size: 18px; font-weight: 700; line-height: 1.2; }
.profile-card .info .name span { font-weight: 400; color: var(--muted); }
.profile-card .info .city { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; margin-top: 3px; }
.profile-card .info .city svg { width: 13px; height: 13px; opacity: .8; }

.carousel-footer { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

/* ===========================================================================
   Feature-карточки
   =========================================================================== */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.feature {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .25s, border-color .25s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-2); }
.feature .icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature .icon svg { width: 26px; height: 26px; stroke: var(--lavender-2); }
.feature h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: 15px; }

.check-list { margin-top: 14px; display: grid; gap: 11px; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: var(--text); }
.check-list li svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; stroke: var(--peach); }
.check-list.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.check-list.tags li {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
}
.check-list.tags li svg { stroke: var(--lavender-2); }

/* info-блоки (Москва / взаимовыгодные / поддержка) */
.info-blocks { margin-top: 22px; }

/* ===========================================================================
   Шаги "Как начать"
   =========================================================================== */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(5, 1fr); }
.step {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid var(--border-2);
  font-size: 19px; font-weight: 800;
  color: var(--lavender-2);
  margin-bottom: 16px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 7px; }
.step p { font-size: 14px; color: var(--muted); }

/* ===========================================================================
   CTA-блок
   =========================================================================== */
.cta {
  position: relative;
  text-align: center;
  background: var(--grad);
  border-radius: 26px;
  padding: 60px 28px;
  overflow: hidden;
}
.cta::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% -10%, rgba(255,255,255,.25), transparent 60%);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -1px; color: #fff; }
.cta p { color: rgba(255,255,255,.92); font-size: 18px; margin: 16px auto 30px; max-width: 560px; }
.cta .btn-white {
  background: #fff; color: #1a1130; font-weight: 700;
  box-shadow: 0 14px 40px -8px rgba(0,0,0,.45);
}
.cta .btn-white:hover { transform: translateY(-2px); }

/* ===========================================================================
   Города
   =========================================================================== */
.cities { display: flex; flex-wrap: wrap; gap: 11px; }
.city-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 14.5px;
  color: var(--muted);
  font-weight: 500;
  transition: .2s;
}
.city-chip:hover { color: #fff; border-color: var(--lavender-2); background: var(--surface-2); transform: translateY(-2px); }
.city-chip svg { width: 14px; height: 14px; stroke: var(--peach); }

/* ===========================================================================
   Юридические страницы (политика / соглашение)
   =========================================================================== */
.legal { padding: 48px 0 24px; }
.legal .container { max-width: 880px; }
.legal-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; color: var(--muted); margin-bottom: 26px; transition: color .2s;
}
.legal-back:hover { color: var(--text); }
.legal-back svg { width: 16px; height: 16px; }
.legal h1 {
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 800; letter-spacing: -.8px; line-height: 1.15;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: 8px;
}
.legal-subtitle { color: var(--muted); font-size: 15px; padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.legal-doc-title { text-align: center; font-size: 19px; font-weight: 700; color: var(--text); margin: 26px 0 4px; }
.legal-center { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 4px; }
.legal-body { color: #cccce0; font-size: 15.5px; line-height: 1.72; }
.legal-body h2 {
  font-size: 19px; font-weight: 700; color: #fff;
  margin: 34px 0 12px; padding-top: 6px;
  letter-spacing: -.3px;
}
.legal-body h2::before {
  content: ''; display: block; width: 40px; height: 3px;
  background: var(--grad); border-radius: 3px; margin-bottom: 12px;
}
.legal-body p { margin-bottom: 14px; }
.legal-body ul { margin: 6px 0 18px; display: grid; gap: 9px; }
.legal-body li { position: relative; padding-left: 20px; }
.legal-body li::before {
  content: ''; position: absolute; left: 2px; top: 9px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--peach);
}
.legal-body a { color: var(--lavender-2); text-decoration: underline; }
.legal-cta {
  margin-top: 38px; padding: 28px;
  background: var(--grad-soft); border: 1px solid var(--border-2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.legal-cta p { font-size: 16px; font-weight: 600; }
@media (max-width: 640px) {
  .legal-cta { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ===========================================================================
   Footer
   =========================================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 50px 0 36px;
  margin-top: 30px;
  background: var(--bg-2);
}
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 30px; }
.footer .logo { margin-bottom: 14px; }
.footer-about { max-width: 360px; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--muted-2); font-size: 13px;
}
.age-badge {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border-2); border-radius: 8px; padding: 4px 9px;
  font-weight: 700; color: var(--peach);
}

/* ===========================================================================
   Адаптив
   =========================================================================== */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px 22px;
    transform: translateY(-130%);
    transition: transform .3s ease;
    box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 10px 0; font-size: 16px; }
  .burger { display: flex; }
  .header-actions .btn-ghost { display: none; }
  .search-card { grid-template-columns: 1fr 1fr; }
  .search-card .range-field { grid-column: 1 / -1; }
  .search-card .btn { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .grid-2, .grid-3, .steps { grid-template-columns: 1fr; }
  .search-card { grid-template-columns: 1fr; }
  .carousel-head h2 { font-size: 22px; }
  .profile-card { flex-basis: 70vw; }
  .footer-bottom { flex-direction: column; }
  .cta { padding: 42px 18px; border-radius: 20px; }
  .cta h2 { font-size: 25px; letter-spacing: -.4px; }
  .cta p { font-size: 15px; margin: 14px auto 24px; }
  .cta .btn-white { white-space: normal; max-width: 100%; padding: 14px 20px; font-size: 15px; }
  .btn-lg { padding: 15px 24px; font-size: 15px; }
}
