/*
Theme Name: RussianRate
Theme URI: https://russianrate.ru/
Author: RussianRate
Author URI: https://russianrate.ru/
Description: Светлая адаптивная тема для рейтингового портала RussianRate — независимые рейтинги компаний и услуг по городам России. Триколорные акценты, готовая главная страница, шаблоны рейтингов и рубрик, настройки через Кастомайзер.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: russianrate
Tags: blog, news, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ============================================================
   RussianRate — рейтинги компаний и услуг России
   Светлая тема с триколорными акцентами
   ============================================================ */

:root {
  /* Цвета */
  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --ink: #0E1B33;
  --muted: #55647F;
  --blue: #1E4FA3;
  --blue-dark: #16407F;
  --blue-deep: #10305F;
  --blue-tint: #EAF1FB;
  --red: #D8372E;
  --red-dark: #B92A22;
  --red-tint: #FBEDEB;
  --gold: #E5A439;
  --line: #E2E8F2;
  --flag-white: #FFFFFF;
  --flag-blue: #0A46A8;
  --flag-red: #D8372E;

  /* Шрифты */
  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Golos Text", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Тени и радиусы */
  --shadow-sm: 0 1px 2px rgba(14, 27, 51, 0.06), 0 2px 8px rgba(14, 27, 51, 0.05);
  --shadow-md: 0 4px 12px rgba(14, 27, 51, 0.07), 0 12px 32px rgba(14, 27, 51, 0.08);
  --shadow-lg: 0 8px 24px rgba(16, 48, 95, 0.10), 0 24px 64px rgba(16, 48, 95, 0.12);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }

:focus-visible {
  outline: 3px solid rgba(30, 79, 163, 0.45);
  outline-offset: 2px;
  border-radius: 6px;
}

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

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

.container--narrow { max-width: 840px; }

/* ---------- Триколорная линия ---------- */
.flagline {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--flag-white) 0%, var(--flag-white) 33.33%,
    var(--flag-blue) 33.33%, var(--flag-blue) 66.66%,
    var(--flag-red) 66.66%, var(--flag-red) 100%
  );
  border-bottom: 1px solid var(--line);
}

.footer .flagline { border-bottom: 0; }

/* Триколорный штрих у заголовков */
.tridash {
  display: inline-block;
  width: 26px;
  height: 4px;
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: middle;
  background: linear-gradient(
    90deg,
    #D3DEEE 0%, #D3DEEE 33.33%,
    var(--flag-blue) 33.33%, var(--flag-blue) 66.66%,
    var(--flag-red) 66.66%, var(--flag-red) 100%
  );
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 0;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }

.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); color: #fff; }

.btn--light { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.btn--light:hover { background: rgba(255, 255, 255, 0.24); color: #fff; }

.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 74px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  flex-shrink: 0;
}

.logo:hover { color: var(--ink); }

.logo__text { display: flex; flex-direction: column; line-height: 1.15; }

.logo__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.logo__name em { font-style: normal; color: var(--blue); }

.logo__sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--blue);
  transition: right 0.25s ease;
}

.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { right: 0; }

.nav__link--accent { color: var(--red); font-weight: 600; }
.nav__link--accent:hover { color: var(--red-dark); }
.nav__link--accent::after { background: var(--red); }

.header__actions { display: flex; align-items: center; gap: 14px; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

/* ---------- Герой ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(680px 420px at 12% -10%, rgba(30, 79, 163, 0.09), transparent 65%),
    radial-gradient(560px 380px at 96% 8%, rgba(216, 55, 46, 0.07), transparent 62%),
    var(--bg);
}

.hero__decor { position: absolute; inset: 0; pointer-events: none; }

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}

.hero__blob--blue {
  width: 380px; height: 380px;
  right: 4%; top: 46%;
  background: rgba(30, 79, 163, 0.16);
}

.hero__blob--red {
  width: 260px; height: 260px;
  right: 30%; top: 6%;
  background: rgba(216, 55, 46, 0.10);
}

.hero__star {
  position: absolute;
  width: 210px;
  right: -46px;
  bottom: -52px;
  color: rgba(30, 79, 163, 0.10);
  transform: rotate(12deg);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
  padding-top: 72px;
  padding-bottom: 96px;
}

.eyebrow {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.005em;
  margin-bottom: 22px;
}

.hero__title em {
  font-style: normal;
  color: var(--blue);
}

.hero__lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 30px;
}

/* Поиск */
form.search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 560px;
  padding: 8px 8px 8px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form.search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 79, 163, 0.12);
}

.search__icon { color: var(--muted); flex-shrink: 0; }

.search__input {
  flex: 1;
  min-width: 0;
  padding: 10px 4px;
  border: 0;
  background: transparent;
  font-size: 16px;
  color: var(--ink);
}

.search__input::placeholder { color: #93A1B8; }
.search__input:focus { outline: none; }
.search__btn { border-radius: 11px; }

.hero__tags {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

.hero__tags a { font-weight: 500; border-bottom: 1px dashed rgba(30, 79, 163, 0.4); }
.hero__tags a:hover { border-bottom-style: solid; }
.hero__tags span { color: #B9C4D6; }

/* Статистика */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.stat { display: flex; flex-direction: column; gap: 3px; }

.stat__num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.1;
}

.stat__label { font-size: 13px; color: var(--muted); line-height: 1.35; }

/* Визуал героя: карточка рейтинга */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 26px 8px;
}

.rate-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 22px 22px 18px;
  position: relative;
  z-index: 1;
}

.rate-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.rate-card__tag {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--red);
  background: var(--red-tint);
  border-radius: 8px;
  padding: 7px 9px;
  flex-shrink: 0;
}

.rate-card__title { font-size: 17px; font-weight: 700; line-height: 1.2; }
.rate-card__city { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.rate-card__laurel { margin-left: auto; flex-shrink: 0; }

.rate-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}

.rate-row + .rate-row { border-top: 1px dashed var(--line); }

.rate-row__place {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.rate-row__place--gold   { background: linear-gradient(145deg, #F0BB55, #D98F1F); box-shadow: 0 3px 8px rgba(217, 143, 31, 0.4); }
.rate-row__place--silver { background: linear-gradient(145deg, #C3CDDC, #96A4B8); }
.rate-row__place--bronze { background: linear-gradient(145deg, #D8A278, #B57547); }

.rate-row__body { flex: 1; min-width: 0; }

.rate-row__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 7px;
}

.rate-row__name {
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rate-row__score {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

.rate-row__bar {
  height: 6px;
  border-radius: 4px;
  background: var(--blue-tint);
  overflow: hidden;
}

.rate-row__bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), #4E7BD1);
  transition: width 1.1s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.rate-card.in .rate-row__bar span { width: var(--w); }

.rate-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.rate-card__stars { display: inline-flex; gap: 2px; }
.rate-card__note { font-size: 12px; color: var(--muted); text-align: right; }

/* Плашки над карточкой */
.chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 600;
  animation: float 6s ease-in-out infinite;
}

.chip--top { top: 2px; left: 0; }
.chip--bottom { bottom: 2px; right: 0; animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Секции ---------- */
.section { padding: 92px 0; }
.section--tint { background: var(--bg); }
.section--slim { padding: 64px 0; }

.section__head { max-width: 680px; margin-bottom: 44px; }
.section__head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.22;
  margin-bottom: 14px;
}

.section__sub { font-size: 16.5px; color: var(--muted); }

/* ---------- Разделы (категории) ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cat-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #C8D6EC;
  color: var(--ink);
}

.cat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--blue-tint);
  color: var(--blue);
  flex-shrink: 0;
  transition: background-color 0.22s ease, color 0.22s ease;
}

.cat-card:hover .cat-card__icon { background: var(--blue); color: #fff; }

.cat-card__body { display: flex; flex-direction: column; gap: 4px; padding-right: 14px; }
.cat-card__title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.cat-card__desc { font-size: 13.5px; color: var(--muted); line-height: 1.4; }

.cat-card__arrow {
  position: absolute;
  top: 18px; right: 16px;
  font-size: 16px;
  color: var(--blue);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.cat-card:hover .cat-card__arrow { opacity: 1; transform: translateX(0); }

.cat-more {
  margin-top: 26px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- Методология ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 20px;
}

.step::after {
  content: "";
  position: absolute;
  top: 40px;
  right: -14px;
  width: 10px; height: 10px;
  border-top: 2px solid #B9C8E2;
  border-right: 2px solid #B9C8E2;
  transform: rotate(45deg);
}

.step:last-child::after { display: none; }

.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 14px;
}

.step__num::after {
  content: "";
  display: block;
  width: 22px;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--red);
}

.step__title { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.step__text { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* Дисклеймер */
.notice {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 34px;
  padding: 22px 24px;
  background: var(--blue-tint);
  border: 1px solid #CBDAF3;
  border-radius: var(--r-md);
}

.notice__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  flex-shrink: 0;
}

.notice__title { font-weight: 700; margin-bottom: 4px; }
.notice__text { font-size: 15px; color: #33445F; }
.notice__text strong { color: var(--ink); }

/* ---------- Принципы ---------- */
.prin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.prin-card {
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.prin-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.prin-card__dash {
  display: block;
  width: 30px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 18px;
  background: linear-gradient(
    90deg,
    #D3DEEE 0%, #D3DEEE 33.33%,
    var(--flag-blue) 33.33%, var(--flag-blue) 66.66%,
    var(--flag-red) 66.66%, var(--flag-red) 100%
  );
}

.prin-card__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.prin-card__text { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Скоро на сайте ---------- */
.up-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.up-card {
  position: relative;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.up-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.up-card__badge {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-tint);
  border-radius: 999px;
  padding: 5px 11px;
}

.up-card__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-tint);
  border-radius: 7px;
  padding: 5px 9px;
  margin-bottom: 14px;
}

.up-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  padding-right: 8px;
}

.up-card__meta { font-size: 13.5px; color: var(--muted); }

/* Подписка */
.subscribe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 34px;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.subscribe__title { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.subscribe__sub { font-size: 14.5px; color: var(--muted); }

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

.subscribe__input {
  min-width: 260px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.subscribe__input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 79, 163, 0.12);
}

.subscribe__done { width: 100%; font-weight: 600; color: #1E9E5A; }

/* ---------- Города ---------- */
.cities { display: flex; flex-wrap: wrap; gap: 10px; }

.city {
  padding: 9px 17px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.city:hover { border-color: var(--blue); color: var(--blue); box-shadow: var(--shadow-sm); }

.city--all { color: var(--blue); border-color: #C8D6EC; background: var(--blue-tint); font-weight: 600; }

/* ---------- Для бизнеса ---------- */
.b2b {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 30px;
  align-items: center;
  padding: 52px 56px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(500px 300px at 90% 10%, rgba(216, 55, 46, 0.22), transparent 60%),
    linear-gradient(125deg, var(--blue) 0%, var(--blue-deep) 78%);
  color: #fff;
}

.b2b__eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
}

.b2b__title {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 16px;
}

.b2b__text {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  max-width: 620px;
  margin-bottom: 26px;
}

.b2b__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.b2b__note {
  margin-top: 18px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.62);
}

.b2b__art { display: flex; justify-content: center; }
.b2b__art svg { width: 200px; animation: spin-slow 40s linear infinite; }

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- Вопросы ---------- */
.faq { border-top: 1px solid var(--line); }

.faq__item { border-bottom: 1px solid var(--line); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--blue); }

.faq__plus {
  position: relative;
  width: 30px; height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.faq__plus::before,
.faq__plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--blue);
  border-radius: 2px;
  transition: transform 0.25s ease, background-color 0.2s ease;
}

.faq__plus::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.faq__plus::after { width: 2px; height: 12px; transform: translate(-50%, -50%); }

.faq__item[open] .faq__plus { background: var(--blue); border-color: var(--blue); }
.faq__item[open] .faq__plus::before,
.faq__item[open] .faq__plus::after { background: #fff; }
.faq__item[open] .faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq__a {
  padding: 0 44px 22px 4px;
  font-size: 15.5px;
  color: var(--muted);
}

/* ---------- Подвал ---------- */
.footer {
  background: var(--ink);
  color: #C4CFE0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 24px 40px;
}

.logo--footer { color: #fff; }
.logo--footer:hover { color: #fff; }
.logo--footer .logo__name em { color: #7FA3E4; }
.logo--footer .logo__sub { color: #8FA0BC; }

.footer__desc {
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #8FA0BC;
  max-width: 300px;
}

.footer__col { display: flex; flex-direction: column; gap: 11px; }

.footer__heading {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 6px;
}

.footer__col a {
  font-size: 14.5px;
  color: #B4C0D4;
  transition: color 0.2s ease;
}

.footer__col a:hover { color: #fff; }

.footer__legal {
  padding-top: 26px;
  padding-bottom: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__legal p { font-size: 13px; line-height: 1.6; color: #8194B0; }

/* ---------- Появление при прокрутке ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].in { opacity: 1; transform: translateY(0); }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(3)::after { display: none; }
  .prin-grid { grid-template-columns: repeat(2, 1fr); }
  .up-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__col:last-child { grid-column: 2 / 4; flex-direction: row; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; }
  .footer__col:last-child .footer__heading { width: 100%; }
}

@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 52px;
    padding-bottom: 72px;
  }

  .hero__lead { max-width: none; }
  .hero__visual { padding: 26px 0 10px; }
  .hero__star { display: none; }

  .nav {
    position: fixed;
    top: 79px;
    left: 0; right: 0;
    z-index: 49;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px 24px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }

  .nav__link { padding: 14px 2px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav__link:last-child { border-bottom: 0; }
  .nav__link::after { display: none; }

  .burger { display: flex; }
  .header__cta { display: none; }
}

@media (max-width: 700px) {
  .section { padding: 68px 0; }
  .section--slim { padding: 52px 0; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
  .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .up-grid { grid-template-columns: 1fr; }
  .prin-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }

  form.search { flex-wrap: wrap; padding: 10px; }
  .search__icon { display: none; }
  .search__input { width: 100%; flex: 1 1 100%; padding: 10px 8px; }
  .search__btn { width: 100%; }

  .b2b { grid-template-columns: 1fr; padding: 36px 26px; }
  .b2b__art { display: none; }

  .subscribe { flex-direction: column; align-items: stretch; }
  .subscribe__form { flex-direction: column; }
  .subscribe__input { min-width: 0; }

  .footer__inner { grid-template-columns: 1fr; gap: 30px; padding-top: 44px; }
  .footer__col:last-child { grid-column: auto; flex-direction: column; gap: 11px; }
}

/* ---------- Меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
  .rate-card .rate-row__bar span { width: var(--w); }
}

/* ============================================================
   WordPress: навигация, контент, архивы, комментарии
   ============================================================ */

/* ---------- Скип-линк и служебные классы WP ---------- */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  width: auto; height: auto;
  clip: auto;
  padding: 12px 18px;
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
}

.sticky { position: relative; }
.bypostauthor { display: block; }

/* ---------- Меню WP внутри .nav ---------- */
.nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list li { position: relative; }

.nav__list a {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  padding: 4px 0;
  position: relative;
}

.nav__list > li > a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--blue);
  transition: right 0.25s ease;
}

.nav__list a:hover { color: var(--ink); }
.nav__list > li > a:hover::after { right: 0; }

.nav__list .current-menu-item > a,
.nav__list .current_page_item > a { color: var(--ink); }

.nav__list .menu-item--accent > a { color: var(--red); font-weight: 600; }
.nav__list .menu-item--accent > a:hover { color: var(--red-dark); }
.nav__list .menu-item--accent > a::after { background: var(--red); }

/* Выпадающие подменю */
.nav__list .sub-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -14px;
  z-index: 60;
  min-width: 230px;
  display: none;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}

.nav__list li:hover > .sub-menu,
.nav__list li:focus-within > .sub-menu { display: flex; }

.nav__list .sub-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14.5px;
}

.nav__list .sub-menu a::after { display: none; }
.nav__list .sub-menu a:hover { background: var(--blue-tint); color: var(--blue-dark); }

/* ---------- Заголовок внутренних страниц ---------- */
.page-head {
  background:
    radial-gradient(560px 340px at 10% -20%, rgba(30, 79, 163, 0.08), transparent 62%),
    var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 52px 0 44px;
}

.page-head__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-tint);
  border: 1px solid #CFDCF1;
  border-radius: 8px;
  padding: 6px 11px;
  margin-bottom: 16px;
}

.page-head__tag:hover { color: var(--blue-dark); }

.page-head__title {
  font-family: var(--font-display);
  font-size: clamp(25px, 3.4vw, 40px);
  font-weight: 500;
  line-height: 1.2;
}

.page-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.page-head__meta span { display: inline-flex; align-items: center; gap: 6px; }

.page-head__desc { margin-top: 14px; font-size: 16px; color: var(--muted); max-width: 720px; }

/* ---------- Контент записи ---------- */
.entry {
  padding: 56px 0 84px;
}

.entry-content {
  font-size: 17px;
  line-height: 1.75;
}

.entry-content > * { margin: 0 0 20px; }
.entry-content > *:last-child { margin-bottom: 0; }

.entry-content h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  margin: 44px 0 16px;
}

.entry-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 34px 0 12px;
}

.entry-content h4 { font-size: 17px; font-weight: 700; margin: 28px 0 10px; }

.entry-content a { border-bottom: 1px dashed rgba(30, 79, 163, 0.4); }
.entry-content a:hover { border-bottom-style: solid; }

.entry-content ul,
.entry-content ol { padding-left: 24px; }

.entry-content li { margin-bottom: 8px; }
.entry-content li::marker { color: var(--blue); font-weight: 600; }

.entry-content img {
  border-radius: 14px;
  height: auto;
}

.entry-content figure { margin-left: 0; margin-right: 0; }

.entry-content figcaption,
.wp-caption-text {
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
}

.entry-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  background: var(--blue-tint);
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  font-size: 16.5px;
}

.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.entry-content th,
.entry-content td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.entry-content th { background: var(--blue-tint); font-weight: 700; }
.entry-content tbody tr:nth-child(even) { background: #FAFBFE; }

.entry-content .wp-block-table { overflow-x: auto; }

.entry-content hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 36px 0;
}

.entry-content code {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 14.5px;
}

/* Классические выравнивания WP */
.alignleft { float: left; margin: 6px 24px 16px 0; }
.alignright { float: right; margin: 6px 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { margin-left: -40px; margin-right: -40px; max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.wp-caption { max-width: 100%; }

@media (max-width: 700px) {
  .alignleft, .alignright { float: none; margin: 16px 0; }
  .alignwide { margin-left: 0; margin-right: 0; }
}

/* Постраничная разбивка внутри записи */
.page-links {
  margin-top: 28px;
  font-weight: 600;
}

.page-links a,
.page-links > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  margin-right: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.page-links > span:not(.page-links-title) {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.page-links-title { border: 0; min-width: 0; padding-left: 0; }

/* Дисклеймер после записи */
.entry .notice { margin-top: 40px; }

/* Навигация между записями */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.post-nav__link {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.post-nav__link:hover {
  color: var(--ink);
  border-color: #C8D6EC;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.post-nav__link--next { text-align: right; }

.post-nav__dir {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.post-nav__title { font-size: 15px; font-weight: 600; line-height: 1.4; }

@media (max-width: 700px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__link--next { text-align: left; }
}

/* ---------- Карточки записей в архивах ---------- */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.post-card { display: flex; flex-direction: column; }

.post-card__thumb {
  display: block;
  margin: -22px -22px 18px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  overflow: hidden;
  background: var(--blue-tint);
}

.post-card__thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card__thumb img { transform: scale(1.04); }

.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--blue); }

.post-card__excerpt {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 4px;
}

.post-card__meta { margin-top: auto; padding-top: 14px; }

.archive-section { padding: 56px 0 84px; }

@media (max-width: 1080px) { .archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .archive-grid { grid-template-columns: 1fr; } }

/* ---------- Пагинация ---------- */
.pagination { margin-top: 44px; }

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pagination .page-numbers:hover { border-color: var(--blue); color: var(--blue); }

.pagination .page-numbers.current {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.pagination .page-numbers.dots { border: 0; background: none; }

/* ---------- Страница 404 и «ничего не найдено» ---------- */
.big-404 {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 130px);
  font-weight: 700;
  line-height: 1;
  color: var(--blue-tint);
  -webkit-text-stroke: 2px var(--blue);
  margin-bottom: 10px;
}

.none-box { max-width: 620px; }
.none-box .search { margin-top: 24px; }

/* ---------- Комментарии ---------- */
.comments { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }

.comments__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 24px;
}

.comment-list,
.comment-list .children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list .children { margin: 16px 0 0 26px; }

.comment-list > li + li { margin-top: 16px; }

.comment-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
}

.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }

.comment-metadata { font-size: 13px; }
.comment-metadata a { color: var(--muted); }

.comment-content { font-size: 15px; }
.comment-content p { margin: 0 0 10px; }
.comment-content p:last-child { margin-bottom: 0; }

.reply { margin-top: 10px; font-size: 13.5px; font-weight: 600; }

.comment-respond { margin-top: 32px; }

.comment-reply-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
}

.comment-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  margin-bottom: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 79, 163, 0.12);
}

.comment-form .submit {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 12px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.comment-form .submit:hover { background: var(--blue-dark); }

.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; font-size: 13.5px; color: var(--muted); }
.comment-form-cookies-consent input { margin-top: 3px; }

/* ---------- Учёт админ-панели WP ---------- */
body.admin-bar .header { top: 32px; }
body.admin-bar .nav { top: 111px; }

@media (max-width: 782px) {
  body.admin-bar .header { top: 46px; }
  body.admin-bar .nav { top: 125px; }
}

@media (max-width: 600px) {
  body.admin-bar .header { top: 0; }
  body.admin-bar .nav { top: 79px; }
}

/* Мобильное меню для списка WP */
@media (max-width: 900px) {
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav__list li { width: 100%; }
  .nav__list a { display: block; padding: 14px 2px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav__list > li > a::after { display: none; }
  .nav__list > li:last-child > a { border-bottom: 0; }
  .nav__list .sub-menu { position: static; display: flex; border: 0; box-shadow: none; border-radius: 0; padding: 0 0 6px 16px; background: transparent; }
  .nav__list .sub-menu a { border-bottom: 0; padding: 8px 2px; }
}

/* Списки-меню в подвале и картинка-логотип */
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__list a {
  font-size: 14.5px;
  color: #B4C0D4;
  transition: color 0.2s ease;
}

.footer__list a:hover { color: #fff; }

.custom-logo-link { display: inline-flex; align-items: center; flex-shrink: 0; }
.custom-logo { max-height: 48px; width: auto; }

/* ============================================================
   Блок «Рейтинг компаний» в записи
   ============================================================ */

.rating-block { margin-top: 48px; }

.rating-block__head { margin-bottom: 22px; }

.rating-block__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 27px);
  font-weight: 500;
  line-height: 1.25;
}

.rating-block__sub {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Сводная таблица ---------- */
.rsum {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 6px 22px;
}

.rsum__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #EDF1F8;
  color: var(--ink);
}

.rsum__row:last-child { border-bottom: 0; }
.rsum__row:hover { color: var(--ink); }
.rsum__row:hover .rsum__name { color: var(--blue); }

.rsum__place {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-tint);
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 14px;
}

.rsum__place--1 {
  background: linear-gradient(135deg, #F0BB55, #D98F1F);
  color: #fff;
  box-shadow: 0 3px 8px rgba(217, 143, 31, 0.35);
}

.rsum__place--2 {
  background: linear-gradient(135deg, #C3CDDC, #96A4B8);
  color: #fff;
  box-shadow: 0 3px 8px rgba(150, 164, 184, 0.35);
}

.rsum__place--3 {
  background: linear-gradient(135deg, #D8A278, #B57547);
  color: #fff;
  box-shadow: 0 3px 8px rgba(181, 117, 71, 0.35);
}

.rsum__name {
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s ease;
}

.rsum__bar {
  flex: 1;
  min-width: 60px;
  height: 8px;
  background: var(--blue-tint);
  border-radius: 99px;
  overflow: hidden;
}

.rsum__bar span {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: 99px;
  background: linear-gradient(90deg, var(--blue), #3E71C9);
}

.rsum__score {
  flex-shrink: 0;
  min-width: 38px;
  text-align: right;
  font-weight: 800;
  font-size: 16px;
  color: var(--blue);
}

@media (max-width: 620px) {
  .rsum { padding: 4px 16px; }
  .rsum__bar { display: none; }
  .rsum__name { flex: 1; }
}

/* ---------- Карточка компании ---------- */
.company-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  margin-top: 22px;
  scroll-margin-top: 120px;
}

.company-card__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.company-card__place {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-tint);
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.company-card__place--1 {
  background: linear-gradient(135deg, #F0BB55, #D98F1F);
  color: #fff;
  box-shadow: 0 5px 14px rgba(217, 143, 31, 0.4);
}

.company-card__place--2 {
  background: linear-gradient(135deg, #C3CDDC, #96A4B8);
  color: #fff;
  box-shadow: 0 5px 14px rgba(150, 164, 184, 0.4);
}

.company-card__place--3 {
  background: linear-gradient(135deg, #D8A278, #B57547);
  color: #fff;
  box-shadow: 0 5px 14px rgba(181, 117, 71, 0.4);
}

.company-card__logo {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.company-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.company-card__logo--letter {
  background: var(--blue-tint);
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.company-card__info {
  flex: 1;
  min-width: 200px;
}

.company-card__name {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

.company-card__badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 7px;
  background: #FDF3E1;
  border: 1px solid #F2D9A6;
  color: #9A6B14;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.company-card__city {
  margin-top: 5px;
  font-size: 14px;
  color: var(--muted);
}

.company-card__scorebox {
  margin-left: auto;
  flex-shrink: 0;
  min-width: 88px;
  text-align: center;
  background: var(--blue-tint);
  border: 1px solid #CFDCF1;
  border-radius: 14px;
  padding: 10px 16px;
}

.company-card__scoreval {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: var(--blue-dark);
}

.company-card__scorelab {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.company-card__desc {
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.65;
  color: #3A4964;
}

/* Плюсы и минусы */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.pc {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}

.pc__title {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pc--pros .pc__title { color: #1E9E5A; }
.pc--cons .pc__title { color: var(--red); }

.pc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pc__list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  line-height: 1.5;
}

.pc__list li::before {
  position: absolute;
  left: 0;
  top: -1px;
  font-weight: 800;
  font-size: 16px;
}

.pc--pros .pc__list li::before { content: "+"; color: #1E9E5A; }
.pc--cons .pc__list li::before { content: "−"; color: var(--red); }

/* Действия */
.company-card__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #EDF1F8;
}

.btn--outline {
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

@media (max-width: 700px) {
  .company-card { padding: 20px 18px; }
  .pros-cons { grid-template-columns: 1fr; }

  .company-card__scorebox {
    margin-left: 0;
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    padding: 9px 12px;
  }

  .company-card__scoreval { font-size: 20px; }
  .company-card__scorelab { margin-top: 0; }
}
