:root {
  --ink: #282421;
  --muted: #746d66;
  --cream: #faf4e9;
  --paper: #fffdf9;
  --green: #91a64f;
  --green-dark: #53642d;
  --pink: #ed4e8b;
  --line: rgba(40, 36, 33, .13);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 12%, rgba(237, 78, 139, .12), transparent 27rem),
    radial-gradient(circle at 92% 16%, rgba(145, 166, 79, .2), transparent 31rem),
    linear-gradient(150deg, #fbf5eb, #f2f3e5);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 13px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 244, 233, .78);
  backdrop-filter: blur(16px);
}
.site-header img { display: block; width: 142px; height: auto; }
.site-header span { color: var(--green-dark); font-size: .82rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }

main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: clamp(50px, 8vw, 105px) 0; }
.hero-card, .message-card, .product-heading, .info-card, .sorting-card {
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, .9);
  box-shadow: 0 25px 75px rgba(76, 57, 42, .1);
}
.hero-card, .message-card { max-width: 850px; margin: 0 auto; padding: clamp(30px, 7vw, 78px); border-radius: 34px; }
.eyebrow { margin: 0 0 10px; color: var(--green-dark); font-size: .72rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(2.7rem, 7vw, 6rem); line-height: .9; letter-spacing: -.065em; }
h1 em { color: var(--pink); font-style: normal; }
.hero-card > p:not(.eyebrow), .message-card > p:not(.eyebrow) { max-width: 650px; margin: 25px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }

.ean-search { display: grid; gap: 9px; margin-top: 32px; }
.ean-search label { color: #514a44; font-size: .8rem; font-weight: 800; }
.ean-search div { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.ean-search input, .ean-search button { min-height: 52px; border-radius: 14px; font: inherit; }
.ean-search input { width: 100%; padding: 0 16px; border: 1px solid rgba(40, 36, 33, .2); outline: none; background: #fff; font-family: "SFMono-Regular", Consolas, monospace; letter-spacing: .06em; }
.ean-search input:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(237, 78, 139, .11); }
.ean-search button, .button-link { border: 0; color: #fff; background: var(--pink); font-weight: 850; cursor: pointer; }
.ean-search button { padding: 0 23px; }
.button-link { display: inline-flex; min-height: 48px; align-items: center; margin-top: 28px; padding: 0 20px; border-radius: 13px; text-decoration: none; }

.product-page { display: grid; gap: 24px; }
.product-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 35px; align-items: end; padding: clamp(28px, 6vw, 60px); border-radius: 30px; }
.product-heading h1 { font-size: clamp(2.7rem, 6vw, 5.4rem); }
.product-line { margin: 18px 0 0; color: var(--muted); font-size: 1rem; }
.ean-card { min-width: 250px; padding: 21px; border-radius: 20px; color: #fff; background: var(--ink); }
.ean-card span, .ean-card strong, .ean-card small { display: block; }
.ean-card span { color: #d6d0cb; font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.ean-card strong { margin-top: 8px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 1.16rem; letter-spacing: .05em; }
.ean-card small { margin-top: 7px; color: #d6d0cb; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-grid-single { grid-template-columns: 1fr; }
.info-card { position: relative; min-height: 315px; padding: clamp(27px, 5vw, 48px); overflow: hidden; border-radius: 28px; }
.info-card .number { position: absolute; top: 18px; right: 25px; color: rgba(40, 36, 33, .08); font-size: 5rem; font-weight: 950; letter-spacing: -.08em; }
.info-card h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.055em; }
.info-card > p:last-child { position: relative; max-width: 520px; margin: 25px 0 0; color: #514a44; font-size: 1.02rem; line-height: 1.75; }
.composition-card { background: rgba(255, 248, 251, .94); }
.recycling-card { background: rgba(244, 247, 231, .96); }
.pending { color: var(--muted) !important; font-style: italic; }
.sorting-card { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 32px; align-items: center; padding: clamp(27px, 5vw, 48px); border-radius: 28px; }
.sorting-card-text-only { grid-template-columns: 1fr; }
.sorting-copy h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.055em; }
.sorting-copy > p:last-child { margin: 17px 0 0; color: var(--muted); line-height: 1.6; }
.sorting-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; min-height: 120px; padding: 20px; border: 1px solid rgba(40, 36, 33, .1); border-radius: 22px; background: #fff; }
.sorting-logos img { display: block; width: auto; max-width: min(100%, 430px); max-height: 150px; object-fit: contain; }
.sorting-logos-both img, .sorting-logos-custom img { max-width: min(100%, 320px); max-height: 125px; }
.local-note { margin: 2px 4px 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.back-link { width: fit-content; color: var(--green-dark); font-weight: 800; text-underline-offset: 4px; }

footer { display: flex; justify-content: space-between; gap: 25px; padding: 24px clamp(18px, 5vw, 64px); border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
footer span:first-child { color: var(--ink); font-weight: 850; }

@media (max-width: 760px) {
  .site-header { min-height: 68px; }
  .site-header img { width: 116px; }
  main { width: min(100% - 22px, 1120px); padding: 35px 0 55px; }
  .hero-card, .message-card { border-radius: 25px; }
  .ean-search div, .product-heading, .info-grid, .sorting-card { grid-template-columns: 1fr; }
  .ean-card { min-width: 0; }
  .info-card { min-height: 260px; }
  footer { flex-direction: column; }
}
