/* ============================================================
   VPSway — дизайн-система. Лёгкий CSS без фреймворков.
   Палитра: синий (доверие/технологии). Зелёный — только индикаторы
   (точки, иконки, графики), текст всегда тёмный/синий. System fonts.
   ============================================================ */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #bfdbfe;
  --primary-fade: #eff6ff;
  --navy: #0f1d3a;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --border: #e3e9f2;
  --bg: #f4f7fc;
  --card: #ffffff;
  --up: #16a34a;
  --down: #dc2626;
  --warn: #d97706;
  --unknown: #94a3b8;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(23, 43, 92, .05), 0 2px 6px rgba(23, 43, 92, .06);
  --shadow-md: 0 8px 26px rgba(23, 43, 92, .12);
  /* Единая синяя аура при наведении на карточки (каталог, рейтинг, подборки, топ на главной):
     тонкое кольцо + мягкое свечение + глубокая тень */
  --glow-blue: 0 0 0 1px rgba(37, 99, 235, .16), 0 0 26px rgba(37, 99, 235, .22), 0 14px 32px rgba(29, 78, 216, .14);
  --glow-border: rgba(37, 99, 235, .38);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
}
body.home { background: #fff; }
img { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
p { margin: .4em 0 .9em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: #f1f5f9; padding: 1px 5px; border-radius: 4px; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.inline-form { display: inline; }

/* ---------- Шапка: белая полоса во всю ширину ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e4eaf5;
}
.header-inner {
  display: flex; align-items: center; gap: 16px; height: 72px;
  max-width: 1180px; margin: 0 auto; padding: 0 20px;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--ink); }
.logo-img { display: block; height: 54px; width: auto; }
.logo-tag {
  font-size: 11px; line-height: 1.3; color: var(--muted);
  max-width: 130px; padding-left: 12px; border-left: 1px solid var(--border);
}
/* У авторизованных в шапке на 1-2 кнопки больше — слоган убираем, иначе
   строка меню не влезает в контейнер (он ограничен 1180px на любой ширине экрана) */
.site-header.authed .logo-tag { display: none; }
.nav { display: flex; gap: 2px; flex: 1; flex-wrap: nowrap; overflow-x: auto; justify-content: center; min-width: 0; scrollbar-width: none; -ms-overflow-style: none; }
.nav::-webkit-scrollbar { display: none; } /* без «ползунка» под меню при переполнении */
.nav-link {
  padding: 8px 13px; border-radius: 9px;
  color: var(--ink); font-weight: 600; font-size: 14.5px; white-space: nowrap;
}
.nav-link:hover { background: #f2f6fd; color: var(--primary); }
.nav-link.active { color: var(--primary); background: none; font-weight: 600; }
.header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.header-search {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; border: none;
  background: transparent; color: var(--ink); cursor: pointer;
}
.header-search:hover { background: #f2f6fd; color: var(--primary); }
.header-search svg { display: block; }
.header-actions .btn-sm { white-space: nowrap; }
.btn-name { display: inline-block; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
/* На средних ширинах шапка уплотняется: без слогана и с меньшими отступами —
   три кнопки авторизованного (Админка, имя, Выход) помещаются в одну строку */
@media (max-width: 1260px) {
  .header-inner { gap: 12px; }
  .logo-tag { display: none; }
  .nav-link { padding: 8px 10px; font-size: 14px; }
  .header-actions { gap: 7px; }}
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; font-size: 20px; padding: 2px 10px; cursor: pointer; }
.mobile-menu { display: none; } /* выпадающее меню видно только на мобильных */
.nav-toggle .nt-close { display: none; }
.site-header.nav-open .nav-toggle .nt-burger { display: none; }
.site-header.nav-open .nav-toggle .nt-close { display: block; }

.page { min-height: calc(100vh - 260px); padding-bottom: 48px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 10px; border: 1px solid transparent;
  padding: 10px 18px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .15s ease; text-align: center; line-height: 1.2;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(37, 99, 235, .25); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--primary-dark); border-color: #cfdaf0; }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-fade); }
.btn-ghost { background: transparent; color: var(--ink); font-weight: 600; }
.btn-ghost:hover { color: var(--ink); background: #f1f5f9; }
.btn-danger { background: #fff; color: var(--down); border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; border-color: var(--down); }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---------- Главная: hero (во всю ширину, как на макете) ---------- */
.hero {
  position: relative;
  /* Фон-баннер с серверами: чётко по центру, растянут по ширине,
     снизу — плавное растворение в цвет страницы */
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0) 64%, #f7faff 96%),
    url('/img/background-v6.jpg') center / 100% auto no-repeat,
    linear-gradient(180deg, #d7e4fb 0%, #e8f0fd 55%, #f7faff 100%);
  /* без overflow:hidden: панель живого поиска должна выходить за границы hero */
}
.hero-box {
  padding: 46px 0 40px;
  display: grid; grid-template-columns: 1.06fr .94fr; gap: 34px;
  position: relative;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.hero-title-lg {
  font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; letter-spacing: -.025em;
  color: var(--navy); margin: 0 0 14px; line-height: 1.12;
}
.hero-sub { font-size: 17px; color: #3d5178; max-width: 520px; margin-bottom: 24px; }
.hero-search { display: flex; width: 100%; border-radius: 13px; box-shadow: var(--shadow-md); overflow: hidden; }
.hero-search:focus-within { box-shadow: 0 0 0 3px rgba(37, 99, 235, .16), var(--shadow-md); }
.hero-search input {
  flex: 1; border: none; border-radius: 13px 0 0 13px; padding: 14px 18px; font-size: 15px; min-width: 0;
}
.hero-search input:focus { outline: none; }
.hero-search .btn { border-radius: 0; padding: 0 26px; flex-shrink: 0; }
.hero-checks { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 22px; }
.hero-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.hero-check .hc-dot { color: var(--up); font-size: 15px; }
.hero-media { position: relative; min-height: 300px; }
.hero-statcard {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-md);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; width: 196px; z-index: 2;
}
.hsc-item { display: flex; align-items: center; gap: 12px; }
.hsc-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 21px;
}
.hsc-icon.green { background: #e7f8ee; color: var(--up); }
.hsc-icon.yellow { background: #fff7e0; color: #f0b429; }
.hsc-icon.blue { background: var(--primary-fade); color: var(--primary); }
.hsc-num { display: block; font-size: 16.5px; font-weight: 600; color: var(--ink); line-height: 1.15; }
.hsc-label { display: block; font-size: 12px; color: var(--muted); }

/* ---------- Главная: панель фильтров ---------- */
.filterbar {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-md); padding: 18px 24px 20px; margin-top: 26px;
}
.filterbar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.filterbar-head b { display: flex; align-items: center; gap: 8px; font-size: 16.5px; color: var(--navy); }
.filterbar-head .fb-icon { color: var(--primary); font-size: 17px; }
.filterbar-fields { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.fb-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fb-label { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
/* Единая высота всех контролов фильтров — инпуты, селекты и кнопка идут чётко по одной линии */
.filterbar-fields select, .filterbar-fields input { height: 42px; padding-top: 0; padding-bottom: 0; }
.fb-range { display: flex; gap: 6px; align-items: center; }
.fb-range input { width: 76px; padding-left: 9px; padding-right: 9px; }
.fb-range .fb-unit { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.fb-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); cursor: pointer; height: 42px; padding: 0; white-space: nowrap; }
.fb-check input { accent-color: var(--primary); width: 16px; height: 16px; }
.fb-apply { margin-left: auto; height: 42px; padding-top: 0; padding-bottom: 0; }

/* ---------- Секции ---------- */
.section { padding: 36px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.section-head h2 { font-size: 26px; font-weight: 700; letter-spacing: -.015em; color: var(--navy); margin: 0; }
.section-head p { margin: 0; color: var(--muted); }
.section-link { font-weight: 600; white-space: nowrap; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.section-block { margin: 26px 0; }

/* ---------- Главная: топ провайдеров ---------- */
.top-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.top-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 10px;
  transition: all .15s ease;
}
.top-card:hover { border-color: var(--glow-border); box-shadow: var(--glow-blue); transform: translateY(-2px); }
.tc-head { display: flex; align-items: center; gap: 12px; }
/* Сноска «недостаточно данных» у предварительной оценки в топ-карточках */
.tc-na { color: var(--warn); font-weight: 700; margin-left: 1px; }
.top-note { font-size: 12.5px; color: var(--muted); margin: 10px 2px 0; }
.tc-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px; font-weight: 500; }
.tc-meta .star { color: #f0b429; font-size: 14px; }
.tc-meta .dot-up { color: var(--up); font-size: 12px; }
.tc-meta .m-up { color: var(--ink-soft); }
.tc-desc { margin: 0; color: var(--muted); font-size: 13.5px; flex: 1; min-height: 40px; }
.tc-price { font-size: 13px; color: var(--muted); }
.tc-price b { font-size: 21px; font-weight: 400; color: var(--ink); letter-spacing: -.01em; }
.tc-price .cur { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.tc-actions { display: flex; gap: 8px; }
.tc-actions .btn { flex: 1; }

/* ---------- Главная: информационный блок (3 колонки) ---------- */
.band-grid { display: grid; grid-template-columns: 1fr 1.15fr 1.15fr; gap: 16px; align-items: stretch; }
.band-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow); padding: 20px 22px; display: flex; flex-direction: column;
}
.band-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin: 0 0 14px; }
.band-card h3 .bc-sub { float: right; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.band-card.band-stats {
  background: linear-gradient(165deg, #eef4fe 0%, #e2ecfc 100%);
  border-color: #d6e3f8;
}
.why-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.why-item { display: flex; align-items: center; gap: 13px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.why-icon {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-fade), #eef4ff);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .14);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.why-icon svg { color: var(--primary); }
.stat-big { font-size: 38px; font-weight: 700; color: var(--navy); letter-spacing: -.02em; line-height: 1; }
.stat-big-label { font-size: 12.5px; color: var(--muted); }
.chart-mini { position: relative; height: 110px; margin: 10px 0 6px; }
.stat-triple { display: flex; gap: 26px; margin-top: 10px; }
.stat-triple b { display: block; font-size: 19px; font-weight: 800; color: var(--ink); }
.stat-triple span { font-size: 11.5px; color: var(--muted); }
.mon-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mon-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.mon-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--up); flex-shrink: 0; }
.mon-name { font-weight: 600; color: var(--ink); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-uptime { font-weight: 700; color: var(--ink); }
.mon-spark { position: relative; width: 96px; height: 30px; flex-shrink: 0; }
.band-link { margin-top: auto; }

/* ---------- Главная: блог + подписка ---------- */
.home-bottom { display: grid; grid-template-columns: 2.3fr 1fr; gap: 16px; align-items: stretch; }
.blog-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bcard {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: all .15s ease; color: var(--ink);
}
.bcard:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--ink); }
.bcard-img { width: 100%; height: 118px; object-fit: cover; display: block; }
.bcard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bcard-title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.bcard-date { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.newsletter {
  background: linear-gradient(135deg, #dfeafc 0%, #cbdffb 100%);
  border-radius: 16px; padding: 22px; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.nl-title { font-size: 19px; font-weight: 700; color: var(--navy); margin: 0 0 6px; }
/* Иконка блока подписки: та же белая рамка-плашка, вместо символа ✉ — картинка */
.nl-icon {
  width: 46px; height: 46px; border-radius: 13px; background: #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 12px;
}
.nl-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nl-text { font-size: 13.5px; color: #3d5178; margin: 0 0 14px; }
.nl-form { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.nl-form input { border-radius: 11px; border: 1px solid #c5d6f6; padding: 12px 14px; font-size: 14px; }
.nl-form .btn { width: 100%; }
.nl-msg { font-size: 12.5px; font-weight: 600; color: var(--primary-dark); }
.nl-plane { position: absolute; right: 18px; top: 18px; font-size: 30px; opacity: .55; }

/* ---------- Обратная связь (/feedback) ---------- */
.fb-page { max-width: 720px; }
.fb-form {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 24px; margin-top: 14px;
}
.fb-fields { display: flex; flex-direction: column; gap: 14px; }
.fb-field-l { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.fb-field-l .req { color: var(--down); }
.fb-field-l input, .fb-field-l textarea {
  border: 1px solid var(--border); border-radius: 11px; padding: 11px 14px;
  font-size: 14.5px; font-weight: 400; color: var(--ink); font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease; resize: vertical;
}
.fb-field-l input:focus, .fb-field-l textarea:focus {
  outline: none; border-color: rgba(37, 99, 235, .45);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.fb-err { color: var(--down); font-size: 12.5px; font-weight: 500; }
.fb-actions { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.fb-success {
  display: flex; gap: 14px; align-items: flex-start;
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius);
  padding: 18px 20px; margin-top: 14px;
}
.fb-success-ic {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: var(--up); color: #fff; display: flex; align-items: center; justify-content: center;
}
.fb-success b { color: #14532d; font-size: 16px; }
.fb-success p { margin: 4px 0 0; }
.fb-aside-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px; margin-top: 16px;
}
.fb-aside-card h3 { margin: 0 0 10px; font-size: 16px; color: var(--navy); }
.fb-aside-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--ink-soft); }

/* ---------- Карточки ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.provider-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.provider-card { display: flex; flex-direction: column; gap: 10px; }
.pc-head { display: flex; gap: 12px; align-items: flex-start; }
.avatar {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; color: #fff;
}
.avatar-xl { width: 72px; height: 72px; font-size: 32px; border-radius: 16px; }
.avatar-1 { background: #2563eb; } .avatar-2 { background: #1e40af; } .avatar-3 { background: #0891b2; }
.avatar-4 { background: #4f46e5; } .avatar-5 { background: #0369a1; }
/* Широкоформатные логотипы провайдеров (прозрачные PNG, единая высота) */
.plogo-link { display: inline-flex; align-items: center; max-width: 100%; }
/* Логотип провайдера: любой файл (квадратный, широкий баннер) вписывается
   в отведённый слот без искажений и без вылезания за колонку. */
.plogo { height: 32px; width: auto; max-width: 100%; display: block; object-fit: contain; object-position: left center; }
.pc-head .plogo { margin-top: 2px; }
.pc-title { flex: 1; min-width: 0; }
.pc-name { font-weight: 600; font-size: 16.5px; color: var(--ink); }
.pc-name:hover { color: var(--primary-dark); }
.pc-desc { margin: 0; color: var(--muted); font-size: 13.5px; flex: 1; }
.pm-value { font-weight: 700; font-size: 14.5px; }
.pm-uptime { color: var(--ink); }
.card-actions { display: flex; gap: 8px; }

/* ---------- Чипы, бейджи ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: #f1f5f9; border-radius: 999px; padding: 3px 10px;
  font-size: 12px; color: var(--ink-soft); border: 1px solid transparent;
}
.chip-muted { background: transparent; border-color: var(--border); color: var(--muted); }
.chip-ad { background: #fef9c3; color: #854d0e; font-weight: 600; }
.chip-na { background: #f1f5f9; color: var(--muted); font-weight: 600; }
.chip-trial { background: var(--primary-fade); color: var(--primary-dark); font-weight: 600; }
.chip-free { background: #dbeafe; color: #1e40af; font-weight: 600; }
.chip-active { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; }
.chip-x { background: none; border: none; cursor: pointer; color: inherit; font-size: 14px; padding: 0 2px; }

.status-dot { font-size: 12px; }
.status-dot.up { color: var(--up); } .status-dot.down { color: var(--down); }
.status-dot.warn { color: var(--warn); } .status-dot.unknown { color: var(--unknown); }
.status-pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.status-pill.up { background: #e7f8ee; color: var(--ink-soft); }
.status-pill.down { background: #fef2f2; color: var(--down); }
.status-pill.unknown { background: #f1f5f9; color: var(--muted); }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { padding: 16px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 13px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary-dark); }

/* ---------- Заголовки страниц ---------- */
.page-title { font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; letter-spacing: -.02em; margin: 18px 0 10px; color: var(--navy); }
.page-intro { color: var(--ink-soft); max-width: 780px; margin-top: 0; }

/* ---------- Каталог ---------- */
.catalog-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 14px; }
.catalog-main { min-width: 0; }
.filters {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; position: sticky; top: 84px; box-shadow: var(--shadow);
  max-height: calc(100vh - 104px); overflow-y: auto;
}
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.filters-head b { font-size: 15px; }
.filters-reset { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 13px; font-weight: 600; padding: 0; }
.filter-group { border-top: 1px solid var(--border); padding: 12px 0; }
.fg-title { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 8px; }
.filter-row { display: flex; gap: 8px; margin-bottom: 8px; }
.filter-row:last-child { margin-bottom: 0; }
.chk-col { display: flex; flex-direction: column; gap: 6px; }
.chk { display: flex; gap: 8px; align-items: center; font-size: 13.5px; cursor: pointer; }
.chk input { accent-color: var(--primary); width: 16px; height: 16px; }

.results-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 4px 0 14px; flex-wrap: wrap; }
.results-count b { color: var(--primary-dark); }
.sort-box { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
select, input[type="text"], input[type="number"], input[type="email"], input[type="password"], input[type="url"], input[type="date"], textarea {
  font: inherit; font-size: 14px;
  border: 1px solid var(--border); border-radius: 9px;
  padding: 8px 10px; background: #fff; color: var(--ink);
  max-width: 100%;
}
select:focus, input:focus, textarea:focus { outline: 2px solid var(--primary-light); border-color: var(--primary); }
.filter-row input { width: 100%; min-width: 0; }
.filter-row select { width: 100%; min-width: 0; }

/* Результаты категории: на планшетах и телефонах (<900px) — горизонтальная
   лента со свайпом; на десктопе (≥900px, см. media-блок у .is-draggable) —
   обычная сетка, страница скроллится вертикально. */
.plan-grid {
  display: flex; overflow-x: auto; gap: 16px; padding: 2px 2px 14px;
  scroll-snap-type: x mandatory; scroll-padding-left: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: #c3d2ec transparent;
}
.plan-grid::-webkit-scrollbar { height: 8px; }
.plan-grid::-webkit-scrollbar-track { background: transparent; }
.plan-grid::-webkit-scrollbar-thumb { background: #c3d2ec; border-radius: 4px; }
.plan-card { flex: 0 0 min(88%, 360px); scroll-snap-align: start; }
.plan-grid .empty-state { flex: 1 1 100%; margin: 0; }
.plan-card { display: flex; flex-direction: column; gap: 10px; }
.plan-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.plan-name { font-weight: 700; font-size: 16px; color: var(--ink); }
.plan-provider { display: block; font-size: 12.5px; color: var(--muted); }
.compare-check { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.compare-check input { accent-color: var(--primary); width: 16px; height: 16px; }

/* Плавающая панель сравнения: появляется, когда отмечено более 2 тарифов.
   Тёмная «пилюля» в цвете шапки, кнопка — фирменная .btn-primary */
#compare-bar {
  position: fixed; bottom: 18px; left: 50%; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  background: var(--navy); color: #fff;
  padding: 10px 12px 10px 18px; border-radius: 999px;
  box-shadow: 0 12px 32px rgba(2, 6, 23, .35), 0 0 0 1px rgba(255, 255, 255, .08) inset;
  font-size: 14px;
  opacity: 0; visibility: hidden; transform: translate(-50%, 16px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  max-width: calc(100vw - 32px);
}
#compare-bar.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
#compare-bar .cmp-count { white-space: nowrap; font-weight: 600; }
#compare-bar .cmp-count b { color: #fde68a; }
#compare-bar .btn { white-space: nowrap; }
#compare-bar .btn-ghost { color: #cbd5e1; }
#compare-bar .btn-ghost:hover { color: #fff; }
#compare-bar .cmp-go { box-shadow: 0 4px 14px rgba(37, 99, 235, .45); }
.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pp-value { font-size: 22px; font-weight: 800; color: var(--navy); }
.pp-period { color: var(--muted); font-size: 13px; }
.pp-renewal { font-size: 12px; color: var(--warn); background: #fffbeb; border-radius: 6px; padding: 2px 8px; }
/* Вторая цена (помесячная) и промо-бейдж в карточке тарифа */
.pp-alt { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.pp-promo { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--primary); border-radius: 7px; padding: 2px 9px; }
.plan-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec { background: #f6f9fe; border: 1px solid var(--border); border-radius: 7px; padding: 3px 9px; font-size: 12.5px; color: var(--ink-soft); }
.spec b { color: var(--ink); }
.plan-metrics { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.plan-metrics b { color: var(--ink); }
.plan-dc { margin-left: auto; }
.empty-state { background: #fff; border: 1px dashed var(--border); border-radius: var(--radius); padding: 34px; text-align: center; color: var(--muted); grid-column: 1 / -1; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

/* ---------- Пагинация ---------- */
.pagination { display: flex; gap: 6px; margin: 22px 0; flex-wrap: wrap; }
.page-link { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 7px 12px; font-size: 13.5px; color: var(--ink-soft); font-weight: 500; }
.page-link:hover { border-color: var(--primary); color: var(--primary-dark); }
.page-link.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.col-main { min-width: 0; }
.col-side { min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 16px 0; }
.kpi-row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.kpi-label { display: block; font-size: 12px; color: var(--muted); }
.kpi-value { font-size: 21px; font-weight: 700; color: var(--ink); }
.kpi-value.bad { color: var(--down); } .kpi-value.warn { color: var(--warn); }
.kpi-sub { display: block; font-size: 11.5px; color: var(--muted); }
.tech-chips .chip { font-weight: 500; }
.pros ul, .cons ul { margin: 0; padding-left: 20px; color: var(--ink-soft); }
.pros li::marker { content: '✓ '; color: var(--up); }
.cons li::marker { content: '✗ '; color: var(--down); }

.count-badge { background: #f1f5f9; border-radius: 999px; padding: 2px 10px; font-size: 13px; color: var(--muted); font-weight: 600; vertical-align: middle; }
.plan-table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table thead th { background: #f6f9fe; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #f8fafd; }
.table em { color: var(--muted); font-style: normal; font-size: 11px; }
.table-compact th, .table-compact td { padding: 6px 10px; }
.target-line { margin: 8px 0; font-size: 13.5px; }

.chart-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin: 14px 0; }
.uptime-days { display: flex; gap: 3px; margin: 12px 0; }
.uptime-days-lg .ud-bar { height: 26px; }
.ud-bar { flex: 1; height: 18px; border-radius: 3px; background: #e2e8f0; }
.ud-bar.perfect { background: var(--up); }
.ud-bar.ok { background: #4ade80; }
.ud-bar.warn { background: var(--warn); }
.ud-bar.bad { background: var(--down); }

.side-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.side-box h3 { font-size: 15px; margin-bottom: 10px; }
.fact-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.fact-row:last-child { border-bottom: none; }
.fact-row span { color: var(--muted); }
.fact-row b { text-align: right; }
.delta.up { color: var(--ink-soft); } .delta.down { color: var(--down); }

/* ---------- Отзывы ---------- */
.review-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.review-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.review-score { padding: 2px 10px; border-radius: 8px; color: #fff; font-weight: 700; font-size: 13px; }
.rs-excellent { background: #16a34a; } .rs-good { background: #0d9488; } .rs-average { background: #d97706; } .rs-poor { background: #dc2626; } .rs-na { background: #94a3b8; }
.review-provider { font-weight: 600; }
.review-title { display: block; margin-top: 6px; }
.review-actions { margin-top: 10px; display: flex; gap: 10px; align-items: center; }
.report-btn { background: none; border: none; color: var(--muted); font-size: 12.5px; cursor: pointer; padding: 0; }
.report-btn:hover { color: var(--down); }
.form-msg-inline { font-size: 12.5px; color: var(--primary-dark); }
.reviews-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.review-form { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; }
.review-form label, .admin-form label, .auth-card label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-soft); }
.form-msg { font-size: 13.5px; color: var(--primary-dark); min-height: 18px; }

/* ---------- Сравнение ---------- */
.compare-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.compare-table { min-width: 720px; }
.compare-table .row-label { width: 200px; color: var(--muted); font-weight: 500; background: #f6f9fe; }
.compare-table td.best { background: var(--primary-fade); color: var(--primary-dark); font-weight: 700; }
.cmp-plan { display: flex; flex-direction: column; gap: 4px; min-width: 160px; position: relative; }
.cmp-name { font-weight: 700; font-size: 15px; }
.cmp-remove { position: absolute; top: 0; right: 0; background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.cmp-remove:hover { color: var(--down); }
.compare-wrap { border-radius: var(--radius); }

/* Карточка поста: обложка + контент, hover-подъём, зум картинки */
.bposts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 6px; }
.bpost {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow); text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.bpost:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfdaf0;
}
.bpost-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eef2f9; }
.bpost-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s ease;
}
.bpost:hover .bpost-img { transform: scale(1.05); }
/* мягкая виньетка снизу для читаемости плашки */
.bpost-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 29, 58, 0) 55%, rgba(15, 29, 58, .38) 100%);
  pointer-events: none;
}
.bpost-tag {
  display: inline-block; align-self: flex-start;
  background: var(--primary-fade); color: var(--primary-dark);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  padding: 3px 10px; border-radius: 999px;
}
.bpost-tag-float {
  position: absolute; left: 12px; bottom: 10px; z-index: 1; align-self: auto;
  background: rgba(255, 255, 255, .94); color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(15, 29, 58, .18);
}
.bpost-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.bpost-title {
  font-size: 17.5px; font-weight: 750; line-height: 1.32; color: var(--ink);
  letter-spacing: -.01em;
  transition: color .15s ease;
}
.bpost:hover .bpost-title { color: var(--primary); }
.bpost-excerpt {
  color: var(--muted); font-size: 14px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bpost-foot {
  margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.bpost-meta { color: var(--muted); font-size: 12.5px; }
.bpost-more { color: var(--primary); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.bpost-arrow { display: inline-block; transition: transform .2s ease; }
.bpost:hover .bpost-arrow { transform: translateX(4px); }

/* Первая (свежая) статья — крупная, горизонтальная */
.bpost-featured { grid-column: 1 / -1; flex-direction: row; }
.bpost-featured .bpost-media { aspect-ratio: auto; flex: 0 0 52%; min-height: 300px; }
.bpost-featured .bpost-body { padding: 26px 30px; gap: 10px; justify-content: center; }
.bpost-featured .bpost-title { font-size: clamp(20px, 2.6vw, 27px); }
.bpost-featured .bpost-excerpt { font-size: 15px; -webkit-line-clamp: 3; }
.bpost-featured .bpost-foot { margin-top: 14px; padding-top: 14px; }

.article-page { max-width: 820px; }
.article { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 34px; box-shadow: var(--shadow); margin-top: 16px; }
.article h2 { margin-top: 24px; font-size: 21px; }
.article p { color: var(--ink-soft); }
.article-meta { margin: -6px 0 14px; }
.article-cover { width: 100%; height: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 12px; margin: 0 0 20px; display: block; }

/* ---------- Авторизация/ошибка ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 44px 20px; }
.auth-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px; }
.auth-card h1 { font-size: 24px; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; }
.form-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; border-radius: 8px; padding: 10px 14px; font-size: 13.5px; }
.form-ok { background: var(--primary-fade); color: var(--primary-dark); border: 1px solid var(--primary-light); border-radius: 8px; padding: 10px 14px; font-size: 13.5px; }
.error-card { text-align: center; padding: 44px 30px; }
.error-code { font-size: 56px; color: var(--primary); margin: 0; }

/* ---------- Футер ---------- */
.site-footer { background: #0e1b3e; color: #b6c2dc; margin-top: 44px; }
.footer-logo { display: block; margin-bottom: 10px; height: 32px; width: auto; }
.footer-top {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 20px; flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.footer-tagline { font-size: 12.5px; color: #8fa0c2; }
.footer-links { display: flex; gap: 4px 26px; flex-wrap: wrap; }
.footer-links a { color: #b6c2dc; font-size: 13.5px; font-weight: 500; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; }
.soc-link {
  width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .08);
  display: flex; align-items: center; justify-content: center; color: #d5def0; font-size: 16px;
  transition: background .15s ease;
}
.soc-link:hover { background: var(--primary); color: #fff; }
.footer-bottom { border-top: 1px solid #1c2c55; display: flex; justify-content: space-between; gap: 10px; padding: 14px 20px; font-size: 12.5px; color: #8fa0c2; flex-wrap: wrap; }

/* ---------- Избранное ---------- */
.fav-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); }

/* ---------- Админка ---------- */
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-nav { background: #0e1b3e; color: #b6c2dc; padding: 18px 14px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-logo img { height: 28px; width: auto; }
.admin-badge { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #64748b; }
.admin-nav nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-nav nav a { color: #b6c2dc; padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.admin-nav nav a:hover { background: #1c2c55; color: #fff; }
.admin-nav nav a.active { background: var(--primary); color: #fff; }
/* Бейдж непрочитанных сообщений рядом с пунктом меню админки */
.nav-badge {
  display: inline-block; min-width: 19px; text-align: center;
  background: var(--down); color: #fff; border-radius: 999px;
  font-size: 11px; font-weight: 800; padding: 1px 6px; margin-left: 2px;
}
.admin-footer { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.admin-footer a { color: #8fa0c2; }
.admin-logout { background: none; border: 1px solid #2c3d68; color: #b6c2dc; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.admin-main { padding: 26px 30px; background: var(--bg); min-width: 0; }
.admin-main h1 { font-size: 24px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0 26px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat-card b { display: block; font-size: 24px; color: var(--ink); }
.stat-card span { font-size: 12.5px; color: var(--muted); }
.stat-card.warn b { color: var(--warn); }
.stat-card.ok b { color: var(--up); }
/* Импорт тарифов из Excel */
.imp-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.imp-help { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); font-size: 13.5px; }
.imp-help h2 { font-size: 15px; margin: 0 0 10px; }
.imp-help ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; }
.imp-help .hint { margin-top: 10px; }
.imp-form .imp-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.imp-err-text { color: var(--warn); }
@media (max-width: 860px) { .imp-grid { grid-template-columns: 1fr; } }
.admin-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.admin-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.admin-form fieldset { border: 1px dashed var(--border); border-radius: 8px; padding: 12px; margin: 0; }
.admin-form legend { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 0 6px; }
.admin-form label.wide { grid-column: 1 / -1; }
.admin-form .cb-group { display: flex; flex-direction: column; gap: 6px; }
.admin-form .cb-group-title { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.admin-form .cb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 18px; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; background: #f8fafc; }
.admin-form .cb-grid .chk { flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; font-size: 13px; color: var(--ink); }
.admin-form .hint { font-size: 11.5px; color: var(--muted); }
.admin-form textarea { width: 100%; }
/* Живой предпросмотр кривых рейтинга в админке (/admin/rating) */
.rating-graph { margin-top: 10px; }
.rating-graph svg { width: 100%; max-width: 720px; height: auto; display: block; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
/* Чекбокс-лейблы в админ-формах всегда горизонтальные (базовый label — колонка) */
.admin-form label.chk { flex-direction: row; align-items: center; justify-content: flex-start; }
/* ---------- Редактор тарифа: секции-карточки, чип-опции, панель сохранения ---------- */
.planx-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.planx-head .hint { margin: 4px 0 0; }
.admin-form.planx { background: none; border: none; box-shadow: none; padding: 0; gap: 14px; }
.planx-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px 18px; }
.planx-card > h2 { margin: 0 0 14px; font-size: 15.5px; font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 9px; }
.planx-card .form-grid + .form-grid { margin-top: 12px; }
.planx-n {
  width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0;
  background: var(--primary-fade); color: var(--primary-dark);
  font-size: 13px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.admin-form .chk-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 9px; }
.admin-form .chk-chip {
  flex-direction: row; align-items: center; justify-content: flex-start; gap: 9px;
  border: 1.5px solid var(--border); border-radius: 11px; padding: 10px 13px;
  background: #f8fafc; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-soft);
  transition: border-color .15s, background-color .15s, color .15s;
}
.admin-form .chk-chip:hover { border-color: #b9cdf0; }
.admin-form .chk-chip input { accent-color: var(--primary); width: 16px; height: 16px; margin: 0; flex-shrink: 0; }
.admin-form .chk-chip.on { background: var(--primary-fade); border-color: var(--primary); color: var(--primary-dark); }
.planx-savebar {
  position: sticky; bottom: 12px; z-index: 5;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(23, 43, 92, .16);
  padding: 12px 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.planx-savebar .hint { margin-left: auto; }
@media (max-width: 720px) {
  .planx-savebar { bottom: 0; }
  .planx-savebar .hint { display: none; }}
/* Блок логотипа в форме провайдера */
.logo-box { border: 1px dashed var(--border); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: #f8fafc; }
.logo-box-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.logo-current { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; }
.logo-current .hint { font-size: 11.5px; }
.logo-box label.chk { flex-direction: row; align-items: center; gap: 8px; justify-content: flex-start; font-size: 13px; color: var(--ink); }
.plogo-admin { height: 20px; width: auto; display: block; }
.row-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
/* Панель фильтров в админке (тарифы и др. списки) */
.afilters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow); margin-bottom: 16px;
}
.afilters label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .03em;
}
.afilters select, .afilters input {
  min-width: 160px; padding: 8px 10px; font-size: 13.5px;
  border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--ink);
}
.afilters input { min-width: 200px; }
.afilters select:focus, .afilters input:focus { outline: none; border-color: var(--primary); }
.afilters .btn { padding: 8px 14px; font-size: 13px; }
.note-form { display: flex; gap: 6px; }
.note-input { width: 130px; font-size: 12.5px; padding: 4px 8px; }
.form-err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 8px; padding: 10px 14px; font-size: 13.5px; }
.form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inline-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.days-input { width: 70px; padding: 6px 8px; font-size: 13px; }
.danger-row { margin: 10px 0; display: inline-block; }
.tabs { display: flex; gap: 8px; margin: 14px 0 18px; flex-wrap: wrap; }
.tab { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: 13.5px; color: var(--ink-soft); font-weight: 500; }
.tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.admin-cols { grid-template-columns: 1fr 1.4fr; }
.fav-btn.saved::after { content: ' ✓'; }

/* ---------- Поиск ---------- */
.search-results { max-width: 820px; }

/* ---------- Адаптивность ---------- */
@media (max-width: 1020px) {
  .provider-grid { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; max-height: none; }
  .two-col { grid-template-columns: 1fr; }
  .admin-cols { grid-template-columns: 1fr; }
  .hero-box { grid-template-columns: 1fr; padding: 34px 30px; }
  .hero-media { min-height: 240px; }
  .hero-statcard { right: 8px; }
  .top-grid { grid-template-columns: repeat(2, 1fr); }
  .band-grid { grid-template-columns: 1fr; }
  .home-bottom { grid-template-columns: 1fr; }
  .bpost-featured { flex-direction: column; }
  .bpost-featured .bpost-media { flex-basis: auto; min-height: 0; aspect-ratio: 16 / 9; }}
@media (max-width: 900px) {
  .logo-tag { display: none; }}
@media (max-width: 720px) {
  .header-inner { flex-wrap: nowrap; height: 62px; padding: 0 12px; gap: 8px; }
  .nav { display: none; } /* на мобильных — выпадающее меню вместо строки ссылок */
  .header-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: var(--ink); flex-shrink: 0; }
  .mobile-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid #e4eaf5;
    box-shadow: 0 16px 32px rgba(23, 43, 92, .16);
    padding: 6px 12px 12px; z-index: 55;
    max-height: calc(100vh - 62px); overflow-y: auto;
  }
  .site-header.nav-open .mobile-menu { display: block; }
  .mobile-menu nav { display: flex; flex-direction: column; gap: 2px; }
  /* Компактная шапка: логотип и кнопки меньше, чтобы бургер помещался в строку */
  .logo-img { height: 42px; }
  .header-search { width: 36px; height: 36px; }
  .header-actions .btn-sm { padding: 8px 11px; }
  .nav-toggle { width: 38px; height: 38px; }
  .mm-link {
    display: flex; align-items: center; gap: 11px; width: 100%;
    padding: 12px 10px; border-radius: 10px; border: none; background: none;
    color: var(--ink); font-weight: 600; font-size: 15px; text-align: left;
    font-family: inherit; cursor: pointer;
  }
  .mm-link:hover { background: #f2f6fd; color: var(--primary); }
  .mm-link.active { color: var(--primary); background: var(--primary-fade); }
  /* Иконки пунктов меню: инлайн-SVG (stroke = currentColor), слева от ссылки */
  .mm-ic {
    width: 24px; height: 24px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--muted);
  }
  .mm-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .mm-link.active .mm-ic, .mm-link:hover .mm-ic { color: var(--primary); }
  .mm-actions { display: flex; gap: 8px; padding: 10px 10px 4px; }
  .mm-actions .btn { flex: 1; }
  /* Узкие экраны: «Вход» остаётся в выпадающем меню, чтобы бургер поместился */
  @media (max-width: 420px) {
    .logo-img { height: 38px; }
    .header-actions .btn-ghost { display: none; }
  }
  /* Лента тарифов на узком экране: от края до края, без скроллбара */
  .plan-grid {
    gap: 12px; margin: 0 -20px; padding: 2px 20px 14px;
    scroll-padding-left: 20px;
    scrollbar-width: none;
  }
  .plan-grid::-webkit-scrollbar { display: none; }
  .plan-card { flex: 0 0 min(85%, 330px); }
  .plan-grid .empty-state { margin: 0 20px; }
  .provider-grid { grid-template-columns: 1fr; }
  .top-grid { grid-template-columns: 1fr; }
  .blog-cards { grid-template-columns: 1fr; }
  .bposts { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  /* KPI-карточки (аптайм 24 ч / 7 дн / 30 дн…): на телефонах —
     горизонтальная лента со свайпом, как тарифы */
  .kpis.kpi-row {
    display: flex; overflow-x: auto;
    gap: 12px; margin: 16px -20px; padding: 2px 20px 12px;
    scroll-snap-type: x mandatory; scroll-padding-left: 20px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .kpis.kpi-row::-webkit-scrollbar { display: none; }
  .kpis.kpi-row .kpi { flex: 0 0 min(56%, 225px); scroll-snap-align: start; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { position: static; height: auto; }
  .admin-main { padding: 16px; }
  .hero-box { padding: 26px 0 22px; }
  .hero-media { min-height: 0; }
  .hero-statcard { position: static; transform: none; width: 100%; margin-top: 14px; flex-direction: row; justify-content: space-between; gap: 8px; padding: 14px; }
  .hsc-item { flex-direction: column; text-align: center; gap: 6px; }
  .hero-checks { gap: 12px; }
  .filterbar-fields { gap: 10px; }
  .fb-apply { margin-left: 0; width: 100%; }
  .stat-triple { gap: 16px; }
  .plan-dc { display: none; }}

/* ============================================================
   Каталог провайдеров /providers/ — «Поиск хостинга по параметрам»
   ============================================================ */
.cat-hero {
  /* /providers/: баннер с серверами как фон всей hero-секции,
     чётко по центру, растянут по ширине */
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0) 64%, #f7faff 96%),
    url('/img/background-v6.jpg') center / 100% auto no-repeat,
    linear-gradient(180deg, #d7e4fb 0%, #e8f0fd 60%, #f7faff 100%);
  overflow: hidden;
}
.cat-hero-box {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px;
  align-items: center; padding-top: 30px; padding-bottom: 34px;
}
.crumbs { display: flex; gap: 9px; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--primary); }
.crumb-sep { color: #9fb0cd; }
.cat-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -.02em; color: var(--navy); margin: 0 0 10px; line-height: 1.16; }
.cat-sub { font-size: 15.5px; color: #3d5178; max-width: 470px; margin: 0; }

.pl-wrap { padding-top: 20px; }
.pl-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
/* min-width: 0 — чтобы горизонтальная лента тарифов на мобильных
   не распирала grid-колонку (min-width:auto по умолчанию) */
.pl-main { min-width: 0; }

/* --- Сайдбар фильтров --- */
.pfilters {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 16px 16px;
  display: flex; flex-direction: column; gap: 14px;
}
/* Кнопка «Фильтры» — на десктопе не выводится, на мобильных (≤1000px)
   заменяет сайдбар: фильтры скрыты до нажатия */
.pf-toggle {
  display: none;
  align-items: center; gap: 9px; width: 100%;
  padding: 12px 16px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 700; color: var(--ink);
}
.pf-toggle > svg:first-of-type { color: var(--primary); flex-shrink: 0; }
.pf-toggle-chev { margin-left: auto; color: var(--muted); transition: transform .18s ease; }
.pf-toggle.open .pf-toggle-chev { transform: rotate(180deg); }
.pf-toggle-badge {
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: 12.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.pf-toggle-badge[hidden] { display: none; }
.pf-title { display: flex; align-items: center; gap: 9px; font-size: 16.5px; font-weight: 700; margin: 0 0 2px; color: var(--ink); }
.pf-title svg { color: var(--primary); }
.pf-sec { border-top: 1px solid #eef2f9; padding-top: 13px; display: flex; flex-direction: column; gap: 8px; }
.pf-sec:first-of-type { border-top: none; padding-top: 2px; }
.pf-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.pf-label svg { color: var(--primary); flex-shrink: 0; }
.pf-select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 9px;
  font-size: 13.5px; background: #fff; color: var(--ink);
}
.pf-select:focus { outline: none; border-color: var(--primary); }
.pf-select-up { border-color: #cfe8d8; background: #f4fcf7; }
.pf-price { display: flex; gap: 8px; }
.pf-price input {
  width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--border);
  border-radius: 9px; font-size: 13.5px; color: var(--ink);
}
.pf-price input:focus { outline: none; border-color: var(--primary); }
/* Ресурсы (vCPU / RAM / диск / порт) — сетка 2×2 в стиле ценовых полей */
.pf-res { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-res input {
  width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--border);
  border-radius: 9px; font-size: 13.5px; color: var(--ink); background: #fff;
}
.pf-res input:focus { outline: none; border-color: var(--primary); }
/* Ресурс с ползунком «от»: поле ввода + одинарный слайдер под ним */
.pf-res-item { display: flex; flex-direction: column; min-width: 0; }
.pf-res-item .range { margin-top: 2px; }
.range { position: relative; height: 20px; margin: 6px 3px 0; }
.range-track { position: absolute; left: 0; right: 0; top: 8px; height: 4px; border-radius: 2px; background: #e4eaf5; }
.range-fill { position: absolute; top: 8px; height: 4px; border-radius: 2px; background: var(--primary); left: 0; width: 100%; }
.range input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 20px; margin: 0;
  -webkit-appearance: none; appearance: none; background: none; pointer-events: none;
}
.range input[type="range"]::-webkit-slider-runnable-track { height: 20px; background: transparent; }
.range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; width: 15px; height: 15px;
  margin-top: 2.5px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); cursor: pointer;
}
.range input[type="range"]::-moz-range-track { height: 4px; background: transparent; }
.range input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); cursor: pointer; }
.pf-check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; }
.pf-check input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.pf-check:hover span { color: var(--ink); }
.pf-actions { display: flex; flex-direction: column; gap: 10px; padding-top: 2px; }
.pf-clear { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); text-align: center; }
.pf-clear:hover { color: var(--primary); }

/* --- Чипсы активных фильтров --- */
.fchips { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.fchip {
  display: inline-flex; align-items: center; gap: 7px; background: #fff;
  border: 1px solid #d5e0f2; border-radius: 9px; padding: 6px 11px;
  font-size: 13px; color: var(--ink-soft); box-shadow: var(--shadow);
}
.fchip-x { color: #8ea0bd; font-size: 15px; line-height: 1; text-decoration: none; padding: 0 1px; }
.fchip-x:hover { color: var(--down); }
.fchips-reset { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--primary); }
.fchips-reset:hover { color: var(--primary-dark); }

/* --- Панель над результатами --- */
.pl-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pl-found { font-size: 14.5px; color: var(--ink-soft); }
.pl-found b { color: var(--ink); }
.pl-sort { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.pl-sort select { padding: 8px 12px; border: 1px solid var(--border); border-radius: 9px; background: #fff; font-size: 13.5px; color: var(--ink); }
.pl-views { display: flex; gap: 6px; }
.pl-view {
  display: inline-flex; width: 35px; height: 35px; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 9px; background: #fff; color: #8ea0bd;
}
.pl-view:hover { color: var(--primary); }
.pl-view.active { border-color: var(--primary); color: var(--primary); background: var(--primary-fade); }
.pr-head .avatar { width: 34px; height: 34px; font-size: 15px; border-radius: 9px; }
.pr-buy .btn { width: 100%; }
/* В узких карточках плитки: имя и цена в одну строку, характеристики ниже */
.pc-plans .pp-line { flex-wrap: wrap; row-gap: 1px; }

/* --- Пагинация --- */
.prov-pag { display: flex; gap: 8px; justify-content: center; margin: 24px 0 4px; flex-wrap: wrap; }
.pg-link {
  min-width: 38px; height: 38px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: #fff; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
}
.pg-link:hover { border-color: var(--primary); color: var(--primary); }
.pg-link.current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* --- Промо-баннер рейтинга --- */
.promo-band {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(90deg, #e8f0fd, #f3f8ff);
  border: 1px solid #dbe6f8; border-radius: var(--radius);
  padding: 18px 22px; margin: 28px 0 8px;
  position: relative; overflow: hidden;
}
.promo-band::after {
  content: ''; position: absolute; right: 210px; bottom: 0; width: 190px; height: 100%;
  background:
    linear-gradient(to top, rgba(37, 99, 235, .13) 0 34%, transparent 34%),
    linear-gradient(to top, rgba(37, 99, 235, .13) 0 58%, transparent 58%),
    linear-gradient(to top, rgba(37, 99, 235, .13) 0 44%, transparent 44%),
    linear-gradient(to top, rgba(37, 99, 235, .13) 0 72%, transparent 72%);
  background-size: 30px 100%;
  background-position: 0 100%, 48px 100%, 96px 100%, 144px 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.promo-ico {
  width: 52px; height: 52px; border-radius: 14px; background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  box-shadow: var(--shadow); flex-shrink: 0; z-index: 1;
}
.promo-copy { display: flex; flex-direction: column; gap: 2px; z-index: 1; }
.promo-copy b { font-size: 16.5px; color: var(--navy); }
.promo-copy span { font-size: 13.5px; color: var(--ink-soft); }
.promo-btn { margin-left: auto; z-index: 1; background: #fff; color: var(--primary-dark); border: 1px solid #cfdaf0; }
.promo-btn:hover { border-color: var(--primary); background: var(--primary-fade); color: var(--primary-dark); }

/* --- Адаптив каталога провайдеров --- */
@media (max-width: 1000px) {
  .pl-layout { grid-template-columns: minmax(0, 1fr); }
  .pl-sort { margin-left: 0; }
  /* Фильтры — по кнопке: сайдбар скрыт, кнопка видима (десктоп не затронут) */
  .pf-toggle { display: inline-flex; margin-bottom: 12px; }
  .pfilters { display: none; }
  .pfilters.pf-open { display: flex; margin-bottom: 12px; }}
@media (max-width: 760px) {
  .cat-hero-box { grid-template-columns: 1fr; }
  .promo-band { flex-wrap: wrap; }
  .promo-band::after { display: none; }
  .promo-btn { margin-left: 0; width: 100%; }}
.rt-chip.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .28);
}
.rt-thead, .rt-row {
  display: grid;
  grid-template-columns: 30px 170px minmax(0, 1.15fr) 88px 104px 92px 128px 178px;
  gap: 14px; align-items: center;
}
.rt-metrics { display: contents; }
.rt-thead {
  background: #fff; border-radius: 14px; padding: 14px 20px;
  box-shadow: var(--shadow); font-size: 13.5px; font-weight: 700; color: var(--muted);
  margin-bottom: 12px;
}
.rt-thead a { color: inherit; white-space: nowrap; }
.rt-thead a:hover { color: var(--primary); }
.rt-thead a.on { color: var(--ink); }
.rt-row {
  background: #fff; border: 1px solid #edf2fa; border-radius: 14px;
  padding: 16px 20px; box-shadow: 0 1px 2px rgba(23, 43, 92, .04);
  margin-bottom: 10px; transition: box-shadow .15s ease, border-color .15s ease;
}
/* Свечение как в каталоге (.ptx): карточка не подпрыгивает — вокруг разгорается синяя аура */
.rt-row:hover { border-color: var(--glow-border); box-shadow: var(--glow-blue); }
/* Номер места: единый слот 30×30 для всех строк. Цифра ВСЕГДА внутри
   кольца: у первой тройки — залитая медаль, у остальных мест — тонкое
   кольцо того же диаметра, весь столбец выглядит единообразно. */
.rt-c-rank {
  font-weight: 500; font-size: 14.5px; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
}
.rt-row .rt-c-rank:not(.rt-medal) {
  border: 1.5px solid #d7e2f4; border-radius: 50%;
  color: var(--ink-soft);
}

/* Медали первой тройки рейтинга: 1 — золото, 2 — серебро, 3 — бронза.
   Сплошной цвет без градиентов и теней, тонкая кромка в тёмный оттенок
   металла — чёткий кружок с номером места (в тултипе — «N место — металл»),
   строке — едва заметный тон в цвет медали. */
.rt-medal-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  font-weight: 800; font-size: 14.5px; letter-spacing: -.01em;
}
.rt-medal-gold .rt-medal-badge {
  color: #6d3a03; background: #f0b429; border: 1px solid #dd9d0d;
}
.rt-medal-silver .rt-medal-badge {
  color: #334155; background: #bfc9d7; border: 1px solid #9fadbf;
}
.rt-medal-bronze .rt-medal-badge {
  color: #57270a; background: #d08a4c; border: 1px solid #b26f36;
}
/* На узких экранах колонка места уже (28/26px) — масштабируем слот и
   медаль вместе с ней, чтобы цифра всегда сидела строго внутри кружка. */
@media (max-width: 1120px) {
  .rt-c-rank { width: 28px; height: 28px; }
  .rt-medal-badge { width: 28px; height: 28px; font-size: 13.5px; }}
@media (max-width: 900px) {
  .rt-c-rank { width: 26px; height: 26px; }
  .rt-medal-badge { width: 26px; height: 26px; font-size: 13px; }}
@media (max-width: 640px) {
  .rt-c-rank { width: 30px; height: 30px; }
  .rt-medal-badge { width: 30px; height: 30px; font-size: 14.5px; }}
.rt-row.rt-row-gold   { border-color: #f0dfa8; background: linear-gradient(90deg, #fffbeb, #ffffff 55%); }
.rt-row.rt-row-silver { border-color: #d8e0ee; background: linear-gradient(90deg, #f7f9fc, #ffffff 55%); }
.rt-row.rt-row-bronze { border-color: #ecd9bd; background: linear-gradient(90deg, #fdf6ec, #ffffff 55%); }
/* при наведении медальные строки получают ту же синюю ауру, что и обычные */
.rt-row.rt-row-gold:hover   { border-color: var(--glow-border); }
.rt-row.rt-row-silver:hover { border-color: var(--glow-border); }
.rt-row.rt-row-bronze:hover { border-color: var(--glow-border); }
.rt-c-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
/* Логотип в строке рейтинга: крупный слот 48px, пропорции файла сохраняются.
   Квадратные логотипы — 48×48, широкие баннеры — по ширине колонки,
   файлы меньше 48px по высоте не растягиваются (без размытия). */
.rt-c-logo .plogo-rt {
  height: 82px; width: 160px; max-width: 100%;
  object-fit: contain; object-position: left center;
}
.rt-name { font-weight: 700; color: var(--ink); font-size: 15.5px; }
.rt-c-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; min-width: 0; }
.rt-c-desc .chip { margin-top: 5px; }
.rt-metric { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rt-metric-top { display: flex; align-items: center; gap: 7px; }
.rt-metric-top svg { flex-shrink: 0; }
.rt-val { font-weight: 600; font-size: 16.5px; color: var(--ink); letter-spacing: -.01em; white-space: nowrap; }
.rt-sublabel { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.rt-ico-star { color: #f59e0b; }
.rt-ico-up { color: var(--up); }
.rt-ico-resp { color: var(--primary); }
.rt-ico-price { color: #475569; }
.rt-c-price .rt-val { color: var(--navy); }
/* Кнопки строки: вторичная «Подробнее» (страница провайдера) над основной
   «Перейти на сайт» — та же пара, что в карточках каталога */
.rt-c-go { display: flex; flex-direction: column; gap: 7px; }
.rt-details {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; background: #fff; color: var(--primary-dark);
  font-weight: 700; font-size: 13px; border: 1.5px solid #cfdaf0;
  border-radius: 12px; padding: 9px 14px; white-space: nowrap;
  transition: border-color .15s ease, background .15s ease;
}
.rt-details:hover { border-color: var(--primary); background: var(--primary-fade); color: var(--primary-dark); }
.rt-go {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; background: var(--primary); color: #fff; font-weight: 700; font-size: 14px;
  border-radius: 12px; padding: 12px 18px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .25); white-space: nowrap;
  transition: background .15s ease;
}
.rt-go:hover { background: var(--primary-dark); color: #fff; }
.rt-go .arr, .rt-cta-btn .arr { font-weight: 400; }

/* CTA-баннер */
.rt-cta {
  display: flex; align-items: center; gap: 22px;
  background: linear-gradient(180deg, #e7effd 0%, #eef4fe 100%);
  border-radius: 18px; padding: 24px 28px; margin-top: 26px;
  box-shadow: 0 1px 2px rgba(23, 43, 92, .05);
}
.rt-cta-trophy { flex-shrink: 0; width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; }
.rt-cta-copy { flex: 1; min-width: 0; }
.rt-cta-title { font-size: 21px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.rt-cta-copy p { margin: 0; color: var(--ink-soft); font-size: 14.5px; max-width: 560px; }
.rt-cta-btn {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  background: #fff; border: 1px solid #c9d8f2; color: var(--primary-dark);
  font-weight: 600; font-size: 14px; border-radius: 12px; padding: 12px 20px;
  transition: all .15s ease;
}
.rt-cta-btn:hover { border-color: var(--primary); background: var(--primary-fade); color: var(--primary-dark); }

/* Подсветка совпадений (живой поиск на главной) */
mark.rt-hl { background: #fde68a; color: inherit; border-radius: 3px; padding: 0 1px; }

/* Живой поиск на главной: панель мгновенных подсказок под hero-полем.
   Ширина задаётся обёртке: во flex-колонке hero-copy она иначе сжимается до контента */
.hero-suggest-wrap { position: relative; width: 100%; max-width: 640px; }
.hero-suggest {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  background: #fff; border: 1px solid #e3e9f4; border-radius: 16px;
  box-shadow: 0 20px 55px rgba(2, 6, 23, .28);
  padding: 8px; z-index: 90; max-height: 430px; overflow-y: auto;
}
.hero-suggest[hidden] { display: none; }
.hs-section {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: #8896b5; padding: 9px 12px 5px;
}
.hs-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: 11px; cursor: pointer;
  text-decoration: none; color: var(--ink);
}
.hs-item:hover, .hs-item.active { background: #f1f5fb; }
.hs-ico {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: #fff;
}
.hs-ico-prov { background: linear-gradient(135deg, #2563eb, #4f8bf7); }
.hs-ico-plan { background: linear-gradient(135deg, #16a34a, #34c26b); }
.hs-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hs-name { font-weight: 600; font-size: 14px; }
.hs-sub {
  font-size: 12.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hs-cats { font-size: 11.5px; color: #8896b5; margin-top: 1px; }
.hs-meta { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.hs-score { font-size: 12.5px; font-weight: 700; color: #b45309; }
.hs-up { font-size: 12px; color: #15803d; }
.hs-price { font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.hs-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px 6px; border-top: 1px solid #edf1f8; margin-top: 6px;
  font-size: 12.5px; color: var(--muted);
}
.hs-foot b { color: var(--ink); }
.hs-foot-link {
  font-size: 13px; font-weight: 600; color: var(--primary);
  text-decoration: none; white-space: nowrap;
}
.hs-foot-link:hover { text-decoration: underline; }
.hs-empty {
  padding: 22px 14px 10px; text-align: center;
  color: var(--ink-soft); font-size: 14px; line-height: 1.5;
}
.hs-empty b { color: var(--ink); }
.hs-empty + .hs-foot-link { display: block; text-align: center; padding-bottom: 12px; }

/* Пустое состояние (нет провайдеров в категории рейтинга) */
.rt-empty {
  background: #fff; border: 1px dashed #c9d6ea; border-radius: 14px;
  padding: 28px; text-align: center; color: var(--ink-soft); font-size: 14.5px;
  margin-bottom: 10px;
}

/* Плавные переходы: каскадное появление строк, fade при смене категории */
.rt-row {
  animation: rtIn .38s ease both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.rt-row.rt-hidden { display: none !important; }
@keyframes rtIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }}
#rt-table { transition: opacity .18s ease, transform .18s ease; }
@media (prefers-reduced-motion: reduce) {
  .rt-row { animation: none; }
  #rt-table, .rt-chip { transition: none; }}

/* --- Адаптив страницы рейтинга --- */
@media (max-width: 1120px) {
  .rt-thead, .rt-row { grid-template-columns: 28px 158px minmax(0, 1fr) 84px 100px 84px 128px 150px; }}
@media (max-width: 980px) {
  .rt-thead, .rt-row { grid-template-columns: 28px 158px 84px 100px 84px minmax(128px, 1fr) 150px; }
  .rt-c-desc { display: none; }}
@media (max-width: 900px) {
  .rt-thead, .rt-row { grid-template-columns: 26px 142px 84px 96px 84px 128px minmax(0, 1fr); }}
@media (max-width: 640px) {
  .rt-thead { display: none; }
  /* Карточка провайдера на мобильных — ровная вертикальная структура:
     1) медаль + логотип, 2) сетка метрик 4 колонки, 3) кнопки в одну строку */
  .rt-row {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "rank logo"
      "metrics metrics"
      "go go";
    row-gap: 12px; padding: 14px 14px 15px;
  }
  .rt-c-rank { grid-area: rank; }
  .rt-c-logo { grid-area: logo; justify-content: center; }
  .rt-c-logo .plogo-rt { object-position: center; }
  .rt-metrics {
    grid-area: metrics;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
    background: #f6f9fe; border: 1px solid #eef3fb; border-radius: 12px;
    padding: 10px 6px 9px;
  }
  /* Метрика в ячейке: иконка над значением, подпись под ним — колонки
     сетки строго равные, строка метрик выглядит ровной */
  .rt-metric { align-items: center; text-align: center; gap: 4px; }
  .rt-metric-top { flex-direction: column; gap: 4px; }
  .rt-metric-top svg { width: 16px; height: 16px; }
  .rt-val { font-size: 15px; }
  .rt-val .denom { font-size: 11px; }
  .rt-sublabel { font-size: 10.5px; }
  /* Кнопки: парой на всю ширину карточки, одинаковая ширина */
  .rt-c-go { grid-area: go; flex-direction: row; gap: 8px; }
  .rt-details, .rt-go { flex: 1; min-width: 0; padding: 11px 10px; font-size: 13px; }
  .rt-go { font-size: 13.5px; }
  .rt-empty { padding: 20px 14px; }
  /* панель подсказок живого поиска на мобильных */
  .hero-suggest { max-height: 58vh; }
  .hs-sub { white-space: normal; }
  .rt-cta { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }}

/* ============================================================
   Страница статуса v2 (/status/) — тестовая, заменит /monitoring
   ============================================================ */
.st-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #d9e6fb 0%, #eaf1fd 55%, #f7faff 100%);
  border-bottom: 1px solid var(--border);
  padding: 30px 0 28px;
}
.st-hero::before {
  content: ''; position: absolute; right: 24px; top: 8px; width: 340px; height: 200px;
  background-image: radial-gradient(circle, rgba(37, 99, 235, .14) 1.6px, transparent 1.7px);
  background-size: 19px 19px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse at 70% 30%, #000 25%, transparent 72%);
  pointer-events: none;
}
.st-topline { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 14px; }
/* Крошки внутри градиентной hero-зоны мониторинга — фон начинается уже за ними */
.st-hero .breadcrumbs { padding: 0 0 12px; }
.st-hero .breadcrumbs ol { color: #4d6285; }
.st-hero .breadcrumbs a { color: #4d6285; }
.st-hero .breadcrumbs a:hover { color: var(--primary-dark); }
.st-hero .breadcrumbs span[aria-current] { color: var(--navy); font-weight: 600; }
.st-sep { color: #9db1d1; }
.st-pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--up); flex-shrink: 0; }
.st-pulse::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid rgba(22, 163, 74, .4);
  animation: stPulse 2.2s ease-out infinite;
}
@keyframes stPulse { 0% { transform: scale(.55); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; }}
.st-title { font-size: clamp(27px, 4vw, 42px); font-weight: 700; letter-spacing: -.025em; color: var(--navy); margin: 0 0 10px; line-height: 1.12; }
.st-tmark { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 12px; vertical-align: 6px; }
.st-tmark.ok { background: var(--up); box-shadow: 0 0 0 5px rgba(22, 163, 74, .16); }
.st-tmark.warn { background: var(--warn); box-shadow: 0 0 0 5px rgba(217, 119, 6, .16); }
.st-tmark.bad { background: var(--down); box-shadow: 0 0 0 5px rgba(220, 38, 38, .16); }
.st-sub { font-size: 16px; color: #3d5178; max-width: 660px; margin: 0 0 18px; }
.st-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.st-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  box-shadow: var(--shadow);
}
.st-chip b { color: var(--ink); }
.st-chip .cd { font-variant-numeric: tabular-nums; }

.st-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 24px 0 8px; }
.st-scard { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 13px 16px 12px; }
.st-scard > span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.st-scard b { font-size: 23px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.st-scard b.ok { color: var(--up); }
.st-scard b.bad { color: var(--down); }
.st-scard b.warn { color: var(--warn); }
.st-scard .up-note { font-size: 11.5px; color: var(--muted); font-weight: 500; }

.st-alert {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff5f5; border: 1px solid #fecaca; border-radius: var(--radius);
  padding: 13px 16px; margin: 14px 0 4px;
}
.st-alert .ico {
  width: 34px; height: 34px; border-radius: 10px; background: #fee2e2; color: var(--down);
  display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; flex-shrink: 0;
}
.st-alert b { color: var(--down); }
.st-alert-list { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-soft); margin-top: 3px; }

.st-toolbar { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 26px 0 4px; }
.st-toolbar h2 { font-size: 22px; font-weight: 800; color: var(--navy); margin: 0; }
.st-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); align-items: center; flex-wrap: wrap; }
.st-legend .lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.lg-ok { background: var(--up); }
.lg-warn { background: #f0b429; }
.lg-bad { background: var(--down); }
.lg-empty { background: #e7edf5; }

.st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 8px; }
.st-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow); padding: 16px 18px 14px;
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
  transition: box-shadow .15s ease;
}
.st-card:hover { box-shadow: var(--shadow-md); }
.st-card.is-down { border-color: #f5c2c2; box-shadow: 0 0 0 3px rgba(220, 38, 38, .07), var(--shadow); }
.st-card.is-slow { border-color: #f3dfa8; }
.st-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.st-logo {
  width: 44px; height: 44px; border-radius: 12px; background: #f4f7fc; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; color: var(--primary); overflow: hidden; flex-shrink: 0;
}
/* Широкий (горизонтальный) логотип: контейнер шире — ширина задаётся
   инлайн под пропорции файла, высота та же. Квадратные остаются 44×44. */
.st-logo-wide { height: 44px; }
.st-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px 4px; }
.st-logo-wide img { padding: 4px 6px; }
.st-id { min-width: 0; flex: 1; }
.st-name {
  display: block; font-weight: 700; font-size: 15.5px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.st-name:hover { color: var(--primary); }
.st-target {
  display: block; font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.st-pill {
  display: inline-flex; align-items: center; gap: 7px; border-radius: 999px;
  padding: 5px 12px; font-size: 12.5px; font-weight: 600; flex-shrink: 0;
}
.st-pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st-pill.up { background: #e7f8ee; color: #15803d; }
.st-pill.slow { background: #fff4d6; color: #b45309; }
.st-pill.down { background: #fee2e2; color: var(--down); }
.st-pill.unknown { background: #f1f5f9; color: var(--muted); }

.st-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.st-metrics2 { grid-template-columns: repeat(3, 1fr); }
.st-metrics2 .st-m b { font-weight: 600; }
.st-m { background: #f8fafd; border: 1px solid #edf2fa; border-radius: 10px; padding: 7px 10px 6px; min-width: 0; }
.st-m span { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.st-m b { display: block; font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.st-m b.bad { color: var(--down); }
.st-m b.warn { color: #b45309; }

.st-strip { display: flex; gap: 3px; height: 32px; align-items: stretch; }
.st-bar { flex: 1 1 0; min-width: 3px; border-radius: 3px; background: var(--up); }
.st-bar.warn { background: #f0b429; }
.st-bar.down { background: var(--down); }
.st-bar.empty { background: #e9eef6; }
.st-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 5px; }

.st-foot { display: flex; align-items: center; gap: 12px; border-top: 1px dashed #e8eef7; padding-top: 10px; }
.st-foot .st-last { flex: 1; }

/* ---------- График «отклик + пинг» в карточке мониторинга ---------- */
.st-chart { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.st-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.st-chart-title { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.st-chart-legend { display: inline-flex; gap: 12px; font-size: 11.5px; font-weight: 600; color: var(--ink-soft); }
.st-chart-legend .cl { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.cl-ms { background: #2563eb; }
.cl-ping { background: #16a34a; }
.st-dualchart { width: 100%; height: 92px; display: block; min-width: 0; }
.st-dualchart .grid line { stroke: #e4edf8; stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.st-dualchart .grid line:last-child { stroke: #dde7f3; stroke-dasharray: none; }
.st-dualchart .grid-labels text { font-size: 9px; fill: #9aa9bd; }
.st-dualchart .area-ms { fill: rgba(37, 99, 235, .10); }
.st-dualchart .line-ms { fill: none; stroke: #2563eb; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.st-dualchart .line-ping { fill: none; stroke: #16a34a; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.st-dualchart .dot-ms { fill: #2563eb; }
.st-dualchart .dot-ping { fill: #16a34a; }
.st-chart-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.st-last { font-size: 12px; color: var(--muted); white-space: nowrap; text-align: right; line-height: 1.35; }
.st-last b { color: var(--ink-soft); }
.st-more { font-size: 12.5px; font-weight: 700; white-space: nowrap; }

.st-incs { display: flex; flex-direction: column; margin: 12px 0 6px; }
.st-inc { display: flex; gap: 12px; padding: 11px 4px; border-bottom: 1px solid #eef2f8; align-items: flex-start; }
.st-inc:last-child { border-bottom: none; }
.st-incdot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: var(--unknown); }
.st-inc.open .st-incdot { background: var(--down); box-shadow: 0 0 0 4px rgba(220, 38, 38, .12); }
.st-inc.res .st-incdot { background: var(--up); }
.st-inc-main { flex: 1; min-width: 0; }
.st-inc-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.st-inc-title a { color: inherit; }
.st-inc-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; }
.st-inc-meta code { font-size: 12px; }
.st-dur {
  display: inline-block; background: #f1f5f9; border-radius: 999px; padding: 2px 9px;
  font-size: 11.5px; font-weight: 700; color: var(--ink-soft); white-space: nowrap;
}
.st-dur.open { background: #fee2e2; color: var(--down); }

.st-method {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; margin: 20px 0 6px; font-size: 13px; color: var(--muted); line-height: 1.6;
}
.st-method b { color: var(--ink-soft); }

@media (max-width: 980px) {
  .st-cards { grid-template-columns: repeat(3, 1fr); }
  .st-grid { grid-template-columns: 1fr; }}
@media (max-width: 640px) {
  /* Сводка мониторинга («Под наблюдением», «Доступны», «Отклик»…):
     горизонтальная лента со свайпом, как карточки тарифов */
  .st-cards {
    display: flex; overflow-x: auto;
    gap: 12px; margin: 18px -20px 8px; padding: 2px 20px 12px;
    scroll-snap-type: x mandatory; scroll-padding-left: 20px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .st-cards::-webkit-scrollbar { display: none; }
  .st-scard { flex: 0 0 min(60%, 235px); scroll-snap-align: start; }
  .st-metrics { grid-template-columns: repeat(2, 1fr); }
  .st-foot { flex-wrap: wrap; }}

/* ---------- /providers/: мгновенные фильтры (AJAX) ---------- */
#pl-results { transition: opacity .18s ease; }
#pl-results.pl-loading { opacity: .45; pointer-events: none; }

/* ============================================================
   Страница провайдера v2 (/providers/:slug/v2/) — тестовая,
   после утверждения заменит pages/provider
   ============================================================ */
.pv2-hero {
  position: relative; overflow: hidden;
  /* Карточка провайдера: фон-баннер с серверами, чётко по центру,
     растянут по ширине; слева лёгкая вуаль для читаемости текста */
  background:
    linear-gradient(90deg, rgba(247, 250, 255, .88) 0%, rgba(247, 250, 255, .5) 40%, rgba(247, 250, 255, 0) 66%),
    linear-gradient(180deg, rgba(247, 250, 255, 0) 55%, #f7faff 97%),
    url('/img/background-v6.jpg') center / 100% auto no-repeat,
    linear-gradient(180deg, #d9e6fb 0%, #eaf1fd 55%, #f7faff 100%);
  border-bottom: 1px solid var(--border);
  padding: 18px 0 26px;
}
/* Крошки лежат прямо на фоне hero (подключаются с crumbBare) */
.pv2-hero .breadcrumbs { padding: 0; margin-bottom: 14px; }
.pv2-hero .breadcrumbs ol { color: #4d6285; }
.pv2-hero .breadcrumbs a { color: #4d6285; }
.pv2-hero .breadcrumbs a:hover { color: var(--primary-dark); }
.pv2-hero .breadcrumbs span[aria-current] { color: var(--ink-soft); font-weight: 600; }
.pv2-topline { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 16px; }
.pv2-topline .st-testchip { margin-left: auto; }
.pv2-hero-grid { display: flex; align-items: flex-start; gap: 26px; }
.pv2-id { flex: 1; min-width: 0; }
.pv2-title { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
/* Логотип — широкоформатная плашка: большинство логотипов
   горизонтальные (например, 710×140), вписываем с полями */
.pv2-logo {
  height: 120px; width: 200px; padding: 10px 16px; border-radius: 14px;
  background: #fff; border: 1px solid var(--border);
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.pv2-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.pv2-logo-txt {
  font-size: 16.5px; font-weight: 800; color: var(--primary); text-align: center;
  line-height: 1.25; overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere;
}
.pv2-title h1 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -.02em; color: var(--navy); margin: 0 0 8px; line-height: 1.1; }
.pv2-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.pv2-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 11px; font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  box-shadow: var(--shadow);
}
.pv2-tag-accent { background: var(--primary-fade); border-color: #d4e3fb; color: var(--primary-dark); }
.pv2-desc { font-size: 15.5px; color: #3d5178; max-width: 690px; margin: 0 0 16px; }
.pv2-cta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pv2-ringbox {
  position: relative; background: #fff; border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow-md); padding: 16px 18px 14px; text-align: center; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
/* Обёртка кольца: точка привязки для цифры-оверлея (позиционируется
   относительно svg, а не карточки — на мобильных блок центрируется) */
.pv2-ring-wrap { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.pv2-ring-bg { fill: none; stroke: #e8eef7; stroke-width: 11; }
.pv2-ring-val { fill: none; stroke-width: 11; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dasharray .8s ease; }
.pv2-ring-num { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.pv2-ring-num b { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.pv2-ring-num span { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 3px; }
.pv2-ring-label { font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 6px; }
.pv2-ring-label.prelim {
  color: #92400e; background: #fef3c7; border: 1px solid #fde68a;
  padding: 3px 10px; border-radius: 999px; text-transform: none; letter-spacing: 0; font-size: 11.5px;
}

/* Подсказка: из чего складывается оценка — раскрытие при наведении на блок оценки */
.pv2-ring-pop {
  position: absolute; right: calc(100% + 14px); top: 50%; width: 300px;
  transform: translateY(-50%) translateX(6px);
  background: #fff; border: 1px solid #dbe6f7; border-radius: 14px;
  box-shadow: 0 18px 44px rgba(23, 43, 84, .18); padding: 14px 16px 12px;
  text-align: left; opacity: 0; visibility: hidden; pointer-events: none; z-index: 60;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.pv2-ringbox:hover .pv2-ring-pop,
.pv2-ringbox:focus-visible .pv2-ring-pop,
.pv2-ringbox:focus-within .pv2-ring-pop {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(-50%) translateX(0);
}
.pv2-pop-title { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 9px; }
.pv2-pop-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-soft); padding: 4.5px 0; border-top: 1px dashed #edf2fa; }
.pv2-pop-row:first-of-type { border-top: none; }
.pv2-pop-row em { font-style: normal; color: var(--muted); font-weight: 600; font-size: 11px; margin-left: 4px; }
.pv2-pop-row b { font-size: 13px; font-weight: 500; color: var(--ink); }
.pv2-pop-total { border-top: 1px solid #e3ecf9; margin-top: 3px; padding-top: 8px; }
.pv2-pop-total span { font-weight: 500; color: var(--navy); }
.pv2-pop-total b { color: var(--primary-dark); }
.pv2-pop-note { font-size: 11.5px; color: #92400e; background: #fef3c7; border-radius: 8px; padding: 6px 9px; margin: 8px 0 0; line-height: 1.45; }
.pv2-pop-link { display: inline-block; margin-top: 9px; font-size: 12px; font-weight: 500; color: var(--primary); }
.pv2-pop-link:hover { color: var(--primary-dark); }
.pv2-ringbox:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.pv2-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 22px; }
.pv2-stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 15px 11px; }
.pv2-stat > span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.pv2-stat b { font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.pv2-stat b.up { color: var(--up); }
.pv2-stat b.bad { color: var(--down); }
.pv2-stat b.warn { color: var(--warn); }
.pv2-stat-note { display: block; font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 1px; }

.pv2-nav {
  position: sticky; top: 71px; z-index: 40;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.pv2-nav-inner { display: flex; gap: 4px; overflow-x: auto; height: 50px; align-items: stretch; }
.pv2-nav a {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 13px;
  font-size: 14px; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
  border-bottom: 2.5px solid transparent;
}
.pv2-nav a:hover { color: var(--primary); background: #f2f6fd; }
.pv2-nav a b {
  background: var(--primary-fade); color: var(--primary-dark);
  border-radius: 999px; font-size: 11.5px; padding: 1px 8px; font-weight: 700;
}

.pv2-section { margin: 30px 0 10px; scroll-margin-top: 136px; }
.pv2-h2 { font-size: 23px; font-weight: 700; color: var(--navy); margin: 0 0 4px; letter-spacing: -.01em; }
.pv2-h2 .count-badge { vertical-align: 3px; }
.pv2-lead { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }

/* ======= Тарифы: шапка блока, табы с иконками, тулбар, сетка карточек ======= */
.pv2-plans-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.pv2-plans-head .pv2-lead { margin-bottom: 0; }
.pv2-currency {
  font-size: 12px; color: var(--muted); background: #fff;
  border: 1px solid var(--border); padding: 9px 12px; border-radius: 9px; white-space: nowrap;
}
.pv2-tabs {
  display: flex; flex-wrap: wrap; gap: 7px; padding: 6px;
  background: #edf2fc; border-radius: 12px; width: max-content; max-width: 100%; margin: 14px 0 16px;
}
.pv2-tab {
  display: flex; align-items: center; gap: 8px; border: 0; background: none;
  color: #52617f; padding: 11px 15px; border-radius: 8px;
  font-weight: 650; font-size: 13px; font-family: inherit; cursor: pointer;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
.pv2-tab:hover { color: var(--primary-dark); }
.pv2-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.pv2-tab-icon { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; color: var(--primary); }
.pv2-tab-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pv2-tab.active { background: var(--primary); color: #fff; box-shadow: 0 4px 10px rgba(33, 100, 245, .2); }
.pv2-tab.active .pv2-tab-icon { color: #fff; }
.pv2-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; color: var(--muted); font-size: 13px; gap: 12px; }

/* Тарифы провайдера: на мобильных — горизонтальная лента со свайпом,
   на десктопе — обычная сетка (см. media-блок у .is-draggable). */
.pv2-grid {
  display: flex; overflow-x: auto; gap: 14px; padding: 2px 2px 14px;
  scroll-snap-type: x mandatory; scroll-padding-left: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: #c3d2ec transparent;
}
.pv2-grid::-webkit-scrollbar { height: 8px; }
.pv2-grid::-webkit-scrollbar-track { background: transparent; }
.pv2-grid::-webkit-scrollbar-thumb { background: #c3d2ec; border-radius: 4px; }
.pv2-grid[hidden] { display: none; }
.pv2-plan { flex: 0 0 min(85%, 360px); scroll-snap-align: start; }
.pv2-plan {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 19px; box-shadow: 0 5px 18px rgba(24, 55, 112, .06);
  display: flex; flex-direction: column; gap: 12px; position: relative; min-width: 0;
  transition: box-shadow .22s ease, border-color .22s ease;
}
/* Свечение вместо подпрыгивания: карточка остаётся на месте,
   вокруг неё разгорается мягкая синяя аура */
.pv2-plan:hover {
  border-color: rgba(37, 99, 235, .38);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, .16),
    0 0 26px rgba(37, 99, 235, .22),
    0 14px 32px rgba(29, 78, 216, .14);
}
.pv2-plan[hidden] { display: none; }
.pv2-plan.featured { border: 1.5px solid var(--primary); }
.pv2-ribbon {
  position: absolute; right: 16px; top: 0; background: var(--primary); color: #fff;
  padding: 6px 9px; border-radius: 0 0 7px 7px; font-size: 10px; font-weight: 750; letter-spacing: .06em;
}
.pv2-plan-top { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.pv2-plan-icon {
  width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, #edf4ff, #dce9ff); color: var(--primary); box-shadow: inset 0 0 0 1px #dce7fb;
}
.pv2-plan-icon svg { width: 29px; height: 29px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pv2-plan-title { min-width: 0; }
.pv2-plan-name { font-size: 17px; font-weight: 750; margin: 0; color: var(--ink); }
.pv2-hint { font-size: 11px; color: var(--muted); margin-top: 7px; }
.pv2-hint:before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  background: var(--up); border-radius: 50%; margin: 0 6px 1px 0;
}
/* Характеристики тарифа — простая таблица: слева название,
   справа значение. Тонкая рамка и лёгкая заливка колонки названий
   в палитре каталога (#e3eaf4 / #eef2f8 / muted) */
.pv2-specs { border: 1px solid #e3eaf4; border-radius: 10px; overflow: hidden; background: #fff; }
.pv2-specs table { width: 100%; border-collapse: collapse; }
.pv2-specs th, .pv2-specs td { padding: 6px 11px; text-align: left; vertical-align: top; line-height: 1.4; }
.pv2-specs th {
  width: 42%; font-size: 11px; font-weight: 600; color: var(--muted);
  background: #f7fafe; border-right: 1px solid #eef2f8;
}
.pv2-specs td { font-size: 12.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.pv2-specs tr + tr th, .pv2-specs tr + tr td { border-top: 1px solid #eef2f8; }

/* Цена в подвале карточки: сумма и период в одну строку,
   под ними примечание (продление/оплата), затем кнопка */
.pv2-plan-foot { margin-top: auto; padding-top: 13px; border-top: 1px solid var(--border); }
.pv2-price-row { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.pv2-price { font-size: 27px; font-weight: 600; letter-spacing: -1px; color: var(--ink); }
.pv2-price small { font-size: 13px; letter-spacing: 0; font-weight: 700; }
.pv2-period { font-size: 12px; color: var(--muted); }
.pv2-note { font-size: 11px; color: #7d8aa2; margin-top: 3px; }
.pv2-promo { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: var(--primary); border-radius: 7px; padding: 2px 9px; margin-top: 3px; }
.pv2-actions { display: flex; gap: 8px; margin-top: 11px; }
.pv2-btn {
  display: flex; justify-content: center; align-items: center; min-height: 38px; width: 100%;
  padding: 0 12px; border-radius: 8px; text-decoration: none; font-size: 12px; font-weight: 500;
  border: 1px solid var(--primary); color: #fff; background: var(--primary);
  box-shadow: 0 4px 9px rgba(33, 100, 245, .17); transition: background .15s ease;
}
/* color:#fff нужен и в hover: глобальное a:hover иначе красит
   текст в тёмно-синий — на тёмном фоне он не виден */
.pv2-btn:hover { background: #1248ce; color: #fff; }
.pv2-empty {
  text-align: center; padding: 30px; background: #fff;
  border: 1px dashed var(--border); border-radius: 12px; color: var(--muted);
}
.pv2-footnote { font-size: 11px; line-height: 1.5; color: #8793a9; margin: 16px 2px; }
.st-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.st-dot.up { background: var(--up); }
.st-dot.warn { background: var(--warn); }
.st-dot.down { background: var(--down); }
.st-dot.unknown { background: var(--unknown); }

.pv2-two { display: grid; grid-template-columns: 1.45fr 1fr; gap: 13px; }
.pv2-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow); padding: 18px 20px 16px;
}
.pv2-card-title { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.pv2-parts { display: flex; flex-direction: column; gap: 11px; margin-bottom: 12px; }
.pv2-part-head { display: flex; align-items: baseline; justify-content: space-between; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 4px; }
.pv2-part-head em { font-style: normal; color: var(--muted); font-size: 11.5px; margin-left: 5px; }
.pv2-part-head b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.pv2-part-bar { height: 8px; background: #edf2fa; border-radius: 999px; overflow: hidden; }
.pv2-part-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #60a5fa, var(--primary)); }
.pv2-hist { display: flex; flex-direction: column; }
.pv2-hist-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 2px; border-bottom: 1px solid #eef2f8;
}
.pv2-hist-row:last-child { border-bottom: none; }
.pv2-hist-row b { font-size: 14px; font-weight: 600; color: var(--ink); }
.pv2-delta { font-style: normal; font-size: 11px; font-weight: 700; margin-left: 5px; }
.pv2-delta.up { color: var(--up); }
.pv2-delta.down { color: var(--down); }
.pv2-more { font-size: 13px; font-weight: 700; white-space: nowrap; }
.pv2-about-text { font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 12px; }
.pv2-techs { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.pv2-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 13px; }
.pv2-list b { display: block; font-size: 14.5px; margin-bottom: 8px; }
.pv2-list.ok { border-top: 3px solid var(--up); }
.pv2-list.bad { border-top: 3px solid var(--down); }
.pv2-list ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.pv2-list li { font-size: 13.5px; color: var(--ink-soft); }

.pv2-mon-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pv2-targets { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.pv2-target { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 13.5px; }
.pv2-target code { font-size: 12px; }
.pv2-mon-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; }
.pv2-mon-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 8px; }
.pv2-mon-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 12px 0 8px; }
.pv2-stat-mini {
  background: #f8fafd; border: 1px solid #edf2fa; border-radius: 10px; padding: 6px 10px 5px; text-align: center;
}
.pv2-stat-mini span { display: block; font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.pv2-stat-mini b { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.pv2-incs { margin-top: 14px; border-top: 1px dashed #e8eef7; padding-top: 4px; }

.pv2-reviews-layout { display: grid; grid-template-columns: 240px 1fr; gap: 13px; align-items: start; }
.pv2-avgbox { text-align: center; display: flex; flex-direction: column; gap: 3px; padding: 22px 16px; }
.pv2-avg-num { font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.pv2-avg-scale { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.pv2-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 13px; }
.pv2-review { display: flex; flex-direction: column; gap: 7px; }
.pv2-review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pv2-review-head b { font-size: 14.5px; }
.pv2-score { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 9px; }
.pv2-review-title { font-size: 14px; color: var(--ink); }
.pv2-review p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.pv2-review-sub { display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: 12px; color: var(--muted); border-top: 1px dashed #e8eef7; padding-top: 8px; margin-top: auto; }
.pv2-formbox { margin-top: 14px; }
.pv2-formbox summary { display: inline-flex; }
.pv2-formbox[open] summary { margin-bottom: 12px; }
.pv2-formbox .review-form { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.pv2-faq {
  background: #fff; border: 1px solid var(--border); border-radius: 13px;
  box-shadow: var(--shadow); margin-bottom: 9px; overflow: hidden;
}
.pv2-faq summary {
  list-style: none; cursor: pointer; padding: 13px 18px;
  font-weight: 700; font-size: 14.5px; color: var(--ink); position: relative; padding-right: 40px;
}
.pv2-faq summary::-webkit-details-marker { display: none; }
.pv2-faq summary::after {
  content: '+'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 19px; font-weight: 700; color: var(--primary);
}
.pv2-faq[open] summary::after { content: '–'; }
.pv2-faq[open] summary { border-bottom: 1px solid #eef2f8; }
.pv2-faq p { padding: 12px 18px 14px; margin: 0; font-size: 13.5px; color: var(--ink-soft); }

.pv2-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pv2-fact {
  background: #fff; border: 1px solid var(--border); border-radius: 13px;
  box-shadow: var(--shadow); padding: 12px 15px 11px;
}
.pv2-fact span { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
.pv2-fact b { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.45; display: block; }

@media (max-width: 1020px) {
  .pv2-hero-grid { flex-direction: column; }
  .pv2-ring-pop {
    right: auto; left: 0; top: calc(100% + 12px); width: min(320px, calc(100vw - 48px));
    transform: translateY(6px);
  }
  .pv2-ringbox:hover .pv2-ring-pop,
  .pv2-ringbox:focus-visible .pv2-ring-pop,
  .pv2-ringbox:focus-within .pv2-ring-pop { transform: translateY(0); }
  /* Блок оценки на всю ширину карточки: кольцо и подпись по центру — ровно */
  .pv2-ringbox {
    align-self: stretch; flex-direction: column;
    align-items: center; justify-content: center; gap: 12px; padding: 16px 16px 14px;
  }
  .pv2-stats { grid-template-columns: repeat(3, 1fr); }
  .pv2-two, .pv2-mon-grid { grid-template-columns: 1fr; }
  .pv2-reviews-layout { grid-template-columns: 1fr; }
  .pv2-avgbox { flex-direction: row; align-items: baseline; gap: 12px; text-align: left; }
  .pv2-facts { grid-template-columns: repeat(2, 1fr); }}
/* Меню разделов страницы провайдера на мобильных не залипает:
   скроллится вместе со страницей (позиция статична) */
@media (max-width: 899.98px) {
  .pv2-nav { position: static; }}
@media (max-width: 640px) {
  /* Статистика провайдера: горизонтальная лента со свайпом —
     как карточки тарифов (равные карточки, «подглядывание» следующей) */
  .pv2-stats {
    display: flex; overflow-x: auto;
    gap: 12px; margin: 18px -20px 0; padding: 2px 20px 12px;
    scroll-snap-type: x mandatory; scroll-padding-left: 20px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .pv2-stats::-webkit-scrollbar { display: none; }
  .pv2-stat { flex: 0 0 min(62%, 235px); scroll-snap-align: start; }
  .pv2-title { flex-direction: column; align-items: flex-start; }
  .pv2-logo { width: 150px; height: 50px; padding: 7px 12px; border-radius: 11px; }
  .pv2-logo-txt { font-size: 13.5px; }
  .pv2-proscons { grid-template-columns: 1fr; }
  .pv2-facts { grid-template-columns: 1fr; }
  .pv2-cta .btn { flex: 1 1 auto; justify-content: center; }
  .pv2-hero { padding-top: 14px; }
  .pv2-hero .breadcrumbs { margin-bottom: 10px; }
  .pv2-plans-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pv2-tabs { width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); }
  .pv2-tab { justify-content: center; padding: 10px 8px; font-size: 12.5px; }
  /* Карточки тарифов: горизонтальная лента со свайпом и «подглядыванием»
     следующей карточки (вместо вертикального столбца) */
  .pv2-grid {
    gap: 12px; margin: 0 -20px; padding: 2px 20px 14px;
    scroll-padding-left: 20px;
    scrollbar-width: none;
  }
  .pv2-grid::-webkit-scrollbar { display: none; }
  .pv2-plan { flex: 0 0 min(85%, 330px); }
  .pv2-toolbar { flex-direction: column; align-items: stretch; }
  .pv2-price { font-size: 26px; }
  /* Меню разделов на мобильных не залипает — якорям хватает отступа
     на высоту липкой шапки (62px) с запасом */
  .pv2-section { scroll-margin-top: 76px; }}


/* ============================================================
   Каталог /providers/ — карточка тарифа v3 (ptx-*).
   Все заполненные характеристики — одной таблицей в 3 колонки
   (в ячейке: название сверху, значение под ним), адаптивный
   логотип провайдера (квадратный или широкий), цена и кнопки
   в подвале, без аптайма. Структура страницы как у /providers/.
   На прод не влияет.
   ============================================================ */
.ptx-note {
  display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin-top: 14px; padding: 7px 14px; border-radius: 10px;
  font-size: 12.5px; color: var(--ink-soft);
  background: #fffbeb; border: 1px solid #fde68a;
}

/* --- Сетки результатов каталога («Плитка» и «Список»): на мобильных —
   горизонтальная лента со свайпом, на десктопе — обычная сетка.
   Перетаскивание мышью — public/js/strip.js (только когда лента
   действительно переполнена). --- */
.ptx-grid, .ptx-list {
  display: flex; overflow-x: auto; gap: 18px; padding: 2px 2px 14px;
  scroll-snap-type: x mandatory; scroll-padding-left: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: #c3d2ec transparent;
}
.ptx-grid::-webkit-scrollbar, .ptx-list::-webkit-scrollbar { height: 8px; }
.ptx-grid::-webkit-scrollbar-track, .ptx-list::-webkit-scrollbar-track { background: transparent; }
.ptx-grid::-webkit-scrollbar-thumb, .ptx-list::-webkit-scrollbar-thumb { background: #c3d2ec; border-radius: 4px; }
.ptx { flex: 0 0 min(88%, 560px); scroll-snap-align: start; } /* «Список» — широкая карточка */
.ptx-grid .ptx { flex: 0 0 min(85%, 340px); }                  /* «Плитка» — компактная */

/* --- Карточка --- */
.ptx {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: box-shadow .22s ease, border-color .22s ease;
}
/* Свечение вместо подпрыгивания: карточка остаётся на месте,
   вокруг неё разгорается мягкая синяя аура */
.ptx:hover { border-color: var(--glow-border); box-shadow: var(--glow-blue); }

.ptx-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 14px 16px 12px; }

/* Шапка в одну линию, всё по вертикальному центру: логотип —
   название тарифа — тип сервера — теги, рейтинг прижат вправо */
.ptx-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.ptx-logo {
  flex: 0 1 auto; min-width: 34px; max-width: 128px; height: 44px;
  display: flex; align-items: center; justify-content: flex-start;
}
.ptx-logo img { display: block; max-height: 44px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.ptx-logo-txt {
  font-size: 12.5px; font-weight: 600; line-height: 1.2; letter-spacing: .01em; color: var(--navy);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.ptx-logo:hover .ptx-logo-txt { color: var(--primary); }
.ptx-name {
  margin: 0; font-size: 18px; font-weight: 400; letter-spacing: -.01em; line-height: 1.25;
  min-width: 0; flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ptx-name a { color: var(--ink); }
.ptx-name a:hover { color: var(--primary); }
.ptx-meta { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; font-size: 12px; color: var(--muted); }
.ptx-head .rating-badge, .ptx-head .score-pill { margin-left: auto; flex: none; }
.ptx-cat { display: inline-flex; align-items: center; gap: 4.5px; }
.ptx-cat-ic { width: 13px; height: 13px; flex: none; color: var(--primary); }
.ptx-cat-ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ptx-tag { font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 2px 7px; border-radius: 6px; }
.ptx-tag-ad { color: #854d0e; background: #fef9c3; }
.ptx-tag-na { color: #52607a; background: #eef2f7; }
.ptx-tag-best { color: #92400e; background: #fef3c7; }

/* Характеристики тарифа — как на странице провайдера: строки
   «название | значение». В широких карточках (режим «Список»)
   две колонки таких строк рядом, в квадратных («Плитка») —
   одна колонка. Выводятся только заполненные строки. */
.ptx-specs { border: 1px solid #e3eaf4; border-radius: 10px; overflow: hidden; background: #fff; }
.ptx-specs table { width: 100%; border-collapse: collapse; }
.ptx-specs th, .ptx-specs td { padding: 6px 11px; text-align: left; vertical-align: top; line-height: 1.4; }
.ptx-specs th {
  width: 42%; font-size: 11px; font-weight: 600; color: var(--muted);
  background: #f7fafe; border-right: 1px solid #eef2f8;
}
.ptx-specs td { font-size: 12.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.ptx-specs tr + tr th, .ptx-specs tr + tr td { border-top: 1px solid #eef2f8; }
/* Две колонки характеристик в широких карточках списка */
.ptx-specs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }

/* Возможности тарифа — нейтральные чипы под таблицей */
.ptx-feats { display: flex; flex-wrap: wrap; gap: 5px; }
.ptx-feat {
  display: inline-flex; align-items: center; gap: 4.5px;
  font-size: 11px; font-weight: 650; color: #4b5b74;
  background: #f2f5fa; border: 1px solid #e3eaf4;
  padding: 2.5px 8px; border-radius: 7px; white-space: nowrap;
}
.ptx-feat svg { width: 10.5px; height: 10.5px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Подвал: цена слева, кнопки справа */
.ptx-foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 10px 12px; margin-top: auto; padding: 12px 16px 15px;
  border-top: 1px solid #eef2f8; background: #fcfdff;
}
.ptx-price { min-width: 0; }
.ptx-price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.ptx-amount { font-size: 23px; font-weight: 600; letter-spacing: -.02em; color: var(--navy); }
.ptx-per { font-size: 13px; color: var(--muted); }
.ptx-flag { font-size: 11px; font-weight: 700; color: var(--primary-dark); background: var(--primary-fade); padding: 2px 8px; border-radius: 7px; }
/* Двойная цена: пометка «при оплате за год», вторая цена и промо-бейдж */
.ptx-term { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ptx-alt { display: block; margin-top: 1px; font-size: 11px; color: var(--muted); }
.ptx-promo { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; color: #fff; background: var(--primary); border-radius: 7px; padding: 2px 9px; }
.ptx-renew { display: block; margin-top: 1px; font-size: 11px; color: var(--muted); }
.ptx-actions { display: flex; gap: 8px; flex: 0 1 auto; }
.ptx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 500;
  transition: all .15s ease; white-space: nowrap;
}
.ptx-btn-more { color: var(--primary-dark); background: #fff; border: 1.5px solid #cfdaf0; }
.ptx-btn-more:hover { border-color: var(--primary); background: var(--primary-fade); color: var(--primary-dark); }
.ptx-btn-buy {
  color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 12px rgba(37,99,235,.26);
}
.ptx-btn-buy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Ленты, которые можно тянуть мышью (public/js/strip.js):
   курсор-«рука» и отключение выделения на время перетаскивания.
   Действует ТОЛЬКО в ленточном режиме (<900px). На десктопе ленты —
   обычные сетки: курсор стандартный, текст в карточках выделяется. */
@media (max-width: 899.98px) {
  .is-draggable { cursor: grab; }
  .is-draggable.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
}

/* Десктоп (≥900px): ленты становятся обычными сетками — страница
   скроллится вертикально, без горизонтальной прокрутки и перетаскивания.
   Свайп вбок остаётся на планшетах и телефонах. Порог совпадает с
   существующими брейкпоинтами макета (900px). */
@media (min-width: 900px) {
  .plan-grid, .pv2-grid, .ptx-grid, .ptx-list {
    display: grid; overflow: visible;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px; scroll-snap-type: none; padding: 2px 2px 6px;
  }
  .pv2-grid  { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .ptx-list  { grid-template-columns: repeat(auto-fill, minmax(480px, 1fr)); }
  /* min-width: 0 — чтобы содержимое карточки не распирало колонку сетки
     (иначе у .pv2-grid появится ложное горизонтальное переполнение) */
  .plan-card, .ptx, .pv2-plan { min-width: 0; }
}
.ptx-btn-buy:hover { filter: brightness(1.07); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.34); }

@media (max-width: 720px) {
  /* Лента каталога на узком экране: от края до края, без скроллбара */
  .ptx-list, .ptx-grid {
    gap: 12px; margin: 0 -20px; padding: 2px 20px 14px;
    scroll-padding-left: 20px;
    scrollbar-width: none;
  }
  .ptx-list::-webkit-scrollbar, .ptx-grid::-webkit-scrollbar { display: none; }
  .ptx, .ptx-grid .ptx { flex: 0 0 min(85%, 330px); }
  /* Две колонки характеристик в широких карточках на узком
     экране складываются в одну */
  .ptx-specs-cols { grid-template-columns: 1fr; }
  /* Переключатель «Плитка/Список»: на телефонах сервер всегда отдаёт
     «Плитку» — кнопки не нужны (страховка на случай десктопного UA
     в узком окне: мёртвых кнопок не показываем) */
  .pl-views { display: none; }}
@media (max-width: 560px) {
  .ptx-logo { max-width: 96px; height: 38px; }
  .ptx-logo img { max-height: 38px; }
  .ptx-name { font-size: 16.5px; }
  .ptx-foot { flex-direction: column; align-items: stretch; }
  .ptx-actions { flex: 1; }
  .ptx-btn { flex: 1; }}

/* ============================================================
   Фоны-hero на узких экранах: лёгкая вуаль поверх баннера,
   чтобы заголовки и текст оставались читаемыми поверх рисунка
   ============================================================ */
@media (max-width: 720px) {
  .hero,
  .cat-hero {
    background:
      linear-gradient(180deg, rgba(249, 251, 255, .88) 0%, rgba(249, 251, 255, .62) 52%, #f7faff 96%),
      url('/img/background-v6.jpg') center / cover no-repeat,
      linear-gradient(180deg, #d7e4fb 0%, #e8f0fd 55%, #f7faff 100%);
  }}

/* ============================================================
   SEO-лендинги «Лучший хостинг для X» (/best/:slug/) и хаб /rating/.
   Хаб + лендинг с рейтингом провайдеров и FAQ. Логотип провайдера
   может быть широким или квадратным — .bp-logo вписывает любой.
   ============================================================ */

/* ---------- Hero лендинга и хаба ---------- */
.bp-hero {
  /* /rating/ и /best/: фон «серверы + щит со звездой»,
     чётко по центру, без сдвигов, растянут по ширине;
     слева вуаль, чтобы текст не терялся на серверах */
  background:
    linear-gradient(90deg, rgba(247, 250, 255, .95) 0%, rgba(247, 250, 255, .8) 40%, rgba(247, 250, 255, .6) 58%, rgba(247, 250, 255, 0) 75%),
    linear-gradient(180deg, rgba(247, 250, 255, 0) 62%, #f7faff 97%),
    url('/img/background-rating-v4.jpg') center / 100% auto no-repeat,
    linear-gradient(180deg, #dbe7fb 0%, #e9f1fd 62%, rgba(247, 250, 255, 0) 100%);
  overflow: hidden;
}
/* Мобильный вариант — строго ПОСЛЕ десктопного .bp-hero,
   иначе правило выше (тот же вес, ниже по файлу) его перебивает */
@media (max-width: 720px) {
  .bp-hero {
    background:
      linear-gradient(180deg, rgba(249, 251, 255, .95) 0%, rgba(249, 251, 255, .82) 52%, #f7faff 96%),
      url('/img/background-rating-v4.jpg') center / cover no-repeat,
      linear-gradient(180deg, #dbe7fb 0%, #e9f1fd 55%, #f7faff 100%);
  }}
.bp-hero-in { padding-top: 34px; padding-bottom: 30px; }
.bp-hero-badge {
  display: inline-flex; align-items: center;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 12px rgba(37, 99, 235, .28);
}
.bp-h1 {
  margin: 0 0 12px; font-size: clamp(28px, 3.8vw, 42px); font-weight: 800;
  letter-spacing: -.022em; line-height: 1.14; color: var(--navy); max-width: 760px;
}
.bp-intro { margin: 0; font-size: 16px; color: #3d5178; max-width: 700px; line-height: 1.6; }
.bp-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.bp-hero-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: #fff; border: 1px solid #dbe4f2; border-radius: 999px;
  padding: 6px 13px; font-size: 13px; color: var(--ink-soft);
}
.bp-hero-chip b { color: var(--navy); font-weight: 800; }
.bp-hero-chip-link { text-decoration: none; font-weight: 600; color: var(--primary-dark); }
.bp-hero-chip-link:hover { border-color: var(--primary); background: var(--primary-fade); }

/* ---------- Обёртка и заголовки секций ---------- */
.bp-wrap { padding-top: 26px; padding-bottom: 40px; }
.bp-section { margin-bottom: 34px; }
.bp-h2 { margin: 0 0 16px; font-size: 23px; font-weight: 800; letter-spacing: -.015em; color: var(--navy); }
.bp-empty {
  padding: 26px; border: 1.5px dashed #c9d7ee; border-radius: 14px;
  color: var(--muted); font-size: 14.5px; text-align: center;
}
.bp-empty a { font-weight: 700; }

/* Место в подборке: 1 — золото, 2 — серебро, 3 — бронза */
.bp-rank {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: #64748b; background: #f1f5f9;
}

/* Логотип: широкий вписывается по ширине, квадратный — по высоте */
.bp-logo {
  height: 56px; min-width: 0;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Как мы отбираем ---------- */
.bp-crit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bp-crit {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.bp-crit-ic {
  width: 38px; height: 38px; border-radius: 11px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-fade);
}
.bp-crit-ic svg { width: 20px; height: 20px; fill: none; stroke: var(--primary-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bp-crit b { display: block; font-size: 15px; font-weight: 800; color: var(--navy); }
.bp-crit p { margin: 5px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ---------- FAQ (нативные details/summary) ---------- */
.bp-faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.bp-faq-item {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.bp-faq-item summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 18px; font-size: 15px; font-weight: 700; color: var(--navy);
}
.bp-faq-item summary::-webkit-details-marker { display: none; }
.bp-faq-item summary:hover { color: var(--primary-dark); }
.bp-faq-x { position: relative; width: 16px; height: 16px; flex: none; }
.bp-faq-x::before, .bp-faq-x::after {
  content: ''; position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 16px; height: 2.5px; border-radius: 2px; background: var(--primary);
  transition: rotate .2s ease;
}
.bp-faq-x::after { rotate: 90deg; }
.bp-faq-item[open] .bp-faq-x::before { rotate: 180deg; }
.bp-faq-item[open] .bp-faq-x::after { rotate: 0deg; }
.bp-faq-a { padding: 0 18px 15px; font-size: 14px; color: #3d5178; line-height: 1.65; }

/* ---------- Другие подборки ---------- */
.bp-others-row { display: flex; flex-wrap: wrap; gap: 10px; }
.bp-other {
  display: inline-flex; flex-direction: column; gap: 3px;
  background: #fff; border: 1px solid var(--border); border-radius: 13px;
  padding: 12px 16px; text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.bp-other:hover { border-color: var(--primary); box-shadow: 0 6px 16px rgba(29, 78, 216, .12); }
.bp-other b { font-size: 14px; font-weight: 800; color: var(--navy); }
.bp-other span { font-size: 12.5px; color: var(--muted); }

/* ---------- Админка: форма подборки ---------- */
.admin-form .admin-h2 { margin: 6px 0 2px; font-size: 16px; font-weight: 800; color: var(--navy); }
.admin-form .admin-check { flex-direction: row !important; align-items: center; gap: 8px; font-weight: 600; }
.bp-f-list { display: flex; flex-direction: column; gap: 8px; }
.bp-f-row {
  display: grid; grid-template-columns: minmax(200px, 1.1fr) auto minmax(200px, 1fr);
  align-items: center; gap: 8px 12px;
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px;
  background: #f8fafc;
}
.bp-f-row.on { border-color: #bfd6f7; background: #f4f8ff; }
.bp-f-check { flex-direction: row !important; align-items: center; gap: 8px; flex-wrap: wrap; }
.bp-f-pos input { width: 64px; }
.bp-f-note { width: 100%; }
.faq-row {
  display: grid; grid-template-columns: 1fr 1.6fr auto; align-items: start;
  gap: 8px 10px; border: 1px dashed var(--border); border-radius: 10px; padding: 10px 12px;
}
.faq-row input, .faq-row textarea { margin: 0; }
/* Источник провайдеров: живой предпросмотр автоподбора */
.bp-src-preview {
  border: 1px solid #bfd6f7; border-radius: 10px; background: #f4f8ff;
  padding: 10px 14px; margin-bottom: 4px;
}
.bp-src-preview b { color: var(--navy); }
.bp-src-list { margin-top: 3px; line-height: 1.5; }
/* Источник подборки в общем списке */
.bp-src-badge {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  background: #e9f1fd; color: #1d4ed8; font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
@media (max-width: 860px) {
  .faq-row { grid-template-columns: 1fr; }
  .bp-f-row { grid-template-columns: 1fr auto; }
  .bp-f-note { grid-column: 1 / -1; }}

/* ---------- Адаптив лендинга ---------- */
@media (max-width: 1024px) {
  .bp-crit-grid { grid-template-columns: 1fr; }}
@media (max-width: 720px) {
  .bp-hero-in { padding-top: 26px; padding-bottom: 24px; }
  .bp-h2 { font-size: 20px; }}

/* ============================================================
   Сортировка общего рейтинга (/rating/) — переключатели
   «рейтинг / аптайм / отклик / цена» + примечание о порядке
   ============================================================ */
.rt-sortbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px;
}
.rt-sortbar-label { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-right: 2px; }
.rt-sort {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border); background: #fff; color: var(--ink-soft);
  border-radius: 999px; padding: 7px 15px; font-size: 13px; font-weight: 700;
  text-decoration: none; transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.rt-sort svg { width: 15px; height: 15px; flex-shrink: 0; }
.rt-sort:hover { border-color: var(--primary); color: var(--primary); }
.rt-sort.on { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(23, 92, 216, .25); }
.rt-order-note {
  font-size: 13.5px; color: var(--muted); line-height: 1.55;
  background: #fff; border: 1px dashed #c9d6ea; border-radius: 12px;
  padding: 12px 18px; margin-bottom: 14px;
}
.rt-more-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  margin-top: 22px; margin-bottom: 8px;
}
.rt-more-wrap[hidden] { display: none; }
.rt-more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #c9d8f2; color: var(--primary-dark);
  font: inherit; font-weight: 700; font-size: 15px;
  border-radius: 14px; padding: 14px 36px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(23, 43, 92, .05);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.rt-more-btn:hover, .rt-more-btn:focus-visible {
  border-color: var(--primary); background: var(--primary-fade); outline: none;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, .16), 0 0 24px rgba(37, 99, 235, .20);
}
.rt-more-btn:active { transform: translateY(1px); }
.rt-more-btn.loading { opacity: .65; cursor: progress; }
.rt-more-btn .rt-more-n { font-weight: 800; color: var(--primary); }
.rt-more-info { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .rt-more-btn { width: 100%; justify-content: center; padding: 14px 20px; }
  .rt-order-note { padding: 10px 14px; font-size: 13px; }
  .rt-sortbar-label { width: 100%; margin-right: 0; }}

/* ============================================================
   Единый дизайн рейтинга на всех страницах: значок звезды
   + оценка в формате «9.6/10» (вместо цветных квадратных бейджей)
   ============================================================ */
.score-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 999px; line-height: 1; flex: none;
  background: #fffbeb; border: 1px solid #fde68a;
}
.score-pill svg { width: 14px; height: 14px; flex: none; fill: #f59e0b; }
.score-pill .sp-val { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.score-pill .sp-of { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.score-pill.sp-na { background: #f1f5f9; border-color: #e2e8f0; }
.score-pill.sp-na svg { fill: #cbd5e1; }
.score-pill.sp-na .sp-val { color: var(--muted); }

/* «/10» после значения оценки в строках и метриках */
.denom { font-size: 12px; font-weight: 700; color: var(--muted); }

/* Золотая звезда-глиф (там, где нет SVG) */
.gold-star { color: #f0b429; }

/* В поиске оценка не должна разрываться при переносе строки */
.pc-title .pm-uptime { white-space: nowrap; }

/* Звезда внутри кольца на странице провайдера */
.pv2-ring-num svg.pv2-ring-star { width: 20px; height: 20px; fill: #f59e0b; margin-bottom: 5px; }

/* Звезда в чипе оценки отзыва (везде, где используется .review-score / .pv2-score) */
.review-score::before { content: '★'; margin-right: 4px; font-size: 11px; opacity: .95; }
.pv2-score::before { content: '★'; margin-right: 4px; font-size: 11px; color: #f59e0b; }

/* ============================================================
   Админка: блог — статус-бейджи постов, обложка, редактор Quill
   ============================================================ */
.pst-badge {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.3; white-space: nowrap;
}
.pst-pub { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.pst-draft { background: #f1f5f9; color: #475569; border: 1px solid #dbe2ec; }

/* Обложка поста в форме */
.pf-cover { border: 1px dashed var(--border); border-radius: 10px; padding: 12px 14px; background: #f8fafc; }
.pf-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.cover-preview img {
  display: block; max-width: 340px; max-height: 190px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--border); margin-bottom: 10px;
}
.pf-cover-fields { display: flex; flex-direction: column; gap: 8px; }
.pf-cover-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-soft); }
.pf-cover-fields label.pf-clear { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }

/* SEO-панель */
.pf-seo { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; background: #fbfdff; }
.pf-seo summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 8px; }
.pf-seo label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

/* Редактор Quill: высота и рамка в стилистике админки */
#editor { background: #fff; }
#editor .ql-toolbar.ql-snow {
  border: 1px solid var(--border); border-radius: 10px 10px 0 0;
  font-family: inherit;
}
#editor .ql-container.ql-snow {
  border: 1px solid var(--border); border-top: 0;
  border-radius: 0 0 10px 10px;
  font-size: 15.5px; font-family: inherit;
}
#editor .ql-editor { min-height: 440px; line-height: 1.65; }
#editor .ql-editor img { border-radius: 10px; max-width: 100%; }
#editor .ql-editor.ql-blank::before { color: var(--muted); font-style: normal; }
@media (max-width: 720px) {
  #editor .ql-editor { min-height: 320px; }
}
