/* ==========================================================================
   Rating-Score.ru — Main Stylesheet
   Distinctive, modern, premium editorial design
   ========================================================================== */

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --primary-100: #e0e7ff;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-rose: #f43f5e;
  --success: #059669;
  --danger: #ef4444;
  --dark: #090d16;
  --dark-800: #111827;
  --dark-700: #1f2937;
  --muted: #4b5563;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 8px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 20px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 22px 30px -5px rgba(79, 70, 229, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-max: 1240px;
}

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

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  position: relative;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--dark-800);
  background-color: var(--bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

button, input, textarea, select {
  font: inherit;
}

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

/* ================= Top Bar & Header ================= */
.top-bar {
  background: #090d16;
  color: #94a3b8;
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px solid #1e293b;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-notice {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot-indicator {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.top-bar-links {
  display: flex;
  gap: 18px;
}

.top-bar-links a {
  color: #cbd5e1;
}

.top-bar-links a:hover {
  color: #818cf8;
}

/* ================= Sticky Fixed Header ================= */
.header,
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99999;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.header-inner,
.header-container {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 72px;
  gap: 16px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.logo-link,
.header-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img,
.header-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

/* Header Direct Search Bar */
.header-search-form {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  margin: 0;
  flex-shrink: 0;
}

.header-search-input {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 9999px;
  padding: 8px 68px 8px 36px;
  font-size: 13.5px;
  font-family: inherit;
  color: #0f172a;
  width: 220px;
  transition: width 0.25s ease, border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.header-search-input:focus {
  width: 280px;
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.12);
}

.header-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

.header-search-btn,
.header-search-submit {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.header-search-btn:hover,
.header-search-submit:hover {
  background: var(--primary-dark);
}

/* Nav Menu (Strictly Horizontal on Desktop) */
.nav-menu,
.nav-desktop {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: #f1f5f9;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  padding: 8px 0;
  min-width: 250px;
  max-height: 420px;
  overflow-y: auto;
  display: none;
  z-index: 100000;
}

.nav-item:hover .dropdown-menu,
.nav-item.has-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover {
  background: #eef2ff;
  color: var(--primary);
}

.dropdown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Header Actions */
.header-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px;
  flex-shrink: 0;
}

.btn-suggest {
  background: linear-gradient(135deg, #4338ca 0%, #312e81 100%);
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(67, 56, 202, 0.25);
  transition: all 0.2s ease;
}

.btn-suggest:hover {
  background: #3730a3;
  box-shadow: 0 4px 12px rgba(67, 56, 202, 0.4);
  transform: translateY(-1px);
}

/* Burger Button */
.burger-btn,
.mobile-burger {
  display: none;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  box-sizing: border-box;
  color: #1e293b;
}

.burger-btn:hover,
.mobile-burger:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.burger-btn span,
.mobile-burger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background-color: #1e293b;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.burger-btn.is-active span:nth-child(1),
.mobile-burger.is-active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.burger-btn.is-active span:nth-child(2),
.mobile-burger.is-active span:nth-child(2) {
  opacity: 0;
}
.burger-btn.is-active span:nth-child(3),
.mobile-burger.is-active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-search-wrapper,
.mobile-suggest-wrapper {
  display: none;
}

/* ================= Breadcrumbs ================= */
.breadcrumbs-nav {
  padding: 14px 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
  font-size: 13.5px;
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  color: var(--muted);
}

.breadcrumbs-list a {
  color: #475569;
}

.breadcrumbs-list a:hover {
  color: var(--primary);
}

.breadcrumbs-sep {
  color: #94a3b8;
}

.breadcrumbs-current {
  color: var(--dark-800);
  font-weight: 600;
  max-width: 450px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ================= Hero Section with Auto-Rotating Slider ================= */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 85% 15%, rgba(99, 102, 241, 0.12) 0%, rgba(248, 250, 252, 0) 70%), #ffffff;
  padding: 68px 0 58px;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #3730a3;
  margin-bottom: 20px;
}

.badge-dash {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-dash span:first-child {
  width: 14px;
  height: 3px;
  background: #4f46e5;
  border-radius: 2px;
}

.badge-dash span:last-child {
  width: 8px;
  height: 3px;
  background: #f59e0b;
  border-radius: 2px;
}

.hero-title {
  font-size: 46px;
  line-height: 1.15;
  font-weight: 850;
  color: #090d16;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero-title .text-accent {
  color: #4f46e5;
  display: block;
}

.hero-description {
  font-size: 16.5px;
  line-height: 1.6;
  color: #4b5563;
  max-width: 580px;
  margin-bottom: 28px;
}

/* Hero Search Form */
.hero-search-form {
  position: relative;
  background: white;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  padding: 6px 6px 6px 18px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 540px;
  margin-bottom: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-search-form:focus-within {
  border-color: #4f46e5;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.15);
}

.hero-search-icon {
  color: #94a3b8;
  flex-shrink: 0;
}

.hero-search-input {
  border: none;
  outline: none;
  font-size: 15.5px;
  color: #0f172a;
  width: 100%;
  background: transparent;
}

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

.hero-search-btn {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.hero-search-btn:hover {
  opacity: 0.92;
}

.hero-social-proof {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f5f3ff;
  border: 1px solid #ede9fe;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 13.5px;
  color: #1e1b4b;
  font-weight: 500;
  margin-bottom: 34px;
}

.hero-social-proof .green-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 560px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.stat-item .stat-num {
  font-size: 26px;
  font-weight: 850;
  color: #312e81;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-item .stat-label {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.3;
}

/* ================= Hero Slider Component (3-Second Auto-Rotation) ================= */
.hero-slider-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.floating-badge-top {
  position: absolute;
  top: -16px;
  left: 20px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.floating-badge-top .check-icon {
  color: #059669;
}

.floating-badge-bottom {
  position: absolute;
  bottom: -14px;
  right: 20px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.hero-slides-wrapper {
  position: relative;
  min-height: 340px;
  background: white;
  border-radius: 22px;
  box-shadow: var(--shadow-xl);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  padding: 30px 28px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(20px);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.hrc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}

.hrc-badge-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-top10 {
  background: #fef3c7;
  color: #b45309;
  font-size: 12px;
  font-weight: 750;
  padding: 4px 10px;
  border-radius: 8px;
}

.hrc-title-box h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.hrc-title-box span {
  font-size: 12.5px;
  color: #94a3b8;
}

.hrc-star {
  color: #f59e0b;
  font-size: 20px;
}

.hrc-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 22px;
}

.hrc-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hrc-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hrc-company-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hrc-rank {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 800;
  color: white;
}

.hrc-rank.rank-1 { background: #f59e0b; }
.hrc-rank.rank-2 { background: #64748b; }
.hrc-rank.rank-3 { background: #94a3b8; }

.hrc-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.hrc-score {
  font-size: 16px;
  font-weight: 850;
  color: #4f46e5;
}

.hrc-progress {
  width: 100%;
  height: 6px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}

.hrc-bar {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5 0%, #6366f1 100%);
  border-radius: 4px;
}

.hrc-footer {
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
}

.hrc-stars {
  color: #f59e0b;
  letter-spacing: 2px;
}

/* Slider Dots Indicator */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-dot.active {
  background: #4f46e5;
  width: 24px;
  border-radius: 6px;
}

/* ================= Section Base ================= */
.section-pad {
  padding: 64px 0;
}

.section-bg-alt {
  background: var(--bg-alt);
}

.section-header {
  margin-bottom: 36px;
}

.section-title {
  font-size: 32px;
  font-weight: 850;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--muted);
  max-width: 680px;
}

/* ================= Article & Rating Cards Grid ================= */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card-rating {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}

.card-rating:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card-thumb {
  height: 145px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4f46e5 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 16px;
  overflow: hidden;
}

.card-thumb-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: radial-gradient(#fff 1.5px, transparent 1.5px);
  background-size: 14px 14px;
}

.card-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
}

.card-city-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
}

.card-thumb-icon {
  position: relative;
  z-index: 1;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 16px;
  font-weight: 750;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title:hover {
  color: var(--primary);
}

.card-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.card-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 12.5px;
  color: #94a3b8;
}

/* ================= Category Cards ================= */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cat-tile {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.2s ease;
}

.cat-tile:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cat-tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-tile-info h4 {
  font-size: 16px;
  font-weight: 750;
  color: #0f172a;
  margin-bottom: 4px;
}

.cat-tile-info p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
}

/* ================= Evidence & Principles ================= */
.evidence-grid, .principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.evidence-card, .principle-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.principle-box {
  border-top: 4px solid var(--primary);
}

.evidence-num {
  font-size: 38px;
  font-weight: 900;
  color: #e0e7ff;
  line-height: 1;
  margin-bottom: 12px;
}

.evidence-card h4, .principle-box h4 {
  font-size: 17px;
  font-weight: 750;
  color: #0f172a;
  margin-bottom: 10px;
}

.evidence-card p, .principle-box p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ================= City Buttons ================= */
.cities-chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.city-chip {
  background: white;
  border: 1px solid var(--border);
  color: var(--dark-800);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.city-chip:hover, .city-chip.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

/* ================= FAQ Accordion ================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 860px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 22px;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 20px;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-answer {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* ================= Article View (Analytical Text Layout) ================= */
.article-header {
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--border-light);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.tag-badge.city-tag {
  background: #f1f5f9;
  color: #334155;
}

.article-title-h1 {
  font-size: 36px;
  font-weight: 850;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 13.5px;
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 36px 0 60px;
}

.article-body {
  min-width: 0;
}

/* Prose Typography */
.prose-content {
  font-size: 16px;
  line-height: 1.75;
  color: #334155;
}

.prose-content h2 {
  font-size: 24px;
  font-weight: 850;
  color: #0f172a;
  margin: 36px 0 16px;
}

.prose-content h3 {
  font-size: 20px;
  font-weight: 750;
  color: #0f172a;
  margin: 28px 0 12px;
}

.prose-content p {
  margin-bottom: 20px;
}

.prose-content ul, .prose-content ol {
  margin: 0 0 24px 24px;
}

.prose-content li {
  margin-bottom: 8px;
}

.lead-box {
  background: #f5f3ff;
  border-left: 4px solid var(--primary);
  padding: 22px 26px;
  margin-bottom: 32px;
  border-radius: 0 12px 12px 0;
}

.lead-text {
  font-size: 17.5px;
  line-height: 1.6;
  color: #1e1b4b;
  margin-bottom: 0 !important;
}

/* Comparison Table */
.table-wrapper {
  overflow-x: auto;
  margin: 32px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.rating-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.rating-table th {
  background: var(--bg-alt);
  padding: 14px 16px;
  font-weight: 750;
  color: #0f172a;
  border-bottom: 1px solid var(--border);
}

.rating-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-light);
  color: #334155;
}

.rating-table tr:last-child td {
  border-bottom: none;
}

.rating-table tr:hover td {
  background: #f8fafc;
}

/* Social Share */
.share-block {
  margin: 36px 0;
  padding: 22px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.share-title {
  font-size: 14px;
  font-weight: 750;
  color: #0f172a;
  margin-bottom: 12px;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: white;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn-share:hover { opacity: 0.9; }
.btn-share.vk { background: #0077ff; }
.btn-share.tg { background: #229ed9; }
.btn-share.ok { background: #ee8208; }
.btn-share.mail { background: #168de2; }
.btn-share.wa { background: #25d366; }
.btn-share.copy { background: #475569; }

/* Disclaimer Box */
.disclaimer-box {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 36px 0;
  font-size: 14.5px;
  color: #92400e;
  line-height: 1.6;
}

.disclaimer-title {
  font-weight: 800;
  margin-bottom: 6px;
}

/* Author Box */
.author-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 36px 0;
}

.author-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.author-role {
  font-size: 13.5px;
  color: var(--primary);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.author-bio {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Published Reviews Section under Ratings */
.reviews-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 36px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.reviews-section.empty {
  background: #f8fafc;
  padding: 22px 24px;
  margin: 28px 0;
}

.reviews-header {
  margin-bottom: 20px;
}

.reviews-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--primary);
  background: rgba(79, 70, 229, 0.08);
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.reviews-title {
  font-size: 20px;
  font-weight: 850;
  color: #0f172a;
  margin-bottom: 6px;
}

.reviews-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

.reviews-list-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-item-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.review-item-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.review-item-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.review-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
  color: white;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.review-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.review-item-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.review-verified-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 7px;
  border-radius: 10px;
}

.review-item-date {
  font-size: 12px;
  color: #64748b;
}

.review-item-body {
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
  white-space: pre-line;
}

/* Review / Feedback Form */
.feedback-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin: 36px 0;
  box-shadow: var(--shadow-sm);
}

.feedback-title {
  font-size: 21px;
  font-weight: 850;
  color: #0f172a;
  margin-bottom: 6px;
}

.feedback-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 22px;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14.5px;
  color: #0f172a;
  background: white;
  transition: border-color 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.checkbox-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #475569;
  cursor: pointer;
}

.checkbox-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.btn-submit-form {
  background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
  color: white;
  border: none;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.15s ease;
}

.btn-submit-form:hover {
  opacity: 0.92;
}

.form-message-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}

.form-message-alert.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  display: block;
}

.form-message-alert.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  display: block;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.widget-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.rubric-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rubric-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #475569;
  padding: 6px 0;
}

.rubric-link:hover {
  color: var(--primary);
}

.rubric-badge {
  background: #f1f5f9;
  color: #64748b;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 10px;
}

.sidebar-promo-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 24px;
}

.sidebar-promo-card h4 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.sidebar-promo-card p {
  font-size: 13.5px;
  opacity: 0.9;
  line-height: 1.5;
  margin-bottom: 18px;
}

.btn-white-promo {
  display: inline-block;
  background: white;
  color: #312e81;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 8px;
}

/* ================= Search Results Page ================= */
.search-page-header {
  margin-bottom: 32px;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.search-item-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: all 0.2s ease;
}

.search-item-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.search-item-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.search-item-title a:hover {
  color: var(--primary);
}

.search-item-url {
  font-size: 13px;
  color: #059669;
  font-family: monospace;
  margin-bottom: 8px;
}

.search-item-desc {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ================= Footer ================= */
.footer {
  background: #090d16;
  color: #94a3b8;
  padding: 60px 0 30px;
  margin-top: auto;
  border-top: 1px solid #1e293b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  margin: 16px 0 24px;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 14px;
  font-weight: 750;
  color: white;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

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

.footer-links a {
  font-size: 14px;
  color: #94a3b8;
}

.footer-links a:hover {
  color: white;
}

.footer-disclaimer {
  padding-top: 24px;
  border-top: 1px solid #1e293b;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}

/* ================= Floating Elements: Cookies, Scroll to Top ================= */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 440px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  display: none;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-content {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 14px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.btn-cookie-accept {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: #1e293b;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ================= Responsive Styles ================= */
@media (max-width: 1024px) {
  .header-inner,
  .header-container {
    height: 64px;
    padding: 0 16px;
  }
  .header-search-form,
  .desktop-suggest-btn {
    display: none !important;
  }
  .burger-btn,
  .mobile-burger {
    display: inline-flex !important;
  }
  .nav-menu,
  .nav-desktop {
    display: none !important;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: calc(100vh - 64px);
    background: #ffffff;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 20px 20px 40px;
    gap: 8px;
    overflow-y: auto;
    z-index: 99999;
    box-shadow: 0 20px 30px rgba(0,0,0,0.2);
    box-sizing: border-box;
  }
  .nav-menu.mobile-open,
  .nav-desktop.mobile-open {
    display: flex !important;
  }
  .mobile-search-wrapper {
    display: block !important;
    margin-bottom: 12px;
  }
  .mobile-menu-search {
    position: relative;
    display: flex;
    width: 100%;
  }
  .mobile-menu-search input {
    width: 100%;
    background: #f1f5f9;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 80px 12px 14px;
    font-size: 14px;
    box-sizing: border-box;
  }
  .mobile-menu-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
  }
  .mobile-suggest-wrapper {
    display: block !important;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
  }
  .mobile-btn-suggest {
    width: 100%;
    text-align: center;
    padding: 12px;
  }
  .nav-item {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-link {
    width: 100%;
    font-size: 16px;
    padding: 12px 10px;
    border-bottom: 1px solid #f1f5f9;
    box-sizing: border-box;
  }
  .dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    padding-left: 14px;
    max-height: none;
    background: #f8fafc;
    border-radius: 6px;
    margin: 4px 0 8px;
    width: 100%;
    box-sizing: border-box;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .evidence-grid, .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .hero-title {
    font-size: 30px;
    line-height: 1.2;
  }
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .categories-grid {
    grid-template-columns: 1fr;
  }
  .evidence-grid, .principles-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .article-title-h1 {
    font-size: 24px;
  }
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    flex-direction: column;
    gap: 12px;
  }
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  .hero-slider-container {
    max-width: 100%;
  }
  .floating-badge-top {
    left: 6px;
    font-size: 11px;
    padding: 4px 8px;
  }
  .floating-badge-bottom {
    right: 6px;
    font-size: 11px;
    padding: 4px 8px;
  }
  .hero-rating-card {
    padding: 22px 14px 18px;
  }
  .hero-search-form {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
    gap: 8px;
  }
  .hero-search-form .hero-search-input {
    background: white;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 14px 12px 38px;
    width: 100%;
  }
  .hero-search-form .hero-search-btn {
    position: static;
    width: 100%;
    border-radius: 8px;
    padding: 12px;
  }
  .btn-share {
    flex: 1 1 100%;
    text-align: center;
  }
}

/* ==========================================================================
   FAQ Section Styles (Schema FAQPage Match)
   ========================================================================== */
.faq-section {
  margin: 40px 0;
  padding: 32px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.faq-accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-accordion-item[open] {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-question {
  cursor: pointer;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.faq-question::after {
  content: '▼';
  font-size: 11px;
  color: var(--primary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-accordion-item[open] .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px 18px 20px;
  color: #475569;
  font-size: 14.5px;
  line-height: 1.65;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

/* ==========================================================================
   Spheres Catalog Grid (/rejtingi/)
   ========================================================================== */
.spheres-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.sphere-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.sphere-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.sphere-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.sphere-card-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}

.sphere-card-icon img {
  width: 26px;
  height: 26px;
}

.sphere-card-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

.sphere-card-title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.sphere-card-title a:hover {
  color: var(--primary);
}

.sphere-card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.sphere-subcats-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.sphere-subcat-chip {
  display: inline-block;
  padding: 4px 10px;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s ease;
}

.sphere-subcat-chip:hover {
  background: #e2e8f0;
  color: var(--primary);
}

.sphere-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sphere-count-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(30, 58, 138, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ==========================================================================
   Cities Catalog Grid (/goroda/)
   ========================================================================== */
.cities-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.city-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}

.city-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.city-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.city-card-name {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.city-card-icon {
  font-size: 22px;
}

.city-card-region {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  min-height: 18px;
}

.city-card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
}

.city-stat-pop {
  color: #64748b;
  font-weight: 500;
}

.city-stat-ratings {
  color: var(--primary);
  font-weight: 700;
}

/* ==========================================================================
   Search Hub & Query Chips (/search)
   ========================================================================== */
.search-hub-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.search-chips-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 12px;
}

.search-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.search-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.15s ease;
}

.search-chip:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
