@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Nunito:wght@300;400;500;600;700&display=swap');

:root {
  --brand: #0056b3;
  --brand-light: #1a72d4;
  --brand-dark: #003d82;
  --male: #3b9ede;
  --male-soft: #e8f4fb;
  --male-mid: #b3d9f2;
  --female: #e8628a;
  --female-soft: #fdf0f4;
  --female-mid: #f4b8cc;
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;
  --white: #ffffff;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;

  --shadow-sm: 0 2px 8px rgba(0, 86, 179, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 86, 179, 0.12);
  --shadow-lg: 0 24px 64px rgba(0, 86, 179, 0.16);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  background: var(--neutral-50);
  color: var(--neutral-800);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.35);
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.logo-tld {
  color: var(--neutral-700);
  font-weight: 400;
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-tagline {
  font-size: 0.67rem;
  color: var(--neutral-500, #64748b);
  letter-spacing: 0.01em;
  font-style: italic;
  line-height: 1.2;
  white-space: nowrap;
}

/* ─── Desktop nav ──────────────────────────────────────────────────── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--neutral-700);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand);
  background: var(--neutral-100);
}

/* ─── Dropdown ─────────────────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-arrow {
  font-size: 0.7rem;
  opacity: 0.6;
  transition: transform 0.2s;
  display: inline-block;
}

.nav-dropdown.open .nav-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1.5px solid var(--neutral-200);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  min-width: 140px;
  overflow: hidden;
  display: none;
  z-index: 200;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
  animation: dropFadeIn .15s ease;
}

@keyframes dropFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-dropdown-item {
  display: block;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--neutral-700);
  text-decoration: none;
  transition: background .12s, color .12s;
  white-space: nowrap;
}

.nav-dropdown-item:hover {
  background: var(--neutral-100);
  color: var(--brand);
}

/* ─── CTA button ───────────────────────────────────────────────────── */
.btn-cta {
  background: var(--brand);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 86, 179, 0.3);
  white-space: nowrap;
}

.btn-cta:hover {
  background: var(--brand-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 86, 179, 0.4);
}

/* ─── Hamburger ────────────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--neutral-700);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Mobile nav ───────────────────────────────────────────────────── */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid var(--neutral-200);
  padding: 12px 0 16px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav-link {
  display: block;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--neutral-700);
  text-decoration: none;
  transition: background .12s, color .12s;
}

.mobile-nav-link:hover {
  background: var(--neutral-100);
  color: var(--brand);
}

.mobile-nav-group {
  border-top: none;
}

.mobile-nav-group-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: none;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--neutral-700);
  cursor: pointer;
  text-align: left;
  transition: background .12s, color .12s;
}

.mobile-nav-group-btn:hover {
  background: var(--neutral-100);
  color: var(--brand);
}

.mobile-nav-group.open .mobile-nav-group-btn {
  color: var(--brand);
}

.mobile-nav-group.open .nav-arrow {
  transform: rotate(180deg);
}

.mobile-nav-sub {
  display: none;
  background: var(--neutral-50, #f8fafc);
}

.mobile-nav-group.open .mobile-nav-sub {
  display: block;
}

.mobile-nav-sub-link {
  display: block;
  padding: 10px 24px 10px 40px;
  font-size: 0.95rem;
  color: var(--neutral-600, #475569);
  text-decoration: none;
  transition: background .12s, color .12s;
}

.mobile-nav-sub-link:hover {
  background: var(--neutral-100);
  color: var(--brand);
}

.mobile-nav-cta {
  margin: 10px 24px 4px;
  display: block;
  text-align: center;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
}

.mobile-nav-cta:hover {
  background: var(--brand-light);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 80px 24px 60px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 70% 60% at 20% 50%, rgba(59, 158, 222, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(232, 98, 138, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, var(--white) 0%, var(--neutral-50) 100%);
  z-index: 0;
}

.hero-bg-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}

.deco-circle-1 {
  width: 600px;
  height: 600px;
  background: var(--male);
  top: -200px;
  left: -150px;
  animation: floatSlow 12s ease-in-out infinite;
}

.deco-circle-2 {
  width: 500px;
  height: 500px;
  background: var(--female);
  top: -100px;
  right: -100px;
  animation: floatSlow 15s ease-in-out infinite reverse;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-30px) scale(1.03); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  color: var(--brand);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  animation: fadeInDown 0.6s ease both;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--neutral-900);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--brand), var(--male));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--neutral-700);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-search {
  display: flex;
  gap: 12px;
  max-width: 540px;
  margin: 0 auto 16px;
  animation: fadeInUp 0.7s ease 0.3s both;
}

.search-input {
  flex: 1;
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  padding: 16px 24px;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--neutral-800);
  outline: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-input::placeholder { color: #94a3b8; }

.search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.12);
}

.search-btn {
  background: var(--brand);
  color: white;
  border: none;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0, 86, 179, 0.35);
  white-space: nowrap;
}

.search-btn:hover {
  background: var(--brand-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 86, 179, 0.45);
}

.hero-hint {
  font-size: 0.95rem;
  color: #94a3b8;
  animation: fadeInUp 0.7s ease 0.4s both;
}

.hero-search-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
  animation: fadeInUp 0.7s ease 0.5s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand);
}

.stat-label {
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 500;
}

/* ============ MAIN CONTENT ============ */
.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--neutral-900);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #64748b;
}

/* ============ TABS SWITCHER ============ */
.tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.tabs {
  display: flex;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-xl);
  padding: 4px;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 32px;
  border-radius: var(--radius-xl);
  border: none;
  background: transparent;
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: #64748b;
}

.tab-btn.active-male {
  background: linear-gradient(135deg, #3b9ede, #1a7fc4);
  color: white;
  box-shadow: 0 4px 16px rgba(59, 158, 222, 0.4);
}

.tab-btn.active-female {
  background: linear-gradient(135deg, #e8628a, #d44d73);
  color: white;
  box-shadow: 0 4px 16px rgba(232, 98, 138, 0.4);
}

.tab-icon {
  font-size: 1.1rem;
}

/* ============ GRID LAYOUT ============ */
.lists-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.lists-grid.view-single {
  grid-template-columns: 1fr;
  max-width: 700px;
  margin: 0 auto;
}

/* ============ PATRONYMIC CARD ============ */
.patronym-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-200);
  transition: var(--transition);
  animation: fadeInUp 0.5s ease both;
}

.patronym-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  padding: 24px 28px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-header-male {
  background: linear-gradient(135deg, var(--male-soft), rgba(59, 158, 222, 0.05));
  border-bottom: 1px solid var(--male-mid);
}

.card-header-female {
  background: linear-gradient(135deg, var(--female-soft), rgba(232, 98, 138, 0.05));
  border-bottom: 1px solid var(--female-mid);
}

.card-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.card-icon-male {
  background: linear-gradient(135deg, var(--male), #1a7fc4);
  box-shadow: 0 4px 12px rgba(59, 158, 222, 0.35);
  color: white;
}

.card-icon-female {
  background: linear-gradient(135deg, var(--female), #d44d73);
  box-shadow: 0 4px 12px rgba(232, 98, 138, 0.35);
  color: white;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-title-male { color: #1563a0; }
.card-title-female { color: #b84068; }

.card-count {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
}

.card-count-male {
  background: rgba(59, 158, 222, 0.12);
  color: var(--male);
}

.card-count-female {
  background: rgba(232, 98, 138, 0.12);
  color: var(--female);
}

.card-search {
  padding: 16px 20px;
  border-bottom: 1px solid var(--neutral-100);
}

.card-search-input {
  width: 100%;
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  padding: 12px 16px 12px 40px;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  background: var(--neutral-50);
  color: var(--neutral-800);
  outline: none;
  transition: var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 18px;
}

.card-search-input-male:focus {
  border-color: var(--male);
  box-shadow: 0 0 0 3px rgba(59, 158, 222, 0.12);
  background-color: var(--white);
}

.card-search-input-female:focus {
  border-color: var(--female);
  box-shadow: 0 0 0 3px rgba(232, 98, 138, 0.12);
  background-color: var(--white);
}

.alphabet-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--neutral-100);
}

/* Универсальная кнопка алфавита */
.alpha-btn {
  width: 34px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--neutral-200);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  color: var(--neutral-700);
  font-family: 'Nunito', sans-serif;
}

.alpha-btn:hover,
.alpha-btn.active {
  color: white;
  background: var(--brand);
  border-color: var(--brand);
}

.alpha-btn-male:hover,
.alpha-btn-male.active {
  background: var(--male);
  border-color: var(--male);
}

.alpha-btn-female:hover,
.alpha-btn-female.active {
  background: var(--female);
  border-color: var(--female);
}

.patronyms-list {
  padding: 12px 16px;
  max-height: 480px;
  overflow-y: auto;
}

.patronyms-list::-webkit-scrollbar { width: 6px; }
.patronyms-list::-webkit-scrollbar-track { background: var(--neutral-100); border-radius: 6px; }
.patronyms-list-male::-webkit-scrollbar-thumb { background: var(--male-mid); border-radius: 6px; }
.patronyms-list-female::-webkit-scrollbar-thumb { background: var(--female-mid); border-radius: 6px; }

.patronym-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  gap: 12px;
}

.patronym-item:hover { transform: translateX(4px); }
.patronym-item-male:hover { background: var(--male-soft); }
.patronym-item-female:hover { background: var(--female-soft); }

.patronym-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--neutral-800);
}

.patronym-origin {
  font-size: 0.9rem;
  color: #94a3b8;
  font-weight: 400;
}

.patronym-arrow {
  font-size: 0.9rem;
  opacity: 0;
  transition: var(--transition);
}

.patronym-item-male .patronym-arrow { color: var(--male); }
.patronym-item-female .patronym-arrow { color: var(--female); }
.patronym-item:hover .patronym-arrow { opacity: 1; }

.letter-group-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 16px 6px;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1;
}

.letter-group-label-male { color: var(--male); }
.letter-group-label-female { color: var(--female); }

.card-footer {
  padding: 20px;
  border-top: 1px solid var(--neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.show-all-btn {
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 11px 28px;
  border-radius: 100px;
  border: 2px solid;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.01em;
  text-decoration: none;
}

.show-all-btn-male {
  color: var(--male);
  border-color: var(--male-mid);
}

.show-all-btn-male:hover {
  background: var(--male);
  color: white;
  border-color: var(--male);
}

.show-all-btn-female {
  color: var(--female);
  border-color: var(--female-mid);
}

.show-all-btn-female:hover {
  background: var(--female);
  color: white;
  border-color: var(--female);
}

/* ============ FEATURES STRIP ============ */
.features-strip {
  margin: 50px auto;
  max-width: 1280px;
  padding: 0 24px;
}

.features-inner {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  display: flex;
  gap: 0;
  box-shadow: var(--shadow-sm);
}

.feature-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
}

.feature-item:not(:last-child) { border-right: 1px solid var(--neutral-200); }
.feature-item:first-child { padding-left: 0; }
.feature-item:last-child { padding-right: 0; }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  background: var(--neutral-100);
}

.feature-text-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--neutral-800);
  margin-bottom: 4px;
}

.feature-text-desc {
  font-size: 0.95rem;
  color: #94a3b8;
}

/* ============ LIKES FEED (Пользователи оценивают) ============ */
.likes-feed-section {
  margin: 0 auto 48px;
  max-width: 1280px;
  padding: 0 24px;
}

.likes-feed-inner {
  background: linear-gradient(135deg, var(--white) 0%, var(--neutral-50) 100%);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: 36px 32px 28px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.likes-feed-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--neutral-700);
}

.likes-feed-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.likes-feed-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.likes-feed-legend-dot--male { background: var(--male); }
.likes-feed-legend-dot--female { background: var(--female); }

.likes-feed-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.likes-feed-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: likes-feed-scroll 45s linear infinite;
}

.likes-feed-marquee:hover .likes-feed-track {
  animation-play-state: paused;
}

@keyframes likes-feed-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.likes-feed-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.likes-feed-item-male {
  border-left: 4px solid var(--male);
}

.likes-feed-item-male .likes-feed-name {
  color: #1563a0;
}

.likes-feed-item-female {
  border-left: 4px solid var(--female);
}

.likes-feed-item-female .likes-feed-name {
  color: #b84068;
}

.likes-feed-patronym {
  color: #64748b;
  font-weight: 500;
  font-size: 0.88rem;
}

.likes-feed-patronym::before {
  content: '·';
  margin-right: 8px;
  color: var(--neutral-200);
}

.likes-feed-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.likes-feed-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.likes-feed-item-male:hover {
  border-color: var(--male-mid);
  background: var(--male-soft);
}

.likes-feed-item-female:hover {
  border-color: var(--female-mid);
  background: var(--female-soft);
}

@media (max-width: 768px) {
  .likes-feed-inner {
    padding: 28px 20px 22px;
  }

  .likes-feed-item {
    padding: 9px 14px;
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .likes-feed-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }

  .likes-feed-marquee {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--neutral-900);
  color: #94a3b8;
  padding: 60px 24px 32px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-text { color: var(--white); font-size: 1.25rem; }
.footer-brand .logo-tld { color: #94a3b8; }

.footer-desc {
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 14px;
  color: #64748b;
}

.footer-col-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  text-decoration: none;
  color: #64748b;
  font-size: 1rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  font-size: 0.95rem;
}

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

.footer-bottom-links a {
  text-decoration: none;
  color: #475569;
  transition: var(--transition);
}

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

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ MOBILE ============ */
@media (max-width: 900px) {
  .lists-grid { grid-template-columns: 1fr; }
  .features-inner { flex-direction: column; gap: 24px; padding: 28px; }
  .feature-item {
    border-right: none !important;
    padding: 0 !important;
    border-bottom: 1px solid var(--neutral-200);
    padding-bottom: 24px !important;
  }
  .feature-item:last-child { border-bottom: none; padding-bottom: 0 !important; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hero-stats { gap: 24px; }
}

@media (max-width: 640px) {
  .header-nav { display: none; }
  .hamburger  { display: flex; }
  .hero { padding: 48px 20px 40px; }
  .hero-search { flex-direction: column; }
  .hero-stats { flex-wrap: wrap; justify-content: center; gap: 20px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   ПРОМО-БАННЕРЫ (под шапкой, сквозной блок)
   ============================================================ */
.promo-strip {
  background: var(--neutral-100);
  border-bottom: 1px solid var(--neutral-200);
  padding: 16px 24px;
}

.promo-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Базовая карточка */
.promo-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.promo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Декоративное свечение */
.promo-card__glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}
.promo-card:hover .promo-card__glow { opacity: 1; }

/* ---- Карточка ИИ (фиолетово-синий) ---- */
.promo-card--ai {
  background: linear-gradient(135deg, #5b21b6 0%, #4f46e5 50%, #2563eb 100%);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.35);
}
.promo-card--ai .promo-card__glow {
  background: linear-gradient(135deg, rgba(139,92,246,0.4), rgba(99,102,241,0.2));
}

/* ---- Карточка ЛистайИмя (зелёно-бирюзовый) ---- */
.promo-card--listai {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}
.promo-card--listai .promo-card__glow {
  background: linear-gradient(135deg, rgba(52,211,153,0.3), rgba(16,185,129,0.15));
}

/* ---- Карточка ИИ-сравнения имён (фиолетово-бирюзовый) ---- */
.promo-card--compare {
  background: linear-gradient(135deg, #5b4cdb 0%, #6d5cf0 45%, #00c2a8 100%);
  box-shadow: 0 4px 20px rgba(91, 76, 219, 0.32);
}
.promo-card--compare .promo-card__glow {
  background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(0,194,168,0.16));
}

/* Иконка */
.promo-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  font-size: 22px;
  backdrop-filter: blur(8px);
}
.promo-icon-circle--ai    { background: rgba(255,255,255,0.18); }
.promo-icon-circle--listai { background: rgba(255,255,255,0.18); }
.promo-icon-circle--compare {
  background: rgba(255,255,255,0.92);
  color: #5b4cdb;
  text-shadow: 0 1px 8px rgba(255,255,255,0.65);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.14);
}

/* Текстовый блок */
.promo-card__body {
  flex: 1;
  min-width: 0;
}

.promo-card__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.22);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 4px;
}
.promo-card__badge--new {
  background: rgba(255,255,255,0.30);
  color: #fff;
}

.promo-card__title {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-card__desc {
  font-size: 12.5px;
  color: rgba(255,255,255,0.85);
  line-height: 1.45;
  display: block;
  overflow: visible;
}

/* Кнопка-pill */
.promo-card__btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  background: #fff;
  color: #4f46e5;
}
.promo-card__btn--listai {
  color: #059669;
}
.promo-card__btn--compare {
  color: #4b3ed2;
}
.promo-card:hover .promo-card__btn {
  transform: scale(1.04);
}

/* ---- Адаптив ---- */
@media (max-width: 900px) {
  .promo-card__desc { display: none; }
  .promo-card__title { white-space: normal; }
}

@media (max-width: 640px) {
  .promo-strip { padding: 12px 16px; }
  .promo-strip-inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .promo-card { padding: 13px 16px; gap: 12px; }
  .promo-icon-circle { width: 40px; height: 40px; min-width: 40px; font-size: 18px; }
  .promo-card__title { font-size: 14px; }
  .promo-card__btn { font-size: 12px; padding: 7px 14px; }
}


/* ============================================================
   ПЛАВАЮЩИЕ КНОПКИ (FAB) — правый нижний угол
   ============================================================ */
.fab-group {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fab-group--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.fab {
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.22s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.22s cubic-bezier(0.4,0,0.2,1);
  -webkit-tap-highlight-color: transparent;
}

.fab:hover  { transform: translateY(-3px); }
.fab:active { transform: scale(0.96); }

/* ── Кнопка «Наверх» — круглая, белая, брендовая ── */
.fab--top {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--brand);
  border: 1.5px solid var(--neutral-200);
  box-shadow: var(--shadow-md);
}
.fab--top:hover {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
}

/* ── Кнопки сервисов — таблетки в стиле nav btn-cta ── */
.fab--service {
  border-radius: var(--radius-xl);
  color: var(--white);
  padding: 10px 16px;
  gap: 6px;
  box-shadow: var(--shadow-md);
  min-width: 0;
}

.fab--ai {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand), var(--brand-light));
}
.fab--ai:hover {
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
}

.fab--compare {
  background: linear-gradient(135deg, #5b4cdb, #00c2a8);
}
.fab--compare:hover {
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #6d5cf0, #00c2a8);
}

.fab__ai-icon {
  flex-shrink: 0;
  color: #fbbf24;
}

.fab__compare-icon {
  flex-shrink: 0;
  font-size: 15px;
  line-height: 1;
}

.fab__label {
  font-family: 'Nunito', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  text-align: center;
}

/* Мобильные */
@media (max-width: 640px) {
  .fab-group { right: 16px; bottom: 20px; gap: 8px; }
  .fab--top  { width: 40px; height: 40px; }
  .fab--service { padding: 8px 13px; }
  .fab__label { font-size: 10.5px; }
}
/* ═══════════════════════════════════════════════════════════════
   ГОСТ Р 7.0.34-2014 — транслитерация (patronymic + name pages)
   ═══════════════════════════════════════════════════════════════ */

/* Блок в карточке patronymic */
.gost-translit-block {
  margin: 16px 0 8px;
  border: 1px solid var(--neutral-200, #e5e7eb);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  font-size: 0.88rem;
}
.gost-translit-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 8px;
  background: var(--neutral-50, #f9fafb);
  border-bottom: 1px solid var(--neutral-200, #e5e7eb);
}
.gost-translit-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--neutral-900, #111827);
}
.gost-translit-badge {
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 20px;
  background: #dbeafe;
  color: #1e40af;
  font-weight: 500;
  white-space: nowrap;
}
.gost-translit-rows { padding: 6px 0 4px; }
.gost-translit-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-bottom: 1px solid var(--neutral-100, #f3f4f6);
  flex-wrap: wrap;
}
.gost-translit-row:last-child { border-bottom: none; }
.gost-translit-label { font-size: 0.75rem; color: var(--neutral-500, #6b7280); min-width: 90px; }
.gost-translit-ru { color: var(--neutral-700, #374151); min-width: 80px; }
.gost-translit-arrow { color: var(--neutral-400, #9ca3af); font-size: 0.9rem; }
.gost-translit-lat {
  font-family: var(--font-mono, monospace);
  font-weight: 600;
  color: var(--neutral-900, #111827);
  letter-spacing: 0.03em;
  flex: 1;
}
.gost-copy-btn {
  background: none;
  border: 1px solid var(--neutral-200, #e5e7eb);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--neutral-500, #6b7280);
  transition: background 0.15s;
  flex-shrink: 0;
}
.gost-copy-btn:hover { background: var(--neutral-100, #f3f4f6); }
.gost-translit-surname-wrap {
  padding: 10px 14px;
  background: var(--neutral-50, #f9fafb);
  border-top: 1px solid var(--neutral-200, #e5e7eb);
}
.gost-translit-surname-label {
  display: block;
  font-size: 0.78rem;
  color: var(--neutral-600, #4b5563);
  margin-bottom: 6px;
  font-weight: 500;
}
.gost-translit-surname-row { display: flex; gap: 6px; }
.gost-surname-input {
  flex: 1;
  padding: 6px 10px;
  font-size: 0.88rem;
  border: 1px solid var(--neutral-300, #d1d5db);
  border-radius: var(--radius-sm, 6px);
  background: #fff;
  min-width: 0;
}
.gost-surname-btn {
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--brand, #6c63ff);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.gost-surname-btn:hover { opacity: 0.88; }
.gost-surname-result { display: none; margin-top: 8px; }
.gost-surname-full { display: flex; flex-direction: column; gap: 4px; }
.gost-sf-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gost-sf-label { font-size: 0.75rem; color: var(--neutral-500, #6b7280); min-width: 80px; }
.gost-sf-lat { font-family: var(--font-mono, monospace); font-weight: 600; color: var(--neutral-900, #111827); letter-spacing: 0.03em; flex: 1; }
.gost-translit-note {
  padding: 6px 14px 10px;
  font-size: 0.72rem;
  color: var(--neutral-400, #9ca3af);
  line-height: 1.5;
  border-top: 1px solid var(--neutral-100, #f3f4f6);
}

/* Блок на странице имени (/name/ID) */
.gost-intro-text { font-size: 0.88rem; color: var(--neutral-600, #4b5563); margin-bottom: 14px; line-height: 1.6; }
.gost-name-block {
  background: var(--neutral-50, #f9fafb);
  border: 1px solid var(--neutral-200, #e5e7eb);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  margin-bottom: 16px;
}
.gost-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  flex-wrap: wrap;
}
.gost-name-label { font-size: 0.78rem; color: var(--neutral-500, #6b7280); min-width: 50px; }
.gost-name-ru { color: var(--neutral-700, #374151); font-weight: 500; min-width: 80px; }
.gost-name-arrow { color: var(--neutral-400, #9ca3af); }
.gost-name-lat {
  font-family: var(--font-mono, monospace);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neutral-900, #111827);
  letter-spacing: 0.04em;
  flex: 1;
}
.gost-copy-btn-name {
  background: none;
  border: 1px solid var(--neutral-200, #e5e7eb);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--neutral-500, #6b7280);
  transition: background 0.15s;
}
.gost-copy-btn-name:hover { background: var(--neutral-100, #f3f4f6); }
.gost-fullname-wrap {
  border: 1px solid var(--neutral-200, #e5e7eb);
  border-radius: var(--radius-md, 8px);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.gost-fullname-title { font-size: 0.83rem; font-weight: 600; color: var(--neutral-700, #374151); margin-bottom: 10px; }
.gost-fullname-inputs { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.gost-input {
  flex: 1;
  min-width: 140px;
  padding: 8px 12px;
  font-size: 0.9rem;
  border: 1px solid var(--neutral-300, #d1d5db);
  border-radius: var(--radius-sm, 6px);
  background: #fff;
}
.gost-fullname-btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--brand, #6c63ff);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  transition: opacity 0.15s;
}
.gost-fullname-btn:hover { opacity: 0.88; }
.gost-fullname-result { margin-top: 10px; }
.gost-fio-rows { display: flex; flex-direction: column; gap: 6px; }
.gost-fio-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--neutral-50, #f9fafb);
  border-radius: 6px;
  flex-wrap: wrap;
}
.gost-fio-label { font-size: 0.75rem; color: var(--neutral-500, #6b7280); min-width: 110px; }
.gost-fio-lat { font-family: var(--font-mono, monospace); font-weight: 700; color: var(--neutral-900, #111827); letter-spacing: 0.03em; flex: 1; }
.gost-fio-copy {
  background: none;
  border: 1px solid var(--neutral-200, #e5e7eb);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--neutral-500, #6b7280);
}
.gost-fio-copy:hover { background: var(--neutral-100, #f3f4f6); }
.gost-name-note { font-size: 0.72rem; color: var(--neutral-400, #9ca3af); line-height: 1.6; margin-top: 4px; }

@media (max-width: 480px) {
  .gost-translit-label { min-width: 70px; }
  .gost-translit-lat   { font-size: 0.82rem; }
  .gost-name-lat       { font-size: 0.95rem; }
  .gost-fullname-inputs { flex-direction: column; }
}

/* ── Предупреждения о сложных звуках ─────────────────────────────── */
.gost-warn-block {
  margin: 10px 0 2px;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md, 8px);
  background: #fffbeb;
  overflow: hidden;
}
.gost-warn-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #92400e;
  padding: 7px 12px 5px;
  background: #fef3c7;
  border-bottom: 1px solid #fde68a;
}
.gost-warn-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 12px;
  border-bottom: 1px solid #fef3c7;
  flex-wrap: wrap;
}
.gost-warn-item:last-child { border-bottom: none; }
.gost-warn-letter {
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  font-size: 0.85rem;
  color: #b45309;
  min-width: 60px;
  flex-shrink: 0;
  padding-top: 1px;
}
.gost-warn-tip {
  font-size: 0.78rem;
  color: #78350f;
  line-height: 1.5;
  flex: 1;
}
.gost-warn-diff {
  font-size: 0.72rem;
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 4px;
  padding: 1px 6px;
  color: #92400e;
  white-space: nowrap;
  align-self: center;
  flex-shrink: 0;
}