/* ============================================================
   Sibrel — landing
   Тёмная тема в стиле клиента: поверхности #1c212b,
   акцент #5c8bf5, точечная сетка на фоне.
   ============================================================ */
:root {
  --bg: #0b0f1a;
  --bg-2: #0e1424;
  --surface: #161b28;
  --surface-2: #1c212b;
  --surface-3: #232a38;
  --border: rgba(140, 160, 210, 0.14);
  --text: #eef2fa;
  --muted: #9aa7c2;
  --muted-2: #6b7894;
  --accent: #5c8bf5;
  --accent-2: #7ea4ff;
  --accent-glow: rgba(92, 139, 245, 0.45);
  --green: #43d9a3;
  --grad: linear-gradient(135deg, #7ea4ff 0%, #5c8bf5 45%, #a97ef7 100%);
  --radius: 18px;
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 700px at 75% -10%, #182042 0%, transparent 55%),
              radial-gradient(900px 600px at 0% 20%, #131a33 0%, transparent 50%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.85em;
  color: #a9c1ff;
  background: rgba(92, 139, 245, 0.12);
  border: 1px solid rgba(92, 139, 245, 0.25);
  padding: 1px 6px;
  border-radius: 6px;
}

/* --- фон: сетка точек как в приложении --- */
.bg-grid {
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(140, 160, 210, 0.12) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(1200px 800px at 60% 0%, #000 40%, transparent 100%);
          mask-image: radial-gradient(1200px 800px at 60% 0%, #000 40%, transparent 100%);
  pointer-events: none; z-index: 0;
}
.bg-glow {
  position: fixed; inset: 0;
  background:
    radial-gradient(500px 320px at 88% 20%, rgba(92,139,245,0.10), transparent 70%),
    radial-gradient(420px 300px at 8% 50%, rgba(169,126,247,0.08), transparent 70%);
  pointer-events: none; z-index: 0;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
section { position: relative; }

/* --- шапка --- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 26, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  max-width: var(--maxw); margin: 0 auto; padding: 14px 20px;
}
.nav.scrolled { border-bottom-color: var(--border); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 11px; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: 0.3px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .18s; }
.nav-links a:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 15px;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #4b76e0 100%);
  color: #fff; box-shadow: 0 8px 22px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px var(--accent-glow); }
.btn-ghost { background: rgba(140,160,210,0.06); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: rgba(140,160,210,0.12); transform: translateY(-2px); }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* --- переключатель языка --- */
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; align-items: center; gap: 7px;
  height: 42px; padding: 0 13px;
  border-radius: 12px; cursor: pointer; color: var(--text);
  background: rgba(140,160,210,0.07); border: 1px solid var(--border);
  font-weight: 600; font-size: 13.5px;
  transition: background .18s, border-color .18s, transform .15s;
}
.lang:hover { background: rgba(140,160,210,0.14); border-color: rgba(92,139,245,0.5); transform: translateY(-1px); }
.lg-icon { width: 18px; height: 18px; fill: var(--muted); transition: fill .18s; }
.lang:hover .lg-icon { fill: var(--text); }

/* Меню языков: семь версий сайта, поэтому вместо одной ссылки — выпадающий список. */
.lang-wrap { position: relative; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 30;
  min-width: 180px; margin: 0; padding: 8px; list-style: none;
  background: #121a26; border: 1px solid #344154; border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.55);
}
.lang-menu[hidden] { display: none; }
.lang-menu a {
  display: block; padding: 9px 12px; border-radius: 8px;
  color: #c3cfe0; font-size: 0.9375rem; text-decoration: none;
}
.lang-menu a:hover, .lang-menu a:focus-visible { background: #1d293b; color: #fff; }
.lang-menu a[aria-current="true"] { color: #93baff; font-weight: 600; }
@media(max-width:480px){ .lang-menu { right: -12px; min-width: 160px; } }

/* --- HERO --- */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding-top: 70px; padding-bottom: 40px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #cfe0ff;
  background: rgba(92, 139, 245, 0.12); border: 1px solid rgba(92, 139, 245, 0.3);
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -1px; margin-bottom: 18px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 17.5px; max-width: 54ch; margin-bottom: 26px; }
.lead strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-points { list-style: none; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.hero-points b { color: var(--text); font-weight: 600; }

/* --- телефонный мокап приложения --- */
.hero-visual { position: relative; }

/* A small, non-interactive version of the current application window. */
.hero .hero-visual { padding: 0; border: 0; background: none; }
.app-preview { overflow: hidden; padding: 7px; border: 1px solid #414857; border-radius: 16px; background: #202530; box-shadow: 0 24px 64px #0005; }
.preview-titlebar { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 27px; margin-bottom: 7px; padding: 3px 9px; border-radius: 10px; background: #303646; color: #eef0f6; font-size: 10px; }
.preview-titlebar img { height: auto; }
.preview-titlebar > span { position: absolute; right: 9px; color: #d4d9e3; font-size: 15px; }
.preview-layout { display: grid; grid-template-columns: 34px 106px minmax(0, 1fr) 108px; grid-template-rows: minmax(0, 1fr) 36px; gap: 6px; height: 338px; font-size: 10px; line-height: 1.4; color: #dfe3ed; }
.preview-layout > * { min-width: 0; }
.preview-servers, .preview-channels, .preview-chat, .preview-voice, .preview-profile, .preview-composer { border-radius: 12px; }
.preview-servers { display: flex; flex-direction: column; align-items: center; gap: 8px; background: #262c39; padding: 8px 3px; }
.preview-server { position: relative; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #343d50; color: #e9ecf5; font-size: 11px; font-weight: 650; }
.preview-server.is-selected { background: #8e4462; }
.preview-server.is-selected::before { content: ''; position: absolute; left: -5px; width: 3px; height: 20px; border-radius: 4px; background: #e5e9f5; }
.preview-server.is-selected img { filter: brightness(0) invert(1); height: auto; }
.preview-server-peach { background: #b27864; }
.preview-server-violet { background: #756299; }
.preview-server-green { background: #597e76; }
.preview-server-add { margin-top: auto; font-size: 23px; font-weight: 400; }
.preview-icon { display: inline-block; flex: 0 0 auto; width: 15px; height: 15px; background: currentColor; mask: var(--preview-icon) center/contain no-repeat; -webkit-mask: var(--preview-icon) center/contain no-repeat; }
.preview-channels { padding: 7px; background: #303747; overflow: hidden; }
.preview-community { padding: 8px 5px; margin-bottom: 8px; background: #292f3e; border-radius: 9px; color: #f0f2f8; font-size: 11px; font-weight: 650; }
.preview-section { margin: 11px 4px 5px; color: #9ba5b8; font-size: 8px; letter-spacing: .025em; }
.preview-channel { display: flex; align-items: center; gap: 4px; margin-bottom: 3px; padding: 5px 4px; border-radius: 4px; overflow: hidden; color: #b9c1d0; white-space: nowrap; }
.preview-channel.is-selected { background: #40526c; color: #eff3ff; }
.preview-voice-channel { margin-top: 6px; border-left: 2px solid #48cf98; background: #40576f; color: #edf6ff; }
.preview-voice-channel .preview-icon { width: 11px; height: 11px; }
.preview-voice-channel > span:not(.preview-icon) { overflow: hidden; text-overflow: ellipsis; }
.preview-voice-channel small { margin-left: auto; font-size: 7px; }
.preview-channel-user { display: flex; align-items: center; gap: 5px; padding: 4px 6px; color: #c5cbd7; }
.preview-avatar { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #fff2eb; font-size: 10px; font-weight: 650; }
.preview-avatar-peach { background: linear-gradient(135deg, #f6b28e, #ce7270); }
.preview-avatar-violet { background: linear-gradient(135deg, #b5a2d6, #7865a2); }
.preview-avatar-green { background: linear-gradient(135deg, #9ccbba, #578e80); }
.preview-channel-user .preview-avatar { width: 17px; height: 17px; font-size: 7px; }
.preview-chat { display: flex; flex-direction: column; overflow: hidden; background: #20242e; }
.preview-chat-header { display: flex; align-items: center; gap: 9px; margin: 5px; padding: 9px; border-radius: 10px; background: #191e29; }
.preview-chat-header b { margin-right: auto; color: #eff2f9; font-size: 11px; }
.preview-chat-header .preview-icon { width: 13px; height: 13px; }
.preview-messages { display: flex; flex-direction: column; flex: 1; gap: 16px; padding: 11px 8px; overflow: hidden; }
.preview-message { display: flex; align-items: flex-end; gap: 5px; max-width: 94%; }
.preview-message > div { min-width: 0; }
.preview-message b { display: block; margin: 0 0 3px 6px; color: #7ab1ff; font-size: 8px; font-weight: 600; }
.preview-message p { margin: 0; padding: 6px 7px; border-radius: 9px 9px 9px 3px; background: #303747; color: #edf0f8; font-size: 10px; line-height: 1.45; }
.preview-message time { display: block; padding: 3px 5px 0; color: #8590a3; font-size: 7px; }
.preview-message.is-own { align-self: flex-end; text-align: right; }
.preview-message.is-own p { border-radius: 9px 9px 3px 9px; background: #234566; }
.preview-chat-note { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: auto; color: #8995aa; font-size: 8px; }
.preview-chat-note .preview-icon { width: 11px; height: 11px; }
.preview-voice { padding: 6px; background: #121621; }
.preview-voice-header, .preview-participant-count, .preview-participant { display: flex; align-items: center; gap: 6px; padding: 8px 6px; margin-bottom: 6px; border-radius: 9px; background: #202532; }
.preview-voice-header b { font-size: 9px; }
.preview-voice-header small { display: block; color: #939eb2; font-size: 8px; }
.preview-participant-count { padding-block: 5px; color: #9ca8be; font-size: 8px; }
.preview-participant-count b { padding: 1px 4px; border-radius: 4px; background: #2a3243; color: #c6cfde; }
.preview-participant b { display: block; font-size: 9px; font-weight: 600; }
.preview-participant small { color: #939eb2; font-size: 8px; }
.preview-avatar.is-speaking::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 7px; height: 7px; border: 2px solid #202532; border-radius: 50%; background: #3ed28a; }
.preview-profile { grid-column: 1 / 3; display: flex; align-items: center; gap: 5px; padding: 5px 7px; background: #303747; }
.preview-profile b { font-size: 9px; }
.preview-profile small { padding: 1px 3px; border: 1px solid #5a739c; border-radius: 4px; color: #8ab6f9; font-size: 7px; }
.preview-profile .preview-icon { margin-left: auto; color: #9aa5b8; width: 12px; height: 12px; }
.preview-composer { display: flex; align-items: center; gap: 7px; padding: 6px 9px; background: #303747; color: #909cb0; }
.preview-composer > span:not(.preview-icon) { flex: 1; font-size: 9px; }
.preview-composer .preview-icon { width: 13px; height: 13px; }
.preview-voice-controls { display: flex; align-items: center; justify-content: center; gap: 4px; }
.preview-control { display: grid; place-items: center; flex: 1; height: 30px; border-radius: 9px; background: #2c3548; color: #eef0f8; }
.preview-control .preview-icon { width: 12px; height: 12px; }
.preview-control.is-disconnect { background: #e86b74; font-size: 20px; }
@media (min-width: 851px) and (max-width: 1190px) {
  .preview-layout { grid-template-columns: 30px 90px minmax(0, 1fr); }
  .preview-voice, .preview-voice-controls { display: none; }
}
@media (max-width: 560px) {
  .preview-layout { grid-template-columns: 30px 87px minmax(0, 1fr); height: 325px; }
  .preview-voice, .preview-voice-controls { display: none; }
}
@media (max-width: 380px) {
  .preview-layout { grid-template-columns: 29px minmax(0, 1fr); }
  .preview-channels { display: none; }
  .preview-profile { grid-column: 1; padding: 5px 2px; }
  .preview-profile > :not(.preview-avatar) { display: none; }
}
.release-note { text-align: center; color: #bac9df; font-size: .875rem; max-width: 72ch; margin: 14px auto 0; }
.phone {
  width: 100%; max-width: 430px; aspect-ratio: 9 / 12;
  border-radius: 30px; overflow: hidden; position: relative;
  border: 1px solid var(--border);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7), 0 0 60px -20px rgba(92,139,245,0.35);
  background: var(--surface);
}
.phone-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--surface-3);
  border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted);
}
.online-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(67,217,163,0.2); }
.phone-body { display: grid; grid-template-columns: 46px 120px 1fr; height: calc(100% - 46px); }
.side { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 10px; background: var(--bg-2); }
.side-row { width: 26px; height: 26px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); }
.side-row.active { background: var(--grad); box-shadow: 0 0 0 3px rgba(92,139,245,0.25); }
.channels { background: var(--surface); padding: 14px 10px; border-right: 1px solid var(--border); }
.ch-title { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted-2); margin-bottom: 10px; }
.ch-item { font-size: 12.5px; color: var(--muted); padding: 6px 9px; border-radius: 8px; margin-bottom: 4px; }
.ch-item.on { color: #fff; background: rgba(92,139,245,0.22); }
.chat { display: flex; flex-direction: column; background: var(--surface-2); min-width: 0; }
.chat-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13.5px; font-weight: 600; }
.ch-tag { font-weight: 500; color: var(--muted-2); font-size: 11px; background: rgba(92,139,245,0.12); padding: 2px 8px; border-radius: 999px; }
.chat-scroll { flex: 1; padding: 12px 12px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.msg { display: flex; gap: 9px; }
.avatar {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff;
}
.avatar.small { width: 20px; height: 20px; font-size: 10px; border-radius: 6px; }
.a1 { background: linear-gradient(135deg, #7ea4ff, #4b76e0); }
.a2 { background: linear-gradient(135deg, #ff9a8a, #f5697e); }
.a3 { background: linear-gradient(135deg, #43d9a3, #25b48a); }
.msg-main { min-width: 0; }
.msg-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; margin-bottom: 3px; }
.msg-meta time { color: var(--muted-2); }
.host { color: #a97ef7; font-size: 10px; background: rgba(169,126,247,0.12); padding: 1px 6px; border-radius: 999px; }
.bubble {
  font-size: 12px; color: var(--text); background: var(--surface-3);
  padding: 7px 10px; border-radius: 10px 10px 10px 3px; max-width: 200px;
}
.bubble.loc { background: rgba(67,217,163,0.12); color: #c9f4e4; }
.composer {
  display: flex; align-items: center; gap: 8px; margin: 0 12px 12px;
  padding: 8px 10px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--border);
}
.composer-input { flex: 1; font-size: 12px; color: var(--muted-2); }
.composer-ico { width: 18px; height: 18px; border-radius: 6px; background: var(--accent); -webkit-mask: url(assets/icons/send.svg) center/contain no-repeat; mask: url(assets/icons/send.svg) center/contain no-repeat; }

/* плавающие карточки */
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(28, 33, 43, 0.9); border: 1px solid var(--border); border-radius: 14px;
  padding: 10px 14px; backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.45); animation: floaty 5s ease-in-out infinite;
}
.float-card b { display: block; font-size: 13px; }
.float-card small { color: var(--muted-2); font-size: 11px; }
.fc-1 { top: 46%; left: -32px; animation-delay: 0s; }
.fc-2 { bottom: 26%; right: -38px; animation-delay: 1.2s; }
.fc-3 { top: 18%; right: -36px; animation-delay: 2.2s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.fc-ico { width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto; background: rgba(92,139,245,0.16); }
.fc-ico.lock { -webkit-mask: url(assets/icons/lock.svg) center/55% no-repeat; mask: url(assets/icons/lock.svg) center/55% no-repeat; }
.fc-ico.net { -webkit-mask: url(assets/icons/group.svg) center/55% no-repeat; mask: url(assets/icons/group.svg) center/55% no-repeat; }
.fc-ico.up { -webkit-mask: url(assets/icons/activity.svg) center/55% no-repeat; mask: url(assets/icons/activity.svg) center/55% no-repeat; }

/* --- strip (лёгкий) --- */
.strip { padding: 70px 0; background: var(--bg-2); border-block: 1px solid var(--border); }
.strip-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.tag {
  display: inline-block; padding: 5px 12px; margin-bottom: 14px;
  border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  color: #cfe0ff; background: rgba(92,139,245,0.14); border: 1px solid rgba(92,139,245,0.3);
}
.strip-title h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.2; font-weight: 800; letter-spacing: -0.5px; }
.strip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mstat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.mstat-num { font-size: 42px; font-weight: 800; letter-spacing: -1px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mstat-label { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* --- секции --- */
.section { padding: 88px 0; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.sec-head .tag { margin-bottom: 16px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.8px; line-height: 1.15; margin-bottom: 14px; }
.sec-head p { color: var(--muted); font-size: 16.5px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .2s, border-color .2s, background .2s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(92,139,245,0.4); background: var(--surface-2); }
.card h3 { font-size: 18px; font-weight: 700; margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: 14.5px; }

.c-ico {
  width: 46px; height: 46px; border-radius: 13px; display: inline-block;
  background: linear-gradient(135deg, rgba(92,139,245,0.22), rgba(169,126,247,0.16));
  border: 1px solid rgba(92,139,245,0.3);
}
.c-ico.messages { -webkit-mask: url(assets/icons/messages.svg) center/50% no-repeat; mask: url(assets/icons/messages.svg) center/50% no-repeat; }
.c-ico.group { -webkit-mask: url(assets/icons/group.svg) center/50% no-repeat; mask: url(assets/icons/group.svg) center/50% no-repeat; }
.c-ico.database { -webkit-mask: url(assets/icons/database.svg) center/50% no-repeat; mask: url(assets/icons/database.svg) center/50% no-repeat; }
.c-ico.lock { -webkit-mask: url(assets/icons/lock.svg) center/50% no-repeat; mask: url(assets/icons/lock.svg) center/50% no-repeat; }
.c-ico.theme { -webkit-mask: url(assets/icons/palette.svg) center/50% no-repeat; mask: url(assets/icons/palette.svg) center/50% no-repeat; }
.c-ico.search { -webkit-mask: url(assets/icons/search.svg) center/50% no-repeat; mask: url(assets/icons/search.svg) center/50% no-repeat; }
.c-ico.security { -webkit-mask: url(assets/icons/security.svg) center/50% no-repeat; mask: url(assets/icons/security.svg) center/50% no-repeat; }
.c-ico.send { -webkit-mask: url(assets/icons/send.svg) center/50% no-repeat; mask: url(assets/icons/send.svg) center/50% no-repeat; }
.c-ico.win { -webkit-mask: url(assets/icons/windows11.svg) center/50% no-repeat; mask: url(assets/icons/windows11.svg) center/50% no-repeat; }
.c-ico.linux { -webkit-mask: url(assets/icons/linux.svg) center/55% no-repeat; mask: url(assets/icons/linux.svg) center/55% no-repeat; }
.c-ico.mac { -webkit-mask: url(assets/icons/ос-mac.svg) center/50% no-repeat; mask: url(assets/icons/ос-mac.svg) center/50% no-repeat; }
.c-ico.android { -webkit-mask: url(assets/icons/android-os.svg) center/55% no-repeat; mask: url(assets/icons/android-os.svg) center/55% no-repeat; }
.c-ico.web { -webkit-mask: url(assets/icons/website.svg) center/50% no-repeat; mask: url(assets/icons/website.svg) center/50% no-repeat; }
.c-ico.server { -webkit-mask: url(assets/icons/server.svg) center/55% no-repeat; mask: url(assets/icons/server.svg) center/55% no-repeat; }

/* --- федерация --- */
.federation { background: var(--bg-2); }
.fed-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.fed-left h3 { font-size: 22px; font-weight: 800; margin-bottom: 26px; letter-spacing: -0.4px; }
.steps { list-style: none; display: grid; gap: 24px; }
.steps li { display: flex; gap: 16px; position: relative; }
.steps li::before { content: ""; position: absolute; left: 15px; top: 40px; bottom: -24px; width: 1px; background: var(--border); }
.steps li:last-child::before { display: none; }
.step-n {
  width: 32px; height: 32px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, var(--accent), #7a55e8);
  box-shadow: 0 6px 16px var(--accent-glow);
}
.steps b { font-size: 15.5px; }
.steps p { color: var(--muted); font-size: 13.8px; margin-top: 2px; }

/* граф хостов */
.graph { position: relative; aspect-ratio: 1.1 / 1; min-height: 380px; }
.node {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 10px 14px; font-size: 13px; box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
.node small { color: var(--muted-2); font-size: 11px; display: block; }
.node-logo { width: 30px; height: 30px; border-radius: 9px; }
.n-center { left: 50%; top: 50%; transform: translate(-50%, -50%); flex-direction: column; text-align: center; padding: 18px 22px; background: var(--surface-3); border-color: rgba(92,139,245,0.4); box-shadow: 0 0 40px -6px var(--accent-glow); }
.n1 { top: 0; left: 0; animation: nodef 4.5s ease-in-out infinite; }
.n2 { top: 6%; right: 0; animation: nodef 5s ease-in-out infinite 0.6s; }
.n3 { bottom: 4%; left: 10%; animation: nodef 5.5s ease-in-out infinite 1.2s; }
@keyframes nodef { 0%,100% { transform: translate(0,0); } 50% { transform: translate(0,-6px); } }
.fc-zero { position: absolute; bottom: -8px; right: 0; font-size: 12.5px; color: var(--muted-2); background: rgba(22,27,40,0.9); border: 1px solid var(--border); padding: 8px 12px; border-radius: 10px; }

/* --- хосты --- */
.hosts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hstep { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; transition: transform .2s, border-color .2s; }
.hstep:hover { transform: translateY(-5px); border-color: rgba(92,139,245,0.4); }
.hs-ico { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg, rgba(92,139,245,0.25), rgba(169,126,247,0.18)); border: 1px solid rgba(92,139,245,0.3); }
.hs-ico .i { width: 24px; height: 24px; }
.i.database { background: #fff; -webkit-mask: url(assets/icons/database.svg) center/contain no-repeat; mask: url(assets/icons/database.svg) center/contain no-repeat; }
.i.group { background: #fff; -webkit-mask: url(assets/icons/group.svg) center/contain no-repeat; mask: url(assets/icons/group.svg) center/contain no-repeat; }
.i.net { background: #fff; -webkit-mask: url(assets/icons/people-roof.svg) center/contain no-repeat; mask: url(assets/icons/people-roof.svg) center/contain no-repeat; }
.i.send { background: #fff; -webkit-mask: url(assets/icons/send.svg) center/contain no-repeat; mask: url(assets/icons/send.svg) center/contain no-repeat; }
.hstep h3 { font-size: 17px; font-weight: 700; margin: 18px 0 8px; }
.hstep p { color: var(--muted); font-size: 14px; }

/* --- скачать --- */
.download { background: var(--bg-2); border-block: 1px solid var(--border); }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: transform .2s, border-color .2s, background .2s; }
.dl-card:hover { transform: translateY(-4px); border-color: rgba(92,139,245,0.45); background: var(--surface-2); }
.dl-card h3 { font-size: 17px; font-weight: 700; margin: 14px 0 4px; }
.dl-card p { color: var(--muted); font-size: 13.5px; }
.dl-note { text-align: center; color: var(--muted-2); margin-top: 26px; font-size: 14px; }

/* --- плашки магазинов приложений --- */
.store-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 24px; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; padding: 9px 18px 9px 11px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); transition: transform .2s, border-color .2s, background .2s; }
a.store-badge:hover { transform: translateY(-3px); border-color: rgba(92,139,245,0.45); background: var(--surface-2); }
.store-badge.is-soon { opacity: .6; cursor: default; }
.store-badge-mark { width: 34px; height: 34px; flex: 0 0 34px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 17px; line-height: 1; }
/* RuStore и AppGallery подписаны настоящими иконками магазинов (assets/stores).
   Скругление и фон уже нарисованы внутри SVG, поэтому обрезать картинку не нужно. */
img.store-badge-mark { display: block; }
/* Треугольник Play: форма и цвета бренда без чужого файла логотипа. */
.store-badge-mark.is-play { border-radius: 8px; clip-path: polygon(14% 4%, 14% 96%, 95% 50%); background: conic-gradient(from 205deg, #00a0ff, #00e676 30%, #ffce00 55%, #ff3a44 80%, #00a0ff); }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge-text small { color: var(--muted-2); font-size: 11.5px; }
.store-badge-text strong { font-size: 15.5px; font-weight: 700; }

/* --- FAQ --- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq-x { position: relative; width: 14px; height: 14px; flex: 0 0 auto; }
.faq-x::before, .faq-x::after { content: ""; position: absolute; background: var(--muted); border-radius: 2px; }
.faq-x::before { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.faq-x::after { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.faq details[open] .faq-x::before { opacity: 0; }
.faq p { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* --- CTA --- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.cta p { color: var(--muted); font-size: 17px; margin-bottom: 28px; }
.cta .hero-actions { justify-content: center; margin-bottom: 0; }

/* --- разделы сайта на главной --- */
.site-sections-lead { color: var(--muted); font-size: 16px; max-width: 620px; margin-top: 14px; }
.site-sections-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 30px; margin-top: 34px; }
.site-sections-group h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.site-sections-group ul { list-style: none; display: grid; gap: 10px; }
.site-sections-group a { color: var(--muted); font-size: 15px; }
.site-sections-group a:hover { color: var(--text); }

/* --- footer --- */
footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 40px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-bottom: 26px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-logo { width: 34px; height: 34px; }
.footer-brand small { color: var(--muted-2); font-size: 12.5px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
/* Меню разделов: внутренние ссылки на разделы и подразделы. По нему Яндекс подбирает быстрые ссылки. */
.footer-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 26px; padding: 26px 0 4px; border-top: 1px solid var(--border); }
.footer-group-title { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
.footer-group ul { list-style: none; display: grid; gap: 9px; }
.footer-group a { color: var(--muted); font-size: 14px; }
.footer-group a:hover { color: var(--text); }
.copyright { color: var(--muted-2); font-size: 13px; padding-top: 20px; border-top: 1px solid var(--border); }

/* --- reveal on scroll (progressive: видно без JS, анимация только при наличии JS) --- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* --- responsive --- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-visual { margin: 0 auto; width: 100%; max-width: 400px; }
  .strip-inner { grid-template-columns: 1fr; }
  .fed-wrap { grid-template-columns: 1fr; }
  .grid, .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .hosts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 14px; background: rgba(11,15,26,0.98); padding: 20px; border-bottom: 1px solid var(--border); }
  .nav-cta { display: none; }
  .grid, .dl-grid, .hosts-grid, .strip-grid { grid-template-columns: 1fr; }
  .float-card.fc-1 { left: 0; } .float-card.fc-2 { right: 0; } .float-card.fc-3 { left: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
