/* rtCloud — общий стиль. Тёмная облачная тема. */

:root {
  --bg: #0a1118;
  --surface: #111c27;
  --ink: #e8f1f8;
  --muted: #8ba3b5;
  --accent: #14b8a6;
  --accent2: #3b82f6;

  --surface-2: #16242f;
  --border: #203040;
  --border-soft: #1a2835;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.75);
  --grad-accent: linear-gradient(135deg, var(--accent), var(--accent2));
  --grad-soft: linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(59, 130, 246, 0.16));
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(59, 130, 246, 0.14), transparent 60%),
    radial-gradient(700px 450px at 5% 0%, rgba(20, 184, 166, 0.12), transparent 55%);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }

/* ---------- утилиты ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--grad-accent);
  border-radius: 2px;
}

.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }

.text-muted { color: var(--muted); }

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.grad-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary {
  background: var(--grad-accent);
  color: #05121a;
  box-shadow: 0 12px 30px -12px rgba(20, 184, 166, 0.6);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--accent); }
.btn--block { width: 100%; }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: #05121a;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* фокус-стили для всех интерактивных элементов */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 17, 24, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand__logo { width: 34px; height: 34px; flex: none; }
.brand span b { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav__links a:hover { color: var(--ink); text-decoration: none; background: rgba(255, 255, 255, 0.04); }
.nav__links a.is-active {
  color: var(--ink);
  background: var(--grad-soft);
  box-shadow: inset 0 0 0 1px var(--border);
}

.nav__cta { display: inline-flex; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 72px;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.chip b { color: var(--accent); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__art {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.hero__art svg { width: 78%; height: auto; }

/* ---------- сетки карточек ---------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* ---------- статистика ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.stat__num {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* ---------- страничный заголовок ---------- */
.page-head {
  padding: 60px 0 36px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--grad-soft);
}
.page-head .lead { margin-top: 8px; }

/* ---------- таблица тарифов (карточки) ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.plan--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.plan__tag {
  position: absolute;
  top: -12px;
  right: 22px;
  background: var(--grad-accent);
  color: #05121a;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.76rem;
  padding: 5px 12px;
  border-radius: 999px;
}
.plan__name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.plan__price {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  margin: 10px 0 2px;
}
.plan__price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan__desc { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.plan__features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 11px;
}
.plan__features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.94rem;
  color: var(--ink);
}
.plan__features li::before {
  content: "";
  flex: none;
  margin-top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grad-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plan .btn { margin-top: auto; }

/* ---------- настоящая таблица сравнения ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
table.cmp {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}
table.cmp th,
table.cmp td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.94rem;
}
table.cmp thead th {
  font-family: var(--font-head);
  color: var(--ink);
  background: var(--surface-2);
  position: sticky;
  top: 0;
}
table.cmp td:first-child { color: var(--muted); }
table.cmp tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
table.cmp tbody tr:last-child td { border-bottom: none; }
.ok { color: var(--accent); font-weight: 700; }
.no { color: var(--muted); }

/* ---------- конфигуратор VPS ---------- */
.config {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: start;
}
.config__panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.slider-row { margin-bottom: 26px; }
.slider-row:last-child { margin-bottom: 0; }
.slider-row__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.slider-row__head label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
}
.slider-row__val {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  outline-offset: 4px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--grad-accent);
  border: 3px solid var(--bg);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(20, 184, 166, 0.6);
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  cursor: pointer;
}
.slider-row__scale {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 6px;
}

.config__summary {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 88px;
}
.config__summary h3 { margin-bottom: 16px; }
.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.94rem;
}
.summary-line span:first-child { color: var(--muted); }
.summary-line b { font-family: var(--font-head); }
.config__total {
  margin: 18px 0;
  text-align: center;
}
.config__total .amount {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.config__total .per { color: var(--muted); font-size: 0.9rem; }

.config__toggles { display: grid; gap: 10px; margin: 18px 0; }
.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  font-size: 0.9rem;
}
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.toggle .price { margin-left: auto; color: var(--muted); font-weight: 600; }

/* ---------- панель управления (мокап) ---------- */
.panel-mock {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.panel-mock__side {
  background: var(--surface-2);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
}
.panel-mock__side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.panel-mock__side li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}
.panel-mock__side li.is-active { background: var(--grad-soft); color: var(--ink); }
.panel-mock__side li svg { width: 18px; height: 18px; flex: none; }
.panel-mock__main { padding: 22px; }
.panel-mock__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.panel-mock__bar h3 { margin: 0; }

.server-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.02);
}
.server-row__name { font-family: var(--font-head); font-weight: 700; }
.server-row__meta { color: var(--muted); font-size: 0.85rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.badge--on { background: rgba(20, 184, 166, 0.15); color: var(--accent); }
.badge--off { background: rgba(139, 163, 181, 0.12); color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.meter {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  border: 1px solid var(--border);
}
.meter > i { display: block; height: 100%; background: var(--grad-accent); }

/* ---------- форма контактов ---------- */
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 16px;
}
.field { display: grid; gap: 7px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; }
.field input,
.field textarea,
.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.96rem;
}
.field input::placeholder,
.field textarea::placeholder { color: #5f7585; }
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2); }
.form__note {
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid var(--accent);
  color: var(--ink);
  font-size: 0.92rem;
  display: none;
}
.form__note.is-visible { display: block; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.info-list .ico {
  width: 44px; height: 44px; flex: none;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  display: grid; place-items: center;
}
.info-list .ico svg { width: 22px; height: 22px; }
.info-list b { font-family: var(--font-head); display: block; }
.info-list span { color: var(--muted); font-size: 0.92rem; }

/* ---------- CTA блок ---------- */
.cta-band {
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px;
  text-align: center;
}
.cta-band .btn { margin-top: 20px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--surface);
  padding: 48px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}
.footer-grid h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a { color: var(--ink); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid p { color: var(--muted); font-size: 0.92rem; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- адаптив ---------- */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__art { max-width: 420px; order: -1; }
  .config { grid-template-columns: 1fr; }
  .config__summary { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .panel-mock { grid-template-columns: 1fr; }
  .panel-mock__side { border-right: none; border-bottom: 1px solid var(--border); }
  .panel-mock__side ul { grid-auto-flow: column; overflow-x: auto; }
}

@media (max-width: 760px) {
  .nav__cta { display: none; }
  .burger { display: inline-flex; }
  .nav__links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform 0.28s ease;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 13px 16px; font-size: 1rem; }
}

@media (max-width: 560px) {
  .section { padding: 52px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 30px 20px; }
  .server-row { grid-template-columns: 1fr auto; }
  .server-row__meta { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
