:root {
  --bg: #0b0e12;
  --bg-2: #11161c;
  --bg-3: #0d1116;
  --line: #1c232c;
  --line-2: #2a333d;
  --text: #e6ebf0;
  --muted: #9aa6b2;
  --dim: #6b7680;
  --accent: #5ef0c8;
  --accent-2: #9ef7dd;
  --accent-soft: rgba(94,240,200,.06);
  --accent-soft-2: rgba(94,240,200,.08);
  --nav-bg: rgba(11,14,18,.92);
  --shadow: 0 40px 80px rgba(0,0,0,.5);
  --hot: #f0703c;
  --popular: #4f8cff;
  --radius: 8px;
  --pad: 64px;
}
[data-theme="light"] {
  --bg: #f4f6f8;
  --bg-2: #ffffff;
  --bg-3: #fbfcfd;
  --line: #dde3ea;
  --line-2: #c3ccd6;
  --text: #0f1419;
  --muted: #4a5560;
  --dim: #7a8692;
  --accent: #0ea37f;
  --accent-2: #0b8a6b;
  --accent-soft: rgba(14,163,127,.07);
  --accent-soft-2: rgba(14,163,127,.12);
  --nav-bg: rgba(244,246,248,.92);
  --shadow: 0 30px 60px rgba(15,20,25,.12);
  --hot: #e5602c;
  --popular: #2f6fe0;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 120px; }
[id] { scroll-margin-top: 120px; }
body {
  margin: 0;
  transition: background .2s, color .2s;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: 56px; }
h2 { font-size: 40px; }
h3 { font-size: 22px; }
p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

.mono { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; }
.accent { color: var(--accent); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.center { text-align: center; }
.right { text-align: right; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 26px; border-radius: 4px; font-weight: 700; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: .15s;
  white-space: nowrap;
}
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #0b0e12; }
.btn-primary:hover { background: var(--accent-2); color: #0b0e12; }
[data-theme="light"] .btn-primary, [data-theme="light"] .btn-primary:hover { color: #fff; }
.btn-outline { border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft-2); color: var(--accent-2); }
.btn-ghost { border-color: var(--line-2); color: var(--text); font-size: 14px; padding: 16px 22px; }

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--pad); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--nav-bg); backdrop-filter: blur(8px); z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--accent); }
.brand span { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 18px; color: var(--text); letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 32px; font-size: 15px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; gap: 16px; align-items: center; }
.nav-login { color: var(--muted); font-size: 15px; }
.theme-toggle { background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; }
.theme-track {
  display: block; width: 46px; height: 26px; border-radius: 13px; position: relative;
  background: var(--bg-2); border: 1px solid var(--line-2); transition: .2s;
}
.theme-toggle:hover .theme-track { border-color: var(--accent); }
.theme-thumb {
  position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #0b0e12; display: flex; align-items: center; justify-content: center;
  transition: left .2s;
}
.theme-thumb .icon-sun { display: none; }
[data-theme="light"] .theme-thumb { left: 22px; color: #fff; }
[data-theme="light"] .theme-thumb .icon-sun { display: block; }
[data-theme="light"] .theme-thumb .icon-moon { display: none; }
.burger { display: none; background: none; border: 0; padding: 6px; cursor: pointer; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); }

/* Hero */
.grid-bg {
  background-image: linear-gradient(var(--accent-soft) 1px, transparent 1px), linear-gradient(90deg, var(--accent-soft) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center;
  padding: 96px var(--pad) 80px;
}
.hero-text { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: 64px; }
.hero p { font-size: 19px; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-note { margin-left: 4px; }

.terminal {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; font-size: 13.5px; line-height: 1.75; color: var(--muted);
  box-shadow: var(--shadow); overflow-x: auto;
}
.terminal-bar { display: flex; gap: 8px; margin-bottom: 16px; }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.terminal-body div { white-space: nowrap; }
.terminal-body .line-hidden { visibility: hidden; }
.cursor { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: middle; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 var(--pad); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stats > div { padding: 28px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stat-num { font-size: 32px; }
.stat-label { font-size: 14px; color: var(--muted); }

/* Sections */
.section { padding: 96px var(--pad) 0; }
.section:last-of-type { padding-bottom: 96px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 24px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--bg-2); border: 1px solid var(--accent); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 18px; transition: .15s;
}
/*
 * Зелёная рамка теперь у всех карточек сразу, поэтому наведение показываем не цветом
 * рамки, а свечением и подъёмом — иначе отклика не было бы видно вообще.
 *
 * История правки: сначала рамка была серой, а зелёной становилась только у карточек
 * со скидкой от 20% — снаружи это читалось как случайная подсветка. При этом ховер
 * менял серый на чуть более светлый серый (не видно на белом фоне), а у акционных
 * карточек и вовсе гасил зелёный: у `.card:hover` (класс + псевдокласс) вес выше,
 * чем у `.card-featured`.
 *
 * Акция теперь отмечается значком скидки и заполненной кнопкой «Configure» —
 * рамка для этого больше не используется.
 */
.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px var(--accent-soft-2);
}
.card-tag { font-size: 13px; }
.card-specs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.price { font-size: 24px; }
.price small { font-size: 13px; color: var(--dim); }

.section-note { margin-top: 18px; }
.section-head > div { display: flex; flex-direction: column; gap: 8px; }

/* Types */
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.type-card { display: flex; flex-direction: column; gap: 12px; padding: 26px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: .15s; }
.type-card:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.type-head { display: flex; justify-content: space-between; align-items: center; }
.type-head .pick-type { margin: 0; }
.type-card h3 { font-size: 20px; }
.type-card p { font-size: 14px; line-height: 1.5; color: var(--muted); flex: 1; }
.type-link { font-size: 13px; color: var(--accent); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { padding: 32px; border-right: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; gap: 12px; }
.step:last-child { border-right: 0; }
.step-num { font-size: 13px; letter-spacing: 2px; }
.step h3 { font-size: 20px; }
.step p { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; }
.feature svg { width: 26px; height: 26px; color: var(--accent); }
.feature h3 { font-size: 17px; }
.feature p { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Locations */
.locations { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.loc { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--text); transition: .15s; }
.loc:hover { border-color: var(--accent); color: var(--text); }
.loc img { width: 34px; height: 23px; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); }
.loc-name { font-weight: 700; font-size: 15px; }

/* Home cards: flags */
.card-flags { display: flex; gap: 4px; margin-left: auto; margin-right: 8px; }
.card-flags img { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.card-top .pick-type { margin: 0; }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 700; font-size: 17px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; position: absolute; right: 8px; top: 26px; width: 9px; height: 9px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg); transition: transform .15s; }
.faq-item[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq-item[open] summary { color: var(--accent); }
.faq-item p { padding: 0 0 22px; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 760px; }

/* CTA */
.section--cta { padding-bottom: 96px; }
.cta { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 40px; align-items: center; padding: 48px; background: var(--bg-2); border: 1px solid var(--accent); border-radius: var(--radius); }
.cta > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.cta h2 { font-size: 32px; }
.cta p { font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 560px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }


/* Page head */
.page-head {
  padding: 56px var(--pad) 24px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.page-head > div { display: flex; flex-direction: column; gap: 10px; }
.page-head h1 { font-size: 48px; }

/* Catalog */
.catalog { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding: 24px var(--pad) 80px; align-items: start; }
.filters { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 100px; }
.filter-group { display: flex; flex-direction: column; gap: 12px; }
.filter-title { font-size: 12px; color: var(--dim); letter-spacing: 1px; }

.check { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; color: var(--muted); }
.check input { display: none; }
.check .box { width: 16px; height: 16px; border: 1px solid var(--line-2); border-radius: 3px; flex-shrink: 0; transition: .15s; }
.check input:checked ~ .box { background: var(--accent); border-color: var(--accent); }
.check input:checked ~ * { color: var(--text); }
.check:hover .box { border-color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { display: none; }
.chip span {
  display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 12px; padding: 6px 10px;
  border: 1px solid var(--line-2); color: var(--muted); border-radius: 4px; cursor: pointer; transition: .15s;
}
.chip input:checked ~ span { border-color: var(--accent); color: var(--accent); }

.range { -webkit-appearance: none; width: 100%; height: 4px; background: var(--line); border-radius: 2px; outline: 0; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); cursor: pointer; }
.range::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--accent); cursor: pointer; }
.range-val { font-size: 12px; }

.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-3); }
.servers { width: 100%; border-collapse: collapse; font-size: 14px; }
.servers thead { background: var(--bg-2); font-size: 12px; color: var(--dim); letter-spacing: 1px; }
.servers th { text-align: left; font-weight: 400; padding: 16px 20px; }
.servers td { padding: 18px 20px; border-top: 1px solid var(--line); vertical-align: middle; }
.servers tbody tr { transition: background .15s; }
.servers tbody tr:hover { background: var(--bg-2); }
.servers tr.out { opacity: .5; }
.srv-name { font-weight: 700; font-size: 16px; }
.servers td.right { white-space: nowrap; }
.price-sm { font-size: 17px; margin-right: 14px; }
.empty { padding: 40px; text-align: center; }

/* Configurator */
.server-config { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; padding: 32px var(--pad) 80px; align-items: start; }
.config-main { display: flex; flex-direction: column; gap: 40px; }
.config-group { display: flex; flex-direction: column; gap: 14px; }
.config-title { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; }
.config-title .mono { font-size: 12px; }

.opts { display: grid; gap: 10px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opts.wrap { display: flex; flex-wrap: wrap; }
.opt {
  display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--line-2); border-radius: 6px; font-size: 14px; color: var(--muted);
  cursor: pointer; transition: .15s;
}
.opt .mono { font-size: 13px; }
.opt:hover { border-color: var(--accent); }
.opt input { display: none; }
.opt:has(input:checked) { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.opt.on { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }

.summary {
  position: sticky; top: 100px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 20px;
}
.summary-list { margin: 0; font-size: 13px; line-height: 1.9; color: var(--muted); display: flex; flex-direction: column; }
.summary-list > div { display: flex; justify-content: space-between; gap: 16px; }
.summary-list dt { margin: 0; }
.summary-list dd { margin: 0; color: var(--text); text-align: right; }
.summary-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.summary-row.total { font-size: 16px; }
.summary-row.total .mono { font-size: 32px; }

.order-form { display: flex; flex-direction: column; gap: 24px; max-width: 560px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field input, .field textarea {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 6px; color: var(--text);
  padding: 14px 16px; font: inherit; font-size: 15px; outline: 0; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5, 8, 12, .7); backdrop-filter: blur(6px); }
.modal__dialog {
  position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 36px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; transform: translateY(12px) scale(.98); transition: transform .2s;
}
.modal.is-open .modal__dialog { transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: none; border: 1px solid transparent; border-radius: 4px; color: var(--dim); cursor: pointer; transition: .15s; }
.modal__close:hover { color: var(--text); border-color: var(--line-2); }
.modal__kicker { font-size: 13px; }
.modal__title { font-size: 30px; letter-spacing: -0.02em; }
.modal__text { font-size: 15px; line-height: 1.5; color: var(--muted); }
.modal__form { display: flex; flex-direction: column; gap: 16px; margin-top: 4px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.modal__foot { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; padding-top: 4px; }
body.modal-open { overflow: hidden; }
.modal__status { line-height: 1.5; }
.modal[data-mode="ask"] [data-mode-order], .modal[data-mode="ask"] [data-mode-contact], .modal[data-mode="order"] [data-mode-ask], .modal[data-mode="order"] [data-mode-contact], .modal[data-mode="contact"] [data-mode-ask], .modal[data-mode="contact"] [data-mode-order] { display: none; }
.modal__config { padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-3); color: var(--muted); line-height: 1.6; word-break: break-word; }
.modal__status--err { color: #ff7b7b; }
.btn:disabled { opacity: .6; cursor: default; }
/* «Я не робот» в форме входа. Виджет Google жёстко 304px шириной и не тянется, поэтому на узких
   экранах уменьшаем его целиком, иначе он вылезает за края окна и появляется горизонтальная прокрутка. */
.modal__captcha { display: flex; justify-content: center; }
@media (max-width: 400px) {
  .modal__captcha { transform: scale(.85); transform-origin: center; height: 66px; }
}
/* Notice shown in place of the sign-in form once a client is recognised (see login.php) */
.modal__moved { display: flex; flex-direction: column; gap: 14px; }
.modal__moved .btn { margin-top: 6px; }
/* Space Grotesk carries no Cyrillic. Without this the title would silently drop to a system font
   while the text kept the site face — set both to the same stack instead of pretending. */
.modal__dialog[data-notice-lang="ru"] .modal__title,
.modal__dialog[data-notice-lang="ua"] .modal__title,
.modal__dialog[data-notice-lang="ru"] .modal__moved,
.modal__dialog[data-notice-lang="ua"] .modal__moved { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.modal__dialog[data-notice-lang="ru"] .modal__title,
.modal__dialog[data-notice-lang="ua"] .modal__title { letter-spacing: -0.01em; }

/* Home cards extras */
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-badge { font-size: 12px; color: var(--hot); border: 1px solid var(--hot); border-radius: 4px; padding: 2px 7px; }
.lead { font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 640px; margin-top: 6px; }

/* Configurator: pick a server */
.pick-filters { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end; padding: 8px var(--pad) 0; }
.pick-filter { display: flex; flex-direction: column; gap: 10px; }
.pick-filters .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-filters .chip input { display: none; }
.pick-filters .chip span { display: inline-flex; align-items: center; gap: 7px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; padding: 7px 12px; border: 1px solid var(--line-2); color: var(--muted); border-radius: 4px; cursor: pointer; transition: .15s; }
.pick-filters .chip span img { width: 18px; height: 12px; border-radius: 2px; }
.pick-filters .chip:hover span { border-color: var(--accent); }
.pick-filters .chip input:checked ~ span { border-color: var(--accent); color: var(--accent); }
#pickCount { margin-left: auto; padding-bottom: 9px; }
.pick-type { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; border: 1px solid var(--line-2); color: var(--dim); margin-left: 8px; vertical-align: middle; }
.pick-type--instant { color: var(--accent); border-color: var(--accent); }
.pick-type--gpu { color: var(--popular); border-color: var(--popular); }
.pick-type--custom { color: var(--hot); border-color: var(--hot); }
.pick-disks { color: var(--accent); margin-left: 6px; }
.pick-flags { display: flex; gap: 4px; }
.pick-flags img { width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.pick { display: flex; flex-direction: column; gap: 10px; padding: 24px var(--pad) 96px; }
.pick-row {
  display: grid; grid-template-columns: 22px 52px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 20px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: .15s;
}
.pick-row:hover { border-color: var(--accent); color: var(--text); transform: translateX(4px); }
.pick-row--hot { border-color: var(--line-2); }
.pick-logo { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 6px; }
.pick-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pick-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pick-title { font-weight: 700; font-size: 17px; }
.pick-right { display: flex; align-items: center; gap: 16px; }
.pick-badge { font-size: 12px; color: var(--hot); border: 1px solid var(--hot); border-radius: 4px; padding: 2px 7px; }
.pick-price { font-size: 22px; }
.pick-price small { font-size: 12px; color: var(--dim); }
.pick-arrow { color: var(--accent); font-size: 20px; width: 24px; text-align: center; transition: transform .15s; }
.pick-row:hover .pick-arrow { transform: translateX(4px); }

/* Compare */
.pick-compare { display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pick-compare input { display: none; }
.pick-compare span { width: 18px; height: 18px; border: 1px solid var(--line-2); border-radius: 4px; transition: .15s; display: block; }
.pick-compare:hover span { border-color: var(--accent); }
.pick-compare input:checked + span { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--bg-2); }
.compare-bar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 16px; padding: 12px 18px; background: var(--bg-2); border: 1px solid var(--accent); border-radius: 8px; box-shadow: var(--shadow); }
.compare-bar button { background: none; border: 0; cursor: pointer; font-family: inherit; }
.compare { padding: 16px var(--pad) 96px; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.compare-table th, .compare-table td { padding: 12px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { vertical-align: bottom; border-bottom: 2px solid var(--line-2); }
.compare-table tbody th { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; font-weight: 400; color: var(--dim); letter-spacing: .5px; text-transform: uppercase; width: 180px; }
.compare-table td { font-weight: 500; }
.compare-table tr.is-same td { color: var(--dim); font-weight: 400; }
.compare-head { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.compare-name { font-weight: 700; font-size: 16px; }
.compare-price { font-size: 22px; }
.compare-price small { font-size: 12px; color: var(--dim); }
.compare-remove:hover { color: var(--hot); }

/* Configurator: one server */
.cfg-head { align-items: flex-start; }
.page-head > .cfg-head__main { flex-direction: row; gap: 20px; align-items: flex-start; }
.cfg-head__logo { width: 72px; height: 72px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-top: 6px; }
.cfg-head__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cfg-head h1 { font-size: 40px; margin: 4px 0 10px; }
.cfg-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13px; }
.cfg-meta .pick-type { margin: 0; }
.cfg-flag { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.cfg-flag img { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.server-config .config-main { gap: 0; border-top: 1px solid var(--line); }
.server-config .config-group { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.server-config .config-group--fixed { padding: 16px 0; }
.server-config .config-title { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; font-size: 16px; }
.config-body { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.fixed-val { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); min-height: 24px; }
.fixed-val svg { color: var(--accent); flex-shrink: 0; }
.server-config .opt { padding: 12px 14px; }
.server-config .opt.on { box-shadow: inset 0 0 0 1px var(--accent); }
.summary--cfg { gap: 18px; }
.summary-head { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.summary-logo { width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 5px; }
.summary-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.summary-name { font-weight: 700; font-size: 16px; line-height: 1.2; margin-top: 4px; }
.summary--cfg .summary-row.total .mono { font-size: 36px; }
.summary--cfg .summary-list { font-size: 12.5px; }

.cfg-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }
.cfg-discount { color: var(--hot); }
.server-config .opts { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.server-config .opt { align-items: center; gap: 14px; min-height: 50px; }
.server-config .opt > span:first-child { flex: 1; min-width: 0; line-height: 1.35; text-wrap: pretty; }
.server-config .opt > span.mono { flex-shrink: 0; white-space: nowrap; }
.opt.locked { cursor: default; border-style: dashed; }
.opt.locked:hover { border-color: var(--accent); }
.cfg-select { display: block; position: relative; }
.cfg-select select { display: none; }
/* custom dropdown (built by app.js over a hidden <select>) */
.dd { position: relative; }
.dd__trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 12px 44px 12px 16px;
  border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg-2); color: var(--text); font-size: 14px; cursor: pointer; transition: border-color .15s; position: relative;
}
.dd__trigger::after { content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg); transition: transform .15s; }
.dd:hover .dd__trigger, .dd.open .dd__trigger { border-color: var(--accent); }
.dd.open .dd__trigger::after { transform: rotate(-135deg); margin-top: -2px; }
.dd__price { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; color: var(--accent); padding: 2px 7px; border: 1px solid var(--accent); border-radius: 4px; white-space: nowrap; }
.dd__price.is-incl { color: var(--dim); border-color: var(--line-2); }
.dd__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; max-height: 320px; overflow-y: auto;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s;
}
.dd.open .dd__list { opacity: 1; visibility: visible; transform: none; }
.dd__opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 16px; font-size: 14px; color: var(--muted); cursor: pointer; border-top: 1px solid var(--line); }
.dd__opt:first-child { border-top: 0; }
.dd__opt:hover, .dd__opt.is-active { background: var(--accent-soft-2); color: var(--text); }
.dd__opt.is-selected { color: var(--accent); }
.config-group:has(.dd.open) { position: relative; z-index: 40; }
.cfg-old { text-decoration: line-through; }
.summary .btn { margin-top: 4px; }
.price-bump { animation: bump .35s ease; }
@keyframes bump { 30% { color: var(--accent); transform: scale(1.06); } }
.summary-row.total .mono { display: inline-block; }

@media (max-width: 900px) {
  .server-config .config-group { grid-template-columns: 1fr; gap: 12px; }
  .cfg-head h1 { font-size: 32px; }
}
@media (max-width: 720px) {
  .pick-row { grid-template-columns: 22px 44px minmax(0, 1fr); }
  .pick-right { grid-column: 1 / -1; justify-content: space-between; }
  #pickCount { margin-left: 0; }
}

/* Contact page */
.contact { padding: 16px var(--pad) 96px; display: flex; flex-direction: column; gap: 40px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: .15s; }
.contact-card:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.contact-mail { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 17px; color: var(--accent); word-break: break-all; }
.contact-card p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.contact-bottom { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.contact-info p { font-size: 15px; line-height: 1.6; color: var(--muted); margin-top: 6px; }
.contact-cta { padding: 28px; border: 1px solid var(--accent); border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; background: var(--bg-2); }
.contact-cta h2 { font-size: 24px; }
.contact-cta p { font-size: 14px; color: var(--muted); }

/* Status page */
.status { padding: 16px var(--pad) 96px; max-width: 900px; }
.status-banner { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); margin-bottom: 24px; font-size: 16px; }
.status-banner .small { margin-left: auto; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft-2); }
.status-banner--degraded .status-dot { background: var(--hot); box-shadow: 0 0 0 4px rgba(240,112,60,.18); }
.status-banner--outage .status-dot { background: #e5484d; box-shadow: 0 0 0 4px rgba(229,72,77,.18); }
.status-list { display: flex; flex-direction: column; gap: 12px; }
.status-item { padding: 20px 22px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--bg-2); display: flex; flex-direction: column; gap: 6px; }
.status-item--maintenance { border-left-color: var(--popular); }
.status-item--incident { border-left-color: var(--hot); }
.status-item.is-resolved { opacity: .7; }
.status-item h3 { font-size: 17px; }
.status-item p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.pick-notfound { padding: 0 var(--pad) 8px; }

/* Auth pages (forgot / reset) */
.auth-page { padding: 16px var(--pad) 96px; }
.auth-card { max-width: 460px; padding: 32px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: 16px; }
.auth-card p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Error page (404) */
.error-page { padding: 16px var(--pad) 96px; max-width: 900px; display: flex; flex-direction: column; gap: 28px; }
.error-req {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 20px; border: 1px solid var(--line); border-left: 3px solid var(--hot);
  border-radius: var(--radius); background: var(--bg-2); font-size: 14px;
}
.error-req__method { color: var(--dim); }
.error-req__path { color: var(--text); word-break: break-all; min-width: 0; }
.error-req__code { margin-left: auto; color: var(--hot); font-weight: 600; }
.error-page .lead { max-width: 620px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.error-links { display: flex; flex-direction: column; gap: 14px; }
.error-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.error-card {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
  transition: border-color .15s, background .15s;
}
.error-card:hover { border-color: var(--accent); background: var(--accent-soft); }
.error-card__title { font-weight: 600; font-size: 16px; color: var(--text); }
.error-card__text { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Legal pages */
.legal { padding: 16px var(--pad) 96px; }
.legal-body { max-width: 820px; font-size: 16px; line-height: 1.65; display: flex; flex-direction: column; gap: 16px; }
.legal-body h2 { font-size: 22px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal-body p, .legal-body li { color: var(--muted); }
.legal-body strong { color: var(--text); }
.legal-body h3 { font-size: 18px; margin-top: 12px; }
.legal-body ul, .legal-body ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 40px; padding: 56px var(--pad) 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 300px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .filter-title { margin-bottom: 4px; }
.footer-col a { color: var(--text); font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.footer-col a:hover { color: var(--accent); }
.footer-col a .dim { font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 20px var(--pad); border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }
.footer-bottom .mono { color: var(--muted); }

/* Responsive */
@media (max-width: 1100px) {
  :root { --pad: 32px; }
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: 52px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .types, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .cta { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .server-config { grid-template-columns: 1fr; }
  .summary { position: static; }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { --pad: 20px; }
  h1, .hero h1, .page-head h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  .nav { padding: 14px var(--pad); gap: 12px; }
  .nav-actions { gap: 10px; flex-shrink: 0; }
  .brand span { font-size: 16px; }
  .brand svg { width: 24px; height: 24px; }
  .theme-track { width: 40px; height: 24px; }
  .theme-thumb { width: 18px; height: 18px; }
  [data-theme="light"] .theme-thumb { left: 19px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px var(--pad); border-top: 1px solid var(--line); }
  .nav-login { display: none; }
  .nav-actions .btn { padding: 8px 12px; font-size: 13px; }
  .nav-actions .btn svg { display: none; }
  .theme-toggle { order: -1; }
  .burger { display: flex; }
  .hero { padding-top: 56px; }
  .stats { grid-template-columns: 1fr; }
  .stats > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats > div:last-child { border-bottom: 0; }
  .section { padding-top: 64px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-bottom { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .cards, .types, .features { grid-template-columns: 1fr; }
  .cta { padding: 28px; }
  .cta h2 { font-size: 26px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .error-grid { grid-template-columns: 1fr; }
  .error-actions .btn { flex: 1 1 100%; justify-content: center; }
  .error-req { font-size: 13px; gap: 8px; }
  .error-req__code { margin-left: 0; }
  .table-wrap { overflow-x: auto; }
  .servers { min-width: 720px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
}

/* Ловушка для ботов в форме обратной связи: убираем из видимости, но оставляем в разметке.
   display:none не годится — часть ботов такие поля пропускает, а нам нужно, чтобы заполняли. */
.modal__trap { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px;
               overflow: hidden; opacity: 0; pointer-events: none; }
.modal__captcha { margin: 0 0 12px; display: flex; justify-content: center; }
