/* ========================================================================
   Base / Tokens
   ======================================================================== */
:root {
  --brand-blue: #1677ff;
  --brand-blue-strong: #17499F;
  --text: #111;
  --muted: #6b7280;
  --border: #eee;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand-blue);
}

/* Общий контейнер по макету: ширина фрейма 1440, отступы 80 */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 80px;
  }
}

/* ========================================================================
   Header (по макету 1440, padding 26/80)
   ======================================================================== */
.wm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.wm-header__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 26px 80px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.wm-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wm-header__logo {
  width: 28px;
  height: 28px;
  display: block;
}

.wm-header__name {
  font-weight: 300;                 /* Light */
  font-size: 16px;
  line-height: 1.10;                /* 110% */
  letter-spacing: -0.07em;          /* -7% */
  text-transform: uppercase;
}

.wm-header__nav {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.wm-header__link {
  font-weight: 400;                 /* Regular */
  font-size: 16px;
  line-height: 1.10;                /* 110% */
  letter-spacing: -0.07em;          /* -7% */
  padding: 6px 0;
}

.wm-header__link:hover {
  color: var(--brand-blue);
}

.wm-header__cta {
  /* Auto layout по макету */
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;

  width: 163px;
  height: 39px;
  padding: 10px 18px;

  background: #17499F;              /* Blue из макета */
  border-radius: 50px;

  color: #FFFFFF;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;                /* 19px */
  letter-spacing: -0.05em;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;

  box-shadow: 0 6px 18px rgba(23, 73, 159, .25);
}

.wm-header__cta:hover {
  filter: brightness(1.05);
}

/* Бургер и мобильное меню */
.wm-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  margin-left: auto;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.wm-header__burger span {
  display: block;
  height: 2px;
  width: 20px;
  background: #111827;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .wm-header__inner {
    padding: 16px 20px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .wm-header__burger {
    display: inline-flex;
  }

  .wm-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 12px 20px 16px;
    box-shadow: 0 10px 25px rgba(15, 35, 95, 0.12);
    z-index: 900;
  }

  .wm-header.is-menu-open .wm-header__nav {
    display: flex;
  }

  .wm-header__link {
    font-size: 16px;
    padding: 6px 0;
  }

  .wm-header__name {
    font-size: 14px;
  }
}

/* ========================================================================
   HERO (фон, затемнение, типографика по макету 1440×870)
   ======================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(480px, 70vh, 870px);
}

/* Фон */
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center -20px;  /* смещение вверх как в фигме */
  transform: scale(1.03);
}

/* Затемнение */
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.10) 40%, rgba(0, 0, 0, 0.08) 60%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.22) 100%);
}
/* Контент */
.hero__container {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding: 72px 0;                 /* вертикальные отступы */
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    padding: 96px 0;
  }
}

.hero__left {
  color: #fff;
}

/* Заголовок 72/67, uppercase */
.hero__title {
  font-weight: 500;                  /* Medium */
  font-size: 72px;
  line-height: 67px;                 /* фикс из макета */
  letter-spacing: -0.06em;           /* -6% */
  text-transform: uppercase;
  margin: 0 0 16px;
}

@media (max-width: 1024px) {
  .hero__title {
    font-size: 44px;
    line-height: 42px;
  }
}

/* Подзаголовок 36/35 (lead) */
.hero__subtitle-lead {
  font-weight: 400;
  font-size: 36px;
  line-height: 35px;
  letter-spacing: -0.06em;           /* -6% */
  color: #eaf1ff;
  max-width: 900px;
  margin: 6px 0 12px;
}

/* Абзац 20/20, центр (note) */
.hero__subtitle-note {
  font-weight: 400;
  font-size: 20px;
  line-height: 20px;
  letter-spacing: -0.06em;           /* -6% */
  text-align: center;
  color: #dfe6ff;
  max-width: 920px;
  margin: 10px auto 0;
}

/* Лёгкая тень под текстом, чтобы он читался на фоне */
.hero__title,
.hero__subtitle-lead,
.hero__subtitle-note {
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(320px, 50vh, 560px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding: 40px 0;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    padding: 56px 0;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center -20px;
  transform: scale(1.03);
  filter: brightness(1.08) saturate(1.08);
}

/* ========================================================================
   Вспомогательные плитки (если нужны на других страницах)
   ======================================================================== */
.tile-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.tile {
  display: block;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: inherit;
}

.tile__title {
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 6px;
}

.tile__text {
  color: var(--muted);
  font-size: 14px;
}

/* ========================================================================
   Footer (по макету: синий фон, скругление, сетка)
   ======================================================================== */
.wm-footer {
  background: #0047A0;              /* как в фигме */
  color: #fff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  margin-top: 24px;
}

.wm-footer__wrap {
  padding: 18px 16px 14px;
}

.wm-footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.4fr 1fr; /* бренд | меню | страны (шире) | контакты */
  gap: 28px;
  align-items: start;
}

.wm-footer__brand {
  min-width: 200px;
}

.wm-footer__logo-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}

.wm-footer__logo {
  width: 32px;
  height: 32px;
  display: block;
}

.wm-footer__name {
  font-weight: 300;
  font-size: 16px;
  line-height: 1.10;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.wm-footer__copy {
  font-size: 14px;
  opacity: .95;
}

.wm-footer__title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.10;
  letter-spacing: -0.07em;
  margin-bottom: 10px;
}

.wm-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wm-footer__list li {
  margin: 8px 0;
}

.wm-footer__list a {
  color: #fff;
  text-decoration: none;
}

.wm-footer__list a:hover {
  text-decoration: underline;
}

.wm-footer__gridlist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 6px 24px;
}

.wm-footer__gridlist a {
  color: #fff;
  text-decoration: none;
}

.wm-footer__gridlist a:hover {
  text-decoration: underline;
}

.wm-footer__muted {
  opacity: .85;
}

.wm-footer__bottom {
  display: flex;
  justify-content: space-between;   /* слева/справа */
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.5);
}

.wm-footer__legal {
  font-size: 14px;
}

.wm-footer__legal a {
  color: #fff;
  opacity: .95;
}

.wm-footer__legal a:hover {
  opacity: 1;
  text-decoration: underline;
}

.wm-footer__legal .sep {
  margin: 0 10px;
  opacity: .6;
}

/* Адаптив */
@media (max-width: 1024px) {
  .wm-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .wm-footer__wrap {
    padding-inline: 20px;
  }

  .wm-footer__bottom {
    flex-direction: column;
    gap: 8px;
  }
}

/* Мобильная адаптация футера и правовых ссылок */
@media (max-width: 768px) {
  .wm-footer__wrap.container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Правовые ссылки внизу — в столбик, без принудительного nowrap */
  .wm-footer__legal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    white-space: normal;
  }

  .wm-footer__legal .sep {
    display: none;
  }

  /* Перенос длинных e-mail и URL */
  .wm-footer__list a,
  .wm-footer__legal a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}


/* ========================================================================
   Секция: Популярные рейтинги по странам (Popular rating)
   ======================================================================== */
.section-country-ratings {
  padding: clamp(36px, 5vw, 64px) 0;
  background: #F8FBFF; /* как в макете */
}

.section-country-ratings__title {
  font-weight: 600;
  font-size: clamp(22px, 4vw, 32px); /* заголовок чуть меньше, как в макете */
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-align: left;
  color: #0F172A;
  margin: 0 0 16px;
}

/* ГРИД: [313] + [1fr 1fr 1fr], визуал занимает 2 ряда */
.country-ratings {
  display: grid !important;
  grid-template-columns: 313px 1fr 1fr 1fr;
  grid-auto-rows: 248px; /* высота карточек справа */
  gap: 16px;
  align-items: stretch;
}

/* Левый высокий блок */
.country-ratings__visual {
  grid-column: 1 / 2;
  grid-row: 1 / span 2;
  position: relative;
  border: 1px solid #0057FF;
  border-radius: 10px;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  background: #fff;
}

.country-ratings__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* занимает всю колонку */
}

.country-ratings__visual .btn-outline {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 10px 18px;
  border-radius: 50px;
  background: #fff;
  color: #0057FF;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  border: 1px solid #EDEDED;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

/* Правая часть — сетка 3x2 автоматически заполняется ссылками */
.country-ratings__grid {
  grid-column: 2 / 5;     /* занимает 3 правые колонки */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 248px;
  gap: 16px;
}

/* Карточка страны */
.country-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding: 16px;
  border: 1px solid #EDEDED;
  border-radius: 10px;
  background: #fff;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease, transform .15s ease, border-color .2s ease;
  height: 100%;
}

.country-card:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 18px rgba(0, 0, 0, 0.07);
}

.country-card--active {
  border-color: #0057FF;
}

.country-card__flag img {
  width: 47px;
  height: 35px;
  display: block;
  border: 1px solid #EDEDED;
  border-radius: 4px;
  object-fit: cover;
}

.country-card__name {
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #0F172A;
}

.country-card__name--primary {
  color: #0057FF;
}

.country-card__meta {
  margin-top: 2px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 8px;
  background: #F1F5F9;
  border-radius: 10px;
  height: 28px;
}

.chip__icon {
  width: 20px;
  height: 20px;
  background: #94A3B8;
  border-radius: 50%;
  flex: 0 0 20px;
}

.chip__text {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.02em;
  color: #0F172A;
}

.country-card__link {
  margin-top: auto;           /* прижимает ссылку вниз карточки */
  font-size: 14px;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: #0057FF;
  text-decoration: underline;
}

/* Адаптив */
@media (max-width: 1200px) {
  .country-ratings {
    grid-template-columns: 280px 1fr 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .country-ratings {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .country-ratings__visual {
    grid-row: auto;
    height: 360px; /* разумная высота на планшетах */
  }

  .country-ratings__grid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
}

@media (max-width: 560px) {
  .country-ratings__visual {
    height: 300px;
  }

  .country-ratings__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
}

/* ========================================================================
   Секция: Список компаний (List company)
   ======================================================================== */
.section-company-list {
  padding: clamp(36px, 5vw, 64px) 0;
  background: #FFFFFF;
}

.section-company-list__title {
  font-weight: 600;
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #0F172A;
  margin: 0 0 16px;
}

/* Табы стран */
.company-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.company-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #EDEDED;
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  color: #0F172A;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.company-tab:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.company-tab.is-active {
  border-color: #0057FF;
  background: #F6FAFF;
}

.company-tab__count {
  display: inline-block;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 22px;
  background: #F1F5F9;
  color: #0F172A;
  font-weight: 600;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
}

/* Панели компаний */
.company-panels {
  border: 1px solid #EDEDED;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}

.company-panel {
  display: none;
}

.company-panel.is-active {
  display: block;
}

/* Сетка ссылок-списков (используется в empty-состоянии) */
.company-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.company-list__item a {
  color: #0F172A;
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.15);
}

.company-list__item a:hover {
  color: #0057FF;
  border-bottom-color: #0057FF;
}

.company-list__empty {
  color: #64748B;
}

/* Адаптив для company-list */
@media (max-width: 1024px) {
  .company-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .company-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .company-list {
    grid-template-columns: 1fr;
  }
}

/* Список компаний: карточки-строки */
.company-rows {
  display: grid;
  gap: 10px;
}

.company-row {
  display: grid;
  grid-template-columns: 64px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #E5E7EB;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.company-row__num {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #E5E7EB;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: #64748B;
  background: #F8FAFC;
}

.company-row__name a {
  color: #0F172A;
  text-decoration: none;
}

.company-row__name a:hover {
  color: #0057FF;
  text-decoration: underline;
}

.company-row__score {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 140px;
  justify-content: flex-end;
}

.company-row__score-text {
  font-weight: 600;
  color: #0F172A;
}

/* Звёзды */
.stars {
  display: inline-flex;
  gap: 4px;
}

.star {
  fill: #E2E8F0;         /* выключенная звезда */
}

.star.is-on {
  fill: #FF7A00;         /* активная звезда (оранжевая) */
}

/* CTA справа */
.company-row__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-row__link {
  color: #0057FF;
  text-decoration: none;
  font-weight: 500;
}

.company-row__link:hover {
  text-decoration: underline;
}


/* Детали (раскрывающаяся часть) */
.company-row__details {
  grid-column: 1 / -1;
  padding-top: 12px;
}

/* Адаптив для company-row */
@media (max-width: 900px) {
  .company-row {
    grid-template-columns: 44px 1fr auto;
  }

  .company-row__score {
    order: 3;
  }

  .company-row__cta {
    order: 2;
  }
}

@media (max-width: 560px) {
  .company-row {
    grid-template-columns: 1fr auto;
    row-gap: 8px;
  }

  .company-row__num {
    display: none;
  }

  .company-row__score {
    justify-content: flex-start;
  }
}

/* ========================================================================
   Секция: Проверить фирму (Information / Check company)
   ======================================================================== */
.section-check-company {
  padding: clamp(36px, 5vw, 64px) 0;
}

.check-card {
  display: grid;
  grid-template-columns: 635px 1fr;
  min-height: 540px;
  gap: 0;
  border: 1px solid #EDEDED;
  border-radius: 10px;
  background: #fff;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.check-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.check-card__body {
  padding: 24px clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.check-card__title {
  font-weight: 700;
  font-size: clamp(22px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: #1A1B1D;
  text-align: left;
  margin: 0 0 16px;
}

.check-form {
  display: grid;
  gap: 12px;
  max-width: 507px;
}

.check-input {
  display: grid;
  gap: 6px;
}

.check-input__label {
  color: #8D8D8D;
  font-size: 18px;
  letter-spacing: -0.07em;
}

.check-input input {
  height: 56px;
  padding: 0 16px;
  border: 1px solid #EDEDED;
  border-radius: 20px;
  font-size: 16px;
  outline: none;
  background: #fff;
}

.check-input input:focus {
  border-color: #0057FF;
  box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.1);
}

.check-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #8D8D8D;
  font-size: 14px;
  letter-spacing: -0.07em;
}

.check-consent input {
  margin-top: 3px;
  width: 20px;
  height: 20px;
  accent-color: #0057FF;
}

.check-submit {
  height: 70px;
  width: 507px;
  max-width: 100%;
  border-radius: 20px;
  background: #0057FF;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
}

.check-submit:disabled {
  opacity: .5;
  cursor: not-allowed;
}

@media (max-width: 1024px) {
  .check-card {
    grid-template-columns: 1fr;
  }

  .check-card__media {
    height: 260px;
  }
}

/* ========================================================================
   Секция: Новости на главной (News mosaic)
   ======================================================================== */
.section-news {
  padding: clamp(36px, 5vw, 64px) 0;
  background: #FFFFFF;
}

.section-news__title {
  /* H3/Inter/Semibold/40px */
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 40px;
  line-height: 110%; /* 44px */
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #050A0F;
  margin: 0 0 40px;
}

/* Внешняя сетка: 4 колонки → 1-я карта 2 колонки, 2 и 3 — по 1, 4 и 5 — по 2 */
.news-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

/* Базовая карточка новости */
.news-mosaic__card {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  gap: 10px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.4); /* Grey (40%) */
  background: #FFFFFF;
  overflow: hidden;
}

/* 1-я карточка (верхняя левая, большая, фон серый) */
.news-mosaic__card:nth-child(1) {
  grid-column: 1 / span 2;
  min-height: 459px;
  background: #F1F5F9; /* Grey light */
}

/* 2-я и 3-я карточки (верхний ряд, по 1 колонке) */
.news-mosaic__card:nth-child(2),
.news-mosaic__card:nth-child(3) {
  min-height: 459px;
}

.news-mosaic__card:nth-child(2) {
  grid-column: 3 / span 1;
}

.news-mosaic__card:nth-child(3) {
  grid-column: 4 / span 1;
}

/* 4-я и 5-я карточки (нижний ряд, по 50% ширины) */
.news-mosaic__card:nth-child(4),
.news-mosaic__card:nth-child(5) {
  min-height: 368px;
}

.news-mosaic__card:nth-child(4) {
  grid-column: 1 / span 2;
}

.news-mosaic__card:nth-child(5) {
  grid-column: 3 / span 2;
}

/* Контент карточки */
.news-mosaic__meta-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 120%;
  letter-spacing: -0.04em;
  color: #94A3B8; /* Grey */
}

.news-mosaic__date {
  color: #94A3B8;
}

.news-mosaic__title {
  /* Text 4/Inter/Medium/18px */
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 110%; /* 20px */
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: #050A0F;
  text-decoration: none;
  margin-top: 4px;
}

/* Для большой карточки заголовок синим (Blue) */
.news-mosaic__card:nth-child(1) .news-mosaic__title {
  color: #17499F;
}

.news-mosaic__title:hover {
  color: #17499F;
}

.news-mosaic__excerpt {
  /* Text2/Inter/Regular/16px */
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 120%; /* ~19px */
  letter-spacing: -0.05em;
  color: #3E4152; /* Dark blue */
  margin-top: 6px;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Блок с картинкой внизу карточки */
.news-mosaic__image {
  position: relative;
  margin-top: auto; /* картинка уезжает вниз */
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  display: block;
}

.news-mosaic__image-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Чип "Статья месяца" поверх картинки в 1-й карточке */
.news-mosaic__chip {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  gap: 10px;
  background: #387CF2; /* Light blue */
  border-radius: 10px;

  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 120%;
  letter-spacing: -0.05em;
  color: #FFFFFF;
}

/* Стрелка-иконка (как в макете) в правом верхнем углу карточки */
.news-mosaic__arrow {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 24px;
  height: 24px;
  padding: 4px 2px;
  border-radius: 999px;
  text-decoration: none;
}

.news-mosaic__arrow::before {
  content: "";
  display: block;
  width: 20px;
  height: 16px;
  background: #050A0F;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M13 5.828V20h-2V5.828L7.414 9.414 6 8l6-6 6 6-1.414 1.414L13 5.828z'/></svg>") no-repeat center/contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M13 5.828V20h-2V5.828L7.414 9.414 6 8l6-6 6 6-1.414 1.414L13 5.828z'/></svg>") no-repeat center/contain;
}

/* Адаптив: на планшетах → 2 колонки, на мобиле → 1 колонка */
@media (max-width: 1100px) {
  .news-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-mosaic__card:nth-child(1) {
    grid-column: 1 / span 2;
  }

  .news-mosaic__card:nth-child(2) {
    grid-column: 1 / span 1;
  }

  .news-mosaic__card:nth-child(3) {
    grid-column: 2 / span 1;
  }

  .news-mosaic__card:nth-child(4) {
    grid-column: 1 / span 1;
  }

  .news-mosaic__card:nth-child(5) {
    grid-column: 2 / span 1;
  }
}

@media (max-width: 640px) {
  .section-news__title {
    font-size: 28px;
  }

  .news-mosaic {
    grid-template-columns: 1fr;
  }

  .news-mosaic__card:nth-child(1),
  .news-mosaic__card:nth-child(2),
  .news-mosaic__card:nth-child(3),
  .news-mosaic__card:nth-child(4),
  .news-mosaic__card:nth-child(5) {
    grid-column: 1 / -1;
    min-height: auto;
  }
}


/* ========================================================================
   Страница: список новостей (News index 4×3)
   ======================================================================== */
.news-index {
  padding: 40px 0 60px;
}

.news-index__title {
  font: 600 28px/1.1 Inter, system-ui, -apple-system, Arial;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--brand-blue-strong);
  text-transform: uppercase;
}

/* Сетка 4×3 карточек */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1200px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 560px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* Карточка новости */
.news-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0, 87, 255, 0.4);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  min-height: 313px; /* из макета */
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(23, 73, 159, 0.12);
}

.news-card__image {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card__body {
  padding: 14px 16px 16px;
}

.news-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font: 500 18px/1.05 Inter, system-ui, Arial;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--brand-blue-strong);
  text-decoration: none;
}

.news-card__title:hover {
  text-decoration: underline;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: #8D8D8D;
  font: 400 14px/1.2 Inter, system-ui, Arial;
  letter-spacing: -0.04em;
}

.news-card__author {
  font-style: italic;
  font-weight: 300;
}

.news-card__time,
.news-card__views {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.news-card__arrow {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #000;
  text-decoration: none;
}

/* Базовый размер иконок */
.icon {
  width: 20px;
  height: 20px;
}

.icon--arrow,
.icon--clock,
.icon--eye {
  display: block;
}

/* Кнопка "Ещё новости" под сеткой */
.news-index__more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn--primary.news-index__more {
  width: 507px;
  height: 70px;
  background: var(--brand-blue-strong);
  color: #FFFFFF;
  border-radius: 20px;
  font: 600 16px/1.05 Inter, system-ui, Arial;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .btn--primary.news-index__more {
    width: 100%;
  }
}

/* ========================================================================
   Страница новости (News post)
   ======================================================================== */
.news-post {
  padding: 32px 0 60px;
}

.news-post__title {
  font: 700 32px/1.1 Inter, system-ui, Arial;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--brand-blue-strong);
}

.news-post__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: #8D8D8D;
  font: 400 14px/1.2 Inter, system-ui, Arial;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.news-post__meta .icon {
  width: 18px;
  height: 18px;
}

.news-post__hero {
  margin: 12px 0 22px;
  border-radius: 14px;
  overflow: hidden;
}

.news-post__hero-img {
  width: 100%;
  height: auto;
  display: block;
}

.news-post__intro {
  font: 500 18px/1.4 Inter, system-ui, Arial;
  margin: 0 0 14px;
  color: #334155;
}

.news-post__body {
  color: #111827;
  font: 400 16px/1.6 Inter, system-ui, Arial;
}

.news-post__body h2,
.news-post__body h3 {
  color: #0f172a;
  margin-top: 1.4em;
}

.news-post__footer {
  margin-top: 24px;
}

.btn.btn--link {
  color: var(--brand-blue-strong);
  text-decoration: none;
  font-weight: 600;
}

.btn.btn--link:hover {
  text-decoration: underline;
}

/* ========================================================================
   Hero-плашка на внутренних страницах (partials/hero.html для news index и др.)
   ======================================================================== */
.partials-hero {
  position: relative;
  padding: 32px 0 28px;
  overflow: hidden;
}

.partials-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.partials-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .9;
}

.partials-hero__inner {
  position: relative;
  z-index: 1;
}

.partials-hero__title {
  margin: 0 0 8px;
  color: var(--brand-blue-strong);
  font: 700 32px/1.1 Inter, system-ui, Arial;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.partials-hero__subtitle {
  margin: 0;
  color: #334155;
  font: 400 16px/1.4 Inter, system-ui, Arial;
}

.partials-hero__cta {
  margin-top: 14px;
}

/* Отступы между hero-плашкой и сеткой новостей */
.partials-hero + .news-index,
.news-index {
  padding: 40px 0 60px;
}



/* ========================================================================
   Блок Information между Hero и рейтингами
   ======================================================================== */
.section-info {
  margin-top: clamp(32px, 4vw, 48px);
  margin-bottom: clamp(32px, 5vw, 64px);
}

.info-card {
  max-width: 1281px; /* как в макете */
  margin: 0 auto;
  box-sizing: border-box;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.4); /* Grey (40%) */
  background: #FFFFFF;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.05); /* Shadow */
  padding: 40px 40px;
  position: relative;
}

.info-card__inner {
  display: flex;
  flex-direction: column;
  gap: 60px; /* как в макете между верхним и нижним блоком */
}

/* Общая строка */
.info-card__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

/* Левая колонка с заголовком */
.info-card__col--title {
  max-width: 332px;
}

/* Правая колонка с текстом */
.info-card__col--text {
  max-width: 576px;
}

/* H5/Inter/Medium/36px */
.info-card__title {
  margin: 0 0 12px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 36px;
  line-height: 110%; /* 40px */
  letter-spacing: -0.05em;
  color: #17499F; /* Blue */
}

/* Обычный текст (Text2/Inter/Regular/16px) */
.info-card__text {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 120%; /* ~19px */
  letter-spacing: -0.05em;
  color: #3E4152; /* Dark blue */
}

/* Горизонтальный разделитель (Vector 164) */
.info-card__divider--h {
  width: 100%;
  height: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
}

/* Нижний ряд: две колонки текста с вертикальной линией по центру */
.info-card__two-cols {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 70px;
  max-width: 576px;
}

.info-card__text-block {
  flex: 1 1 0;
  max-width: 253px;
}

/* Вертикальный разделитель (Vector 163) */
.info-card__divider--v {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0;
  border-left: 1px solid rgba(148, 163, 184, 0.4);
}

/* Адаптив для инфоблока */
@media (max-width: 1024px) {
  .info-card {
    padding: 32px 24px;
  }

  .info-card__row {
    flex-direction: column;
    gap: 24px;
  }

  .info-card__col--title,
  .info-card__col--text {
    max-width: 100%;
  }

  .info-card__two-cols {
    flex-direction: column;
    gap: 16px;
    max-width: 100%;
  }

  .info-card__text-block {
    max-width: 100%;
  }

  .info-card__divider--v {
    display: none;
  }
}

@media (max-width: 640px) {
  .info-card {
    padding: 24px 20px;
  }

  .info-card__title {
    font-size: 28px;
  }
}


/* ========================================================================
   /news — HERO и листинг
   ======================================================================== */

/* Хедер на странице новостей: голубой фон, серый бордер снизу */
body.news .wm-header {
  background: #F5FAFF;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

/* Синяя полоса 284px */
.news-hero {
  background: #17499F;
  color: #FFFFFF;
}

.news-hero__inner {
  min-height: 284px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 96px 0 40px; /* чтобы breadcrumbs были сверху, заголовок снизу */
}

/* Хлебные крошки */
.news-hero__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial;
  font-weight: 400;
  font-size: 18px;
  line-height: 110%;
  color: #94A3B8;
}

.news-hero__breadcrumbs a {
  color: #94A3B8;
  text-decoration: none;
}

.news-hero__breadcrumbs a:hover {
  color: #FFFFFF;
}

.news-hero__sep {
  color: #94A3B8;
}

/* Заголовок "НОВОСТИ" 72/79, uppercase, белый */
.news-hero__title {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial;
  font-style: normal;
  font-weight: 500;
  font-size: 72px;
  line-height: 110%; /* 79px */
  letter-spacing: -0.06em;
  text-transform: uppercase;
  color: #FFFFFF;
}

/* ====== Секция со списком новостей (карточки-строки) ====== */

.news-list-section {
  padding: 40px 0 60px;
  background: #FFFFFF;
}

.news-list-page {
  display: flex;
  flex-direction: column;
  gap: 20px; /* расстояние между карточками */
}

/* Общая карточка 1280×318 */
.news-fullcard {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  padding: 40px;
  box-sizing: border-box;

  width: 100%;
  max-width: 1280px;

  background: #FFFFFF;
  border: 1px solid rgba(148, 163, 184, 0.4); /* Grey (40%) */
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

/* Вторая карточка в листинге — голубая (Light blue 2) */
.news-fullcard--accent {
  background: #E1EBFF;
  border-color: #387CF2;
}

/* Левая картинка 364×238 */
.news-fullcard__image {
  flex: 0 0 364px;
  width: 364px;
  height: 238px;
  border-radius: 10px;
  overflow: hidden;
}

.news-fullcard__image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Правая часть: текстовый столбец */
.news-fullcard__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}


/* верхняя строка: минуты слева, дата+просмотры справа */
.news-fullcard__toprow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.news-fullcard__minutes {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial;
  font-size: 14px;
  line-height: 120%;
  letter-spacing: -0.04em;
  color: #94A3B8;
}

.news-fullcard__minutes-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #94A3B8;
}

/* Заголовок статьи 36/40, синий */
.news-fullcard__title {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial;
  font-style: normal;
  font-weight: 500;
  font-size: 36px;
  line-height: 110%; /* 40px */
  letter-spacing: -0.05em;
  color: #17499F;
  text-decoration: none;
}

.news-fullcard__title:hover {
  text-decoration: underline;
}

/* Краткое описание */
.news-fullcard__excerpt {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 120%; /* ~19px */
  letter-spacing: -0.05em;
  color: #3E4152;
}

/* нижний блок справа: дата + глаз + число просмотров */
.news-fullcard__meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 13px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial;
  font-size: 14px;
  line-height: 120%;
  letter-spacing: -0.04em;
  color: #94A3B8;
  margin-top: 0; /* на всякий случай сбрасываем старый margin-top */
}

.news-fullcard__views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Кнопка "Ещё новости" — уже была, оставляем: 507×70, синяя */
/* Адаптив: на планшете/мобиле — картинка сверху, текст снизу */
@media (max-width: 900px) {
  .news-fullcard {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .news-fullcard__image {
    width: 100%;
    height: 220px;
  }

  .news-fullcard__body {
    width: 100%;
  }

  .news-fullcard__title {
    font-size: 26px;
  }
}

@media (max-width: 560px) {
  .news-hero__inner {
    padding: 72px 0 28px;
  }

  .news-hero__title {
    font-size: 38px;
  }

  .news-hero__breadcrumbs {
    font-size: 14px;
  }

  .btn--primary.news-index__more {
    width: 100%;
  }
}
/* Центрируем изображение из richtext с форматом "По центру" */
.richtext-image--center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    /* опционально: */
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
figure.richtext-image--center,
img.richtext-image--center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Центровка картинок Wagtail-формата "По центру" */
img.richtext-image--center,
figure.richtext-image--center,
.richtext-image--center img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    /* опционально, чтобы красиво отступало от текста: */
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
/* ========================================================================
   ABOUT: hero
   ======================================================================== */
body.about .wm-header {
  background: #F5FAFF;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.about-hero {
  background: #17499F;
  color: #FFFFFF;
}

.about-hero__inner {
  min-height: 284px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 96px 0 40px;
}

.about-hero__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  font: 400 18px/1.1 Inter, system-ui, -apple-system, "Segoe UI", Arial;
  color: #94A3B8;
}

.about-hero__breadcrumbs a {
  color: #94A3B8;
  text-decoration: none;
}

.about-hero__breadcrumbs a:hover {
  color: #FFFFFF;
}

.about-hero__sep {
  color: #94A3B8;
}

.about-hero__title {
  margin: 0;
  font: 500 72px/1.1 Inter, system-ui, Arial;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .about-hero__inner {
    min-height: auto;
    padding: 72px 0 28px;
  }

  .about-hero__title {
    font-size: 42px;
  }

  .about-hero__breadcrumbs {
    font-size: 14px;
  }
}

/* ========================================================================
   ABOUT: cover (лево/право)
   ======================================================================== */
.about-cover {
  padding: 60px 0 80px;
  background: #F9FBFF;
}

.about-cover__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.about-cover__card {
  border-radius: 20px;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 40px 40px;
  margin-bottom: 20px;
}

.about-cover__card--white {
  background: #FFFFFF;
}

.about-cover__card--blue {
  background: #17499F;
  border-color: #F5FAFF;
  color: #FFFFFF;
}

.about-cover__heading {
  margin: 0;
  font: 600 40px/1.1 Inter, system-ui, Arial;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #17499F;
}

.about-cover__subheading {
  margin: 0 0 12px;
  font: 500 36px/1.1 Inter, system-ui, Arial;
  letter-spacing: -0.05em;
}

.about-cover__text {
  margin: 0;
  font: 400 20px/1.2 Inter, system-ui, Arial;
  letter-spacing: -0.05em;
}

.about-cover__right {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.05);
}

.about-cover__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 900px) {
  .about-cover__grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================
   ABOUT: общие заголовки
   ======================================================================== */
.about-section-title {
  margin: 0 0 32px;
  font: 600 40px/1.1 Inter, system-ui, Arial;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #050A0F;
}

.about-section-title--light {
  color: #FFFFFF;
}

/* ========================================================================
   ABOUT: team
   ======================================================================== */
.about-team {
  padding: 60px 0 80px;
  background: #FFFFFF;
}

.about-team__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.about-team__card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.about-team__photo-wrap {
  position: relative;
  height: 260px;
}

.about-team__photo {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* пока просто фоны, потом можно заменить на реальные фото */
.about-team__photo--1 { background-image: url("https://via.placeholder.com/600x400?text=Expert+1"); }
.about-team__photo--2 { background-image: url("https://via.placeholder.com/600x400?text=Expert+2"); }
.about-team__photo--3 { background-image: url("https://via.placeholder.com/600x400?text=Expert+3"); }
.about-team__photo--4 { background-image: url("https://via.placeholder.com/600x400?text=Expert+4"); }

.about-team__photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 85%);
  display: flex;
  align-items: flex-end;
  padding: 16px 20px;
}

.about-team__person {
  color: #FFFFFF;
}

.about-team__name {
  font: 400 20px/1.2 Inter, system-ui, Arial;
  letter-spacing: -0.05em;
}

.about-team__role {
  font: 400 14px/1.2 Inter, system-ui, Arial;
  letter-spacing: -0.04em;
}

.about-team__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-team__quote {
  margin: 0;
  font: 400 14px/1.2 Inter, system-ui, Arial;
  letter-spacing: -0.04em;
  color: #3E4152;
}

.about-team__socials {
  display: flex;
  gap: 8px;
}

.about-team__social {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #17499F;
}

@media (max-width: 1100px) {
  .about-team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .about-team__grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================
   ABOUT: steps (12 шагов)
   ======================================================================== */
.about-steps {
  padding: 60px 0 80px;
  background: #FFFFFF;
}

.about-steps__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 20px;
}

.about-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-step__num {
  width: 60px;
  height: 60px;
  border-radius: 30px;
  background: #17499F;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 400 24px/1.2 Inter, system-ui, Arial;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

.about-step__title {
  font: 400 20px/1.2 Inter, system-ui, Arial;
  letter-spacing: -0.03em;
  color: #050A0F;
}

@media (max-width: 1024px) {
  .about-steps__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .about-steps__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ========================================================================
   ABOUT: principles
   ======================================================================== */
.about-principles {
  padding: 60px 0 80px;
  background: #17499F;
  color: #FFFFFF;
}

.about-principles__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.about-principle {
  background: #FFFFFF;
  color: #050A0F;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 4px 4px 15px rgba(0,0,0,0.05);
}

.about-principle__title {
  margin: 0 0 12px;
  font: 500 36px/1.1 Inter, system-ui, Arial;
  letter-spacing: -0.05em;
}

.about-principle__text {
  margin: 0;
  font: 400 16px/1.2 Inter, system-ui, Arial;
  letter-spacing: -0.05em;
  color: #3E4152;
}

@media (max-width: 900px) {
  .about-principles__grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================
   ABOUT: stats
   ======================================================================== */
.about-stats {
  padding: 60px 0 80px;
  background: #FFFFFF;
}

.about-stats__top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.about-stats__text {
  max-width: 600px;
}

.about-stats__subtitle {
  margin: 0 0 12px;
  font: 400 32px/1.2 Inter, system-ui, Arial;
  letter-spacing: -0.04em;
  color: #050A0F;
}

.about-stats__desc {
  margin: 0;
  font: 400 20px/1.2 Inter, system-ui, Arial;
  letter-spacing: -0.05em;
  color: #3E4152;
}

.about-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.about-stat__circle {
  width: 100%;
  max-width: 313px;
  height: 313px;
  border-radius: 50%;
  border: 1px solid #94A3B8;
  margin: 0 auto;
  padding: 89px 54px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.about-stat__value {
  font: 500 72px/1.1 Inter, system-ui, Arial;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  color: #17499F;
  text-align: center;
}

.about-stat__label {
  font: 400 20px/1.2 Inter, system-ui, Arial;
  letter-spacing: -0.05em;
  text-align: center;
  color: #3E4152;
}

@media (max-width: 1100px) {
  .about-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .about-stats__grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================
   ABOUT: quote
   ======================================================================== */
.about-quote {
  padding: 60px 0 80px;
  background: #F5FAFF;
}

.about-quote__card {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 40px;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.05);
  padding: 40px;
}

.about-quote__image-wrap {
  border-radius: 10px;
  overflow: hidden;
}

.about-quote__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-quote__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.about-quote__title {
  margin: 0;
  font: 600 40px/1.1 Inter, system-ui, Arial;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #17499F;
}

.about-quote__title--second {
  margin-top: -4px;
}

.about-quote__author {
  margin: 16px 0 0;
  font: 400 20px/1.2 Inter, system-ui, Arial;
  letter-spacing: -0.05em;
  color: #3E4152;
}

@media (max-width: 900px) {
  .about-quote__card {
    grid-template-columns: 1fr;
  }
}


/* ========================================================================
   RATINGS: hero + main
   ======================================================================== */
body.ratings .wm-header {
  background: #F5FAFF;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

/* Синяя полоса 284px */
.ratings-hero {
  background: #17499F;
  color: #FFFFFF;
}

.ratings-hero__inner {
  min-height: 284px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 96px 0 40px;
}

/* Хлебные крошки */
.ratings-hero__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial;
  font-weight: 400;
  font-size: 18px;
  line-height: 110%;
  color: #94A3B8;
}

.ratings-hero__breadcrumbs a {
  color: #94A3B8;
  text-decoration: none;
}

.ratings-hero__breadcrumbs a:hover {
  color: #FFFFFF;
}

.ratings-hero__sep {
  color: #94A3B8;
}

/* Заголовок "РЕЙТИНГИ" 72/79 */
.ratings-hero__title {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial;
  font-style: normal;
  font-weight: 500;
  font-size: 72px;
  line-height: 110%;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  color: #FFFFFF;
}

@media (max-width: 900px) {
  .ratings-hero__inner {
    min-height: auto;
    padding: 72px 0 28px;
  }

  .ratings-hero__title {
    font-size: 42px;
  }

  .ratings-hero__breadcrumbs {
    font-size: 14px;
  }
}

/* Основной фон под карточками */
.ratings-main {
  padding: 60px 0 80px;
  background: #F5FAFF;
}

.ratings-main__title {
  margin: 0 0 16px;
  font: 600 32px/1.2 Inter, system-ui, Arial;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #050A0F;
}

.ratings-main__intro {
  margin: 0 0 24px;
  max-width: 720px;
  color: #3E4152;
}

/* ========================================================================
   RATINGS: cards (страны)
   ======================================================================== */

.ratings-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

/* базовая карточка */
.ratings-card {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 30px 40px;
  height: 172px;

  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.05);
  border-radius: 10px;

  text-decoration: none;
  color: inherit;
}

/* первые две — широкие (2×635px в 6-колоночной сетке → span 3) */
.ratings-card--wide {
  grid-column: span 3;
}

/* нижний ряд — три карточки по 1/3 (span 2) */
.ratings-card--medium {
  grid-column: span 2;
}

/* акцентные карточки */
.ratings-card--accent {
  background: #E1EBFF;
  border-color: #387CF2;
}

/* содержимое карточки */
.ratings-card__flag img {
  width: 46px;
  height: 35px;
  display: block;
  border-radius: 4px;
  object-fit: cover;
}

.ratings-card__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ratings-card__country {
  font: 400 32px/1.2 Inter, system-ui, Arial;
  letter-spacing: -0.04em;
  color: #050A0F;
}

.ratings-card__meta .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 8px;
  background: #F1F5F9;
  border-radius: 10px;
  height: 28px;
}

.ratings-card__meta .chip__icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #94A3B8;
}

.ratings-card__meta .chip__text {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.04em;
  color: #050A0F;
}

.ratings-card:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 18px rgba(0, 0, 0, 0.07);
}

/* адаптив */
@media (max-width: 1100px) {
  .ratings-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ratings-card--wide,
  .ratings-card--medium {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .ratings-cards {
    grid-template-columns: 1fr;
  }

  .ratings-card--wide,
  .ratings-card--medium {
    grid-column: 1 / -1;
  }

  .ratings-card {
    padding: 20px;
    height: auto;
  }

  .ratings-card__country {
    font-size: 24px;
  }
}

/* ========================================================================
   RATINGS: нижние статьи (две карточки)
   ======================================================================== */
.ratings-articles {
  padding: 40px 0 80px;
  background: #FFFFFF;
}

.ratings-articles__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}


/* ================================
   Блок CTA "Добавим компанию"
   ================================ */

.rating-cta {
  padding: 40px 0 60px;
  background: #F5F7FB;
}

.rating-cta__container {
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

/* =======================
   Левый блок — изображение
   ======================= */

.rating-cta__left {
  width: 100%;
  height: 100%;
}

.rating-cta__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

/* =======================
   Правый блок — форма
   ======================= */

.rating-cta__right {
  width: 100%;
  background: #FFF;
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rating-cta__title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 26px;
}

.rating-cta__subtitle {
  margin: 0 0 20px;
  font-size: 14px;
  color: #555;
  line-height: 1.45;
}

.rating-cta__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.rating-cta__field label {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.rating-cta__field input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid #D4D9E2;
  background: #fff;
  font-size: 15px;
}

.rating-cta__field input:focus {
  outline: none;
  border-color: #17499F;
  box-shadow: 0 0 0 1px rgba(23,73,159,0.25);
}

/* =======================
   Чекбокс
   ======================= */

.rating-cta__checkbox {
  font-size: 13px;
  margin-top: 6px;
}

.rating-cta__checkbox input {
  margin-right: 6px;
}

/* =======================
   Кнопка (в фирменном стиле)
   ======================= */

.rating-cta__submit {
  background: #17499F !important;
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 100px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(23,73,159,0.25);
}

.rating-cta__submit:hover {
  background: #1d57bf !important;
  box-shadow: 0 10px 26px rgba(23,73,159,0.35);
}

/* =======================
   Ошибки
   ======================= */

.field-error {
  font-size: 12px;
  min-height: 14px;
  color: #c42525;
}

/* =======================
   Адаптив
   ======================= */

@media (max-width: 900px) {
  .rating-cta__container {
    grid-template-columns: 1fr;
  }

  .rating-cta__img {
    height: 260px;
  }

  .rating-cta__right {
    padding: 22px 20px;
  }
}

/* Базовый оверлей модалки */
.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* затемнение фона */
.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* само окно */
.contact-modal__dialog {
  position: relative;
  z-index: 1001;
  max-width: 420px;
  width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  padding: 24px 24px 20px;
  font-size: 14px;
}

/* крестик */
.contact-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

/* заголовок и поля */
.contact-modal__title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
}

.contact-modal__field {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.contact-modal__label {
  margin-bottom: 4px;
  font-size: 13px;
  color: #555;
}

.contact-modal__field input,
.contact-modal__field textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d0d4de;
  font-size: 14px;
  resize: vertical;
}

.contact-modal__field input:focus,
.contact-modal__field textarea:focus {
  outline: none;
  border-color: #17499f;
}

/* кнопка отправки, можно подогнать под .wm-header__cta */
.contact-modal__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: #17499f;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.contact-modal__submit:hover {
  background: #133c84;
}

/* статус */
.contact-modal__status {
  margin-top: 6px;
  font-size: 13px;
  color: #555;
}


/* Кнопка раскрытия деталей компании: единая стрелка с палочкой */
.company-row__toggle {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #17499F;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

/* Иконка стрелки вниз */
.company-row__toggle::before {
  content: "↓";
  color: #17499F;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
}

/* Когда раскрыто - вращаем и меняем цвет */
.company-row__toggle[aria-expanded="true"] {
  background: #17499F;
  border-color: #17499F;
  transform: rotate(180deg);
}

.company-row__toggle[aria-expanded="true"]::before {
  color: #FFFFFF;
}
/* Общий контейнер раскрытой карточки компании */
.company-row__details {
  margin-top: 24px;
  padding: 24px 24px 28px;
  background: #F5FAFF;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.company-details {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Верхний ряд: скриншот + блок "Официальный сайт" */
.company-details__top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 1024px) {
  .company-details__top {
    flex-direction: row;
    align-items: flex-start;
    gap: 111px;
  }
}

.company-details__image-box {
  flex: 1 1 0;
  min-width: 0;
}

.company-details__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.company-details__image-placeholder {
  width: 100%;
  height: 177px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #E5E7EB;
}

/* "Официальный сайт" */
.company-details__site-box {
  flex: 1 1 0;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: #F5FAFF;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

@media (max-width: 767px) {
  .company-details__site-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

.company-details__site-label {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 20px;
  line-height: 120%;
  letter-spacing: -0.05em;
  color: #050A0F;
}

.company-details__site-url {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 20px;
  line-height: 120%;
  letter-spacing: -0.05em;
  color: #3E4152;
  word-break: break-word;
}

.company-details__site-url-link {
  color: inherit;
  text-decoration: none;
}

.company-details__site-url-link:hover {
  color: #17499F;
  text-decoration: underline;
}

.company-details__site-url-missing {
  color: #9CA3AF;
}

/* Разделитель между верхним и нижним блоком */
.company-details__divider {
  margin: 32px 0 28px;
  height: 1px;
  background: rgba(148, 163, 184, 0.4);
}

/* Нижний ряд: описание + блок "Плюсы и минусы" */
.company-details__bottom {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 1024px) {
  .company-details__bottom {
    flex-direction: row;
    gap: 111px;
  }
}

.company-details__description {
  flex: 1 1 0;
  min-width: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 120%;
  letter-spacing: -0.05em;
  color: #3E4152;
  word-break: break-word;
}

/* "Плюсы и минусы" */
.company-details__proscons {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.company-details__proscons-header {
  background: #FFFFFF;
  border: 1px solid #E1EBFF;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  padding: 17px 0;
  text-align: center;

  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 20px;
  line-height: 120%;
  letter-spacing: -0.05em;
  color: #050A0F;
}

.company-details__proscons-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .company-details__proscons-body {
    flex-direction: row;
    gap: 0;
  }
}

.company-details__pros,
.company-details__cons {
  flex: 1 1 0;
  min-width: 0;
  background: #FFFFFF;
  border: 1px solid #E1EBFF;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  padding: 28px 20px;
}

.company-details__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.company-details__list-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.company-details__bullet {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #FFFFFF;
}

.company-details__bullet--plus {
  background: #42FF5E;
}

.company-details__bullet--minus {
  background: #FF4242;
}

.company-details__bullet--plus::before {
  content: "✓";
}

.company-details__bullet--minus::before {
  content: "!";
}

.company-details__list-text {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 120%;
  letter-spacing: -0.04em;
  color: #3E4152;
  word-break: break-word;
}

.company-details__empty {
  font-size: 14px;
  color: #9CA3AF;
}


/* Блок таблички с информацией на странице страны */
.company-details--country .company-details__bottom {
  /* уже описано как flex в общих стилях, но этот класс можно использовать,
     если нужно отдельно кастомизировать country-страницу */
}

.company-details__info {
  flex: 1 1 0;
  min-width: 0;
  background: #FFFFFF;
  border: 1px solid #E1EBFF;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}

.company-details__info-body {
  display: flex;
  flex-direction: column;
}

/* Одна строка таблички: слева заголовок, справа значение */
.company-details__info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(135, 135, 135, 0.3);
}

.company-details__info-row:last-child {
  border-bottom: none;
}

.company-details__info-label {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 20px;
  line-height: 120%;
  letter-spacing: -0.05em;
  color: #3E4152; /* Dark blue */
}

.company-details__info-value {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 120%;
  letter-spacing: -0.05em;
  color: #838C97; /* Grey 2 */
  text-align: right;
  max-width: 50%;
  word-break: break-word;
}

/* На узких экранах переносим подписи и значения в столбик */
@media (max-width: 768px) {
  .company-details__info-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .company-details__info-value {
    max-width: 100%;
    text-align: left;
  }
}

/* ========================================================================
   404: простая страница "не найдено"
   ======================================================================== */

.section-404 {
  padding: 80px 0 120px;    /* отступы сверху/снизу, чтобы блок был примерно по центру */
}

.not-found {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.not-found__code {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.06em;
  color: #17499F;
  margin-bottom: 12px;
}

.not-found__title {
  margin: 0 0 12px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 120%;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #050A0F;
}

.not-found__text {
  margin: 0 0 24px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: -0.04em;
  color: #3E4152;
}

/* Кнопка как на форме "Отправить" — широкая синяя таблетка */
.not-found__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 507px;
  max-width: 100%;
  height: 70px;

  border-radius: 20px;
  border: none;
  background: #17499F;
  color: #FFFFFF;
  text-decoration: none;
  cursor: pointer;

  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.05em;
  text-transform: uppercase;

  box-shadow: 0 8px 20px rgba(23, 73, 159, 0.25);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.not-found__btn:hover {
  background: #1d57bf;
  box-shadow: 0 10px 26px rgba(23, 73, 159, 0.35);
  transform: translateY(-1px);
}



/* ====== COMPANY DETAIL ====== */

/* Общий фон и отступы вокруг страницы компании */
.template-company-detail {
    background: #f5f7fb;
}

/* Верхний блок с логотипом и основной инфой */
.company-hero {
    padding: 40px 0 32px;
}

.company-hero__inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* Лого / скриншот */
.company-hero__logo {
    flex: 0 0 220px;
    margin: 0;
}

.company-hero__logo img {
    width: 100%;
    display: block;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(15, 35, 95, 0.12);
    object-fit: cover;
}

/* Основная колонка */
.company-hero__main {
    flex: 1;
}

.company-hero__title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px;
}

.company-hero__countries {
    margin: 4px 0 20px;
    font-size: 14px;
    color: #6b7280;
}

/* Контакты */
.company-hero__contacts {
    margin-bottom: 16px;
}

.company-hero__contact {
    font-size: 15px;
    margin-bottom: 4px;
}

.company-hero__contact .label {
    font-weight: 500;
    margin-right: 4px;
    color: #4b5563;
}

.company-hero__contact .value {
    color: #111827;
    text-decoration: none;
}

.company-hero__contact .value:hover {
    text-decoration: underline;
}

/* Мета-информация (год, срок доставки, ИКС и т.п.) */
.company-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 20px;
}

.company-hero__meta-item {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e5f0ff;
    color: #1f2937;
}

.company-hero__meta-item .label {
    font-weight: 500;
    margin-right: 4px;
}

/* Блоки "О компании", "Плюсы", "Минусы" */
.company-section {
    padding: 24px 0;
}

.company-section + .company-section {
    border-top: 1px solid #e5e7eb;
}

.company-section > .container {
    max-width: 960px;
    margin: 0 auto;
}

/* Заголовки секций */
.company-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Текстовые блоки */
.company-section__block {
    font-size: 15px;
    line-height: 1.6;
    color: #111827;
}

/* Плюсы / минусы в две колонки на десктопе */
.company-section--columns .company-section__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.company-section__list {
    margin: 0;
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.5;
}

/* Адаптив: на мобильных одна колонка */
@media (max-width: 768px) {
    .company-hero__inner {
        flex-direction: column;
        max-width: 100%;
        padding: 0 16px;
    }

    .company-hero__logo {
        max-width: 260px;
    }

    .company-section > .container {
        padding: 0 16px;
    }

    .company-section--columns .company-section__columns {
        grid-template-columns: 1fr;
    }
}


/* ====== COMPANY LIST (CATALOG) ====== */

.template-company-directory {
    background: #f5f7fb;
}

.company-directory {
    padding: 40px 0 60px;
}

.company-directory .container {
    max-width: 1100px;
    margin: 0 auto;
}

.company-directory__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.company-directory__intro {
    max-width: 720px;
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 24px;
}

/* Сетка карточек */
.company-directory__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* Карточка компании */
.company-card {
    list-style: none;
}

.company-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 35, 95, 0.08);
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.company-card__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(15, 35, 95, 0.16);
}

/* Картинка */
.company-card__header {
    width: 100%;
    padding-top: 60%;
    position: relative;
    overflow: hidden;
}

.company-card__image {
    position: absolute;
    inset: 0;
    margin: 0;
}

.company-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Тело карточки */
.company-card__body {
    padding: 14px 16px 16px;
}

.company-card__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px;
}

.company-card__countries {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 6px;
}

.company-card__meta {
    font-size: 13px;
    color: #111827;
}

/* Адаптив */
@media (max-width: 1024px) {
    .company-directory__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .company-directory__grid {
        grid-template-columns: 1fr;
    }

    .company-directory .container {
        padding: 0 16px;
    }
}



/* --- NEWS MOSAIC: позиция чипа "Статья месяца" --- */
.section-news .news-mosaic__image {
  position: relative;
}

.section-news .news-mosaic__image .news-mosaic__chip {
  position: absolute;
  top: 12px;
  left: 12px;
  right: auto;
  bottom: auto;
  transform: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
}


/* Строка компании — режем горизонтальный оверфлоу */
.company-row {
  overflow: hidden;
}

.company-row__main {
  min-width: 0;
}

/* Офисы + города */
.company-row__regions {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.company-row__regions-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}

/* Сами города: скроллятся по оси X, но не ломают строку */
.company-row__regions-track {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Пилюли городов */
.company-row__region-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: rgba(0, 0, 0, 0.02);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .company-row__regions {
    margin-top: 6px;
  }

  .company-row__region-pill {
    font-size: 11px;
    padding: 2px 10px;
  }
}

/* Кнопка "заметили ошибку?" внутри деталей компании */
.company-details__feedback {
  margin-top: 16px;
}

.company-details__feedback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px dashed rgba(0, 0, 0, 0.25);
  background-color: transparent;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.company-details__feedback-btn:hover {
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.35);
  background-color: rgba(0, 0, 0, 0.03);
}

/* Модалка "Сообщить об ошибке" */
.company-error-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1000;
}

.company-error-modal.is-open {
  display: flex;
}

.company-error-modal__backdrop {
  position: absolute;
  inset: 0;
}

.company-error-modal__dialog {
  position: relative;
  z-index: 1;
  max-width: 420px;
  width: calc(100% - 32px);
  border-radius: 16px;
  background: #ffffff;
  padding: 20px 24px 22px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.company-error-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: transparent;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.company-error-modal__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.company-error-modal__company-label {
  font-size: 13px;
  margin-bottom: 10px;
  color: rgba(0, 0, 0, 0.7);
}

.company-error-modal__field {
  margin-bottom: 12px;
}

.company-error-modal__field label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.company-error-modal__field textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  font-size: 13px;
}

.company-error-modal__submit {
  margin-top: 4px;
}

.company-error-modal__status {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.7);
}


/* === HEADER: базовая раскладка === */

.wm-header {
  position: relative;
  z-index: 100;
  background: #fff;
}

.wm-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
}

/* Брендинг слева */

.wm-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.wm-header__logo {
  display: block;
}

.wm-header__name {
  font-size: 14px;
  font-weight: 600;
}

/* Навигация и кнопка справа (десктоп) */

.wm-header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.wm-header__link {
  font-size: 14px;
  text-decoration: none;
  color: #000;
  white-space: nowrap;
}

.wm-header__link:hover {
  text-decoration: underline;
}

.wm-header__cta {
  margin-left: 24px;
}

/* === Бургер по умолчанию скрыт (десктоп) === */

.wm-header__burger {
  display: none;
  border: none;
  background: transparent;
  padding: 0;
  margin-left: auto; /* для мобилки; на десктопе просто не видно */
  width: 24px;
  height: 18px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.wm-header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #000;
}

/* === Мобильная версия === */
@media (max-width: 900px) {
  .wm-header__inner {
    position: relative;
  }

  /* Бургер показываем */
  .wm-header__burger {
    display: flex;
  }

  /* Навигацию прячем и превращаем в выпадающее меню */
  .wm-header__nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-left: 0;
    margin-top: 8px;
    padding: 12px 16px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    display: none;
  }

  /* Когда JS вешает класс is-menu-open на header — показываем меню */
  .wm-header.is-menu-open .wm-header__nav {
    display: flex;
  }

  /* Скрываем большую кнопку в шапке (при желании можно оставить) */
  .wm-header__cta {
    display: none;
  }
}

/* Когда меню открыто — запрещаем прокрутку body (JS уже добавляет этот класс) */
body.has-menu-open {
  overflow: hidden;
}


/* ТОП-3 компаний на странице каталога компаний */
.company-directory__top {
  margin-top: 24px;
  margin-bottom: 28px;
  padding: 16px 18px 20px;
  border-radius: 18px;
  background: #f5f7ff;
}

.company-directory__top-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Сетка для топ-3 использует те же карточки, просто может быть чуть компактнее */
.company-directory__grid--top {
  margin-bottom: 0;
}

/* Подпись перед полным списком компаний */
.company-directory__note {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.6);
}

/* Заголовки секций в каталоге компаний */
.company-directory__top-title,
.company-directory__section-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.company-directory__section-title {
  margin-top: 28px;
}

/* Блок ТОП-3 */
.company-directory__top {
  margin-top: 24px;
  margin-bottom: 28px;
  padding: 16px 18px 20px;
  border-radius: 18px;
  background: #f5f7ff;
}

.company-directory__grid--top {
  margin-bottom: 0;
}

/* Подпись перед полным списком компаний */
.company-directory__note {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.6);
}

/* Средний балл в карточках ТОП-3 */
.company-card__rating {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.75);
}

.company-card__rating-score {
  font-weight: 600;
}

.company-card__rating-count {
  font-weight: 400;
}

/* === FAQ БЛОК НА ГЛАВНОЙ === */

.section-faq {
  margin-top: 48px;
  margin-bottom: 56px;
}

.section-faq__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.section-faq__title-block {
  max-width: 420px;
}

.section-faq__title {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #3E4152;
  margin: 0 0 8px;
}

.section-faq__subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: rgba(62, 65, 82, 0.8);
}

.section-faq__lead {
  max-width: 520px;
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: #3E4152;
}

/* Список Q&A */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Одна строка FAQ */

.faq-item {
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 15px 20px;
  border: none;
  background: #FFFFFF;
  cursor: pointer;
}

.faq-item__question {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: #3E4152;
  text-align: left;
}

/* Стрелка справа */

.faq-item__arrow {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.faq-item__arrow-circle {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid #17499F;
  background: #FFFFFF;
}

.faq-item__arrow-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-style: solid;
  border-width: 0 0 2px 2px;
  border-color: #17499F;
  transform: translate(-50%, -50%) rotate(-45deg);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

/* Открытое состояние — синий круг и стрелка "вверх" белым */

.faq-item.is-open .faq-item__arrow-circle {
  background: #0057FF;
  border-color: #17499F;
}

.faq-item.is-open .faq-item__arrow-icon {
  border-color: #FFFFFF;
  transform: translate(-50%, -50%) rotate(135deg);
}

/* Тело ответа */

.faq-item__body {
  background: #F1F5F9;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.faq-item__answer {
  padding: 16px 20px 18px;
  font-size: 16px;
  line-height: 1.4;
  color: #3E4152;
}

.faq-item__answer p {
  margin: 0 0 6px;
}

.faq-item__answer p:last-child {
  margin-bottom: 0;
}

/* Адаптация под мобильные */

@media (max-width: 900px) {
  .section-faq {
    margin-top: 40px;
    margin-bottom: 44px;
  }

  .section-faq__head {
    flex-direction: column;
    gap: 12px;
  }

  .section-faq__title {
    font-size: 26px;
  }

  .faq-item__header {
    padding: 12px 14px;
  }

  .faq-item__question {
    font-size: 16px;
  }

  .faq-item__answer {
    padding: 12px 14px 14px;
    font-size: 14px;
  }

  .faq-item__arrow {
    width: 38px;
    height: 38px;
  }
}

/* === Страница одной новости: hero, контент, содержание === */

.news-post {
  padding-bottom: 48px;
}

/* HERO */

.news-post__hero-section {
  padding: 24px 0 32px;
  background: #f8fafc;
}

.news-post__hero-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-post__breadcrumbs {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.6);
  margin-bottom: 4px;
}

.news-post__breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.news-post__breadcrumbs a:hover {
  text-decoration: underline;
}

.news-post__breadcrumbs-sep {
  margin: 0 4px;
}

.news-post__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.news-post__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #e0edff;
  color: #17499f;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-post__title {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.news-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.75);
}

.news-post__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-post__meta-item--icon svg {
  display: inline-block;
}

/* Картинка hero */

.news-post__hero-media {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.news-post__hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* КОНТЕНТ */

.news-post__content-section {
  padding: 8px 0 40px;
}

.news-post__content {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 1400px) {
  .news-post__content {
    max-width: 1100px;
  }
}

/* Лид */

.news-post__intro {
  margin: 0 0 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #f1f5f9;
  font-size: 16px;
  line-height: 1.6;
  color: #0f172a;
}

.news-post__intro p:last-child {
  margin-bottom: 0;
}

/* Тело статьи */

.news-post__body {
  font-size: 16px;
  line-height: 1.7;
  color: #0f172a;
}

.news-post__body p {
  margin: 0 0 1.1em;
}

.news-post__body ul,
.news-post__body ol {
  margin: 0 0 1.2em 1.2em;
  padding-left: 1.2em;
}

.news-post__body li {
  margin-bottom: 0.3em;
}

.news-post__body h2 {
  margin: 2em 0 0.6em;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.news-post__body h3 {
  margin: 1.6em 0 0.5em;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
}

.news-post__body h4 {
  margin: 1.4em 0 0.5em;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
}

.news-post__body strong {
  font-weight: 600;
}

.news-post__body a {
  color: #17499f;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.news-post__body a:hover {
  text-decoration-thickness: 2px;
}

/* Картинки и figure из RichText */

.news-post__body .richtext-image,
.news-post__body figure {
  margin: 24px 0;
  text-align: center;
}

.news-post__body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Цитаты */

.news-post__body blockquote {
  margin: 1.6em 0;
  padding: 10px 16px;
  border-left: 3px solid #17499f;
  background: #f8fafc;
  font-style: italic;
}

/* Футер */

.news-post__footer {
  margin-top: 24px;
}

.news-post__back {
  padding-left: 0;
}

/* === Оглавление (Содержание) === */

.news-post__toc {
  margin: 0 0 20px;
}

.news-post__toc-inner {
  padding: 14px 16px 12px;
  border-radius: 16px;
  background: #e1ebff;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.05);
}

.news-post__toc-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #17499f;
}

.news-post__toc-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.news-post__toc-item {
  font-size: 14px;
  line-height: 1.35;
}

.news-post__toc-item--h2 {
  margin-bottom: 2px;
}

/* Пункт H2: номер + текст */

.news-post__toc-link {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  color: #050a0f;
  text-decoration: none;
}

.news-post__toc-link:hover .news-post__toc-text,
.news-post__toc-link--sub:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.news-post__toc-number {
  flex: 0 0 auto;
  min-width: 20px;
  text-align: right;
  font-weight: 600;
  color: #17499f;
}

.news-post__toc-text {
  flex: 1 1 auto;
}

/* Подпункты (H3) */

.news-post__toc-sublist {
  margin: 4px 0 2px 26px;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.news-post__toc-subitem {
  font-size: 13px;
  line-height: 1.35;
}

.news-post__toc-link--sub {
  color: #050a0f;
  text-decoration: none;
}

/* H3 без H2 (редкий случай) */
.news-post__toc-item--h3-alone {
  font-size: 13px;
}

/* чтобы заголовки не прятались под шапкой при скролле */
.news-post__body h2,
.news-post__body h3 {
  scroll-margin-top: 90px;
}

/* === Адаптив для hero/контента === */

@media (max-width: 900px) {
  .news-post__hero-section {
    padding: 16px 0 24px;
  }

  .news-post__hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .news-post__title {
    font-size: 24px;
  }

  .news-post__intro {
    font-size: 15px;
  }

  .news-post__body {
    font-size: 15px;
  }

  .news-post__toc-inner {
    padding: 12px;
  }

  .news-post__toc-title {
    font-size: 16px;
  }

  .news-post__toc-item {
    font-size: 13px;
  }

  .news-post__toc-subitem {
    font-size: 12px;
  }

  .news-post__toc-sublist {
    margin-left: 20px;
  }
}

/* Кнопка "наверх" на странице статьи */

.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: #17499f;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 50;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .scroll-top-btn {
    right: 16px;
    bottom: 16px;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}

/* === Современный блок комментариев под статьёй === */

.news-comments {
  margin-top: 48px;
}

.news-comments__form-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}

/* Левая карточка с формой */

.news-comments__form-card {
  flex: 1 1 0;
  min-width: 280px;
  padding: 32px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 10px 40px rgba(15, 23, 42, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  border-radius: 24px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.news-comments__form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #17499f 0%, #3b82f6 100%);
  border-radius: 24px 24px 0 0;
}

.news-comments__form-title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  position: relative;
  display: inline-block;
}

.news-comments__form-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ff6b17 0%, #ff8b42 100%);
  border-radius: 2px;
}

.news-comments__form-subtitle {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.75);
}

.news-comments__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.news-comments__field {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-comments__field--full {
  margin-bottom: 16px;
}

.news-comments__label {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 4px;
}

.news-comments__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #cbd5e1 0%, transparent 100%);
  margin-left: 8px;
}

.news-comments__field input,
.news-comments__field textarea {
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  padding: 16px;
  font-size: 15px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: #0f172a;
}

.news-comments__field input:focus,
.news-comments__field textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
  background: #ffffff;
  transform: translateY(-1px);
}

.news-comments__field input::placeholder,
.news-comments__field textarea::placeholder {
  color: #94a3b8;
  opacity: 0.7;
}

.news-comments__field input:hover,
.news-comments__field textarea:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.news-comments__field textarea {
  border-radius: 20px;
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

/* Рейтинг */

.news-comments__rating-block {
  margin-bottom: 20px;
  padding: 20px;
  background: rgba(241, 245, 249, 0.5);
  border-radius: 20px;
  border: 2px dashed #e2e8f0;
}

.news-comments__rating {
  display: inline-flex;
  gap: 8px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.8);
  padding: 8px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.news-comments__star {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #94a3b8;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.news-comments__star::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff6b17 0%, #ff8b42 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.news-comments__star.is-active::before {
  opacity: 1;
}

.news-comments__star span {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.news-comments__star:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(255, 107, 23, 0.3);
}

.news-comments__star.is-active {
  border-color: #ff6b17;
  box-shadow: 0 8px 20px rgba(255, 107, 23, 0.4);
  transform: scale(1.05);
}

.news-comments__star.is-active span {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Согласие и статус */

.news-comments__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0 20px;
  padding: 20px;
  background: rgba(241, 245, 249, 0.6);
  border-radius: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
  transition: all 0.25s ease;
}

.news-comments__consent:hover {
  background: rgba(241, 245, 249, 0.8);
  transform: translateX(4px);
}

.news-comments__consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.25s ease;
}

.news-comments__consent input:checked {
  background-color: #17499f;
  border-color: #17499f;
  position: relative;
}

.news-comments__consent input:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
}

.news-comments__status {
  min-height: 20px;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid #3b82f6;
  transition: all 0.3s ease;
}

.news-comments__status:empty {
  opacity: 0;
}

/* Кнопка отправки */

.news-comments__submit {
  width: 100%;
  padding: 18px 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, #17499f 0%, #3b82f6 100%);
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.news-comments__submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s ease;
}

.news-comments__submit:hover::before {
  left: 100%;
}

.news-comments__submit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 40px rgba(23, 73, 159, 0.3),
    0 0 0 4px rgba(59, 130, 246, 0.2);
}

.news-comments__submit:active {
  transform: translateY(0);
}

.news-comments__submit::after {
  content: '→';
  font-size: 18px;
  transition: transform 0.3s ease;
}

.news-comments__submit:hover::after {
  transform: translateX(4px);
}

/* Правая картинка */

.news-comments__side {
  flex: 0 0 320px;
  max-width: 360px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 20px 40px rgba(15, 23, 42, 0.12),
    0 10px 20px rgba(0, 0, 0, 0.06);
  position: relative;
}

.news-comments__side::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(23, 73, 159, 0.1) 0%,
    rgba(59, 130, 246, 0.05) 100%
  );
  z-index: 1;
}

.news-comments__side-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-comments__side:hover .news-comments__side-img {
  transform: scale(1.05);
}

/* Список комментариев */

.news-comments__title {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  position: relative;
  padding-bottom: 12px;
}

.news-comments__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #17499f 0%, #3b82f6 100%);
  border-radius: 2px;
}

.news-comments__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-comments__empty {
  font-size: 16px;
  color: rgba(15, 23, 42, 0.65);
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 24px;
  border: 2px dashed #cbd5e1;
}

/* Одна карточка комментария */

.news-comment {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #f1f5f9;
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.05);
}

.news-comment__avatar {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #e1ebff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #17499f;
}

.news-comment__content {
  flex: 1 1 auto;
}

.news-comment__header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin-bottom: 6px;
}

.news-comment__author {
  font-weight: 600;
  font-size: 15px;
  color: #3e4152;
}

.news-comment__rating {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  color: #050a0f;
}

.news-comment__rating-stars {
  display: inline-flex;
  gap: 2px;
}

.news-comment__star-icon {
  font-size: 14px;
  color: #d1d5db;
}

.news-comment__star-icon.is-on {
  color: #ff6b17;
}

.news-comment__date {
  font-size: 13px;
  color: #94a3b8;
}

.news-comment__title {
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 15px;
  color: #3e4152;
}

.news-comment__text {
  font-size: 14px;
  line-height: 1.5;
  color: #0f172a;
}

/* Адаптив для комментариев */

@media (max-width: 900px) {
  .news-comments__form-wrapper {
    flex-direction: column;
    gap: 24px;
  }

  .news-comments__side {
    max-width: none;
    flex: 1 1 auto;
    height: 200px;
  }

  .news-comments__form-card {
    padding: 24px;
  }

  .news-comments__form-title {
    font-size: 24px;
  }

  .news-comments__rating-block {
    padding: 16px;
  }

  .news-comments__star {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .news-comments__consent {
    padding: 16px;
  }

  .news-comments__submit {
    padding: 16px 24px;
  }

  .news-comments__title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .news-comments__row {
    flex-direction: column;
    gap: 12px;
  }

  .news-comments__field {
    flex: 1 1 100%;
  }

  .news-comments__form-card {
    padding: 20px;
  }

  .news-comments__form-title {
    font-size: 22px;
  }

  .news-comments__rating {
    justify-content: center;
  }

  .news-comments__star {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}

/* Аккордеон в списке компаний (страница рейтинга) */

.company-row__details {
  margin-top: 12px; /* если у тебя уже было своё значение - можешь его оставить */
}

.company-row__details.is-collapsed {
  display: none;
}

.faq-item__body.is-collapsed {
  display: none;
}

.country-rating-breadcrumbs {
  position: relative;
  margin-top: -32px;
  margin-bottom: 8px;
  font-size: 14px;
  z-index: 2;
  color: #ffffff;
}

.country-rating-breadcrumbs a {
  color: #ffffff;
  text-decoration: none;
}

.country-rating-breadcrumbs a:hover {
  text-decoration: underline;
}

.country-rating-breadcrumbs__sep {
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.8);
}

.country-rating-breadcrumbs__current {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
  .country-rating-breadcrumbs {
    margin-top: -20px;
    font-size: 13px;
  }
}


/* Cookie banner */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none; /* по умолчанию скрыт, пока JS не покажет */
  justify-content: center;
  padding: 12px 16px;
}

.cookie-banner--visible {
  display: flex;
}

.cookie-banner__inner {
  max-width: 980px;
  width: 100%;
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 12px 12px 0 0;
  padding: 12px 16px;
  box-shadow: 0 -6px 16px rgba(15, 23, 42, 0.45);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  font-size: 14px;
}

.cookie-banner__text {
  flex: 1 1 260px;
  margin: 0;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-banner__btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.cookie-banner__btn--accept {
  background: #22c55e;
  color: #0f172a;
}

.cookie-banner__btn--accept:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

.cookie-banner__btn--decline {
  background: transparent;
  color: #e5e7eb;
  border-color: #475569;
}

.cookie-banner__btn--decline:hover {
  border-color: #e5e7eb;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .cookie-banner__inner {
    border-radius: 12px 12px 0 0;
  }
}

.info-card__link {
  color: #17499f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.info-card__link:hover {
  text-decoration-thickness: 2px;
}


@media (max-width: 768px) {
  .cookie-banner__inner {
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
}










/* Список стран в футере: по умолчанию две колонки */
.wm-footer__gridlist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* На мобильных — один столбик */
@media (max-width: 768px) {
  .wm-footer__gridlist {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }
}


/* Home: rating methodology block */
.section-rating-methodology {
  padding: 56px 0;
}

.rating-methodology__head {
  margin-bottom: 18px;
}

.rating-methodology__title {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.rating-methodology__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  max-width: 980px;
}

.rating-methodology__card {
  margin-top: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.rating-methodology__card--accent {
  background: linear-gradient(120deg, #f0f7ff 0%, #e6f0ff 100%);
  border-left: 4px solid #17499f;
}

.rating-methodology__card--formula {
  border-left: 4px solid #17499f;
}

.rating-methodology__subtitle {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.rating-methodology__text {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

.rating-methodology__list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 12px;
}

.rating-methodology__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.rating-methodology__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #17499f;
  margin-top: 6px;
  flex: 0 0 10px;
}

.rating-methodology__item-title {
  font-weight: 700;
  color: #111;
  margin-bottom: 2px;
}

.rating-methodology__pct {
  display: inline-block;
  min-width: 44px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(23, 73, 159, 0.12);
  color: #17499f;
  font-weight: 800;
  margin-right: 8px;
}

.rating-methodology__item-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #444;
}

.rating-methodology__grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rating-methodology__mini {
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 14px 14px 12px;
}

.rating-methodology__mini--reliability { border-top: 4px solid #2ecc71; }
.rating-methodology__mini--digital     { border-top: 4px solid #3498db; }
.rating-methodology__mini--reputation  { border-top: 4px solid #9b59b6; }
.rating-methodology__mini--extras      { border-top: 4px solid #e74c3c; }

.rating-methodology__mini-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
}

.rating-methodology__coef {
  font-weight: 800;
  color: #17499f;
}

.rating-methodology__mini-list {
  margin: 0;
  padding-left: 18px;
  color: #444;
  font-size: 14px;
  line-height: 1.55;
}

.rating-methodology__code {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(23, 73, 159, 0.08);
  border: 1px solid rgba(23, 73, 159, 0.18);
  overflow-x: auto;
  margin: 10px 0 12px;
}

.rating-methodology__tables {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rating-methodology__table {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
}

.rating-methodology__table-img {
  display: block;
  width: 100%;
  height: auto;
}

.rating-methodology__note {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

@media (max-width: 900px) {
  .rating-methodology__grid,
  .rating-methodology__tables {
    grid-template-columns: 1fr;
  }
}

img[data-zoomable] { cursor: zoom-in; }

.img-zoom {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.82);
  display: none;              /* ВАЖНО */
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.img-zoom.is-open {            /* ВАЖНО */
  display: flex;
}


.img-zoom__img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.img-zoom__close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(17,17,17,0.35);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.img-zoom__close:hover {
  background: rgba(17,17,17,0.55);
}

/* Home: top companies (rich description) */
.rating-methodology__toplist {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.topco {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border-left: 4px solid #17499f;
}

.topco__name {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  color: #111;
}

.topco__body {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

/* RichText внутри body */
.topco__body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 10px 0;
}
.topco__body h3,
.topco__body h4 {
  margin: 12px 0 8px;
}
.topco__body ul,
.topco__body ol {
  margin: 8px 0 8px 18px;
}

/* ========================================================================
   Home: rating tables (json-driven) — styling aligned with site UI
   ======================================================================== */

.home-rating-block {
  margin-top: 18px;
}

.home-rating-block__title {
  margin: 0 0 12px 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.15;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  color: #111827;
}

/* Desktop table wrapper */
.rating-table__wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid rgba(15, 35, 95, 0.12);
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 35, 95, 0.10);
}

/* Table base */
.rating-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -0.03em;
  min-width: 980px;
}

.rating-table--summary {
  min-width: 760px;
}

.rating-table th,
.rating-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15, 35, 95, 0.08);
  vertical-align: top;
  background: #fff;
}

/* Header row */
.rating-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f5f8ff;
  border-bottom: 1px solid rgba(15, 35, 95, 0.12);
  font-weight: 700;
  letter-spacing: -0.05em;
}

/* Group header like “Надежность / Репутация ...” */
.rating-table__group {
  text-align: center;
  background: #17499F;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

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

/* Sticky first column */
.rating-table__th--sticky-left,
.rating-table__td--sticky-left {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #fff;
  border-right: 1px solid rgba(15, 35, 95, 0.08);
  white-space: nowrap;
}

.rating-table__td--num,
.rating-table__th--num {
  width: 76px;
  text-align: center;
  white-space: nowrap;
  font-weight: 700;
}

.rating-table__td--score,
.rating-table__th--score {
  width: 140px;
  text-align: center;
  white-space: nowrap;
  font-weight: 800;
}

/* Links (keep your site feel) */
.rating-table a {
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rating-table a:hover {
  color: #17499F;
}

/* Chips (да/нет) in your blue UI tone */
.rating-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.05em;
  white-space: nowrap;
  border: 1px solid rgba(15, 35, 95, 0.14);
}

.rating-chip--yes {
  color: #17499F;
  background: rgba(23, 73, 159, 0.10);
  border-color: rgba(23, 73, 159, 0.22);
}

.rating-chip--no {
  color: rgba(17, 24, 39, 0.78);
  background: rgba(17, 24, 39, 0.04);
  border-color: rgba(17, 24, 39, 0.10);
}

/* === Mobile cards === */
.rating-cards {
  display: none;
  margin-top: 12px;
  gap: 12px;
}

.rating-card {
  border: 1px solid rgba(15, 35, 95, 0.12);
  border-radius: 20px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 10px 25px rgba(15, 35, 95, 0.08);
}

.rating-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.rating-card__company {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: #111827;
}

.rating-card__company:hover {
  color: #17499F;
}

.rating-card__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.05em;
  border: 1px solid rgba(23, 73, 159, 0.18);
  background: rgba(23, 73, 159, 0.06);
  color: rgba(17, 24, 39, 0.88);
  white-space: nowrap;
}

.rating-card__grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.rating-kv__k {
  display: block;
  font-size: 12px;
  letter-spacing: -0.04em;
  opacity: 0.75;
  margin-bottom: 4px;
}

.rating-kv__v {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.rating-kv--span2 {
  grid-column: 1 / -1;
}

/* summary card specifics */
.rating-card--summary .rating-card__top {
  align-items: center;
}

.rating-card__rank {
  font-weight: 900;
  letter-spacing: -0.06em;
  opacity: 0.8;
  margin-bottom: 4px;
}

.rating-card__score {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.06em;
  color: #17499F;
  white-space: nowrap;
}

.rating-card__text {
  margin-top: 10px;
  opacity: 0.92;
  letter-spacing: -0.03em;
}

@media (max-width: 900px) {
  .rating-table__wrap {
    display: none;
  }

  .rating-cards {
    display: grid;
  }
}

/* Rating methodology: sublists + formula block */
.rating-methodology__hr {
  border: 0;
  height: 1px;
  background: rgba(15, 35, 95, 0.10);
  margin: 18px 0;
}

.rating-methodology__sublist {
  margin: 8px 0 0;
  padding-left: 18px;
}

.rating-methodology__sublist li {
  margin: 6px 0;
}

.rating-methodology__formula {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f5f8ff;
  border: 1px solid rgba(23, 73, 159, 0.18);
  box-shadow: 0 10px 25px rgba(15, 35, 95, 0.08);
  overflow-x: auto;
}

.rating-methodology__formula code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.rating-scroll-target {
  scroll-margin-top: 140px;
}

/* Полное имя компании в таблице — просто текст */
.rating-table__company {
  font-weight: 800;
  letter-spacing: -0.05em;
}

/* В кратких карточках ссылка должна выглядеть как ссылка, в полных — нет */
.rating-card__company {
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #111827;
  text-decoration: none;
}

.rating-card__company--link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rating-card__company--link:hover {
  color: #17499F;
}

.rating-scroll-target {
  scroll-margin-top: 140px;
}

.company-video-reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.company-video-reviews__item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.company-video-reviews__item iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

@media (max-width: 1024px) {
  .company-video-reviews {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .company-video-reviews {
    grid-template-columns: 1fr;
  }
}