:root {
  --color-bg: #1b2d1e;
  --color-surface: #223828;
  --color-primary: #2d6a4f;
  --color-accent: #f4a261;
  --color-text: #e8f5e9;
  --color-muted: #b7cfbc;
  --color-border: rgba(244, 162, 97, 0.32);
  --shadow-soft: 0 20px 45px rgba(8, 18, 10, 0.28);
  --radius-card: 12px;
  --radius-pill: 999px;
  --container: 1180px;
  --font-heading: "Philosopher", serif;
  --font-body: "Source Sans 3", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top, rgba(106, 168, 120, 0.12), transparent 36%),
    linear-gradient(180deg, #213924 0%, var(--color-bg) 18%, #162518 100%);
  color: var(--color-text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.02), transparent 28%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0, rgba(255, 255, 255, 0.015) 2px, transparent 2px, transparent 8px);
  opacity: 0.2;
}

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

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

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

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

.site-shell {
  position: relative;
  z-index: 1;
  overflow-x: clip;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(18, 31, 20, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(244, 162, 97, 0.35);
  border-radius: 10px;
  background: rgba(10, 19, 12, 0.55);
  color: var(--color-text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
}

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

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

.brand-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.brand-copy span {
  display: block;
  font-size: 0.82rem;
  color: var(--color-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1.05;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(244, 162, 97, 0.14);
  color: var(--color-text);
  transform: translateY(-1px);
}

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

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(244, 162, 97, 0.16), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(170, 219, 180, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(34, 56, 40, 0.88), rgba(27, 45, 30, 0.55)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0, rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 9px);
}

.hero::after {
  background:
    radial-gradient(circle at top, rgba(255, 240, 210, 0.15), transparent 34%),
    linear-gradient(180deg, transparent 58%, rgba(9, 15, 10, 0.26));
  mix-blend-mode: screen;
}

.hero-inner,
.page-intro-inner {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 34px;
  align-items: center;
}

.rune {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(244, 162, 97, 0.22);
  background: rgba(10, 19, 12, 0.32);
  color: #f8d9bc;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  max-width: 100%;
  white-space: normal;
  flex-wrap: wrap;
}

.rune::before {
  content: "ᚠ";
  font-family: var(--font-heading);
  font-size: 1rem;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  line-height: 1.1;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

h1 {
  font-size: clamp(2.75rem, 5vw, 4.8rem);
}

h2 {
  font-size: clamp(1.9rem, 3.1vw, 2.8rem);
}

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0 0 14px;
}

.hero-copy p,
.page-intro p,
.section-lead,
.info-note,
label {
  color: var(--color-muted);
}

.hero-copy p,
.page-intro p,
.section-lead {
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--color-accent), #f7bc86);
  color: #173120;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 12px 28px rgba(244, 162, 97, 0.24);
}

.button:hover,
button.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(244, 162, 97, 0.32);
}

.button.secondary {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(232, 245, 233, 0.18);
  box-shadow: none;
}

.hero-panel,
.card,
.news-card,
.rank-card,
.faq-item,
.category-panel,
.form-panel,
.legal-panel,
.story-panel {
  background: linear-gradient(180deg, rgba(40, 62, 45, 0.96), rgba(27, 45, 30, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 3px solid var(--color-accent);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.hero-panel,
.story-panel,
.category-panel,
.form-panel,
.legal-panel {
  padding: 26px;
}

.hero-list {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
}

.hero-list div,
.criteria-card,
.mini-card {
  padding: 18px;
  border-radius: 10px;
  background: rgba(9, 18, 11, 0.3);
  border: 1px solid rgba(244, 162, 97, 0.12);
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(11, 22, 14, 0.18), rgba(12, 24, 14, 0.36));
}

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

.grid-3,
.footer-grid,
.news-grid,
.offer-grid,
.category-card-grid,
.contact-grid,
.newsletter-wrap,
.split-layout,
.criteria-grid,
.rank-list,
.faq-stack,
.story-stack,
.legal-stack,
.category-stack {
  display: grid;
  gap: 24px;
}

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

.card,
.news-card,
.rank-card {
  overflow: hidden;
  transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.card:hover,
.news-card:hover,
.rank-card:hover,
.faq-item:hover,
.category-panel:hover {
  transform: translateY(-5px);
  background: linear-gradient(180deg, rgba(47, 81, 55, 0.98), rgba(31, 52, 36, 0.98));
  border-color: rgba(244, 162, 97, 0.22);
}

.card-media,
.rank-media {
  height: 220px;
  overflow: hidden;
}

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

.placeholder-media {
  min-height: 170px;
  background:
    radial-gradient(circle at 22% 18%, rgba(244, 162, 97, 0.26), transparent 20%),
    radial-gradient(circle at 80% 28%, rgba(108, 166, 119, 0.35), transparent 28%),
    linear-gradient(135deg, #2d6a4f, #18281b);
  position: relative;
}

.placeholder-media::before {
  content: "✦";
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(255, 239, 219, 0.78);
  font-size: 2rem;
}

.card-body,
.news-body,
.rank-body {
  padding: 22px;
}

.badge-row,
.chip-row,
.meta-row,
.utility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge,
.chip,
.meta-pill,
.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  background: rgba(244, 162, 97, 0.14);
  color: #ffe5cd;
  font-size: 0.92rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.filter-button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  background: rgba(15, 27, 18, 0.55);
  color: var(--color-muted);
}

.filter-button.active,
.filter-button:hover {
  background: rgba(244, 162, 97, 0.18);
  color: var(--color-text);
}

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

.mini-link {
  color: #f8d9bc;
  font-weight: 700;
}

.summary-card {
  padding: 22px;
}

.rank-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1fr);
}

.rank-position {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: #173120;
  background: linear-gradient(180deg, var(--color-accent), #e3bb7d);
}

.strength-list {
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
}

.strength-list li::before {
  content: "✓";
  margin-right: 10px;
  color: #f6c58f;
  font-weight: 700;
}

.criteria-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.split-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
}

.category-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-item {
  overflow: hidden;
}

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

.faq-question strong {
  font-size: 1.08rem;
}

.faq-question span {
  font-size: 1.6rem;
  line-height: 1;
  color: #f5c18d;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.34s ease, padding 0.34s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 240px;
  padding: 0 24px 22px;
}

.faq-item.open .faq-question span {
  transform: rotate(45deg);
}

.form-grid {
  display: grid;
  gap: 16px;
}

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

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(10, 17, 11, 0.45);
  color: var(--color-text);
  padding: 14px 15px;
  font: inherit;
}

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

input:focus,
textarea:focus {
  outline: 2px solid rgba(244, 162, 97, 0.28);
  border-color: rgba(244, 162, 97, 0.28);
}

.newsletter-wrap {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: center;
}

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

.newsletter-form {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.contact-grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 0.65fr);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.legal-table th,
.legal-table td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: rgba(244, 162, 97, 0.12);
}

.site-footer {
  padding: 42px 0 28px;
  background: rgba(9, 15, 10, 0.58);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.footer-grid {
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.8fr));
}

.footer-links {
  display: grid;
  gap: 10px;
}

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

.footer-brand {
  display: grid;
  gap: 16px;
}

.footer-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.page-intro {
  padding: 80px 0 44px;
  position: relative;
}

.page-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(244, 162, 97, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(40, 62, 45, 0.78), transparent);
  pointer-events: none;
}

.site-disclaimer {
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

#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;
  max-width: 100%;
  overflow-wrap: anywhere;
}

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

.page-intro-inner {
  max-width: 760px;
}

@media (max-width: 1080px) {
  .hero-grid,
  .newsletter-wrap,
  .contact-grid,
  .split-layout,
  .footer-grid,
  .grid-3,
  .news-grid,
  .offer-grid,
  .category-card-grid,
  .criteria-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .rank-media {
    grid-column: 2;
  }

  .rank-body {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-inner {
    flex-wrap: nowrap;
    gap: 10px;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px 16px 16px;
    background: rgba(18, 31, 20, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-soft);
  }

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

  .site-nav a {
    transform: none;
  }

  .brand-copy strong {
    font-size: 1.15rem;
  }
}

@media (max-width: 760px) {
  .section-head,
  .newsletter-form,
  .field-row {
    display: grid;
  }

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

  .brand {
    flex: 0 1 auto;
  }

  .header-inner {
    display: flex;
    align-items: center;
    padding: 12px 0;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form .button,
  .newsletter-form input {
    width: 100%;
    max-width: 100%;
  }

  .button,
  button.button {
    max-width: 100%;
  }

  .hero,
  .section,
  .page-intro {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  h1 {
    font-size: clamp(1.75rem, 9vw, 2.35rem);
  }

  h2 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }

  .hero-grid,
  .newsletter-wrap,
  .contact-grid,
  .split-layout,
  .grid-3,
  .news-grid,
  .offer-grid,
  .category-card-grid,
  .criteria-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .card-media,
  .rank-media {
    height: 210px;
  }

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

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand-copy span {
    font-size: 0.72rem;
  }

  .cta-row {
    flex-wrap: wrap;
  }

  .cta-row .button {
    width: 100%;
  }

  .legal-panel {
    overflow-x: auto;
  }

  .legal-table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .legal-table th,
  .legal-table td {
    word-break: break-word;
  }

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