/* Best UK Money Deals — global stylesheet */

:root {
  --c-navy: #1F4E79;
  --c-blue: #2E75B6;
  --c-blue-soft: #eaf3fb;
  --c-text: #2a2f3a;
  --c-muted: #5b6573;
  --c-line: #e3e8ef;
  --c-bg: #ffffff;
  --c-section: #f6f9fc;
  --c-accent: #27AE60;
  --c-accent-dark: #1e8e4d;
  --c-warn: #c25a08;
  --c-danger: #b53939;
  --c-star: #f4b400;
  --shadow-sm: 0 2px 6px rgba(31, 78, 121, .06);
  --shadow-md: 0 8px 24px rgba(31, 78, 121, .08);
  --shadow-lg: 0 18px 40px rgba(31, 78, 121, .12);
  --radius: 12px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-offset: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  width: 100%; max-width: 100%;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { flex: 1; }
img, svg { max-width: 100%; height: auto; display: block; }
img { font-style: italic; background: var(--c-section); }
a { color: var(--c-blue); text-decoration: none; overflow-wrap: break-word; word-break: break-word; transition: color .2s var(--ease); }
a:hover { color: var(--c-navy); }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  color: var(--c-navy);
  margin: 0 0 .6em;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: break-word;
}
h1 { font-size: clamp(28px, 4.4vw, 42px); }
h2 { font-size: clamp(22px, 3vw, 32px); color: var(--c-blue); }
h3 { font-size: clamp(18px, 2.2vw, 24px); color: var(--c-text); font-weight: 600; }
h4 { font-size: 18px; color: var(--c-text); font-weight: 600; }
p { margin: 0 0 1em; color: var(--c-muted); }
ul, ol { margin: 0 0 1em; padding-left: 22px; color: var(--c-muted); }
li { margin-bottom: .35em; }
strong { color: var(--c-text); font-weight: 600; }
hr { border: none; border-top: 1px solid var(--c-line); margin: 32px 0; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .container { padding: 0 16px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Top notice */
.topbar {
  background: var(--c-navy);
  color: #d8e6f3;
  font-size: 13px;
  padding: 8px 0;
  text-align: center;
}
.topbar strong { color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--c-line);
  overflow: visible;
}
.site-header__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--c-navy); }
.brand svg { width: 38px; height: 38px; flex-shrink: 0; }
.brand:hover { color: var(--c-blue); }

.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--c-text); font-weight: 600; font-size: 14px; position: relative; padding: 4px 0; }
.nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--c-blue); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--c-blue); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--c-blue); }

.header-cta { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; background: var(--c-accent); color: #fff; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; transition: background .2s var(--ease); }
.header-cta:hover { background: var(--c-accent-dark); color: #fff; }
.header-cta svg { width: 16px; height: 16px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  z-index: 110;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(31, 78, 121, .06);
  border: 1px solid var(--c-line);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--c-navy); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1220px) {
  .burger { display: block; }
  .header-cta { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    width: 100%; max-width: 100vw;
    max-height: calc(100dvh - var(--header-offset, 72px));
    z-index: 100;
    box-sizing: border-box;
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 18px 24px 28px;
    background: #fff;
    border-top: 1px solid var(--c-line);
    box-shadow: var(--shadow-md);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-8px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .3s var(--ease), opacity .25s var(--ease), visibility 0s linear .3s;
  }
  .nav[data-open="true"] {
    transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto;
    transition: transform .3s var(--ease), opacity .25s var(--ease), visibility 0s linear 0s;
  }
  .nav a {
    width: 100%; padding: 14px 0; font-size: 18px;
    text-align: left; border-bottom: 1px solid var(--c-line);
  }
  .nav a:last-of-type { border-bottom: none; }
  .nav a::after { display: none; }
}

@media (max-width: 520px) {
  .site-header__row { gap: 12px; }
  .brand { font-size: 16px; }
  .brand svg { width: 32px; height: 32px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  background: var(--c-accent); color: #fff;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px;
  white-space: nowrap;
  transition: background .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--c-accent-dark); color: #fff; box-shadow: 0 4px 14px rgba(39, 174, 96, .3); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; }
.btn--secondary { background: var(--c-navy); }
.btn--secondary:hover { background: #163654; box-shadow: 0 4px 14px rgba(31, 78, 121, .25); }
.btn--outline { background: transparent; color: var(--c-navy); border-color: var(--c-navy); }
.btn--outline:hover { background: var(--c-navy); color: #fff; box-shadow: none; }
.btn--block { width: 100%; }
.btn--lg { padding: 14px 28px; font-size: 16px; }

/* Sections */
.section { padding: 72px 0; }
.section--alt { background: var(--c-section); }
.section--tight { padding: 48px 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section__head h2 { color: var(--c-navy); margin-bottom: 12px; }
.section__head p { font-size: 17px; color: var(--c-muted); margin: 0; }
@media (max-width: 820px) {
  .section { padding: 56px 0; }
  .section__head { margin-bottom: 36px; }
}

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 104px;
  color: #fff;
  background-image: linear-gradient(120deg, rgba(13, 36, 60, .82) 0%, rgba(31, 78, 121, .72) 60%, rgba(46, 117, 182, .68) 100%), url('/assets/img/hero/hero-bg.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 46px); margin-bottom: 16px; }
.hero__lead { font-size: 18px; color: rgba(255, 255, 255, .9); margin-bottom: 28px; max-width: 540px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 28px; font-size: 14px; color: rgba(255, 255, 255, .88); }
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 18px; height: 18px; color: var(--c-accent); flex-shrink: 0; }

.hero__form {
  background: #fff; color: var(--c-text);
  padding: 32px; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero__form h2 { color: var(--c-navy); font-size: 22px; margin-bottom: 8px; }
.hero__form p { font-size: 14px; margin-bottom: 20px; }
@media (max-width: 1020px) { .hero__inner { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 520px) {
  .hero { padding: 64px 0 72px; }
  .hero__form { padding: 24px; }
}

/* Forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--c-text); margin-bottom: 6px; }
.input, .textarea, .select-trigger {
  display: block; width: 100%; min-width: 0;
  padding: 12px 14px;
  font: inherit; font-size: 15px;
  color: var(--c-text);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #9aa4b1; }
.input:focus, .textarea:focus, .select-trigger:focus {
  outline: none; border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(46, 117, 182, .18);
}
.textarea { min-height: 140px; resize: none; font-family: inherit; }
.field--check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--c-muted); margin-bottom: 18px;
}
.field--check input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 2px; flex-shrink: 0;
  accent-color: var(--c-blue);
}
.field--check a { font-weight: 600; }

/* Custom select */
.cselect { position: relative; }
.select-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  text-align: left; cursor: pointer;
}
.select-trigger svg { width: 16px; height: 16px; color: var(--c-muted); transition: transform .2s var(--ease); flex-shrink: 0; }
.cselect[data-open="true"] .select-trigger svg { transform: rotate(180deg); }
.select-panel {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-height: 220px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s var(--ease), transform .15s var(--ease), visibility 0s linear .15s;
}
.cselect[data-open="true"] .select-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity .15s var(--ease), transform .15s var(--ease), visibility 0s linear 0s;
}
.select-option {
  padding: 10px 14px; font-size: 14px; cursor: pointer;
  transition: background .15s var(--ease);
}
.select-option:hover, .select-option[aria-selected="true"] {
  background: var(--c-blue-soft); color: var(--c-navy);
}

/* USP / features grid */
.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.usp__item {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 28px 22px; text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.usp__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(46, 117, 182, .35); }
.usp__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  margin: 0 auto 16px;
  background: var(--c-blue-soft);
  color: var(--c-blue);
  border-radius: 50%;
}
.usp__icon svg { width: 28px; height: 28px; }
.usp__item h3 { font-size: 17px; margin-bottom: 8px; }
.usp__item p { font-size: 14px; margin: 0; color: var(--c-muted); }
@media (max-width: 1020px) { .usp { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .usp { grid-template-columns: 1fr; gap: 16px; } }

/* Categories grid */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cat-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  color: var(--c-text);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--c-text); }
.cat-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-section); }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.cat-card:hover .cat-card__media img { transform: scale(1.04); }
.cat-card__body { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat-card__body h3 { font-size: 17px; margin: 0; color: var(--c-navy); }
.cat-card__body p { font-size: 14px; margin: 0; flex: 1; }
.cat-card__more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--c-blue); font-weight: 600; margin-top: 8px; }
.cat-card__more svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.cat-card:hover .cat-card__more svg { transform: translateX(3px); }
@media (max-width: 1020px) { .cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cats { grid-template-columns: 1fr; gap: 16px; } }

/* Product cards */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1020px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .products { grid-template-columns: 1fr; } }

.product-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 22px; gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  position: relative;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(46, 117, 182, .35); }
.product-card__head { display: flex; align-items: center; gap: 14px; }
.product-card__logo {
  width: 56px; height: 56px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-navy) 100%);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.product-card__logo--accent { background: linear-gradient(135deg, #f0a52a 0%, #c97a0e 100%); }
.product-card__logo--rose { background: linear-gradient(135deg, #e35b8d 0%, #a93570 100%); }
.product-card__logo--teal { background: linear-gradient(135deg, #2ba49b 0%, #196b65 100%); }
.product-card__logo--purple { background: linear-gradient(135deg, #7256d0 0%, #4a3091 100%); }
.product-card__logo--dark { background: linear-gradient(135deg, #4d5462 0%, #1f242d 100%); }
.product-card__title { font-size: 17px; margin: 0 0 2px; color: var(--c-navy); }
.product-card__issuer { font-size: 13px; color: var(--c-muted); margin: 0; }

.badge {
  position: absolute; top: 6px; right: 14px;
  background: var(--c-accent); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 9px; border-radius: 999px;
  text-transform: uppercase;
}
.badge--navy { background: var(--c-navy); }

.product-card__rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-muted); }
.stars { display: inline-flex; gap: 2px; color: var(--c-star); }
.stars svg { width: 16px; height: 16px; }

.product-card__features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.product-card__features li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px; color: var(--c-text); margin: 0;
}
.product-card__features svg { width: 16px; height: 16px; color: var(--c-accent); flex-shrink: 0; margin-top: 3px; }

.product-card__apr {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 12px;
  background: var(--c-blue-soft);
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.product-card__apr strong { color: var(--c-navy); font-size: 15px; }
.product-card__apr span { color: var(--c-muted); }

.product-card__disclaimer { font-size: 11px; color: var(--c-muted); margin: 0; line-height: 1.45; }

/* Compare table */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 32px; border: 1px solid var(--c-line); border-radius: var(--radius); }
.compare {
  width: 100%; min-width: 720px;
  border-collapse: collapse;
  background: #fff;
}
.compare th, .compare td { padding: 14px 16px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--c-line); vertical-align: middle; }
.compare thead th { background: var(--c-navy); color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .03em; text-transform: uppercase; border-bottom: none; }
.compare tbody tr:nth-child(even) { background: var(--c-section); }
.compare tbody tr:hover { background: var(--c-blue-soft); }
.compare td:first-child, .compare th:first-child { font-weight: 600; color: var(--c-navy); }
.compare .stars svg { width: 14px; height: 14px; }
.compare-badge {
  display: inline-block; background: var(--c-accent); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  margin-left: 6px; text-transform: uppercase; letter-spacing: .04em;
}

/* Articles / blog cards */
.articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  color: var(--c-text);
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--c-text); }
.article-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-section); }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.article-card:hover .article-card__media img { transform: scale(1.05); }
.article-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card__meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--c-muted); }
.article-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.article-card__meta svg { width: 13px; height: 13px; }
.article-card__title { font-size: 17px; line-height: 1.35; color: var(--c-navy); margin: 0; font-weight: 700; }
.article-card__excerpt { font-size: 14px; color: var(--c-muted); margin: 0; flex: 1; }
.article-card__more { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--c-blue); font-weight: 600; margin-top: 6px; }
.article-card__more svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.article-card:hover .article-card__more svg { transform: translateX(3px); }
@media (max-width: 1020px) { .articles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .articles { grid-template-columns: 1fr; gap: 18px; } }

/* Article body */
.article-body { max-width: 100%; }
.article-body h2 { margin-top: 32px; }
.article-body h3 { margin-top: 24px; }

/* Subscribe band */
.subscribe-band {
  background: linear-gradient(120deg, var(--c-navy) 0%, var(--c-blue) 100%);
  color: #fff;
  padding: 56px 0;
}
.subscribe-band__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.subscribe-band h2 { color: #fff; margin-bottom: 12px; }
.subscribe-band p { color: rgba(255, 255, 255, .85); margin: 0; }
.subscribe-band .field--check { color: rgba(255, 255, 255, .78); margin-top: 12px; margin-bottom: 0; }
.subscribe-band .field--check a { color: #fff; text-decoration: underline; }
.subscribe-form { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 820px) { .subscribe-band__inner { grid-template-columns: 1fr; gap: 24px; } }

/* Filter bar */
.filter-bar {
  position: relative; z-index: 50;
  display: flex; flex-wrap: wrap; gap: 14px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 32px;
  align-items: end;
}
.filter-bar .field { margin-bottom: 0; flex: 1 1 200px; min-width: 0; }
.filter-bar__reset {
  align-self: end;
  padding: 12px 18px;
  background: transparent; border: 1px solid var(--c-line); color: var(--c-muted);
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.filter-bar__reset:hover { color: var(--c-blue); border-color: var(--c-blue); }
.filter-bar__count { font-size: 13px; color: var(--c-muted); margin-top: 6px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px;
  font-weight: 600; color: var(--c-navy);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; width: 12px; height: 12px;
  border-right: 2px solid var(--c-blue);
  border-bottom: 2px solid var(--c-blue);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .25s var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq__body { padding: 0 22px 18px; color: var(--c-muted); font-size: 15px; line-height: 1.65; }

/* Page hero / intro */
.page-hero {
  background: linear-gradient(120deg, var(--c-navy) 0%, var(--c-blue) 100%);
  color: #fff;
  padding: 64px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255, 255, 255, .88); font-size: 17px; max-width: 720px; margin: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .72); margin-bottom: 14px; }
.breadcrumbs a { color: #fff; }
.breadcrumbs a:hover { color: rgba(255, 255, 255, .78); }
.breadcrumbs span[aria-current] { color: rgba(255, 255, 255, .92); }

/* Legal content */
.legal-content { padding: 56px 0; }
.legal-content h2 { margin-top: 36px; }
.legal-content h3 { margin-top: 24px; }
.legal-content ul, .legal-content ol { color: var(--c-text); }
.legal-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.legal-content th, .legal-content td { border: 1px solid var(--c-line); padding: 10px 14px; font-size: 14px; text-align: left; }
.legal-content th { background: var(--c-section); color: var(--c-navy); font-weight: 600; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow-md); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px; }
.value-card h3 { font-size: 17px; }
.value-card p { margin: 0; font-size: 14px; }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .values { grid-template-columns: 1fr; }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.contact-info { background: var(--c-section); border-radius: var(--radius); padding: 28px; }
.contact-info h3 { margin-bottom: 18px; }
.contact-info ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-info li { display: flex; gap: 12px; font-size: 14px; color: var(--c-text); margin: 0; }
.contact-info li svg { width: 20px; height: 20px; color: var(--c-blue); flex-shrink: 0; margin-top: 2px; }
.contact-info li > div { min-width: 0; overflow-wrap: break-word; word-break: break-word; }
.contact-info strong { display: block; color: var(--c-navy); margin-bottom: 2px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 520px) { .contact-info { padding: 20px; } }
@media (max-width: 360px) { .contact-info { padding: 16px; } }

/* Footer */
.site-footer {
  background: #0d2640;
  color: rgba(255, 255, 255, .78);
  padding: 56px 0 24px;
  font-size: 14px;
}
.site-footer a { color: rgba(255, 255, 255, .88); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; margin-bottom: 36px; }
.footer-grid h3 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; font-family: 'Inter', sans-serif; font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid li { margin: 0; color: rgba(255, 255, 255, .78); }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; font-size: 18px; margin-bottom: 12px; }
.footer__brand svg { width: 36px; height: 36px; }
.footer__about p { color: rgba(255, 255, 255, .65); font-size: 13px; margin: 0; }
.footer__social { display: flex; gap: 10px; margin-top: 14px; }
.footer__social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border-radius: 50%;
  transition: background .2s var(--ease);
}
.footer__social a:hover { background: rgba(255, 255, 255, .18); }
.footer__social svg { width: 18px; height: 18px; color: #fff; }
.footer__disclaimer {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 20px; margin-top: 12px;
  font-size: 12px; color: rgba(255, 255, 255, .58);
  line-height: 1.6;
}
.footer__disclaimer p { margin: 0 0 8px; color: inherit; }
.footer__disclaimer strong { color: #fff; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: 18px; font-size: 12px; color: rgba(255, 255, 255, .55);
}
.footer__age {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .1); color: #fff;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__about { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding-top: 40px; }
  .footer__bottom { justify-content: flex-start; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 80;
  background: #fff; color: var(--c-text);
  border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px 22px;
  display: none;
  align-items: center; gap: 18px; flex-wrap: wrap;
  max-width: 880px; margin: 0 auto;
}
.cookie-banner[data-show="true"] { display: flex; }
.cookie-banner p { margin: 0; flex: 1 1 280px; font-size: 13px; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 9px 16px; font-size: 13px; }
@media (max-width: 520px) {
  .cookie-banner { padding: 14px 16px; left: 8px; right: 8px; bottom: 8px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; }
}

/* Toast */
.toast-backdrop {
  position: fixed; inset: 0;
  background: rgba(13, 38, 64, .55);
  display: none;
  align-items: center; justify-content: center;
  z-index: 200;
  padding: 16px;
  backdrop-filter: blur(2px);
}
.toast-backdrop[data-show="true"] { display: flex; }
.toast {
  background: #fff; border-radius: var(--radius);
  padding: 32px 32px 28px;
  text-align: center; max-width: 380px; width: 100%;
  box-shadow: var(--shadow-lg);
  animation: toastIn .25s var(--ease);
}
.toast__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--c-blue-soft); color: var(--c-blue);
}
.toast--ok .toast__icon { background: rgba(39, 174, 96, .14); color: var(--c-accent); }
.toast--err .toast__icon { background: rgba(181, 57, 57, .12); color: var(--c-danger); }
.toast__icon svg { width: 28px; height: 28px; }
.toast h3 { margin: 0 0 6px; font-size: 18px; color: var(--c-navy); }
.toast p { margin: 0; font-size: 14px; }
@keyframes toastIn {
  from { transform: translateY(8px) scale(.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Apply modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(13, 38, 64, .58);
  display: none;
  align-items: center; justify-content: center;
  z-index: 220;
  padding: 20px;
  overflow-y: auto;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal-backdrop[data-show="true"] { display: flex; }
.modal {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 32px 28px;
  max-width: 480px; width: 100%;
  box-shadow: var(--shadow-lg);
  animation: modalIn .25s var(--ease);
  margin: auto;
}
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border: none; background: var(--c-section);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--c-muted);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.modal__close:hover { background: var(--c-line); color: var(--c-text); }
.modal__close svg { width: 18px; height: 18px; }
.modal__header { margin-bottom: 20px; padding-right: 36px; }
.modal__header h3 { color: var(--c-navy); font-size: 20px; margin: 0 0 6px; }
.modal__header p { margin: 0; font-size: 14px; }
.modal__form .field { margin-bottom: 14px; }
.modal__form .input[readonly] { background: var(--c-section); color: var(--c-navy); font-weight: 600; cursor: default; }
.modal__form .input[readonly]:focus { box-shadow: none; border-color: var(--c-line); }
body[data-modal-open="true"] { overflow: hidden; }
@keyframes modalIn {
  from { transform: translateY(12px) scale(.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
@media (max-width: 520px) {
  .modal { padding: 24px 22px 20px; }
  .modal__header { padding-right: 32px; }
}

/* Chat widget */
.chat {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  font-family: inherit;
}
.chat__fab {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--c-accent); color: #fff;
  display: grid; place-items: center;
  border: none; box-shadow: var(--shadow-lg);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.chat__fab:hover { transform: scale(1.05); background: var(--c-accent-dark); }
.chat__fab svg { width: 28px; height: 28px; }
.chat__fab[aria-expanded="true"] .chat__fab-open { display: none; }
.chat__fab-close { display: none; }
.chat__fab[aria-expanded="true"] .chat__fab-close { display: block; }

.chat__panel {
  position: absolute; right: 0; bottom: 76px;
  width: 340px; max-width: calc(100vw - 32px);
  max-height: 480px;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.96);
  transform-origin: bottom right;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  overflow: hidden;
}
.chat[data-open="true"] .chat__panel {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear 0s;
}
.chat__header {
  background: linear-gradient(120deg, var(--c-navy) 0%, var(--c-blue) 100%);
  color: #fff;
  padding: 16px 18px;
}
.chat__header h3 { margin: 0; color: #fff; font-size: 15px; }
.chat__header p { margin: 2px 0 0; color: rgba(255, 255, 255, .8); font-size: 12px; }
.chat__body {
  flex: 1; overflow-y: auto;
  padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--c-section);
}
.chat__msg {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px; line-height: 1.5;
  word-wrap: break-word;
}
.chat__msg--bot {
  background: #fff; color: var(--c-text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
}
.chat__msg--bot a { color: var(--c-blue); font-weight: 600; }
.chat__msg--user {
  background: var(--c-blue); color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.chat__quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chat__quick button {
  background: #fff; color: var(--c-blue);
  border: 1px solid var(--c-line);
  padding: 6px 10px; font-size: 12px;
  border-radius: 999px; font-weight: 500;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.chat__quick button:hover { background: var(--c-blue-soft); }
.chat__form {
  display: flex; gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--c-line);
  background: #fff;
}
.chat__form input {
  flex: 1; min-width: 0;
  padding: 10px 14px;
  font: inherit; font-size: 14px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-section);
}
.chat__form input:focus { outline: none; border-color: var(--c-blue); }
.chat__form button {
  background: var(--c-blue); color: #fff;
  border: none; border-radius: 50%;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.chat__form button:hover { background: var(--c-navy); }
.chat__form button svg { width: 18px; height: 18px; transform: rotate(90deg); }
@media (max-width: 520px) {
  .chat { right: 12px; bottom: 12px; }
  .chat__fab { width: 54px; height: 54px; }
  .chat__panel { width: calc(100vw - 24px); bottom: 68px; max-height: 70vh; }
}

/* Article hero (blog inner usage) */
.blog-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.blog-list .article-card__media { aspect-ratio: 16 / 9; }
@media (max-width: 720px) { .blog-list { grid-template-columns: 1fr; } }

/* 404 fallback (kept tiny, in case Apache 404 hits a static) */
.notfound { padding: 96px 0; text-align: center; }
.notfound h1 { font-size: 72px; color: var(--c-navy); margin-bottom: 0; }
.notfound p { font-size: 18px; margin-bottom: 24px; }

/* Two-column intro on category pages */
.cat-intro { display: grid; grid-template-columns: 2fr 1fr; gap: 36px; margin-bottom: 36px; }
.cat-intro__aside {
  background: var(--c-section);
  border-radius: var(--radius);
  padding: 22px;
  font-size: 14px;
}
.cat-intro__aside h3 { margin: 0 0 10px; font-size: 16px; color: var(--c-navy); }
.cat-intro__aside ul { list-style: none; padding: 0; margin: 0; }
.cat-intro__aside li { display: flex; gap: 8px; margin-bottom: 8px; }
.cat-intro__aside svg { width: 16px; height: 16px; color: var(--c-accent); flex-shrink: 0; margin-top: 4px; }
@media (max-width: 820px) { .cat-intro { grid-template-columns: 1fr; gap: 22px; } }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }

/* Skip focus visibility */
*:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; border-radius: 4px; }

/* Tiny mobile fix: ensure header burger doesn't push CTA off */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .site-header__row { gap: 8px; padding-block: 14px; }
}
