* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: #fff;
  background: #1b1745;
}

/* яркие круги на фоне стоят на месте при прокрутке — стекло их размывает */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 25%, #ff5f9e 18vmin, transparent calc(18vmin + 1px)),
    radial-gradient(circle at 85% 75%, #3fa9ff 23vmin, transparent calc(23vmin + 1px)),
    radial-gradient(circle at 80% 15%, #ffc94d 11vmin, transparent calc(11vmin + 1px)),
    radial-gradient(circle at 30% 85%, #4dffb8 13vmin, transparent calc(13vmin + 1px)),
    linear-gradient(135deg, #1b1745, #3a2f8f);
}

a { color: inherit; text-decoration: none; }

/* эффект жидкого стекла */
.glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.6),
    inset 0 -1px 1px rgba(255, 255, 255, 0.15),
    0 10px 30px rgba(0, 0, 0, 0.25);
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
main section { margin-bottom: 32px; scroll-margin-top: 110px; }
h2 { font-size: clamp(24px, 4vw, 36px); line-height: 1.2; }
.muted { opacity: 0.7; }
.note { font-size: 13px; }
.center { text-align: center; }
.mt { margin-top: 16px; }
.more { display: inline-block; margin-top: 12px; font-weight: 600; }
.more:hover, .link:hover { opacity: 0.8; }
.link { text-decoration: underline; }
.ok { color: #4dff88; }

/* навигация */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 8px 8px 24px;
  border-radius: 999px;
  white-space: nowrap;
}
.logo { font-weight: 700; }
.links { display: flex; gap: 20px; }
.links a { opacity: 0.75; transition: opacity 0.2s; }
.links a:hover, .links a.active { opacity: 1; }
.links a.active { font-weight: 600; }

/* кнопки */
button { font: inherit; color: inherit; border: 0; cursor: pointer; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  text-align: center;
  transition: transform 0.2s;
}
.btn:hover { transform: scale(1.05); }
.btn:active { transform: scale(0.97); }
.btn.small { padding: 8px 18px; }
.btn.full { width: 100%; }
.btn.primary { background: #fff; color: #1b1745; font-weight: 600; }

/* первый экран */
.hero { padding: 160px 0 48px; text-align: center; }
.hero h1 {
  max-width: 800px;
  margin: 24px auto 16px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.1;
}
.hero p { max-width: 560px; margin: 0 auto 32px; font-size: 18px; opacity: 0.8; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.actions.left { justify-content: flex-start; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4dff88;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  from { box-shadow: 0 0 0 0 rgba(77, 255, 136, 0.7); }
  to { box-shadow: 0 0 0 10px rgba(77, 255, 136, 0); }
}

/* внутренние страницы */
.page { padding-top: 140px; }
.page-head { text-align: center; margin-bottom: 40px; }
.page-head h1 { margin: 16px 0 12px; font-size: clamp(32px, 6vw, 56px); line-height: 1.1; }
.page-head p { max-width: 560px; margin: 0 auto; font-size: 18px; opacity: 0.8; }

/* карточки */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { padding: 28px; border-radius: 28px; }
.stat b { display: block; font-size: 40px; }
.stat span { opacity: 0.7; }
.card h3 { margin: 8px 0; }
.title { text-align: center; margin-bottom: 24px; }
.list { list-style: none; margin: 16px 0 24px; }
.list li { padding: 4px 0; }
.list li::before { content: "✓  "; color: #4dff88; }

/* строки списков: статус, вакансии, контакты */
.row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.item:last-of-type { border-bottom: 0; }

/* живой график трафика */
.speed b { display: block; font-size: 36px; }
.up { color: #4dff88; }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 160px; margin-top: 24px; }
.chart i {
  flex: 1;
  height: 30%;
  border-radius: 4px;
  background: linear-gradient(to top, #3fa9ff, #ff5f9e);
  animation: load 1.2s ease-in-out infinite alternate;
}
.chart i:nth-child(2n) { animation-duration: 0.8s; }
.chart i:nth-child(3n) { animation-duration: 1.6s; animation-delay: -0.4s; }
.chart i:nth-child(4n) { animation-delay: -1s; }
.chart i:nth-child(5n) { animation-duration: 1s; animation-delay: -0.7s; }
@keyframes load { from { height: 15%; } to { height: 100%; } }
.regions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-top: 20px; }

/* бегущая лента событий */
.ticker { overflow: hidden; padding: 14px 0; border-radius: 999px; }
.ticker div { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.ticker span { padding: 0 24px; white-space: nowrap; opacity: 0.85; }
.ticker span::before { content: "● "; color: #4dff88; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* клиенты */
.clients { text-align: center; }
.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 40px;
  margin-top: 16px;
  font-size: 22px;
  opacity: 0.6;
}
.cta { text-align: center; padding: 56px 28px; }
.cta p { margin: 8px 0 28px; }

/* тарифы */
.plan { display: flex; flex-direction: column; }
.plan .price { display: block; margin-top: 16px; font-size: 36px; }
.plan .list { flex: 1; }
.plan.best { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.5); }
.tag { margin-left: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; vertical-align: middle; }

/* раскрывающиеся блоки (вопросы, блог, инциденты) */
details { padding: 18px 24px; border-radius: 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin-top: 12px; opacity: 0.8; }

/* статус */
.uptime { display: flex; gap: 3px; width: 100%; }
.uptime i { flex: 1; height: 28px; border-radius: 3px; background: #4dff88; opacity: 0.8; }
.uptime i.warn { background: #ffc94d; }

/* код в документации */
pre {
  margin-top: 12px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 14px;
  overflow-x: auto;
}

/* формы */
.form { max-width: 440px; margin: 0 auto; }
main > .form { margin-bottom: 32px; }
.form h1 { font-size: 32px; }
.form > p:first-of-type { margin-bottom: 20px; }
label { display: block; font-size: 14px; }
input, select, textarea {
  display: block;
  width: 100%;
  margin: 6px 0 16px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
}
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, 0.45); }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.15); }
option { color: #000; }
.check { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.check input { width: auto; margin: 0; accent-color: #4dff88; }
.inline { display: flex; flex-wrap: wrap; gap: 8px; max-width: 460px; margin: 20px auto 0; }
.inline input { flex: 1; min-width: 200px; margin: 0; }

/* таблица в кабинете */
.table { overflow-x: auto; margin-top: 16px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 8px; text-align: left; white-space: nowrap; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
th { font-weight: 500; opacity: 0.6; }

.bar { height: 10px; margin: 16px 0 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3fa9ff, #ff5f9e); }

/* окно и уведомление — открываются ссылкой с #id, без JavaScript */
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 16px;
  background: rgba(10, 8, 30, 0.5);
}
.modal:target { display: grid; }
.modal .form { width: 100%; }
.modal h2 { margin-bottom: 8px; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: none;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 14px 24px;
  border-radius: 999px;
}
.toast:target { display: block; animation: toast 5s forwards; }
@keyframes toast { 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

/* подвал */
.footer { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.footer div { display: flex; flex-direction: column; gap: 8px; }
.footer a { opacity: 0.7; }
.footer a:hover { opacity: 1; }
.copy { text-align: center; padding: 24px 0 32px; font-size: 14px; }

/* телефоны: меню в две строки, ссылки прокручиваются вбок */
@media (max-width: 640px) {
  .nav {
    flex-wrap: wrap;
    justify-content: space-between;
    width: calc(100% - 32px);
    padding: 8px 8px 10px 20px;
    border-radius: 24px;
    row-gap: 6px;
  }
  .links { order: 1; width: 100%; gap: 16px; overflow-x: auto; scrollbar-width: none; font-size: 14px; }
  .toast { border-radius: 20px; }
}

