:root {
  --ink: #18272a;
  --muted: #66777a;
  --paper: #f7f5ef;
  --white: #fff;
  --line: #d7e0dc;
  --teal: #0d6665;
  --deep: #0b4045;
  --orange: #e5a148;
  --soft: #e5efeb;
  --display: Georgia, serif;
  --body:
    Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
}
section[id], form[id] { scroll-margin-top: 110px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--body);
}
a {
  color: inherit;
}
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}
.skip {
  position: absolute;
  top: -50px;
  left: 12px;
  z-index: 10;
  background: var(--orange);
  padding: 8px 14px;
}
.skip:focus {
  top: 12px;
}
.header {
  background: rgba(247, 245, 239, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 3;
}
.notice { background: var(--deep); color: #ecf7f3; font-size: 12px; }
.notice__inner { min-height: 34px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.notice a { color: #ffd58f; }
.header__inner {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-decoration: none;
}
.brand em {
  font-style: normal;
  color: var(--teal);
  font-weight: 500;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--teal);
  color: #fff;
  font: italic 21px var(--display);
  transform: rotate(-6deg);
}
.nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
}
.nav a {
  text-decoration: none;
}
.nav a:hover {
  color: var(--teal);
}
.hero {
  background: var(--paper);
}
.hero__grid {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 74px;
  align-items: center;
  padding: 32px 0 30px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font: 800 11px var(--body);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero h1,
.hero h2,
.section h1,
.section h2 {
  font: 700 clamp(38px, 4.5vw, 62px)/1.02 var(--display);
  letter-spacing: -0.045em;
  margin: 0 0 20px;
}
.hero h1, .hero h2 {
  max-width: 10ch;
  font-size: 52px;
}
.guide-section { background: var(--paper); padding: 72px 0 62px; overflow: hidden; }
.guide-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 68px; align-items: center; }
.guide-intro { position: relative; }
.guide-intro h1 { font: 700 clamp(42px, 4.6vw, 64px)/1.03 var(--display); letter-spacing: -0.05em; max-width: 11ch; margin: 0 0 24px; }
.guide-intro__lead { font-size: 19px; line-height: 1.5; color: var(--muted); max-width: 48ch; margin: 0 0 30px; }
.guide-intro__micro { font-size: 12px; color: var(--muted); margin: 18px 0 28px; }
.guide-intro img { width: min(350px, 72%); height: 135px; object-fit: cover; border-radius: 6px; display: block; margin-left: auto; opacity: .85; }
.guide { background: var(--white); padding: 28px; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 18px 45px rgba(17,44,42,.11); min-width: 0; }
.guide__head { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 19px; margin-bottom: 18px; }
.guide__number { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; font-size: 11px; font-weight: 800; }
.guide__head h2 { font: 700 25px/1.1 var(--display); margin: 0 0 2px; }
.guide__head p { margin: 0; color: var(--muted); font-size: 12px; }
.guide__progress { margin-left: auto; font-size: 12px; color: var(--muted); }
.guide__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); margin: 0 0 9px; cursor: pointer; }
.choice:hover, .choice:has(input:checked) { border-color: var(--teal); background: #e8f3ef; }
.choice:focus-within { outline: 3px solid #afd9ce; outline-offset: 1px; }
.choice input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--teal); }
.choice > span:nth-child(2) { flex: 1; min-width: 0; }
.choice strong, .choice small { display: block; }
.choice strong { font-size: 14px; }
.choice small { color: var(--muted); font-size: 11px; line-height: 1.35; margin-top: 2px; }
.choice > span:last-child { color: var(--teal); font-size: 20px; }
.guide__actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.guide__promise { margin: 16px 0 0; padding: 12px 14px; background: var(--deep); color: #e0eeeb; font-size: 12px; border-radius: 4px; }
.button--quiet { background: transparent; color: var(--teal); box-shadow: none; border: 1px solid var(--teal); }
.button--quiet:hover { box-shadow: none; }
.result-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
.result-grid h2 { max-width: 12ch; }
.result-grid p { color: var(--muted); }
.question-list { margin: 0; padding: 0; list-style: none; counter-reset: question; }
.question-list li { counter-increment: question; background: #fff; border: 1px solid var(--line); padding: 18px 20px 18px 54px; border-radius: 5px; position: relative; margin-bottom: 10px; font-weight: 650; }
.question-list li::before { content: counter(question, decimal-leading-zero); position: absolute; top: 20px; left: 18px; color: var(--teal); font-size: 12px; font-weight: 800; }
.result-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
.text-button { border: 0; background: transparent; color: var(--teal); font-weight: 800; text-decoration: underline; cursor: pointer; padding: 8px 0; }
.sources, .status__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 75px; }
.sources p, .status p { color: #53696b; }
.source-links { display: grid; gap: 12px; }
.source-links a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 20px; text-decoration: none; }
.source-links a:hover { border-color: var(--teal); }
.source-links strong, .source-links span { display: block; }
.source-links span { color: var(--teal); font-size: 13px; margin-top: 4px; }
.results__placeholder { font-size: 13px; color: #c4e1db; margin: -13px 0 18px; }
.results__fine { color: #c4e1db; font-size: 12px; line-height: 1.5; border-top: 1px solid #4e9490; margin: 22px 0 0; padding-top: 16px; }
.hero__lead {
  max-width: 47ch;
  color: var(--muted);
  font-size: 18px;
}
.hero__jump {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 23px;
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}
.hero__jump span {
  font-size: 20px;
}
.hero__image {
  height: 220px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 12px 12px 0 rgba(229, 161, 72, 0.72);
}
.hero__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.hero__image span {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--teal);
  font: 700 10px monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.calculator-section {
  background: var(--deep);
  padding: 40px 0;
}
.calculator-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 22px;
  align-items: stretch;
}
.calculator {
  background: #fff;
  border-radius: 7px;
  padding: 29px;
}
.calculator__top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 21px;
}
.calculator h2 {
  font-size: 31px;
  margin: 0;
}
.calculator .eyebrow {
  margin-bottom: 6px;
}
.calculator__badge {
  padding: 5px 9px;
  border: 1px solid #b6d1c8;
  border-radius: 20px;
  color: var(--teal);
  font: 700 10px monospace;
  white-space: nowrap;
}
.calculator__note {
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 11px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 14px;
}
.fields label {
  display: block;
}
.fields label span {
  display: block;
  margin-bottom: 7px;
  font-weight: 750;
  font-size: 13px;
}
.fields label small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}
.field-wide {
  grid-column: 1/-1;
}
.input-unit {
  display: flex;
  border: 1px solid #b9c8c2;
  border-radius: 4px;
  background: var(--paper);
  overflow: hidden;
}
.input-unit:focus-within {
  outline: 3px solid #b9dbd1;
  outline-offset: 1px;
}
.input-unit input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 10px 11px;
  font: 700 17px var(--body);
  outline: 0;
}
.input-unit b {
  display: grid;
  place-items: center;
  padding: 0 11px;
  color: var(--muted);
  font-size: 12px;
}
.form-error {
  min-height: 22px;
  color: #ad3c2f;
  font-size: 12px;
  margin: 14px 0 2px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 0;
  border-radius: 4px;
  background: var(--orange);
  color: var(--ink);
  padding: 13px 19px;
  font: 800 15px var(--body);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 0 #b87532;
}
.button:hover {
  transform: translateY(1px);
  box-shadow: 0 2px 0 #b87532;
}
.results {
  border-radius: 7px;
  padding: 30px;
  background: #176b69;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.results__label {
  color: #b9ded4;
  font: 700 11px monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.results__monthly {
  display: block;
  color: #fff;
  font: 700 clamp(43px, 5vw, 67px)/1 var(--display);
  letter-spacing: -0.05em;
  margin: 8px 0 25px;
}
.results__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 16px 0;
  border-top: 1px solid #4e9490;
  border-bottom: 1px solid #4e9490;
}
.results__meta span,
.results__total span {
  display: block;
  color: #b9ded4;
  font-size: 11px;
}
.results__meta strong {
  font-size: 18px;
}
.results__total {
  padding-top: 20px;
}
.results__total strong {
  display: block;
  font: 700 28px var(--display);
  margin-top: 3px;
}
.results__total small {
  display: block;
  color: #b9ded4;
  font-size: 11px;
  margin-top: 3px;
}
.section {
  padding: 75px 0;
}
.reading {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 75px;
}
.section h1, .section h2 {
  font-size: 43px;
}
.reading__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 19px;
}
.reading__items article {
  border-top: 2px solid var(--teal);
  padding-top: 13px;
}
.reading__items b {
  color: var(--orange);
  font: 700 11px monospace;
}
.reading__items h3 {
  font: 700 20px/1.12 var(--display);
  margin: 20px 0 8px;
}
.reading__items p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.section--soft {
  background: var(--soft);
}
.method {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 75px;
}
.method h2 {
  max-width: 11ch;
}
.method > div:last-child {
  color: #53696b;
  max-width: 58ch;
}
.method__source {
  padding-top: 13px;
  border-top: 1px solid #b8cec6;
  font-size: 12px;
}
.footer {
  background: #103136;
  color: #d8e7e1;
  padding: 25px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 12px;
}
.brand--footer {
  color: #fff;
  margin-right: auto;
}
.footer__inner > a:last-child {
  text-decoration: none;
}
.footer__inner > a:last-child:hover {
  color: var(--orange);
}
@media (max-width: 800px) {
  .wrap {
    width: min(100% - 30px, 600px);
  }
  .header__inner {
    min-height: 64px;
  }
  .nav {
    display: none;
  }
  .hero__grid,
  .calculator-layout,
  .reading,
  .method {
    display: block;
  }
  .hero__grid {
    padding: 36px 0 38px;
  }
  .hero h1, .hero h2 {
    font-size: 44px;
    max-width: 11ch;
    margin-bottom: 15px;
  }
  .hero__lead {
    font-size: 16px;
    line-height: 1.45;
  }
  .hero__image {
    height: 150px;
    margin-top: 31px;
    box-shadow: 7px 7px 0 rgba(229, 161, 72, 0.72);
  }
  .calculator-section {
    padding: 28px 0;
  }
  .calculator {
    padding: 21px;
  }
  .calculator__top {
    margin-bottom: 18px;
  }
  .calculator h2 {
    font-size: 27px;
  }
  .fields {
    gap: 14px 10px;
  }
  .input-unit input {
    font-size: 16px;
    padding: 9px;
  }
  .results {
    margin-top: 14px;
    padding: 24px;
  }
  .results__monthly {
    font-size: 51px;
  }
  .section {
    padding: 52px 0;
  }
  .reading,
  .method {
    display: block;
  }
  .reading__items {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 30px;
  }
  .section h2 {
    font-size: 37px;
  }
  .method > div:last-child {
    margin-top: 25px;
  }
  .footer__inner {
    flex-wrap: wrap;
  }
  .brand--footer {
    width: 100%;
  }
}
@media (max-width: 800px) {
  .hero__image {
    display: none;
  }
  .hero__grid {
    padding-bottom: 28px;
  }
  .calculator-section {
    padding-top: 22px;
  }
  .calculator {
    padding: 19px;
  }
  .calculator__top {
    padding-bottom: 14px;
  }
  .calculator h2 {
    font-size: 25px;
  }
  .fields {
    gap: 12px 8px;
  }
  .results {
    margin-top: 12px;
  }
}
@media (max-width: 800px) {
  .notice__inner { min-height: 30px; font-size: 11px; }
  .nav { display: flex; gap: 12px; font-size: 12px; }
  .nav a:first-child, .nav a:last-child { display: none; }
  .guide-section { padding: 48px 0 35px; }
  .guide-layout, .result-grid, .sources, .status__inner { display: block; }
  .guide-intro h1 { font-size: clamp(38px, 11vw, 52px); }
  .guide-intro__lead { font-size: 16px; }
  .guide-intro img { width: 48%; height: 85px; margin: 4px 0 12px auto; }
  .guide { padding: 20px; margin-top: 18px; }
  .guide__head h2 { font-size: 22px; }
  .result-grid .question-list, .sources .source-links { margin-top: 26px; }
  .status__inner > div:last-child { margin-top: 18px; }
  .results__meta { gap: 12px; }
}
@media (max-width: 480px) {
  .guide-intro img { width: 58%; }
  .guide-intro .button { width: 100%; }
  .guide__actions .button { flex: 1; }
  .results__meta strong { font-size: 15px; }
  .footer__inner { gap: 14px; }
}

@media print {
  .notice,
  .header,
  .guide-section,
  .hero,
  .footer,
  .reading,
  #zrodla,
  #status,
  #metoda {
    display: none;
  }
  #guide-result[hidden] { display: none !important; }
  #guide-result:not([hidden]) { display: block; padding: 0; }
  .result-actions { display: none; }
  .question-list li { break-inside: avoid; }
  body:has(#guide-result:not([hidden])) .calculator-section { display: none; }
  .calculator-section {
    padding: 0;
    background: #fff;
  }
  .calculator {
    display: none;
  }
  .calculator-layout {
    display: block;
  }
  .results {
    color: #000;
    background: #fff;
    border: 1px solid #aaa;
  }
  .results__monthly,
  .results__meta strong,
  .results__total strong {
    color: #000;
  }
  .results__label,
  .results__meta span,
  .results__total span,
  .results__total small {
    color: #444;
  }
}
