@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f0f4f8;
  --bg-grid: rgba(37,99,235,.04);
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-secondary: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-soft: #dbeafe;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.07);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.1);
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 880px;
  --transition: .22s cubic-bezier(.4,0,.2,1);
  --grid-size: 28px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* ===== HEADER ===== */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  background: rgba(240,244,248,.82);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -.03em;
  transition: opacity var(--transition);
}
.logo:hover { opacity: .8; }
.logo img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(37,99,235,.15);
}
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--accent); background: var(--accent-light); }

/* ===== MAIN ===== */
.main { max-width: var(--max-w); margin: 0 auto; padding: 28px 24px 64px; }

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 44px 0 36px;
}
.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: var(--text-secondary);
  font-size: .95rem;
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== SECTION HEADINGS ===== */
.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -.01em;
}
.section-title .emoji { font-size: 1.15rem; }

/* ===== ARTICLE CARDS ===== */
.articles-grid {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}
.articles-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  display: block;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--accent-soft);
}
.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card-img { transform: scale(1.03); }
.card-body { padding: 18px 22px 20px; }
.card-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.tag-tips { background: #fef3c7; color: #92400e; }
.tag-facts { background: #fce7f3; color: #9d174d; }
.tag-schedule { background: #dbeafe; color: #1e40af; }
.tag-analysis { background: #d1fae5; color: #065f46; }
.tag-prep { background: #e0e7ff; color: #3730a3; }
.tag-info { background: #f1f5f9; color: #475569; }
.tag-review { background: #fae8ff; color: #7e22ce; }
.tag-news { background: #ffedd5; color: #9a3412; }
.tag-stories { background: #ccfbf1; color: #115e59; }
.tag-vpr { background: #fef9c3; color: #854d0e; }
.card h2 {
  font-size: .98rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--text);
}
.card p {
  color: var(--text-secondary);
  font-size: .84rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  margin-top: 12px;
  font-size: .73rem;
  color: var(--text-secondary);
  display: flex;
  gap: 14px;
  opacity: .75;
}

/* Featured card (large) */
.card-featured { border: 1px solid var(--accent-soft); }
.card-featured .card-img { height: 260px; }
.card-featured .card-body { padding: 22px 26px 24px; }
.card-featured h2 { font-size: 1.18rem; }
.card-featured p { font-size: .9rem; }

/* ===== ARTICLE PAGE ===== */
.article-header { padding: 36px 0 20px; }
.article-header h1 {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -.025em;
}
.article-hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.article-meta {
  color: var(--text-secondary);
  font-size: .82rem;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.article-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.article-body h2 {
  font-size: 1.22rem;
  font-weight: 700;
  margin: 30px 0 10px;
  letter-spacing: -.015em;
  color: var(--text);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 24px 0 6px;
  color: var(--text);
}
.article-body p {
  margin-bottom: 14px;
  color: #374151;
}
.article-body ul, .article-body ol { margin: 0 0 14px 22px; color: #374151; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  background: var(--accent-light);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.6;
}
.article-body strong { color: var(--text); }

/* ===== PROMO BLOCK ===== */
.promo-block {
  display: block;
  background: linear-gradient(145deg, #020617 0%, #0a1628 30%, #0f2647 65%, #1a3a6b 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 24px 22px;
  margin-bottom: 28px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(10,22,40,.5);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}
.promo-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(30,80,160,.2) 0%, transparent 60%);
  pointer-events: none;
}
.promo-block.active { display: block; }
.promo-block h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; position: relative; letter-spacing: -.01em; }
.promo-block .promo-sub { font-size: .88rem; opacity: .8; margin-bottom: 20px; position: relative; line-height: 1.5; }
.promo-buttons { display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; }
.promo-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; text-decoration: none; width: 100%; max-width: 380px;
  transition: transform .2s, box-shadow .2s;
}
.promo-btn:hover { transform: translateY(-2px); }
/* Telegram button */
.promo-btn-tg {
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  color: #fff;
  padding: 18px 24px;
  font-size: 1rem;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(42,171,238,.45);
  animation: tg-pulse 2.5s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  flex-direction: column;
  line-height: 1.3;
}
.promo-btn-tg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M20.665 3.717l-17.73 6.837c-1.21.486-1.203 1.161-.222 1.462l4.552 1.42 10.532-6.645c.498-.303.953-.14.579.192l-8.533 7.701h-.002l.002.001-.314 4.692c.46 0 .663-.211.921-.46l2.211-2.15 4.599 3.397c.848.467 1.457.227 1.668-.785L22.995 5.195c.311-1.248-.476-1.813-1.33-1.478z'/%3E%3C/svg%3E") center/20px no-repeat;
  opacity: .08;
  pointer-events: none;
}
.promo-btn-tg .tg-main { font-size: 1.05rem; font-weight: 800; }
.promo-btn-tg .tg-vpn { font-size: .68rem; font-weight: 500; opacity: .75; margin-top: 2px; }
.promo-btn-tg:hover { box-shadow: 0 6px 28px rgba(0,136,204,.6); }
@keyframes tg-pulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(42,171,238,.45); }
  50% { box-shadow: 0 6px 36px rgba(42,171,238,.7); }
}
/* Site button */
.promo-btn-site {
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 13px 24px;
  font-size: .9rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
}
.promo-btn-site:hover { background: rgba(255,255,255,.15); box-shadow: 0 4px 16px rgba(255,255,255,.1); }
/* Proof gallery */
.promo-gallery {
  position: relative;
  display: flex;
  gap: 8px;
  margin-top: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}
.promo-gallery::-webkit-scrollbar { height: 4px; }
.promo-gallery::-webkit-scrollbar-track { background: rgba(255,255,255,.05); border-radius: 4px; }
.promo-gallery::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 4px; }
.promo-gallery img {
  flex: 0 0 auto;
  height: 320px;
  width: auto;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  scroll-snap-align: start;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.promo-gallery-label {
  position: relative;
  font-size: .68rem; opacity: .4;
  margin-top: 6px;
}
/* Accordion */
.promo-details { position: relative; margin-top: 14px; }
.promo-details summary {
  cursor: pointer; font-size: .78rem; opacity: .5;
  list-style: none; position: relative;
  transition: opacity .2s;
}
.promo-details summary:hover { opacity: .85; }
.promo-details summary::-webkit-details-marker { display: none; }
.promo-details[open] summary { margin-bottom: 10px; }
.promo-trust {
  position: relative;
  background: rgba(255,255,255,.05);
  border-radius: 10px;
  padding: 14px 16px;
  text-align: left;
  font-size: .78rem;
  line-height: 1.6;
  color: rgba(255,255,255,.8);
}
.promo-trust strong { color: #fff; }
.promo-trust ul { margin: 8px 0 0 16px; padding: 0; }
.promo-trust li { margin-bottom: 4px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: .78rem;
}
.footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: .8rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }

/* ===== RELATED ===== */
.related { margin-top: 40px; }
.related h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.related .articles-grid { gap: 12px; }
.related .card { border-radius: var(--radius-sm); }
.related .card:hover { transform: translateY(-2px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  :root { --grid-size: 22px; }
  .hero h1 { font-size: 1.5rem; }
  .article-header h1 { font-size: 1.35rem; }
  .article-body { padding: 20px; }
  .nav-links { display: none; }
  .promo-block { padding: 22px 20px; }
  .promo-buttons { flex-direction: column; }
  .articles-row { grid-template-columns: 1fr; }
  .card-img { height: 160px; }
  .card-featured .card-img { height: 200px; }
  .header-inner { height: 52px; }
  .logo img { width: 28px; height: 28px; }
  .main { padding: 20px 16px 48px; }
}
