:root {
  --c1: #29abe2;
  --c1d: #1a8fc4;
  --c1xl: #f0faff;
  --ink: #0d1117;
  --ink2: #1c2229;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --white: #fff;
  --green: #10b981;
  --amber: #f59e0b;
  --r: 10px;
  --r-lg: 16px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 12px 30px rgba(15, 23, 42, .08);
  --font: "Inter", system-ui, sans-serif;
  --font-h: "Space Grotesk", "Inter", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.eyebrow { margin: 0 0 10px; color: var(--c1d); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 18px; border-radius: var(--r); border: 1px solid transparent; font-weight: 700; cursor: pointer; }
.btn-primary { color: var(--white); background: var(--c1); }
.btn-primary:hover { background: var(--c1d); }
.btn-outline { color: var(--c1d); border-color: rgba(41, 171, 226, .45); background: var(--white); }
.btn-light { color: var(--ink); background: var(--white); }

.promo-bar { min-height: 42px; display: flex; gap: 12px; align-items: center; justify-content: center; padding: 8px 18px; color: var(--white); background: linear-gradient(90deg, #126fa0, var(--c1)); font-size: 13px; text-align: center; }
.promo-bar a { font-weight: 800; text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid rgba(226, 232, 240, .85); backdrop-filter: blur(14px); }
.nav-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-h); font-size: 19px; font-weight: 800; }
.brand span span { color: var(--c1); }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--white); background: var(--c1); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink2); font-size: 14px; font-weight: 600; }
.site-nav a:hover, .site-nav a.active { color: var(--c1d); background: var(--c1xl); }
.nav-wa { color: #15803d !important; background: #f0fdf4 !important; border: 1px solid #bbf7d0; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: var(--bg); border-radius: 10px; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); }

.hero { padding: 82px 0; background: radial-gradient(circle at top left, rgba(41, 171, 226, .16), transparent 34%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 36px; align-items: center; }
.hero h1, .page-head h1 { margin: 0 0 16px; font-family: var(--font-h); font-size: clamp(36px, 6vw, 64px); line-height: 1.03; letter-spacing: 0; }
.hero p, .page-head p { max-width: 670px; color: var(--muted); font-size: 17px; }
.search-form { display: flex; max-width: 620px; gap: 10px; margin-top: 26px; padding: 8px; background: var(--white); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.search-form input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 12px; font: inherit; }
.featured-panel, .article-card, .toc-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.featured-panel { padding: 28px; }
.featured-panel h2 { margin: 12px 0; font-family: var(--font-h); font-size: 28px; line-height: 1.18; }
.tag { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; color: var(--c1d); background: var(--c1xl); font-size: 12px; font-weight: 800; text-transform: uppercase; }

.section { padding: 72px 0; }
.section.alt { background: var(--bg); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-family: var(--font-h); font-size: clamp(26px, 4vw, 40px); }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.article-card { overflow: hidden; }
.article-media { min-height: 150px; display: grid; place-items: center; background: linear-gradient(135deg, #0d2a4a, var(--c1)); }
.article-media img { width: 100%; height: 180px; object-fit: cover; }
.article-media span, .article-cover span { color: rgba(255, 255, 255, .9); font-family: var(--font-h); font-size: 68px; font-weight: 800; }
.article-body { padding: 20px; }
.article-body time { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.article-body h2 { margin: 0 0 10px; font-family: var(--font-h); font-size: 20px; line-height: 1.25; }
.article-body p { color: var(--muted); margin: 0 0 16px; }
.read-more { color: var(--c1d); font-weight: 800; }
.category-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.category-list a { padding: 10px 15px; border: 1px solid var(--border); border-radius: 999px; background: var(--white); font-weight: 700; }

.page-head { padding: 72px 0 36px; background: var(--bg); border-bottom: 1px solid var(--border); }
.article-header { max-width: 820px; padding: 64px 0 30px; }
.article-header h1 { margin: 14px 0; font-family: var(--font-h); font-size: clamp(34px, 5.4vw, 58px); line-height: 1.06; }
.breadcrumb { display: flex; gap: 8px; color: var(--muted); font-size: 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); }
.article-cover { height: 360px; display: grid; place-items: center; overflow: hidden; border-radius: 18px; background: linear-gradient(135deg, #0d1117, #0d2a4a 52%, var(--c1)); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 42px; align-items: start; padding: 48px 0; }
.article-sidebar { position: sticky; top: 94px; }
.toc-box { padding: 18px; margin-bottom: 16px; }
.toc-box h2 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.toc-box a { display: block; padding: 8px 0; color: var(--c1d); font-weight: 700; }
.article-content { font-size: 18px; }
.article-content h2, .article-content h3, .article-content h4 { font-family: var(--font-h); line-height: 1.2; margin: 34px 0 12px; }
.article-content img { border-radius: 14px; }
.article-content pre { overflow: auto; padding: 18px; border-radius: 12px; background: #0d1117; color: #e5edf5; }
.article-content table { width: 100%; border-collapse: collapse; overflow: auto; display: block; }
.article-content th, .article-content td { border: 1px solid var(--border); padding: 10px; }
.cta-block { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px; border-radius: 18px; color: var(--white); background: linear-gradient(135deg, var(--ink), #0d2a4a 55%, var(--c1d)); }
.cta-block h2 { margin: 0 0 8px; font-family: var(--font-h); font-size: 30px; }
.cta-block p { margin: 0; color: rgba(255, 255, 255, .78); }

.pager { margin-top: 28px; }
.pager nav { display: flex; justify-content: center; }
.pager ul, .pager .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pager li { margin: 0; padding: 0; list-style: none; }
.pager a, .pager span {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border: 1px solid rgba(41, 171, 226, .32);
  border-radius: 10px;
  color: var(--c1d);
  background: var(--white);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}
.pager a:hover {
  border-color: var(--c1);
  background: var(--c1xl);
}
.pager li.active a, .pager li.active span, .pager .active a, .pager .active span {
  color: var(--white);
  border-color: var(--c1);
  background: var(--c1);
}
.pager li.disabled a, .pager li.disabled span, .pager .disabled a, .pager .disabled span {
  color: #94a3b8;
  border-color: var(--border);
  background: var(--bg);
  pointer-events: none;
}
.footer { padding: 62px 0 28px; color: #64748b; background: #080d14; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 36px; }
.footer h2 { margin: 0 0 14px; color: var(--white); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.footer nav a { display: block; margin: 9px 0; color: #8a94a5; font-size: 14px; }
.brand-footer { color: var(--white); margin-bottom: 14px; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .06); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .07); margin-top: 42px; padding-top: 22px; font-size: 13px; }

@media (max-width: 900px) {
  .hero-grid, .article-layout { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 16px; right: 16px; top: 76px; flex-direction: column; align-items: stretch; padding: 12px; background: var(--white); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .search-form, .cta-block { flex-direction: column; align-items: stretch; }
  .article-grid, .footer-grid { grid-template-columns: 1fr; }
  .article-cover { height: 220px; border-radius: 0; width: 100%; }
  .section { padding: 54px 0; }
}
