:root {
  color-scheme: light;
  --ink: #16333b;
  --muted: #6c7e82;
  --paper: #f5f7f3;
  --white: #ffffff;
  --sea: #0d7773;
  --sea-dark: #07514f;
  --lime: #c9e66a;
  --line: #dfe8e4;
  --shadow: 0 18px 45px rgba(22, 51, 59, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 8%, rgba(201, 230, 106, 0.28), transparent 28rem),
    linear-gradient(180deg, #fbfcf9 0%, var(--paper) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }
button { color: inherit; }

.topbar {
  min-height: 78px;
  padding: 14px clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(22, 51, 59, 0.08);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brand img {
  display: block;
  width: clamp(190px, 19vw, 250px);
  height: auto;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav button,
.main-nav a {
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}

.main-nav button:hover,
.main-nav button:focus-visible,
.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  background: #edf4f1;
  outline: none;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0a42f;
  box-shadow: 0 0 0 4px rgba(224, 164, 47, 0.14);
}

.sync-pill.connected .sync-dot {
  background: #3da66c;
  box-shadow: 0 0 0 4px rgba(61, 166, 108, 0.14);
}

.sync-pill.error .sync-dot {
  background: #c9513d;
  box-shadow: 0 0 0 4px rgba(201, 81, 61, 0.14);
}

.connection-error {
  grid-column: 1 / -1;
  padding: 38px 28px;
  border: 1px dashed #d8a095;
  border-radius: 22px;
  background: #fff8f6;
  color: #7b3328;
  line-height: 1.6;
}

.connection-error strong { display: block; margin-bottom: 6px; color: var(--ink); }

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 0 90px;
}

.company-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: stretch;
  margin-bottom: clamp(70px, 10vw, 120px);
}

.company-copy {
  padding: clamp(18px, 3vw, 36px) 0;
}

.company-copy h1 {
  max-width: 850px;
  font-size: clamp(2.65rem, 6vw, 5.7rem);
}

.company-lead {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.72;
}

.company-lead strong { color: var(--ink); }

.primary-action {
  margin-top: 30px;
  padding: 14px 20px;
  border: 0;
  border-radius: 12px;
  background: #1158cb;
  color: white;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(17, 88, 203, 0.18);
}

.primary-action:hover, .primary-action:focus-visible {
  background: #0a47aa;
  outline: 3px solid rgba(17, 88, 203, 0.2);
  outline-offset: 3px;
}

.company-summary {
  padding: clamp(28px, 4vw, 46px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 230, 106, 0.22), transparent 15rem),
    #102b44;
  color: white;
  box-shadow: 0 24px 65px rgba(16, 43, 68, 0.2);
}

.summary-kicker {
  margin: 0 0 18px;
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.company-summary h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.08;
  font-weight: 500;
}

.summary-list {
  display: grid;
  gap: 0;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.summary-list span {
  display: flex;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
}

.summary-list strong { color: var(--lime); }

.catalog-start {
  scroll-margin-top: 120px;
}

.facilities {
  margin-bottom: clamp(76px, 10vw, 124px);
  scroll-margin-top: 120px;
}

.facilities-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  gap: 28px 64px;
  align-items: end;
  margin-bottom: 34px;
}

.facilities-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -12px;
}

.facilities-heading h1,
.facilities-heading h2 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.8vw, 4.6rem);
  font-weight: 500;
  line-height: 1.02;
}

.facilities-page {
  padding-top: clamp(28px, 5vw, 72px);
}

footer a {
  color: inherit;
  font-weight: 750;
}

.facilities-heading > p:last-child {
  margin: 0 0 7px;
  color: var(--muted);
  line-height: 1.7;
}

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

.facility-card {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #dce7e5;
  box-shadow: var(--shadow);
}

.facility-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
  transition: transform 450ms ease;
}

.facility-card:hover img { transform: scale(1.025); }

.facility-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(5, 28, 43, 0.72));
  pointer-events: none;
}

.facility-card figcaption {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 20px;
  left: 22px;
  color: white;
  font-size: 1rem;
  font-weight: 800;
}

.hero { max-width: 740px; margin-bottom: 42px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--sea);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.hero > p:last-child {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
}

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

.choice-grid {
  display: grid;
  gap: 9px;
  width: 100%;
}

.choice-panel {
  width: min(100%, 720px);
  padding: 4px 0;
}

.choice-label {
  margin: 0 0 2px;
  color: #102b44;
  font-size: 0.92rem;
}

.choice-card {
  width: 100%;
  min-height: 52px;
  padding: 13px 18px;
  border: 0;
  border-radius: 10px;
  background: #1158cb;
  color: white;
  cursor: pointer;
  text-align: left;
  font-size: clamp(0.98rem, 1.8vw, 1.1rem);
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease;
}

.choice-card:hover, .choice-card:focus-visible {
  background: #0a47aa;
  transform: translateX(5px);
  outline: 3px solid rgba(17, 88, 203, 0.2);
  outline-offset: 3px;
}

.section-back { margin-bottom: 26px; }
.section-heading {
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #ffdf00;
  color: #102b44;
  font-weight: 850;
}

.family-card {
  min-height: 230px;
  padding: 26px;
  border: 1px solid rgba(22, 51, 59, 0.08);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 3px 0 rgba(22, 51, 59, 0.02);
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.family-card:hover, .family-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(13, 119, 115, 0.3);
  box-shadow: var(--shadow);
  outline: none;
}

.family-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #e4f2ef;
  font-size: 1.8rem;
}

.family-card h2 { margin: 0 0 7px; font-size: 1.35rem; }
.family-card p { margin: 0; color: var(--muted); }
.family-bottom { display: flex; justify-content: space-between; align-items: end; gap: 15px; }
.family-count { color: var(--sea); font-weight: 700; font-size: 0.86rem; }
.family-arrow { font-size: 1.5rem; color: var(--sea); }

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: -8px 0 30px;
}

.back-button {
  border: 0;
  background: transparent;
  padding: 10px 0;
  color: var(--sea-dark);
  font-weight: 750;
  cursor: pointer;
}

.search {
  width: min(100%, 440px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.search input {
  width: 100%;
  padding: 13px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.results-meta { margin-bottom: 18px; color: var(--muted); font-size: 0.9rem; }

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

.product-card {
  overflow: hidden;
  border: 1px solid rgba(22, 51, 59, 0.08);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 5px 18px rgba(22, 51, 59, 0.05);
}

.product-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #d7ede7, #f1f4dc);
}

.product-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vat-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--sea-dark);
  font-size: 0.72rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.product-body { padding: 20px; }
.reference {
  color: var(--sea);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.designation { margin: 8px 0 20px; font-size: 1.08rem; line-height: 1.35; }
.scientific-name, .catch-zone { margin: 0 0 7px; color: var(--muted); font-size: 0.78rem; line-height: 1.4; }
.scientific-name { font-style: italic; }
.catch-zone { min-height: 2.2em; }
.product-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.82rem; }
.availability { color: #2f855a; font-weight: 700; }

.empty-state {
  padding: 50px 25px;
  border: 1px dashed #c7d4d0;
  border-radius: 22px;
  text-align: center;
  color: var(--muted);
}
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { margin-bottom: 8px; color: var(--ink); }

.load-more {
  display: block;
  margin: 34px auto 0;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--sea);
  color: white;
  font-weight: 750;
  cursor: pointer;
}
.load-more:hover { background: var(--sea-dark); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(22, 51, 59, 0.08);
  color: var(--muted);
  font-size: 0.8rem;
}

[hidden] { display: none !important; }

@media (max-width: 850px) {
  .company-intro { grid-template-columns: 1fr; }
  .facilities-heading { grid-template-columns: 1fr; }
  .facilities-heading .eyebrow { margin-bottom: -8px; }
  .facilities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facility-card--featured { grid-column: 1 / -1; }
  .facility-card:last-child { grid-column: 1 / -1; min-height: 520px; }
  .family-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .topbar-actions { width: 100%; align-items: stretch; flex-direction: column; gap: 10px; }
  .brand img { width: min(230px, 76vw); }
  .main-nav { justify-content: space-between; }
  .main-nav button { flex: 1; }
  .sync-pill { width: 100%; }
  main { width: min(100% - 28px, 1180px); padding-top: 46px; }
  .company-intro { margin-bottom: 70px; }
  .company-copy { padding-top: 0; }
  .company-summary { border-radius: 22px; }
  .facilities-grid { grid-template-columns: 1fr; }
  .facility-card,
  .facility-card--featured,
  .facility-card:last-child { grid-column: auto; min-height: 460px; border-radius: 20px; }
  .family-grid, .product-grid { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  footer { flex-direction: column; }
}
