/* Страница обзора одного хостера */
.host-page .wrap {
  max-width: 920px;
}

.host-back {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.host-back a {
  text-decoration: none;
}

.host-back a:hover {
  text-decoration: underline;
}

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

.host-hero {
  margin-bottom: 1.5rem;
}

.host-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  width: 100%;
}

.host-hero-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  min-width: 0;
}

.host-hero-domain {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  max-width: min(14rem, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.host-hero-domain:hover {
  text-decoration: underline;
}

.host-hero-cta {
  flex-shrink: 0;
  margin-left: auto;
}

/* Логотип: светлый/белый на светлом фоне страницы — см. .host-logo-wrap--dark или .host-logo--invert-light */
.host-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

/* Тёмная подложка (как шапка сайта) — для логотипов со светлой графикой */
.host-logo-wrap--dark {
  padding: 0.32rem 0.7rem;
  background: linear-gradient(135deg, #0f2e75 0%, #1f4fbf 100%);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 3px rgba(11, 25, 61, 0.2);
}

.host-logo-wrap--dark .host-logo {
  /* чуть крупнее визуально из‑за внутренних полей файла */
  max-height: 32px;
  max-width: 168px;
}

.host-logo {
  width: auto;
  max-height: 36px;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

/* Альтернатива без подложки: инверсия для светлого монохрома на прозрачном фоне (цветные логотипы исказятся) */
.host-logo--invert-light {
  filter: invert(1);
}

.host-logo-wrap--dark .host-logo.host-logo--invert-light {
  filter: none;
}

.host-hero .host-rank-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  vertical-align: middle;
}

.host-hero-score {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.host-one-star {
  color: #b8860b;
  font-size: 1.25rem;
  line-height: 1;
}

.host-hero-score-num {
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.host-hero-reviews-count {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9rem;
}

.host-hero-nav {
  margin: 0.75rem 0 0;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(21, 32, 43, 0.07);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.host-hero-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  min-width: min-content;
  min-height: 1.6rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.host-hero-nav-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.host-hero-nav-list li[hidden] {
  display: none !important;
}

.host-hero-nav-list a {
  display: inline-block;
  padding: 0.2rem 0.15rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.host-hero-nav-list a:hover {
  text-decoration: underline;
}

#host-promo-section[hidden] {
  display: none !important;
}

.host-hero .btn-site {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffd84d;
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  text-decoration: none;
}

.host-hero .btn-site:hover {
  background: #000;
  color: #ffe066;
}

@media (max-width: 560px) {
  .host-hero-top {
    flex-direction: column;
    align-items: stretch;
  }

  .host-hero-cta {
    margin-left: 0;
    align-self: flex-end;
  }
}

.host-preview-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 700px) {
  .host-preview-about-grid {
    grid-template-columns: minmax(200px, 42%) 1fr;
    gap: 1.5rem;
  }
}

.host-preview {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.host-preview--compact img {
  max-height: 220px;
  width: 100%;
  object-fit: cover;
  object-position: top center;
}

.host-preview img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.host-about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

.host-about-title {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.host-about-list {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.host-about-list li + li {
  margin-top: 0.35rem;
}

.host-section {
  margin-top: 2.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: 1rem;
}

.host-section > h2 {
  font-size: 1.32rem;
  margin: 0 0 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  scroll-margin-top: 1rem;
}

.host-section > h2::before {
  content: "";
  width: 0.34rem;
  height: 1.05em;
  border-radius: 999px;
  background: linear-gradient(180deg, #1f4fbf 0%, #22b8cf 100%);
}

.host-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: -0.35rem 0 1rem;
  max-width: 62ch;
}

.criteria-rows {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 540px;
}

.criteria-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto auto;
  gap: 0.5rem 0;
  align-items: center;
  padding: 0.55rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
}

.criteria-row .criteria-label {
  color: var(--text);
  font-weight: 500;
}

.star-picker {
  display: flex;
  gap: 0.08rem;
  min-width: 140px;
  width: auto;
  justify-content: flex-end;
  justify-self: end;
}

.star-picker button {
  margin: 0;
  padding: 0 0.12rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  color: #cfd6e0;
  font-family: inherit;
}

.star-picker button.is-on {
  color: #b8860b;
}

.star-picker button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.criteria-ref {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 2.2rem;
  margin-left: -1px;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .pros-cons {
    grid-template-columns: 1fr 1fr;
  }
}

.pros-cons .box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.pros-cons h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 600;
}

.pros-cons ul.voteable-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.voteable-list .point-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 0.75rem;
  align-items: start;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text);
}

.voteable-list .point-row:last-child {
  border-bottom: none;
}

.point-pending {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #fff4e5;
  color: #9a4b00;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}

.point-row--pending {
  opacity: 0.92;
  background: #fffdf8;
}

.point-text {
  color: var(--muted);
  line-height: 1.45;
}

.point-thumbs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.point-thumbs button {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  font-family: inherit;
}

.point-thumbs button:hover {
  border-color: var(--muted);
}

.point-thumbs button.is-chosen-up {
  border-color: #2e9d5c;
  background: rgba(46, 157, 92, 0.1);
}

.point-thumbs button.is-chosen-down {
  border-color: #c45c4a;
  background: rgba(196, 92, 74, 0.1);
}

.point-count {
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 2.5rem;
  text-align: center;
}

.add-point-form {
  position: relative;
  margin-top: 0.5rem;
}

.captcha-hint {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.add-point-form .hp-trap-pro,
.add-point-form .hp-trap-con {
  position: absolute;
  left: -9999px;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.add-point-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.add-point-row input[type="text"] {
  flex: 1 1 160px;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  font-family: inherit;
}

.add-captcha-input {
  width: 4.5rem;
  flex: 0 0 auto;
}

.add-point-row button {
  padding: 0.45rem 0.75rem;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}

.add-point-row button:hover {
  background: var(--accent-hover);
}

.add-point-msg {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  min-height: 1.2em;
}

.add-point-msg.error {
  color: #9b1c1c;
}

.add-point-msg.ok {
  color: #1d6b3a;
}

.pros-cons .box--pros {
  border-left: 3px solid #2e9d5c;
}

.pros-cons .box--cons {
  border-left: 3px solid #c45c4a;
}

.host-promos {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
}

.host-promos-note {
  margin-top: 0;
  margin-bottom: 0.8rem;
  max-width: 75ch;
}

.host-promo-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.host-promo-list li + li {
  margin-top: 0.45rem;
}

.host-promo-list code {
  font-size: 0.86em;
}

.host-promos-link {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.host-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}

.host-info-table th,
.host-info-table td {
  padding: 0.55rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.host-info-table th {
  width: 42%;
  max-width: 220px;
  color: var(--muted);
  font-weight: 600;
  background: #f8fafc;
}

.host-info-table tr:last-child th,
.host-info-table tr:last-child td {
  border-bottom: none;
}

.host-tariffs {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.host-tariffs-fallback {
  padding: 1.1rem 1.15rem 1.2rem;
  line-height: 1.5;
}

.host-tariffs-fallback p {
  margin: 0 0 0.65rem;
  color: var(--muted, #5b6472);
  font-size: 0.95rem;
}

.host-tariffs-fallback p:last-child {
  margin-bottom: 0;
}

.host-tariffs-from {
  color: var(--text, #1a1f2b) !important;
}

.host-tariffs-cta {
  font-weight: 650;
  text-decoration: none;
}

.host-tariffs-cta:hover {
  text-decoration: underline;
}

.host-section[aria-labelledby="tariffs-heading"] .host-note {
  max-width: none;
}

.host-section[aria-labelledby="reviews-heading"] .host-note {
  max-width: none;
}

.host-section[aria-labelledby="pc-heading"] .host-note {
  max-width: none;
}

.host-tariffs table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 480px;
}

.host-tariffs th,
.host-tariffs td {
  padding: 0.6rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.host-tariffs thead th {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.host-tariffs tbody tr:last-child td {
  border-bottom: none;
}

.host-vote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.scores-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.2rem;
  align-items: start;
}

.host-vote-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.95rem 1rem;
}

.host-vote-box > h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.host-vote-box .host-note {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

@media (min-width: 900px) {
  .scores-layout {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
  }
}

.host-vote p {
  margin: 0;
  font-size: 0.92rem;
}

.host-vote .vote-btns {
  display: flex;
  gap: 0.5rem;
}

.host-vote button {
  padding: 0.45rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
}

.host-vote button:hover {
  border-color: var(--muted);
}

.host-vote button.is-selected {
  border-color: var(--accent);
  background: rgba(29, 108, 245, 0.08);
  color: var(--accent);
}

.host-vote .vote-counts {
  font-size: 0.85rem;
  color: var(--muted);
}

.review-form {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  margin-top: 0;
  margin-bottom: 1.75rem;
}

.review-form h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.review-form .field {
  margin-bottom: 0.85rem;
}

.review-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.review-form input[type="text"],
.review-form input[type="email"],
.review-form input[type="number"],
.review-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
}

.review-form input[type="number"] {
  max-width: 8rem;
}

.review-form textarea {
  min-height: 100px;
  resize: vertical;
}

.review-form .hp-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.review-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.review-form button[type="submit"] {
  padding: 0.55rem 1.2rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

.review-form button[type="submit"]:hover {
  background: var(--accent-hover);
}

.review-form .form-msg {
  font-size: 0.88rem;
  margin: 0;
}

.review-form .form-msg.error {
  color: #9b1c1c;
}

.review-form .form-msg.ok {
  color: #1d6b3a;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.review-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.25rem 0 1.25rem;
}

.review-page-btn {
  border: 1px solid #9bb7ff;
  background: #fff;
  color: #173a8f;
  border-radius: 8px;
  padding: 0.4rem 0.68rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(16, 48, 128, 0.08);
}

.review-page-btn:hover:not(:disabled) {
  border-color: #4f7cff;
  background: #f2f7ff;
}

.review-page-btn.is-active {
  border-color: #2f63ff;
  background: #2f63ff;
  color: #fff;
  box-shadow: 0 6px 14px rgba(30, 84, 220, 0.28);
}

.review-page-btn:disabled,
.review-page-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.review-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  padding-bottom: 2.35rem;
}

.review-item .review-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
}

.review-item .review-author {
  font-weight: 600;
}

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

.review-item .review-stars {
  color: #b8860b;
  font-size: 0.9rem;
}

.review-item .review-body {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
  margin: 0;
  white-space: pre-wrap;
}

.review-item .review-body.is-collapsed {
  max-height: calc(0.92rem * 1.45 * 10);
  overflow: hidden;
  position: relative;
}

.review-item .review-body.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.4em;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--surface));
}

.review-expand-btn {
  margin-top: 0.55rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--accent);
  border-radius: 7px;
  padding: 0.3rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.review-expand-btn:hover {
  border-color: var(--accent);
  background: #f6f9ff;
}

.review-item-footer {
  position: absolute;
  right: 0.75rem;
  bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.review-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  line-height: 1.2;
}

.review-vote-btn:hover {
  border-color: var(--muted);
}

.review-vote-btn--up {
  color: #1d6b3a;
  border-color: rgba(29, 107, 58, 0.35);
}

.review-vote-btn--up.is-active {
  background: rgba(29, 107, 58, 0.12);
  border-color: #2e9d5c;
}

.review-vote-btn--down {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.35);
}

.review-vote-btn--down.is-active {
  background: rgba(180, 35, 24, 0.1);
  border-color: #c45c4a;
}

.review-vote-count {
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.demo-banner {
  background: #eef4ff;
  border: 1px solid #c5d4f0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: #3a4a63;
  margin-bottom: 1.5rem;
}
