@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

:root {
  --hekra-blue: #064c8c;
  --hekra-red: #f00825;
  --text-dark: #2f2e2e;
  --text-muted: #666666;
  --white: #ffffff;
  --max-width: 980px;
  --header-height: 64px;
  --section-padding: clamp(2rem, 5vw, 3rem);
  --content-padding: clamp(1rem, 4vw, 1.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--text-dark);
  line-height: 1.5;
  background: var(--white);
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

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

ul {
  margin: 0;
  padding-left: 1.2em;
}

/* Header */
.site-header {
  background: var(--hekra-blue);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px var(--content-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
}

.logo-link img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin: -10px;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 0;
  margin: 0;
}

.main-nav a {
  color: var(--white);
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
  display: block;
  padding: 4px 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--hekra-red);
}

.nav-item-spoluprace {
  display: flex;
  align-items: center;
}

.nav-spoluprace {
  background: var(--hekra-red);
  color: var(--white) !important;
  font-weight: 600;
  padding: 0.45rem 0.9rem !important;
  border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(240, 8, 37, 0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nav-spoluprace:hover,
.nav-spoluprace.active {
  color: var(--white) !important;
  background: #c9071f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(240, 8, 37, 0.45);
}

/* Hero */
.hero {
  background: var(--white);
  text-align: center;
  padding: var(--section-padding) var(--content-padding) clamp(1.75rem, 4vw, 2.5rem);
  border-bottom: 1px solid #d8e2ec;
  box-shadow: 0 6px 18px rgba(6, 76, 140, 0.06);
  position: relative;
  z-index: 1;
}

.hero-inner {
  width: min(100%, 802px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  display: block;
  width: 100%;
  margin: 0 0 1rem;
}

.hero-tagline {
  display: block;
  width: 100%;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-muted);
  font-weight: 300;
  margin: 0 0 24px;
  padding: 0;
  text-align: center;
}

.hero-heart {
  display: inline-block;
  margin-left: 0.35em;
  color: var(--hekra-red);
  font-size: 0.85em;
  line-height: 1;
  vertical-align: baseline;
  position: relative;
  top: -0.05em;
}

.facebook-link {
  display: inline-block;
}

.facebook-link img {
  width: 40px;
  height: 40px;
}

/* Trust bar */
.trust-bar {
  background: linear-gradient(180deg, #e8f1f9 0%, #dde8f2 100%);
  border-top: 3px solid var(--hekra-blue);
  border-bottom: 1px solid #c5d4e3;
  padding: clamp(2.75rem, 5vw, 4.25rem) var(--content-padding);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.trust-bar-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.trust-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2rem);
}

.trust-stat {
  text-align: center;
  padding: clamp(1rem, 2.5vw, 1.25rem);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(6, 76, 140, 0.06);
}

.trust-stat-value {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--hekra-blue);
  line-height: 1.15;
}

.trust-stat-label {
  margin: 0.5rem 0 0;
  font-size: clamp(0.875rem, 2vw, 1rem);
  line-height: 1.55;
  color: #475569;
}

.trust-partners {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: clamp(1.75rem, 4vw, 2.5rem);
  border-top: 1px solid #e2e8f0;
}

.trust-partners-title {
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.trust-logos {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1rem);
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
  margin: 0 calc(-1 * var(--content-padding));
  padding-left: var(--content-padding);
  padding-right: var(--content-padding);
}

.trust-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  min-width: 9.5rem;
  flex: 0 0 auto;
  scroll-snap-align: center;
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.trust-logo:hover {
  filter: grayscale(0);
  opacity: 1;
  box-shadow: 0 2px 8px rgba(6, 76, 140, 0.08);
}

.trust-logo span {
  font-size: clamp(0.6875rem, 1.8vw, 0.875rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: #64748b;
  transition: color 0.3s ease;
}

.trust-logo:hover span {
  color: var(--hekra-blue);
}

@media (min-width: 640px) {
  .trust-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow-x: visible;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
  }

  .trust-logo {
    min-width: 0;
    flex: initial;
  }
}

@media (min-width: 768px) {
  .trust-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
  }

  .trust-stat {
    text-align: left;
    border-left: 4px solid var(--hekra-red);
    padding-left: 1.25rem;
    border-radius: 0 8px 8px 0;
  }
}

@media (min-width: 1024px) {
  .trust-logos {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Sections */
.section {
  padding: var(--section-padding) var(--content-padding);
}

.section-blue {
  background: var(--hekra-blue);
  color: var(--white);
}

.section-white {
  background: var(--white);
  color: var(--text-dark);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.3125rem);
  font-weight: 400;
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.2;
  hyphens: auto;
}

.section-title-sm {
  font-size: clamp(1.375rem, 3.5vw, 1.75rem);
  margin-bottom: 24px;
}

/* Offer grid */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1.5rem, 4vw, 2rem) clamp(1rem, 3vw, 1.5rem);
}

.offer-col h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
}

.offer-col ul {
  font-size: 16px;
  line-height: 1.6;
}

.offer-col ul li {
  margin-bottom: 4px;
}

.offer-col h3 + ul {
  margin-bottom: 24px;
}

.offer-col a {
  color: inherit;
}

.offer-col a:hover {
  text-decoration: underline;
}

/* ── Offer section – two-column layout ── */
.offer-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1060px;
  margin: 0 auto;
}

.offer-info {
  text-align: left;
}

.offer-intro {
  margin-bottom: 1.5rem;
}

.offer-intro h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
}

.offer-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.offer-lead-extra {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

/* Price hero */
.offer-price-hero {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}

.offer-price-main {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.offer-price-from {
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.7;
}

.offer-price-amount {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.offer-price-unit {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.65;
}

.offer-price-note {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
}

/* Benefits */
.offer-benefits {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem 1rem;
}

.offer-benefits li {
  position: relative;
  margin: 0;
  padding: 0.4rem 0 0.4rem 1.1rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}

.offer-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hekra-red);
}

/* Facts compact */
.offer-facts-compact {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.offer-facts-compact h4 {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
}

.offer-facts-compact p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}

/* ── Calculator form (right column) ── */
.adblue-calculator {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 1.35rem 1.25rem 1.25rem;
  color: var(--white);
  text-align: left;
}

.calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.calc-heading {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.calc-price-tag {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.85);
}

.calc-step {
  margin: 0 0 0.85rem;
  padding: 0;
  border: none;
}

.calc-step-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.calc-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 0.625rem;
  font-weight: 700;
}

/* Packaging cards */
.calc-packaging {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.calc-packaging.is-invalid .calc-pack-option {
  border-color: #f87171;
}

.calc-pack-option {
  display: block;
  padding: 0.5rem 0.35rem;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.calc-pack-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.calc-pack-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.calc-pack-option:has(input:checked) {
  border-color: var(--hekra-red);
  background: rgba(240, 8, 37, 0.12);
  box-shadow: 0 0 0 1px rgba(240, 8, 37, 0.3);
}

.calc-pack-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
}

.calc-pack-detail {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Volume */
.calc-volume-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.calc-volume-row span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

.adblue-calculator input[type='range'] {
  width: 100%;
  height: 4px;
  accent-color: var(--hekra-red);
  cursor: pointer;
}

.adblue-calculator input[type='text'],
.adblue-calculator input[type='email'],
.adblue-calculator input[type='tel'],
.adblue-calculator input[type='number'] {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  font: inherit;
  font-size: 0.85rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s;
}

.adblue-calculator input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.adblue-calculator input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.09);
}

.adblue-calculator input[type='number'] {
  width: 5.5rem;
}

.adblue-calculator input.is-invalid {
  border-color: #f87171;
}

/* Divider */
.calc-divider {
  height: 1px;
  margin: 0.6rem 0 0.85rem;
  background: rgba(255, 255, 255, 0.1);
}

/* Contact grid */
.calc-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.calc-field-wide {
  grid-column: 1 / -1;
}

.calc-error {
  margin: 0.2rem 0 0;
  font-size: 0.675rem;
  color: #f87171;
  line-height: 1.3;
}

/* Submit */
.calc-submit {
  display: block;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 8px;
  background: var(--hekra-red);
  color: var(--white);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.calc-submit:hover {
  background: #d6061d;
  transform: translateY(-1px);
}

.calc-submit:active {
  transform: translateY(0);
}

.calc-success {
  margin: 0.6rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: #4ade80;
}

.calc-disclaimer {
  margin: 0.6rem 0 0;
  font-size: 0.65rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Desktop: side-by-side ── */
@media (min-width: 768px) {
  .offer-layout {
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
  }

  .offer-form-col {
    position: sticky;
    top: 5rem;
  }
}

@media (max-width: 767px) {
  .offer-benefits {
    grid-template-columns: 1fr;
  }

  .calc-packaging {
    grid-template-columns: 1fr;
  }

  .calc-contact-grid {
    grid-template-columns: 1fr;
  }

  .calc-field-wide {
    grid-column: auto;
  }
}

.offer-info a {
  color: inherit;
}

/* Story */
.story-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.story-text p {
  margin: 0 0 16px;
}

/* Spolupráce */
.section-spoluprace {
  background: linear-gradient(135deg, #fff8f8 0%, #f4f8fc 100%);
  border-top: 3px solid var(--hekra-red);
  border-bottom: 3px solid var(--hekra-red);
}

.section-spoluprace .section-title {
  color: var(--hekra-blue);
}

.section-spoluprace .section-title::after {
  background: var(--hekra-red);
  width: 72px;
}

.spoluprace-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--white);
  border-radius: 12px;
  border-left: 4px solid var(--hekra-red);
  box-shadow: 0 4px 24px rgba(6, 76, 140, 0.08);
}

.spoluprace-text p {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.75;
  color: var(--text-dark);
  margin: 0;
}

.spoluprace-subtitle {
  margin: 1.5rem 0 0.85rem;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  font-weight: 700;
  color: var(--hekra-blue);
}

.spoluprace-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  display: inline-block;
}

.spoluprace-list li {
  position: relative;
  margin: 0 0 0.55rem;
  padding-left: 1.15rem;
  font-size: clamp(1rem, 2.5vw, 1.075rem);
  line-height: 1.5;
  color: var(--text-dark);
}

.spoluprace-list li:last-child {
  margin-bottom: 0;
}

.spoluprace-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--hekra-red);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1.5rem, 4vw, 2rem);
  font-size: clamp(0.9375rem, 2vw, 1rem);
  line-height: 1.7;
}

.contact-block h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 4px;
}

.contact-block p {
  margin: 0 0 8px;
}

.contact-block a {
  color: var(--white);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

/* Footer */
.site-footer {
  background: var(--hekra-blue);
  color: var(--white);
  text-align: center;
  padding: var(--section-padding) var(--content-padding);
  font-size: clamp(0.75rem, 2vw, 0.8125rem);
}

.site-footer p {
  margin: 0;
  max-width: 60ch;
  margin-inline: auto;
}

.footer-social {
  margin-bottom: 12px;
}

.footer-social img {
  width: 32px;
  height: 32px;
}

/* Page content (AdBlue, FLAMIX) */
.page-content {
  padding: var(--section-padding) var(--content-padding) clamp(2.5rem, 6vw, 4rem);
  max-width: min(700px, 100%);
  margin: 0 auto;
  text-align: center;
}

.page-content.left-align {
  text-align: left;
}

.page-content h1 {
  font-size: clamp(1.375rem, 4vw, 1.75rem);
  font-weight: 400;
  color: #5a8ab0;
  margin: 24px 0;
}

.page-content p,
.page-content li {
  font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text-muted);
}

.page-content ul {
  text-align: left;
  width: min(100%, 560px);
  margin: 16px auto;
  padding-left: 1.4em;
}

.page-content .highlight-link {
  color: var(--hekra-red);
  text-decoration: underline;
  display: block;
  margin: 24px 0;
}

.page-icon {
  width: 88px;
  margin: 0 auto 16px;
  display: block;
}

.page-blue {
  background: var(--hekra-blue);
  min-height: calc(100dvh - var(--header-height));
}

.page-blue .page-content h1,
.page-blue .page-content p,
.page-blue .page-content li {
  color: var(--white);
}

.page-blue .page-content h2 {
  color: var(--white);
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 600;
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 16px;
}

/* Gallery */
.gallery-block {
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
  padding-bottom: clamp(2rem, 5vw, 2.75rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.gallery-block-last {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.gallery-block .section-title {
  margin-bottom: 0.5rem;
}

.gallery-lead {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.gallery-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.gallery-logo-item {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.96);
}

.gallery-logo-item img {
  width: 100%;
  max-height: 90px;
  object-fit: contain;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 3vw, 1.5rem);
}

.video-item {
  margin: 0;
}

.video-item video {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  background: #000;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-item figcaption {
  margin-top: 0.55rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  color: rgba(255, 255, 255, 0.88);
}

.pdf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.pdf-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.25rem 0.85rem;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-top: 2px solid var(--hekra-red);
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease;
}

.pdf-item:hover {
  background: rgba(255, 255, 255, 0.14);
}

.pdf-item-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.pdf-item-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.pdf-item-action {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  text-decoration: underline;
  color: rgba(255, 255, 255, 0.9);
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.product-item {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.product-item img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .gallery-logos,
  .pdf-grid,
  .product-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  .gallery-logos,
  .pdf-grid,
  .product-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-logo-item {
    min-height: 100px;
  }
}

/* Tablet & mobile navigation */
@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--hekra-blue);
    padding: 8px var(--content-padding) 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .main-nav li:last-child {
    border-bottom: none;
  }

  .main-nav a {
    padding: 14px 0;
    font-size: 15px;
  }

  .nav-spoluprace {
    display: inline-block;
    margin-top: 4px;
    padding: 0.6rem 1.1rem !important;
  }
}

/* Large tablets – 2 columns for offer when space allows */
@media (min-width: 600px) and (max-width: 1024px) {
  .offer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small phones */
@media (max-width: 480px) {
  :root {
    --header-height: 56px;
  }

  .logo-link img {
    height: 32px;
  }

  .page-content p br {
    display: none;
  }

  .contact-block {
    text-align: center;
  }

  .story-text {
    font-size: 0.9375rem;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .main-nav a {
    font-size: 14px;
  }
}

/* Large desktops */
@media (min-width: 1200px) {
  .offer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
