/* ============================================================
   netcat-team.ru — заглушка служебного домена команды Неткэт.
   Токены и типографика — те же, что на netcat.site (файл
   /var/www/sites/netcat.site/web/style.css на web1), но набор
   урезан до одного экрана: шапка, текст, две ссылки, подвал.
   Файл статический, ничем не компилируется.
   ============================================================ */

:root {
  --ns-paper:      #F6F7F8;
  --ns-paper-2:    #FFFFFF;
  --ns-ink:        #131418;
  --ns-ink-2:      #2B2D33;
  --ns-mute:       #5F636D;
  --ns-faint:      #8E929B;
  --ns-line:        rgba(19, 20, 24, .08);
  --ns-line-strong: rgba(19, 20, 24, .14);

  --ns-brand:      #0089FA;
  --ns-brand-h:    #0069C4;
  --ns-brand-soft: rgba(0, 137, 250, .08);

  --ns-shadow-sm: 0 1px 2px rgba(19, 20, 24, .04);
  --ns-shadow-md: 0 1px 2px rgba(19, 20, 24, .04), 0 12px 32px rgba(19, 20, 24, .07);

  --ns-serif: "Source Serif 4", "Times New Roman", serif;
  --ns-sans:  "Geist", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --ns-mono:  "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --ns-ease: cubic-bezier(.2, .7, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* подвал прижат к низу окна, даже когда текста мало */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ns-paper);
  color: var(--ns-ink);
  font-family: var(--ns-sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--ns-brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── каркас ───────────────────────────────────────────────── */

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

/* ── типографика ──────────────────────────────────────────── */

.display {
  font-family: var(--ns-serif);
  font-weight: 400;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -.025em;
}
.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ns-mute);
  max-width: 62ch;
}
.caption { font-size: 13px; line-height: 1.5; color: var(--ns-mute); }

.eyebrow {
  font-family: var(--ns-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ns-faint);
}

.mono { font-family: var(--ns-mono); font-size: .92em; letter-spacing: 0; }

.accent {
  font-family: var(--ns-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--ns-brand);
}

/* ── шапка ────────────────────────────────────────────────── */

.head { padding: 26px 0; border-bottom: 1px solid var(--ns-line); }
.head__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand__mark { display: block; width: 26px; height: 26px; }
.brand__name { font-size: 15px; font-weight: 500; color: var(--ns-ink); }

.tag {
  flex: none;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--ns-brand-soft);
  color: var(--ns-brand);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ── середина ─────────────────────────────────────────────── */

.main { flex: 1; padding: 104px 56px 96px; }
.main .display { margin-top: 22px; max-width: 22ch; }
.main .lead { margin-top: 26px; }
.main__label { margin-top: 68px; }

/* ── две ссылки ───────────────────────────────────────────── */

.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 24px 26px 26px;
  background: var(--ns-paper-2);
  border: 1px solid var(--ns-line);
  border-radius: 14px;
  box-shadow: var(--ns-shadow-sm);
  transition: transform var(--ns-ease) 200ms, box-shadow 200ms, border-color 200ms;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--ns-line-strong);
  box-shadow: var(--ns-shadow-md);
}
.card__top { display: flex; align-items: center; gap: 8px; }
.card__name {
  font-family: var(--ns-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ns-ink);
}
.card__ic { width: 15px; height: 15px; flex: none; color: var(--ns-brand); }
.card:hover .card__ic { color: var(--ns-brand-h); }
.card__text { font-size: 15px; line-height: 1.6; color: var(--ns-mute); }

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

.foot { padding: 30px 0; border-top: 1px solid var(--ns-line); }
.foot__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
.foot a {
  color: var(--ns-ink-2);
  text-decoration: underline;
  text-decoration-color: var(--ns-line-strong);
  text-underline-offset: 3px;
}
.foot a:hover { color: var(--ns-brand); text-decoration-color: currentColor; }

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

@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .main { padding: 72px 24px 64px; }
  .main .display { max-width: none; }
  .main__label { margin-top: 52px; }
  .links { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .head { padding: 18px 0; }
  /* рядом с доменом плашка не помещается — она и без того дублирует текст */
  .tag { display: none; }
  .main { padding: 56px 24px 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .card:hover { transform: none; }
}
