:root {
  --color-bg: #ffffff;
  --color-surface: #f0f6ff;
  --color-primary: #1565c0;
  --color-accent: #29b6f6;
  --color-text: #1a1a2e;
  --color-border: #e3f2fd;
  --color-muted: #51607a;
  --font-heading: "Inter", sans-serif;
  --font-body: "Inter", sans-serif;
  --shadow-card: 0 2px 16px rgba(21, 101, 192, 0.08);
  --radius-card: 12px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background: #ffffff;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top right, rgba(41, 182, 246, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  color: var(--color-text);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
}

body:has(#ck-banner) {
  padding-bottom: 92px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  min-height: 100vh;
  overflow-x: clip;
  max-width: 100%;
}

main {
  overflow-x: clip;
  max-width: 100%;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  max-width: 100%;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(227, 242, 253, 0.96);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-text {
  min-width: 0;
}

.brand-text strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.brand img,
.footer-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-text strong,
.footer-brand strong {
  display: block;
  font-size: 1.05rem;
}

.brand-text span,
.footer-brand span {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-primary);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
  margin-left: auto;
}

input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  max-width: 100%;
}

h1,
h2,
h3 {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

#ck-banner {
  box-sizing: border-box !important;
  max-width: 100% !important;
  width: 100% !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
}

#ck-banner span {
  flex: 1 1 100% !important;
  min-width: 0 !important;
  overflow-wrap: anywhere;
}

#ck-banner > div {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100%;
  flex-shrink: 1 !important;
  gap: 8px;
}

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

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--color-muted);
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-primary);
  background: rgba(41, 182, 246, 0.09);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 52px;
}

.hero::before,
.hero::after,
.page-hero::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cg fill='none' stroke='%2329b6f6' stroke-width='1.4' stroke-linecap='round' opacity='0.35'%3E%3Cpath d='M120 26v188'/%3E%3Cpath d='M26 120h188'/%3E%3Cpath d='M58 58l124 124'/%3E%3Cpath d='M182 58 58 182'/%3E%3Cpath d='m120 26 14 18-14 6-14-6 14-18Z'/%3E%3Cpath d='m214 120-18 14-6-14 6-14 18 14Z'/%3E%3Cpath d='m120 214-14-18 14-6 14 6-14 18Z'/%3E%3Cpath d='m26 120 18-14 6 14-6 14-18-14Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero::before {
  top: -80px;
  right: -50px;
}

.hero::after,
.page-hero::before {
  bottom: -90px;
  left: -60px;
}

.hero-grid,
.two-column {
  display: grid;
  gap: 36px;
  align-items: center;
}

.hero-grid {
  grid-template-columns: 1.3fr 0.9fr;
}

.hero-copy h1,
.page-hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.hero-copy p,
.page-hero p {
  max-width: 64ch;
  margin: 0 0 28px;
  color: var(--color-muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--color-primary);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  width: 76px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
}

.hero-panel,
.card,
.category-box,
.editorial-box,
.faq-item,
.news-card,
.rank-card,
.guide-card,
.contact-card,
.policy-card,
.cookie-card {
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-card);
}

.hero-panel {
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(240, 246, 255, 0.96), rgba(255, 255, 255, 0.98)),
    #fff;
}

.hero-panel h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.hero-panel p {
  margin: 0 0 18px;
  color: var(--color-muted);
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.metric {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(227, 242, 253, 0.9);
}

.metric strong {
  display: block;
  font-size: 1.4rem;
  color: var(--color-primary);
}

.cta-row,
.chip-row,
.filter-row,
.footer-links,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.btn:hover,
.filter-button:hover {
  transform: translateY(-1px);
}

.btn-primary,
.filter-button.is-active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 101, 192, 0.22);
}

.btn-secondary,
.filter-button {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-border);
}

main section,
.page-content {
  padding: 26px 0 48px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head h2,
.page-content h2,
.page-content h3 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head h2,
.page-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.section-head p,
.page-content p,
.page-content li,
.news-card p,
.rank-card p,
.card p,
.contact-card p,
.policy-card p,
.cookie-card p,
.cookie-card li,
.policy-card li,
table {
  color: var(--color-muted);
}

.cards-grid,
.news-grid,
.rank-grid,
.stats-grid,
.category-grid,
.faq-grid,
.contact-grid,
.policy-grid {
  display: grid;
  gap: 22px;
}

.cards-grid,
.news-grid,
.rank-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-grid,
.contact-grid,
.two-column,
.policy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.news-card,
.rank-card,
.category-box,
.guide-card,
.contact-card,
.policy-card,
.cookie-card {
  overflow: hidden;
  transition: border-top 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border-top: 1px solid var(--color-border);
}

.card:hover,
.news-card:hover,
.rank-card:hover,
.guide-card:hover,
.contact-card:hover,
.policy-card:hover,
.cookie-card:hover {
  transform: translateY(-3px);
  border-top: 3px solid var(--color-accent);
}

.card-media,
.rank-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-media img,
.rank-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body,
.news-body,
.rank-body,
.category-body,
.guide-body,
.contact-body,
.policy-body,
.cookie-body {
  padding: 22px;
}

.badge,
.news-tag,
.position-badge,
.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.badge,
.news-tag,
.info-pill {
  padding: 8px 12px;
  background: rgba(41, 182, 246, 0.12);
  color: var(--color-primary);
}

.position-badge {
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
}

.card h3,
.news-card h3,
.rank-card h3,
.category-box h2,
.guide-card h3,
.contact-card h2,
.policy-card h2,
.cookie-card h2 {
  margin: 14px 0 12px;
  font-size: 1.34rem;
  letter-spacing: -0.03em;
}

.chip-row a,
.chip-row span {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-primary);
  font-weight: 700;
  border: 1px solid var(--color-border);
}

.mini-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 700;
}

.page-hero {
  position: relative;
  padding: 72px 0 18px;
}

.content-stack > * + * {
  margin-top: 18px;
}

.highlight-box {
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(240, 246, 255, 0.95), rgba(255, 255, 255, 0.95));
  border: 1px solid var(--color-border);
}

.icon-list,
.check-list,
.policy-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.icon-list li,
.check-list li,
.policy-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
}

.check-list li::before {
  content: "✓";
  color: var(--color-primary);
  font-weight: 800;
}

.icon-list li span:first-child {
  font-size: 1.2rem;
  line-height: 1;
}

.news-thumb {
  min-height: 164px;
  padding: 18px;
  display: flex;
  align-items: end;
  background:
    linear-gradient(145deg, rgba(21, 101, 192, 0.9), rgba(41, 182, 246, 0.55)),
    linear-gradient(180deg, #dcefff, #ffffff);
  color: #fff;
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.news-card[hidden] {
  display: none;
}

.rank-card {
  position: relative;
}

.rank-top {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
}

.rank-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.empty-state {
  padding: 20px;
  border-radius: 14px;
  border: 1px dashed var(--color-border);
  background: linear-gradient(180deg, rgba(240, 246, 255, 0.7), rgba(255, 255, 255, 0.92));
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border: 0;
  background: #fff;
  color: var(--color-text);
  font: inherit;
  padding: 22px;
  cursor: pointer;
  text-align: left;
  font-weight: 700;
}

.faq-question span:last-child {
  color: var(--color-primary);
  font-size: 1.4rem;
  line-height: 1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.faq-answer-inner {
  padding: 0 22px 22px;
}

.faq-item.is-open .faq-question {
  border-bottom: 1px solid var(--color-border);
}

.newsletter-form,
.contact-form {
  display: grid;
  gap: 14px;
}

.newsletter-row,
.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--color-text);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  color: var(--color-text);
  background: #fff;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(41, 182, 246, 0.25);
  border-color: var(--color-accent);
}

.site-footer {
  padding: 38px 0 46px;
  background: linear-gradient(180deg, rgba(240, 246, 255, 0.85), rgba(255, 255, 255, 1));
  border-top: 1px solid var(--color-border);
}

.footer-top,
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.footer-top {
  margin-bottom: 22px;
}

.footer-brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  max-width: 420px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: flex-end;
  max-width: 520px;
}

.footer-nav a,
.footer-legal a {
  color: var(--color-primary);
  font-weight: 600;
}

.footer-copy {
  margin: 0;
  color: var(--color-muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .cards-grid,
  .news-grid,
  .rank-grid,
  .category-grid,
  .contact-grid,
  .two-column,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: center;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header .brand-text {
    display: none;
  }

  .brand {
    flex: 0 1 auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    display: none;
    flex-direction: column;
    align-items: stretch;
    z-index: 40;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .footer-top,
  .footer-bottom,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 48px 0 40px;
  }

  .container {
    width: min(var(--container), calc(100% - 16px));
  }

  .brand img,
  .footer-brand img {
    width: 44px;
    height: 44px;
  }

  .cta-row .btn {
    width: 100%;
    max-width: 100%;
  }

  .policy-body table,
  .cookie-body table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  #ck-banner > div button {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }

  .newsletter-row,
  .form-grid,
  .metric-list {
    grid-template-columns: 1fr;
  }

  .faq-question {
    padding: 18px;
  }

  .faq-answer-inner,
  .card-body,
  .news-body,
  .rank-body,
  .contact-body,
  .policy-body,
  .cookie-body,
  .category-body,
  .guide-body {
    padding: 18px;
  }
}
