:root{
  --bg:#0B0F12;
  --text:#E6F7FA;
  --text-dim:#BDE9EE;
  --accent:#00E5FF;
  --accent-2:#00FFC8;
  --overlay: rgba(0,0,0,0.28);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* предотвращаем появление горизонтальной прокрутки */
}

/* === Фиксированная ширина страницы === */
.site-frame {
  max-width: 1280px; /* максимальная ширина, но свободно меняется на узких экранах */
  margin: 0 auto; /* центрирование по горизонтали */
  position: relative;
}

/* === ФОН === */
.bg{ position:fixed; inset:0; z-index:-2; overflow:hidden; }
.bg img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  filter:blur(5px) saturate(1.05); transform:scale(1.06);
  opacity:0; transition:opacity .6s ease;
}
.bg.loaded img{ opacity:1; }
.bg-overlay{ position:absolute; inset:0; background:var(--overlay); z-index:1; }

/* === ПЛАШКА ОРИЕНТАЦИИ / НАВ === */
.site-header{ position:sticky; top:0; z-index:10; }
.nav{
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:14px 18px; margin-top:10px;
  background:rgba(8,12,14,.6);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  backdrop-filter: blur(10px);
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.brand{
  color:var(--text); text-decoration:none; font-weight:800; letter-spacing:.2px;
}
.menu{ display:flex; gap:10px; list-style:none; margin:0; padding:0; }
.menu a{ text-decoration:none; }

.pill-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 18px; border-radius:15px; text-decoration:none;
  border:1px solid transparent;
  font-weight:600; letter-spacing:.2px;
  cursor:pointer; transition: all .2s ease;
}

.ghost-btn{ background:transparent; color:var(--text); border-color:rgba(255,255,255,.18); }
.ghost-btn:hover{ border-color:rgba(255,255,255,.35); box-shadow:0 0 20px rgba(0,229,255,.15); }

/* === ГЕРОЙ === */
.hero{
  display:grid; grid-template-columns:1fr; align-items:center; justify-items:start;
  min-height:calc(100svh - 100px); padding:64px 0 56px;
}
.hero-content{ max-width:820px; width:100%; padding:0 18px; }
.hero-title{
  font-size: clamp(30px, 3.2vw, 39px);
  margin:10px 0 18px;
  text-shadow:0 0 24px rgba(0,229,255,.15);
}
.hero-sub{ font-size: clamp(16px, 1.4vw, 20px); color:var(--text-dim); margin:0 0 32px; }
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; }

/* === НОВАЯ ТАБЛИЧКА "СЕРВЕР ДРУЗЕЙ" === */
.friends-note{
  margin-top:24px;
  padding:14px 16px 16px;
  border-radius:14px;
  max-width:700px;
  background:rgba(8,12,14,.78);
  border:1px solid rgba(0,229,255,.24);
  box-shadow:0 12px 28px rgba(0,0,0,.4);
}
.friends-note-title{
  margin:0 0 8px;
  font-size:16px;
  font-weight:700;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:var(--accent);
}
.friends-note-text{
  margin:0;
  font-size:14px;
  color:var(--text-dim);
  line-height:1.4;
}

/* === Кнопка CTA === */
.cta-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 22px; border-radius:15px; font-weight:700;
  background:linear-gradient(90deg, var(--accent), var(--accent-2));
  color:#001416; box-shadow:0 0 28px rgba(0,229,255,.35), 0 0 28px rgba(0,255,200,.25);
  border:none; cursor:pointer; transition: transform .15s ease, box-shadow .2s ease;
}
.cta-btn:hover{ transform:translateY(-1px); box-shadow:0 0 36px rgba(0,229,255,.5), 0 0 36px rgba(0,255,200,.35); }
.cta-btn:active{ transform:translateY(0); }

/* === Плавающие кнопки отзывов === */
.floating-reviews{
  position:fixed; right:20px; bottom:24px; z-index:60;
  padding:12px 18px; border-radius:9999px; font-weight:600;
  text-decoration:none; color:#001416;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(90deg, #007f96, #00e5ff, #00bcd4, #007f96);
  background-size: 200% 100%;
  animation: flowLR 6s ease infinite;
  box-shadow:0 10px 30px rgba(0,229,255,.35), 0 4px 14px rgba(0,0,0,.35);
}

/* === Тост === */
.toast{
  position:fixed; left:50%; bottom:24px; transform:translateX(-50%) translateY(20px);
  background:#0b1215cc; color:var(--text); padding:10px 14px; border:1px solid rgba(255,255,255,.1);
  border-radius:12px; box-shadow:0 6px 26px rgba(0,0,0,.3); opacity:0; pointer-events:none;
  transition:opacity .2s ease, transform .2s ease; z-index:100;
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); box-shadow:0 0 24px rgba(0,229,255,.25); }

/* анимация */
@keyframes flowLR{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

/* Mobile-first подход */
@media (min-width: 320px) and (max-width: 767px) {
  /* Стили для небольших экранов (смартфонов) */
  .menu {
    display: none; /* Прячем меню по умолчанию */
  }

  .menu.is-active {
    display: block; /* Отображаем меню при активации */
  }

  .menu-toggle {
    display: block; /* Покажем кнопку гамбургера */
  }
}

@media (min-width: 768px) {
  /* Стили для планшетов и больших устройств */
  .menu {
    display: flex; /* Стандартное отображение меню */
  }

  .menu-toggle {
    display: none; /* Скроем кнопку гамбургера */
  }
}