:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f0f4f8;
  --text: #0f172a;
  --muted: #475569;
  --border: #dbe3ec;
  --accent: #ea580c;
  --accent-2: #2563eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --container: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(37, 99, 235, 0.08),
      transparent 30%
    ),
    radial-gradient(
      circle at top right,
      rgba(234, 88, 12, 0.08),
      transparent 26%
    ),
    var(--bg);
  line-height: 1.65;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  margin: 0 0 1rem;
  color: var(--muted);
}
ul {
  padding-left: 1.25rem;
}
.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  z-index: 1000;
}
.skip-link:focus {
  left: 1rem;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(246, 248, 251, 0.85);
  border-bottom: 1px solid rgba(219, 227, 236, 0.7);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.site-nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.site-nav a {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #fff;
  color: var(--text);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
}
.menu-toggle {
  display: none;
}
.hero {
  padding: 2rem 0 1.25rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.95fr;
  gap: 1.25rem;
  align-items: stretch;
}
.hero-feature,
.panel,
.post-card,
.feature-list__item,
.article-shell,
.legal-box,
.contact-card,
.info-box,
.category-hero,
.related-card,
.ad-slot,
.cookie-banner,
.footer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-feature {
  overflow: hidden;
  position: relative;
  min-height: 560px;
}
.hero-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0) 0%,
    rgba(15, 23, 42, 0.78) 58%,
    rgba(15, 23, 42, 0.95) 100%
  );
  color: #fff;
}
.eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
}
.hero-content .eyebrow {
  color: #ffedd5;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
  margin: 0.35rem 0 0.75rem;
}
.hero-side {
  display: grid;
  gap: 1rem;
}
.panel {
  padding: 1.2rem;
}
.panel h2,
.section-head h2,
.article-content h2,
.legal-box h2,
.contact-card h2,
.info-box h2 {
  margin: 0.15rem 0 0.7rem;
  font-size: 1.35rem;
  line-height: 1.2;
}
.section {
  padding: 1rem 0 1.35rem;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.post-card {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.post-card__image img {
  aspect-ratio: 16/10;
  object-fit: cover;
}
.post-card__content {
  padding: 1rem 1rem 1.1rem;
}
.post-card h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.16rem;
  line-height: 1.25;
}
.text-link,
.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.82rem 1.1rem;
  font-weight: 700;
  transition: 0.2s ease;
}
.button {
  background: var(--text);
  color: #fff;
}
.button:hover {
  transform: translateY(-1px);
}
.button-secondary {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}
.text-link {
  padding: 0;
  color: var(--accent);
}
.feature-list {
  display: grid;
  gap: 0.8rem;
}
.feature-list__item {
  padding: 1rem;
}
.feature-list__item h3 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1rem;
}
.article-shell {
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.25rem;
}
.article-cover {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.article-cover img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.article-content h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.07;
  margin: 0.2rem 0 1rem;
}
.article-content h2 {
  margin-top: 2rem;
}
.article-content h3 {
  margin-top: 1.25rem;
}
.article-content blockquote {
  margin: 1.2rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--accent);
  background: #fff7ed;
  border-radius: 14px;
  color: #7c2d12;
}
.article-content .faq {
  margin-top: 2rem;
}
.faq-item {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-2);
  margin-bottom: 0.9rem;
}
.article-sidebar {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.author-card,
.toc-card,
.newsletter-card,
.related-card,
.footer-card {
  padding: 1rem;
}
.ad-slot {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #64748b;
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
}
.ad-slot[data-size="leaderboard"] {
  min-height: 120px;
}
.category-hero {
  padding: 1.25rem;
  margin: 1rem 0;
}
.category-hero--compact {
  padding: 40px 32px;
  margin-top: 24px;
  margin-bottom: 20px;
}

.section--tight {
  padding-top: 8px;
  padding-bottom: 8px;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.category-filter a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #0f172a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

.category-filter a:hover {
  background: #e5e7eb;
}

.category-filter a.is-active {
  background: #111827;
  color: #fff;
}

.category-summary {
  max-width: 760px;
  color: #475569;
  font-size: 16px;
  line-height: 1.7;
}

.ad-slot--category {
  min-height: 120px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  color: #0f172a;
  background: #fff;
}

.page-btn.is-active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}
.legal-grid,
.contact-grid,
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}
.legal-box,
.contact-card,
.info-box {
  padding: 1.2rem;
}
.footer {
  margin-top: 4rem;
  padding-top: 3rem;

  background:
    radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.12), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(234, 88, 12, 0.12), transparent 40%),
    #0f172a;

  color: #e2e8f0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-col h3 {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #cbd5f5;
  font-size: 0.95rem;
  transition: 0.2s;
}

.footer-col a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-brand p {
  color: #94a3b8;
  max-width: 420px;
}

.footer-title {
  font-size: 1.8rem;
  margin: 0.3rem 0 0.8rem;
  color: #fff;
}

.badge {
  background: rgba(234, 88, 12, 0.15);
  color: #fdba74;
}

.footer-socials {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-socials a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2rem;
  padding: 1.2rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 0.5rem;
  }
}

.copyright {
  margin-top: 1rem;
  opacity: 0.8;
}
.small {
  font-size: 0.93rem;
  color: var(--muted);
}
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  padding: 1rem 1rem 1rem;
  display: none;
}
.cookie-banner.is-visible {
  display: block;
}
.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}
.cookie-modal.is-visible {
  display: flex;
}
.cookie-modal__dialog {
  width: min(100%, 700px);
  background: #fff;
  border-radius: 24px;
  padding: 1.25rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  padding: 0.38rem 0.7rem;
  font-weight: 700;
  font-size: 0.84rem;
}
.table-lite {
  width: 100%;
  border-collapse: collapse;
}
.table-lite td,
.table-lite th {
  padding: 0.8rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.sr-only {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
@media (max-width: 980px) {
  .hero-grid,
  .article-shell,
  .legal-grid,
  .contact-grid,
  .footer-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    background: #fff;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
  .menu-toggle {
    display: inline-flex;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.7rem 0.9rem;
    font-weight: 700;
  }
}
@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1rem), var(--container));
  }
  .hero-feature {
    min-height: 420px;
  }
  .hero-content {
    padding: 1.15rem;
  }
  .article-shell {
    padding: 0.75rem;
  }
  .post-card__content,
  .panel,
  .author-card,
  .toc-card,
  .newsletter-card,
  .related-card,
  .footer-card,
  .legal-box,
  .contact-card,
  .info-box {
    padding: 0.95rem;
  }
}

.ad-slot {
  display: none !important;
}
