:root {
  --bg: #050816;
  --bg-card: #0b1020;
  --bg-soft: #12172a;
  --border: #20263a;
  --accent: #ff4b8b;
  --accent-soft: rgba(255, 75, 139, 0.14);
  --accent2: #4f46e5;
  --text: #f9fafb;
  --muted: #9ca3af;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.55);
  --shadow-card: 0 16px 40px rgba(15, 23, 42, 0.7);
  --blur: 14px;
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
  color: var(--text);
}

/* LAYOUT */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(var(--blur));
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.6),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
}

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

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 0, #f97316, #db2777 40%, #22c55e 120%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #0b1020;
  text-transform: uppercase;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.main-nav a:hover {
  color: #e5e7eb;
}

/* HERO */
.hero {
  padding: 38px 0 26px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 24px;
  align-items: center;
}

.hero-text h1 {
  font-size: 30px;
  line-height: 1.1;
  margin: 0 0 8px;
}

.hero-lead {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--muted);
  max-width: 520px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.hero-note {
  font-size: 11px;
  color: var(--muted);
}

.hero-art {
  position: relative;
  height: 160px;
}

.bubble {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.85;
}

.bubble-1 {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, #22c55e 0, transparent 70%);
  top: 12px;
  left: 0;
}

.bubble-2 {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, #60a5fa 0, transparent 70%);
  right: 4px;
  bottom: 0;
}

.bubble-3 {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, #fb7185 0, transparent 70%);
  left: 50%;
  top: 55%;
  transform: translateX(-50%);
}

.hero-heart {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: rgba(248, 250, 252, 0.9);
  text-shadow: 0 0 22px rgba(248, 113, 113, 0.8);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: rgba(248, 250, 252, 0.08);
  color: #f9fafb;
  box-shadow: 0 14px 30px rgba(248, 113, 158, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(248, 113, 158, 0.9);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: #f9fafb;
}

/* SECTIONS */
.section {
  padding: 14px 0 10px;
}

.section-head h2 {
  margin: 0 0 4px;
  font-size: 21px;
}

.section-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .main-nav {
    display: none;
  }
}

/* CARD */
.card {
  background: radial-gradient(circle at 0 0, #1f2937 0, #020617 65%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(248, 113, 158, 0.1);
  mix-blend-mode: screen;
}

.card-media {
  position: relative;
  overflow: hidden;
}

.card-cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: 50% 20%;
  display: block;
  background: #020617;
}

.card-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(248, 250, 252, 0.26);
}

.badge-serious {
  background: rgba(59, 130, 246, 0.3);
  color: #e0f2fe;
}

.badge-casual {
  background: rgba(251, 113, 133, 0.32);
  color: #ffe4e6;
}

.badge-niche {
  background: rgba(52, 211, 153, 0.3);
  color: #dcfce7;
}

.card-rank {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.card-body {
  padding: 10px 11px 12px;
  position: relative;
  z-index: 1;
}

.card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.card-meta {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.stars {
  color: #fbbf24;
  letter-spacing: 0.08em;
}

.score {
  color: var(--muted);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}

/* TABLE */
.table-wrapper {
  background: rgba(15, 23, 42, 0.85);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
  padding: 10px 12px;
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.compare-table th,
.compare-table td {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.compare-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.compare-table tbody tr:hover td {
  background: rgba(30, 64, 175, 0.45);
}

.compare-table a {
  color: #e5e7eb;
  text-decoration: none;
}

/* GUIDES */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 960px) {
  .guides-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .guides-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.guide-card {
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
  padding: 10px 12px 12px;
  font-size: 13px;
}

.guide-card h3 {
  margin: 0 0 5px;
  font-size: 14px;
}

/* FAQ */
.faq {
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
  padding: 6px 10px;
  font-size: 13px;
}

.faq details {
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  padding: 6px 0;
}

.faq details:last-child {
  border-bottom: none;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: #e5e7eb;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  margin: 4px 0 2px;
  color: var(--muted);
  font-size: 12px;
}

/* FOOTER */
.site-footer {
  padding: 16px 0 22px;
}

.footer-inner {
  border-top: 1px solid rgba(30, 64, 175, 0.6);
  padding-top: 10px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

/* SMALL HELPERS */
.section + .section {
  margin-top: 4px;
}
/* ------- Mobile tweaks ------- */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-text h1 {
    font-size: 22px;
    line-height: 1.2;
  }

  .hero-lead {
    font-size: 13px;
  }

  .hero-art {
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }

  .cards-grid {
    grid-template-columns: 1fr;  /* одна колонка */
    gap: 14px;
  }

  .card {
    max-width: 100%;
  }

  .card-media {
    max-height: 180px;
    overflow: hidden;
  }

  .card-cover {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }

  .card-body {
    padding: 10px 10px 12px;
  }

  .card-title {
    font-size: 15px;
  }

  .card-meta {
    font-size: 11px;
  }

  .card-tags {
    gap: 6px;
  }

  .tag {
    font-size: 11px;
  }

  .card-actions {
    margin-top: 8px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .card-actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }
}
/* Индивидуальная коррекция вертикального положения фото */

/* Ammolatino — выше (поднимаем картинку) */
.card-cover--ammolatino {
  object-position: 50% 35%;
}

/* Latinomaria — ниже (опускаем картинку) */
.card-cover--latinomaria {
  object-position: 50% 15%;
}

/* Romanceast — выше */
.card-cover--romanceast {
  object-position: 50% 25%;
}

/* Instantalks — ниже */
.card-cover--instantalks {
  object-position: 50% 1%;
}

/* Dating4lover — ниже */
.card-cover--dating4lover {
  object-position: 50% 10%;
}

/* TalksDates — выше */
.card-cover--talksdates {
  object-position: 50% 50%;
}

/* TalkySpace — выше */
.card-cover--talkyspace {
  object-position: 50% 20%;
}

/* Thaigirldates — ниже */
.card-cover--thaigirldates {
  object-position: 50% 10%;
}