/* Instytut Zdrowia i Urody: magazyn. Biel, prawie czarny tekst, szmaragd i akcenty działów oszczędnie.
   Bez cieni, zaokrągleń i gradientów: podział robią cienkie linie i siatka. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #121212;
  --ink-2: #3B3B3B;
  --ink-3: #5C5C5C;
  --line: #E1E1E1;
  --line-2: #B9B9B9;
  --brand: #0F5132;
  --tint: #FCEBEE;
  --tint-ink: #9E2A43;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --wrap: 1200px;
  --gut: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--sans); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; top: 8px; background: #FFFFFF; padding: 8px 12px; z-index: 10; font-weight: 700; }
.skip:focus { left: 16px; }

/* ---------------------------------------------------------------- nagłówek */
.topbar { border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar p { margin: 0; }
.topbar ul { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.topbar a:hover, .topbar a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.topbar .ikony { display: flex; gap: 12px; }
.topbar .ikony svg { width: 16px; height: 16px; display: block; }

.brand { text-align: center; padding: 26px var(--gut) 18px; }
.wordmark { display: inline-flex; align-items: center; gap: 0.28em; font-weight: 800; font-size: clamp(25px, 4.6vw, 54px);
  letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.wordmark .znak { height: 0.92em; width: auto; flex: none; }

.sections { border-bottom: 1px solid var(--line); }
.sections ul { display: flex; justify-content: center; gap: 48px; list-style: none; margin: 0 auto; }
.sections a { display: block; padding: 12px 0 9px; font-weight: 700; font-size: 15.5px; white-space: nowrap;
  border-bottom: 3px solid transparent; }
.sections a:hover, .sections a[aria-current] { border-bottom-color: var(--akcent); }

/* ---------------------------------------------------------------- wspólne klocki tekstu */
.kicker { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; line-height: 1.3; }
.kicker a { color: var(--kolor, var(--brand)); }
.kicker a:hover { text-decoration: underline; text-underline-offset: 2px; }
.kicker-sep { color: var(--line-2); }
.t-s, .t-m, .t-l, .t-xl { font-weight: 800; color: var(--ink); }
.t-s { font-size: 16px; line-height: 1.22; letter-spacing: -0.01em; margin: 0 0 6px; }
.t-m { font-size: 19px; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 8px; }
.t-l { font-size: 25px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; }
.t-xl { font-size: clamp(28px, 3.1vw, 38px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 12px; }
.t-s a:hover, .t-m a:hover, .t-l a:hover, .t-xl a:hover, .sec-head h2 a:hover {
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.dek { font-size: 18px; line-height: 1.45; color: var(--ink-2); margin: 0 0 12px; }
.dek-s { font-size: 15px; line-height: 1.42; color: var(--ink-2); margin: 0 0 8px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 14px; margin: 0; font-size: 13px; color: var(--ink-3); }
.czas { display: inline-flex; align-items: center; gap: 5px; }
.czas svg { width: 13px; height: 13px; flex: none; }
.img { display: block; }
.img img { width: 100%; object-fit: cover; background: #EFEFEF; }

.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  border-top: 4px solid var(--akcent, var(--ink)); padding-top: 10px; margin-bottom: 20px; }
.sec-head h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; margin: 0; }
.sec-head h2 a { color: var(--ink); }
.sec-more { font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.sec-more:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.btn { display: inline-flex; align-items: center; gap: 9px; background: var(--ink); color: #FFFFFF; padding: 12px 18px;
  font-weight: 700; font-size: 15px; line-height: 1.2; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--brand); }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.card .img { margin-bottom: 12px; }
.card .img img { aspect-ratio: 4 / 3; }

/* ---------------------------------------------------------------- strona główna */
.home-top { display: grid; grid-template-columns: 272px minmax(0, 1fr) 272px; gap: 36px;
  grid-template-areas: "left center right"; padding-top: 28px; padding-bottom: 44px; }
.col-left { grid-area: left; }
.col-center { grid-area: center; }
.col-right { grid-area: right; }

.mini { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line); }
.mini:last-child { border-bottom: 0; margin-bottom: 0; }
.mini .img img, .side .img img { width: 84px; height: 84px; aspect-ratio: 1; }
.mini .kicker { font-size: 11px; margin-bottom: 4px; }

.lead-story .img { margin-bottom: 16px; }
.lead-story .img img { aspect-ratio: 4 / 3; }

.side { border-top: 1px solid var(--line-2); padding-top: 12px; margin-bottom: 24px; }
.side-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 14px; align-items: start; }

.reader { margin-bottom: 56px; }
.reader-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; background: var(--tint);
  border-top: 4px solid #E95E77; padding: 30px 36px 32px; }
.reader-label { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--tint-ink); }
.reader h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; margin: 0; }
.reader-opts { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px;
  font-size: 18px; font-weight: 700; }
.reader-opts li { display: flex; align-items: center; gap: 10px; }
.reader-opts b { display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--ink); color: #FFFFFF;
  font-size: 15px; flex: none; }
.reader p { margin: 0 0 18px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }

.dept-block { margin-bottom: 56px; }
.dept-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-bottom: 56px; }
.dept-col .sec-head h2 { font-size: 22px; }
.plain { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 16px; }

.trust { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; border-top: 1px solid var(--ink);
  padding-top: 20px; padding-bottom: 60px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.trust p { margin: 0; max-width: 720px; }
.trust-links { display: flex; flex-direction: column; gap: 8px; }
.trust-links a { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- dział i lista tekstów */
.dept-head { padding-top: 36px; }
.dept-head h1 { font-size: clamp(40px, 6.2vw, 76px); font-weight: 900; letter-spacing: -0.045em; line-height: 1;
  margin: 0; padding-top: 16px; border-top: 6px solid var(--akcent); }
.dept-head p { font-size: 19px; line-height: 1.45; color: var(--ink-2); max-width: 680px; margin: 14px 0 30px; }
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px; align-items: center;
  padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.feature .img img { aspect-ratio: 3 / 2; }
.rows { margin-bottom: 72px; }
.row { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.row .img img { aspect-ratio: 3 / 2; }

/* ---------------------------------------------------------------- artykuł */
.art-head { padding-top: 36px; }
.art-head h1 { font-size: clamp(32px, 4.7vw, 56px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800;
  margin: 8px 0 16px; max-width: 900px; }
.dek-art { font-size: clamp(18px, 2vw, 22px); line-height: 1.4; max-width: 760px; margin-bottom: 22px; }
.byline { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px;
  border-top: 1px solid var(--line); padding: 12px 0 0; }
.byline .meta span:first-child { color: var(--ink); font-weight: 700; }
.verified { margin: 0; font-size: 13px; }
.verified a { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.verified a::before { content: "✓"; display: inline-block; margin-right: 6px; text-decoration: none; }
.art-figure { margin: 24px auto 40px; }
.art-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #EFEFEF; }
.art-figure figcaption { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.art-figure figcaption a { text-decoration: underline; text-underline-offset: 2px; }

.art-grid { display: grid; grid-template-columns: minmax(0, 680px) 264px; column-gap: 88px; align-items: start;
  grid-template-areas: "skrot toc" "prose toc"; }
.skrot { grid-area: skrot; border-top: 4px solid var(--akcent); border-bottom: 1px solid var(--line); padding: 12px 0 4px; margin-bottom: 36px; }
.skrot h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 10px; }
.skrot ul { margin: 0; padding-left: 20px; font-size: 17px; line-height: 1.45; }
.skrot li { margin-bottom: 10px; padding-left: 2px; }
.toc { grid-area: toc; position: sticky; top: 24px; border-top: 1px solid var(--ink); padding-top: 12px; font-size: 14.5px; line-height: 1.35; }
.toc p { font-weight: 800; margin: 0 0 6px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: block; padding: 8px 0; color: var(--ink-2); }
.toc a:hover { color: var(--brand); }

.prose { grid-area: prose; font-family: var(--serif); font-size: 20px; line-height: 1.62; color: #1B1B1B; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 20px; }
.prose h2 { font-size: 27px; line-height: 1.18; font-weight: 800; letter-spacing: -0.02em; margin: 46px 0 14px; scroll-margin-top: 16px; }
.prose h3 { font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; margin: 30px 0 8px; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul { margin: 0 0 22px; padding-left: 22px; }
.prose li { margin-bottom: 10px; }
.prose strong { font-weight: 700; }
.sup { font-family: var(--sans); font-size: 11.5px; line-height: 0; vertical-align: super; }
.sup a { text-decoration: none; font-weight: 700; padding: 0 1px; }
.box { margin: 38px 0; padding: 14px 0 4px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
  font-family: var(--sans); font-size: 17px; line-height: 1.5; }
.box-label { margin: 0 0 2px; font-size: 12px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--brand); }
.box-title { margin: 0 0 10px; font-size: 21px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.box p { margin: 0 0 14px; }
.box ul { margin-bottom: 14px; }
.sources, .note { font-family: var(--sans); font-size: 14.5px; line-height: 1.5; }
.sources { border-top: 1px solid var(--ink); margin-top: 50px; }
.sources h2, .note h2 { font-size: 19px; margin: 12px 0 12px; }
.sources ol { margin: 0; padding-left: 22px; }
.sources li { margin-bottom: 10px; scroll-margin-top: 16px; }
.sources li:target { background: #FFF6D6; }
.sources .links a { margin-right: 10px; font-weight: 700; }
.note { border-top: 1px solid var(--line); margin-top: 30px; color: var(--ink-2); }
.note p { margin: 0 0 10px; }
.more { margin-top: 72px; margin-bottom: 72px; }

/* ---------------------------------------------------------------- strony informacyjne i 404 */
.info-head { padding-top: 40px; }
.info-head h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 800;
  margin: 0 0 16px; padding-top: 16px; border-top: 6px solid var(--ink); max-width: 900px; }
.info-head .dek { max-width: 720px; font-size: clamp(18px, 2vw, 21px); }
.info-body .prose { max-width: 680px; margin-top: 28px; margin-bottom: 80px; }
.muted { color: var(--ink-3); font-size: 15px; }
.err .kicker { color: var(--ink-3); }
.err-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin: 26px 0 96px; font-weight: 700; }
.err-links a:not(.btn) { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- stopka */
.site-footer { background: #111111; color: #D2D2D2; padding: 44px 0 28px; font-size: 14px; line-height: 1.55; }
.site-footer .wordmark-foot { color: #FFFFFF; font-size: 28px; }
.site-footer .znak { display: none; }
.foot-cols { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 22px; }
.foot-cols p { margin: 0 0 10px; max-width: 360px; }
.site-footer h2 { color: #FFFFFF; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #D2D2D2; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.site-footer ul svg { width: 15px; height: 15px; margin-right: 8px; vertical-align: -2px; }
.legal { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #333333; margin-top: 34px; padding-top: 16px;
  font-size: 13px; color: #A9A9A9; }
.legal p { margin: 0; }

/* ---------------------------------------------------------------- tablet */
@media (max-width: 1079px) {
  .home-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "center center" "left right"; gap: 32px; }
  .grid-4, .dept-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-grid { grid-template-columns: minmax(0, 680px) 220px; column-gap: 48px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sections ul { gap: 32px; }
}

@media (max-width: 899px) {
  .art-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "skrot" "toc" "prose"; }
  .toc { position: static; margin-bottom: 32px; }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* ---------------------------------------------------------------- telefon */
@media (max-width: 719px) {
  :root { --gut: 16px; }
  .topbar ul li:not(.ikony) { display: none; }
  .brand { padding: 18px var(--gut) 12px; }
  .sections ul { justify-content: flex-start; gap: 22px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--gut); }
  .sections ul::-webkit-scrollbar { display: none; }
  .sections a { font-size: 15px; }
  .home-top { grid-template-columns: minmax(0, 1fr); grid-template-areas: "center" "right" "left"; padding-top: 18px; gap: 26px; }
  .col-right { border-top: 0; }
  .reader-in { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px 18px 24px; }
  .reader-opts { font-size: 17px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .card .t-m { font-size: 16px; }
  .dept-cols { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .dept-col .card { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 14px; align-content: start; }
  .dept-col .card .img { grid-row: 1 / span 3; margin: 0; }
  .dept-col .card .img img { aspect-ratio: 1; }
  .reader-opts { grid-template-columns: minmax(0, 1fr); }
  .sec-head h2 { font-size: 23px; }
  .trust { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .row { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
  .row .img img { aspect-ratio: 1; }
  .row .dek-s { display: none; }
  .row .t-l { font-size: 18px; }
  .row .meta span:first-child { display: none; }
  .dept-head { padding-top: 24px; }
  .dept-head p { font-size: 17px; margin-bottom: 22px; }
  .art-head { padding-top: 22px; }
  .art-figure { margin: 18px auto 28px; padding: 0; }
  .art-figure img { aspect-ratio: 3 / 2; }
  .art-figure figcaption { padding: 0 var(--gut); }
  .prose { font-size: 19px; line-height: 1.6; }
  .prose h2 { font-size: 24px; margin-top: 38px; }
  .box-title { font-size: 19px; }
  .foot-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px 18px; }
  .foot-cols > div:first-child { grid-column: 1 / -1; }
  .legal { flex-direction: column; gap: 6px; }
}
