/* ============================================================
   BestChange — Главная таблица стилей
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --primary:       #2563eb;
  --primary-dark:  #1d4ed8;
  --primary-light: #dbeafe;
  --secondary:     #1e293b;
  --accent:        #f59e0b;
  --accent-dark:   #d97706;
  --bg:            #f8fafc;
  --bg-card:       #ffffff;
  --text:          #1e293b;
  --text-muted:    #64748b;
  --border:        #e2e8f0;
  --border-dark:   #cbd5e1;
  --success:       #10b981;
  --error:         #ef4444;
  --warning:       #f59e0b;
  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow:        0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl:     0 24px 64px rgba(0,0,0,.16);
  --transition:    all .2s ease;
  --transition-slow: all .4s ease;
  --header-h:      70px;
  --container:     1280px;
  --sidebar-w:     320px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.25; color: var(--secondary); }

/* ── Utility ── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-0  { margin-top: 0; }
.mb-4  { margin-bottom: 1rem; }
.mb-8  { margin-bottom: 2rem; }
.hidden { display: none !important; }
.flex   { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.grid   { display: grid; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  line-height: 1;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,.35);
}

.btn-secondary {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}
.btn-secondary:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,158,11,.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-sm  { padding: .5rem 1rem; font-size: .8rem; }
.btn-lg  { padding: 1rem 2rem; font-size: 1rem; }
.btn-icon { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--secondary);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { color: var(--primary); }
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.logo-text span { color: var(--primary); }

/* Nav */
.main-nav { display: flex; align-items: center; gap: .25rem; flex: 1; justify-content: center; }
.nav-link {
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  font-size: .9rem;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { background: var(--primary-light); color: var(--primary); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.hamburger:hover { background: var(--bg); }
.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--secondary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15,23,42,.6);
  z-index: 999;
  backdrop-filter: blur(4px);
}
.mobile-nav.open { display: block; }
.mobile-nav-inner {
  background: #fff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: .8rem 1rem;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
}
.mobile-nav-link:hover,
.mobile-nav-link.active { background: var(--primary-light); color: var(--primary); }

/* ── Footer ── */
.site-footer {
  background: var(--secondary);
  color: #94a3b8;
  margin-top: auto;
}
.footer-main {
  padding: 4rem 0 2rem;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
}
.footer-brand .logo { color: #fff; margin-bottom: 1rem; }
.footer-brand .logo:hover { color: var(--accent); }
.footer-brand p { font-size: .9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: .5rem; }
.footer-links a {
  color: #94a3b8;
  font-size: .9rem;
  transition: var(--transition);
}
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .85rem;
}
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a { color: #94a3b8; }
.footer-legal a:hover { color: #fff; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #1e293b 0%, #1e40af 50%, #1e293b 100%);
  color: #fff;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: .4rem 1rem;
  font-size: .8rem;
  font-weight: 500;
  color: #bfdbfe;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.15rem;
  color: #bfdbfe;
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.12);
  flex-wrap: wrap;
}
.hero-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  display: block;
}
.hero-stat-label { font-size: .85rem; color: #94a3b8; }

/* ── Stats Bar ── */
.stats-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-item { padding: .5rem; }
.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-label { font-size: .8rem; color: var(--text-muted); font-weight: 500; }

/* ── Section ── */
.section { padding: 60px 0; }
.section-sm { padding: 40px 0; }
.section-lg { padding: 80px 0; }
.section-header { margin-bottom: 2.5rem; }
.section-header.centered { text-align: center; }
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  background: var(--primary-light);
  padding: .3rem .8rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: .75rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
}
.section-header.centered .section-subtitle { margin: 0 auto; }

/* Category section */
.category-section { margin-bottom: 3rem; }
.category-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}
.category-section-title {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.3rem;
  font-weight: 700;
}
.category-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--primary-light);
  flex-shrink: 0;
}

/* ── Article Cards ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.articles-grid-2 { grid-template-columns: repeat(2, 1fr); }
.articles-grid-4 { grid-template-columns: repeat(4, 1fr); }

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.card-image {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: var(--bg);
}
.card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.article-card:hover .card-image img { transform: scale(1.05); }
.card-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  font-size: 3rem;
}

.card-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .3rem .7rem;
  border-radius: 999px;
  z-index: 1;
}
.card-featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: 999px;
  z-index: 1;
}

.card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: .6rem;
  flex-wrap: wrap;
}
.card-meta-item { display: flex; align-items: center; gap: .3rem; }
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: .6rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--primary); }
.card-excerpt {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .75rem;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}
.card-read-more {
  font-size: .8rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.card-read-more:hover { gap: .6rem; color: var(--primary-dark); }

/* ── Stars ── */
.stars {
  display: inline-flex;
  gap: 2px;
  color: #e2e8f0;
  font-size: .9rem;
}
.stars .filled { color: var(--accent); }
.stars .half {
  position: relative;
  color: #e2e8f0;
}
.stars .half::before {
  content: '★';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  width: 50%;
  overflow: hidden;
}
.rating-text {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: .25rem;
}
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #fef3c7;
  color: #92400e;
  font-size: .8rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 999px;
}
.rating-badge .star-icon { color: var(--accent); }

/* ── Category Cards ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.category-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: currentColor;
  color: inherit;
}
.category-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: var(--bg);
}
.category-card-body {}
.category-card-name { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.category-card-desc { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }
.category-card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-muted);
}
.category-card-count { font-weight: 600; }

/* ── Breadcrumbs ── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  padding: 1rem 0;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { color: #cbd5e1; }
.breadcrumbs .current { color: var(--text); font-weight: 500; }

/* ── Tags ── */
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  display: inline-flex;
  align-items: center;
  padding: .3rem .75rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
}
.tag:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary-light); }
.tag-primary { background: var(--primary-light); color: var(--primary); border-color: var(--primary-light); }
.tag-accent  { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.tag-success { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }

/* ── Filter Bar ── */
.filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.search-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
}
.search-wrap svg {
  position: absolute;
  left: .875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: .7rem 1rem .7rem 2.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: var(--transition);
  outline: none;
}
.search-input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.search-input::placeholder { color: var(--text-muted); }

.filter-select {
  padding: .7rem 2rem .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right .75rem center;
  -webkit-appearance: none;
  color: var(--text);
  transition: var(--transition);
  outline: none;
  cursor: pointer;
  white-space: nowrap;
}
.filter-select:focus { border-color: var(--primary); background-color: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 2rem 0;
  flex-wrap: wrap;
}
.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .75rem;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn:disabled { opacity: .4; pointer-events: none; }
.page-ellipsis { padding: 0 .25rem; color: var(--text-muted); }

/* ── Contact Form ── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: .5rem;
}
.form-control {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: var(--transition);
  outline: none;
  font-size: .95rem;
}
.form-control:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-control.error { border-color: var(--error); }
.form-control.error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.1); }
.form-error { font-size: .8rem; color: var(--error); margin-top: .35rem; display: none; }
.form-error.show { display: block; }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-success {
  padding: 1rem 1.25rem;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius);
  color: #065f46;
  font-weight: 500;
  display: none;
}
.form-success.show { display: flex; align-items: center; gap: .5rem; }

/* ── FAQ Accordion ── */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary);
  transition: var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-question svg {
  flex-shrink: 0;
  transition: transform .3s ease;
  color: var(--text-muted);
}
.faq-item.open .faq-question svg { transform: rotate(180deg); color: var(--primary); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-item.open .faq-answer { max-height: 600px; }
.faq-answer-inner {
  padding: 0 1.25rem 1.25rem;
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Loading Skeletons ── */
@keyframes shimmer {
  0%   { background-position: -1000px 0; }
  100% { background-position:  1000px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f8fafc 50%, #e2e8f0 75%);
  background-size: 1000px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
.skeleton-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.skeleton-img { height: 200px; }
.skeleton-body { padding: 1.25rem; }
.skeleton-line { height: 12px; margin-bottom: 10px; }
.skeleton-line.w-75 { width: 75%; }
.skeleton-line.w-50 { width: 50%; }
.skeleton-line.w-90 { width: 90%; }
.skeleton-title { height: 18px; margin-bottom: 14px; }

/* ── Share Buttons ── */
.share-buttons { display: flex; gap: .5rem; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.share-btn:hover { transform: translateY(-2px); }
.share-vk      { background: #4a76a8; color: #fff; }
.share-tg      { background: #26a5e4; color: #fff; }
.share-tw      { background: #1da1f2; color: #fff; }
.share-copy    { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.share-copy:hover { background: var(--primary-light); color: var(--primary); }

/* ── Sidebar ── */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 2.5rem;
  align-items: start;
}
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.author-widget { text-align: center; }
.author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}
.author-name { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.author-role { font-size: .8rem; color: var(--text-muted); }

/* ── Article content ── */
.article-content { line-height: 1.8; }
.article-content h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border);
}
.article-content h3 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
.article-content p { margin-bottom: 1.25rem; }
.article-content ul,
.article-content ol { margin-left: 1.5rem; margin-bottom: 1.25rem; list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: .5rem; }
.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  background: var(--primary-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--secondary);
}
.article-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.article-content th,
.article-content td {
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  font-size: .9rem;
}
.article-content th { background: var(--bg); font-weight: 700; text-align: left; }
.article-content tr:nth-child(even) td { background: var(--bg); }
.article-content img { border-radius: var(--radius-lg); margin: 1.5rem 0; }
.article-content a { text-decoration: underline; text-underline-offset: 3px; }

/* Pros/cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
.pros-box,
.cons-box {
  border-radius: var(--radius);
  padding: 1.25rem;
}
.pros-box { background: #d1fae5; border: 1px solid #a7f3d0; }
.cons-box { background: #fee2e2; border: 1px solid #fca5a5; }
.pros-box h4 { color: #065f46; margin-bottom: .75rem; }
.cons-box h4 { color: #991b1b; margin-bottom: .75rem; }
.pros-box ul,
.cons-box ul { margin: 0; padding: 0; list-style: none; }
.pros-box li,
.cons-box li { padding: .3rem 0; padding-left: 1.5rem; position: relative; font-size: .9rem; }
.pros-box li::before { content: '✓'; position: absolute; left: 0; color: #059669; font-weight: 700; }
.cons-box li::before { content: '✗'; position: absolute; left: 0; color: #ef4444; font-weight: 700; }

/* Verdict box */
.verdict-box {
  background: linear-gradient(135deg, var(--primary-light), #ede9fe);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}
.verdict-rating { font-size: 3rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: .5rem; }
.verdict-stars { margin-bottom: .75rem; font-size: 1.5rem; }
.verdict-text { font-size: .95rem; color: var(--text-muted); max-width: 500px; margin: 0 auto; }

/* ── About section ── */
.about-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
}
.feature-title { font-size: 1.05rem; font-weight: 700; margin-bottom: .6rem; }
.feature-desc { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }

/* ── Newsletter ── */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.newsletter-section h2 { color: #fff; margin-bottom: .75rem; }
.newsletter-section p { color: #bfdbfe; margin-bottom: 2rem; }
.newsletter-form {
  display: flex;
  gap: .75rem;
  max-width: 440px;
  margin: 0 auto;
}
.newsletter-input {
  flex: 1;
  padding: .85rem 1.1rem;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: .95rem;
  outline: none;
  backdrop-filter: blur(8px);
}
.newsletter-input::placeholder { color: rgba(255,255,255,.6); }
.newsletter-input:focus { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.15); }

/* ── Contact info ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.contact-label { font-size: .8rem; color: var(--text-muted); margin-bottom: .2rem; }
.contact-value { font-weight: 600; }
.map-placeholder {
  background: var(--bg);
  border-radius: var(--radius-lg);
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-muted);
  flex-direction: column;
  gap: .75rem;
  font-size: 2.5rem;
}

/* ── Team cards ── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.team-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), #ede9fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1rem;
}
.team-name { font-size: 1.1rem; font-weight: 700; margin-bottom: .25rem; }
.team-role { font-size: .85rem; color: var(--primary); font-weight: 500; margin-bottom: .75rem; }
.team-bio { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--secondary);
  color: #94a3b8;
  padding: 1rem;
  border-top: 3px solid var(--primary);
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-text { font-size: .875rem; }
.cookie-text a { color: var(--accent); }
.cookie-actions { display: flex; gap: .75rem; flex-shrink: 0; }

/* ── Page header ── */
.page-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
}
.page-header-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: .5rem;
}
.page-header-sub { color: var(--text-muted); font-size: 1rem; }

/* ── Legal pages ── */
.legal-content { max-width: 800px; }
.legal-content h2 { font-size: 1.3rem; margin: 2.5rem 0 1rem; color: var(--secondary); }
.legal-content h3 { font-size: 1.1rem; margin: 1.75rem 0 .75rem; }
.legal-content p { margin-bottom: 1.1rem; color: var(--text-muted); line-height: 1.75; }
.legal-content ul { margin-left: 1.5rem; margin-bottom: 1rem; list-style: disc; }
.legal-content li { margin-bottom: .5rem; color: var(--text-muted); }

/* ── Article page header ── */
.article-header { padding: 3rem 0 2rem; }
.article-eyebrow { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.article-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}
.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.25rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 1.5rem;
}
.meta-item { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--text-muted); }
.meta-item strong { color: var(--text); }
.article-hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin: 2rem 0;
  box-shadow: var(--shadow-lg);
}
.article-hero-placeholder {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-xl);
  margin: 2rem 0;
  background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 50%, #fce7f3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  box-shadow: var(--shadow-lg);
}

/* ── Responsive ── */

/* 1280px — large desktop tweaks */
@media (max-width: 1280px) {
  .footer-main { grid-template-columns: 1.5fr repeat(3,1fr); gap: 2rem; }
}

/* 1024px */
@media (max-width: 1024px) {
  .page-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { order: -1; display: grid; grid-template-columns: repeat(2,1fr); }
  .articles-grid { grid-template-columns: repeat(2,1fr); }
  .articles-grid-4 { grid-template-columns: repeat(2,1fr); }
  .categories-grid { grid-template-columns: repeat(2,1fr); }
  .about-features { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .main-nav { display: none; }
  .hamburger { display: flex; }
}

/* 768px */
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .hero { padding: 50px 0 60px; }
  .hero-stats { gap: 1.5rem; }
  .section { padding: 40px 0; }
  .section-lg { padding: 50px 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .filter-bar { flex-direction: column; }
  .search-wrap { width: 100%; }
  .newsletter-form { flex-direction: column; }
  .sidebar { grid-template-columns: 1fr; }
  .article-hero-img,
  .article-hero-placeholder { height: 260px; }
}

/* 480px */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .articles-grid { grid-template-columns: 1fr; }
  .articles-grid-2 { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
  .btn-lg { padding: .85rem 1.5rem; }
}

/* ── Print ── */
@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .share-buttons,
  .cookie-banner { display: none !important; }
}
