/* FILE: client-django-sites/biopel/static/css/styles.css */
/* DATE: 2026-06-09 */
/* PURPOSE: Industrial B2B styling for the Bio Pel client site. */

:root {
  --site-width: 1280px;
  --site-gutter: 64px;
  --content-width: calc(var(--site-width) - (var(--site-gutter) * 2));
  --header-height: 96px;
  --bg: #fcfcfb;
  --surface: #ffffff;
  --surface-soft: #fafafa;
  --line: #c5c6cb;
  --text: #191c1f;
  --muted: #44474b;
  --primary: #1a212a;
  --primary-deep: #040912;
  --blue: #485c97;
  --green: #005c37;
  --green-dark: #00442b;
  --shadow: 4px 4px 0 rgba(26, 33, 42, 0.1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

[id] {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

@keyframes contentIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy,
.section {
  animation: contentIn 0.34s ease both;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, var(--content-width));
  justify-content: center;
  align-items: end;
  min-height: var(--header-height);
  padding: 14px var(--site-gutter);
  background: rgba(252, 252, 251, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  transform: translateZ(0);
}

.brand {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  justify-self: start;
}

.brand img { width: 110px; height: auto; }

.site-nav {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.site-nav a,
.footer-nav a {
  position: relative;
}

.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--primary); }

.site-nav a:not(.nav-cta) {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding-top: 1px;
}

.site-nav a:not(.nav-cta)::after,
.footer-nav a:not(.footer-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.site-nav a.is-active:not(.nav-cta),
.footer-nav a.is-active:not(.footer-cta) {
  color: var(--primary);
}

.site-nav a.is-active:not(.nav-cta)::after,
.site-nav a:not(.nav-cta):hover::after,
.footer-nav a.is-active:not(.footer-cta)::after,
.footer-nav a:not(.footer-cta):hover::after {
  transform: scaleX(1);
}

.nav-cta.is-active,
.footer-cta.is-active {
  background: var(--green-dark);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 12px 16px;
  color: #fff !important;
  background: var(--green);
}

.nav-toggle {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  display: none;
  border: 1px solid var(--primary);
  background: var(--surface);
  padding: 10px 14px;
  font: inherit;
}

.hero,
.section {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 96px var(--site-gutter);
}

.section {
  position: relative;
}

.section:nth-of-type(odd) {
  background: var(--surface);
  box-shadow: 0 0 0 100vmax var(--surface);
  clip-path: inset(0 -100vmax);
}

.section:nth-of-type(even) {
  background: var(--surface-soft);
  box-shadow: 0 0 0 100vmax var(--surface-soft);
  clip-path: inset(0 -100vmax);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 450px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4, 9, 18, 0.82) 0%, rgba(4, 9, 18, 0.66) 42%, rgba(4, 9, 18, 0.2) 100%),
    url("../img/hero.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  color: #0d2537;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: #132b3c;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
  color: #fff;
  font-size: 50px;
  line-height: 1.04;
}

.hero .lead {
  max-width: 660px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 26px;
}

.hero-actions .btn {
  min-width: 190px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.btn-primary {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.btn-primary:hover { background: var(--primary); border-color: var(--primary); }
.btn-secondary { background: var(--surface); color: var(--primary); }
.btn-secondary:hover { background: var(--surface-soft); }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 620px;
  margin: 42px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.hero-advantages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin-top: 24px;
}

.hero-advantages div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 13px;
  color: #fff;
  background: rgba(4, 9, 18, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-advantages strong {
  font-size: 12px;
  line-height: 1.2;
}

.advantage-icon {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
}

.advantage-year::before,
.advantage-production::before,
.advantage-export::before,
.advantage-logistics::before {
  content: "";
  position: absolute;
  background: #fff;
}

.advantage-year::before {
  left: 4px;
  right: 4px;
  top: 6px;
  height: 2px;
  box-shadow: 0 5px 0 #fff, 0 10px 0 #fff;
}

.advantage-production::before {
  left: 4px;
  bottom: 4px;
  width: 4px;
  height: 12px;
  box-shadow: 7px -4px 0 #fff, 14px -8px 0 #fff;
}

.advantage-export::before {
  left: 5px;
  top: 10px;
  width: 12px;
  height: 2px;
  box-shadow: 4px -4px 0 -1px #fff, 4px 4px 0 -1px #fff;
}

.advantage-logistics::before {
  left: 4px;
  top: 7px;
  width: 14px;
  height: 7px;
  border: 2px solid #fff;
  background: transparent;
}

.hero-metrics div {
  padding: 18px;
  background: var(--surface);
}

.hero-metrics dt {
  margin-bottom: 6px;
  color: var(--primary);
  font-weight: 800;
}

.hero-metrics dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-panel {
  display: grid;
  gap: 18px;
  align-content: center;
}

.mini-card {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mini-card img {
  width: 124px;
  height: 96px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.mini-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-card strong {
  color: var(--primary);
  font-size: 22px;
}

.product-section,
.trust-section,
.partner-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.product-media {
  display: grid;
  gap: 16px;
  align-content: start;
}

.product-cta {
  width: fit-content;
  min-width: 240px;
}

.section p {
  color: var(--muted);
}

.image-frame {
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  min-height: 280px;
  object-fit: cover;
}

.spec-table {
  width: 100%;
  margin: 26px 0 18px;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
}

.spec-table th {
  padding: 12px 16px;
  color: #fff;
  background: var(--green-dark);
  font-size: 12px;
  text-align: left;
  text-transform: uppercase;
}

.spec-table td {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.spec-table td:first-child {
  width: 42%;
  color: var(--primary);
  font-weight: 700;
}

.spec-table tr:nth-child(odd) td { background: var(--surface-soft); }

.price-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.price-row div {
  min-height: 124px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
}

.price-row span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.price-row strong {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 23px;
}

.price-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.minimum-note {
  margin-top: 14px;
  padding: 12px 16px;
  color: var(--primary);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-weight: 800;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.production-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: 54px;
}

.production-copy {
  max-width: 560px;
}

.production-copy h2 {
  margin-bottom: 22px;
}

.production-copy p {
  line-height: 1.58;
}

.production-media {
  display: grid;
  gap: 18px;
}

.production-image {
  position: relative;
}

.production-image img {
  min-height: 300px;
  object-fit: cover;
}

.production-card {
  position: absolute;
  left: 28px;
  bottom: 28px;
  max-width: 430px;
  padding: 22px 24px;
  color: #fff;
  background: rgba(0, 92, 55, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.production-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 19px;
}

.production-card span {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.45;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  padding: 14px 16px;
  background: var(--surface);
  border-left: 4px solid var(--green);
}

.logistics-section {
  display: block;
}

.logistics-section .section-heading {
  max-width: 1040px;
}

.logistics-section .section-heading p {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.logistics-visual {
  position: relative;
  min-height: 440px;
}

.logistics-visual img {
  min-height: 440px;
}

.logistics-card {
  position: absolute;
  left: 40px;
  bottom: 40px;
  max-width: 480px;
  padding: 26px;
  color: #fff;
  background: rgba(0, 92, 55, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.logistics-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.logistics-card span {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.45;
}

.quality-band {
  padding: 74px var(--site-gutter) 82px;
  color: #fff;
  background:
    linear-gradient(rgba(0, 58, 38, 0.9), rgba(0, 78, 50, 0.92)),
    url("../img/quality-bg.jpg") center / cover;
}

.quality-band-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.quality-band-head {
  margin-bottom: 36px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  text-align: center;
}

.quality-band h2 {
  margin: 0;
  color: #fff;
  font-size: 42px;
  letter-spacing: 0;
  line-height: 1.1;
}

.quality-band-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.quality-band-grid article {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(3, 22, 18, 0.34);
}

.quality-band-grid h3 {
  max-width: 340px;
  margin-bottom: 18px;
  color: #fff;
  font-size: 21px;
  line-height: 1.22;
}

.quality-band-grid p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.56;
}

blockquote {
  margin: 0;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  color: var(--primary);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
}

.contact-section {
  align-items: start;
  background: var(--surface-soft);
  box-shadow: 0 0 0 100vmax var(--surface-soft);
  clip-path: inset(0 -100vmax);
}

#kontakt {
  display: grid;
  align-content: start;
}

.contact-card {
  display: grid;
  gap: 14px;
  max-width: 420px;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  box-shadow: var(--shadow);
}

.contact-card strong,
.form-intro h2 {
  color: var(--primary);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.18;
}

.contact-card address {
  color: var(--text);
  font-style: normal;
  line-height: 1.55;
}

.contact-card a {
  width: fit-content;
  color: var(--green);
  font-weight: 800;
}

.contact-forest {
  width: min(420px, 100%);
  height: 150px;
  margin-top: 24px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-form-column {
  display: grid;
}

.form-intro {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.form-intro h2 {
  margin-bottom: 14px;
}

.form-intro p:last-child {
  margin-bottom: 0;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
  box-shadow: var(--shadow);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 15px 16px;
  color: var(--text);
  font: inherit;
}

.contact-form textarea {
  min-height: 170px;
  resize: vertical;
}

.form-status,
.form-error {
  margin: 0;
  padding: 11px 13px;
  font-size: 13px;
  font-weight: 800;
}

.form-status-success {
  color: var(--green-dark);
  background: rgba(0, 92, 55, 0.1);
  border: 1px solid rgba(0, 92, 55, 0.26);
}

.form-status-error,
.form-error {
  color: #8a1f11;
  background: rgba(138, 31, 17, 0.08);
  border: 1px solid rgba(138, 31, 17, 0.2);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 0;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #737b86;
}

.site-footer {
  padding: 0 var(--site-gutter);
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 30px 0 26px;
}

.footer-brand {
  max-width: 260px;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.footer-nav a,
.footer-legal a {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--primary);
}

.footer-nav a:not(.footer-cta) {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 10px 14px;
  color: #fff !important;
  background: var(--green);
}

.footer-logo {
  width: 110px;
  margin-bottom: 12px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 14px 0 18px;
  border-top: 1px solid var(--line);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.legal-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 96px 64px;
}

.legal-page h1 {
  font-size: 44px;
}

.legal-box {
  margin-top: 22px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.legal-box h2 {
  font-size: 22px;
}

.legal-box p:last-child {
  margin-bottom: 0;
}

.legal-button {
  border: 0;
  padding: 12px 16px;
  color: #fff;
  background: var(--green);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

 (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy,
  .section {
    animation: none;
  }

  .site-nav a::after,
  .footer-nav a::after {
    transition: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 12px 18px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: grid;
    gap: 16px;
  }

  .hero,
  .section,
  .contact-section {
    grid-template-columns: 1fr;
    padding: 64px 18px;
  }

  .hero {
    min-height: 640px;
    gap: 0;
    padding-top: 34px;
    padding-bottom: 28px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.08;
    margin-bottom: 16px;
  }

  .hero .lead {
    font-size: 15px;
    line-height: 1.36;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .hero-advantages {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 22px;
  }

  .hero-advantages div {
    min-height: 40px;
    padding: 8px 12px;
  }

  h1 {
    font-size: 36px;
    line-height: 1.14;
  }

  h2 {
    font-size: 28px;
  }

  .hero-metrics,
  .price-row,
  .logistics-section,
  .production-section,
  .quality-band-grid {
    grid-template-columns: 1fr;
  }

  .footer-main,
  .footer-bottom {
    display: grid;
    gap: 22px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-consent-inner {
    padding: 18px;
  }

  .cookie-consent-head,
  .cookie-consent-actions {
    display: grid;
  }

  .cookie-btn,
  .cookie-toggle-button {
    width: 100%;
  }

  .quality-band-head {
    margin-bottom: 24px;
  }

  .quality-band h2 {
    text-align: left;
  }

  .mini-card {
    grid-template-columns: 96px 1fr;
  }

  .mini-card img {
    width: 96px;
    height: 82px;
  }

  .image-frame img,
  .production-image img,
  .logistics-visual,
  .logistics-visual img {
    min-height: 220px;
  }

  .production-card,
  .logistics-card {
    position: static;
    max-width: none;
    margin-top: 8px;
  }

  .site-footer {
    padding: 42px 18px;
  }

  .quality-band {
    padding: 64px 18px;
  }

  .legal-page {
    padding: 64px 18px;
  }
}
