/* =====================================================================
   MSH — лендинг (Multi-Server Hub). Тёмная тема в палитре приложения.
   ===================================================================== */

:root {
  --bg: #08090c;
  --surface: #0d1015;
  --surface-2: #11141b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e7e7ea;
  --muted: #8b8b96;
  --dim: #5b5b66;
  --accent: #8b5cf6;
  --accent-2: #a78bfa;
  --accent-soft: rgba(139, 92, 246, 0.12);
  --cyan: #38bdf8;
  --green: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;
  --radius: 18px;
  --radius-sm: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --shadow-lg: 0 40px 120px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(139, 92, 246, 0.35);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: rgba(113, 113, 122, 0.3);
  border-radius: 999px;
}
::-webkit-scrollbar-track {
  background: transparent;
}

img {
  max-width: 100%;
  display: block;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
}
.skip:focus {
  left: 16px;
}

.container {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

/* ------------------------------------------------------------- кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: #d4d4d8;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s, box-shadow 0.2s;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-strong);
  color: #fafafa;
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary {
  border-color: rgba(167, 139, 250, 0.4);
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(76, 29, 149, 0.35);
}
.btn.primary:hover {
  background: linear-gradient(90deg, #9d74f8, #b9a2fb);
  filter: brightness(1.03);
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn.ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.btn.secondary {
  background: rgba(255, 255, 255, 0.03);
}
.btn.lg {
  height: 50px;
  padding: 0 24px;
  font-size: 15px;
  border-radius: 14px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 500;
}
.link-arrow:hover {
  color: #ddd6fe;
}

/* ------------------------------------------------------------- шапка */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 68px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 12, 0.82);
  backdrop-filter: blur(18px);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #fafafa;
}
.brand-text small {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 2px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 20px;
}
.nav a {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
}
.nav a:hover {
  color: #fafafa;
  background: rgba(255, 255, 255, 0.05);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.menu-btn span {
  display: block;
  width: 16px;
  height: 1.6px;
  background: #d4d4d8;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.menu-btn[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(5.6px) rotate(45deg);
}
.menu-btn[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.menu-btn[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-5.6px) rotate(-45deg);
}

/* ------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 900px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(52rem 30rem at 18% 0%, rgba(139, 92, 246, 0.2), transparent 62%),
    radial-gradient(42rem 24rem at 82% 8%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(30rem 18rem at 50% 0%, rgba(52, 211, 153, 0.06), transparent 70%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 55% at 50% 20%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(60% 55% at 50% 20%, #000 30%, transparent 100%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 56px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.25);
  background: rgba(139, 92, 246, 0.08);
  color: #c4b5fd;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.9);
}
.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(2.3rem, 4.5vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.06;
  text-wrap: balance;
}
.h1-line {
  white-space: nowrap;
}
.nav-cta {
  display: none;
}
.grad {
  background: linear-gradient(92deg, #c4b5fd 0%, #a78bfa 45%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 34rem;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.65;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 26px;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust li::before {
  content: '✓';
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}
.hero-visual {
  position: relative;
}
.browser {
  position: relative;
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b0d12;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(139, 92, 246, 0.07);
  overflow: hidden;
}
.browser::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.45), rgba(56, 189, 248, 0.18), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.browser-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3f3f46;
}
.browser-bar .dot:nth-child(1) {
  background: #fb7185;
}
.browser-bar .dot:nth-child(2) {
  background: #fbbf24;
}
.browser-bar .dot:nth-child(3) {
  background: #34d399;
}
.browser-bar .url {
  margin: 0 auto;
  padding: 3px 22px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: #71717a;
  font-size: 11px;
  font-family: var(--mono);
}
.browser img {
  width: 100%;
  height: auto;
  display: block;
}
.float-card {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 20, 27, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  font-size: 12.5px;
  color: #d4d4d8;
  white-space: nowrap;
}
.fc-num {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: #c4b5fd;
  font-weight: 700;
  font-size: 12px;
}
.fc-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
}
.fc-1 {
  left: -26px;
  bottom: 16%;
  animation: floaty 9s ease-in-out infinite;
}
.fc-2 {
  right: -18px;
  top: 10%;
  animation: floaty 11s ease-in-out infinite reverse;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Сеточные элементы должны уметь сжиматься (иначе pre/код распирает колонку). */
.hero-grid > *,
.split > *,
.features > *,
.deploy-grid > *,
.security-grid > *,
.apps-grid > *,
.cta-panel > *,
.stats-grid > * {
  min-width: 0;
}
.code-block,
.code-block pre {
  max-width: 100%;
}
.deploy-copy {
  min-width: 0;
}

/* ------------------------------------------------------------- цифры */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.04), transparent 70%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 34px 0;
}
.stat-num {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fafafa;
}
.stat-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ------------------------------------------------------------- секции */

.section {
  position: relative;
  padding: 96px 0;
  scroll-margin-top: 84px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}
.section:first-of-type {
  border-top: 0;
}
.section-head {
  max-width: 680px;
  margin-bottom: 44px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.8);
}
.eyebrow::after {
  content: '';
  width: 26px;
  height: 1px;
  background: rgba(167, 139, 250, 0.4);
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  letter-spacing: -0.035em;
}
.section-lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}
.section-head.center .section-lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 620px;
}

/* ------------------------------------------------------------- было/стало */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.panel {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 30px;
}
.panel h3 {
  font-size: 17px;
  margin-bottom: 18px;
}
.panel-muted {
  background: rgba(255, 255, 255, 0.015);
}
.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tool-list li {
  position: relative;
  padding: 9px 13px 9px 30px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  color: #a1a1aa;
  font-size: 12.5px;
}
.tool-list li::before {
  content: '×';
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #52525b;
  font-size: 13px;
}
.panel-note {
  margin-top: 20px;
  color: var(--dim);
  font-size: 12.5px;
}
.panel-glow {
  border-color: rgba(167, 139, 250, 0.3);
  background:
    radial-gradient(30rem 16rem at 10% 0%, rgba(139, 92, 246, 0.16), transparent 65%),
    var(--surface);
  box-shadow: 0 30px 80px rgba(76, 29, 149, 0.16);
}
.panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.panel-badge img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  color: #d4d4d8;
  font-size: 13.5px;
  line-height: 1.5;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}
.check-list.compact li {
  font-size: 13px;
}

/* ------------------------------------------------------------- возможности */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.feature:hover {
  border-color: rgba(167, 139, 250, 0.28);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.feature h3 {
  margin: 16px 0 8px;
  font-size: 16.5px;
}
.feature p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.feature-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.feature-ico svg {
  width: 21px;
  height: 21px;
}
.tone-violet {
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.18);
}
.tone-sky {
  background: rgba(56, 189, 248, 0.1);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.18);
}
.tone-emerald {
  background: rgba(52, 211, 153, 0.1);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.18);
}
.tone-amber {
  background: rgba(251, 191, 36, 0.1);
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.18);
}
.tone-cyan {
  background: rgba(34, 211, 238, 0.1);
  color: #67e8f9;
  border-color: rgba(34, 211, 238, 0.18);
}
.tone-rose {
  background: rgba(251, 113, 133, 0.1);
  color: #fda4af;
  border-color: rgba(251, 113, 133, 0.18);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.tags span {
  padding: 3px 9px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #a1a1aa;
  font-size: 11px;
}

/* ------------------------------------------------------------- галерея */

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 22px;
}
.gallery-tab {
  height: 38px;
  padding: 0 16px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.gallery-tab:hover {
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.05);
}
.gallery-tab.active {
  color: #ede9fe;
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(167, 139, 250, 0.24);
}
.gallery-frame {
  margin: 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0d12;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}
.gallery-frame img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #0b0d12;
}
.gallery-frame figcaption {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
}

/* ------------------------------------------------------------- технологии */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(184px, 1fr));
  gap: 10px;
}
.tech-grid li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: #d4d4d8;
  font-size: 13.5px;
  transition: border-color 0.15s, background 0.15s;
}
.tech-grid li:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--surface-2);
}
.tech-grid img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 auto;
}

/* ------------------------------------------------------------- развёртывание */

.deploy-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 26px 0;
}
.steps li {
  display: flex;
  gap: 14px;
}
.steps li > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 9px;
  border: 1px solid rgba(167, 139, 250, 0.25);
  background: var(--accent-soft);
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 700;
}
.steps strong {
  display: block;
  font-size: 14px;
  color: #e4e4e7;
}
.steps p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}
.code-block {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0a0c11;
  overflow: hidden;
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.code-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3f3f46;
}
.code-bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 10.5px;
  color: var(--dim);
  font-family: var(--mono);
}
.code-block pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  color: #c4b5fd;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
}
.fine-print {
  margin-top: 12px;
  color: var(--dim);
  font-size: 12px;
}
.deploy-shot {
  position: relative;
  padding-bottom: 60px;
}
.browser.small {
  border-radius: 14px;
}
.browser.small .browser-bar {
  height: 32px;
}
.browser.small.second {
  position: absolute;
  right: -6%;
  bottom: 0;
  width: 74%;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}

/* ------------------------------------------------------------- безопасность */

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.sec-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas:
    'ico title'
    'ico text';
  align-items: start;
  gap: 4px 16px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s;
}
.sec-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--surface-2);
}
.sec-card img,
.sec-card svg {
  grid-area: ico;
  width: 48px;
  height: 48px;
  padding: 11px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(139, 92, 246, 0.07);
  object-fit: contain;
}
.sec-card h3 {
  grid-area: title;
  align-self: center;
  font-size: 15px;
  margin: 0;
}
.sec-card p {
  grid-area: text;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* ------------------------------------------------------------- приложения */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 18px;
}
.app-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}
.app-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}
.app-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-head img,
.app-head svg {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.app-head h3 {
  font-size: 15px;
}
.app-state {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
}
.app-state.ok {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
}
.app-state.soon {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.09);
  border: 1px solid rgba(251, 191, 36, 0.2);
}
.app-card p {
  color: var(--muted);
  font-size: 13px;
}
.app-card .btn {
  margin-top: auto;
}

/* ------------------------------------------------------------- FAQ */

.faq-wrap {
  max-width: 840px;
}
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  position: relative;
  padding: 18px 44px 18px 0;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  color: #e4e4e7;
  transition: color 0.15s;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  transition: transform 0.2s, color 0.2s;
}
.faq summary:hover {
  color: #fff;
}
.faq details[open] summary::after {
  content: '−';
  color: var(--accent-2);
}
.faq details p {
  padding: 0 44px 20px 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

/* ------------------------------------------------------------- CTA + форма */

.cta {
  padding-top: 40px;
}
.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  padding: 48px;
  border-radius: 24px;
  border: 1px solid rgba(167, 139, 250, 0.24);
  background:
    radial-gradient(40rem 22rem at 0% 0%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(30rem 18rem at 100% 100%, rgba(56, 189, 248, 0.08), transparent 60%),
    var(--surface);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.cta-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  max-width: 30rem;
}
.cta-copy p {
  margin: 14px 0 18px;
  max-width: 34rem;
  color: var(--muted);
  font-size: 14.5px;
}
.cta-copy .check-list {
  margin-bottom: 26px;
}
.access-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(8, 9, 12, 0.6);
  backdrop-filter: blur(10px);
}
.access-form h3 {
  font-size: 16px;
  margin-bottom: 2px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field label {
  font-size: 11.5px;
  font-weight: 500;
  color: #a1a1aa;
}
.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: #e4e4e7;
  font: inherit;
  font-size: 13.5px;
  transition: border-color 0.15s, background 0.15s;
}
.field textarea {
  resize: vertical;
  min-height: 74px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #52525b;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(255, 255, 255, 0.055);
}
.access-form .btn {
  margin-top: 6px;
  width: 100%;
  height: 46px;
}
.hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.form-note {
  min-height: 18px;
  font-size: 12.5px;
  color: var(--green);
}
.form-note.err {
  color: #fda4af;
}
.form-legal {
  color: var(--dim);
  font-size: 11px;
}

/* ------------------------------------------------------------- подвал */

.site-footer {
  border-top: 1px solid var(--line);
  background: #07080b;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p {
  margin-top: 14px;
  max-width: 22rem;
  color: var(--dim);
  font-size: 12.5px;
}
.footer-col h4 {
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #52525b;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  color: #8b8b96;
  font-size: 13px;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: #e4e4e7;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12px;
}
.footer-tag {
  color: #3f3f46;
}

/* ------------------------------------------------------------- анимации */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .feature,
  .app-card,
  .float-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ------------------------------------------------------------- адаптив */

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero-visual {
    max-width: 720px;
  }
  .fc-1 {
    left: 8px;
  }
  .fc-2 {
    right: 8px;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .deploy-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .deploy-shot {
    max-width: 640px;
  }
  .cta-panel {
    grid-template-columns: 1fr;
    padding: 36px;
    gap: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 940px) {
  .nav {
    display: none;
  }
  .nav.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line);
    background: #08090c;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
    z-index: 60;
  }
  .nav.open a {
    padding: 12px 10px;
    font-size: 15px;
  }
  .menu-btn {
    display: flex;
  }
  .header-actions .btn.ghost {
    display: none;
  }
}

@media (max-width: 940px) {
  .nav.open .nav-cta {
    display: block;
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
    color: #fff;
    font-weight: 600;
    text-align: center;
  }
}

@media (max-width: 760px) {
  .container {
    width: calc(100% - 32px);
  }
  .brand-text small {
    display: none;
  }
  .hero {
    padding: 56px 0 48px;
  }
  .hero h1 {
    font-size: clamp(2.1rem, 9vw, 2.8rem);
  }
  .lead {
    font-size: 15px;
  }
  .cta-row .btn {
    flex: 1 1 100%;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding: 28px 0;
  }
  .section {
    padding: 64px 0;
  }
  .split,
  .features,
  .security-grid,
  .deploy-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 24px;
  }
  .features {
    gap: 12px;
  }
  .feature {
    padding: 22px;
  }
  .float-card {
    display: none;
  }
  .browser-bar .url {
    padding: 3px 10px;
  }
  .gallery-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .gallery-tab {
    flex: 0 0 auto;
  }
  .tech-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .tech-grid li {
    padding: 11px 12px;
    font-size: 12.5px;
  }
  .cta-panel {
    padding: 24px;
    border-radius: 18px;
  }
  .access-form {
    padding: 18px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .deploy-shot {
    padding-bottom: 40px;
  }
  .browser.small.second {
    width: 82%;
    right: 0;
  }
}

@media (max-width: 480px) {
  .header-actions .btn.primary {
    display: none;
  }
  .hero h1 {
    font-size: clamp(1.7rem, 7.6vw, 1.95rem);
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .btn.lg {
    height: 46px;
    font-size: 14px;
  }
  .header-actions .btn.primary {
    padding: 0 14px;
    font-size: 13px;
  }
}
