/* ==========================================================================
   NekrutovNet — design tokens (v2: синьо-білі тони, інша структура)
   ========================================================================== */

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

:root {
  --ink: #101827;
  --ink-soft: #4c5a72;
  --ink-faint: #8794a8;
  --blue-900: #0e2a63;
  --blue-700: #1849c6;
  --blue-600: #2f6fed;
  --blue-500: #4a86ff;
  --blue-300: #a6c4ff;
  --blue-100: #e8f0ff;
  --sky: #f5f8fd;
  --white: #ffffff;
  --line: #e2e8f2;
  --good: #1f9d6e;
  --amber: #f0a83a;

  --font-display: 'Manrope', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1160px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 20px 44px -26px rgba(16, 40, 90, 0.28);
  --shadow-tight: 0 8px 20px -14px rgba(16, 40, 90, 0.3);

  --bg: var(--white);
  --surface: var(--white);
  --surface-alt: var(--sky);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --border: var(--line);
  --accent: var(--blue-600);
  --accent-strong: var(--blue-700);
  --accent-soft: var(--blue-100);

  color-scheme: light;
}

[data-theme='dark'] {
  --bg: #070d1a;
  --surface: #0e1830;
  --surface-alt: #0b1424;
  --text: #e7ecf7;
  --text-soft: #96a3bd;
  --border: #1b2740;
  --accent: #5b93ff;
  --accent-strong: #8ab2ff;
  --accent-soft: #14203c;
  --shadow-soft: 0 25px 50px -25px rgba(0, 0, 0, 0.6);
  --shadow-tight: 0 10px 24px -14px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.16;
  margin: 0 0 .5em;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--text-soft); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 560px) {
  .container { padding: 0 28px; }
}

section { padding: 64px 0; }
@media (max-width: 720px) { section { padding: 44px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head.center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
  font-family: var(--font-body);
}
.btn svg { width: 13px; height: 13px; transition: transform .15s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: var(--shadow-tight);
}
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-primary.btn-muted { background: var(--accent-soft); color: var(--accent-strong); box-shadow: none; }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-strong); }

.btn-ghost {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.btn-ghost:hover { background: var(--accent); color: #fff; }

.btn-cabinet {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px 10px 16px; border-radius: var(--radius-sm);
  background: var(--blue-900);
  color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 8px 20px -10px rgba(14,42,99,.5);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-cabinet:hover { background: var(--blue-700); transform: translateY(-1px); }
.btn-cabinet svg { width: 16px; height: 16px; flex-shrink: 0; }
.cabinet-short { display: none; }

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

.topbar {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; font-size: 13px; color: var(--text-soft);
  flex-wrap: wrap; gap: 6px 20px;
}
.topbar a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-soft); white-space: nowrap; }
.topbar a:hover { color: var(--accent-strong); }
.topbar-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.topbar-phones { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.topbar svg { width: 14px; height: 14px; flex-shrink: 0; display: block; }
.topbar-address { white-space: nowrap; }
.topbar-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  background: var(--accent-soft); color: var(--accent-strong);
  padding: 2px 7px; border-radius: 999px; white-space: nowrap;
}
@media (max-width: 620px) {
  .topbar-address { display: none; }
  .topbar-inner { font-size: 13px; flex-direction: column; align-items: flex-start; gap: 10px 0; padding: 12px 0; }
  .topbar-links { flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
  .topbar-phones { flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
}

header.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img.brand-logo { height: 34px; width: auto; display: block; }
.footer-logo { height: 32px; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; }
.main-nav a {
  font-size: 14.5px; font-weight: 600; color: var(--text-soft);
  position: relative; padding: 4px 0; line-height: 1;
  font-family: var(--font-body);
}
.main-nav a:hover, .main-nav a.active { color: var(--accent-strong); }
.main-nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.has-sub { position: relative; }
.has-sub::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 22px;
}
.has-sub > a { display: inline-flex; align-items: center; gap: 5px; }
.has-sub > a .caret { width: 11px; height: 11px; transition: transform .2s ease; }
.has-sub.open > a .caret, .has-sub:hover > a .caret { transform: rotate(180deg); }
.sub-menu {
  position: absolute; top: 130%; left: 50%; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft); padding: 8px; min-width: 250px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; pointer-events: none; transition: opacity .15s ease;
  list-style: none; margin: 0; z-index: 2;
}
.has-sub:hover .sub-menu, .has-sub.open .sub-menu { opacity: 1; pointer-events: auto; }
.sub-menu li a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.sub-menu li a:hover { background: var(--accent-soft); color: var(--accent-strong); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--text-soft);
}
.theme-toggle:hover { color: var(--accent-strong); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme='dark'] .theme-toggle .icon-moon { display: none; }
[data-theme='dark'] .theme-toggle .icon-sun { display: block; }

.header-contact-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 10px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid transparent;
}
.header-contact-chip a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; color: var(--accent-strong); flex-shrink: 0;
}
.header-contact-chip a:hover { background: rgba(255,255,255,.5); }
.header-contact-chip a svg { width: 14px; height: 14px; }
.header-contact-chip .chip-phone {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent-strong);
  white-space: nowrap; padding-right: 2px;
}
@media (max-width: 1140px) { .header-contact-chip { display: none; } }

.burger {
  display: none; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
  align-items: center; justify-content: center; cursor: pointer;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--text); position: relative; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 90;
  background: var(--bg);
  padding: 20px 30px;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav li { border-bottom: 1px solid var(--border); }
.mobile-nav a { display: block; padding: 16px 4px; font-size: 17px; font-weight: 700; }
.btn-cabinet-mobile { width: 100%; justify-content: center; padding: 13px; margin-top: 18px; font-size: 15px; border-radius: var(--radius-md); }
.mobile-nav .mobile-sub-toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 16px 4px; font-size: 17px; font-weight: 700; color: var(--text); }
.mobile-nav .mobile-sub-toggle svg { width: 16px; height: 16px; transition: transform .2s ease; flex-shrink: 0; }
.mobile-nav li.open .mobile-sub-toggle svg { transform: rotate(180deg); }
.mobile-sub { max-height: 0; overflow: hidden; transition: max-height .2s ease; padding-left: 16px; }
.mobile-nav li.open .mobile-sub { max-height: 260px; }
.mobile-sub a { font-size: 14.5px; font-weight: 600; color: var(--text-soft); padding: 12px 4px; }
.mobile-contacts { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.mobile-contacts a { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; padding: 0; }
.mobile-contacts svg { width: 18px; height: 18px; color: var(--accent-strong); }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .burger { display: flex; }
}
@media (max-width: 640px) {
  .nav-row { gap: 6px; flex-wrap: nowrap; }
  .brand img.brand-logo { height: 28px; }
  .nav-actions { gap: 6px; }
  .btn-cabinet:not(.btn-cabinet-mobile) { padding: 9px 14px 9px 12px; box-shadow: none; }
  .btn-cabinet:not(.btn-cabinet-mobile) .cabinet-full { display: none; }
  .btn-cabinet:not(.btn-cabinet-mobile) .cabinet-short { display: inline; }
  .btn-cabinet:not(.btn-cabinet-mobile) svg { width: 16px; height: 16px; }
  .theme-toggle { width: 36px; height: 36px; flex-shrink: 0; }
  .burger { flex-shrink: 0; }
}

.hero { position: relative; overflow: hidden; padding: 56px 0 70px; background: var(--surface-alt); }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center;
  position: relative; z-index: 1;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: 20px; white-space: pre-line; }
.hero .lead { font-size: 17px; max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 8px; box-shadow: var(--shadow-soft);
}
.hero-stat-row {
  display: flex; align-items: center; gap: 16px; padding: 18px 16px;
  border-bottom: 1px solid var(--border);
}
.hero-stat-row:last-child { border-bottom: none; }
.hero-stat-icon {
  width: 46px; height: 46px; border-radius: var(--radius-md); flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
}
.hero-stat-icon svg { width: 21px; height: 21px; }
.hero-stat-row b { display: block; font-family: var(--font-mono); font-size: 20px; font-weight: 600; color: var(--text); }
.hero-stat-row span { font-size: 12.5px; color: var(--text-soft); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.plan-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.plan-grid > * { flex: 1 1 300px; max-width: 340px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: transparent; }

.card-icon-grad {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent-strong);
  border: 1.5px solid var(--blue-300);
}
.card-icon-grad svg { width: 21px; height: 21px; }
.card-icon-grad.blue, .card-icon-grad.purple, .card-icon-grad.pink,
.card-icon-grad.orange, .card-icon-grad.teal {
  background: var(--accent-soft); color: var(--accent-strong); border-color: var(--blue-300);
}

.news-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.news-card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--accent-soft); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card:hover .news-card-img img { transform: scale(1.06); }
.news-card-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
}
.news-card-placeholder svg { width: 40px; height: 40px; color: var(--accent); opacity: .5; }
.news-card-body { padding: 22px; }
.news-date { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-bottom: 10px; display: block; }
.news-card h3 { margin-bottom: 10px; font-size: 1.05rem; }
.news-card p { font-size: 14px; margin-bottom: 0; }

.section-cta { text-align: center; margin-top: 32px; }

.pricing-surface {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
}

.tariff-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.tariff-tab {
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); font-weight: 700; font-size: 14px; cursor: pointer; color: var(--text-soft);
}
.tariff-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.tariff-panel { display: none; }
.tariff-panel.active { display: block; }

.plan-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 26px 26px; display: flex; flex-direction: column; height: 100%;
  box-shadow: var(--shadow-tight);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: var(--accent); }
.plan-card.featured { border: 1.5px solid var(--accent); box-shadow: var(--shadow-soft); }
.plan-badge {
  position: absolute; top: 18px; right: -1px;
  background: var(--blue-600);
  color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  padding: 6px 14px 6px 16px; border-radius: 999px 0 0 999px;
  box-shadow: 0 8px 16px -8px rgba(24,73,198,.5);
}
.plan-name { font-family: var(--font-display); font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.plan-price { font-family: var(--font-mono); font-size: 36px; font-weight: 700; color: var(--accent-strong); margin: 0 0 18px; }
.plan-price span { font-size: 15px; font-weight: 500; color: var(--text-soft); }
.plan-list { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.plan-list li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; padding: 7px 0; color: var(--text); }
.plan-list .tick {
  width: 19px; height: 19px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.plan-list .tick svg { width: 10px; height: 10px; }
.plan-card .btn-block.btn-muted { background: var(--accent-soft); color: var(--accent-strong); box-shadow: none; }

.plan-note {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 20px 24px; font-size: 14.5px; color: var(--text-soft); margin-top: 32px; text-align: center;
}
.plan-note b { color: var(--accent-strong); }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 0; font-family: var(--font-body); font-weight: 700; font-size: 15.5px; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq-q svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; transition: transform .2s ease; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding-bottom: 20px; font-size: 14.5px; color: var(--text-soft); }
.faq-a-inner p:last-child { margin-bottom: 0; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-family: var(--font-body); font-size: 14.5px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 100px; }
.field input.invalid { border-color: #d64545; }
.field input.invalid:focus { box-shadow: 0 0 0 3px rgba(214,69,69,.15); }
.field-err { display: none; font-size: 12.5px; color: #d64545; margin-top: 6px; }
.field-err.show { display: block; }
.form-msg { font-size: 14px; margin-top: 12px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { color: var(--good); }
.form-msg.err { color: #d64545; }

.pay-card { text-align: center; }
.pay-qr { max-width: 220px; margin: 0 auto 20px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }

footer.site-footer {
  background: var(--blue-900);
  color: #cdd9f2;
  padding: 60px 0 26px;
  margin-top: 40px;
}
[data-theme='dark'] footer.site-footer { background: #050b1a; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-family: var(--font-display); font-size: 14px; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; }
.footer-grid a { color: #adc0e8; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { color: #93a6cc; font-size: 14px; max-width: 280px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 12.5px; color: #7f91b8;
}

.page-head { padding: 44px 0 8px; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-soft); margin-bottom: 18px; }
.breadcrumbs svg { width: 12px; height: 12px; opacity: .5; }

.article { max-width: 760px; margin: 0 auto; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 30px; aspect-ratio: 16/8; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); margin-bottom: 10px; }
.article-body p { color: var(--text); font-size: 16px; }
.article-body a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--accent); }

.skeleton { background: linear-gradient(90deg, var(--border) 25%, var(--accent-soft) 50%, var(--border) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-soft); }

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 36px; }
.pagination button {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; font-family: var(--font-mono); font-size: 13.5px; color: var(--text);
}
.pagination button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 1.2rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--text-soft); font-size: 14.5px; }

.section-alt { background: var(--surface-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-bg { position: absolute; inset: 0; background: rgba(14, 24, 48, .5); backdrop-filter: blur(3px); }
.modal-panel {
  position: relative; z-index: 1; width: 100%; max-width: 420px;
  background: var(--surface); border-radius: var(--radius-lg); padding: 34px;
  box-shadow: var(--shadow-soft); max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 18px; right: 18px; width: 32px; height: 32px;
  border-radius: 50%; border: 1px solid var(--border); background: var(--bg);
  cursor: pointer; color: var(--text-soft); font-size: 14px;
}
.modal-close:hover { color: var(--text); }

.connect-success { text-align: center; padding: 10px 0 4px; }
.connect-success-icon {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--accent-soft); color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
}
.connect-success-icon svg { width: 28px; height: 28px; }
.connect-success h3 { margin-bottom: 8px; }
.connect-success p { margin-bottom: 22px; }

.preview-banner {
  position: sticky; top: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent-soft); color: var(--accent-strong); font-size: 13.5px; font-weight: 700;
  padding: 10px 20px; text-align: center;
}
.preview-banner svg { width: 17px; height: 17px; flex-shrink: 0; }

.guide-step {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 18px;
  padding: 0 0 40px; position: relative;
}
.guide-step:not(:last-child)::before {
  content: ''; position: absolute; left: 22px; top: 46px; bottom: 0;
  width: 2px; background: var(--border);
}
.guide-step-num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 15px; flex-shrink: 0;
  position: relative; z-index: 1;
}
.guide-step-body p { color: var(--text); margin-bottom: 14px; }
.guide-step-images { display: flex; flex-direction: column; gap: 14px; }
.guide-step-images img {
  width: 100%; max-width: 640px; border-radius: var(--radius-md); border: 1px solid var(--border);
  box-shadow: var(--shadow-tight); cursor: zoom-in;
}
.help-guide { max-width: 820px; margin: 0 auto; }
.help-guide .tariff-tabs { max-width: 100%; }

.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(14, 24, 48, .85); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 30px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px;
}
