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

:root {
  --navy: #102039;
  --navy-2: #17283e;
  --ink: #14243a;
  --muted: #66758a;
  --line: #dce5ed;
  --soft: #f4f8fb;
  --white: #ffffff;
  --green: #17a77d;
  --green-soft: #eaf8f3;
  --blue-line: #447bb9;
  --shadow: 0 8px 30px rgba(20, 43, 67, .055);
  --radius: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
}

/* ================= HEADER ================= */

.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .98);
  position: relative;
  z-index: 20;
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.logo-symbol {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.logo-symbol img {
  display: block;
  width: 50px;
  height: 49px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-symbol svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: #6e7c8a;
  stroke-width: 1.6;
}

.logo-copy strong {
  display: block;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -.035em;
}

.logo-copy small {
  display: block;
  color: #728094;
  font-size: 14px;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 27px;
  margin-left: auto;
  font-size: 14px;
  white-space: nowrap;
}

.main-nav a {
  transition: color .15s ease;
}

.main-nav a:hover {
  color: #4178b5;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.round-action {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.round-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
}

.follow-button {
  margin-left: 3px;
  background: var(--navy);
  color: white;
  padding: 11px 16px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.follow-button span {
  margin-left: 7px;
}

.mobile-menu {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 44px;
  -webkit-tap-highlight-color: transparent;
}

/* ================= HERO ================= */

.hero {
  min-height: 346px;
  position: relative;
  overflow: hidden;
  background: #eef4f8;
}

.hero-background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 77% 52%, rgba(255, 255, 255, .88) 0 12%, transparent 33%),
    linear-gradient(112deg, #f2f7fa 0%, #e8f0f5 44%, #d3dfe7 100%);
}

.hero-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, transparent 0 55%, rgba(100, 120, 135, .08) 55.2% 55.8%, transparent 56%),
    radial-gradient(ellipse at 82% 30%, rgba(84, 104, 119, .2), transparent 28%);
  opacity: .75;
}

.hero-content {
  min-height: 346px;
  position: relative;
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding-top: 3px;
}

.eyebrow {
  margin: 0 0 13px;
  color: #5e6e80;
  font-size: 11px;
  letter-spacing: .23em;
  font-weight: 600;
}

.eyebrow i {
  font-style: normal;
  padding-inline: 4px;
  color: #8a98a6;
}

.hero h1 {
  margin: 0;
  color: #102039;
  font-size: clamp(39px, 4.2vw, 54px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 700;
}

.hero-description {
  max-width: 505px;
  margin: 15px 0 18px;
  color: #41556c;
  font-size: 15px;
  line-height: 1.48;
}

.hero-buttons {
  display: flex;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-radius: 7px;
  padding: 10px 17px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
}

.button span {
  font-size: 15px;
}

.button-dark {
  color: white;
  background: var(--navy);
}

.button-light {
  color: var(--ink);
  background: rgba(255, 255, 255, .84);
  border-color: #cfdbe5;
}

.hero-visual {
  position: absolute;
  right: 9%;
  top: 17px;
  width: 430px;
  height: 320px;
  z-index: 2;
  filter: drop-shadow(18px 20px 24px rgba(47, 65, 79, .13));
}

.silver-bar {
  position: absolute;
  width: 225px;
  height: 130px;
  border-radius: 7px;
  background:
    linear-gradient(145deg, #fafcfd 0%, #b6c2c9 28%, #e9edef 49%, #8c9ba5 100%);
  box-shadow: inset 2px 2px 7px rgba(255, 255, 255, .8), inset -5px -6px 9px rgba(59, 75, 85, .17);
  transform: rotate(-9deg) skewY(-2deg);
}

.bar-one {
  right: 108px;
  top: 36px;
  display: grid;
  place-content: center;
  text-align: center;
  color: #596975;
  font-size: 15px;
  line-height: 1.1;
  letter-spacing: .05em;
}

.bar-one strong {
  font-size: 18px;
}

.bar-two {
  right: 9px;
  top: 109px;
  transform: rotate(7deg);
  opacity: .92;
}

.silver-coin {
  position: absolute;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  left: 104px;
  bottom: 29px;
  transform: rotate(-12deg);
  background:
    radial-gradient(circle at 42% 36%, #f8fafb 0 8%, #b3c0c8 20%, #f1f4f5 45%, #85939c 75%, #dbe1e4 100%);
  border: 7px solid #d3dade;
  box-shadow: 8px 12px 17px rgba(50, 66, 77, .23), inset 0 0 0 2px #87959e;
  display: grid;
  place-items: center;
  text-align: center;
  color: #5b6973;
  font-family: Georgia, serif;
}

.silver-coin span {
  font-size: 9px;
  letter-spacing: .12em;
  position: absolute;
  top: 13px;
}

.silver-coin b {
  font-size: 13px;
  line-height: 1.1;
}

.hero-quote {
  position: absolute;
  z-index: 4;
  right: 5px;
  bottom: 65px;
  width: 115px;
}

.hero-quote strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  line-height: 1.25;
}

.hero-quote span {
  display: block;
  width: 26px;
  border-top: 1px solid #71818f;
  margin: 10px 0;
}

.hero-quote small {
  color: #4c5e6e;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: .22em;
}

.hero-benefits {
  position: absolute;
  z-index: 6;
  left: 0;
  bottom: 21px;
  display: flex;
  gap: 36px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 8px;
}

.benefit-icon {
  width: 31px;
  height: 31px;
  border: 1px solid #75899b;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #4d6e8d;
}

.benefit strong,
.benefit small {
  display: block;
}

.benefit strong {
  font-size: 12px;
  font-weight: 600;
}

.benefit small {
  color: #6b7b8d;
  font-size: 10px;
}

/* ================= QUOTES ================= */

.quotes-section {
  padding: 15px 0 13px;
  background: #fff;
}

.quotes-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1fr 1.2fr;
  gap: 9px;
}

.quote-card {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}

.quote-heading,
.pulse-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.quote-heading>span:first-child,
.card-title,
.pulse-heading>span:first-child {
  font-size: 12px;
  font-weight: 600;
}

.market-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #1a8d6f;
  font-size: 11px;
  white-space: nowrap;
}

.market-status i {
  width: 7px;
  height: 7px;
  background: #1dbb88;
  border-radius: 50%;
  display: inline-block;
}

.quote-value-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 7px;
}

.quote-main .quote-value-line strong {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -.045em;
}

.positive {
  color: #11a779;
  font-weight: 600;
  font-size: 13px;
}

.quote-change {
  display: block;
  color: #53657a;
  font-size: 12px;
  margin-top: 2px;
}

.quote-card>small {
  color: #68788a;
  font-size: 10px;
  display: block;
  margin-top: 7px;
}

.quote-card:not(.quote-main)>strong {
  display: block;
  font-size: 21px;
  line-height: 1;
  margin-top: 11px;
  letter-spacing: -.035em;
}

.quote-card:not(.quote-main) .positive {
  display: block;
  margin-top: 5px;
}

.card-title em {
  font-style: normal;
  color: #8190a0;
  font-weight: 400;
}

.mini-silver {
  position: absolute;
  right: 14px;
  bottom: 17px;
  opacity: .75;
}

.mini-bar {
  width: 43px;
  height: 26px;
  border-radius: 3px;
  background: linear-gradient(145deg, #f5f7f8, #88969f, #dce2e5);
  transform: rotate(-19deg);
}

.mini-coin {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: radial-gradient(circle, #eef2f3, #87959f, #dbe1e4);
  border: 3px solid #cbd3d7;
}

.mini-bars {
  width: 42px;
  height: 25px;
  border-radius: 4px;
  background: linear-gradient(145deg, #f8fafb, #87959f, #e1e6e8);
  transform: skewY(-7deg);
  box-shadow: -5px 5px 0 #b4bfc5;
}

.silver-pulse {
  background: linear-gradient(135deg, #f8fbfd, #edf5f8);
}

.pulse-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.pulse-icon {
  width: 27px;
  height: 27px;
  border: 1px solid #78a2c8;
  color: #4c83ba;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.pulse-line strong {
  font-size: 13px;
}

.pulse-line b {
  color: #10a578;
  font-size: 13px;
  margin-left: auto;
}

.pulse-range {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: #53667a;
  font-size: 10px;
}

.range-track {
  height: 5px;
  margin-top: 7px;
  background: #b7d9db;
  border-radius: 99px;
  position: relative;
}

.range-track i {
  display: block;
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4d7caf;
  right: 24%;
  top: -2px;
}

/* ================= MARKET ================= */

.market-section {
  padding: 0 0 13px;
}

.market-grid {
  display: grid;
  grid-template-columns: 2.08fr 1fr;
  gap: 11px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.chart-panel {
  padding: 17px 17px 11px;
  min-height: 257px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.panel-header h2,
.converter-panel h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -.02em;
}

.panel-header h2 span {
  color: #718094;
  font-weight: 400;
}

.period-selector {
  display: flex;
  gap: 2px;
}

.period-selector button {
  border: 0;
  background: transparent;
  color: #526477;
  border-radius: 5px;
  padding: 5px 7px;
  font-size: 11px;
}

.period-selector .active {
  background: var(--navy);
  color: #fff;
}

.chart-wrap {
  position: relative;
  height: 211px;
  margin-top: 12px;
  padding-left: 27px;
}

.chart-y-axis {
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #718095;
  font-size: 10px;
}

.chart {
  width: 100%;
  height: 183px;
  display: block;
  color: var(--blue-line);
  touch-action: none;
  cursor: crosshair;
}

.grid-lines line {
  stroke: #e8eef3;
  stroke-width: 1;
}

.chart-area {
  fill: url(#chartFill);
}

.chart-line {
  fill: none;
  stroke: #3976b7;
  stroke-width: 2.1;
}

.chart-dot {
  fill: #3976b7;
  stroke: white;
  stroke-width: 2;
}

.chart-tooltip {
  position: absolute;
  left: 0;
  right: auto;
  top: 4px;
  padding: 6px 9px;
  border: 1px solid #d8e2ea;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 4px 13px rgba(20, 40, 60, .08);
  pointer-events: none;
  transform: translateX(-50%);
}

.chart-tooltip strong,
.chart-tooltip small {
  display: block;
}

.chart-tooltip strong {
  font-size: 12px;
}

.chart-tooltip small {
  font-size: 9px;
  color: #738296;
}

.chart-months {
  display: flex;
  justify-content: space-between;
  color: #718095;
  font-size: 10px;
  padding: 0 1px;
}

.converter-panel {
  padding: 17px;
  min-height: 257px;
}

.converter-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 13px 0 11px;
  border: 1px solid #dfe7ed;
  border-radius: 6px;
  overflow: hidden;
}

.converter-tabs button {
  border: 0;
  border-right: 1px solid #dfe7ed;
  background: #fff;
  color: #66758a;
  padding: 7px 4px;
  font-size: 11px;
}

.converter-tabs button:last-child {
  border-right: 0;
}

.converter-tabs .active {
  background: var(--navy);
  color: #fff;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.input-row input,
.input-row select {
  min-width: 0;
  height: 37px;
  border: 1px solid #d8e2ea;
  border-radius: 6px;
  padding: 0 11px;
  background: #fff;
  color: #273b53;
  font-size: 12px;
}

.converter-result {
  margin-top: 14px;
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -.045em;
}

.converter-note {
  display: block;
  color: #718095;
  font-size: 11px;
  margin-top: -2px;
}

.convert-button {
  width: 100%;
  margin-top: 15px;
}

/* ================= TOOLS ================= */

.tools-section {
  padding: 2px 0 13px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.tool-card {
  min-height: 61px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
  display: grid;
  grid-template-columns: 32px 1fr 10px;
  align-items: center;
  gap: 8px;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}

.tool-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.tool-icon {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #f0f5f8;
  display: grid;
  place-items: center;
  color: #385c80;
  font-size: 16px;
}

.tool-card strong,
.tool-card small {
  display: block;
}

.tool-card strong {
  font-size: 11px;
  line-height: 1.15;
}

.tool-card small {
  color: #758396;
  font-size: 9px;
  margin-top: 3px;
}

.tool-card>b {
  font-size: 16px;
  font-weight: 400;
  color: #455a71;
}

/* ================= PRODUCTS ================= */

.products-section {
  padding: 2px 0 17px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -.03em;
}

.section-heading a {
  color: #647489;
  font-size: 11px;
}

.section-heading a span {
  font-size: 16px;
  color: #243b56;
}

.products-layout {
  display: grid;
  grid-template-columns: 2.06fr 1fr;
  gap: 11px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.product-photo {
  position: relative;
  overflow: hidden;
  height: 180px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.product-photo img {
  display: block;
  width: 90px;
  height: 90px;
  object-fit: contain;
}

.product-content {
  padding: 8px 10px 9px;
}

.product-content strong,
.product-content small {
  display: block;
}

.product-content strong {
  font-size: 12px;
}

.product-content small {
  color: #6f7e90;
  font-size: 9px;
  margin-top: 2px;
}

.product-content small span {
  float: right;
  font-size: 15px;
  line-height: 7px;
  color: #233d58;
}

.invest-card {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: linear-gradient(120deg, #eef5f8, #f9fbfc);
  padding: 17px;
  display: flex;
  justify-content: space-between;
  position: relative;
}

.invest-card h2 {
  margin: 0 0 7px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.invest-card ul {
  padding: 0;
  margin: 0 0 11px;
  list-style: none;
}

.invest-card li {
  font-size: 10px;
  margin: 5px 0;
}

.invest-card li::before {
  content: "✓";
  color: #2d7b8d;
  margin-right: 7px;
  font-weight: 700;
}

.invest-card .button {
  padding: 8px 11px;
  gap: 8px;
  font-size: 10px;
}

.invest-art {
  width: 100px;
  position: relative;
  align-self: stretch;
}

.leaf {
  position: absolute;
  width: 34px;
  height: 62px;
  border: 2px solid #789b8c;
  border-left: 0;
  border-radius: 100% 0 100% 0;
  transform: rotate(31deg);
  right: 38px;
  top: 3px;
  opacity: .55;
}

.leaf-two {
  right: 16px;
  top: 28px;
  transform: rotate(55deg) scale(.8);
}

.coin-stack {
  position: absolute;
  bottom: 1px;
  right: 0;
  font-size: 38px;
  line-height: .43;
  color: #8d9aa1;
  transform: rotate(-4deg);
  text-shadow: 5px 7px 0 #c6cfd3;
}

/* ================= NEWS ================= */

.news-section {
  padding: 0 0 21px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.news-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.news-photo {
  height: 105px;
  position: relative;
  background: linear-gradient(135deg, #7895ad, #dbe4e9);
  overflow: hidden;
}

.news-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(170deg, transparent 35%, rgba(22, 44, 63, .25)),
    repeating-linear-gradient(173deg, transparent 0 20px, rgba(255, 255, 255, .12) 21px 22px);
}

.solar-photo {
  background: linear-gradient(140deg, #416c89, #b9c8d0 53%, #e5ecef);
}

.market-photo {
  background:
    linear-gradient(145deg, #90a5b5, #314e6a),
    repeating-linear-gradient(170deg, transparent 0 16px, rgba(255, 255, 255, .15) 17px 18px);
}

.wind-photo {
  background: linear-gradient(150deg, #9bb9cb, #e8eef0 48%, #718c79);
}

.silver-photo {
  background: radial-gradient(circle at 40% 50%, #f3f5f6, #a7b1b6 43%, #596770);
}

.news-photo span {
  position: absolute;
  z-index: 3;
  top: 9px;
  left: 10px;
  background: #fff;
  border-radius: 4px;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 600;
}

.news-content {
  padding: 8px 10px 11px;
}

.news-content small {
  color: #738194;
  font-size: 9px;
}

.news-content small i {
  font-style: normal;
  padding: 0 4px;
}

.news-content h3 {
  margin: 5px 0 0;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

/* ================= SEO ================= */

.seo-section {
  border-top: 1px solid #edf1f4;
  padding: 20px 0 23px;
}

.seo-content {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 25px;
  align-items: center;
}

.seo-content h2 {
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 21px;
  letter-spacing: -.025em;
}

.seo-content p {
  max-width: 900px;
  margin: 0;
  color: #506176;
  font-size: 12px;
  line-height: 1.6;
}

.seo-image {
  height: 77px;
  border-radius: 7px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .25), rgba(34, 54, 70, .18)),
    linear-gradient(145deg, #bfcbd2, #71818b);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 7px 10px;
}

.seo-image::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 150px;
  right: 40px;
  top: -65px;
  border-radius: 50%;
  border: 18px solid rgba(239, 244, 246, .52);
  transform: rotate(-15deg);
}

.seo-image span {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, .9);
  padding: 5px 7px;
  border-radius: 4px;
  font-size: 9px;
}

/* ================= FOOTER ================= */

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 27px 0 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr .75fr;
  gap: 25px;
}

.footer-brand p {
  color: #7a8795;
  font-size: 10px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-column>strong {
  font-size: 11px;
  margin-bottom: 3px;
}

.footer-column a,
.footer-column small {
  color: #6e7c8c;
  font-size: 10px;
}

.socials>div {
  display: flex;
  gap: 10px;
  margin-top: 3px;
}

.socials>div a {
  font-size: 14px;
  color: #263e58;
}

.newsletter form {
  display: flex;
  height: 31px;
  margin-top: 7px;
}

.newsletter input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  padding: 0 9px;
  outline: 0;
  font-size: 10px;
}

.newsletter button {
  width: 34px;
  border: 0;
  border-radius: 0 6px 6px 0;
  color: #fff;
  background: var(--navy);
  cursor: pointer;
}

.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;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
  .main-nav {
    gap: 16px;
  }

  .hero-visual {
    right: 4%;
    transform: scale(.88);
    transform-origin: right center;
  }

  .hero-quote {
    right: -2px;
  }

  .quotes-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .quote-main {
    grid-column: span 2;
  }

  .silver-pulse {
    grid-column: span 1;
  }

  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-layout {
    grid-template-columns: 1fr;
  }

  .invest-card {
    min-height: 180px;
  }
}

@media (max-width: 820px) {

  .main-nav,
  .header-actions {
    display: none;
  }

  .mobile-menu {
    display: flex;
  }

  .topbar-inner {
    position: relative;
  }

  /* Menu mobile ouvert */
  .topbar.menu-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 8px 0;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-top: 0;
    box-shadow: 0 12px 30px rgba(20, 43, 67, .12);
    font-size: 15px;
    white-space: normal;
  }

  .topbar.menu-open .main-nav a {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-soft);
  }

  .topbar.menu-open .main-nav a:last-child {
    border-bottom: 0;
  }

  .topbar.menu-open .main-nav a:hover {
    color: var(--ink-strong);
    background: var(--surface-soft);
  }

  .hero-content {
    min-height: 520px;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 50px;
  }

  .hero-visual {
    right: 3%;
    top: 180px;
    transform: scale(.72);
    transform-origin: top right;
  }

  .hero-quote {
    display: none;
  }

  .hero-benefits {
    bottom: 18px;
    gap: 20px;
  }

  .market-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ================= FOOTER TABLETTE ================= */

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
  }

  /* Logo + titre centrés */
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 0 25px;
    text-align: center;
  }

  /* Les 3 blocs sur une seule ligne */
  .footer-column {
    min-width: 0;
  }

  .footer-column>strong {
    font-size: 11px;
    margin-bottom: 5px;
  }

  .footer-column a,
  .footer-column small {
    font-size: 10px;
    line-height: 1.45;
  }
}

@media (max-width: 560px) {
  .topbar-inner {
    gap: 12px;
  }

  .logo-symbol {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .logo-symbol img {
    width: 44px;
    height: 44px;
  }

  .logo-copy strong {
    font-size: 22px;
  }

  .logo-copy small {
    font-size: 12px;
  }

  .mobile-menu {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    font-size: 30px;
  }

  .container {
    width: min(100% - 28px, 1240px);
  }

  .topbar {
    height: 62px;
  }

  .hero {
    min-height: 535px;
  }

  .hero-content {
    min-height: 535px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 230px;
  }

  .hero-visual {
    right: -50px;
    top: 215px;
    transform: scale(.62);
  }

  .hero-benefits {
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .benefit:last-child {
    grid-column: span 2;
  }

  .quotes-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quote-main,
  .silver-pulse {
    grid-column: span 2;
  }

  .quote-card {
    min-height: 115px;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .period-selector {
    width: 100%;
    justify-content: space-between;
  }

  .tools-grid {
    grid-template-columns: 1fr 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .seo-content {
    grid-template-columns: 1fr;
  }

  /* ================= FOOTER MOBILE ================= */

  .footer {
    padding: 27px 0 20px;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
  }

  /* Logo + titre centrés */
  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 0 25px;
    text-align: center;
  }

  /* Les 3 blocs sur une seule ligne */
  .footer-column {
    min-width: 0;
  }

  .footer-column>strong {
    font-size: 11px;
    margin-bottom: 5px;
  }

  .footer-column a,
  .footer-column small {
    font-size: 10px;
    line-height: 1.45;
  }
}


/* =========================================================
   THEME SYSTEM — COURSARGENT.FR
   Light = default / Dark = [data-theme="dark"]
   ========================================================= */

:root {
  color-scheme: light;
  --page-bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f4f8fb;
  --surface-elevated: #ffffff;
  --ink-strong: #14243a;
  --ink-soft: #53657a;
  --muted-text: #718094;
  --border-color: #dce5ed;
  --border-soft: #edf1f4;
  --nav-bg: rgba(255, 255, 255, .98);
  --button-bg: #102039;
  --button-text: #ffffff;
  --input-bg: #ffffff;
  --hero-bg: #eef4f8;
  --hero-ink: #102039;
  --hero-muted: #41556c;
  --chart-grid: #e8eef3;
  --chart-tooltip-bg: #ffffff;
  --tool-icon-bg: #f0f5f8;
  --green-text: #11a779;
  --pulse-bg: linear-gradient(135deg, #f8fbfd, #edf5f8);
  --invest-bg: linear-gradient(120deg, #eef5f8, #f9fbfc);
  --seo-border: #edf1f4;
  --footer-bg: #ffffff;
  --footer-muted: #6e7c8c;
}

html[data-theme="dark"] {
  color-scheme: dark;

  --page-bg: #0a111b;
  --surface: #101a27;
  --surface-soft: #0d1723;
  --surface-elevated: #142131;
  --ink-strong: #edf3f7;
  --ink-soft: #aebdca;
  --muted-text: #8395a7;
  --border-color: #253646;
  --border-soft: #1c2a39;
  --nav-bg: rgba(10, 17, 27, .96);
  --button-bg: #edf3f7;
  --button-text: #0b1520;
  --input-bg: #0d1723;
  --hero-bg: #0c1622;
  --hero-ink: #f4f7f9;
  --hero-muted: #aebdca;
  --chart-grid: #243444;
  --chart-tooltip-bg: #111d2b;
  --tool-icon-bg: #172636;
  --green-text: #39c99b;
  --pulse-bg: linear-gradient(135deg, #101f2d, #132536);
  --invest-bg: linear-gradient(120deg, #12212e, #172837);
  --seo-border: #1c2a39;
  --footer-bg: #0a111b;
  --footer-muted: #8799aa;

  background: var(--page-bg);
}

html[data-theme="dark"] body {
  background: var(--page-bg);
  color: var(--ink-strong);
}

/* Header */
html[data-theme="dark"] .topbar {
  background: var(--nav-bg);
  border-color: var(--border-color);
}

html[data-theme="dark"] .logo-copy strong,
html[data-theme="dark"] .main-nav a,
html[data-theme="dark"] .round-action,
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .panel-header h2,
html[data-theme="dark"] .converter-panel h2,
html[data-theme="dark"] .invest-card h2,
html[data-theme="dark"] .seo-content h2 {
  color: var(--ink-strong);
}

html[data-theme="dark"] .logo-copy small,
html[data-theme="dark"] .footer-brand p,
html[data-theme="dark"] .footer-column a,
html[data-theme="dark"] .footer-column small {
  color: var(--muted-text);
}

html[data-theme="dark"] .logo-symbol svg {
  stroke: #a7b6c2;
}

html[data-theme="dark"] .round-action {
  background: var(--surface);
  border-color: var(--border-color);
}

html[data-theme="dark"] .round-action svg {
  stroke: var(--ink-strong);
}

html[data-theme="dark"] .follow-button,
html[data-theme="dark"] .button-dark,
html[data-theme="dark"] .period-selector .active,
html[data-theme="dark"] .converter-tabs .active {
  background: #edf3f7;
  color: #0b1520;
}

.theme-button {
  position: relative;
}

.theme-button .moon-icon {
  display: none;
}

html[data-theme="dark"] .theme-button>svg:first-child {
  display: none;
}

html[data-theme="dark"] .theme-button .moon-icon {
  display: block;
}


/* Mobile navigation — dark theme */
html[data-theme="dark"] .topbar.menu-open .main-nav {
  background: var(--surface);
  border-color: var(--border-color);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .topbar.menu-open .main-nav a {
  color: var(--ink-strong);
  border-color: var(--border-soft);
}

html[data-theme="dark"] .mobile-menu {
  color: var(--ink-strong);
}

/* Hero */
html[data-theme="dark"] .hero {
  background: var(--hero-bg);
}

html[data-theme="dark"] .hero-background {
  background:
    radial-gradient(circle at 77% 52%, rgba(91, 116, 137, .24) 0 12%, transparent 34%),
    linear-gradient(112deg, #0b151f 0%, #101d2a 44%, #172635 100%);
}

html[data-theme="dark"] .hero-background::after {
  background:
    linear-gradient(145deg, transparent 0 55%, rgba(152, 178, 195, .08) 55.2% 55.8%, transparent 56%),
    radial-gradient(ellipse at 82% 30%, rgba(126, 155, 176, .16), transparent 28%);
}

html[data-theme="dark"] .eyebrow {
  color: #8fa2b3;
}

html[data-theme="dark"] .hero-description {
  color: var(--hero-muted);
}

html[data-theme="dark"] .button-light {
  color: #e7eef3;
  background: rgba(17, 29, 42, .75);
  border-color: #314454;
}

html[data-theme="dark"] .hero-quote strong {
  color: #e9f0f4;
}

html[data-theme="dark"] .hero-quote span {
  border-color: #657b8e;
}

html[data-theme="dark"] .hero-quote small,
html[data-theme="dark"] .benefit small {
  color: #8498a9;
}

html[data-theme="dark"] .benefit-icon {
  border-color: #526b7e;
  color: #8db2d0;
}

html[data-theme="dark"] .benefit strong {
  color: #dce6ec;
}

/* Quote cards */
html[data-theme="dark"] .quotes-section,
html[data-theme="dark"] .quote-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .tool-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .news-card {
  background: var(--surface);
}

html[data-theme="dark"] .quote-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .tool-card,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .news-card {
  border-color: var(--border-color);
}

html[data-theme="dark"] .quote-heading>span:first-child,
html[data-theme="dark"] .card-title,
html[data-theme="dark"] .pulse-heading>span:first-child,
html[data-theme="dark"] .quote-card:not(.quote-main)>strong,
html[data-theme="dark"] .quote-main .quote-value-line strong,
html[data-theme="dark"] .quote-change,
html[data-theme="dark"] .converter-result,
html[data-theme="dark"] .product-content strong,
html[data-theme="dark"] .news-content h3,
html[data-theme="dark"] .tool-card strong {
  color: var(--ink-strong);
}

html[data-theme="dark"] .quote-card>small,
html[data-theme="dark"] .pulse-range,
html[data-theme="dark"] .tool-card small,
html[data-theme="dark"] .product-content small,
html[data-theme="dark"] .news-content small,
html[data-theme="dark"] .chart-y-axis,
html[data-theme="dark"] .chart-months,
html[data-theme="dark"] .converter-note {
  color: var(--muted-text);
}

html[data-theme="dark"] .positive,
html[data-theme="dark"] .market-status,
html[data-theme="dark"] .pulse-line b {
  color: var(--green-text);
}

html[data-theme="dark"] .silver-pulse {
  background: var(--pulse-bg);
}

html[data-theme="dark"] .range-track {
  background: #294b51;
}

html[data-theme="dark"] .pulse-icon {
  border-color: #557c9d;
  color: #82b0d8;
}

html[data-theme="dark"] .card-title em {
  color: #8ea0b0;
}

/* Chart */
html[data-theme="dark"] .grid-lines line {
  stroke: var(--chart-grid);
}

html[data-theme="dark"] .chart-tooltip {
  background: var(--chart-tooltip-bg);
  border-color: var(--border-color);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .25);
}

html[data-theme="dark"] .chart-tooltip strong {
  color: var(--ink-strong);
}

html[data-theme="dark"] .chart-tooltip small {
  color: var(--muted-text);
}

html[data-theme="dark"] .chart-dot {
  stroke: #101a27;
}

html[data-theme="dark"] .period-selector button {
  color: #91a4b5;
}

/* Forms */
html[data-theme="dark"] .converter-tabs,
html[data-theme="dark"] .converter-tabs button {
  border-color: var(--border-color);
}

html[data-theme="dark"] .converter-tabs button,
html[data-theme="dark"] .input-row input,
html[data-theme="dark"] .input-row select {
  background: var(--input-bg);
  color: var(--ink-strong);
}

html[data-theme="dark"] .input-row input,
html[data-theme="dark"] .input-row select {
  border-color: var(--border-color);
}

html[data-theme="dark"] .input-row input::placeholder,
html[data-theme="dark"] .newsletter input::placeholder {
  color: #64788a;
}

/* Tools */
html[data-theme="dark"] .tool-icon {
  background: var(--tool-icon-bg);
  color: #9ec1df;
}

html[data-theme="dark"] .tool-card>b,
html[data-theme="dark"] .section-heading a,
html[data-theme="dark"] .section-heading a span {
  color: #9cafbf;
}

/* Products */
html[data-theme="dark"] .invest-card {
  background: var(--invest-bg);
  border-color: var(--border-color);
}

html[data-theme="dark"] .invest-card li {
  color: #d3dee5;
}

html[data-theme="dark"] .invest-card li::before {
  color: #68b9a1;
}

html[data-theme="dark"] .leaf {
  border-color: #618f81;
}

html[data-theme="dark"] .coin-stack {
  color: #73848d;
  text-shadow: 5px 7px 0 #394a54;
}

/* News */
html[data-theme="dark"] .news-photo::after {
  background:
    linear-gradient(170deg, transparent 35%, rgba(0, 0, 0, .38)),
    repeating-linear-gradient(173deg, transparent 0 20px, rgba(255, 255, 255, .07) 21px 22px);
}

html[data-theme="dark"] .news-photo span {
  background: #162433;
  color: #e6edf2;
}

/* SEO */
html[data-theme="dark"] .seo-section {
  border-color: var(--seo-border);
}

html[data-theme="dark"] .seo-content p {
  color: #9aabba;
}

html[data-theme="dark"] .seo-image {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .2)),
    linear-gradient(145deg, #445761, #1d2b35);
}

html[data-theme="dark"] .seo-image span {
  background: rgba(14, 25, 36, .92);
  color: #e3ebf0;
}

/* Footer */
html[data-theme="dark"] .footer {
  background: var(--footer-bg);
  border-color: var(--border-color);
}

html[data-theme="dark"] .socials>div a {
  color: #b7c6d2;
}

html[data-theme="dark"] .newsletter input {
  background: var(--input-bg);
  color: var(--ink-strong);
  border-color: var(--border-color);
}

html[data-theme="dark"] .newsletter button {
  background: #edf3f7;
  color: #0b1520;
}

/* Smooth but restrained theme transition */
body,
.topbar,
.quote-card,
.panel,
.tool-card,
.product-card,
.news-card,
.invest-card,
.footer,
.round-action,
.button-light,
.converter-tabs button,
.input-row input,
.input-row select,
.news-photo span,
.chart-tooltip,
.seo-image span {
  transition:
    background-color .22s ease,
    border-color .22s ease,
    color .22s ease,
    box-shadow .22s ease;
}

@media (prefers-reduced-motion: reduce) {

  body,
  .topbar,
  .quote-card,
  .panel,
  .tool-card,
  .product-card,
  .news-card,
  .invest-card,
  .footer,
  .round-action,
  .button-light,
  .converter-tabs button,
  .input-row input,
  .input-row select,
  .news-photo span,
  .chart-tooltip,
  .seo-image span {
    transition: none;
  }
}


/* Typography accessibility pass */
body {
  font-size: 16px;
}

.main-nav {
  font-size: 14px;
}

.logo-copy small {
  font-size: 12px;
}

.eyebrow {
  font-size: 11px;
}

.hero-description {
  font-size: 15px;
}

.button {
  font-size: 13px;
}

.quote-heading>span:first-child,
.card-title,
.pulse-heading>span:first-child {
  font-size: 12px;
}

.market-status {
  font-size: 11px;
}

.quote-change {
  font-size: 12px;
}

.quote-card>small {
  font-size: 10px;
}

.quote-card:not(.quote-main)>strong {
  font-size: 23px;
}

.positive {
  font-size: 13px;
}

.pulse-line strong,
.pulse-line b {
  font-size: 13px;
}

.pulse-range {
  font-size: 10px;
}

.panel-header h2,
.converter-panel h2 {
  font-size: 16px;
}

.period-selector button {
  font-size: 11px;
}

.chart-y-axis,
.chart-months {
  font-size: 10px;
}

.chart-tooltip strong {
  font-size: 12px;
}

.chart-tooltip small {
  font-size: 9px;
}

.converter-tabs button {
  font-size: 11px;
}

.input-row input,
.input-row select {
  font-size: 12px;
}

.converter-note {
  font-size: 11px;
}

.tool-card strong {
  font-size: 11px;
}

.tool-card small {
  font-size: 9px;
}

.section-heading h2 {
  font-size: 20px;
}

.section-heading a {
  font-size: 11px;
}

.product-content strong {
  font-size: 12px;
}

.product-content small {
  font-size: 9px;
}

.invest-card li {
  font-size: 10px;
}

.invest-card .button {
  font-size: 10px;
}

.news-photo span {
  font-size: 9px;
}

.news-content small {
  font-size: 9px;
}

.news-content h3 {
  font-size: 13px;
}

.seo-content p {
  font-size: 12px;
}

.seo-image span {
  font-size: 9px;
}

.footer-brand p {
  font-size: 10px;
}

.footer-column>strong {
  font-size: 11px;
}

.footer-column a,
.footer-column small {
  font-size: 10px;
}

.newsletter input {
  font-size: 10px;
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 42px;
  }

  .hero-description {
    font-size: 14px;
  }
}

.chart-crosshair {
  pointer-events: none;
}


.chart-header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chart-zoom-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.chart-zoom-button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border, #d9dee7);
  border-radius: 8px;
  background: var(--card-bg, #fff);
  color: var(--text, #10233f);
  font: inherit;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.chart-zoom-button:hover {
  background: var(--input-bg, #f5f7fa);
  border-color: var(--text-muted, #8a94a6);
}

.chart-zoom-button:active {
  transform: scale(.96);
}

.chart-zoom-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.chart-zoom-reset {
  width: auto;
  min-width: 58px;
  padding: 0 9px;
  font-size: 12px;
}

@media (max-width: 820px) {
  .chart-header-controls {
    width: 100%;
    justify-content: space-between;
  }

  .chart-zoom-controls {
    margin-left: auto;
  }
}


.consent-banner {
  position: fixed;
  z-index: 10000;
  left: 18px;
  right: 18px;
  bottom: 18px;
  background: var(--surface-elevated, #fff);
  color: var(--ink-strong, #14243a);
  border: 1px solid var(--border-color, #dce5ed);
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(20, 43, 67, .20);
  padding: 18px 20px;
}

.consent-banner[hidden],
.consent-modal-backdrop[hidden] {
  display: none !important;
}

.consent-banner-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.consent-copy {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-width: 0;
}

.consent-badge {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tool-icon-bg, #f0f5f8);
  color: #3976b7;
  font-weight: 700;
}

.consent-copy h2 {
  margin: 0 0 5px;
  font-size: 16px;
  letter-spacing: -.02em;
}

.consent-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--ink-soft, #53657a);
  font-size: 12px;
  line-height: 1.55;
}

.consent-copy a {
  display: inline-block;
  margin-top: 7px;
  color: #3976b7;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.consent-button {
  min-height: 38px;
  border-radius: 7px;
  padding: 0 14px;
  border: 1px solid var(--border-color, #dce5ed);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.consent-secondary {
  background: var(--surface, #fff);
  color: var(--ink-strong, #14243a);
}

.consent-primary {
  border-color: var(--button-bg, #102039);
  background: var(--button-bg, #102039);
  color: var(--button-text, #fff);
}

.consent-button:hover {
  filter: brightness(.97);
}

.consent-button:focus-visible,
.consent-close:focus-visible,
.manage-cookies-button:focus-visible {
  outline: 2px solid #3976b7;
  outline-offset: 2px;
}

.consent-modal-backdrop {
  position: fixed;
  z-index: 10001;
  inset: 0;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(4, 11, 18, .52);
  backdrop-filter: blur(3px);
}

.consent-modal {
  width: min(100%, 590px);
  max-height: min(90vh, 700px);
  overflow: auto;
  background: var(--surface-elevated, #fff);
  color: var(--ink-strong, #14243a);
  border: 1px solid var(--border-color, #dce5ed);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.consent-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
}

.consent-modal-kicker {
  display: block;
  margin-bottom: 5px;
  color: #708095;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
}

.consent-modal h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.035em;
}

.consent-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid var(--border-color, #dce5ed);
  border-radius: 50%;
  background: var(--surface, #fff);
  color: var(--ink-strong, #14243a);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.consent-modal-intro {
  margin: 13px 0 17px;
  color: var(--ink-soft, #53657a);
  font-size: 12px;
  line-height: 1.55;
}

.consent-preference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--border-soft, #edf1f4);
}

.consent-preference strong {
  display: block;
  font-size: 13px;
}

.consent-preference p {
  margin: 4px 0 0;
  color: var(--muted-text, #718094);
  font-size: 11px;
  line-height: 1.45;
}

.consent-always-active {
  flex: 0 0 auto;
  color: #15936f;
  font-size: 10px;
  font-weight: 600;
}

.consent-switch-row {
  cursor: pointer;
}

.consent-switch {
  position: relative;
  flex: 0 0 42px;
  width: 42px;
  height: 24px;
}

.consent-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.consent-slider {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: #c9d3dc;
  transition: background .18s ease;
}

.consent-slider::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  transition: transform .18s ease;
}

.consent-switch input:checked+.consent-slider {
  background: #17a77d;
}

.consent-switch input:checked+.consent-slider::after {
  transform: translateX(18px);
}

.consent-switch input:focus-visible+.consent-slider {
  outline: 2px solid #3976b7;
  outline-offset: 2px;
}

.consent-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft, #edf1f4);
}

.manage-cookies-button {
  position: fixed;
  z-index: 9998;
  left: 14px;
  bottom: 14px;
  display: none;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border-color, #dce5ed);
  border-radius: 6px;
  background: var(--surface-elevated, #fff);
  color: var(--ink-strong, #14243a);
  box-shadow: 0 5px 18px rgba(20, 43, 67, .12);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
}

.manage-cookies-button.visible {
  display: block;
}

body.consent-modal-open {
  overflow: hidden;
}

html[data-theme="dark"] .consent-banner,
html[data-theme="dark"] .consent-modal,
html[data-theme="dark"] .manage-cookies-button,
html[data-theme="dark"] .consent-secondary,
html[data-theme="dark"] .consent-close {
  background: var(--surface-elevated);
  border-color: var(--border-color);
  color: var(--ink-strong);
}

html[data-theme="dark"] .consent-copy p,
html[data-theme="dark"] .consent-modal-intro,
html[data-theme="dark"] .consent-preference p {
  color: var(--ink-soft);
}

html[data-theme="dark"] .consent-modal-kicker {
  color: var(--muted-text);
}

html[data-theme="dark"] .consent-primary {
  background: #edf3f7;
  border-color: #edf3f7;
  color: #0b1520;
}

@media (max-width: 820px) {
  .consent-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 15px;
  }

  .consent-banner-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .consent-primary {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .consent-banner {
    border-radius: 12px;
  }

  .consent-copy {
    gap: 9px;
  }

  .consent-badge {
    display: none;
  }

  .consent-copy h2 {
    font-size: 15px;
  }

  .consent-copy p {
    font-size: 11px;
  }

  .consent-modal-backdrop {
    padding: 10px;
  }

  .consent-modal {
    padding: 18px;
    border-radius: 12px;
  }

  .consent-preference {
    align-items: flex-start;
  }

  .consent-modal-actions {
    flex-direction: column-reverse;
  }

  .consent-modal-actions .consent-button {
    width: 100%;
  }
}

.main-nav a.active {
    color: var(--accent);
    font-weight: 700;
    position: relative;
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}