/* ===== KLYK — Liquid Glass дизайн-система ===== */
:root {
  --bg:        #07070a;
  --bg-2:      #0c0c12;
  --text:      #f4f6fb;
  --muted:     #9aa0ad;
  --muted-dim: #5c616d;
  --accent:    #e5484d;
  --accent-2:  #ff6b6f;
  --accent-deep:#b02a2f;
  --online:    #3ddc84;
  --offline:   #6b7078;

  /* стекло */
  --glass-bg:     rgba(22, 22, 30, 0.55);
  --glass-bg-2:   rgba(30, 30, 42, 0.42);
  --glass-line:   rgba(255, 255, 255, 0.10);
  --glass-line-2: rgba(255, 255, 255, 0.06);
  --glass-blur:   18px;
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --radius:  20px;
  --radius-sm: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Inter", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ===== Анимированный фон: орбы + сетка + зерно ===== */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(229,72,77,0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.bg::after {
  /* тонкая сетка */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 80%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: drift 20s ease-in-out infinite;
}
.orb-1 { width: 460px; height: 460px; left: -120px; top: -80px;
  background: radial-gradient(circle, rgba(229,72,77,0.55), transparent 70%); }
.orb-2 { width: 520px; height: 520px; right: -140px; top: 120px;
  background: radial-gradient(circle, rgba(120,60,220,0.35), transparent 70%);
  animation-delay: -6s; }
.orb-3 { width: 400px; height: 400px; left: 30%; bottom: -160px;
  background: radial-gradient(circle, rgba(255,107,111,0.30), transparent 70%);
  animation-delay: -12s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, 30px) scale(1.08); }
  66%      { transform: translate(-30px, 20px) scale(0.96); }
}
/* ===== Навигация (стекло) ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--maxw);
  width: calc(100% - 32px);
  margin: 16px auto 0;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  box-shadow: var(--glass-shadow);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { display: block; filter: drop-shadow(0 4px 12px rgba(229,72,77,0.4)); }
.brand-name { font-weight: 900; letter-spacing: 0.16em; font-size: 16px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  transition: color 0.18s ease, background 0.18s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-links a.active { color: var(--text); background: rgba(229,72,77,0.16); }
.nav-links a.tg { color: var(--accent-2); }
.nav-links a.tg:hover { background: rgba(229,72,77,0.14); }

/* бургер */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--glass-line);
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle span::before { transform: translate(-50%, -7px); }
.nav-toggle span::after  { transform: translate(-50%, 5px); }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav.open .nav-toggle span::after  { transform: translate(-50%, -50%) rotate(-45deg); }
/* ===== Основа: контейнер + стеклянные карточки ===== */
main { position: relative; z-index: 1; flex: 1; width: 100%; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}
/* спекуляр-хайлайт по верхней кромке */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent) 60%, var(--accent-deep));
  color: #fff;
  box-shadow: 0 10px 28px rgba(229,72,77,0.35);
}
.btn--primary:hover { box-shadow: 0 14px 34px rgba(229,72,77,0.5); transform: translateY(-1px); }
.btn--glass {
  background: rgba(255,255,255,0.06);
  border-color: var(--glass-line);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--glass:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }
.btn--tg { background: linear-gradient(135deg, #2ea6da, #1c8fc9); color: #fff; box-shadow: 0 10px 28px rgba(30,143,201,0.35); }
.btn--tg:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(30,143,201,0.5); }
.btn.copied { background: linear-gradient(135deg, #4dee97, var(--online)); box-shadow: 0 10px 28px rgba(61,220,132,0.4); }
.btn--lg { padding: 17px 36px; font-size: 16px; }

/* иконка внутри кнопок/ссылок */
.ic { width: 1.05em; height: 1.05em; flex-shrink: 0; }
.nav-links a.tg, .footer-col a.tg { display: inline-flex; align-items: center; gap: 7px; }
.nav-toggle { border-radius: 999px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}
/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: clamp(48px, 9vw, 104px) 16px clamp(30px, 5vw, 56px);
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-mark {
  width: clamp(84px, 14vw, 120px);
  height: auto;
  filter: drop-shadow(0 14px 40px rgba(229,72,77,0.45));
  animation: floaty 5.5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(-1.5deg); }
}
.hero-title {
  margin: 18px 0 0;
  font-size: clamp(60px, 16vw, 150px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 0.92;
  background: linear-gradient(180deg, #ffffff 25%, #c3c8d2 70%, #8f95a1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,0.5));
}
.hero-eyebrow { margin-top: 20px; }
.hero-desc {
  margin: 20px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(15px, 2.4vw, 18px);
  line-height: 1.6;
}
.hero-desc strong { color: var(--text); font-weight: 700; }
.hero .cta { margin-top: 32px; }
.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-note { margin-top: 22px; color: var(--muted-dim); font-size: 13px; letter-spacing: 0.04em; }
/* ===== Секции ===== */
.section { padding: clamp(36px, 6vw, 72px) 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(28px, 4vw, 48px); }
.section-title {
  margin: 12px 0 0;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.05;
}
.hl {
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub { margin: 16px auto 0; max-width: 600px; color: var(--muted); font-size: 16px; line-height: 1.6; }

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

.card { padding: 26px; }
.card-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(229,72,77,0.25), rgba(229,72,77,0.08));
  border: 1px solid rgba(229,72,77,0.3);
  font-size: 24px;
  margin-bottom: 16px;
}
.card-title { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.card-text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Правила */
.rules { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: 0 auto; }
.rule { display: flex; gap: 18px; padding: 20px 24px; align-items: flex-start; }
.rule-num {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-deep));
  color: #fff; font-weight: 900; font-size: 16px;
  box-shadow: 0 6px 16px rgba(229,72,77,0.35);
}
.rule-title { margin: 2px 0 4px; font-size: 17px; font-weight: 800; }
.rule-text { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* Правила: разделы со списком */
.rule-group { padding: 24px 26px; margin-bottom: 16px; }
.rule-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.rule-group-ico {
  width: 42px; height: 42px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 12px; font-size: 20px;
  background: linear-gradient(135deg, rgba(229,72,77,0.25), rgba(229,72,77,0.08));
  border: 1px solid rgba(229,72,77,0.3);
}
.rule-group-title { margin: 0; font-size: 19px; font-weight: 800; }
.rule-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rule-list li { position: relative; padding-left: 22px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.rule-list li::before {
  content: ""; position: absolute; left: 3px; top: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
}
.rule-list li .pun { color: var(--accent-2); font-weight: 700; white-space: nowrap; }
.rule-list li.allow::before { background: var(--online); }
.rules-wrap { max-width: 820px; margin: 0 auto; }

/* Шаги «как зайти» */
.steps { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin: 0 auto; }
.step { display: flex; gap: 18px; padding: 20px 24px; align-items: center; }
.step-num {
  flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--glass-line);
  background: rgba(255,255,255,0.05); font-weight: 800; color: var(--accent-2);
}
.step-text { margin: 0; font-size: 15.5px; line-height: 1.5; }
.step-text code {
  background: rgba(255,255,255,0.08); padding: 2px 8px; border-radius: 6px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; color: #fff; font-size: 14px;
}

/* IP-блок */
.ip-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 26px; max-width: 560px; margin: 0 auto; }
.ip-label { color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.ip-value { font-size: clamp(22px, 5vw, 30px); font-weight: 900; letter-spacing: 0.02em; }

/* CTA-баннер */
.cta-banner { text-align: center; padding: clamp(32px, 5vw, 56px); margin: 8px 0 0; }
.cta-banner h2 { margin: 0 0 10px; font-size: clamp(24px, 4vw, 36px); font-weight: 900; }
.cta-banner p { margin: 0 auto 24px; max-width: 480px; color: var(--muted); font-size: 16px; }
/* ===== Статус ===== */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.status-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted-dim); }
.status-pill--online  { color: var(--text); border-color: rgba(61,220,132,0.4); }
.status-pill--online  .dot { background: var(--online); animation: pulse 2s infinite; }
.status-pill--offline .dot { background: var(--offline); }
.status-pill--error   .dot { background: var(--accent-deep); }
.status-pill--loading .dot { background: var(--muted-dim); animation: pulse 1.4s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61,220,132,0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(61,220,132,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); }
}

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 22px; display: flex; flex-direction: column; gap: 8px; min-height: 104px; }
.stat--wide { grid-column: 1 / -1; }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.stat-value { font-size: 26px; font-weight: 900; letter-spacing: 0.01em; }
.stat-value.online  { color: var(--online); }
.stat-value.offline { color: var(--offline); }
.stat-value--motd { font-size: 16px; font-weight: 500; color: var(--muted); white-space: pre-wrap; word-break: break-word; }
.stats-updated { margin-top: 18px; text-align: center; color: var(--muted-dim); font-size: 12px; letter-spacing: 0.04em; }

/* Тост */
.toast {
  position: fixed; left: 50%; bottom: 30px;
  transform: translate(-50%, 20px);
  background: var(--glass-bg); border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--text); padding: 13px 22px; border-radius: 14px;
  font-size: 14px; font-weight: 700; box-shadow: var(--glass-shadow);
  opacity: 0; pointer-events: none; z-index: 60;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* ===== Футер ===== */
.footer { position: relative; z-index: 1; padding: 40px 16px 28px; margin-top: 40px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 32px;
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 280px; }
.footer-brand .brand { }
.footer-tagline { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { margin: 0 0 14px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-dim); }
.footer-col a { display: block; color: var(--muted); font-size: 14.5px; padding: 5px 0; transition: color 0.18s ease; }
.footer-col a:hover { color: var(--text); }
.footer-col a.tg:hover { color: var(--accent-2); }
.footer-bottom {
  max-width: var(--maxw); margin: 20px auto 0; padding: 0 8px;
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  color: var(--muted-dim); font-size: 13px;
}
.disclaimer {
  max-width: var(--maxw); margin: 16px auto 0; padding: 0 8px;
  color: var(--muted-dim); font-size: 11.5px; line-height: 1.5; text-align: center;
  opacity: 0.8;
}
/* ===== Reveal-анимации ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2,0.7,0.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
/* ===== Адаптив ===== */
@media (max-width: 860px) {
  .grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    border-radius: var(--radius);
    background: var(--glass-bg);
    border: 1px solid var(--glass-line);
    backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    box-shadow: var(--glass-shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-cols { gap: 40px; }
}
@media (max-width: 480px) {
  .grid, .grid-2, .grid-4, .stats-grid { grid-template-columns: 1fr; }
  .cta { width: 100%; }
  .cta .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .orb, .hero-mark, .status-pill .dot { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
