:root {
  --ink: #111622;
  --muted: #626b7b;
  --paper: #f3f4f2;
  --white: #ffffff;
  --navy: #09101f;
  --navy-2: #111a2d;
  --navy-3: #182238;
  --yellow: #ffc928;
  --yellow-hover: #ffd452;
  --green: #18b47a;
  --red: #e85d69;
  --line: #daddE3;
  --line-dark: rgba(255, 255, 255, 0.14);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --shell: 1240px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.shell {
  width: min(calc(100% - 32px), var(--shell));
  margin-inline: auto;
}

.visually-hidden {
  width: 1px !important;
  height: 1px !important;
  position: absolute !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 15px;
  color: var(--navy);
  background: var(--yellow);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: var(--white);
  background: rgba(9, 16, 31, 0.97);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}
.brand img { width: 136px; height: auto; }
.desktop-nav, .header-login.button { display: none; }

.menu-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--line-dark);
  cursor: pointer;
}
.menu-toggle span { width: 20px; height: 2px; background: currentColor; transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.theme-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  flex: none;
  place-items: center;
  margin-left: auto;
  padding: 0;
  color: #dbe1ec;
  background: transparent;
  border: 1px solid var(--line-dark);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover { color: var(--yellow); border-color: var(--yellow); }
.theme-toggle + .menu-toggle { margin-left: -8px; }
.theme-icon-sun, [data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: block; }

.mobile-menu {
  position: absolute;
  z-index: 1;
  top: 100%;
  right: 0;
  left: 0;
  height: calc(100vh - 70px);
  height: calc(100dvh - 70px);
  color: var(--white);
  background: var(--navy);
  border-top: 1px solid var(--line-dark);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-inner { display: grid; padding-block: 12px 36px; }
.mobile-menu a {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-dark);
  font-weight: 700;
}
.mobile-menu a::after { content: "→"; color: var(--yellow); }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.button-primary { color: var(--navy); background: var(--yellow); border-color: var(--yellow); }
.button-primary:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); }
.button-outline { color: var(--white); background: transparent; border-color: rgba(255, 255, 255, 0.3); }
.button-outline:hover { border-color: var(--yellow); }

/* Market strip */
.market-strip {
  color: var(--white);
  background: var(--navy-2);
  border-bottom: 1px solid var(--line-dark);
}
.market-strip-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  padding-top: 13px;
}
.ticker-scroller {
  width: 100%;
  min-width: 0;
  grid-row: 1;
  grid-column: 1;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #4b556d transparent;
}
.ticker-list {
  width: max-content;
  min-width: 100%;  /* gdy kafelki się mieszczą, wypełniają całą szerokość */
  display: flex;
  align-items: stretch;
}
.ticker-item {
  flex: 1 0 auto;
  min-width: 205px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name chart" "price change";
  gap: 5px 12px;
  align-items: center;
  padding: 12px 17px;
  border-right: 1px solid var(--line-dark);
  scroll-snap-align: start;
}
.ticker-item:first-child { border-left: 1px solid var(--line-dark); }
.ticker-name {
  grid-area: name;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.ticker-name strong { font-size: 0.9375rem; }
.ticker-logo { width: 18px; height: 18px; flex: none; align-self: center; border-radius: 50%; }
.ticker-name span { color: #8994aa; font-size: 0.75rem; }
.ticker-price {
  grid-area: price;
  font-variant-numeric: tabular-nums;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
}
.ticker-change {
  grid-area: change;
  justify-self: end;
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.ticker-change.positive { color: #51dca6; }
.ticker-change.negative { color: #ff7b87; }
.ticker-item svg { grid-area: chart; width: 62px; height: 23px; }
.ticker-item svg path { fill: none; stroke: #77829a; stroke-width: 2; vector-effect: non-scaling-stroke; }
.ticker-item.positive svg path { stroke: #51dca6; }
.ticker-item.negative svg path { stroke: #ff7b87; }
.ticker-item.is-loading .ticker-price { color: #7f899f; }

.sentiment-item {
  min-width: 215px;
  grid-template-columns: minmax(0, 1fr) auto;
  /* Opis stanu pod paskiem — obok paska nie mieścił się na ekranie */
  grid-template-areas: "name value" "meter meter" "label label" "meta meta";
  gap: 3px 12px;
  background: rgba(255, 201, 40, 0.025);
}
.sentiment-value {
  grid-area: value;
  justify-self: end;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
  font-size: 1.12rem;
  line-height: 1;
}
.sentiment-label {
  grid-area: label;
  justify-self: start;
  color: #c7cfdd;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.sentiment-meter {
  width: 100%;
  height: 7px;
  grid-area: meter;
  overflow: hidden;
  appearance: none;
  background: transparent;
  border: 0;
}
.sentiment-meter::-webkit-meter-bar { height: 7px; background: #343e53; border: 0; border-radius: 999px; }
.sentiment-meter::-webkit-meter-optimum-value { background: #8e9aae; border-radius: 999px; }
.sentiment-meter::-moz-meter-bar { background: #8e9aae; border-radius: 999px; }
.sentiment-item.extreme-fear .sentiment-value, .sentiment-item.fear .sentiment-value { color: #ff7b87; }
.sentiment-item.extreme-fear .sentiment-meter::-webkit-meter-optimum-value, .sentiment-item.fear .sentiment-meter::-webkit-meter-optimum-value { background: var(--red); }
.sentiment-item.extreme-fear .sentiment-meter::-moz-meter-bar, .sentiment-item.fear .sentiment-meter::-moz-meter-bar { background: var(--red); }
.sentiment-item.neutral .sentiment-value { color: #f4d26d; }
.sentiment-item.neutral .sentiment-meter::-webkit-meter-optimum-value { background: #d8b33f; }
.sentiment-item.neutral .sentiment-meter::-moz-meter-bar { background: #d8b33f; }
.sentiment-item.greed .sentiment-value, .sentiment-item.extreme-greed .sentiment-value { color: #51dca6; }
.sentiment-item.greed .sentiment-meter::-webkit-meter-optimum-value, .sentiment-item.extreme-greed .sentiment-meter::-webkit-meter-optimum-value { background: var(--green); }
.sentiment-item.greed .sentiment-meter::-moz-meter-bar, .sentiment-item.extreme-greed .sentiment-meter::-moz-meter-bar { background: var(--green); }
.sentiment-meta {
  grid-area: meta;
  color: #7f8aa0;
  font-size: 0.75rem;
  line-height: 1.35;
  white-space: nowrap;
}
.sentiment-meta a { color: #e3c867; text-decoration: underline; text-underline-offset: 2px; }
.sentiment-item.is-unavailable .sentiment-value, .sentiment-item.is-unavailable .sentiment-label { color: #929db5; }

.market-refresh {
  width: 42px;
  height: 42px;
  grid-row: 1;
  grid-column: 2;
  display: grid;
  place-items: center;
  padding: 0;
  color: #dbe1ec;
  background: transparent;
  border: 1px solid var(--line-dark);
  cursor: pointer;
}
.market-refresh:hover { color: var(--yellow); border-color: var(--yellow); }
.market-refresh:disabled { opacity: 0.55; }
.market-refresh.is-spinning span { animation: spin 0.8s linear infinite; }
.market-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3px 18px;
  padding-block: 7px 10px;
  color: #8e99ae;
  font-size: 0.75rem;
}
.market-meta p { margin: 0; }
.market-meta a { color: #e5e9f1; text-decoration: underline; text-underline-offset: 2px; }

/* Editorial lead */
.lead-section {
  padding-block: 28px 58px;
  background: var(--white);
}
.section-bar {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.section-bar > p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-bar > p span { width: 9px; height: 9px; background: var(--yellow); }
.section-bar-links { display: flex; gap: 16px; }
.section-bar-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: 0.8125rem; font-weight: 700; }
.section-bar-links a:hover { color: var(--ink); }

.lead-layout {
  display: grid;
  gap: 28px;
}
.main-story, .lead-sidebar, .side-story { min-width: 0; }
.story-media {
  aspect-ratio: 16 / 9;
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.story-media:hover img { transform: scale(1.018); }
.story-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 7px;
  color: var(--white);
  background: rgba(5, 8, 15, 0.86);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  font-weight: 700;
}
.story-play {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding-left: 4px;
  color: var(--navy);
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.story-media-main .story-duration { right: 86px; bottom: 25px; }
.story-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px 14px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}
.story-meta > span:first-child { color: #866300; }
.main-story .lead-title {
  max-width: 900px;
  margin: 10px 0 0;
  font-size: clamp(2.05rem, 9vw, 4.4rem);
  letter-spacing: -0.02em;
}
.main-story .lead-title a:hover, .side-story h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.side-story {
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
}
.side-story h2 {
  margin: 8px 0 0;
  font-size: clamp(1.35rem, 6vw, 1.8rem);
}
.news-briefs { display: grid; }
.news-brief {
  padding-block: 19px;
  border-bottom: 1px solid var(--line);
}
.news-brief > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brief-label {
  color: #765800;
  font-size: 0.75rem;
  font-weight: 700;
}
.brief-status {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}
.news-brief h2 { margin: 8px 0 4px; font-size: 1.15rem; }
.news-brief h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.news-brief p { margin: 0; color: var(--muted); font-size: 0.8125rem; }
.death-title-row {
  align-items: baseline !important;
  margin-top: 8px;
}
.death-title-row h2 {
  min-width: 0;
  flex: 1;
  margin: 0;
}
.news-brief-deaths strong {
  flex: 0 0 auto;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-size: 1.45rem;
  line-height: 1;
}

.author-row {
  display: grid;
  margin-top: 34px;
  border-block: 1px solid var(--line);
}
.author-row > a {
  min-height: 80px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-block: 12px;
}
.author-row > a + a { border-top: 1px solid var(--line); }
.author-row img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(12%);
}
.author-row > a:first-child img { object-position: 50% 12%; }
.author-row > a:nth-child(2) img { object-position: 50% 23%; }
.author-row strong, .author-row small { display: block; }
.author-row strong { font-size: 0.9375rem; }
.author-row small { margin-top: 2px; color: var(--muted); font-size: 0.75rem; }
.author-row b { color: #806000; font-size: 1.05rem; }
.author-row a:hover b { transform: translateX(3px); }

/* Directory */
.directory-section {
  padding-block: 58px 64px;
  color: var(--white);
  background: var(--navy-2);
}
.section-bar-dark { border-color: var(--white); border-bottom-color: var(--line-dark); }
.directory-layout { display: grid; gap: 38px; }
.section-kicker {
  margin-bottom: 12px;
  color: #f0cd61;
  font-size: 0.75rem;
  font-weight: 700;
}
.directory-intro h2 {
  max-width: 560px;
  margin-bottom: 15px;
  font-size: clamp(2.1rem, 9vw, 4.1rem);
  letter-spacing: -0.02em;
}
.directory-intro > p:not(.section-kicker) {
  max-width: 520px;
  color: #aab3c3;
}
.topic-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.topic-line span {
  padding: 7px 10px;
  color: #e0e5ee;
  border: 1px solid var(--line-dark);
  font-size: 0.75rem;
  font-weight: 700;
}
.tool-directory { min-width: 0; }
.tool-index { border-top: 1px solid var(--line-dark); }
.tool-index :is(a, .tool-row) {
  min-height: 78px;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line-dark);
  transition: background 0.2s ease, padding 0.2s ease;
}
.tool-index a:hover { padding-inline: 10px; background: rgba(255, 255, 255, 0.035); }
.tool-number { color: #727f95; font-variant-numeric: tabular-nums; font-size: 0.75rem; }
.tool-index strong, .tool-index small { display: block; }
.tool-index strong { font-size: 0.9375rem; }
.tool-index small { margin-top: 3px; color: #8f9aaf; font-size: 0.75rem; }
.tool-index b { color: var(--yellow); font-size: 1rem; }
.tool-row.is-unavailable { color: #c3cad6; }
.tool-row.is-unavailable em {
  max-width: 92px;
  color: #7f8a9e;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
}
.tool-utility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding-top: 18px;
  color: #aeb7c7;
}
.tool-utility-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  font-size: 0.75rem;
  font-weight: 700;
}
.tool-utility-links a:hover { color: var(--white); border-bottom-color: var(--yellow); }
.tool-utility-links a { gap: 7px; }
.tool-utility-links .link-icon { width: 16px; height: 16px; }
.link-icon-skull { color: #e8e2d4; }

/* Elita */
.elita-section { padding-block: 56px; background: var(--paper); }
.elita-banner {
  display: grid;
  gap: 26px;
  padding: 30px;
  color: var(--white);
  background: var(--navy);
  border-top: 4px solid var(--yellow);
}
.elita-banner h2 {
  max-width: 780px;
  margin-bottom: 11px;
  font-size: clamp(1.9rem, 7.5vw, 3.5rem);
}
.elita-banner > div > p:last-child { max-width: 670px; margin: 0; color: #adb6c6; }
.elita-banner .button { width: 100%; }

/* Partners */
.partners-section { padding-block: 50px 58px; background: var(--white); }
.partner-list { border-top: 1px solid var(--line); }
.partner-list article {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.partner-code {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--yellow);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.partner-code.has-logo { overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px rgba(9, 16, 31, 0.08); }
.partner-code.has-logo img { width: 100%; height: 100%; object-fit: contain; }
.button .link-icon { width: 18px; height: 18px; }
.partner-list h3 { margin: 1px 0 4px; font-size: 1.1rem; }
.partner-list p { margin: 0; color: var(--muted); font-size: 0.8125rem; }
.partner-list small {
  grid-column: 2;
  color: #7d8492;
  font-size: 0.75rem;
  font-weight: 700;
}
.partner-copy { min-width: 0; }
.partner-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  margin-bottom: 6px;
}
.partner-heading h3 { margin: 0; }
.partner-badge {
  padding: 4px 7px;
  color: #594200;
  background: #fff2bd;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}
.partner-actions {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}
.partner-actions .button {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 0.75rem;
}
.button-ink-outline { color: var(--ink); background: transparent; border-color: #aeb4bf; }
.button-ink-outline:hover { border-color: var(--ink); }
.partner-list .partner-disclosure {
  margin-top: 11px;
  color: #7b8390;
  font-size: 0.75rem;
}
.partner-list .partner-risk {
  margin-top: 14px;
  padding-top: 13px;
  color: #5d6572;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
}
.partner-risk strong { color: var(--ink); }
.partner-note { max-width: 900px; margin: 15px 0 0; color: var(--muted); font-size: 0.75rem; }

/* Footer */
.site-footer { color: #aab3c2; background: #060b14; }
.footer-main {
  display: grid;
  gap: 30px;
  padding-block: 44px 32px;
}
.footer-brand img { width: 142px; }
.footer-brand-block p { margin: 9px 0 0; color: #7f899b; font-size: 0.8125rem; }
.footer-links { display: flex; flex-wrap: wrap; align-content: start; gap: 6px 20px; }
.footer-links a { min-height: 40px; display: inline-flex; align-items: center; color: #d7dce6; font-size: 0.8125rem; }
.footer-links a:hover { color: var(--yellow); }
.footer-links a { gap: 8px; }
.link-icon { width: 20px; height: 20px; flex: none; transition: transform 0.2s ease; }
.footer-links a:hover .link-icon { transform: translateY(-1px) scale(1.08); }
.link-icon-user { color: var(--yellow); }
.footer-formal a { color: #929caf; }
.risk-box {
  padding-block: 21px;
  border-block: 1px solid var(--line-dark);
}
.risk-box strong {
  display: block;
  margin-bottom: 5px;
  color: #dfe4ec;
  font-size: 0.75rem;
}
.risk-box p { max-width: 1040px; margin: 0; color: #768195; font-size: 0.75rem; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-block: 17px 25px;
  color: #687286;
  font-size: 0.75rem;
}
.noscript-note {
  position: fixed;
  z-index: 999;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 12px;
  color: var(--navy);
  background: var(--yellow);
  font-weight: 700;
  text-align: center;
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 700px) {
  .shell { width: min(calc(100% - 56px), var(--shell)); }
  .lead-section { padding-block: 38px 72px; }
  .section-bar { margin-bottom: 28px; }
  .author-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .author-row > a { padding: 14px 20px 14px 0; }
  .author-row > a + a { padding-left: 20px; border-top: 0; border-left: 1px solid var(--line); }
  .directory-section { padding-block: 72px 82px; }
  .elita-section { padding-block: 72px; }
  .elita-banner { padding: 42px; }
  .partner-list article {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
  }
  .partner-list article.partner-item-featured { align-items: start; padding-block: 27px; }
  .partner-item-featured .partner-copy { grid-column: 2 / -1; }
  .partner-actions { display: flex; flex-wrap: wrap; }
  .partner-actions .button { width: auto; }
  .partner-list small { grid-column: 3; grid-row: 1; text-align: right; }
  .footer-main { grid-template-columns: 1.1fr 1.5fr 0.8fr; align-items: start; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 980px) {
  html { scroll-padding-top: 78px; }
  .header-inner { min-height: 78px; }
  .brand img { width: 150px; }
  .menu-toggle, .mobile-menu { display: none !important; }
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.4vw, 34px);
    margin-left: auto;
  }
  .desktop-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    position: relative;
    color: #aeb7c8;
    font-size: 0.9375rem;
    font-weight: 700;
  }
  .desktop-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 2px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
  }
  .desktop-nav a:hover, .desktop-nav a.is-active { color: var(--white); }
  .desktop-nav a:hover::after, .desktop-nav a.is-active::after { transform: scaleX(1); }
  .header-login.button { display: inline-flex; margin-left: 4px; }
  .theme-toggle { margin-left: -6px; }

  .market-strip-grid { padding-top: 0; }
  .ticker-item { min-width: 155px; padding-inline: 10px; }
  .ticker-item svg { width: 52px; }
  .ticker-item.sentiment-item { min-width: 200px; padding-inline: 13px; }

  .lead-layout {
    grid-template-columns: minmax(0, 1.68fr) minmax(315px, 0.72fr);
    align-items: start;
    gap: 34px;
  }
  .story-media-main { aspect-ratio: 16 / 8.8; }
  .main-story .lead-title { font-size: clamp(3rem, 4.4vw, 4.35rem); }
  .directory-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
    align-items: start;
    gap: 90px;
  }
  .elita-banner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 50px;
  }
  .elita-banner .button { width: auto; min-width: 250px; }
}

/* Laptopy 980–1279 px: same symbole monet, żeby pasek rynku mieścił się bez przewijania */
@media (min-width: 980px) and (max-width: 1279px) {
  .ticker-item:not(.sentiment-item) .ticker-name span { display: none; }
}

@media (min-width: 1240px) {
  .ticker-item { min-width: 158px; }
  .ticker-item.sentiment-item { min-width: 205px; }
}

@media (max-width: 390px) {
  .shell { width: min(calc(100% - 24px), var(--shell)); }
  .brand img { width: 126px; }
  .main-story .lead-title { font-size: 2rem; }
  .story-play { width: 48px; height: 48px; right: 13px; bottom: 13px; }
  .story-media-main .story-duration { right: 70px; bottom: 17px; }
  .section-bar-links { gap: 10px; }
  .section-bar-links a { font-size: 0.75rem; }
  .elita-banner { padding: 25px 21px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Wersja ciemna (przełącznik w nagłówku, wybór w localStorage "bitkurs-theme").
   Nagłówek, pasek rynku, narzędzia i stopka są ciemne zawsze — zmieniają się jasne sekcje. */
[data-theme="dark"] {
  --ink: #e8ecf3;
  --muted: #9aa4b6;
  --paper: #0d1526;
  --line: rgba(255, 255, 255, 0.12);
  color-scheme: dark;
}
[data-theme="dark"] body,
[data-theme="dark"] .lead-section,
[data-theme="dark"] .partners-section { background: #0b1120; }
[data-theme="dark"] .elita-banner { background: var(--navy-3); }
[data-theme="dark"] .story-meta > span:first-child,
[data-theme="dark"] .brief-label,
[data-theme="dark"] .author-row b { color: #f0cd61; }
[data-theme="dark"] .partner-badge { color: #ffd452; background: rgba(255, 201, 40, 0.14); }
[data-theme="dark"] .button-ink-outline { border-color: rgba(255, 255, 255, 0.3); }
[data-theme="dark"] .button-ink-outline:hover { border-color: var(--yellow); }
[data-theme="dark"] .partner-list small,
[data-theme="dark"] .partner-list .partner-disclosure,
[data-theme="dark"] .partner-list .partner-risk { color: #8a94a6; }
[data-theme="dark"] .partner-code.has-logo { box-shadow: none; }
