/* Dockbay — дизайн-система файлхоста. ДНК Plugindock: те же шрифты и скругления, своя морская палитра. */
:root {
  --bg: #0B1F3A;
  --bg-soft: #10294D;
  --panel: #FFFFFF;
  --ink: #172033;
  --ink-soft: #5A6B85;
  --line: #E2E9F2;
  --blue: #1F5EFF;
  --teal: #0FB5A6;
  --amber: #B86E00;
  --page: #F3F6FA;
  --r-panel: 16px;
  --r-card: 12px;
  --r-btn: 10px;
  --r-chip: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Onest", system-ui, -apple-system, sans-serif;
  background: var(--page);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, .brand { font-family: "Unbounded", "Onest", sans-serif; letter-spacing: -0.01em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Шапка ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .logo { width: 34px; height: 34px; flex: none; }
.topnav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 600; }
.topnav a { color: var(--ink-soft); }
.topnav a:hover { color: var(--blue); text-decoration: none; }
.topnav a.ext { color: var(--blue); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-soft) 60%, #123A63 100%);
  border-radius: var(--r-panel);
  color: #EAF1FB;
  padding: 56px 48px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  overflow: hidden; position: relative;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% 20%, rgba(15,181,166,.18), transparent 60%);
  pointer-events: none;
}
.hero h1 { font-size: 34px; line-height: 1.2; margin-bottom: 14px; }
.hero h1 .hl { color: var(--teal); }
.hero p { font-size: 16px; color: #B9C9E2; max-width: 46ch; }
.hero .art { position: relative; z-index: 1; }
.hero .art svg { width: 100%; height: auto; display: block; }

/* ---------- Полоса доверия ---------- */
.trust {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin: 22px 0;
}
.trust .t {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start;
}
.trust .t .ic { width: 38px; height: 38px; flex: none; border-radius: var(--r-chip); background: #EEF3FF; display: grid; place-items: center; }
.trust .t h3 { font-size: 14px; margin-bottom: 4px; font-family: "Onest", sans-serif; font-weight: 700; }
.trust .t p { font-size: 13px; color: var(--ink-soft); }

/* ---------- Как это работает ---------- */
.how { margin: 34px 0 10px; }
.how h2 { font-size: 22px; margin-bottom: 18px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 20px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  font-family: "Unbounded", sans-serif; font-size: 13px; font-weight: 600;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center; margin-bottom: 12px;
}
.step h3 { font-size: 15px; font-family: "Onest", sans-serif; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--ink-soft); }

/* ---------- Футер ---------- */
.footer {
  margin: 40px 0 24px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 13px; color: var(--ink-soft); flex-wrap: wrap;
}
.foot-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.srv { color: #94A3BD; }

/* ---------- Страница скачивания ---------- */
.dl-shell { min-height: 78vh; display: grid; place-items: center; padding: 30px 0; }
.dl-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel);
  padding: 40px 44px; max-width: 560px; width: 100%; text-align: center;
}
.dl-card .file-ic {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: var(--r-panel);
  background: linear-gradient(135deg, var(--blue), var(--teal));
  display: grid; place-items: center;
}
.dl-card .kind {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal); background: #E6FAF8; border: 1px solid #B8EDE8;
  border-radius: var(--r-chip); padding: 4px 10px; margin-bottom: 10px;
}
.dl-card h1 { font-size: 22px; margin-bottom: 6px; }
.dl-card .meta { font-size: 14px; color: var(--ink-soft); margin-bottom: 22px; }
.dl-card .meta b { color: var(--ink); font-weight: 600; }

.verify {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; font-weight: 600; color: #0B7A4B; margin-bottom: 20px;
}

.btn-dl {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 16px;
  border: none; border-radius: var(--r-btn); padding: 15px 34px; cursor: pointer;
  transition: background .15s ease;
}
.btn-dl:hover { background: #174ED6; text-decoration: none; }
.btn-dl svg { flex: none; }
.btn-dl.is-off { opacity: .65; cursor: default; }
.btn-dl.is-off:hover { background: var(--blue); }
.btn-dl.is-gen { opacity: .8; cursor: progress; }
.btn-dl .spin {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: db-spin .8s linear infinite;
}
@keyframes db-spin { to { transform: rotate(360deg); } }

.countdown { font-size: 13px; color: var(--ink-soft); margin-top: 14px; }
.countdown b { color: var(--ink); }
.expire-note { font-size: 12px; color: var(--ink-soft); margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }

/* Рекламный слот будущего (выключен, включается классом .on) */
.ad-slot { display: none; margin: 26px auto 0; max-width: 560px; background: var(--panel); border: 1px dashed var(--line); border-radius: var(--r-card); padding: 22px; text-align: center; color: var(--ink-soft); font-size: 13px; }
.ad-slot.on { display: block; }

/* ---------- Страница ошибки ---------- */
.err-card { text-align: center; }
.err-code {
  font-family: "Unbounded", sans-serif; font-size: 64px; font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}
.err-card p { color: var(--ink-soft); max-width: 42ch; margin: 0 auto 24px; }
.btn-ghost {
  display: inline-block; border: 1px solid var(--line); background: #fff;
  border-radius: var(--r-btn); padding: 12px 24px; font-weight: 600; color: var(--ink);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 36px 26px; }
  .hero h1 { font-size: 26px; }
  .hero .art { max-width: 320px; }
  .trust, .steps { grid-template-columns: 1fr; }
  .dl-card { padding: 30px 24px; }
  .topbar { flex-wrap: wrap; gap: 10px; }
}
