/* Good-host.net — каталог серверов. Собственный CSS без сборки. */
:root {
    --brand: #1c5fa8;
    --brand-dark: #144a86;
    --brand-light: #e8f1fb;
    --cta: #e8862e;
    --cta-dark: #cf7220;
    --ok: #2e9e5b;
    --text: #1f2733;
    --muted: #667085;
    --line: #e4e8ef;
    --bg: #f4f6fa;
    --card: #ffffff;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 6px 20px rgba(16, 24, 40, .05);
    --container: 1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: "Roboto Condensed", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.5;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* Header */
.site-header { background: #fff; box-shadow: 0 1px 0 var(--line); position: relative; z-index: 20; }
.site-header__top { background: #0f3c6e; color: #cfe0f3; font-size: 14px; }
.site-header__top-inner { display: flex; align-items: center; gap: 16px; min-height: 38px; }
.site-header__top-link { color: #cfe0f3; }
.site-header__top-link:hover { color: #fff; }
.site-header__top-link--accent { color: #ffd9a8; }
.site-header__top-spacer { flex: 1; }
.site-header__main-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.site-logo img { display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; }
.site-nav__link { color: var(--text); font-weight: 500; padding: 8px 0; }
.site-nav__link:hover { color: var(--brand); }
.site-nav-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--text); }

/* Hero */
.hero { background: linear-gradient(135deg, #14416f 0%, #1c5fa8 100%); color: #fff; padding: 40px 0 36px; }
.hero__title { font-size: 34px; margin-bottom: 10px; }
.hero__subtitle { max-width: 760px; color: #d7e6f7; font-size: 17px; margin: 0 0 14px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; color: #bcd4ee; font-size: 15px; }
.hero__meta .dot { color: #6f97c6; }

/* Catalog layout */
.catalog { display: grid; grid-template-columns: 300px 1fr; gap: 24px; padding: 24px 16px 48px; align-items: start; }
.catalog__aside { position: sticky; top: 12px; }
.catalog__main { min-width: 0; }
.catalog__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.catalog__count { font-size: 16px; }
.catalog__sort { color: var(--muted); font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }

/* Filters */
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.filters__group { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.filters__group:last-of-type { border-bottom: 0; }
.filters__label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 15px; }
.input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; color: var(--text); background: #fff; }
.input:focus { outline: 2px solid var(--brand-light); border-color: var(--brand); }
.input--sm { padding: 7px 10px; width: auto; }
.chips { display: flex; flex-direction: column; gap: 8px; }
.chip { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 15px; }
.filters__price { display: flex; align-items: center; gap: 8px; }
.filters__price-dash { color: var(--muted); }
.filters__scroll { max-height: 230px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 10px; }
.check { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; font-size: 15px; }
.check span:first-of-type { flex: 1; }
.check__count { color: var(--muted); font-size: 13px; }
.filters__actions { display: flex; flex-direction: column; gap: 10px; }
.filters__reset { text-align: center; font-size: 14px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-align: center; transition: background .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--cta); color: #fff; }
.btn--primary:hover { background: var(--cta-dark); color: #fff; }
.btn--ghost { background: #fff; border-color: var(--brand); color: var(--brand); }
.btn--ghost:hover { background: var(--brand-light); }
.btn--block { width: 100%; }
.btn--lg { padding: 14px 22px; font-size: 18px; }

/* Offer grid & cards */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.offer-grid--compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.offer-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.offer-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.offer-card__loc { color: var(--muted); font-size: 14px; }
.offer-card__title { font-size: 17px; margin: 0 0 10px; }
.offer-card__title a { color: var(--text); }
.offer-card__title a:hover { color: var(--brand); }
.offer-card__specs { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 14px; }
.offer-card__specs li { color: var(--muted); }
.spec-ico { display: inline-block; min-width: 52px; color: #98a2b3; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.offer-card__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.offer-card__actions { display: flex; gap: 8px; }
.offer-card__actions .btn { padding: 8px 14px; font-size: 15px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.badge--dedicated { background: #e7f0fb; color: #1c5fa8; }
.badge--vps { background: #e8f7ee; color: #2e9e5b; }
.badge--cloud { background: #f3ecfd; color: #7a4fd0; }

.price { font-weight: 700; color: var(--text); font-size: 20px; }
.price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.price--lg { font-size: 28px; }
.price__period { color: var(--muted); font-size: 14px; }

/* Pagination */
.catalog__pagination { margin-top: 28px; display: flex; justify-content: center; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; }
.pager__item { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--text); font-weight: 500; }
.pager__item:hover { border-color: var(--brand); color: var(--brand); }
.pager__item--active { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager__item--disabled { color: #b6bdc9; background: #fafbfd; }
.pager__item--dots { border: 0; background: none; }

.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); }

/* Breadcrumbs */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 0 0; font-size: 14px; color: var(--muted); align-items: center; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs__current { color: var(--text); }

/* Offer page */
.offer { display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding: 16px 0 56px; align-items: start; }
.offer__body { min-width: 0; }
.offer__head { margin-bottom: 8px; }
.offer__title { font-size: 28px; margin: 10px 0; }
.offer__quick { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); }
.offer__quick li { position: relative; padding-left: 16px; }
.offer__quick li::before { content: "•"; position: absolute; left: 0; color: var(--brand); }
.offer__section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 18px; box-shadow: var(--shadow); }
.offer__h2 { font-size: 20px; margin-bottom: 14px; }
.offer__section--text p { margin: 0; color: #384152; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 500; width: 42%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.loc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.loc-list li { background: var(--brand-light); border-radius: var(--radius-sm); padding: 8px 12px; }
.loc-list__name { display: block; font-weight: 500; }
.loc-list__country { color: var(--muted); font-size: 13px; }

.offer__aside { position: sticky; top: 12px; }
.order-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.order-card__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.order-card__list { margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 15px; }
.order-card__list li { position: relative; padding-left: 22px; }
.order-card__list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.order-card__note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* Footer */
.site-footer { background: #10243c; color: #a9bdd6; margin-top: 24px; padding: 40px 0 0; }
.site-footer__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.site-footer__title { color: #fff; font-weight: 700; margin-bottom: 12px; }
.site-footer__col ul { display: flex; flex-direction: column; gap: 8px; }
.site-footer__col a { color: #a9bdd6; font-size: 15px; }
.site-footer__col a:hover { color: #fff; }
.site-footer__bottom { margin-top: 32px; border-top: 1px solid #1d3555; padding: 18px 0; font-size: 14px; color: #7f95b3; }

/* Responsive */
@media (max-width: 1000px) {
    .catalog { grid-template-columns: 1fr; }
    .catalog__aside { position: static; }
    .offer { grid-template-columns: 1fr; }
    .offer__aside { position: static; }
}
@media (max-width: 760px) {
    .site-header__top-inner { flex-wrap: wrap; gap: 6px 14px; padding: 6px 0; }
    .site-nav { display: none; width: 100%; flex-direction: column; margin: 0 0 12px; order: 3; }
    .site-nav.is-open { display: flex; }
    .site-nav-toggle { display: block; }
    .hero__title { font-size: 26px; }
    .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
    .offer-card__foot { flex-direction: column; align-items: stretch; }
    .offer-card__actions { justify-content: space-between; }
}

/* Переключатель валют */
.currency-switch { display: inline-flex; gap: 4px; margin-left: 10px; }
.currency-switch__item {
    display: inline-block; padding: 2px 8px; border: 1px solid var(--line);
    border-radius: 12px; font-size: 12px; color: var(--muted); text-decoration: none;
    line-height: 1.6;
}
.currency-switch__item:hover { border-color: var(--brand); color: var(--brand); }
.currency-switch__item.is-active {
    background: var(--brand); border-color: var(--brand); color: #fff;
}
.order-card__note { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }

/* Проверка наличия у поставщика */
.avail-row { margin-top: 10px; }
.avail-check {
    display: inline-block; padding: 0; border: 0; background: none;
    color: var(--brand); font-size: 13px; cursor: pointer; text-decoration: underline dotted;
}
.avail-check:hover { color: var(--brand-dark); }
.avail-check:disabled { color: var(--muted); cursor: wait; text-decoration: none; }
.avail-status {
    display: block; margin-top: 6px; font-size: 13px; line-height: 1.4;
}
.avail-status--ok { color: var(--ok); }
.avail-status--no { color: #c0392b; }
.avail-status--warn { color: var(--muted); }

/* Статусы активации/наличия (OneProvider: express/normal/limited/sold out) */
.offer-card__status { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.setup-chip {
    display: inline-block; padding: 2px 8px; border-radius: 10px;
    font-size: 11px; line-height: 1.6; font-weight: 600;
}
.setup-chip--fast { background: #e2f4e8; color: var(--ok); }
.setup-chip--std { background: var(--brand-light); color: var(--brand-dark); }
.setup-chip--ok { background: var(--brand-light); color: var(--brand-dark); }
.setup-chip--limited { background: #fdf0dd; color: var(--cta-dark); }
.setup-chip--out { background: #fdeaea; color: #c0392b; }
.setup-chip--dc { background: #ece9fb; color: #4b3f9e; }
