/* === kuznetspoletaev.ru — Independent Forge Rating === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #dbeafe;
  --blue-50: #eff6ff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gold: #f59e0b;
  --gold-light: #fef3c7;
  --green: #10b981;
  --red: #ef4444;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --max-w: 960px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color .2s;
}
a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -.3px;
}
.logo span {
  color: var(--blue);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}
nav a {
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
nav a:hover, nav a.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  text-decoration: none;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--blue-50) 0%, #fff 100%);
  padding: 56px 20px 48px;
  text-align: center;
  border-bottom: 1px solid var(--gray-100);
}
.hero h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -.5px;
  line-height: 1.25;
  margin-bottom: 16px;
}
.hero .subtitle {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.hero .update-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

/* ===== SECTION ===== */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 20px;
}
.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
  letter-spacing: -.3px;
}
.section-lead {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 32px;
  max-width: 700px;
}

/* ===== CRITERIA BAR ===== */
.criteria-bar {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 40px;
}
.criteria-bar h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--gray-800);
}
.criteria-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.criteria-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
}
.criteria-tag .icon {
  font-size: 15px;
}

/* ===== RATING CARD ===== */
.rating-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  transition: box-shadow .25s, border-color .25s;
  position: relative;
}
.rating-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}
.rating-card.featured {
  border-color: var(--blue);
  border-width: 2px;
  box-shadow: 0 0 0 3px var(--blue-light);
}
.rating-card.featured .card-badge {
  background: var(--blue);
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}
.card-position {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}
.pos-1 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.pos-2 { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.pos-3 { background: linear-gradient(135deg, #10b981, #059669); }
.pos-4, .pos-5, .pos-6, .pos-7, .pos-8 { background: var(--gray-400); }

.card-header {
  flex: 1;
}
.card-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.card-name a {
  color: inherit;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--gray-500);
}
.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-score {
  flex-shrink: 0;
  text-align: center;
}
.score-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.score-value.high { color: var(--green); }
.score-value.good { color: var(--blue); }
.score-value.mid { color: var(--gold); }
.score-label {
  font-size: 11px;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}

.stars {
  display: flex;
  gap: 2px;
  margin: 6px 0 0;
}
.star {
  color: var(--gold);
  font-size: 14px;
}
.star.empty {
  color: var(--gray-300);
}

.card-body {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 18px;
}
.card-body p {
  margin-bottom: 10px;
}

.card-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.pros, .cons {
  font-size: 14px;
}
.pros h4, .cons h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.pros h4 { color: var(--green); }
.cons h4 { color: var(--red); }
.pros ul, .cons ul {
  list-style: none;
  padding: 0;
}
.pros li, .cons li {
  padding: 3px 0;
  padding-left: 18px;
  position: relative;
  color: var(--gray-600);
}
.pros li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.cons li::before {
  content: '\2212';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .2s, box-shadow .2s;
  cursor: pointer;
  border: none;
}
.btn-blue {
  background: var(--blue);
  color: #fff !important;
}
.btn-blue:hover {
  background: var(--blue-dark);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--blue) !important;
  border: 1px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue-50);
}

/* ===== METHODOLOGY ===== */
.method-steps {
  counter-reset: step;
}
.method-step {
  position: relative;
  padding: 20px 24px 20px 60px;
  margin-bottom: 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}
.method-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 20px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}
.method-step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--gray-800);
}
.method-step p {
  font-size: 14px;
  color: var(--gray-600);
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.service-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow .2s;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
}
.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.service-card p {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 14px;
}

/* ===== TABLE ===== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 14px;
}
.comparison-table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-700);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid var(--gray-200);
}
.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-600);
}
.comparison-table tr:hover td {
  background: var(--blue-50);
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 20px 0;
  font-size: 13px;
  color: var(--gray-400);
}
.breadcrumbs a {
  color: var(--gray-400);
}
.breadcrumbs a:hover {
  color: var(--blue);
}
.breadcrumbs span {
  margin: 0 6px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  margin-top: 64px;
  padding: 32px 20px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy {
  font-size: 13px;
  color: var(--gray-400);
}
.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}
.footer-links a {
  font-size: 13px;
  color: var(--gray-400);
}
.footer-links a:hover {
  color: var(--blue);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 40px 16px 36px; }
  .hero h1 { font-size: 24px; }
  .hero .subtitle { font-size: 15px; }

  .section { padding: 36px 16px; }
  .section-title { font-size: 20px; }

  nav ul { gap: 14px; }
  nav a { font-size: 13px; }

  .card-top { flex-direction: column; gap: 10px; }
  .card-score { align-self: flex-start; }
  .card-pros-cons { grid-template-columns: 1fr; gap: 12px; }
  .rating-card { padding: 20px; }

  .criteria-list { gap: 6px; }
  .criteria-tag { font-size: 12px; padding: 5px 10px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .header-inner { flex-direction: column; gap: 10px; }
  nav ul { gap: 10px; }
  .hero h1 { font-size: 21px; }
  .card-name { font-size: 17px; }
}
