/* SendDrop — True Dark Glass UI (Teal / Cyan). Без внешних зависимостей. */
:root {
  --bg: #04090d;
  --bg-2: #071319;

  /* Настоящее полупрозрачное матовое стекло */
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.095) 0%, rgba(153, 246, 228, 0.04) 48%, rgba(255, 255, 255, 0.02) 100%);
  --glass-bg-hover: linear-gradient(135deg, rgba(255, 255, 255, 0.135) 0%, rgba(45, 212, 191, 0.075) 50%, rgba(255, 255, 255, 0.035) 100%);
  --glass-tray: linear-gradient(180deg, rgba(255, 255, 255, 0.048) 0%, rgba(153, 246, 228, 0.022) 100%);

  --border: rgba(255, 255, 255, 0.13);
  --border-top: rgba(255, 255, 255, 0.28);
  --border-left: rgba(255, 255, 255, 0.19);
  --border-accent: rgba(45, 212, 191, 0.56);

  --accent: #2dd4bf;
  --accent-bright: #5eead4;
  --accent-cyan: #06b6d4;
  --accent-soft: rgba(45, 212, 191, 0.14);

  --ink: #f0fdfa;
  --ink-2: #a5bcc6;
  --ink-3: #6e8894;

  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;

  --radius: 20px;
  --radius-lg: 26px;
  --blur: blur(24px) saturate(185%);
  --glass-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.28),
    inset 0 -1px 1px rgba(45, 212, 191, 0.10),
    0 20px 50px -16px rgba(0, 0, 0, 0.68);
  --glass-shadow-hover:
    inset 0 1px 1px rgba(255, 255, 255, 0.40),
    inset 0 -1px 1px rgba(45, 212, 191, 0.22),
    0 24px 58px -14px rgba(0, 0, 0, 0.78),
    0 0 36px -10px rgba(45, 212, 191, 0.28);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #04090d 0%, #051117 50%, #03080b 100%);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Единая сцена освещения и 3D-стекла на всех страницах ---------- */
.glass-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.glass-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(153, 246, 228, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 25%, #000 25%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 25%, #000 25%, transparent 100%);
}

/* Яркие световые пятна за стеклом — именно они создают видимое размытие и преломление */
.glass-scene .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(88px);
  will-change: transform;
}
.glass-scene .orb-1 {
  width: 580px;
  height: 580px;
  top: -120px;
  right: 2%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.44) 0%, rgba(6, 182, 212, 0.22) 45%, transparent 72%);
  animation: orbDriftA 18s ease-in-out infinite alternate;
}
.glass-scene .orb-2 {
  width: 540px;
  height: 540px;
  top: 26%;
  left: -120px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.36) 0%, rgba(14, 116, 144, 0.18) 50%, transparent 72%);
  animation: orbDriftB 22s ease-in-out infinite alternate;
}
.glass-scene .orb-3 {
  width: 520px;
  height: 520px;
  bottom: -110px;
  right: 12%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.34) 0%, rgba(56, 189, 248, 0.16) 50%, transparent 74%);
  animation: orbDriftA 24s ease-in-out infinite alternate-reverse;
}
.glass-scene .orb-4 {
  width: 420px;
  height: 420px;
  top: 52%;
  left: 46%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(45, 212, 191, 0.12) 50%, transparent 74%);
  animation: orbDriftB 20s ease-in-out infinite alternate-reverse;
}

/* Диагональный световой луч для контраста при скролле под стеклом */
.glass-scene .light-beam {
  position: absolute;
  top: -15%;
  left: -10%;
  width: 120%;
  height: 130%;
  background:
    linear-gradient(122deg, transparent 34%, rgba(45, 212, 191, 0.085) 47%, rgba(153, 246, 228, 0.11) 50%, rgba(6, 182, 212, 0.06) 54%, transparent 66%);
  filter: blur(28px);
}

/* 3D-гранёные стеклянные фигуры по всему сайту */
.glass-scene .prism {
  position: absolute;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 18px rgba(45, 212, 191, 0.16));
  will-change: transform;
}
.glass-scene .p1 {
  width: 118px;
  height: 118px;
  top: 88px;
  right: 4%;
  opacity: 0.82;
  animation: floatA 12s ease-in-out infinite;
}
.glass-scene .p2 {
  width: 108px;
  height: 108px;
  top: 46%;
  left: 2.5%;
  opacity: 0.72;
  animation: floatB 15s ease-in-out infinite;
}
.glass-scene .p3 {
  width: 82px;
  height: 82px;
  bottom: 16%;
  left: 22%;
  opacity: 0.62;
  animation: floatA 14s ease-in-out infinite reverse;
}
.glass-scene .p4 {
  width: 112px;
  height: 112px;
  bottom: 8%;
  right: 5%;
  opacity: 0.74;
  animation: floatB 16s ease-in-out infinite reverse;
}
.glass-scene .p5 {
  width: 66px;
  height: 66px;
  top: 20%;
  left: 43%;
  opacity: 0.56;
  animation: floatA 11s ease-in-out infinite;
}

@keyframes floatA {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(5deg); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(15px) rotate(-6deg); }
}
@keyframes orbDriftA {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-28px, 24px) scale(1.07); }
}
@keyframes orbDriftB {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(32px, -22px) scale(1.06); }
}

header.site, main, footer.site { position: relative; z-index: 2; }

a { color: var(--accent); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
img, svg { max-width: 100%; display: block; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(45, 212, 191, 0.30); color: #fff; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; width: 100%; }

/* ---------- шапка (чистое матовое стекло, без дубля кнопки) ---------- */
header.site {
  background: linear-gradient(180deg, rgba(12, 28, 34, 0.56), rgba(6, 15, 20, 0.44));
  backdrop-filter: blur(26px) saturate(190%);
  -webkit-backdrop-filter: blur(26px) saturate(190%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 -1px 0 rgba(45, 212, 191, 0.10), 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 40;
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
  position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; color: #fff; }
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(45, 212, 191, 0.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.brand:hover img {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 24px rgba(45, 212, 191, 0.45);
}

nav.main {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 5px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-top-color: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
nav.main a {
  color: var(--ink-2);
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  border: 1px solid transparent;
}
nav.main a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}
nav.main a.active {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.24), rgba(6, 182, 212, 0.14));
  border-color: rgba(94, 234, 212, 0.40);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 18px -6px rgba(45, 212, 191, 0.5);
  color: #f0fdfa;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.30);
  color: var(--ink);
  cursor: pointer;
  margin-left: auto;
  transition: background .18s ease, border-color .18s ease;
}
.nav-toggle:hover {
  background: rgba(45, 212, 191, 0.18);
  border-color: var(--border-accent);
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 13px;
  font-size: 14.5px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.45);
  cursor: pointer;
  background: linear-gradient(135deg, #2dd4bf 0%, #06b6d4 100%);
  color: #031317;
  white-space: nowrap;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.55), 0 10px 28px -6px rgba(45, 212, 191, 0.55);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.btn:hover {
  color: #020e12;
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.65), 0 14px 34px -6px rgba(45, 212, 191, 0.72);
}
.btn:active { transform: translateY(0); }

.btn.ghost {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(45, 212, 191, 0.05));
  color: #e6fffa;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20), 0 8px 20px -10px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.btn.ghost:hover {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.22), rgba(6, 182, 212, 0.12));
  border-color: rgba(94, 234, 212, 0.60);
  color: #fff;
  filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.30), 0 0 24px -4px rgba(45, 212, 191, 0.42);
}
.btn.big { padding: 14px 30px; font-size: 15.5px; border-radius: 14px; }
.btn.on-blue {
  background: linear-gradient(135deg, #5eead4 0%, #2dd4bf 100%);
  color: #031317;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 12px 32px -6px rgba(45, 212, 191, 0.58);
}
.btn.on-blue:hover {
  filter: brightness(1.08);
  color: #020e12;
  box-shadow: 0 16px 38px -6px rgba(94, 234, 212, 0.72);
}

/* ---------- общее ---------- */
main { padding: 50px 0 78px; flex: 1; }
h1, h2, h3, h4 { color: #f0fdfa; font-weight: 700; }
h1 {
  font-size: clamp(32px, 4.8vw, 48px);
  line-height: 1.13;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
h2 {
  font-size: clamp(24px, 3vw, 31px);
  margin: 46px 0 20px;
  letter-spacing: -0.02em;
}
h3 { font-size: 19px; margin: 24px 0 10px; letter-spacing: -0.01em; }
p { color: var(--ink-2); margin-bottom: 14px; }
p strong { color: var(--ink); }
.lead { font-size: 18px; color: var(--ink-2); line-height: 1.65; max-width: 720px; }
.muted { color: var(--ink-3); font-size: 14px; }
.section { margin-top: 64px; }
.section > h2 { margin-top: 0; }

/* Внешний стеклянный контейнер секции (многослойное стекло как на референсе) */
.glass-panel {
  background: var(--glass-tray);
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-top-color: rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.18), 0 24px 60px -24px rgba(0, 0, 0, 0.72);
}
.glass-panel > h2 { margin-top: 0; margin-bottom: 24px; }

.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- базовая стеклянная карточка ---------- */
.card {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-top-color: var(--border-top);
  border-left-color: var(--border-left);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--glass-shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
/* Светодиодный блик-отражение на стекле (следует за курсором через --mx/--my) */
.card::after, .drop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(360px circle at var(--mx, 20%) var(--my, 0%), rgba(255, 255, 255, 0.13), transparent 60%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.10) 0%, transparent 38%);
  opacity: 0.72;
  transition: opacity .22s ease;
}
.card:hover {
  transform: translateY(-3px);
  background: var(--glass-bg-hover);
  border-color: rgba(94, 234, 212, 0.42);
  border-top-color: rgba(255, 255, 255, 0.42);
  box-shadow: var(--glass-shadow-hover);
}
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card h3 { margin-top: 0; color: #f0fdfa; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(45, 212, 191, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-top-color: rgba(255, 255, 255, 0.40);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.30), 0 8px 24px -6px rgba(45, 212, 191, 0.36);
}
.card .icon svg { width: 24px; height: 24px; stroke: #99f6e4; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #ccfbf1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(45, 212, 191, 0.10));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.34);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 22px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 12px #2dd4bf;
}

/* ---------- hero / 2-колоночный экран (без лишних дублей кнопок) ---------- */
.hero {
  position: relative;
  padding: 28px 0 18px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-copy { text-align: left; }
.hero-copy h1 {
  font-size: clamp(36px, 4.6vw, 52px);
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 22%, #99f6e4 70%, #2dd4bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-copy .lead { margin-bottom: 0; font-size: 18.5px; }

/* Двойная стеклянная зона загрузки */
.drop {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.115) 0%, rgba(45, 212, 191, 0.06) 45%, rgba(255, 255, 255, 0.025) 100%);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.42);
  border-left-color: rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: border-color .22s ease, background .22s ease, box-shadow .22s ease, transform .22s ease;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.36),
    inset 0 -1px 1px rgba(45, 212, 191, 0.16),
    0 28px 64px -18px rgba(0, 0, 0, 0.72),
    0 0 48px -14px rgba(45, 212, 191, 0.26);
}
/* Внутренняя пунктирная рамка внутри стеклянной панели */
.drop::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: calc(var(--radius-lg) - 10px);
  border: 1.5px dashed rgba(153, 246, 228, 0.30);
  pointer-events: none;
  transition: border-color .2s ease;
}
.drop > * { position: relative; z-index: 1; }
.drop:hover {
  border-color: rgba(94, 234, 212, 0.56);
  border-top-color: rgba(255, 255, 255, 0.52);
}
.drop:hover::before { border-color: rgba(94, 234, 212, 0.58); }
.drop.hover {
  border-color: var(--accent-bright);
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.22), rgba(6, 182, 212, 0.10));
  transform: scale(1.015);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.45),
    0 0 0 4px rgba(45, 212, 191, 0.20),
    0 28px 64px -16px rgba(0, 0, 0, 0.78);
}
.drop.hover::before { border-style: solid; border-color: var(--accent-bright); }

.drop .big-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(45, 212, 191, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-top-color: rgba(255, 255, 255, 0.48);
  color: #ccfbf1;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.40), 0 12px 28px -8px rgba(45, 212, 191, 0.44);
}
.drop .big-icon svg { width: 32px; height: 32px; stroke: currentColor; }
.drop input[type=file] { display: none; }
.upload-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 22px;
  flex-wrap: wrap;
}
#upload-note { font-size: 13.5px; color: var(--ink-2); margin-top: 14px; min-height: 20px; }
#upload-result { margin-top: 16px; display: none; }
#upload-result.show { display: block; animation: sdFadeUp .25s ease; }
#upload-result .link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(3, 12, 16, 0.56);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(94, 234, 212, 0.42);
  color: #ccfbf1;
  padding: 9px 14px;
  border-radius: 10px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13.5px;
  word-break: break-all;
}
#upload-result .muted { margin-top: 10px; font-size: 13px; }

.progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 16px;
  display: none;
}
.progress.show { display: block; }
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #06b6d4, #2dd4bf, #ccfbf1);
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.80);
  transition: width .2s ease;
}

@keyframes sdFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- шаги 01 / 02 / 03 ---------- */
.steps { counter-reset: step; }
.steps .card { padding-top: 26px; }
.steps .card::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: relative;
  z-index: 1;
  display: block;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #ffffff 12%, rgba(94, 234, 212, 0.72) 60%, rgba(45, 212, 191, 0.25) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- статистика ---------- */
.stats {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-top-color: var(--border-top);
  border-left-color: var(--border-left);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--glass-shadow);
}
.stats > div { position: relative; z-index: 1; }
.stats > div:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}
.stats .num {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 12%, #5eead4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stats .lbl { color: var(--ink-2); font-size: 14px; margin-top: 4px; }

/* ---------- безопасность ---------- */
.security {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(560px 260px at 100% 0%, rgba(45, 212, 191, 0.24), transparent 65%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.095), rgba(45, 212, 191, 0.05) 55%, rgba(255, 255, 255, 0.02));
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top-color: rgba(255, 255, 255, 0.34);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 42px 36px;
  margin-top: 64px;
  box-shadow: var(--glass-shadow);
}
.security h2 { color: #fff; margin: 0 0 10px; }
.security p { color: #d5e6ed; margin-bottom: 26px; max-width: 640px; }
.security .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.security .item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(45, 212, 191, 0.08));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.34);
  border-radius: 16px;
  padding: 18px 18px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.24);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.security .item:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 234, 212, 0.64);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.36), 0 0 28px -6px rgba(45, 212, 191, 0.44);
}
.security .item .t { color: #5eead4; font-weight: 800; font-size: 17px; margin-bottom: 4px; letter-spacing: -0.01em; }
.security .item .d { color: #d5e6ed; font-size: 13.5px; line-height: 1.45; }

/* ---------- тарифы ---------- */
.pricing .card { display: flex; flex-direction: column; overflow: visible; }
.pricing .card::after { overflow: hidden; }
.pricing .price {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 10px 0 2px;
}
.pricing .period { color: var(--ink-3); font-size: 14px; margin-bottom: 18px; }
.pricing ul { list-style: none; margin: 0 0 24px; }
.pricing li {
  padding: 7px 0 7px 26px;
  position: relative;
  color: var(--ink-2);
  font-size: 14.5px;
}
.pricing li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-bright);
  font-weight: 700;
}
.pricing .btn { margin-top: auto; width: 100%; }
.pricing .popular {
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.19) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(6, 182, 212, 0.09) 100%);
  border-color: rgba(94, 234, 212, 0.56);
  border-top-color: rgba(255, 255, 255, 0.52);
  position: relative;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.42),
    0 24px 56px -14px rgba(45, 212, 191, 0.34);
}
.pricing .popular .badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: linear-gradient(135deg, #5eead4, #06b6d4);
  color: #031317;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 6px 22px rgba(45, 212, 191, 0.56);
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  margin-top: 68px;
  text-align: center;
  background:
    radial-gradient(520px 260px at 50% 0%, rgba(45, 212, 191, 0.30), transparent 70%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(45, 212, 191, 0.08) 55%, rgba(6, 182, 212, 0.06));
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.44);
  border-radius: var(--radius-lg);
  padding: 50px 28px;
  box-shadow: var(--glass-shadow);
}
.cta h2 { color: #fff; margin: 0 0 10px; }
.cta p { color: #ccfbf1; max-width: 520px; margin: 0 auto 26px; }

/* ---------- таблицы ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-top-color: var(--border-top);
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--glass-shadow);
}
.table-wrap table { border: none; border-radius: 0; background: transparent; box-shadow: none; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14.5px;
}
th, td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
  color: var(--ink-2);
}
th {
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
  color: #e6fffa;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
tr:last-child td { border-bottom: none; }
tbody tr:hover td, table tr:not(:first-child):hover td { background: rgba(45, 212, 191, 0.06); }
td strong { color: var(--ink); }
p code, li code, td code, .dl-note code {
  background: rgba(45, 212, 191, 0.13);
  border: 1px solid rgba(94, 234, 212, 0.28);
  color: #ccfbf1;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 13.5px;
}

/* ---------- API ---------- */
.api-method {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 7px;
  margin-right: 10px;
  letter-spacing: .05em;
  vertical-align: middle;
}
.api-method.get { background: rgba(52, 211, 153, 0.16); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.40); }
.api-method.post { background: rgba(45, 212, 191, 0.16); color: #5eead4; border: 1px solid rgba(45, 212, 191, 0.40); }
.api-method.delete { background: rgba(248, 113, 113, 0.16); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.40); }

pre.code {
  background: linear-gradient(145deg, rgba(4, 14, 19, 0.72), rgba(2, 9, 13, 0.80));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #e2f5f8;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top-color: rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  padding: 20px 22px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.7;
  margin: 14px 0 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 16px 36px -14px rgba(0, 0, 0, 0.65);
}
pre.code .c { color: #64828f; }
.endpoint { margin: 30px 0; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.endpoint h3 { margin-top: 0; }
.endpoint h3 code { font-size: 17px; background: none; border: none; padding: 0; color: #f0fdfa; }

/* ---------- блог ---------- */
.post-list .card { display: block; color: var(--ink); }
.post-list .card:hover { text-decoration: none; border-color: var(--border-accent); }
.post-list .date { color: var(--ink-3); font-size: 13.5px; margin-bottom: 8px; }
.post-list h3 { margin: 0 0 8px; }
.post article { max-width: 760px; }
.post article p { margin-bottom: 16px; }
.post article ul { color: var(--ink-2); padding-left: 22px; margin-bottom: 18px; }
.post article li { margin-bottom: 6px; }
.post .back {
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.post .back:hover { color: var(--accent); text-decoration: none; }
.post h1 { font-size: clamp(28px, 4vw, 36px); }
.post .date { color: var(--ink-3); margin-bottom: 24px; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-top-color: var(--border-top);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: var(--glass-shadow);
}
.faq details:hover { border-color: rgba(94, 234, 212, 0.42); }
.faq details[open] {
  border-color: rgba(94, 234, 212, 0.50);
  background: var(--glass-bg-hover);
}
.faq summary {
  padding: 18px 22px;
  font-weight: 600;
  color: #f0fdfa;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--accent-bright);
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details .a { padding: 0 22px 18px; color: var(--ink-2); line-height: 1.65; }

/* ---------- загрузки ---------- */
.dl-note {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(45, 212, 191, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top-color: rgba(255, 255, 255, 0.30);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  color: #d5e6ed;
  font-size: 14.5px;
  box-shadow: var(--glass-shadow);
}
table.files td.mono {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13.5px;
  color: var(--ink-2);
}

/* ---------- футер ---------- */
footer.site {
  background: linear-gradient(180deg, rgba(8, 20, 26, 0.56), rgba(4, 10, 14, 0.72));
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 46px 0 36px;
  margin-top: auto;
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; }
footer.site .col { min-width: 170px; }
footer.site h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-3);
  margin-bottom: 14px;
  font-weight: 700;
}
footer.site a { display: block; color: var(--ink-2); padding: 4px 0; font-size: 14.5px; }
footer.site a:hover { color: #5eead4; text-decoration: none; }
footer.site .bottom {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  margin-top: 14px;
  padding-top: 22px;
  color: var(--ink-3);
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 72px 0; }
.notfound .code {
  font-size: clamp(72px, 14vw, 112px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 10%, #2dd4bf 60%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.notfound h1 { margin-top: 0; }

/* ---------- адаптив ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .glass-scene .p5 { display: none; }
}
@media (max-width: 860px) {
  .grid.cols-3, .grid.cols-2, .stats, .security .row { grid-template-columns: 1fr; }
  .glass-panel { padding: 26px 18px; }
  .stats > div:not(:last-child)::after {
    right: 15%;
    top: auto;
    bottom: -10px;
    width: 70%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.20), transparent);
  }
  .security { padding: 30px 22px; }
  .drop { padding: 34px 20px; }
  .nav-toggle { display: inline-flex; }
  nav.main {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 22px;
    right: 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: linear-gradient(145deg, rgba(10, 26, 32, 0.90), rgba(5, 14, 19, 0.94));
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-top-color: rgba(255, 255, 255, 0.30);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.82);
    margin-left: 0;
  }
  nav.main.open { display: flex; animation: sdFadeUp .18s ease; }
  nav.main a { padding: 11px 14px; font-size: 15px; }
  .glass-scene .p1, .glass-scene .p2, .glass-scene .p3, .glass-scene .p4 { scale: 0.72; opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ===== мобильная доводка (24.11.2026) ===== */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 16px 0 8px; }
  .hero-grid { gap: 22px; }
  .hero-copy h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .hero-copy .lead { font-size: 16.5px; }
  .drop { padding: 28px 16px; border-radius: 16px; }
  .drop .big-icon svg { width: 28px; height: 28px; }
  .stats { padding: 24px 16px; }
  .stats .num { font-size: 28px; }
  .security { padding: 26px 18px; }
  .cta { padding: 32px 20px; }
  .notfound { padding: 40px 0; }
  .notfound .code { font-size: 64px; }
  pre.code { padding: 16px; font-size: 12.5px; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  th, td { padding: 10px 12px; font-size: 14px; }
  .endpoint h3 code, h3 code { overflow-wrap: anywhere; }
  #upload-result .link { max-width: 100%; }
  footer.site { padding: 32px 0; }
  footer.site .wrap { gap: 24px; }
  footer.site .col { min-width: 140px; }
}
@media (max-width: 480px) {
  .glass-scene { display: none; }
  .brand { font-size: 17px; }
  .brand img { width: 30px; height: 30px; }
  header.site .btn { padding: 8px 12px; font-size: 14px; }
  .drop .btn.big { width: 100%; }
  .upload-row { flex-direction: column; }
  .pricing .price { font-size: 30px; }
  footer.site .col { min-width: 45%; }
}

/* строка результата загрузки: ссылка + копирование в один ряд, кнопка не липнет */
.result-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.result-row .link { max-width: 100%; }
.result-row .btn.ghost { flex: none; }

/* 404: аккуратная стеклянная карточка по центру */
.notfound { text-align: center; padding: 56px 0 72px; }
.notfound-card { max-width: 640px; margin: 0 auto; padding: 46px 32px 40px; }
.notfound-card .code { margin-bottom: 10px; }
.notfound-card h1 { margin: 0 0 12px; }
.notfound-card .lead { margin-bottom: 10px; }
.notfound-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* кнопка «Копировать» — фиксированная ширина, чтобы «Скопировано» не прыгало */
.result-row .btn.ghost { min-width: 136px; display: inline-flex; justify-content: center; }
