/* Declarata (PPWR, PL), look B "Dokumentowy" (decision #105): paper background #FAFAF7, navy #1E3A5F for
   headings, CTAs and links, Source Serif 4 for headings and Source Sans 3 for text, served from the app (OFL,
   app/assets/fonts/brands/declarata), never from Google Fonts. Style reference: notion.com, document mockups
   on a light background, calm typography. Colors and fonts come from Brand#theme as --color-* and --font-*. */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/brands/declarata/source-serif-4-latin-600-normal-6988c85a.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/brands/declarata/source-serif-4-latin-ext-600-normal-e808a752.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/brands/declarata/source-sans-3-latin-400-normal-7dc87e53.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/brands/declarata/source-sans-3-latin-ext-400-normal-b3f206af.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/brands/declarata/source-sans-3-latin-600-normal-a63b344a.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/brands/declarata/source-sans-3-latin-ext-600-normal-b321c673.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/brands/declarata/source-sans-3-latin-400-italic-ff843b6e.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/brands/declarata/source-sans-3-latin-ext-400-italic-3f3f767b.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

body.declarata {
  margin: 0;
  font-family: var(--font-body, "Source Sans 3", system-ui, sans-serif);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text, #1f2933);
  background: var(--color-background, #fafaf7);
  -webkit-font-smoothing: antialiased;
}

.declarata h1, .declarata h2, .declarata h3 {
  font-family: var(--font-heading, "Source Serif 4", Georgia, serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary, #1e3a5f);
}
.declarata h2 { font-size: 1.75rem; margin: 0 0 1rem; }
.declarata a { color: var(--color-primary, #1e3a5f); text-underline-offset: 0.15em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.declarata__header { padding: 1.25rem max(1.25rem, calc((100% - 68rem) / 2)); border-bottom: 1px solid var(--color-border, #e5e2d9); }
.declarata .declarata__logo {
  font-family: var(--font-heading, "Source Serif 4", Georgia, serif);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-primary, #1e3a5f);
  text-decoration: none;
}

/* Bands with content centred at 68rem, separated by thin rules like pages of a document. */
.section { padding: 3.5rem max(1.25rem, calc((100% - 68rem) / 2)); }
.declarata__main > .section + .section { border-top: 1px solid var(--color-border, #e5e2d9); }

.section--hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}
.hero__heading { font-size: clamp(2.125rem, 4vw, 3rem); margin: 0 0 1.25rem; }
.hero__subheading { font-size: 1.1875rem; margin: 0 0 2rem; color: var(--color-text-soft, #3e4c59); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero__cta, .signup__submit, .check__next {
  display: inline-block;
  padding: 0.75rem 1.375rem;
  border: 2px solid var(--color-primary, #1e3a5f);
  border-radius: 0.375rem;
  font: inherit;
  font-weight: 600;
  color: #ffffff;
  background: var(--color-primary, #1e3a5f);
  text-decoration: none;
  cursor: pointer;
}
.declarata .hero__cta { color: #ffffff; }
.declarata .hero__cta--secondary, .signup__submit--secondary, .check__back {
  color: var(--color-primary, #1e3a5f);
  background: transparent;
  border-color: var(--color-primary, #1e3a5f);
}
.hero__cta:focus-visible, .signup__submit:focus-visible, .check__next:focus-visible, .check__back:focus-visible,
.check__option:focus-within, .signup__choice:focus-within, .request__copy:focus-visible, .blog__card:focus-visible {
  outline: 3px solid var(--color-primary, #1e3a5f);
  outline-offset: 2px;
}

/* The sample first page of an EU declaration of conformity: a sheet of paper with a shadow and a stamp. */
.document { margin: 0; }
.document__page {
  position: relative;
  overflow: hidden;
  padding: 2.25rem 2rem 2rem;
  font-size: 0.875rem;
  line-height: 1.55;
  background: #ffffff;
  border: 1px solid var(--color-border, #e5e2d9);
  border-radius: 0.25rem;
  box-shadow: 0 1px 2px rgb(30 58 95 / 8%), 0 1.25rem 2.5rem rgb(30 58 95 / 14%);
}
.document__heading {
  margin: 0;
  font-family: var(--font-heading, "Source Serif 4", Georgia, serif);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--color-primary, #1e3a5f);
}
.document__number { margin: 0.25rem 0 1.25rem; text-align: center; color: var(--color-text-soft, #3e4c59); }
.document__items { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.document__items p, .document__items span { margin: 0; }
.document__stamp {
  /* Bottom right corner, next to the short signature lines, so it never covers the text. */
  position: absolute;
  bottom: 1.75rem;
  right: 1.25rem;
  padding: 0.25rem 1.25rem;
  font-family: var(--font-heading, "Source Serif 4", Georgia, serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #9b2c2c;
  border: 3px solid #9b2c2c;
  border-radius: 0.25rem;
  opacity: 0.8;
  transform: rotate(-14deg);
}
.document__caption { margin-top: 0.75rem; font-size: 0.875rem; color: var(--color-text-soft, #3e4c59); }

.text__body { max-width: 46rem; }
.text__body p { margin: 0 0 0.75rem; }
.text__body p:last-child { margin-bottom: 0; }
.section--box .text__body {
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border: 1px solid var(--color-border, #e5e2d9);
  border-left: 4px solid var(--color-primary, #1e3a5f);
  border-radius: 0.25rem;
}
.section--box .text__heading { font-size: 1.25rem; margin-bottom: 0.5rem; }

.benefits__list { max-width: 46rem; margin: 0; padding: 0; list-style: none; }
.benefits__item { padding: 0.375rem 0 0.375rem 1.75rem; text-indent: -1.75rem; }
.benefits__check { display: inline-block; width: 1.75rem; text-indent: 0; font-weight: 600; color: var(--color-primary, #1e3a5f); }

.steps__list { max-width: 46rem; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps__item { position: relative; padding: 0.25rem 0 1rem 3rem; counter-increment: step; }
.steps__item::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  font-family: var(--font-heading, "Source Serif 4", Georgia, serif);
  font-weight: 600;
  line-height: 1.85rem;
  text-align: center;
  content: counter(step);
  color: var(--color-primary, #1e3a5f);
  border: 1px solid var(--color-primary, #1e3a5f);
  border-radius: 50%;
}

.pricing__card { max-width: 40rem; padding: 1.5rem 1.75rem; background: #ffffff; border: 1px solid var(--color-border, #e5e2d9); border-radius: 0.375rem; }
.pricing__amount { margin: 0; font-family: var(--font-heading, "Source Serif 4", Georgia, serif); font-size: 1.5rem; font-weight: 600; color: var(--color-primary, #1e3a5f); }
.pricing__text { margin: 0.5rem 0 0; }
.pricing__note { margin: 0.5rem 0 0; font-weight: 600; }

.blog__items { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.declarata .blog__card {
  display: grid;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--color-border, #e5e2d9);
  border-radius: 0.375rem;
}
.blog__card:hover { border-color: var(--color-primary, #1e3a5f); }
.blog__title { font-family: var(--font-heading, "Source Serif 4", Georgia, serif); font-size: 1.25rem; font-weight: 600; line-height: 1.3; color: var(--color-primary, #1e3a5f); }
.blog__text { color: var(--color-text-soft, #3e4c59); }

.signup__form, .check__form { display: grid; gap: 1.125rem; max-width: 34rem; }
.signup__text { max-width: 46rem; }
.signup__field { display: grid; gap: 0.25rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.signup__field--terms { grid-template-columns: auto 1fr; align-items: start; gap: 0.625rem; }
.signup__label { padding: 0; font-weight: 600; }
.signup__field--terms .signup__label { font-weight: 400; }
.signup__optional { font-weight: 400; color: var(--color-text-soft, #52606d); }
.signup__input {
  padding: 0.625rem 0.75rem;
  font: inherit;
  color: inherit;
  background: #ffffff;
  border: 1px solid #9aa5b1;
  border-radius: 0.375rem;
}
.signup__input:focus { outline: 2px solid var(--color-primary, #1e3a5f); outline-offset: 1px; }
.signup__checkbox { width: 1.125rem; height: 1.125rem; margin-top: 0.3rem; accent-color: var(--color-primary, #1e3a5f); }
.signup__choice-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.25rem; }
.signup__choice, .check__option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid var(--color-border, #d9d5c9);
  border-radius: 0.375rem;
  cursor: pointer;
}
.signup__choice:has(.check__input:checked), .check__option:has(.check__input:checked) {
  border-color: var(--color-primary, #1e3a5f);
  box-shadow: inset 0 0 0 1px var(--color-primary, #1e3a5f);
}
.signup__note { margin: 0; font-size: 0.9375rem; color: var(--color-text-soft, #52606d); }
.signup__note[hidden] { display: none; }
.signup__errors { margin: 0; padding: 0.75rem 1rem 0.75rem 2rem; color: #9b1c1c; background: #fde8e8; border-radius: 0.375rem; }
.signup__submit { justify-self: start; }

/* The free check: one question per screen. */
.check__title { font-size: clamp(1.75rem, 3vw, 2.375rem); margin: 0 0 0.75rem; max-width: 48rem; }
.check__intro { margin: 0 0 2rem; color: var(--color-text-soft, #3e4c59); }
.check__form { max-width: 44rem; }
.check__step { margin: 0; padding: 0; border: 0; min-width: 0; }
.check__step[hidden] { display: none; }
.check__progress { margin: 0 0 0.5rem; font-size: 0.9375rem; color: var(--color-text-soft, #52606d); }
.check__question { padding: 0; font-family: var(--font-heading, "Source Serif 4", Georgia, serif); font-size: 1.5rem; font-weight: 600; line-height: 1.3; color: var(--color-primary, #1e3a5f); }
.check__hint { margin: 0.5rem 0 0; color: var(--color-text-soft, #52606d); }
.check__options { display: grid; gap: 0.625rem; margin: 1.25rem 0; }
.check__input { flex: none; width: 1.125rem; height: 1.125rem; margin-top: 0.3rem; accent-color: var(--color-primary, #1e3a5f); }
.check__missing { margin: 0 0 1rem; color: #9b1c1c; }
.check__nav { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.check__nav[hidden], .check__back[hidden] { display: none; }
.check__back { padding: 0.75rem 1.375rem; font: inherit; font-weight: 600; border: 2px solid; border-radius: 0.375rem; cursor: pointer; }
.check__step--email .signup__field { margin-top: 1rem; }
.check__nav--submit { margin: 1.25rem 0 0.75rem; }

.result__label { margin: 0 0 0.5rem; font-size: 0.9375rem; color: var(--color-text-soft, #52606d); }
.result__headline { font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 0 0 1rem; max-width: 48rem; }
.section--result p, .result__checklist, .result__part, .request { max-width: 48rem; }
.result__list-heading { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.result__note { margin: 1rem 0; padding: 1rem 1.25rem; background: #ffffff; border-left: 4px solid var(--color-primary, #1e3a5f); border-radius: 0.25rem; }
.result__checklist { margin: 0; padding: 0; list-style: none; }
.result__check { padding: 0.375rem 0; }
.result__check-mark { display: inline-block; width: 1.5rem; font-weight: 600; }
.result__check--present .result__check-mark { color: #1f6f43; }
.result__check--missing .result__check-mark { color: #9b1c1c; }
.result__footer { margin-top: 2rem; font-size: 0.9375rem; color: var(--color-text-soft, #52606d); }

/* A ready-made request to the supplier, like a letter, with "Kopiuj". */
.request { margin: 1.5rem 0 0; background: #ffffff; border: 1px solid var(--color-border, #e5e2d9); border-radius: 0.375rem; }
.request__bar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; justify-content: space-between; padding: 0.625rem 1rem; border-bottom: 1px solid var(--color-border, #e5e2d9); }
.request__title { font-weight: 600; color: var(--color-primary, #1e3a5f); }
.request__copy { padding: 0.25rem 0.875rem; font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--color-primary, #1e3a5f); background: transparent; border: 1px solid var(--color-primary, #1e3a5f); border-radius: 0.375rem; cursor: pointer; }
.request__copy[hidden] { display: none; }
.request__text { margin: 0; padding: 1rem 1.25rem; font-family: var(--font-heading, "Source Serif 4", Georgia, serif); }
.request__text p { margin: 0; }

.offer__box { max-width: 44rem; padding: 1.5rem 1.75rem; background: #ffffff; border: 1px solid var(--color-border, #e5e2d9); border-top: 4px solid var(--color-primary, #1e3a5f); border-radius: 0.375rem; }
.offer__box p { margin: 0 0 0.75rem; }
.offer__price { font-weight: 600; }
.offer__form { margin: 0 0 1rem; }
.offer__honesty { font-size: 0.9375rem; color: var(--color-text-soft, #52606d); }
.offer__done { font-weight: 600; color: var(--color-primary, #1e3a5f); }
.section--offer > p, .section--offer > .offer__form { margin-top: 1.25rem; }

/* The article: a readable column with the quick answer as a highlighted block. */
.section--article { max-width: none; }
.article__header, .article__body, .article__sources { max-width: 46rem; }
.article__heading { font-size: clamp(2rem, 3.5vw, 2.625rem); margin: 0 0 0.5rem; }
.article__date { margin: 0 0 2rem; color: var(--color-text-soft, #52606d); }
.article__body h2 { font-size: 1.5rem; margin: 2.25rem 0 0.75rem; }
.article__body li { margin-bottom: 0.375rem; }
.article__quick-answer { margin: 1.5rem 0; padding: 1.25rem 1.5rem; background: #ffffff; border: 1px solid var(--color-border, #e5e2d9); border-left: 4px solid var(--color-primary, #1e3a5f); border-radius: 0.25rem; }
.article__quick-answer p { margin: 0; }
.article__note { margin-top: 2rem; color: var(--color-text-soft, #52606d); }
.article__sources { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border, #e5e2d9); font-size: 0.9375rem; }
.article__sources-heading { font-size: 1.25rem; }

.section--thanks, .section--legal { min-height: 40vh; }
.thanks__title, .legal__title { font-size: 2rem; margin-top: 0; }
.legal__body { max-width: 48rem; }
.legal__body h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.legal__table-wrapper { overflow-x: auto; }
.legal__table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; background: #ffffff; }
.legal__table th, .legal__table td { padding: 0.5rem; text-align: left; vertical-align: top; border: 1px solid var(--color-border, #e5e2d9); }
.legal__missing { padding: 0 0.25rem; color: #7a2e0e; background: #fef0c7; }

.declarata__main > .section--footer, .section--footer { padding-top: 2rem; padding-bottom: 2rem; font-size: 0.9375rem; border-top: 1px solid var(--color-border, #e5e2d9); }
.footer__text { margin: 0 0 0.75rem; color: var(--color-text-soft, #52606d); }
.footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: baseline; }
.consent-settings { padding: 0; border: 0; font: inherit; color: var(--color-primary, #1e3a5f); background: none; text-decoration: underline; cursor: pointer; }

/* Consent banner: a panel at the bottom that never covers the whole page. Every button on a layer looks
   the same (size, color, weight) - none may stand out. */
.consent-banner {
  position: fixed;
  inset: auto 1rem 1rem;
  z-index: 10;
  max-width: 56rem;
  max-height: calc(100vh - 2rem);
  margin: 0 auto;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--color-text, #1f2933);
  background: #ffffff;
  border: 1px solid var(--color-border, #d9d5c9);
  border-radius: 0.375rem;
  box-shadow: 0 0.75rem 2rem rgb(30 58 95 / 18%);
}
.consent-banner[hidden], .consent-banner__layer[hidden] { display: none; }
.consent-banner__title { margin: 0 0 0.5rem; font-size: 1.125rem; }
.consent-banner__text { margin: 0 0 1rem; }
.consent-banner__actions { display: flex; gap: 0.5rem; }
.consent-banner__button {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.5rem 1rem;
  font: inherit;
  font-weight: 600;
  color: var(--color-primary, #1e3a5f);
  background: #ffffff;
  border: 2px solid var(--color-primary, #1e3a5f);
  border-radius: 0.375rem;
  cursor: pointer;
}
.consent-banner__button:focus-visible, .consent-category__switch:focus-visible, .consent-settings:focus-visible {
  outline: 3px solid var(--color-primary, #1e3a5f);
  outline-offset: 2px;
}
.consent-banner__categories { margin: 0 0 1rem; padding: 0; list-style: none; }
.consent-category { padding: 0.5rem 0; border-top: 1px solid var(--color-border, #e5e2d9); }
.consent-category__name { display: flex; gap: 0.5rem; align-items: center; margin: 0; font-weight: 600; }
.consent-category__state { font-weight: 400; }
.consent-category__text { margin: 0.25rem 0 0; font-size: 0.875rem; }
.consent-category__switch { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--color-primary, #1e3a5f); }

@media (max-width: 50rem) {
  .section { padding-top: 2.75rem; padding-bottom: 2.75rem; }
  .section--hero { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .document__page { padding: 1.75rem 1.25rem 1.5rem; }
  .document__stamp { bottom: 0.75rem; right: 0.75rem; font-size: 1rem; }
}

@media (max-width: 40rem) {
  .consent-banner { inset: auto 0.5rem 0.5rem; padding: 0.75rem; font-size: 0.875rem; line-height: 1.45; }
  .consent-banner__button { padding: 0.5rem 0.25rem; }
}
