:root {
  --ink: #20201d;
  --muted: #65635d;
  --line: #ddd7c9;
  --paper: #fbfaf6;
  --wheat: #d4a642;
  --wheat-dark: #946b20;
  --green: #203b2b;
  --sage: #eef1e7;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(43, 36, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

p {
  line-height: 1.7;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(32, 32, 29, 0.08);
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: clamp(150px, 16vw, 210px);
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--green);
  color: var(--wheat);
  font-size: 13px;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 10px clamp(12px, 1.6vw, 22px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.74);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.lang-switch a.active {
  background: var(--green);
  color: var(--white);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
  min-height: calc(100vh - 72px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 8vw, 92px) clamp(22px, 5vw, 72px);
}

.hero-image {
  min-height: 520px;
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.15), rgba(251, 250, 246, 0)),
    url("assets/bulgur-hero.png?v=index-assets-20260526-1845") center / cover no-repeat;
}

.page-hero {
  padding: clamp(58px, 9vw, 112px) clamp(22px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fbfaf6 0%, #f1ead9 100%);
}

.page-hero .lead {
  max-width: 940px;
}

.production-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
  min-height: calc(100vh - 72px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fbfaf6 0%, #f1ead9 100%);
}

.production-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 8vw, 92px) clamp(22px, 5vw, 72px);
}

.production-hero-image {
  min-height: 520px;
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.12), rgba(251, 250, 246, 0)),
    url("assets/photos/kaszarnia/normalne_kaszarnia.png?v=site-assets-20260526-1830") center / cover no-repeat;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(420px, 1.26fr);
  min-height: calc(100vh - 72px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fbfaf6 0%, #f1ead9 100%);
}

.product-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 8vw, 92px) clamp(22px, 5vw, 72px);
}

.product-hero-copy h1 {
  font-size: clamp(38px, 4.6vw, 62px);
}

.product-hero-image {
  min-height: 520px;
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.12), rgba(251, 250, 246, 0)),
    url("assets/MAIN.jpg?v=site-assets-20260526-1830") center / cover no-repeat;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--wheat-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5.8vw, 74px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(31px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.motto {
  margin: 6px 0 0;
  color: var(--green);
  font-size: 18px;
  font-weight: 850;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
}

.button.primary {
  background: var(--green);
  color: var(--white);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.button.secondary.dark {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--green);
  font-weight: 850;
  border-bottom: 2px solid var(--wheat);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.stats div {
  min-height: 136px;
  padding: 28px clamp(18px, 4vw, 54px);
  border-right: 1px solid var(--line);
}

.stats div:last-child {
  border-right: 0;
}

.stats strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 32px;
}

.stats span {
  color: var(--muted);
  font-weight: 650;
}

.section {
  padding: clamp(64px, 9vw, 118px) clamp(22px, 5vw, 72px);
}

.section-heading {
  max-width: 880px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow),
.text-stack p,
.production-copy p:not(.eyebrow),
.contact-section p,
.content-card p,
.feature-list p,
.application-card p {
  color: var(--muted);
  font-size: 18px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
}

.split-section.iso-section {
  align-items: center;
}

.text-stack p:last-child {
  margin-bottom: 0;
}

.granulation-grid,
.quality-grid,
.feature-grid,
.application-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.granulation-card,
.quality-grid article,
.content-card,
.application-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.visual-card {
  overflow: hidden;
}

.visual-card img {
  display: block;
  width: calc(100% + 56px);
  height: 190px;
  margin: -28px -28px 24px;
  object-fit: cover;
  background: #f4f0e6;
  border-bottom: 1px solid var(--line);
}

.visual-card.vertical-product-card img {
  width: 100%;
  height: auto;
  max-height: 430px;
  margin: -28px auto 24px;
  object-fit: contain;
  border-bottom: 1px solid var(--line);
}

.granulation-card p,
.quality-grid p,
.content-card p,
.application-card p {
  color: var(--muted);
}

.section-icon {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  object-fit: contain;
}

.home-page .media-section .section-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
}

.application-card .section-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
}

.grain-dot {
  display: block;
  width: 68px;
  height: 68px;
  margin-bottom: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #f7d47b 0 12%, transparent 13%),
    radial-gradient(circle at 66% 44%, #c98e28 0 10%, transparent 11%),
    radial-gradient(circle at 45% 70%, #b87920 0 12%, transparent 13%),
    #e2b84f;
}

.grain-dot.small {
  background-size: 14px 14px;
}

.grain-dot.medium {
  background-size: 20px 20px;
}

.grain-dot.large {
  background-size: 28px 28px;
}

.grain-dot.whole {
  background:
    radial-gradient(circle at 30% 30%, #9d6e22 0 15%, transparent 16%),
    radial-gradient(circle at 72% 42%, #d5a646 0 13%, transparent 14%),
    radial-gradient(circle at 44% 74%, #805a1d 0 15%, transparent 16%),
    #c59639;
  background-size: 24px 24px;
}

.production-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  background: var(--green);
  color: var(--white);
}

.production-band .eyebrow {
  color: #e6bd58;
}

.production-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.process-list,
.feature-list {
  display: grid;
  gap: 14px;
}

.process-list div,
.feature-list div {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.process-list span,
.feature-list span {
  color: #e6bd58;
  font-weight: 900;
}

.process-list p,
.feature-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.quality-section {
  background: #f3efe5;
}

.media-section {
  background: var(--white);
}

.history-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.88fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  background: #f3efe5;
}

.history-copy {
  max-width: 760px;
}

.history-photos {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 16px;
  align-items: end;
}

.history-photos img {
  display: block;
  width: 100%;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.history-photos img:first-child {
  min-height: 460px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.media-grid.single {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.photo-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.photo-card img {
  display: block;
  width: 100%;
  height: 290px;
  object-fit: cover;
}

.photo-card img[src*="utilities_boiler_wide.jpg"] {
  height: 620px;
  object-fit: cover;
  object-position: center;
}

.photo-card figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.facility-gallery {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 18px;
  align-items: stretch;
}

.facility-gallery .photo-card.wide {
  grid-row: span 2;
}

.facility-gallery .photo-card img {
  height: 380px;
}

.facility-gallery .photo-card.wide img {
  height: 100%;
  min-height: 780px;
}

.feature-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card.accent {
  background: var(--sage);
}

.plain-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 18px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  margin: clamp(22px, 5vw, 72px);
  padding: clamp(34px, 5vw, 58px);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.contact-section p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-section .eyebrow {
  color: #e6bd58;
}

.contact-details {
  display: grid;
  gap: 16px;
}

.contact-details a {
  color: var(--green);
  font-weight: 850;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(22px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .granulation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .lang-switch {
    align-self: flex-start;
  }

  .hero,
  .product-hero,
  .production-hero,
  .production-band,
  .contact-section,
  .split-section,
  .history-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-image {
    order: -1;
    min-height: 360px;
  }

  .product-hero-image,
  .production-hero-image {
    order: -1;
    min-height: 360px;
  }

  .stats,
  .granulation-grid,
  .quality-grid,
  .feature-grid,
  .feature-grid.two,
  .application-grid,
  .media-grid,
  .facility-gallery,
  .history-photos {
    grid-template-columns: 1fr;
  }

  .facility-gallery .photo-card.wide {
    grid-row: auto;
  }

  .facility-gallery .photo-card.wide img,
  .history-photos img,
  .history-photos img:first-child {
    min-height: 0;
    height: 420px;
  }

  .stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats div:last-child {
    border-bottom: 0;
  }

  .contact-section .button,
  .contact-actions {
    width: 100%;
  }

}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .hero-copy,
  .product-hero-copy,
  .production-hero-copy,
  .section,
  .page-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-image,
  .product-hero-image,
  .production-hero-image {
    min-height: 280px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .contact-section {
    margin: 18px;
    padding: 28px 20px;
  }

  .site-footer {
    flex-direction: column;
  }
}
