/* ========================================================================
   ОкнаРейтинг Пенза — стили сайта. Чистый CSS, без препроцессоров и сборки.
   ======================================================================== */

/* ===== Шрифты (self-hosted, ничего не грузится со сторонних доменов) ===== */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/inter-cyrillic.woff2) format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+00-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(../fonts/manrope-cyrillic.woff2) format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(../fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+00-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* ===== Токены ===== */
:root {
  --bg: #fbfdfc;
  --fg: #0f172a;
  --muted: #64748b;
  --muted-2: #475569;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --white: #fff;

  --emerald-50: #ecfdf5;
  --emerald-200: #a7f3d0;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-700: #b45309;
  --orange-500: #f97316;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;

  --font: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: Manrope, Inter, -apple-system, "Segoe UI", Arial, sans-serif;

  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --header-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--emerald-600); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid rgba(16, 185, 129, .55); outline-offset: 2px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Иконки ===== */
.icon { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: -.15em; }
.i-xxs { width: 13px; height: 13px; }
.i-xs  { width: 16px; height: 16px; }
.i-sm  { width: 20px; height: 20px; }
.i-md  { width: 24px; height: 24px; }
.i-lg  { width: 36px; height: 36px; }

.stars { display: inline-flex; gap: 1px; }
.star-on  { color: var(--amber-400); }
.star-off { color: #e2e8f0; }

/* ===== Кнопки ===== */
.btn-premium,
.btn-white,
.btn-glass,
.btn-gold,
.btn-outline,
.btn-dark,
.btn-leader,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}

.btn-premium {
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-500));
  color: #fff;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 14px;
  box-shadow: 0 4px 14px -2px rgba(16, 185, 129, .5);
}
.btn-premium:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -4px rgba(16, 185, 129, .6); }

.btn-white {
  background: #fff; color: var(--emerald-700);
  border-radius: 999px; padding: 15px 32px; font-size: 17px;
  box-shadow: 0 18px 40px -14px rgba(2, 44, 34, .6);
}
.btn-white:hover { transform: translateY(-2px) scale(1.02); }

.btn-glass {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  border-radius: 999px; padding: 14px 30px; font-size: 16px; font-weight: 600;
  backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .18); }

.btn-gold {
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  color: #fff; border-radius: var(--radius); padding: 13px 24px; font-size: 15px;
  box-shadow: 0 10px 24px -8px rgba(245, 158, 11, .7);
}
.btn-gold:hover { transform: translateY(-2px); }

.btn-outline {
  background: #fff; color: var(--emerald-700);
  border: 2px solid var(--emerald-500);
  border-radius: 999px; padding: 12px 26px; font-size: 15px;
}
.btn-outline:hover { background: var(--emerald-50); }

.btn-dark {
  background: #0f172a; color: #fff;
  border-radius: 10px; padding: 8px 14px; font-size: 12px;
}
.btn-dark:hover { background: #1e293b; }

.btn-leader {
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-600));
  color: #fff; border-radius: 10px; padding: 8px 16px; font-size: 12px;
  box-shadow: 0 8px 18px -6px rgba(16, 185, 129, .7);
}
.btn-leader:hover { transform: translateY(-1px) scale(1.02); }

.btn-ghost {
  background: #f8fafc; color: var(--muted-2);
  border-radius: 10px; padding: 8px 14px; font-size: 12px; font-weight: 600;
}
.btn-ghost:hover { background: var(--line-soft); }

/* ===== Шапка ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .18); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-600));
  color: #fff; box-shadow: 0 8px 20px -6px rgba(16, 185, 129, .7);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-title { font-family: var(--font-display); font-weight: 800; font-size: 19px; }
.logo-sub { font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav-desktop { display: none; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--muted-2);
  background: none; border: 0; cursor: pointer; transition: background .2s, color .2s;
}
.nav-link:hover { background: var(--emerald-50); color: var(--emerald-700); }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  width: min(640px, calc(100vw - 40px));
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .3);
  padding: 10px; z-index: 200;
  animation: pop .18s var(--ease);
}
.dropdown-menu[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 8px); } }

.dropdown-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px; border-radius: 12px; transition: background .2s;
}
.dropdown-item:hover, .dropdown-item.is-active { background: var(--emerald-50); }
.dropdown-item-title { display: block; font-size: 14px; font-weight: 600; }
.dropdown-item-sub { display: block; font-size: 12px; color: var(--muted); }

.num-badge {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--from, var(--emerald-500)), var(--to, var(--teal-600)));
  color: #fff; font-weight: 800; font-size: 13px;
}
.num-badge-lg { width: 48px; height: 48px; border-radius: 13px; font-size: 18px; margin-bottom: 14px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cta { display: none; }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 0; background: none; cursor: pointer; color: var(--muted-2);
}

.nav-mobile { border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.nav-mobile[hidden] { display: none; }
.nav-mobile-label {
  padding: 14px 4px 6px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
}
.nav-mobile-list { display: flex; flex-direction: column; gap: 2px; }
.nav-mobile-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 8px; border-radius: 12px; font-size: 14px; font-weight: 500;
}
.nav-mobile-item:hover, .nav-mobile-item.is-active { background: var(--emerald-50); color: var(--emerald-700); }
.nav-mobile-footer {
  display: flex; flex-direction: column; gap: 4px;
  border-top: 1px solid var(--line); margin-top: 12px; padding: 12px 0 20px;
}
.nav-mobile-footer > a { padding: 10px 8px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.nav-mobile-cta { margin-top: 8px; justify-content: center; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh;
  min-height: min(100svh, 940px); /* на очень высоких экранах не растягиваем первый экран */
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 90px;
  background: linear-gradient(-45deg, #042f2e, #064e3b, #115e59, #134e4a, #0f766e);
  background-size: 400% 400%;
  animation: gradient-bg 15s ease infinite;
  color: #fff;
}
@keyframes gradient-bg {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-aurora {
  position: absolute; inset: -20%; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(16, 185, 129, .45), transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(20, 184, 166, .4), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 90%, rgba(6, 182, 212, .35), transparent 50%);
  filter: blur(60px);
  animation: aurora 20s ease infinite;
}
@keyframes aurora {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(5%, -5%) scale(1.05); }
  66% { transform: translate(-5%, 5%) scale(.95); }
}

.hero-grid {
  position: absolute; inset: 0; opacity: .25; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .14) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 10%, transparent 75%);
}

.hero-dots { position: absolute; inset: 0; pointer-events: none; }
.hero-dots i {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); height: var(--s); border-radius: 50%;
  background: rgba(110, 231, 183, .6);
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--d);
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero-inner { position: relative; z-index: 2; text-align: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 26px;
  background: rgba(15, 23, 32, .55); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(14px);
  color: #6ee7b7; font-size: 13px; font-weight: 500;
}
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #34d399; }
.pulse-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #34d399;
  animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }

.hero-title {
  font-size: clamp(34px, 7vw, 68px);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.05;
}
.hero-title-accent {
  background: linear-gradient(90deg, #6ee7b7, #99f6e4, #67e8f9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-lead {
  max-width: 780px; margin: 26px auto 0;
  font-size: clamp(16px, 2vw, 20px); color: rgba(236, 253, 245, .82); line-height: 1.65;
}

.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  max-width: 760px; margin: 48px auto 0;
}
.hero-stat {
  background: rgba(15, 23, 32, .55); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg); padding: 16px 12px; text-align: center; color: #6ee7b7;
}
.hero-stat-value { font-size: clamp(22px, 3.5vw, 30px); font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.hero-stat-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(209, 250, 229, .7); margin-top: 4px; }

.hero-leader {
  max-width: 680px; margin: 46px auto 0;
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
  background: rgba(15, 23, 32, .6); border: 1px solid rgba(52, 211, 153, .25);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-xl); padding: 26px;
}
.hero-leader-medal {
  width: 74px; height: 74px; border-radius: 20px; flex: none;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, var(--amber-400), #eab308, #ea580c);
  box-shadow: 0 0 40px -10px rgba(251, 191, 36, .8);
}
.hero-leader-main { flex: 1; }
.hero-leader-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-300);
}
.hero-leader-name { font-family: var(--font-display); font-size: 28px; font-weight: 800; }
.hero-leader-sub { font-size: 14px; color: rgba(209, 250, 229, .75); }
.hero-leader-score { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero-leader-value { font-size: 44px; font-weight: 800; color: var(--amber-300); font-variant-numeric: tabular-nums; line-height: 1; }

/* ===== Промо-полоса ===== */
.promo-wrap { position: relative; z-index: 3; margin-top: -70px; }
.promo {
  position: relative; overflow: hidden;
  display: grid; gap: 22px;
  border-radius: var(--radius-xl); padding: 28px 24px; color: #fff;
  background: linear-gradient(100deg, #0f172a, #064e3b 55%, #0f172a);
  box-shadow: 0 40px 80px -30px rgba(4, 47, 46, .6);
}
.promo::before, .promo::after {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; filter: blur(70px);
}
.promo::before { top: -140px; left: -120px; background: rgba(251, 191, 36, .28); }
.promo::after { bottom: -140px; right: -120px; background: rgba(45, 212, 191, .22); }
.promo-main, .promo-actions { position: relative; z-index: 1; }
.promo-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
  background: rgba(251, 191, 36, .18); border: 1px solid rgba(251, 191, 36, .32);
  color: var(--amber-300); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.promo-title { font-size: clamp(26px, 4.5vw, 46px); font-weight: 800; margin-bottom: 12px; }
.promo-title-accent {
  background: linear-gradient(90deg, var(--amber-300), #fdba74);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.promo-text { color: rgba(236, 253, 245, .8); font-size: 16px; max-width: 640px; }
.promo-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.promo-actions .btn-glass { padding: 13px 24px; font-size: 15px; }

/* ===== Секции ===== */
.section { padding: 64px 0; }
.section-tint { background: linear-gradient(180deg, #fff, rgba(236, 253, 245, .55)); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }

.kicker {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
  background: var(--emerald-50); border: 1px solid var(--emerald-200); color: var(--emerald-700);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.section-title { font-size: clamp(26px, 4.5vw, 46px); font-weight: 800; margin-bottom: 14px; }
.section-title-sm { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.section-lead { font-size: 17px; color: var(--muted-2); }

/* ===== Карточки (общий premium-стиль) ===== */
.premium-card,
.ranking-card,
.step-card,
.faq-card,
.company-card,
.method-card,
.accordion-item {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .82));
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px -8px rgba(16, 24, 40, .08);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.ranking-card:hover, .step-card:hover, .faq-card:hover, .company-card:hover, .method-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 24px 48px -12px rgba(16, 24, 40, .15);
}

/* ===== Сетка рейтингов ===== */
.rankings-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.ranking-card { display: block; overflow: hidden; padding: 22px; }
.ranking-card-glow {
  position: absolute; top: -40px; right: -40px; width: 130px; height: 130px; border-radius: 50%;
  background: linear-gradient(135deg, var(--from), var(--to)); opacity: .1; filter: blur(28px);
  transition: opacity .3s;
}
.ranking-card:hover .ranking-card-glow { opacity: .22; }
.ranking-card-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.ranking-card-sub { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.ranking-card-leader { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted-2); margin-bottom: 16px; }
.ranking-card-leader strong { color: var(--emerald-700); }
.ranking-card-cta {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line-soft); padding-top: 12px;
  font-size: 12.5px; font-weight: 700; color: var(--emerald-700);
}
.ranking-card:hover .ranking-card-cta .icon { transform: translateX(3px); }
.ranking-card-cta .icon { transition: transform .3s; }

/* ===== Методология ===== */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.step-card { padding: 22px; }
.step-num {
  font-size: 42px; font-weight: 800; line-height: 1; margin-bottom: 10px;
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-500) 40%, #06b6d4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 14px; color: var(--muted-2); }

.counters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 34px; margin-top: 46px; text-align: center;
}
.counter-value {
  font-size: clamp(26px, 4vw, 38px); font-weight: 800; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-500) 40%, #06b6d4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.counter-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ===== FAQ на главной ===== */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 900px; margin: 0 auto; }
.faq-card { padding: 20px; }
.faq-q { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.faq-a { font-size: 14px; color: var(--muted-2); }

/* ===== Страница рейтинга ===== */
.ranking-section { position: relative; padding-top: calc(var(--header-h) + 32px); }
.ranking-section-tint {
  position: absolute; inset: 0 0 auto 0; height: 380px; pointer-events: none;
  background: linear-gradient(180deg, var(--from), var(--to)); opacity: .05;
}
.ranking-section > .container { position: relative; z-index: 1; }

.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--emerald-700); }

.ranking-head { max-width: 900px; margin-bottom: 34px; }
.ranking-h1 { font-size: clamp(27px, 4.6vw, 46px); font-weight: 800; margin-bottom: 16px; }
.ranking-intro { font-size: 17px; color: var(--muted-2); }

/* --- Фильтры --- */
.filters { margin-bottom: 22px; }
.filters-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }

.field-search { position: relative; flex: 1; }
.field-search .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.field-search input {
  width: 100%; padding: 12px 16px 12px 42px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  font: inherit; font-size: 14px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.field-search input:focus { outline: none; border-color: var(--emerald-500); box-shadow: 0 0 0 3px rgba(16, 185, 129, .25); }

.filters-row > div:last-of-type,
.filters-row .field-select { position: relative; }
.field-select { position: relative; }
.field-select .icon:first-child { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.field-select .icon:last-child { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.field-select select {
  width: 100%;
  -webkit-appearance: none; appearance: none;
  padding: 12px 36px 12px 38px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.field-select select:focus { outline: none; border-color: var(--emerald-500); box-shadow: 0 0 0 3px rgba(16, 185, 129, .25); }

.btn-filters {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: all .2s;
}
.btn-filters:hover { border-color: var(--emerald-500); }
.btn-filters.is-on { background: var(--emerald-500); border-color: var(--emerald-500); color: #fff; }
.filters-count { background: #fff; color: var(--emerald-600); border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 700; }

.filters-panel {
  display: flex; flex-direction: column; gap: 18px;
  background: rgba(255, 255, 255, .75); backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 8px 30px -14px rgba(16, 24, 40, .2);
  border-radius: var(--radius-lg); padding: 20px;
}
.filters-panel[hidden] { display: none; }

.filter-label {
  display: flex; align-items: center; gap: 6px; margin-bottom: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}
.filter-label b { color: var(--emerald-700); text-transform: none; letter-spacing: 0; font-size: 12px; }
.filter-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.filter-switch-row .filter-label { margin-bottom: 0; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font-size: 12px; font-weight: 500; color: var(--muted-2); cursor: pointer; transition: all .2s;
}
.pill:hover { border-color: var(--emerald-500); }
.pill.is-on { background: var(--emerald-500); border-color: var(--emerald-500); color: #fff; }

.premium-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 999px; outline: none;
  background: linear-gradient(90deg, var(--emerald-500), var(--teal-500));
}
.premium-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--emerald-500); cursor: pointer;
  box-shadow: 0 2px 8px rgba(16, 185, 129, .4);
}
.premium-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--emerald-500); cursor: pointer;
}

.switch {
  position: relative; width: 48px; height: 26px; flex: none;
  border: 0; border-radius: 999px; background: #cbd5e1; cursor: pointer; transition: background .25s;
}
.switch span {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(15, 23, 42, .3); transition: transform .25s var(--ease);
}
.switch[aria-checked="true"] { background: var(--emerald-500); }
.switch[aria-checked="true"] span { transform: translateX(22px); }

.btn-reset {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer; padding: 0;
  color: var(--rose-600); font-size: 14px; font-weight: 600;
}
.btn-reset[hidden] { display: none; }

.results-count { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.results-count b { color: var(--fg); }

.empty-state {
  text-align: center; padding: 48px 20px; color: var(--muted);
  background: rgba(255, 255, 255, .75); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.empty-state[hidden] { display: none; }

/* --- Карточка компании --- */
.companies { display: flex; flex-direction: column; gap: 16px; }
.company-card { padding: 20px; }
.company-card[hidden] { display: none; }

.card-rank { position: absolute; top: -12px; left: -6px; z-index: 2; display: flex; align-items: center; gap: 10px; }
.rank-badge {
  position: relative;
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); color: var(--muted-2);
  font-weight: 700; font-size: 14px; box-shadow: 0 6px 16px -6px rgba(15, 23, 42, .35);
}
.rank-crown { display: none; }
.rank-leader-label { display: none; }

.company-card.rank-1 .rank-badge,
.company-card.rank-2 .rank-badge,
.company-card.rank-3 .rank-badge {
  width: 50px; height: 50px; border: 0; color: #fff; font-size: 19px; font-weight: 800;
}
.company-card.rank-1 .rank-badge {
  background: linear-gradient(135deg, var(--amber-300) 0%, var(--amber-500) 60%, var(--amber-700) 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .5), inset 0 -2px 4px rgba(180, 83, 9, .5), 0 4px 12px -2px rgba(251, 191, 36, .6);
}
.company-card.rank-2 .rank-badge {
  background: linear-gradient(135deg, #f3f4f6 0%, #d1d5db 60%, #6b7280 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .7), inset 0 -2px 4px rgba(107, 114, 128, .5), 0 4px 12px -2px rgba(156, 163, 175, .6);
}
.company-card.rank-3 .rank-badge {
  background: linear-gradient(135deg, #fcd9b6 0%, #d97706 60%, #7c2d12 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .4), inset 0 -2px 4px rgba(124, 45, 18, .5), 0 4px 12px -2px rgba(217, 119, 6, .6);
}
.company-card.rank-1 .rank-num { display: none; }
.company-card.rank-1 .rank-crown { display: inline-flex; }

.company-card.rank-1 {
  background: linear-gradient(135deg, rgba(236, 253, 245, .95), rgba(255, 255, 255, .92));
  border-color: rgba(16, 185, 129, .3);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, .15), 0 8px 32px -8px rgba(16, 185, 129, .25);
}
.company-card.rank-1:hover { box-shadow: 0 0 0 1px rgba(16, 185, 129, .35), 0 24px 56px -12px rgba(16, 185, 129, .35); }

.leader-ribbon { display: none; }
.company-card.rank-1 .leader-ribbon {
  display: block; position: absolute; top: 0; right: 0;
  background: linear-gradient(90deg, var(--amber-400), var(--orange-500)); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 0 var(--radius-lg) 0 var(--radius-lg);
}

.card-body { padding-top: 22px; }
.card-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.card-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card-title { font-size: 19px; font-weight: 700; }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600;
}
.chip-verified { background: var(--emerald-50); color: var(--emerald-700); border: 1px solid var(--emerald-200); }
.chip-eco { background: #f0fdfa; color: #0f766e; border: 1px solid #99f6e4; }

.card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }

.card-rating { display: flex; flex-direction: column; align-items: flex-start; }
.card-rating-row { display: flex; align-items: center; gap: 8px; }
.card-rating-value { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.card-rating-side { display: flex; flex-direction: column; gap: 2px; }
.card-rating-count { font-size: 10.5px; color: var(--muted); }
.rating-bar { width: 128px; height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; margin-top: 7px; }
.rating-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--emerald-500), var(--teal-500)); }
.company-card.rank-1 .rating-bar span { background: linear-gradient(90deg, var(--amber-400), var(--orange-500)); }

.card-desc { font-size: 14px; color: var(--muted-2); margin-bottom: 14px; }

.card-proscons { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
.proscons-title {
  display: flex; align-items: center; gap: 5px; margin-bottom: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.proscons-title.pros { color: var(--emerald-700); }
.proscons-title.cons { color: var(--rose-600); }
.proscons-list li { display: flex; gap: 7px; font-size: 12.5px; color: var(--muted-2); margin-bottom: 3px; }
.mark-plus { color: var(--emerald-500); }
.mark-minus { color: #fb7185; }

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag { padding: 4px 10px; border-radius: 999px; background: var(--line-soft); color: var(--muted-2); font-size: 11px; font-weight: 500; }
.tag.price-premium { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.tag.price-mid { background: var(--emerald-50); color: var(--emerald-700); border: 1px solid var(--emerald-200); }
.tag.price-eco { background: #f8fafc; color: var(--muted-2); border: 1px solid var(--line); }

.card-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.card-actions .btn-dark, .card-actions .btn-leader { margin-left: auto; }
.card-cta-leader { display: none; }
.company-card.rank-1 .card-cta-leader { display: inline-flex; }
.company-card.rank-1 .card-cta-default { display: none; }

.show-more-wrap { text-align: center; padding-top: 24px; }
.show-more-wrap[hidden] { display: none; }

/* --- Методология + лидер --- */
.two-col { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 56px; }
.method-card { padding: 24px; }
.method-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.method-head h2 { font-size: 20px; font-weight: 700; }
.method-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, var(--from, var(--emerald-500)), var(--to, var(--teal-600)));
}
.method-text { font-size: 14px; color: var(--muted-2); margin-bottom: 16px; }
.method-list li { display: flex; gap: 12px; font-size: 14px; color: var(--muted-2); margin-bottom: 12px; }
.method-num {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--from, var(--emerald-500)), var(--to, var(--teal-600)));
  color: #fff; font-size: 12px; font-weight: 700;
}

.leader-card {
  position: relative; overflow: hidden; color: #fff;
  border-radius: var(--radius-lg); padding: 24px;
  background: linear-gradient(135deg, #0f172a, #1e293b 55%, #022c22);
}
.leader-card::before {
  content: ""; position: absolute; top: -100px; right: -100px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(251, 191, 36, .3); filter: blur(70px);
}
.leader-card > * { position: relative; z-index: 1; }
.leader-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
  background: rgba(251, 191, 36, .18); border: 1px solid rgba(251, 191, 36, .32);
  color: var(--amber-300); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.leader-name { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.leader-score { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.leader-value { font-size: 46px; font-weight: 800; color: var(--amber-300); font-variant-numeric: tabular-nums; line-height: 1; }
.leader-stars { display: flex; flex-direction: column; gap: 2px; }
.leader-reviews { font-size: 12px; color: rgba(209, 250, 229, .7); }
.leader-text { font-size: 14px; color: rgba(236, 253, 245, .8); margin-bottom: 18px; }
.leader-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.leader-facts div {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px; padding: 12px;
}
.leader-facts b { display: block; font-size: 21px; font-weight: 800; color: var(--amber-300); }
.leader-facts span { font-size: 11px; color: rgba(209, 250, 229, .7); }
.leader-cta { width: 100%; margin-top: 18px; }

/* --- Аккордеон --- */
.faq-head { margin-top: 56px; }
.accordion { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.accordion-item { overflow: hidden; }
.accordion-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: 15.5px; font-weight: 600; font-family: inherit;
}
.accordion-icon {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--line-soft); color: var(--muted); transition: all .3s var(--ease);
}
.accordion-btn[aria-expanded="true"] .accordion-icon { background: var(--emerald-500); color: #fff; transform: rotate(180deg); }
.accordion-panel { padding: 0 18px 18px; font-size: 14px; color: var(--muted-2); }
.accordion-panel[hidden] { display: none; }

/* --- Лонгрид и другие рейтинги --- */
.longread { max-width: 900px; margin: 56px auto 0; }
.longread h2 { font-size: clamp(21px, 3vw, 29px); font-weight: 800; margin-bottom: 18px; }
.longread p { color: var(--muted-2); margin-bottom: 14px; }

.other-rankings { margin-top: 56px; }
.other-rankings .section-title-sm { margin-bottom: 18px; }
.other-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.other-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); font-size: 14px; font-weight: 600;
  border-left: 4px solid var(--from, var(--emerald-500));
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.other-link:hover { transform: translateX(3px); box-shadow: 0 12px 26px -14px rgba(15, 23, 42, .35); }

/* ===== 404 ===== */
.error-section { padding-top: calc(var(--header-h) + 56px); }
.error-inner { text-align: center; max-width: 760px; }
.error-code {
  font-family: var(--font-display); font-size: 84px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--emerald-500), #06b6d4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-cta { margin-top: 22px; }
.error-grid { margin-top: 40px; text-align: left; }

/* ===== Подвал ===== */
.site-footer {
  position: relative; overflow: hidden; margin-top: 72px;
  background: linear-gradient(180deg, #0f172a, #020617);
  color: #cbd5e1; padding: 60px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 34px; margin-bottom: 40px; }
.footer-logo { margin-bottom: 14px; }
.footer-logo .logo-title { color: #fff; }
.footer-text { font-size: 14px; color: #94a3b8; margin-bottom: 16px; }
.footer-award { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--amber-400); }
.footer-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-list li { margin-bottom: 9px; }
.footer-list a { display: flex; align-items: flex-start; gap: 7px; font-size: 14px; color: #94a3b8; transition: color .2s; }
.footer-list a:hover { color: #6ee7b7; }
.footer-list .icon { color: #475569; margin-top: 4px; }
.footer-mail {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: var(--radius);
  background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .3);
  color: #6ee7b7; font-size: 14px; font-weight: 500; transition: background .2s;
}
.footer-mail:hover { background: rgba(16, 185, 129, .2); }
.footer-hours {
  margin-top: 18px; padding: 12px; border-radius: var(--radius);
  background: rgba(30, 41, 59, .5); border: 1px solid #1e293b; font-size: 12px; color: #94a3b8;
}
.footer-hours-title { color: #6ee7b7; font-weight: 600; margin-bottom: 4px; }
.footer-disclaimer { border-top: 1px solid #1e293b; padding-top: 22px; margin-bottom: 22px; font-size: 12px; color: #64748b; }
.footer-disclaimer strong { color: #94a3b8; }
.footer-bottom {
  border-top: 1px solid #1e293b; padding-top: 22px;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
  font-size: 12px; color: #64748b; text-align: center;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.footer-links a:hover { color: #6ee7b7; }

/* ===== Кнопка «наверх» ===== */
.scroll-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-600)); color: #fff;
  box-shadow: 0 14px 30px -10px rgba(16, 185, 129, .8);
  transition: transform .25s var(--ease);
}
.scroll-top:hover { transform: scale(1.08); }
.scroll-top[hidden] { display: none; }

/* ===== Появление при скролле ===== */
/* Анимация появления включается только при живом JS — без него контент виден сразу. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ===== Скроллбар ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, .04); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--emerald-500), var(--teal-500)); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--emerald-600), var(--teal-600)); }

/* ===== Адаптив ===== */
@media (min-width: 480px) {
  .container { padding: 0 24px; }
  .card-proscons { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 640px) {
  :root { --header-h: 80px; }
  .section { padding: 88px 0; }
  .rankings-grid, .steps-grid, .faq-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .hero-leader { flex-direction: row; text-align: left; }
  .hero-leader-main { text-align: left; }
  .hero-leader-kicker { justify-content: flex-start; }
  .promo { padding: 38px 34px; }
  .filters-row { flex-direction: row; }
  .field-select select { width: auto; }
  .company-card { padding: 24px 24px 24px 88px; }
  .card-rank { top: 24px; left: 22px; }
  .card-body { padding-top: 0; }
  .card-head { flex-direction: row; justify-content: space-between; }
  .card-rating { align-items: flex-end; }
  .other-grid { grid-template-columns: 1fr 1fr; }
  .rank-leader-label { display: none; }
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .burger { display: none; }
  .header-cta { display: inline-flex; }
  .rankings-grid { grid-template-columns: repeat(4, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr 1fr; }
  .promo { grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
  .promo-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .other-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Меньше движения ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
