/* KupiVPS UI system — Vercel/Linear-строгий. Подключается ПОСЛЕ style.css и вытесняет его. */
:root{
  --bg:#f6f7f9;--surface:#fff;--border:#e5e7eb;--border-strong:#d1d5db;
  --text:#0f172a;--text-2:#475569;--text-3:#94a3b8;
  --accent:#2563eb;--accent-hover:#1d4ed8;--accent-soft:#eff6ff;
  --success:#16a34a;--danger:#dc2626;--warn:#d97706;
  --radius:10px;--radius-sm:6px;
  --shadow-1:0 1px 2px rgba(15,23,42,.06);--shadow-2:0 8px 24px rgba(15,23,42,.08);
  --font:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
}
html{-webkit-font-smoothing:antialiased}
body{font-family:var(--font)!important;background:var(--bg)!important;color:var(--text)}
body *{font-family:inherit}
a{color:inherit}

/* ---------- шапка ---------- */
.menu{height:64px!important;box-shadow:none!important;border-bottom:1px solid var(--border)!important}
.menu nav{width:90%!important;max-width:1200px!important}
.menu img{height:34px!important}
.menu_items{gap:4px!important;align-items:center!important}
.menu_item{font-size:14px!important;font-weight:500!important;color:var(--text-2)!important;padding:8px 12px!important;border-radius:var(--radius-sm)!important}
.menu_item::after{display:none!important}
.menu_item:hover{background:var(--bg)!important;color:var(--text)!important}
.menu_item_active{background:var(--accent-soft)!important;color:var(--accent)!important;font-weight:600!important}
@media (min-width:1151px){#ad_block_top{padding-top:5.5rem!important}}

/* ---------- кнопки ---------- */
.ui-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 16px;border-radius:8px;font-size:14px;font-weight:600;line-height:1;text-decoration:none;cursor:pointer;border:1px solid transparent;white-space:nowrap;transition:background .15s,border-color .15s,color .15s,box-shadow .15s;box-sizing:border-box}
.ui-btn-primary{background:var(--accent);color:#fff}
.ui-btn-primary:hover{background:var(--accent-hover);box-shadow:0 4px 12px rgba(37,99,235,.25)}
.ui-btn-secondary{background:var(--surface);color:var(--text);border-color:var(--border-strong)}
.ui-btn-secondary:hover{border-color:var(--accent);color:var(--accent)}
.ui-btn-ghost{background:transparent;color:var(--text-2);border-color:transparent}
.ui-btn-ghost:hover{background:var(--bg);color:var(--text)}
.ui-btn-sm{height:34px;padding:0 12px;font-size:13px}
.ui-btn-lg{height:48px;padding:0 24px;font-size:15px}
.ui-btn .arr{font-weight:700}

/* ---------- общие примитивы ---------- */
.ui-badge{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px;border-radius:999px;font-size:12px;font-weight:600;background:var(--bg);color:var(--text-2);border:1px solid var(--border)}
.ui-badge-accent{background:var(--accent-soft);color:var(--accent);border-color:#dbe4ff}
.ui-badge-success{background:#f0fdf4;color:var(--success);border-color:#bbf7d0}
.ui-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-1)}
.ui-muted{color:var(--text-3)}
.ui-num{font-variant-numeric:tabular-nums}

/* ---------- главная: hero + фильтр ---------- */
.home_hero>div:first-child{font-size:30px!important;letter-spacing:-.01em}
.home_hero>div:last-child{color:var(--text-2)!important}
.filters{border-radius:12px!important;box-shadow:var(--shadow-1)!important;border:1px solid var(--border)!important}
.input_filter{border-radius:8px!important;border-color:var(--border-strong)!important}
.active_input_filter_name,.input_filter_name{font-size:13px!important;color:var(--text-2)!important}
.more_filters_btn{border-radius:8px!important;border:1px solid var(--border-strong)!important;background:var(--surface)!important;font-weight:500!important;font-size:14px!important;box-shadow:none!important}
.show_result_btn{border-radius:8px!important;background:var(--accent)!important;box-shadow:none!important;font-weight:600!important}
.show_result_btn:hover{background:var(--accent-hover)!important;transform:none!important;box-shadow:0 4px 12px rgba(37,99,235,.25)!important}

/* ---------- строка тарифа (главная + страница хостера) ---------- */
.server_card{border:1px solid var(--border)!important;border-radius:var(--radius)!important;box-shadow:var(--shadow-1)!important;background:var(--surface)!important;transition:border-color .15s,box-shadow .15s}
.server_card:hover{border-color:var(--border-strong)!important;box-shadow:var(--shadow-2)!important}
.card_characteristics{font-size:12px!important;color:var(--text-3)!important;font-weight:500!important;text-transform:none!important}
.card_characteristics_value{font-size:15px!important;font-weight:600!important;color:var(--text)!important}
.outline_charac{color:var(--accent)!important;font-weight:500!important;font-size:13px!important}
.company_site_btn{background:transparent!important;color:var(--text-2)!important;font-size:12px!important;font-weight:500!important;height:auto!important;width:auto!important;padding:2px 0!important}
.price_column{align-items:flex-end!important}
.ui-pricebox{display:flex;flex-direction:column;align-items:flex-end;gap:8px;min-width:200px}
.ui-price{font-size:20px;font-weight:700;color:var(--text);letter-spacing:-.01em;line-height:1}
.ui-price small{font-size:12px;font-weight:500;color:var(--text-3);margin-left:4px}
.ui-rowactions{display:flex;align-items:center;gap:8px}
.card_info_btn{border:1px solid var(--border-strong)!important;background:var(--surface)!important;border-radius:8px!important;width:34px!important;height:34px!important;box-shadow:none!important}
.card_comparison_btn{height:34px!important;padding:0 12px!important;border-radius:8px!important;background:var(--surface)!important;color:var(--text)!important;border:1px solid var(--border-strong)!important;font-size:13px!important;font-weight:600!important;width:auto!important;margin:0!important;box-shadow:none!important}
.card_comparison_btn:hover{border-color:var(--accent)!important;color:var(--accent)!important}

/* результаты: сортировка */
.more_sort_btn_block{background:var(--surface)!important;color:var(--text-2)!important;border:1px solid var(--border-strong)!important;border-radius:8px!important;padding:8px 12px!important;font-size:13px!important;font-weight:500!important;box-shadow:none!important}

/* ---------- страница хостера: hero ---------- */
.hoster_seo_head{padding-top:5.5rem!important}
.hoster_seo_head h1{font-size:28px!important;letter-spacing:-.01em}
.hh{max-width:1200px;margin:16px auto 0;padding:0 20px}
.hh-card{display:grid;grid-template-columns:1fr auto;gap:24px;padding:24px 28px}
.hh-head{display:flex;align-items:center;gap:16px;min-width:0}
.hh-logo{width:64px;height:64px;border:1px solid var(--border);border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:center;flex:0 0 64px;overflow:hidden}
.hh-logo img{max-width:52px;max-height:52px;object-fit:contain}
.hh-name{font-size:22px;font-weight:700;letter-spacing:-.01em;line-height:1.2}
.hh-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.hh-about{color:var(--text-2);font-size:15px;line-height:1.6;margin-top:14px;max-width:720px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hh-cta{display:flex;flex-direction:column;align-items:flex-end;gap:10px;justify-content:center}
.hh-cta .ui-btn-lg{min-width:260px}
.hh-cta-note{font-size:12px;color:var(--text-3)}
.hh-facts{display:flex;flex-wrap:wrap;gap:0 28px;row-gap:8px;padding:14px 28px;border-top:1px solid var(--border);font-size:13px;color:var(--text-2)}
.hh-facts b{color:var(--text);font-weight:600}
.hh-facts .pay img{width:18px;height:18px;margin:0 2px;vertical-align:middle}
.tarif_card_name{font-size:15px!important;font-weight:600!important;color:var(--text)!important;background:transparent!important;border:none!important;padding:14px 20px 4px!important;text-align:left!important}
.hoster_tarif_card{margin-top:0!important}
.reviews_title,.similar_hosters h2{font-size:20px!important;font-weight:600!important}
.review_card{border:1px solid var(--border)!important;border-radius:var(--radius)!important;box-shadow:none!important}
@media (max-width:800px){.hh-card{grid-template-columns:1fr}.hh-cta{align-items:stretch}.hh-cta .ui-btn-lg{min-width:0}}

/* ---------- каталог хостеров ---------- */
.hosters_block input{border-radius:8px!important;height:44px!important;box-shadow:none!important}
.hoster_card{border:1px solid var(--border)!important;border-radius:var(--radius)!important;box-shadow:var(--shadow-1)!important;padding:18px 20px!important;gap:0!important;cursor:default!important;transform:none!important}
.hoster_card:hover{border-color:var(--border-strong)!important;box-shadow:var(--shadow-2)!important;transform:none!important}
.hc-top{display:flex;align-items:center;gap:12px}
.hc-logo{width:44px;height:44px;border:1px solid var(--border);border-radius:10px;display:flex;align-items:center;justify-content:center;flex:0 0 44px;background:#fff;overflow:hidden}
.hc-logo img{max-width:36px!important;max-height:36px!important;height:auto!important;width:auto!important;padding:0!important;object-fit:contain}
.hc-name{font-size:16px;font-weight:700;line-height:1.2}
.hc-sub{font-size:13px;color:var(--text-3);margin-top:2px}
.hc-actions{display:flex;gap:8px;margin-top:16px}
.hc-actions .ui-btn{flex:1}

/* ---------- сравнение / FAQ / футер ---------- */
.comparison_block_title{font-size:26px!important;font-weight:700!important;letter-spacing:-.01em}
.delete_all_comparisons_btn{background:transparent!important;border-color:transparent!important;color:var(--danger)!important;font-weight:500!important}
.delete_all_comparisons_btn:hover{background:#fef2f2!important;border-color:#fecaca!important}
.faq_title{font-size:28px!important;font-weight:700!important;letter-spacing:-.01em;margin-top:5.5rem!important}
.faq_item,.faq_question,.faq-item{border-radius:var(--radius)!important;box-shadow:var(--shadow-1)!important;border:1px solid var(--border)!important}
footer{background:var(--surface)!important;border-top:1px solid var(--border)!important;box-shadow:none!important;border-radius:0!important}
.site_map_title{font-size:16px!important;font-weight:600!important;color:var(--text)!important;border:none!important}
.list_title{font-size:13px!important;font-weight:600!important;color:var(--text)!important;margin-bottom:8px!important}
.site_map_list a,.site_map_list li{font-size:13px!important;color:var(--text-2)!important;line-height:1.9!important}
.site_map_list a:hover{color:var(--accent)!important}

.hh-facts{grid-column:1/-1;margin:14px -28px -24px;padding:14px 28px 18px}
/* каталог: перебить старое .hoster_card a{color:#fff} */
.hoster_card a.hc-name{color:var(--text)!important}
.hoster_card a.hc-name:hover{color:var(--accent)!important}
.hoster_card .ui-btn-secondary{color:var(--text)!important}
.hoster_card .ui-btn-secondary:hover{color:var(--accent)!important}
.hoster_card .ui-btn-primary{color:#fff!important}
.hc-logo{width:64px!important;height:48px!important;flex-basis:64px!important;border-radius:8px}
.hc-logo img{max-width:56px!important;max-height:40px!important}
/* мобайл: hero хостера не вылезает, зазор под шапкой в потоке */
@media (max-width:1150px){
  .hoster_seo_head{padding-top:1rem!important}
  .hh{padding:0 16px}
  .hh-card{grid-template-columns:1fr;padding:18px;max-width:100%;box-sizing:border-box;overflow:hidden}
  .hh-head{align-items:flex-start}
  .hh-name{word-break:break-word}
  .hh-cta{align-items:stretch}
  .hh-cta .ui-btn-lg{min-width:0;width:100%}
  .hh-facts{margin:12px -18px -18px;padding:12px 18px 16px;gap:0 18px}
}
.hh{width:100%;box-sizing:border-box}
.hh-card>*{min-width:0}
.hh-head>div{min-width:0}
@media (max-width:1150px){.hh-cta .ui-btn-lg{white-space:normal;height:auto;min-height:48px;padding:12px 16px;text-align:center;line-height:1.25}}
/* строка тарифа: высота по контенту, действия в одну линию под ценой (фикс вылезания «Сравнить») */
.server_card{height:auto!important;min-height:0!important;align-items:center!important}
.price_column{height:auto!important;justify-content:center!important}
.ui-pricebox{flex-direction:row;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px 10px;min-width:260px}
.ui-pricebox .ui-price{flex-basis:100%;text-align:right}
.ui-rowactions{order:1}
.ui-pricebox>.ui-btn-primary{order:0}
.card_comparison_btn{height:34px!important}
/* мобайл: каталог по контенту в одну колонку, зазоры под шапкой в потоке */
@media (max-width:1150px){
  #hosters_container{display:grid!important;grid-template-columns:1fr!important;gap:14px!important;width:100%!important}
  .hoster_card{height:auto!important;min-height:0!important;width:auto!important}
  .hosters_block input{margin-top:12px!important;width:100%!important}
  .faq_title,.about_page_title,.comparison_block_header{margin-top:16px!important}
}
/* спейсеры под fixed-шапку (ad_block_*_top): десктоп 5.5rem под 64px-шапку, мобайл почти ноль */
@media (min-width:1151px){[id^="ad_block_"][id$="_top"]{padding-top:5.5rem!important}}
@media (max-width:1150px){[id^="ad_block_"][id$="_top"]{padding-top:.75rem!important}}
/* обёртка контент-страниц: отступ под fixed-шапку на десктопе, минимальный на мобиле */
.page-wrap{padding:5.5rem 20px 40px}
@media (max-width:1150px){.page-wrap{padding:.75rem 16px 32px}}
/* подборки (filter pages) */
.coll-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.coll-card{padding:16px 18px}
.coll-head{display:flex;align-items:center;gap:12px}
.coll-name{font-size:16px;font-weight:700;color:var(--text)!important;text-decoration:none}
.coll-meta{font-size:12px;color:var(--text-3);margin-top:4px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.coll-price{margin-left:auto;text-align:right;flex:0 0 auto}
.coll-spec{font-size:13px;color:var(--text-2);margin-top:10px}
.coll-card .hc-actions{margin-top:12px}
.coll-table{width:100%;border-collapse:collapse;font-size:14px}
.coll-table th{text-align:left;font-size:12px;color:var(--text-3);font-weight:500;padding:10px 12px;border-bottom:1px solid var(--border);white-space:nowrap}
.coll-table td{padding:10px 12px;border-bottom:1px solid var(--border);vertical-align:middle;white-space:nowrap}
.coll-table tr:last-child td{border-bottom:none}
.coll-text{max-width:820px;margin:26px 0 0;color:var(--text-2);font-size:15px;line-height:1.7}
.coll-text h2{font-size:20px;font-weight:600;color:var(--text);margin:22px 0 8px}
.coll-text p{margin:0 0 12px}.coll-text ul{margin:0 0 12px;padding-left:20px}.coll-text li{margin:0 0 6px}
.hc-score{color:var(--success);font-weight:600}
.hh-badges .ui-badge-success{cursor:help}
@media (max-width:1150px){.coll-grid{grid-template-columns:1fr}.coll{width:100%!important;padding:0 16px;box-sizing:border-box}}
@media (min-width:1151px) and (max-width:1400px){.coll-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* акции */
.promo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.promo-card{padding:16px 18px}
.promo-head{display:flex;align-items:center;gap:12px}
.promo-disc{margin-left:auto;flex:0 0 auto;font-size:18px;font-weight:700;color:var(--success);white-space:nowrap}
.promo-title{font-size:15px;font-weight:600;color:var(--text);margin-top:12px;line-height:1.35}
.promo-desc{font-size:13px;color:var(--text-2);margin-top:6px;line-height:1.5}
.promo-code{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding:10px 12px;border:1px dashed var(--border-strong);border-radius:8px;background:var(--bg);cursor:pointer;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:15px;font-weight:600;letter-spacing:.04em}
.promo-code small{font-family:var(--font);font-size:12px;font-weight:500;color:var(--text-3);letter-spacing:0}
.promo-code:hover{border-color:var(--accent)}
.promo-card .hc-actions{margin-top:12px}
@media (max-width:1150px){.promo-grid{grid-template-columns:1fr}}
@media (min-width:1151px) and (max-width:1400px){.promo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* сравнение: квадратные логотипы не раздувать на 150px */
.comparison_block_hoster_img{width:auto!important;max-width:150px;height:auto!important;max-height:40px;object-fit:contain}
