/* LOKI VPN Blog — статические стили в брендстиле приложения.
   Тёмная тема, оранжевый акцент, шрифт Geist. Без JS. */

:root {
  --bg: #0A0A0B;
  --surface: #131316;
  --surface-2: #1A1A1E;
  --hairline: rgba(255, 255, 255, 0.07);
  --hairline-2: rgba(255, 255, 255, 0.12);
  --text: #F5F5F7;
  --text-2: rgba(245, 245, 247, 0.62);
  --text-3: rgba(245, 245, 247, 0.40);
  --accent: #FF9500;
  --accent-warm: #FFB04A;
  --accent-deep: #D97800;
  --accent-soft: rgba(255, 149, 0, 0.12);
  --success: #4ADE80;
  --r-card: 22px;
  --r-btn: 14px;
  --r-pill: 999px;
  --font: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --maxw: 720px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-warm); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wide { max-width: 1080px; }

/* ───────── Header ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand__logo {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: grid; place-items: center; font-weight: 800; color: #1A0F00; font-size: 15px;
}
.brand__accent { color: var(--accent); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--text-2); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #1A0F00; font-weight: 700; font-size: 15px;
  padding: 10px 18px; border-radius: var(--r-pill); border: none; cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); text-decoration: none; }
.btn--ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--hairline-2); }

/* ───────── Hero (blog index) ───────── */
.hero { padding: 64px 0 36px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.hero p { color: var(--text-2); font-size: 19px; margin-top: 16px; }

/* ───────── Article cards ───────── */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; padding: 24px 0 80px; }
.card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-card); overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--hairline-2); transform: translateY(-3px); text-decoration: none; }
.card__cover { aspect-ratio: 16 / 9; background: var(--surface-2); object-fit: cover; width: 100%; }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__tag { font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.card__title { font-size: 20px; font-weight: 700; color: var(--text); line-height: 1.3; }
.card__excerpt { color: var(--text-2); font-size: 15px; line-height: 1.6; }
.card__meta { margin-top: auto; color: var(--text-3); font-size: 13px; }

/* ───────── Article page ───────── */
.article { padding: 36px 0 80px; }
.breadcrumbs { font-size: 14px; color: var(--text-3); margin-bottom: 20px; }
.breadcrumbs a { color: var(--text-2); }
.article__tag { color: var(--accent); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.article h1 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 12px 0 16px; }
.article__meta { color: var(--text-3); font-size: 14px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.article__cover { border-radius: var(--r-card); margin: 8px 0 32px; border: 1px solid var(--hairline); }
.article__body > * + * { margin-top: 22px; }
.article__body h2 { font-size: 27px; font-weight: 700; letter-spacing: -0.01em; margin-top: 44px; line-height: 1.25; }
.article__body h3 { font-size: 21px; font-weight: 700; margin-top: 32px; }
.article__body p { color: rgba(245, 245, 247, 0.86); }
.article__body ul, .article__body ol { padding-left: 24px; color: rgba(245, 245, 247, 0.86); }
.article__body li + li { margin-top: 8px; }
.article__body strong { color: var(--text); font-weight: 700; }
.article__body a { color: var(--accent-warm); text-decoration: underline; text-underline-offset: 3px; }
.article__body blockquote {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  padding: 14px 20px; border-radius: 0 12px 12px 0; color: var(--text);
}
.article__body code {
  font-family: var(--font-mono); font-size: .9em;
  background: var(--surface-2); border: 1px solid var(--hairline); border-radius: 6px; padding: 2px 6px;
}
.article__body figure { margin: 28px 0; }
.article__body figcaption { color: var(--text-3); font-size: 14px; text-align: center; margin-top: 10px; }

/* Callout / CTA внутри статьи */
.callout {
  background: var(--surface); border: 1px solid var(--hairline-2);
  border-radius: var(--r-card); padding: 26px; margin: 36px 0;
  display: flex; flex-direction: column; gap: 14px;
}
.callout h3 { font-size: 21px; font-weight: 700; }
.callout p { color: var(--text-2); }

.faq { margin-top: 40px; }
.faq details {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-btn); padding: 16px 20px; margin-top: 12px;
}
.faq summary { font-weight: 600; cursor: pointer; font-size: 17px; }
.faq details[open] summary { color: var(--accent); margin-bottom: 10px; }
.faq p { color: var(--text-2); font-size: 16px; }

/* ───────── Footer ───────── */
.site-footer { border-top: 1px solid var(--hairline); padding: 40px 0; color: var(--text-3); font-size: 14px; }
.site-footer__inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.site-footer a { color: var(--text-2); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .hero { padding: 44px 0 24px; }
}
