/* ===== hosting-vps-sravnenie.ru — Dark Tech Theme ===== */
:root {
  --primary: #37474F;
  --primary-dark: #263238;
  --primary-light: #455A64;
  --accent: #00E676;
  --accent-dark: #00C853;
  --accent-glow: rgba(0, 230, 118, 0.25);
  --bg-dark: #1a1d23;
  --bg-card: #22262e;
  --bg-card-hover: #2a2f38;
  --bg-section: #1e2128;
  --bg-section-alt: #15171c;
  --text: #e0e0e0;
  --text-muted: #9e9e9e;
  --text-bright: #ffffff;
  --border: rgba(255,255,255,0.08);
  --border-accent: rgba(0,230,118,0.2);
  --glass-bg: rgba(34,38,46,0.7);
  --glass-border: rgba(255,255,255,0.1);
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 20px rgba(0,230,118,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1200px;
  --font: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: 0.3s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.5rem; }
h1, h2, h3, h4, h5 {
  color: var(--text-bright);
  font-weight: 700;
  line-height: 1.25;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.75rem; }
p { margin-bottom: 1rem; }
code, .mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(0,230,118,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

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

/* ===== Nav — Dark ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26,29,35,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0;
  transition: background var(--transition);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 4px;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover {
  color: var(--text-bright);
  background: rgba(255,255,255,0.05);
}
.nav-links a.active {
  color: var(--accent);
  background: rgba(0,230,118,0.08);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== Hero — Fullscreen + Overlay ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 100px 0 60px;
  background: var(--bg-dark);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0,230,118,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(55,71,79,0.3) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-section) 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
}
.hero-grid::after {
  content: '';
  position: absolute;
  top: -200px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,230,118,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,230,118,0.1);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 1rem;
  max-width: 700px;
}
.hero h1 span { color: var(--accent); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2rem;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Buttons — Gradient ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: var(--font);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--bg-dark);
  box-shadow: 0 4px 15px rgba(0,230,118,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0,230,118,0.4);
  color: var(--bg-dark);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: rgba(0,230,118,0.1);
  color: var(--accent);
}
.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}
.btn-full { width: 100%; justify-content: center; }

/* ===== Sections — Dark Theme ===== */
.section {
  padding: 80px 0;
  background: var(--bg-dark);
}
.section-alt {
  background: var(--bg-section);
}
.section-dark {
  background: var(--bg-section-alt);
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
}
.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}
.section-header .accent-line {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ===== Cards — Glassmorphism ===== */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,230,118,0.1);
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}
.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ===== Comparison Table ===== */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
thead {
  background: var(--bg-section-alt);
}
th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-bright);
  white-space: nowrap;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-accent);
  cursor: pointer;
  user-select: none;
  transition: color var(--transition);
}
th:hover { color: var(--accent); }
th.sorted-asc::after { content: ' ↑'; color: var(--accent); }
th.sorted-desc::after { content: ' ↓'; color: var(--accent); }
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tbody tr {
  transition: background var(--transition);
}
tbody tr:hover {
  background: rgba(0,230,118,0.04);
}
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
}
.rating-badge.high { color: var(--accent); }
.rating-badge.mid { color: #FFD54F; }
.rating-badge.low { color: #EF5350; }
.price-tag {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-bright);
}
.uptime-bar {
  display: inline-block;
  min-width: 70px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}
.uptime-bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--accent);
  border-radius: 3px;
}

/* ===== Hosting Card (review pages) ===== */
.hosting-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
}
.hosting-card:hover {
  border-color: var(--border-accent);
}
.hosting-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.hosting-logo {
  width: 56px;
  height: 56px;
  background: rgba(0,230,118,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent);
}
.hosting-name {
  font-size: 1.3rem;
  font-weight: 700;
}
.hosting-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Price Cards — 3 columns ===== */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}
.price-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}
.price-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}
.price-card.featured::before {
  content: 'Популярный';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--bg-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
}
.price-card-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.price-card-price {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin: 1rem 0;
}
.price-card-price small {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}
.price-card-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}
.price-card-features li {
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-card-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

/* ===== Steps ===== */
.steps {
  counter-reset: step;
  margin: 2rem 0;
}
.step {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,230,118,0.1);
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}
.step-content h3 {
  margin: 0 0 0.5rem;
}
.step-content p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.93rem;
}

/* ===== FAQ — Dark Section ===== */
.faq-section {
  background: var(--bg-section-alt);
  padding: 80px 0;
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-bright);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  padding: 1.25rem 0;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--accent); }
.faq-question::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.open .faq-question::after {
  content: '−';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}
.faq-answer-inner p { margin: 0; }

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  padding: 80px 0 0;
  background: var(--bg-dark);
}
.breadcrumbs-list {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 16px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.breadcrumbs-list li + li::before {
  content: '/';
  margin-right: 8px;
  color: var(--border);
}
.breadcrumbs-list a { color: var(--text-muted); }
.breadcrumbs-list a:hover { color: var(--accent); }

/* ===== Article ===== */
.article {
  padding: 2rem 0 4rem;
  background: var(--bg-dark);
}
.article-content {
  max-width: 800px;
}
.article-header { margin-bottom: 2rem; }
.article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 0.5rem;
}
.article-content ul, .article-content ol {
  margin-bottom: 1.25rem;
}
.article-content li {
  margin-bottom: 0.5rem;
  color: var(--text);
}

/* ===== Layout with sidebar ===== */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

/* ===== Sidebar ===== */
.sidebar-widget {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-nav a {
  display: block;
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.sidebar-nav a:hover {
  color: var(--text-bright);
  background: rgba(255,255,255,0.05);
}

/* ===== Info boxes ===== */
.info-box {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.info-box-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.info-box-green { border-color: var(--border-accent); background: rgba(0,230,118,0.05); }
.info-box-yellow { border-color: rgba(255,213,79,0.3); background: rgba(255,213,79,0.05); }
.info-box-red { border-color: rgba(239,83,80,0.3); background: rgba(239,83,80,0.05); }

/* ===== Pros/Cons ===== */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.pros, .cons {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}
.pros { border-color: var(--border-accent); }
.cons { border-color: rgba(239,83,80,0.3); }
.pros h4 { color: var(--accent); margin-bottom: 0.75rem; }
.cons h4 { color: #EF5350; margin-bottom: 0.75rem; }
.pros ul, .cons ul {
  list-style: none;
  padding: 0;
}
.pros li, .cons li {
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.pros li::before { content: '+ '; color: var(--accent); font-weight: 700; }
.cons li::before { content: '− '; color: #EF5350; font-weight: 700; }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  margin: 3rem 0;
}
.cta-banner h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}
.cta-banner p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

/* ===== Footer — CTA banner + footer ===== */
.footer-cta {
  background: var(--bg-section-alt);
  padding: 60px 0;
  text-align: center;
}
.footer-cta h2 { margin: 0 0 0.75rem; }
.footer-cta p { color: var(--text-muted); margin: 0 0 1.5rem; }

.footer {
  background: var(--primary-dark);
  padding: 40px 0 0;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0.75rem 0;
}
.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
}
.footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== Comparison Filter ===== */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filter-btn {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,230,118,0.08);
}

/* ===== Tags ===== */
.tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  border-radius: 50px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.tag-green { border-color: var(--border-accent); color: var(--accent); background: rgba(0,230,118,0.08); }

/* ===== Terminal block ===== */
.terminal {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--text);
  overflow-x: auto;
}
.terminal .prompt { color: var(--accent); }
.terminal .comment { color: var(--text-muted); }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Utilities ===== */
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar { display: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: rgba(26,29,35,0.98);
    backdrop-filter: blur(12px);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .burger { display: flex; }
  h1 { font-size: 1.8rem; }
  .section { padding: 50px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 100px 0 50px; }
  .hero-stats { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
