/* NEK Kaszinó — modern light theme (aeron.hu inspired) */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f7f9fc;
  --bg-card: #ffffff;
  --bg-hero: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --accent-light: #ccfbf1;
  --accent-subtle: #f0fdfa;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 8px 30px rgba(15, 23, 42, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --max: 1180px;
  --header-h: 68px;
  --gold: #f59e0b;
  --silver: #94a3b8;
  --bronze: #d97706;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  min-width: 0;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--text);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.5rem;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Hero */
.hero {
  background: var(--bg-hero);
  padding: 3.5rem 1.5rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-light);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5.5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 600px;
  margin-inline: auto;
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

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

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-desc {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Category cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-light);
  color: inherit;
}

.category-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--border-light);
}

.category-card__media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover .category-card__media img {
  transform: scale(1.05);
}

.category-card__tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 1;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(13, 148, 136, 0.92);
  backdrop-filter: blur(4px);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
}

.category-card__body {
  padding: 1.25rem 1.35rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-card__body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.category-card__body p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.category-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.category-card__link::after {
  content: "→";
  transition: transform 0.2s;
}

.category-card:hover .category-card__link::after {
  transform: translateX(4px);
}

/* Popular strip */
.popular-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius);
  margin-top: 2rem;
  font-size: 0.875rem;
}

.popular-strip strong {
  color: var(--text);
  font-weight: 700;
  margin-right: 0.25rem;
}

.popular-strip a {
  color: var(--accent-hover);
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--accent-light);
  transition: background 0.2s, color 0.2s;
}

.popular-strip a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Article cards */
.article-list {
  display: grid;
  gap: 1rem;
}

.article-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, border-color 0.25s;
  color: inherit;
}

.article-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-light);
  color: inherit;
}

.article-card__thumb {
  min-height: 110px;
  overflow: hidden;
  background: var(--border-light);
}

.article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card__content {
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-card__meta {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.article-card__content h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.article-card__content p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Ranking table */
.ranking-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
}

.ranking-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ranking-card__header {
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

.ranking-card__header h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ranking-card__header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.ranking-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ranking-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ranking-table thead th {
  background: var(--accent-subtle);
  color: var(--accent-hover);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 2px solid var(--accent-light);
  white-space: nowrap;
}

.ranking-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}

.ranking-table tbody tr:last-child {
  border-bottom: none;
}

.ranking-table tbody tr:hover {
  background: var(--accent-subtle);
}

.ranking-table td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
}

.ranking-table .col-rank {
  width: 70px;
  text-align: center;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--border-light);
  color: var(--text-muted);
}

.rank-badge--1 {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

.rank-badge--2 {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  color: #475569;
  box-shadow: 0 2px 8px rgba(148, 163, 184, 0.2);
}

.rank-badge--3 {
  background: linear-gradient(135deg, #fed7aa, #fdba74);
  color: #9a3412;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.2);
}

.col-brand {
  font-weight: 700;
  color: var(--text);
}

.score-badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  background: var(--accent-light);
  color: var(--accent-hover);
}

.score-badge--high {
  background: #dcfce7;
  color: #166534;
}

.col-strength {
  color: var(--text);
  font-weight: 500;
}

.col-note {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.ranking-card__footer {
  padding: 1.25rem 1.75rem;
  background: var(--border-light);
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Prose block */
.prose-block {
  max-width: 760px;
}

.prose-block p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.prose-block p:last-child {
  margin-bottom: 0;
}

.homepage-article-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.homepage-article {
  max-width: 820px;
}

.article-figure {
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* Author card */
.author-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.author-card--hero {
  max-width: var(--max);
  margin: -1.5rem auto 0;
  padding: 0 1.5rem 1.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.author-card--hero .author-card__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.author-card__photo {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-light);
}

.author-card__body {
  min-width: 0;
}

.author-card__label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.author-card__name {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.author-card__role {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.author-card__date {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.author-card__updated {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.author-card__name a {
  color: inherit;
  text-decoration: none;
}

.author-card__name a:hover {
  color: var(--accent);
}

.author-card__dates {
  margin-top: 0.35rem;
}

.author-card__dates time {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Disclosures */
.site-disclosures {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 1.5rem;
}

.site-disclosures__inner {
  padding: 1rem 1.15rem;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.site-disclosure {
  margin: 0;
}

.site-disclosure strong {
  color: var(--text);
}

.content-disclaimer {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  background: var(--bg);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

.content-disclaimer strong {
  color: var(--text);
}

.disclaimer-18 {
  font-weight: 600;
  color: var(--text);
}

/* Author profile */
.author-profile {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .author-profile {
    grid-template-columns: 200px 1fr;
    align-items: start;
  }
}

.author-profile__photo {
  width: 100%;
  max-width: 200px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.author-profile__meta {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.author-profile__name {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.author-profile__role {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--text-muted);
}

.author-profile__bio p {
  margin: 0 0 0.75rem;
  line-height: 1.7;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .author-card {
    flex-wrap: wrap;
  }

  .author-card__photo {
    width: 64px;
    height: 64px;
  }
}

/* Article page */
.article-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .article-wrap {
    grid-template-columns: 1fr 280px;
  }
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.article-main {
  min-width: 0;
}

.article-main h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.article-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-main h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.article-main h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.article-main p {
  margin: 0 0 1rem;
}

.article-main ul,
.article-main ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.article-main li {
  margin-bottom: 0.35rem;
}

.article-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
  overflow-x: auto;
  display: block;
}

@media (min-width: 600px) {
  .article-main table {
    display: table;
  }
}

.article-main th,
.article-main td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.article-main th {
  background: var(--accent-subtle);
  font-weight: 600;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Sidebar */
.sidebar {
  min-width: 0;
}

.sidebar-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.sidebar-box h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.sidebar-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-links li {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-links li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.sidebar-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.sidebar-links a:hover {
  color: var(--accent);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-cloud a {
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  background: var(--accent-subtle);
  color: var(--accent-hover);
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid var(--accent-light);
}

.tag-cloud a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1.2fr;
  }
}

.footer-col h2 {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.footer-col p,
.footer-col address {
  margin: 0 0 0.5rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent);
}

.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.contact-form button {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}

.contact-form button:hover {
  background: var(--accent-hover);
}

.form-msg {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

.form-msg.visible {
  display: block;
}

.form-msg.success {
  color: #16a34a;
}

.form-msg.error {
  color: #dc2626;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.footer-col .footer-badges {
  margin-top: 1.5rem;
}

.footer-grid--compact {
  padding-bottom: 0.5rem;
}

.footer-grid--compact .footer-badges {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
}

a.footer-badge:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.footer-badge--fb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
}

.footer-badge--fb svg {
  width: 22px;
  height: 22px;
}

.footer-badge--18 {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.footer-badge--health img {
  height: 40px;
  width: auto;
  max-width: min(220px, 70vw);
  object-fit: contain;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
  padding: 1.25rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.cookie-inner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-actions button {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.cookie-accept {
  background: var(--accent);
  color: #fff;
}

.cookie-accept:hover {
  background: var(--accent-hover);
}

.cookie-decline {
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border) !important;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 520px;
  margin: 0 auto;
}

.error-page h1 {
  font-size: 5rem;
  margin: 0;
  color: var(--accent);
  line-height: 1;
  font-weight: 800;
}

.error-page h2 {
  margin: 0.5rem 0 1rem;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: background 0.2s;
}

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

/* Legacy bg classes for article thumbs */
.img-bonus,
.img-mobile,
.img-slots,
.img-mindep,
.img-new,
.img-crypto,
.img-legal,
.img-abroad,
.img-guide {
  background-size: cover;
  background-position: center;
}

.img-bonus { background-image: url("../images/card-bonus.jpg"); }
.img-mobile { background-image: url("../images/card-mobile.jpg"); }
.img-slots { background-image: url("../images/card-slots.jpg"); }
.img-mindep { background-image: url("../images/card-mindep.jpg"); }
.img-new { background-image: url("../images/card-new.jpg"); }
.img-crypto { background-image: url("../images/card-crypto.jpg"); }
.img-legal { background-image: url("../images/card-legal.jpg"); }
.img-abroad { background-image: url("../images/card-abroad.jpg"); }
.img-guide { background-image: url("../images/card-guide.jpg"); }

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem 1rem;
    display: none;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.25rem;
  }

  .main-nav a {
    display: block;
    padding: 0.5rem 0;
    border-bottom: none;
  }

  .article-card {
    grid-template-columns: 1fr;
  }

  .article-card__thumb {
    min-height: 160px;
  }

  .ranking-table td,
  .ranking-table th {
    padding: 0.75rem 1rem;
  }

  .ranking-card__header,
  .ranking-card__footer {
    padding-inline: 1.25rem;
  }
}

@media (max-width: 480px) {
  .popular-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}
