:root {
  color-scheme: light;
  scroll-behavior: smooth;
}

html { scroll-padding-top: 92px; }

body { text-rendering: optimizeLegibility; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: #14432f;
  font: 700 14px/1.2 system-ui, sans-serif;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transform: translateY(-150%);
  transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid #d8ad4f !important;
  outline-offset: 3px !important;
}

button, a { -webkit-tap-highlight-color: transparent; }

input, textarea, select { font-size: 16px; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.form-status {
  min-height: 24px;
  margin: 10px 0 0;
  color: #516057;
  font-size: 13px;
}

.cookie[data-hidden="true"], .floating[data-hidden="true"] { display: none !important; }

.floating .close {
  cursor: pointer;
  font-family: inherit;
}

@media (hover:hover) {
  a, button { transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
}

@media (max-width: 900px) {
  .container { padding-left: 20px !important; padding-right: 20px !important; }
  .topbar .container { justify-content: center !important; text-align: center; }
  .top-social { display: none !important; }
  .hero { padding-top: 28px !important; padding-bottom: 30px !important; }
  .hero h1 { font-size: clamp(30px, 9vw, 40px) !important; line-height: 1.08; }
  .panel { border-radius: 14px !important; }
  .floating { right: 14px !important; bottom: 18px !important; }
  .floating .close, .floating a:nth-child(3) { display: none !important; }
  .floating a { min-width: 0 !important; border-radius: 999px !important; padding: 11px 15px !important; font-size: 12px !important; }
  .cookie { align-items: flex-start !important; flex-direction: column; padding: 14px 18px !important; }
  .site-topbar-inner { padding: 7px 18px !important; justify-content: center !important; }
  .site-topbar-contact { gap: 14px !important; flex-wrap: nowrap !important; font-size: 11.5px; }
  .site-topbar-trust { display: none !important; }
}

@media (max-width: 390px) {
  .site-topbar-contact span:first-child { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Visual catalogue and project-shortlist layer. Core product content remains readable without JavaScript. */
.catalog-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid #ded7ca;
  border-radius: 16px;
  background: #ded7ca;
}
.catalog-proof div { padding: 18px 20px; background: #fff; }
.catalog-proof strong { display: block; color: #14432f; font-size: 24px; line-height: 1.1; }
.catalog-proof span { color: #667168; font-size: 13px; }

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.collection-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  background: #14432f;
  text-decoration: none;
  box-shadow: 0 12px 35px rgba(18, 50, 35, .12);
}
.collection-card img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; transition: transform .35s ease; }
.collection-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 32%, rgba(7, 27, 18, .9)); }
.collection-card div { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: 24px; }
.collection-card small { color: #ecd38f; text-transform: uppercase; letter-spacing: .13em; }
.collection-card h3 { margin: 7px 0 6px; font-size: 24px; line-height: 1.1; }
.collection-card p { margin: 0; color: #e2e9e4; font-size: 14px; }
@media (hover:hover) { .collection-card:hover img { transform: scale(1.035); } }

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin: 30px 0 42px;
  padding: 22px;
  border: 1px solid #ded7ca;
  border-radius: 16px;
  background: #fff;
}
.catalog-search label { display: block; margin-bottom: 7px; color: #14432f; font-weight: 700; }
.catalog-search input { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid #cfc7b9; border-radius: 9px; color: #1c2420; background: #fff; }
.catalog-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.catalog-filter {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #b9c4bc;
  border-radius: 999px;
  color: #14432f;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.catalog-filter.is-active { border-color: #14432f; color: #fff; background: #14432f; }
.catalog-results { grid-column: 1 / -1; margin: -2px 0 0; color: #667168; font-size: 13px; }

.route-guide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.route-card {
  display: flex;
  min-width: 0;
  min-height: 250px;
  padding: 22px;
  border: 1px solid #ded7ca;
  border-radius: 16px;
  flex-direction: column;
  background: #fff;
}
.route-card > span { color: #8a6b25; font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.route-card h3 { margin: 10px 0 9px; color: #14432f; font-size: 21px; line-height: 1.15; }
.route-card p { margin: 0 0 18px; color: #667168; font-size: 14px; }
.route-card a { margin-top: auto; color: #14432f; font-weight: 800; }

.product-meta { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0 0 !important; }
.product-meta span {
  padding: 5px 8px;
  border: 1px solid #d8dfda;
  border-radius: 999px;
  color: #315846;
  background: #f3f7f4;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.product-choice { position: relative; display: flex; min-width: 0; flex-direction: column; }
.product-choice > .product-card,
.product-choice > .product { height: 100%; }
.project-add {
  width: calc(100% - 24px);
  min-height: 42px;
  margin: -58px 12px 16px;
  z-index: 2;
  border: 1px solid rgba(20, 67, 47, .24);
  border-radius: 999px;
  color: #14432f;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 22px rgba(12, 40, 27, .12);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.project-add[aria-pressed="true"] { color: #fff; background: #14432f; }
.project-add:disabled { opacity: .5; cursor: not-allowed; }
.product-choice > .product-card div,
.product-choice > .product div { padding-bottom: 78px !important; }

.project-dock {
  position: sticky;
  z-index: 12;
  bottom: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  max-width: 1120px;
  margin: 18px auto 28px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  color: #fff;
  background: rgba(13, 44, 30, .96);
  box-shadow: 0 18px 45px rgba(7, 27, 18, .28);
  backdrop-filter: blur(10px);
}
.project-dock strong { white-space: nowrap; }
.project-dock [data-project-list] { overflow: hidden; color: #d6e0d9; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.project-clear { border: 0; color: #d6e0d9; background: transparent; cursor: pointer; text-decoration: underline; }
.project-dock [data-project-link] { white-space: nowrap; padding: 10px 15px; border-radius: 999px; color: #14432f; background: #e4c87e; font-weight: 700; text-decoration: none; }
.project-dock[data-empty="true"] { position: relative; bottom: auto; }
.project-dock[data-empty="true"] .project-clear { display: none; }

@media (max-width: 820px) {
  .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-guide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .project-dock { grid-template-columns: auto 1fr auto; margin-right: 16px; margin-left: 16px; }
  .project-dock [data-project-list] { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 560px) {
  .catalog-proof, .collection-grid { grid-template-columns: 1fr; }
  .route-guide { grid-template-columns: 1fr; }
  .route-card { min-height: 0; }
  .collection-card, .collection-card img { min-height: 300px; }
  .catalog-filters { gap: 6px; }
  .catalog-filter { padding-right: 11px; padding-left: 11px; font-size: 12px; }
  .project-dock { bottom: 8px; grid-template-columns: 1fr auto; }
  .project-dock strong { white-space: normal; }
  .project-clear { display: none; }
  .project-dock [data-project-link] { grid-column: 2; grid-row: 1; }
  .project-dock [data-project-list] { grid-column: 1 / -1; }
}
