:root {
  --bg: #07070b;
  --panel: #0e0f18;
  --panel2: #101224;
  --text: #e8e8f3;
  --muted: #a7a7c2;
  --stroke: rgba(255,255,255,.08);
  --glow1: #7b61ff;
  --glow2: #00d2ff;
  --glow3: #ff3ecf;
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 600px at 50% 0%, rgba(123,97,255,.12), transparent 62%),
    radial-gradient(900px 700px at 18% 18%, rgba(0,210,255,.08), transparent 58%),
    radial-gradient(800px 700px at 82% 20%, rgba(255,62,207,.06), transparent 58%);
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed;
  color: var(--text);
  line-height: 1.5;
}

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

.container { max-width: 1100px; margin: 0 auto; padding: 24px 18px; }

/* Главная: лендинг (структура как в макете: main.home-page > .container.home-page__inner > секции + footer) */
main.home-page {
  display: block;
  padding: 0 0 12px;
}

.home-page__inner {
  max-width: 1180px;
}

.home-section__empty {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.home-section__empty--wide {
  grid-column: 1 / -1;
  text-align: center;
  padding: 28px 16px 8px;
}

.home-page__flash {
  margin-bottom: 4px;
}

.home-section {
  margin-top: 36px;
}

.home-section:first-of-type {
  margin-top: 4px;
}

.home-section__head {
  text-align: center;
  margin-bottom: 22px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.home-section__head--minimal {
  margin-bottom: 18px;
}

.home-section__head--minimal .home-section__title {
  margin-bottom: 0;
}

.home-section__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(180, 180, 210, 0.95);
}

.home-section__title {
  margin: 0 0 10px;
  font-size: clamp(1.32rem, 3.2vw, 1.78rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.18;
  background: linear-gradient(115deg, #ffffff 0%, #ddd6fe 28%, #67e8f9 58%, #f9a8d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-section__sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.home-section__head::after {
  content: "";
  display: block;
  width: min(200px, 52vw);
  height: 4px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--glow2), var(--glow1), var(--glow3));
  box-shadow: 0 0 28px rgba(123, 97, 255, 0.4);
}

.home-section--top {
  margin-top: 28px;
  padding: 8px 2px 4px;
}

@media (min-width: 769px) {
  .home-section--top {
    margin-top: 40px;
    padding: 28px 22px 34px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(168deg, rgba(22, 24, 44, 0.88), rgba(8, 9, 14, 0.55));
    box-shadow:
      0 0 0 1px rgba(0, 210, 255, 0.05),
      0 28px 70px rgba(0, 0, 0, 0.42);
  }
}

.grid.recommended.home-grid--rec {
  gap: 20px;
}

.home-page .footer {
  margin-top: 48px;
}

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.topbar-start {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
/* Ссылка Onion (tor) рядом с языком — тот же визуальный вес, что у кнопки языка */
a.topbar-onion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
a.topbar-onion:hover {
  color: var(--glow2);
  border-color: rgba(0, 210, 255, 0.35);
}
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar-actions .btn-reg { margin-top: 0; padding: 8px 14px; font-size: 13px; }
.topbar-actions .pill-cabinet { border-color: rgba(0,210,255,.35); color: var(--glow2); }

.lang { position: relative; }

.lang button {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--stroke);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
}

.lang-menu {
  position: absolute;
  left: 0;
  top: 44px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  overflow: hidden;
  min-width: 140px;
  display: none;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  z-index: 10;
}

.lang.open .lang-menu { display: block; }

.lang-menu form { margin: 0; }

.lang-menu button {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 12px 14px;
  color: var(--text);
  text-align: left;
}

.lang-menu button:hover { background: rgba(255,255,255,.06); }

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-size: 13px;
  color: var(--muted);
}

.pill:hover { color: var(--text); border-color: rgba(255,255,255,.12); }

.brand { text-align: center; margin-top: 16px; }

.logo-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: .02em;
  margin: 0;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--glow2), var(--glow1), var(--glow3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: 10px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.nav { display: flex; gap: 18px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

.icon-nav {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}

.icon-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 14px;
  color: var(--muted);
  border: 1px solid transparent;
  min-width: 72px;
  max-width: 96px;
}

.icon-nav a:hover {
  color: var(--text);
  border-color: var(--stroke);
  background: rgba(255,255,255,.04);
}

.nav-ico {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
}

.nav-txt { font-size: 12px; }

.section { margin-top: 32px; }

.section h2 {
  margin: 0 0 14px;
  text-align: center;
  color: rgba(232,232,243,.92);
  font-size: 1.05rem;
  letter-spacing: .04em;
  font-weight: 600;
}

.filter-bar {
  margin: 12px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-bar input[type="search"],
.filter-bar select {
  background: var(--panel);
  border: 1px solid var(--stroke);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
}

.filter-bar input[type="search"] { flex: 1 1 180px; min-width: 0; }

.filter-bar .btn { margin-top: 0; }

/* Каталог / разделы: ПК — flex-wrap как раньше; первое поле (поиск) на всю ширину строки */
.filter-bar.filter-bar--catalog {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.filter-bar--catalog input[type="search"] {
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
}

.filter-bar--catalog select[name="rating"],
.filter-bar--catalog select[name="country"] {
  flex: 0 1 200px;
  min-width: 140px;
  max-width: 240px;
  box-sizing: border-box;
}

.filter-bar--catalog label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex: 0 0 auto;
  font-size: 13px;
}

.filter-bar--catalog .btn {
  flex: 0 0 auto;
  margin-top: 0;
}

.grid { display: grid; gap: 14px; }

.grid.cards { grid-template-columns: repeat(3, 1fr); }

/* Рекомендованные: широкие карточки (инфо + превью), 3 в ряд */
.grid.recommended {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

/* Топ обменников — компактные карточки */
.grid.top { grid-template-columns: repeat(4, 1fr); }

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

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

@media (max-width: 560px) {
  .logo-title { font-size: 1.75rem; }
  .grid.cards { grid-template-columns: 1fr; }
  .grid.recommended { grid-template-columns: 1fr; }
  .grid.top { grid-template-columns: 1fr; }
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(420px 140px at 20% 0%, rgba(0,210,255,.1), transparent 60%),
    radial-gradient(420px 140px at 80% 0%, rgba(123,97,255,.12), transparent 60%);
  opacity: .85;
  pointer-events: none;
  border-radius: inherit;
}

.card > * { position: relative; }

.card-header { display: flex; gap: 12px; align-items: flex-start; }
.card-header__text { min-width: 0; flex: 1; }
.card-header--catalog {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.card-header--catalog .card-header__row {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.card-header--catalog .card-title {
  flex: 1;
  min-width: 0;
}

/* Каталог / разделы: крупнее логотип у названия */
.card-header--catalog .avatar {
  width: 70px;
  height: 70px;
  border-radius: 17px;
}

.card-header__status {
  line-height: 1.25;
}
.card-header__status .badge {
  font-size: 11px;
  padding: 2px 8px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

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

.card-title { font-weight: 600; font-size: 15px; }

.card-desc {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  min-height: 2.8em;
  max-height: 5.8em;
  overflow: hidden;
}

.stars { margin-top: 10px; display: flex; gap: 2px; align-items: center; }

.star { width: 16px; height: 16px; filter: drop-shadow(0 0 6px rgba(123,97,255,.2)); }

.icons { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }

.badge {
  font-size: 12px;
  color: rgba(232,232,243,.9);
  border: 1px solid var(--stroke);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.15);
}

.btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(123,97,255,.35);
  background: linear-gradient(90deg, rgba(123,97,255,.2), rgba(0,210,255,.1));
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.btn:hover { border-color: rgba(0,210,255,.4); }

.btn.block { width: 100%; }

.btn.small {
  margin-top: 0;
  padding: 6px 10px;
  font-size: 12px;
}

.card.wide.home-card {
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.card.wide.home-card--fixed {
  height: 380px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card.wide.home-card--fixed:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.48);
}

.home-card__inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 0;
  height: 100%;
  min-height: 0;
}

.home-card__left {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 14px 14px 12px;
  justify-content: flex-start;
}

/* Текстовый блок без внутреннего скролла — всё укладывается за счёт переноса заголовка и clamp описания */
.home-card__scroll {
  min-height: 0;
  flex: 1 1 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.home-card__footer {
  flex-shrink: 0;
  margin-top: 8px;
}

.home-card__title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.avatar.avatar--sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Главная «Рекомендованные»: крупный аватар у заголовка — визуально заполняет колонку над звёздами */
.home-card__title-row .avatar.avatar--sm.home-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 17px;
  margin-top: 2px;
}

.home-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.28;
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.home-card__desc {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  min-height: 0;
}

.home-card__footer .stars {
  margin-top: 0;
  flex-shrink: 0;
}

.home-card__footer .icons {
  margin-top: 5px;
  flex-shrink: 0;
  gap: 3px;
  row-gap: 3px;
  max-height: 2.75em;
  overflow: hidden;
  align-content: flex-start;
}

/* Компактные теги (USDT, cards…) — без наложения */
.home-card__footer .icons .badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.home-card__geo {
  margin-top: 6px;
  max-height: 2.5em;
  overflow: hidden;
  flex-shrink: 0;
}

.home-card__geo .meta-icons {
  flex-wrap: wrap;
  gap: 3px;
  row-gap: 3px;
  max-height: 2.5em;
  overflow: hidden;
}

.home-card__footer .home-card__geo {
  margin-top: 6px;
}

.home-card__footer .home-card__geo .badge,
.home-card__footer .home-card__geo .badge-meta,
.home-card__footer .home-card__geo .badge-city {
  font-size: 10px;
  padding: 2px 6px;
  line-height: 1.2;
}

.home-card__stats {
  margin-top: 8px;
  flex-shrink: 0;
}

.home-card__btn {
  margin-top: 10px;
  flex-shrink: 0;
}

.home-card__right {
  min-height: 0;
  border-left: 1px solid var(--stroke);
}

.home-card__media {
  position: relative;
  height: 100%;
  min-height: 120px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.home-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-card__media-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 800;
  color: rgba(232, 232, 243, 0.35);
}

.home-card__status-row {
  margin-top: 5px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.home-card__status-row--compact {
  margin-top: 8px;
  text-align: center;
}

.home-card__geo--compact {
  margin-top: 8px;
  max-height: 2.8em;
  overflow: hidden;
}

.home-card__geo--compact .meta-icons {
  justify-content: center;
}

.home-card__pill {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: 10px;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Маркетинговые акценты: «Доверенный» — премиум золото */
.home-card__pill--trusted {
  color: #1c1408;
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 45%, #d97706 100%);
  border: 1px solid rgba(253, 224, 71, 0.55);
  box-shadow:
    0 0 22px rgba(245, 158, 11, 0.18),
    0 0 44px rgba(251, 191, 36, 0.1);
}

/* «Верифицированный» — яркий премиум-градиент */
.home-card__pill--verified {
  color: #fff;
  background: linear-gradient(125deg, #6366f1 0%, #a855f7 42%, #ec4899 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 0 24px rgba(168, 85, 247, 0.16),
    0 0 48px rgba(236, 72, 153, 0.09);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Широкие карточки главной: одна колонка — с 768px (планшет/телефон)
   Порядок как на ПК: сначала текст (лого, название, описание, звёзды…), превью снизу полосой —
   не переносим превью наверх (order:-1), иначе грузит экран и схлопывает .home-card__scroll из-за flex. */
@media (max-width: 768px) {
  .home-card__inner {
    grid-template-columns: 1fr;
  }

  /* Не сжимать блок с заголовком и описанием до нуля */
  .home-card__scroll {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
  }

  .home-card__desc {
    -webkit-line-clamp: 8;
    line-clamp: 8;
    font-size: 12px;
    margin-top: 10px;
  }

  .home-card__footer .icons {
    max-height: none;
  }

  .card.wide.home-card--fixed {
    height: auto;
    min-height: 0;
  }

  /* Превью — компактная полоса под контентом */
  .home-card__right {
    border-left: 0;
    border-top: 1px solid var(--stroke);
    min-height: 0;
    height: auto;
    max-height: none;
  }

  .home-card__media {
    height: 132px;
    min-height: 120px;
    max-height: 160px;
  }

  .home-card__media img,
  .home-card__media-fallback {
    position: absolute;
    inset: 0;
    max-height: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .home-card__left {
    padding: 14px 14px 12px;
  }
}

.preview {
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  overflow: hidden;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(232,232,243,.6);
  font-size: 12px;
}

.preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-cover {
  width: 100%;
  height: 190px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--stroke);
}
.service-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.avatar-lg { width: 72px; height: 72px; border-radius: 16px; }
.service-meta-row { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:6px; }
.badge-status {
  font-weight: 700;
  font-size: 11px;
  padding: 6px 11px;
  border-radius: 999px;
  border-width: 1px;
  border-style: solid;
}

.badge-status--trusted {
  color: #1c1408;
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 50%, #d97706 100%);
  border-color: rgba(253, 224, 71, 0.5);
  box-shadow:
    0 0 20px rgba(245, 158, 11, 0.16),
    0 0 40px rgba(251, 191, 36, 0.08);
}

.badge-status--verified {
  color: #fff;
  background: linear-gradient(125deg, #6366f1 0%, #a855f7 45%, #ec4899 100%);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 0 22px rgba(168, 85, 247, 0.14),
    0 0 44px rgba(236, 72, 153, 0.08);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.badge-city { font-size: 11px; padding: 4px 8px; }
.badge-meta { border-color: rgba(0,210,255,.35); }
.card-counters { font-size:12px; color: var(--muted); margin-top:6px; }
.grid.cards .card,
.grid.top .card { min-height: 280px; }
.grid.recommended .card.wide:not(.home-card) { min-height: 320px; }

.card.compact { padding: 14px; text-align: center; }

.card.compact .avatar {
  margin: 0 auto;
  width: 68px;
  height: 68px;
  border-radius: 17px;
}

.card.compact .card-header { justify-content: center; }

.card.compact .icons { justify-content: center; }

.card.compact .btn { margin-top: 12px; }

/* Топ обменников: акцентная полоска + чуть крупнее логотип */
.home-top-card {
  position: relative;
  border-radius: 18px;
  border-color: rgba(255, 255, 255, 0.1);
  padding-top: 0;
}

.home-top-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
  background: linear-gradient(90deg, var(--glow2), var(--glow1), var(--glow3));
  border-radius: 18px 18px 0 0;
  box-shadow: 0 0 18px rgba(0, 210, 255, 0.25);
}

.home-top-card .card-header {
  padding-top: 18px;
}

.home-top-card .avatar {
  width: 84px;
  height: 84px;
  border-radius: 20px;
}

.home-top-card .card-title {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.3;
}

.home-top-card .meta-icons {
  justify-content: center;
}

.home-top-card .card-counters {
  font-size: 12px;
}

.footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
}

.footer-inner { max-width: 400px; margin: 0 auto; text-align: center; }

.footer-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
  margin-bottom: 10px;
}

.footer-link {
  color: var(--glow2);
  font-size: 14px;
}

.footer-link:hover { opacity: .9; text-decoration: underline; }

.footer-copy { font-size: 12px; color: var(--muted); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }

input, textarea, select {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--stroke);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  outline: none;
  font-size: 14px;
}

textarea { min-height: 110px; resize: vertical; }

small.hint { color: var(--muted); }

.flash {
  border: 1px solid rgba(0,210,255,.25);
  background: rgba(0,210,255,.08);
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.admin-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }

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

.sidebar {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 14px;
  height: fit-content;
}

.sidebar a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
}

.sidebar a:hover { background: rgba(255,255,255,.05); color: var(--text); }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }

.table th,
.table td {
  border-bottom: 1px solid var(--stroke);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.table th { color: rgba(232,232,243,.9); font-weight: 600; }

.dashboard-counts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin-bottom: 8px; }
.count-box { background: rgba(255,255,255,.04); border: 1px solid var(--stroke); border-radius: 12px; padding: 14px; text-align: center; }
.count-num { display: block; font-size: 1.75rem; font-weight: 700; color: var(--text); }
.count-label { display: block; font-size: 12px; color: var(--muted); margin: 4px 0 8px; }
.count-box .btn.small { padding: 6px 10px; font-size: 12px; margin-top: 0; }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dashboard-actions .btn { margin-top: 0; }

.cabinet-page .cabinet-block {
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.cabinet-page .cabinet-block:last-child {
  margin-bottom: 0;
}

.cabinet-block__title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(232, 232, 243, 0.95);
}

.cabinet-block__list {
  margin: 0;
  padding-left: 20px;
}

.cabinet-block__list li {
  margin-bottom: 8px;
}

.cabinet-block__empty {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.review-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.review-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  flex: 1;
  min-width: 0;
}

.review-card__date { font-size: 12px; color: var(--muted); }

.review-admin-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.review-admin-delete-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.review-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}

.review-admin-btn:hover {
  background: rgba(255,255,255,.08);
  color: var(--text);
}

.review-admin-btn--edit {
  font-size: 15px;
  border-color: rgba(0,210,255,.35);
  color: var(--glow2);
}

.review-admin-btn--edit:hover {
  border-color: rgba(0,210,255,.55);
  box-shadow: 0 0 0 1px rgba(0,210,255,.15);
}

.review-admin-btn--del {
  font-size: 22px;
  font-weight: 300;
  border-color: rgba(255,80,100,.35);
  color: #ff8a9a;
}

.review-admin-btn--del:hover {
  background: rgba(255,80,100,.12);
  border-color: rgba(255,80,100,.5);
  color: #ffc9d0;
}

.review-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 4px 0 8px;
  font-size: 13px;
}

.review-pager__info {
  color: var(--muted);
}

.news-post-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.news-post-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.news-post-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}

.news-post-btn:hover {
  background: rgba(255,255,255,.08);
  color: var(--text);
}

.news-post-btn--edit {
  font-size: 15px;
  border-color: rgba(0,210,255,.35);
  color: var(--glow2);
  text-decoration: none;
}

.news-post-btn--del {
  font-size: 22px;
  font-weight: 300;
  border-color: rgba(255,80,100,.35);
  color: #ff8a9a;
}

.news-post-delete-form {
  display: inline;
  margin: 0;
  padding: 0;
}

/* Карточка сервиса «Подробнее» (макет) */
.service-page {
  max-width: 960px;
  margin: 0 auto;
}

.service-detail-card.card {
  padding: 0;
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}

.service-detail__hero {
  position: relative;
  width: 100%;
  min-height: 160px;
  max-height: 280px;
  background: rgba(0,0,0,.35);
  border-bottom: 1px solid var(--stroke);
}

.service-detail__hero-img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.service-detail__hero-fallback {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(500px 200px at 50% 0%, rgba(123,97,255,.15), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.2));
}

.service-detail__hero-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--stroke);
}

.service-detail__hero-monogram {
  font-size: 2.5rem;
  font-weight: 800;
  opacity: 0.5;
  letter-spacing: 0.06em;
}

.service-detail__inner {
  padding: 20px 20px 22px;
}

.service-detail__profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px 22px;
  align-items: flex-start;
}

.service-detail__avatar-wrap {
  padding: 5px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(0, 210, 255, 0.28), rgba(0, 160, 180, 0.12) 55%, rgba(0, 210, 255, 0.08));
  box-shadow:
    0 0 0 1px rgba(0, 210, 255, 0.22),
    0 8px 28px rgba(0, 0, 0, 0.35);
}

.service-detail__profile .service-detail__avatar.avatar-lg {
  width: 104px;
  height: 104px;
  border-radius: 18px;
}

.service-detail__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 132px;
}

@media (max-width: 720px) {
  .service-detail__profile {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .service-detail__aside {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
  }
  .service-detail__actions {
    flex-direction: row !important;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}

.service-detail__title {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
}

.service-detail__badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.badge-online {
  border-color: rgba(46, 204, 113, .45) !important;
  color: #9ae6b4 !important;
  background: rgba(46, 204, 113, .08) !important;
}

.service-detail__globe {
  margin-right: 4px;
  opacity: 0.85;
}

.service-detail__counters {
  margin-top: 6px;
}

.service-detail__status {
  display: inline-block;
  margin-top: 0;
  padding: 5px 11px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-detail__status--trusted {
  color: #1c1408;
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 45%, #d97706 100%);
  border: 1px solid rgba(253, 224, 71, 0.5);
  box-shadow:
    0 0 28px rgba(245, 158, 11, 0.14),
    0 0 56px rgba(251, 191, 36, 0.08);
}

.service-detail__status--verified {
  color: #fff;
  background: linear-gradient(125deg, #6366f1 0%, #a855f7 40%, #ec4899 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 0 32px rgba(168, 85, 247, 0.12),
    0 0 64px rgba(236, 72, 153, 0.07);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.service-detail__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.service-detail__fav-form {
  margin: 0;
}

.btn--fav {
  margin-top: 0;
  white-space: nowrap;
}

.service-detail__back {
  margin: 0;
}

.service-detail__desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.service-detail__tags {
  margin-top: 14px;
}

.service-detail__links {
  list-style: none;
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--stroke);
}

.service-detail__links li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-all;
}

.service-detail__links li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--glow2);
  box-shadow: 0 0 8px rgba(0,210,255,.5);
}

.service-detail__links a {
  color: #5ee7df;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-detail__links a:hover {
  color: #9cfbf5;
}

/* Страница сервиса: отзывы (шире) + новости (уже) */
.service-detail-below {
  max-width: 960px;
  margin: 28px auto 0;
  padding: 0 2px;
}

.service-detail-split--main {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .service-detail-split--main {
    grid-template-columns: 1fr;
  }
}

.service-panel {
  padding: 18px 16px;
  text-align: left;
}

.service-panel__title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--stroke);
  background: linear-gradient(90deg, rgba(0,210,255,.35), rgba(123,97,255,.35), rgba(255,62,207,.25));
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: bottom;
  border-bottom-color: transparent;
}

.service-panel__empty,
.service-panel__hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.45;
}

.service-panel__hint a {
  color: var(--glow2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.review-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.service-review-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--stroke);
}

.service-review-item:last-child {
  border-bottom: 0;
}

.service-review-item__author {
  font-weight: 600;
  color: var(--text);
}

.service-review-item__text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 8px;
}

.service-review-toggle {
  margin-top: 4px;
}

.btn--secondary {
  margin-top: 10px;
  background: rgba(255,255,255,.04);
  border-color: var(--stroke);
  font-weight: 600;
}

.btn--secondary:hover {
  border-color: rgba(0,210,255,.35);
}

.service-inline-form {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(0,0,0,.18);
}

.service-inline-form--news {
  margin-bottom: 16px;
}

.service-inline-form .field {
  margin-bottom: 10px;
}

.service-inline-form .btn {
  margin-top: 8px;
}

.news-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.03);
}

.news-item--feed {
  position: relative;
  padding-top: 18px;
}

.news-item__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(0,210,255,.75), rgba(123,97,255,.55), rgba(255,62,207,.35));
  border-radius: 3px 3px 0 0;
}

.news-item__feed-identity {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.news-item__avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--stroke);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--muted);
}

.news-item__media-slot {
  margin: 10px 0 0;
  min-height: 80px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.06);
  background:
    radial-gradient(120px 60px at 20% 30%, rgba(255,255,255,.04), transparent),
    rgba(0,0,0,.22);
}

.news-item__title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  line-height: 1.35;
}

.news-item__meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.news-item__body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 10px;
}

.news-post-edit-wrap {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
}

.service-panel--news {
  min-height: 0;
}

.news-item__svc-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.news-item__svc-mono {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.news-item__svc-name {
  font-size: 12px;
  font-weight: 700;
  color: rgba(232, 232, 243, 0.88);
  margin-bottom: 2px;
}

.news-content-html {
  word-break: break-word;
}

.news-content-html a {
  color: var(--glow2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-content-html img {
  max-width: 100%;
  border-radius: 10px;
  margin-top: 8px;
}

.news-feed-post__body-outer {
  position: relative;
  overflow: hidden;
  max-height: 180px;
  transition: max-height 0.35s ease;
}

.news-feed-post__body-outer.is-open {
  max-height: 2000px;
}

.news-feed-post__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(14, 15, 24, 0.96));
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.news-feed-post__body-outer.is-open .news-feed-post__fade {
  opacity: 0;
}

.news-feed-post__img-wrap {
  margin-top: 10px;
}

.news-feed-post__img {
  max-width: 100%;
  border-radius: 10px;
  display: block;
}

.btn.btn--text {
  margin-top: 8px;
  background: transparent;
  border: 0;
  color: var(--glow2);
  font-weight: 600;
  padding: 6px 0;
  font-size: 13px;
}

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

.news-feed-post__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  min-height: 32px;
}

.news-like-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
  vertical-align: middle;
}

.news-like-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  line-height: 1.2;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  box-sizing: border-box;
}

.news-like-readonly {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
}

.news-feed-post__bar .btn.btn--secondary.news-comments-toggle {
  font-size: 12px;
  padding: 6px 12px;
  line-height: 1.2;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  box-sizing: border-box;
}

.news-comments-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
}

.news-comments-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-comment-item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.news-comment-item:last-child {
  border-bottom: 0;
}

.news-comment-item__date {
  color: var(--muted);
  font-size: 12px;
}

.blog-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
}

.blog-card {
  padding: 18px 16px;
  text-align: left;
}

.blog-card__head {
  margin-bottom: 10px;
}

.blog-card__title {
  margin: 6px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.blog-card__meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.blog-card__pin {
  margin-right: 6px;
}

.blog-card__new {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid rgba(0, 210, 255, 0.35);
  color: #b6f7ff;
  margin-right: 6px;
}

.blog-card__img-wrap {
  margin: 10px 0 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--stroke);
}

.blog-card__img {
  width: 100%;
  display: block;
  max-height: 220px;
  object-fit: cover;
}

.blog-card__preview-outer {
  position: relative;
  overflow: hidden;
  max-height: 120px;
  transition: max-height 0.4s ease;
}

.blog-card__preview-outer.is-open {
  max-height: 3000px;
}

.blog-content-html {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  word-break: break-word;
}

.blog-content-html a {
  color: var(--glow2);
}

.blog-card__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(14, 15, 24, 0.96));
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.blog-card__preview-outer.is-open .blog-card__fade {
  opacity: 0;
}

/* Планшет и телефон: меню разделов + фильтры каталога */
@media (max-width: 768px) {
  /* Меню: 5 колонок — 9 пунктов в 2 ряда */
  .icon-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px 4px;
    margin-top: 14px;
    padding: 0 2px 6px;
    width: 100%;
    box-sizing: border-box;
  }

  .icon-nav a {
    min-width: 0;
    width: 100%;
    max-width: none;
    padding: 8px 4px;
    box-sizing: border-box;
    overflow: visible;
  }

  .nav-ico {
    width: 32px;
    height: 32px;
  }

  .nav-txt {
    font-size: 10px;
    line-height: 1.15;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Фильтры разделов: касание / поле поиска на всю ширину, селекты на всю строку при переносе */
  .filter-bar--catalog input[type="search"] {
    max-width: 100%;
    min-height: 42px;
    font-size: 16px;
  }

  .filter-bar--catalog select[name="rating"],
  .filter-bar--catalog select[name="country"] {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    max-width: none;
    min-height: 40px;
    font-size: 15px;
  }

  .filter-bar--catalog label {
    font-size: 13px;
    padding: 2px 0;
  }

  .filter-bar--catalog .btn {
    min-height: 42px;
  }
}

/* ========== Мобильные и узкие экраны ========== */
@media (max-width: 640px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }

  .container {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
    padding-top: 14px;
    padding-bottom: 18px;
  }

  .topbar {
    gap: 8px;
  }

  .topbar-actions .btn-reg {
    padding: 8px 12px;
    font-size: 12px;
  }

  .brand {
    margin-top: 8px;
  }

  .subtitle {
    font-size: 13px;
    line-height: 1.45;
    padding: 0 4px;
  }

  .grid.cards .card,
  .grid.top .card {
    min-height: 0;
  }

  .grid.recommended .card.wide:not(.home-card) {
    min-height: 0;
  }

  .card {
    padding: 14px 12px;
  }

  .card-title {
    font-size: 14px;
  }

  .btn.block {
    min-height: 46px;
  }

  .section {
    margin-top: 22px;
  }

  .section h2 {
    font-size: 1rem;
  }

  .home-section {
    margin-top: 22px;
  }

  .home-section__title {
    font-size: clamp(1.12rem, 4.5vw, 1.45rem);
  }

  .home-card__left {
    padding: 12px 12px 10px;
  }

  .home-card__title {
    font-size: 13px;
  }

  .home-card__desc {
    font-size: 11px;
    line-height: 1.42;
  }

  .home-card__footer {
    margin-top: 6px;
  }

  .home-card__btn {
    margin-top: 8px;
  }

  .service-detail__inner {
    padding: 14px 12px 16px;
  }

  .service-detail__hero {
    min-height: 100px;
    max-height: 240px;
  }

  .service-detail__hero-img {
    max-height: 220px;
  }

  .service-detail-below {
    padding: 0;
    margin-top: 20px;
  }

  .service-panel {
    padding: 14px 12px;
  }

  .review-pager {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Лента новостей: кнопки в строку со скроллом */
  .news-feed-post__bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 6px;
    margin-left: -2px;
    margin-right: -2px;
    padding-left: 2px;
    padding-right: 2px;
  }

  .news-feed-post__bar .news-like-form,
  .news-feed-post__bar .btn {
    flex-shrink: 0;
  }

  .blog-card {
    padding: 14px 12px;
  }

  .cabinet-page .cabinet-block {
    padding: 14px 12px;
  }
}

@media (max-width: 480px) {
  .service-detail__profile {
    gap: 10px 12px;
  }

  .service-detail__profile .service-detail__avatar.avatar-lg {
    width: 88px;
    height: 88px;
  }

  .service-detail__avatar-wrap {
    padding: 4px;
  }

  .service-detail__aside {
    gap: 8px;
  }

  .service-detail__title {
    font-size: 1.05rem;
  }

  .card-header--catalog .avatar {
    width: 64px;
    height: 64px;
  }

  .home-top-card .avatar {
    width: 76px;
    height: 76px;
  }
}

