/* ================================
   Огонь VPN Guide — Общие стили
   Замените [ДОМЕН] на ваш домен
   ================================ */

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

:root {
  --bg:           #0f0f0f;
  --bg-card:      #1a1a1a;
  --bg-card-2:    #222222;
  --accent:       #e8380d;
  --accent-hover: #c42d0a;
  --text:         #ffffff;
  --text-muted:   #aaaaaa;
  --text-dim:     #777777;
  --border:       #2a2a2a;
  --success:      #22c55e;
  --danger:       #ef4444;
  --warning:      #f59e0b;
  --radius:       8px;
  --max-w:        820px;
  --ease:         0.2s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ---- Container ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Typography ---- */
h1 { font-size: clamp(1.55rem, 4vw, 2.1rem); line-height: 1.25; font-weight: 700; margin-bottom: 20px; }
h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); line-height: 1.3; font-weight: 700; margin: 52px 0 16px; color: var(--accent); }
h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.35; margin: 28px 0 10px; color: var(--text); }
p  { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: underline; transition: opacity var(--ease); }
a:hover { opacity: 0.8; }

ul, ol { padding-left: 22px; margin-bottom: 16px; }
li { margin-bottom: 8px; }
strong { font-weight: 600; }

code {
  background: #1e1e1e;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.855em;
  color: #ff8a65;
}

/* ---- Header ---- */
.site-header {
  background: #111111;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo:hover { opacity: 0.9; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 6px 9px;
  border-radius: var(--radius);
  transition: all var(--ease);
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active { color: var(--text); background: var(--bg-card); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px 9px;
  line-height: 1;
}

/* ---- CTA Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); opacity: 1; color: #fff; }
.btn-lg { font-size: 1rem; padding: 14px 28px; border-radius: 10px; }

/* ---- Main ---- */
.site-main { padding: 36px 0 80px; }

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--border); }

/* ---- Author block ---- */
.author-block {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  margin-bottom: 28px;
}
.author-avatar { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; }
.author-name { font-weight: 700; font-size: 0.95rem; display: block; }
.author-role { font-size: 0.78rem; color: var(--text-muted); display: block; margin-top: 2px; }
.author-dates { font-size: 0.75rem; color: var(--text-dim); display: block; margin-top: 4px; }

/* ---- Expert advice block ---- */
.expert-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 28px 0;
}
.expert-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.expert-block p { font-size: 0.93rem; margin-bottom: 16px; }

/* ---- Table of contents ---- */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 28px 0;
}
.toc-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.toc ol, .toc ul { margin: 0; padding-left: 18px; }
.toc li { margin-bottom: 5px; }
.toc a { color: var(--text-muted); font-size: 0.875rem; text-decoration: none; }
.toc a:hover { color: var(--accent); }

/* ---- Comparison table ---- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; }
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 480px;
}
.comp-table th {
  background: var(--bg-card-2);
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.comp-table th:first-child { border-radius: 8px 0 0 0; }
.comp-table th:last-child  { border-radius: 0 8px 0 0; }
.comp-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tr:hover td { background: rgba(255,255,255,0.025); }
.comp-table .accent-col { color: var(--accent); font-weight: 600; }
.yes { color: var(--success); }
.no  { color: var(--danger); }

/* ---- Reviews ---- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; }
.review-name { font-weight: 600; font-size: 0.875rem; }
.review-platform { font-size: 0.72rem; color: var(--text-muted); }
.review-stars { color: var(--warning); font-size: 0.85rem; margin-bottom: 8px; }
.review-text { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ---- FAQ ---- */
.faq-list { margin-top: 14px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-q { font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; }
.faq-a { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ---- Steps ---- */
.steps { list-style: none; padding: 0; counter-reset: st; margin: 12px 0 20px; }
.steps li {
  counter-increment: st;
  position: relative;
  padding: 12px 14px 12px 50px;
  background: var(--bg-card);
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.steps li::before {
  content: counter(st);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Device / Pricing cards ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all var(--ease);
}
.card:hover { border-color: var(--accent); background: var(--bg-card-2); transform: translateY(-2px); opacity: 1; }
.card-icon { font-size: 1.9rem; }
.card-name { font-weight: 600; font-size: 0.875rem; }
.card-desc { font-size: 0.75rem; color: var(--text-muted); }

/* ---- Pricing cards ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.plan {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.plan.hot { border-color: var(--accent); background: rgba(232,56,13,0.07); }
.plan-name { font-weight: 700; font-size: 1rem; }
.plan-price { font-size: 1.45rem; font-weight: 700; color: var(--accent); }
.plan-period { font-size: 0.78rem; color: var(--text-muted); }
.plan-total { font-size: 0.78rem; color: var(--text-dim); }
.plan-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}
.plan-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

/* ---- CTA block ---- */
.cta-block {
  text-align: center;
  margin: 36px 0;
  padding: 30px 20px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.cta-block p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 18px; }

/* ---- Case study ---- */
.case-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: 0.9rem;
}
.case-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.case-block p { margin-bottom: 8px; }
.case-block p:last-child { margin-bottom: 0; }

/* ---- Info / Warning box ---- */
.info-box {
  background: rgba(232,56,13,0.07);
  border: 1px solid rgba(232,56,13,0.25);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 0.88rem;
}

/* ---- Requirements table ---- */
.req-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.875rem; }
.req-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); }
.req-table td:first-child { color: var(--text-muted); width: 45%; }
.req-table tr:last-child td { border-bottom: none; }

/* ---- Internal links pills ---- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.pills a {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--text-muted);
  transition: all var(--ease);
}
.pills a:hover { border-color: var(--accent); color: var(--text); }

/* ---- Section divider ---- */
hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }

/* ---- Footer ---- */
.site-footer {
  background: #111111;
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.site-footer .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-copy { font-size: 0.82rem; color: var(--text-muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.footer-nav a { font-size: 0.82rem; color: var(--text-muted); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }

/* ========== RESPONSIVE ========== */
@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #111111;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 20px; border-radius: 0; font-size: 0.9rem; }

  .site-header { position: sticky; }

  .reviews-grid { grid-template-columns: 1fr; }
  .cards-grid   { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }

  .author-block { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 440px) {
  .cards-grid   { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  h2 { margin-top: 38px; }
}
