/* ==========================================================================
   PatchNet — design tokens (v4: світла версія, близька до оригінальних
   кольорів сайту - синій #186ADC на світлому фоні, без темних панелей)
   ========================================================================== */

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

:root {
  --ink: #303036;
  --ink-soft: #63636b;
  --ink-faint: #8f8f96;
  --blue-900: #123c73;
  --blue-700: #1859b4;
  --blue-600: #186adc;
  --blue-500: #0467f1;
  --blue-300: #a9cdfb;
  --blue-100: #e6f0fe;
  --sky: #f0f4f8;
  --white: #ffffff;
  --line: #d4d4e1;
  --good: #1f9d6e;

  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Istok Web', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --container: 1160px;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 7px;
  --shadow-soft: 2px 10px 34px -14px rgba(45, 45, 45, 0.22);
  --shadow-tight: 2px 4px 20px 1px rgba(45, 45, 45, 0.13);

  --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: #0e1622;
  --surface: #16202f;
  --surface-alt: #101927;
  --text: #e7edf5;
  --text-soft: #97a4b8;
  --border: #23324a;
  --accent: #4d9dff;
  --accent-strong: #7cb8ff;
  --accent-soft: #17263c;
  --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.2;
  margin: 0 0 .5em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.05rem); font-weight: 700; }
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-strong); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 16px; height: 2px; border-radius: 2px; background: var(--blue-500); }

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

/* ---- buttons (градієнт як в оригіналі) ---- */
.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: linear-gradient(90deg, var(--blue-700), var(--blue-500)); color: #fff; box-shadow: var(--shadow-tight); }
.btn-primary:hover { 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-outline.on-dark { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline.on-dark:hover { border-color: #fff; background: rgba(255,255,255,.12); }

.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: linear-gradient(90deg, var(--blue-700), var(--blue-500));
  color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 8px 20px -10px rgba(24,106,220,.5);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-cabinet:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(24,106,220,.55); }
.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; }

/* ==========================================================================
   Header
   ========================================================================== */

.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 — світлий градієнтний банер (як кнопки в оригіналі), не темна панель
   ========================================================================== */

.hero { position: relative; overflow: hidden; padding: 64px 0 84px; background: linear-gradient(120deg, var(--blue-900) 0%, var(--blue-700) 45%, var(--blue-500) 100%); }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.15) 1px, transparent 0);
  background-size: 24px 24px; opacity: .5; pointer-events: none;
}
.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 { color: #fff; margin-bottom: 20px; white-space: pre-line; }
.hero .eyebrow { color: #cfe2ff; }
.hero .eyebrow::before { background: #fff; }
.hero .lead { color: #d9e6fb; 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); }

/* ==========================================================================
   Cards / advantages / news
   ========================================================================== */

.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: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; background: linear-gradient(135deg, var(--blue-600), var(--blue-700)); color: #fff; box-shadow: 0 10px 20px -10px rgba(24,106,220,.45); }
.card-icon-grad svg { width: 21px; height: 21px; }
.card-icon-grad.purple { background: linear-gradient(135deg, #a97bf0, #6b3fc4); }
.card-icon-grad.pink { background: linear-gradient(135deg, #ff8fb3, #e0447d); }
.card-icon-grad.orange { background: linear-gradient(135deg, #ffb85e, #f07d1f); }
.card-icon-grad.teal { background: linear-gradient(135deg, #5fd8c4, #1a9d8a); }

.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-strong); 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
   ========================================================================== */

.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: linear-gradient(90deg, var(--blue-700), var(--blue-500)); border-color: transparent; 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: linear-gradient(90deg, var(--blue-700), var(--blue-500));
  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,106,220,.5);
}
.plan-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; 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 / accordion
   ========================================================================== */

.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; }

/* ==========================================================================
   Forms
   ========================================================================== */

.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 — темно-синій, але лише один блок, не суцільна темна сторінка
   ========================================================================== */

footer.site-footer { background: var(--blue-900); color: #cfe0f7; padding: 60px 0 26px; margin-top: 40px; }
[data-theme='dark'] footer.site-footer { background: #050d1a; }
.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: #aec9ee; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { color: #9bb6da; font-size: 14px; max-width: 280px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: #85a0c7; }

/* ==========================================================================
   Misc
   ========================================================================== */

.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-strong); 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: linear-gradient(90deg, var(--blue-700), var(--blue-500)); border-color: transparent; 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(18, 60, 115, .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(18, 60, 115, .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; }
