/* ==========================================================================
   Klinika – page templates
   ========================================================================== */

/* ================================================================ HOME */
/* ---- Hero ---- */
.hero {
  position: relative;
  padding-top: 28px;
  background:
    radial-gradient(1200px 420px at 85% -10%, rgba(95, 195, 232, .14), transparent 70%),
    linear-gradient(180deg, var(--c-surface) 0%, #fff 62%);
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto auto; width: min(560px, 60%); height: 420px; pointer-events: none;
  background-image: linear-gradient(rgba(10, 92, 122, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 92, 122, .06) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 100% 0%, #000 10%, transparent 70%);
}
.hero > .wrap { position: relative; }
.hero__grid { display: grid; gap: 20px; }
.hero__title .eyebrow { margin-bottom: 16px; }
.hero__title .display { max-width: 16ch; }
.hero__side { display: grid; gap: 24px; align-content: end; }
.hero__lead { max-width: 52ch; }
.hero__cta { display: grid; gap: 10px; }
.hero__cta .btn { width: 100%; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero__chips .chip { min-height: 32px; padding: 5px 12px 5px 10px; font-size: .8125rem; background: rgba(255,255,255,.8); }
.hero__chips .icon { width: 16px; height: 16px; color: var(--c-primary); }
@media (max-width: 767.98px) {
  .hero .hero__chips { display: grid; gap: 6px; margin-top: 20px; }
  .hero__chips .chip { align-items: flex-start; justify-self: start; max-width: 100%; border-radius: 10px; padding: 6px 12px 6px 10px; line-height: 20px; white-space: normal; }
  .hero__chips .chip .icon { flex: none; margin-top: 2px; }
}
@media (min-width: 480px) {
  .hero__cta { display: flex; flex-wrap: wrap; }
  .hero__cta .btn { width: auto; }
}
@media (min-width: 1024px) {
  .hero { padding-top: 56px; }
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
  .hero__title { grid-column: 1 / span 7; }
  .hero__side { grid-column: 8 / span 5; padding-bottom: 6px; }
  .hero__chips { margin-top: 32px; }
}

.hero__media {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: 28px;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-hero);
  background: var(--c-surface-2);
}
@media (min-width: 768px) { .hero__media { aspect-ratio: 21 / 9; margin-top: 40px; } }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 700ms var(--ease); }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide picture, .hero__slide img { width: 100%; height: 100%; }
.hero__slide img { object-fit: cover; }
.hero__slide.is-active img { animation: kl-kenburns 9s var(--ease) both; }
.hero__media.is-stopped .hero__slide img { animation-play-state: paused; }
@keyframes kl-kenburns { from { transform: scale(1.04); } to { transform: scale(1); } }
.hero__cap {
  position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px;
  display: block;
  padding: 14px 16px;
  border-radius: var(--r-card);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--sh-2);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hero__cap { background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); }
}
.hero__cap-item { min-width: 0; }
.hero__cap-eyebrow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-primary); }
.hero__cap-title { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--c-text); font-weight: 600; font-size: 1rem; line-height: 22px; text-decoration: none; }
a.hero__cap-title:hover { color: var(--c-primary); }
a.hero__cap-title .icon { transition: transform var(--dur-2) var(--ease); }
a.hero__cap-title:hover .icon { transform: translateX(4px); }
.hero__ctrl {
  position: absolute; z-index: 3; top: 12px; right: 12px;
  display: flex; align-items: center; gap: 2px; padding: 4px;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, .9); box-shadow: var(--sh-2);
}
.hero__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--c-border); border-radius: 50%; background: #fff; color: var(--c-primary); }
@media (min-width: 768px) { .hero__ctrl { top: auto; bottom: 24px; right: 24px; } }
.hero__btn:hover { border-color: var(--c-primary); }
.hero__count { min-width: 44px; text-align: center; font-size: var(--fs-xs); font-weight: 600; color: var(--c-muted); }
.hero__btn--pause { border-color: transparent; }
.hero__btn--pause .hero__ic-play, .is-stopped .hero__btn--pause .hero__ic-pause { display: none; }
.is-stopped .hero__btn--pause .hero__ic-play { display: block; }
[data-kl-hero]:not(.is-live) .hero__ctrl { display: none; } /* controls only when theme.js runs the slider */
@media (min-width: 768px) {
  /* leave room for the controls (pause, prev, count, next ≈ 190 px) on the right */
  .hero__cap { left: 24px; bottom: 24px; right: auto; max-width: min(520px, calc(100% - 48px - 206px)); padding: 16px 20px; gap: 24px; }
  .hero__cap-title { font-size: 1.0625rem; }
}

/* ---- Quick routes ---- */
.routes-sec { padding-top: 28px; }
.routes { display: grid; gap: 8px; }
.routes > li { display: flex; min-width: 0; }
.routes > li > .route { flex: 1; min-width: 0; }
.route {
  position: relative; display: flex; align-items: center; gap: 16px;
  min-height: 72px; padding: 12px 16px 12px 12px;
  border-radius: var(--r-card); background: var(--c-surface);
  color: var(--c-text); text-decoration: none;
  border: 1px solid transparent;
  transition: background-color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.route:hover { background: #fff; border-color: var(--c-border-strong); box-shadow: var(--sh-2); }
.route__ic { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 10px; background: #fff; color: var(--c-primary); box-shadow: var(--sh-1); }
.route__ic .icon { width: 28px; height: 28px; }
.route__txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.route__title { font-size: 1.0625rem; line-height: 24px; font-weight: 600; }
.route__meta { font-size: var(--fs-xs); line-height: 18px; color: var(--c-muted); }
.route__arrow { color: var(--c-primary); transition: transform var(--dur-2) var(--ease); }
.route:hover .route__arrow { transform: translateX(4px); }
@media (min-width: 768px) {
  .routes-sec { padding-top: 40px; }
  .routes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
  .route { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px; min-height: 0; }
  .route__ic { width: 56px; height: 56px; }
  .route__ic .icon { width: 32px; height: 32px; }
  .route__title { font-size: var(--fs-h3); line-height: 1.36; }
  .route__meta { font-size: .9375rem; line-height: 22px; }
  .route__arrow { position: absolute; top: 24px; right: 24px; }
}

/* ---- Sector map (signature) ---- */
.smap__tabs { margin-bottom: 20px; padding-block: 2px; }
.smap__tab { min-height: 44px; padding: 0 16px; }
.smap__tab .icon { color: var(--c-primary); }
.smap__tab[aria-selected="true"] { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.smap__tab[aria-selected="true"] .icon { color: #fff; }
.smap__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 1024px) {
  .smap__tabs { margin-bottom: 28px; }
  .smap__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: stretch; }
}
@media (min-width: 1200px) { .smap__grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }
.smap__fig {
  position: relative; margin: 0;
  display: flex; flex-direction: column; justify-content: center;
  border-radius: var(--r-hero); overflow: hidden;
  background-color: var(--c-surface-2);
  background-image: linear-gradient(rgba(10, 92, 122, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 92, 122, .07) 1px, transparent 1px);
  background-size: 24px 24px; background-position: -1px -1px;
  border: 1px solid var(--c-border);
}
.smap__stage { position: relative; width: 100%; aspect-ratio: 1200 / 680; }
.smap__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.smap__svg * { vector-effect: non-scaling-stroke; }
.sc-ceil { fill: #eef5f9; stroke: var(--c-primary); stroke-width: 1.25; }
.sc-lamp { fill: #fff; stroke: var(--c-primary); stroke-width: 1; }
.sc-wall { fill: #f8fbfd; stroke: var(--c-primary); stroke-width: 1.5; }
.sc-floor { fill: #e7f0f6; stroke: var(--c-primary); stroke-width: 1.5; }
.sc-joints path { fill: none; stroke: var(--c-primary); stroke-opacity: .16; stroke-width: 1; }
.sc-rail { fill: #e3eff6; stroke: var(--sc-stroke, var(--c-primary)); stroke-width: 1; transition: fill var(--dur-2) var(--ease); }
.sc-flushleaf { fill: #f8fbfd; }
.smap[data-active="protect"] .sc--protect .sc-rail { fill: #fde8e8; }
.sc-dim path { fill: none; stroke: var(--c-border-input); stroke-width: 1; }
.sc { --sc-stroke: var(--c-primary); --sc-fill: #fff; transition: opacity var(--dur-2) var(--ease); }
.sc-line { fill: none; stroke: var(--sc-stroke); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke var(--dur-2) var(--ease); }
.sc-line.sc-fill { fill: var(--sc-fill); }
.sc-thin { stroke-width: 1; }
.sc-bold { stroke-width: 3.2; }
.sc-leaf { fill: var(--sc-fill); stroke: var(--sc-stroke); stroke-width: 1.5; transition: fill var(--dur-2) var(--ease); }
.sc-glass { fill: #d6e7f1; stroke: var(--sc-stroke); stroke-width: 1; }
.sc-plate { fill: #e9f2f7; stroke: var(--sc-stroke); stroke-width: 1; }
.sc-mark { fill: var(--sc-stroke); }
.smap[data-active] .sc { opacity: .38; }
.smap[data-active="frame"] .sc--frame, .smap[data-active="door"] .sc--door, .smap[data-active="fire"] .sc--fire,
.smap[data-active="hermetic"] .sc--hermetic, .smap[data-active="lead"] .sc--lead, .smap[data-active="swing"] .sc--swing,
.smap[data-active="access"] .sc--access, .smap[data-active="hardware"] .sc--hardware,
.smap[data-active="flush"] .sc--flush, .smap[data-active="protect"] .sc--protect { opacity: 1; --sc-stroke: var(--c-accent-700); --sc-fill: #fff6f6; }
.spot {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border-radius: 50%;
  background: var(--c-accent); color: #fff;
  font-size: 13px; line-height: 16px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 3px #fff, 0 6px 14px -4px rgba(13, 38, 51, .45);
  transition: transform var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease);
}
.spot span { position: relative; z-index: 1; }
.spot::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid var(--c-accent); opacity: 0;
}
.smap.is-inview .spot::before { animation: kl-pulse 1.6s var(--ease) 2; } /* ≤ 5 s in total (WCAG 2.2.2), played once: theme.js */
.smap__spots a:nth-child(2)::before { animation-delay: .15s !important; }
.smap__spots a:nth-child(3)::before { animation-delay: .3s !important; }
.smap__spots a:nth-child(4)::before { animation-delay: .45s !important; }
.smap__spots a:nth-child(5)::before { animation-delay: .6s !important; }
.smap__spots a:nth-child(6)::before { animation-delay: .75s !important; }
.smap__spots a:nth-child(7)::before { animation-delay: .9s !important; }
.smap__spots a:nth-child(8)::before { animation-delay: 1.05s !important; }
.smap__spots a:nth-child(9)::before { animation-delay: 1.2s !important; }
@keyframes kl-pulse { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.spot:hover { transform: scale(1.12); }
.smap[data-active="frame"] .spot[data-kl-spot="frame"], .smap[data-active="door"] .spot[data-kl-spot="door"],
.smap[data-active="fire"] .spot[data-kl-spot="fire"], .smap[data-active="hermetic"] .spot[data-kl-spot="hermetic"],
.smap[data-active="lead"] .spot[data-kl-spot="lead"], .smap[data-active="swing"] .spot[data-kl-spot="swing"],
.smap[data-active="access"] .spot[data-kl-spot="access"], .smap[data-active="hardware"] .spot[data-kl-spot="hardware"],
.smap[data-active="flush"] .spot[data-kl-spot="flush"], .smap[data-active="protect"] .spot[data-kl-spot="protect"] {
  transform: scale(1.2); background: var(--c-dark); box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(95, 195, 232, .7);
}
@media (min-width: 768px) {
  .spot { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
}
.smap__panel {
  padding: 20px;
  border-radius: var(--r-hero); background: #fff; border: 1px solid var(--c-border);
}
.smap__phead { padding-bottom: 12px; }
.smap__pname { display: flex; align-items: center; gap: 10px; font-size: var(--fs-h3); line-height: 1.3; }
.smap__pname .icon { color: var(--c-primary); }
.smap__ptag { margin-top: 6px; color: var(--c-muted); font-size: .9375rem; line-height: 22px; }
.smap__list { counter-reset: none; border-top: 1px solid var(--c-border); }
.smap__list li { border-bottom: 1px solid var(--c-border); }
.smap__row {
  display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 8px 8px 8px 4px; margin: 0 -8px 0 -4px;
  border-radius: var(--r-btn);
  color: var(--c-text); text-decoration: none;
  transition: background-color var(--dur-1) var(--ease);
}
.smap__row:hover, .smap__row:focus-visible { background: var(--c-surface); }
.smap__num {
  display: grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--c-accent); color: #fff;
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.smap__row:hover .smap__num, .smap__row:focus-visible .smap__num { background: var(--c-dark); transform: scale(1.08); }
.smap__txt { display: grid; flex: 1; min-width: 0; }
.smap__name { font-weight: 600; font-size: .9375rem; line-height: 22px; }
.smap__meta { font-size: var(--fs-xs); line-height: 18px; color: var(--c-muted); }
.smap__arrow { color: var(--c-primary); transition: transform var(--dur-2) var(--ease); }
.smap__row:hover .smap__arrow { transform: translateX(4px); }
.smap__all { margin-top: 16px; }
@media (min-width: 1024px) { .smap__panel { padding: 24px; } }

/* ---- Families (Asortiman) ---- */
.fams { display: grid; gap: 8px; }
.fam {
  position: relative;
  display: grid; grid-template-columns: 96px minmax(0, 1fr) 20px; align-items: center; gap: 16px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--c-border); border-radius: var(--r-card); background: #fff;
  transition: transform var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.fam__img { width: 96px; height: 72px; border-radius: var(--r-img); overflow: hidden; background: var(--c-surface-2); }
.fam__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease); }
.fam__img .well-ic .icon { width: 30px; height: 30px; }
.fam__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fam__count { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-primary); }
.fam__name { font-size: 1.0625rem; line-height: 22px; font-weight: 600; letter-spacing: -.01em; }
.fam__text, .fam__sectors { display: none; }
.fam__arrow { color: var(--c-primary); transition: transform var(--dur-2) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .fam:hover { transform: translateY(-2px); border-color: var(--c-border-strong); box-shadow: var(--sh-2); }
  .fam:hover .fam__name { color: var(--c-primary); }
  .fam:hover .fam__img img { transform: scale(1.04); }
  .fam:hover .fam__arrow { transform: translateX(4px); }
}
.fam:focus-within { border-color: var(--c-border-strong); }
@media (min-width: 768px) {
  .fams { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
  .fam { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; }
  .fam__img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .fam__body { gap: 6px; padding: 16px 12px 12px; flex: 1; }
  .fam__name { font-size: var(--fs-h3); line-height: 1.36; }
  .fam__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9375rem; line-height: 24px; color: var(--c-muted); }
  .fam__sectors { display: flex; gap: 6px; margin-top: auto; padding-top: 10px; }
  .fam__sector { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-surface); color: var(--c-primary); }
  .fam__sector .icon { width: 16px; height: 16px; }
  .fam__arrow { position: absolute; right: 20px; top: calc(8px + (100% - 16px) * 0); display: none; }
}
@media (min-width: 1024px) { .fams { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .fams { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---- Stats ---- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; min-width: 0; }
.stat__num {
  font-size: var(--fs-stat); line-height: 1.08; font-weight: 600; font-stretch: 85%;
  letter-spacing: -.01em; color: var(--c-primary-700);
}
.stat__label { font-size: .9375rem; line-height: 22px; color: var(--c-muted); }
@media (min-width: 1024px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .stat { padding: 4px 32px; border-left: 1px solid var(--c-surface-3); }
  .stat:first-child { padding-left: 0; border-left: 0; }
}

/* ---- Intro + USPs ---- */
.intro { display: grid; gap: 40px; }
.intro__media { position: relative; max-width: 520px; }
.intro__img { border-radius: var(--r-hero); overflow: hidden; background: var(--c-surface-2); }
.intro__img img { width: 100%; height: auto; }
.intro__badge {
  position: absolute; right: -8px; bottom: 20px; max-width: 280px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--r-card); background: #fff; box-shadow: var(--sh-3);
  font-size: var(--fs-xs); line-height: 18px; color: var(--c-muted);
}
.intro__badge strong { display: block; color: var(--c-text); font-size: .9375rem; line-height: 20px; }
.intro__badge-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--c-surface-2); color: var(--c-primary); }
.intro__txt > * + * { margin-top: 16px; }
.intro__txt .usps { margin-top: 32px; }
.intro__txt .tlink { margin-top: 20px; }
.usps { display: grid; gap: 20px; }
.usp { display: flex; gap: 14px; }
.usp__ic { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 10px; background: var(--c-surface-2); color: var(--c-primary); }
.usp__title { display: block; font-weight: 600; line-height: 24px; }
.usp__text { display: block; margin-top: 2px; font-size: .9375rem; line-height: 24px; color: var(--c-muted); }
@media (min-width: 768px) { .usps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; } }
@media (min-width: 1024px) {
  .intro { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: center; }
  .intro__badge { right: -32px; }
}

/* ---- Checks list ---- */
.checks { display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks__ic { display: grid; place-items: center; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--c-surface-2); color: var(--c-primary); }
.checks__ic .icon { width: 13px; height: 13px; stroke-width: 2.4; }
.checks strong { font-weight: 600; }
.checks--sm { gap: 10px; font-size: .9375rem; line-height: 24px; }

/* ---- Telescopic frame spotlight ---- */
.spot-tele { display: grid; gap: 32px; }
.spot-tele__txt > * + * { margin-top: 16px; }
.spot-tele__txt .checks { margin-top: 24px; }
.spot-tele__txt .btn { margin-top: 28px; }
@media (min-width: 1024px) { .spot-tele { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; } }
.tframe { padding: 12px 12px 20px; border-radius: var(--r-hero); background: #fff; border: 1px solid var(--c-border); box-shadow: var(--sh-1); }
.tframe__svg { width: 100%; height: auto; aspect-ratio: 640 / 380; overflow: hidden; border-radius: var(--r-img); }
.tframe__svg * { vector-effect: non-scaling-stroke; }
.tf-line { fill: none; stroke: var(--c-primary); stroke-width: 1.5; }
.tf-thin { stroke-width: 1; stroke-opacity: .6; }
.tf-profile { fill: none; stroke: var(--c-primary); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.tf-profile--tele { stroke: var(--c-accent); }
.tf-leaf { fill: var(--c-surface-2); stroke: var(--c-primary); stroke-width: 1.5; }
.tf-seal { fill: var(--c-dark); }
.tf-hinge { fill: #fff; stroke: var(--c-primary); stroke-width: 1.5; }
.tf-dim path { fill: none; stroke: var(--c-muted); stroke-width: 1; }
.tf-dim rect { fill: #fff; stroke: var(--c-border-input); stroke-width: 1; }
.tf-dim text, .tf-labels text { font-family: var(--font); font-size: var(--tf-fs, 13px); font-weight: 600; fill: var(--c-text); }
.tf-labels text { fill: var(--c-accent-700); }
.tf-dot { fill: var(--c-accent); }
.tframe__ctrl { display: grid; gap: 6px; padding: 8px 8px 0; }
.tframe__label { font-size: .875rem; font-weight: 600; }
.tframe__range { display: flex; align-items: center; gap: 12px; font-size: var(--fs-xs); color: var(--c-muted); font-weight: 500; }
.tframe__range input {
  --val: 40%;
  flex: 1; min-width: 0; height: 44px; margin: 0; background: transparent;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.tframe__range input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--c-primary) var(--val), var(--c-surface-3) var(--val)); }
.tframe__range input::-moz-range-track { height: 6px; border-radius: 3px; background: var(--c-surface-3); }
.tframe__range input::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--c-primary); }
.tframe__range input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff; border: 2px solid var(--c-primary); box-shadow: var(--sh-2); }
.tframe__range input::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--c-primary); box-shadow: var(--sh-2); }
.tframe__range input:focus-visible { outline: none; }
.tframe__range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--c-ring); }
.tframe__range input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--c-ring); }

/* ---- Finder (dark) ---- */
.finder {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 24px;
  padding: 28px 20px;
  border-radius: var(--r-hero);
  background: var(--c-dark); color: var(--c-dark-text);
}
.finder::after {
  content: ""; position: absolute; z-index: -1; right: -120px; top: -140px; width: 380px; height: 380px; border-radius: 50%;
  border: 1.5px solid rgba(95, 195, 232, .22);
  box-shadow: 0 0 0 40px rgba(95, 195, 232, .04), 0 0 0 80px rgba(95, 195, 232, .03), 0 0 0 120px rgba(95, 195, 232, .02);
}
.finder__title { color: #fff; margin-top: 12px; }
.finder__lead { margin-top: 12px; color: var(--c-dark-muted); max-width: 48ch; }
.finder__opts { display: grid; gap: 8px; }
.finder__opt {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 16px;
  border-radius: var(--r-btn); background: #fff; color: var(--c-text);
  font-weight: 600; text-decoration: none;
  transition: background-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.finder__opt .icon { color: var(--c-primary); }
.finder__opt span:first-of-type { flex: 1; min-width: 0; }
.finder__opt:hover { background: var(--c-surface-2); }
.finder__opt:active { transform: scale(.98); }
.finder__n { font-size: var(--fs-xs); color: var(--c-muted); font-weight: 600; }
.finder__alt { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--c-highlight); font-weight: 600; text-decoration: none; justify-self: start; }
.finder__alt:hover { color: #fff; text-decoration: underline; }
@media (min-width: 768px) { .finder__opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .finder { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 56px; padding: 48px; align-items: center; }
  .finder__alt { grid-column: 2; }
}

/* ---- References chips ---- */
.refs-chips { margin-bottom: 24px; flex-wrap: nowrap; }
@media (min-width: 768px) { .refs-chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }
.pjcard .card__img .pcard__tag { z-index: 1; }
.pjcard__loc { display: inline-flex; align-items: center; gap: 4px; }

/* ---- Specifiers / downloads tiles ---- */
.specif { display: grid; gap: 40px; }
.specif__main > * + * { margin-top: 16px; }
.specif__main .dtiles { margin-top: 28px; }
@media (min-width: 1024px) { .specif { grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: center; } }
.dtiles { display: grid; gap: 8px; }
@media (min-width: 768px) { .dtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1024px) { .dtiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dtile {
  display: flex; align-items: center; gap: 14px;
  min-height: 72px; height: 100%; padding: 12px 14px;
  border-radius: var(--r-btn); border: 1px solid var(--c-border); background: #fff;
  color: var(--c-text); text-decoration: none;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.dtile:hover { border-color: var(--c-primary); box-shadow: var(--sh-2); }
.dtile__ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--r-btn); background: var(--c-surface-2); color: var(--c-primary); }
.dtile__txt { display: grid; flex: 1; min-width: 0; }
.dtile__title { font-weight: 600; font-size: .9375rem; line-height: 20px; }
.dtile__meta { font-size: var(--fs-xs); line-height: 18px; color: var(--c-muted); }
.dtile__dl { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; color: var(--c-primary); transition: background-color var(--dur-1) var(--ease), transform var(--dur-2) var(--ease); }
.dtile:hover .dtile__dl { background: var(--c-primary); color: #fff; transform: translateY(2px); }
.specif__cover {
  display: grid; justify-items: center; gap: 16px; text-align: center;
  padding: 28px 24px; border-radius: var(--r-hero); background: #fff; border: 1px solid var(--c-border);
  color: var(--c-text); text-decoration: none;
}
.specif__book { display: block; width: min(200px, 60%); border-radius: 4px; overflow: hidden; box-shadow: 0 1px 0 var(--c-border), 0 24px 40px -18px rgba(13, 38, 51, .45); transform: perspective(800px) rotateY(-8deg); transition: transform var(--dur-3) var(--ease); }
.specif__cover:hover .specif__book { transform: perspective(800px) rotateY(0deg) translateY(-4px); }
.specif__cap { display: grid; gap: 2px; font-size: var(--fs-xs); color: var(--c-muted); }
.specif__cap strong { font-size: 1rem; line-height: 22px; color: var(--c-text); }

/* ---- Knowledge ---- */
.know { display: grid; gap: 40px; }
@media (min-width: 1024px) { .know { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; } .know--single { grid-template-columns: minmax(0, 1fr); } }
.know__posts { border-top: 1px solid var(--c-border); }
.kpost { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--c-border); }
.kpost__img { display: block; aspect-ratio: 1; border-radius: var(--r-img); overflow: hidden; background: var(--c-surface-2); }
.kpost__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease); }
.kpost:hover .kpost__img img { transform: scale(1.05); }
.kpost__body { display: grid; gap: 4px; align-content: start; }
.kpost__title { font-size: 1.0625rem; line-height: 1.4; }
.kpost__title a { color: var(--c-text); text-decoration: none; }
.kpost__title a::after { content: ""; position: absolute; inset: 0; }
.kpost:hover .kpost__title a { color: var(--c-primary); }
.kpost__title a:focus-visible { outline: none; }
.kpost:focus-within { outline: 2px solid var(--c-focus); outline-offset: 4px; border-radius: 4px; }
.kpost__text { font-size: .9375rem; line-height: 24px; color: var(--c-muted); }
@media (min-width: 768px) { .kpost { grid-template-columns: 112px minmax(0, 1fr); gap: 24px; } .kpost__title { font-size: var(--fs-h3); } }
.know__faq { padding: 24px 20px 8px; border-radius: var(--r-hero); background: var(--c-surface); }
.know__faq-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.know__faq-title .icon { color: var(--c-primary); }
.know__faq .acc { border-top-color: var(--c-surface-3); }
.know__faq .acc__item { border-bottom-color: var(--c-surface-3); }
.know__faq .acc__ic { background: #fff; }
@media (min-width: 768px) { .know__faq { padding: 28px 28px 12px; } }

/* ================================================================ CATALOG */
.cat-head { padding-bottom: 24px; }
.cat-head__for { color: var(--c-muted); font-weight: 500; }
.cat-lead { margin-top: 14px; }
.cat-lead__more { display: none; align-items: center; min-height: 32px; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--c-primary); font-weight: 600; font-size: .9375rem; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767.98px) {
  .js .cat-lead:not(.is-open) .lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  /* shown from the first paint (.js is set in <head>), so the results do not jump down when theme.js runs */
  .js .cat-lead__more { display: inline-flex; }
}
@media (min-width: 768px) { .cat-lead__more { display: none !important; } }
.cat-head__lens { display: none; }
@media (min-width: 1024px) {
  .cat-head { padding-bottom: 40px; }
  .cat-head__lens { display: grid; gap: 8px; justify-items: end; }
}
.cat-head__lens-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--c-border); border-radius: var(--r-btn); background: #fff; }
.seg__opt {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 12px; border-radius: 6px;
  color: var(--c-muted); font-size: .875rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.seg__opt:hover { color: var(--c-primary); background: var(--c-surface); }
.seg__opt.is-active { background: var(--c-surface-2); color: var(--c-primary); font-weight: 600; }
.cat-chips { margin-top: 20px; padding-block: 2px; }
.cat-chips .pill { min-height: 40px; }
.cat-chips .pill.is-dim { opacity: .45; }
@media (min-width: 1024px) { .cat-chips { display: none; } }

/* sticky sub-bar (mobile) */
.subbar {
  position: sticky; top: var(--hd-h); z-index: var(--z-subnav);
  background: #fff; border-block: 1px solid var(--c-border);
  transition: top var(--dur-2) var(--ease);
}
/* header hidden while scrolling down: move the sticky offset (not transform), so the bar only moves once it is stuck */
.is-scrolling-down:not(.nav-open):not(.hd-open):not(.filters-open) .subbar { top: 0; }
.subbar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.subbar__btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; margin-left: -2px;
  border: 1.5px solid var(--c-border-strong); border-radius: var(--r-btn); background: #fff;
  color: var(--c-text); font-weight: 600; font-size: .9375rem;
}
.subbar__btn .icon { color: var(--c-primary); }
.subbar__btn:hover { border-color: var(--c-primary); }
.badge--primary { background: var(--c-primary); }
.subbar__count { font-size: .875rem; color: var(--c-muted); font-weight: 500; white-space: nowrap; }
@media (min-width: 1024px) { .subbar { display: none; } }

.cat-layout { display: grid; gap: 24px; padding-block: 24px var(--sec-sm); }
@media (min-width: 1024px) { .cat-layout { grid-template-columns: 264px minmax(0, 1fr); gap: 40px; padding-top: 40px; align-items: start; } }
@media (min-width: 1200px) { .cat-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 48px; } }

/* filters: sidebar (desktop) / bottom sheet (mobile) */
.filters { min-width: 0; }
.filters__sheet-head, .filters__foot { display: none; }
.filters__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; }
.filters__clear { font-size: .875rem; font-weight: 600; color: var(--c-primary); min-height: 32px; display: inline-flex; align-items: center; }
.fgroup { padding-block: 18px; border-top: 1px solid var(--c-border); margin: 0; border-inline: 0; border-bottom: 0; min-width: 0; }
.fgroup__title { display: block; padding: 0; margin-bottom: 10px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.fsearch { position: relative; }
.fsearch .input { padding-right: 48px; min-height: 44px; font-size: .9375rem; }
.fsearch__go { position: absolute; right: 0; top: 0; color: var(--c-primary); }
.fopts { display: grid; gap: 2px; }
.fopt {
  position: relative; display: flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 8px; margin-inline: -8px;
  border-radius: var(--r-btn); cursor: pointer;
  font-size: .9375rem; line-height: 22px;
}
.fopt:hover { background: var(--c-surface); }
.fopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fopt__box { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--c-border-input); background: #fff; display: grid; place-items: center; transition: border-color var(--dur-1) var(--ease); }
.fopt__box::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c-primary); transform: scale(0); transition: transform var(--dur-1) var(--ease); }
.fopt input:checked + .fopt__box { border-color: var(--c-primary); }
.fopt input:checked + .fopt__box::after { transform: scale(1); }
.fopt input:checked ~ .fopt__txt { font-weight: 600; color: var(--c-primary); }
.fopt input:focus-visible + .fopt__box { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.fopt .icon { color: var(--c-primary); }
.fopt__txt { flex: 1; min-width: 0; }
.fopt__n, .fcat__n { font-size: var(--fs-xs); color: var(--c-muted); font-weight: 500; }
.fopt.is-dim, .fcat.is-dim { opacity: .45; }
.fcats { display: grid; gap: 2px; }
.fcat {
  display: flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 6px 10px; margin-inline: -10px;
  border-radius: var(--r-btn);
  color: var(--c-text); text-decoration: none; font-size: .9375rem; line-height: 20px;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.fcat .icon { color: var(--c-primary); }
.fcat:hover { background: var(--c-surface); color: var(--c-primary); }
.fcat.is-active { background: var(--c-surface-2); color: var(--c-primary-700); font-weight: 600; }
.fcat.is-active .fcat__n { color: var(--c-primary); }
.fcat__txt { flex: 1; min-width: 0; }
.fcats--sub { margin: 2px 0 6px 26px; }
.filters__help { display: flex; gap: 10px; margin-top: 8px; padding: 14px; border-radius: 10px; background: var(--c-surface); font-size: .875rem; line-height: 20px; color: var(--c-muted); }
.filters__help .icon { color: var(--c-primary); margin-top: 2px; }
.filters__help a { font-weight: 600; }
.js .filters__apply { display: none; }
.filters__apply { margin-top: 12px; }
.filters-scrim { display: none; }

@media (min-width: 1024px) {
  .filters { position: sticky; top: 88px; max-height: calc(100vh - 112px); overflow-y: auto; scrollbar-width: thin; padding-right: 6px; margin-right: -6px; }
}
@media (max-width: 1023.98px) {
  .filters {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sheet);
    display: flex; flex-direction: column;
    height: calc(100vh - 24px); height: calc(100dvh - 24px);
    background: #fff; border-radius: var(--r-hero) var(--r-hero) 0 0; box-shadow: var(--sh-3);
    transform: translateY(100%); visibility: hidden;
    transition: transform var(--dur-3) var(--ease), visibility 0s linear var(--dur-3);
  }
  .filters-open .filters { transform: none; visibility: visible; transition: transform var(--dur-3) var(--ease), visibility 0s; }
  .filters-scrim { position: fixed; inset: 0; z-index: calc(var(--z-sheet) - 1); background: rgba(13, 38, 51, .4); }
  .filters-open .filters-scrim { display: block; animation: kl-fade var(--dur-2) var(--ease); }
  .filters__sheet-head { position: relative; display: flex; align-items: center; justify-content: space-between; flex: none; padding: 16px 10px 8px max(var(--gutter), env(safe-area-inset-left)); border-bottom: 1px solid var(--c-border); }
  .filters__handle { position: absolute; left: 50%; top: 6px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--c-surface-3); }
  .filters__top { display: none; }
  .filters__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px max(var(--gutter), env(safe-area-inset-right)) 24px max(var(--gutter), env(safe-area-inset-left)); }
  .filters__body > .fgroup:first-child, .filters__form > .fgroup:first-child { border-top: 0; }
  .filters__foot {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; flex: none;
    padding: 12px max(var(--gutter), env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
    border-top: 1px solid var(--c-border); background: #fff;
  }
  .filters__foot .btn { --btn-h: 52px; padding: 0 12px; }
  .fopt, .fcat { min-height: 48px; }
}

/* results bar */
.results { min-width: 0; position: relative; }
.rbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-bottom: 16px; border-bottom: 1px solid var(--c-border); }
.rbar__count { font-size: .9375rem; color: var(--c-muted); }
.rbar__count strong { color: var(--c-text); font-weight: 600; }
.rbar__page { white-space: nowrap; }
.rbar__chips { gap: 6px; }
.rbar__tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.rbar__sort { display: flex; align-items: center; gap: 8px; }
.rbar__label { font-size: .875rem; color: var(--c-muted); font-weight: 500; white-space: nowrap; }
.select--sm { min-height: 40px; font-size: .9375rem; padding-left: 12px; padding-right: 36px; background-position: right 10px center; width: auto; }
.rbar__view { display: none; gap: 2px; padding: 2px; border: 1px solid var(--c-border); border-radius: var(--r-btn); }
.rbar__view .iconbtn { width: 36px; height: 36px; }
.rbar__view .iconbtn[aria-pressed="true"] { background: var(--c-surface-2); color: var(--c-primary); }
.js .rbar__view { display: flex; }
@media (max-width: 1023.98px) {
  .rbar { padding-bottom: 12px; }
  .rbar__count { display: none; }
  .rbar__tools { margin-left: 0; width: 100%; justify-content: space-between; }
}
.progress { position: relative; height: 2px; margin: -1px 0 24px; overflow: hidden; }
.progress.is-on::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%;
  background: linear-gradient(90deg, transparent, var(--c-primary), transparent);
  animation: kl-progress 1s var(--ease) infinite;
}
@keyframes kl-progress { to { left: 100%; } }
.catalog.is-loading .pgrid { opacity: .5; transition: opacity var(--dur-2) var(--ease); pointer-events: none; }
.results .pgrid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 480px) and (max-width: 767.98px) { .results .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .results .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .results .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.more { display: grid; justify-items: center; gap: 12px; margin-top: 40px; text-align: center; }
.more__txt { font-size: .875rem; color: var(--c-muted); }
.more__bar { width: 200px; height: 4px; border-radius: 2px; background: var(--c-surface-2); overflow: hidden; }
.more__bar span { display: block; height: 100%; background: var(--c-primary); border-radius: 2px; transition: width var(--dur-3) var(--ease); }
.more__btn { margin-top: 4px; min-width: 220px; }
.pager.is-enhanced { margin-top: 24px; }
.skel {
  min-height: 380px; border-radius: var(--r-card); border: 1px solid var(--c-border);
  background: linear-gradient(100deg, var(--c-surface) 30%, var(--c-surface-2) 50%, var(--c-surface) 70%) 0 0 / 300% 100%;
  animation: kl-shimmer 1.2s linear infinite;
}
@keyframes kl-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.cat-about { display: grid; gap: 16px; }

/* ================================================================ PRODUCT */
.pd__crumbs { padding-top: 16px; padding-bottom: 12px; }
.pd-hero { display: grid; gap: 24px; padding-bottom: 40px; }
@media (min-width: 1024px) {
  .pd__crumbs { padding-top: 24px; padding-bottom: 24px; }
  .pd-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; padding-bottom: 64px; }
  .pd-gallery { position: sticky; top: 96px; }
}
.pd-gallery { min-width: 0; }
.pd-main { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-card); border: 1px solid var(--c-border); }
.pd-main__link { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); place-items: center; padding: 24px; cursor: zoom-in; touch-action: pan-y pinch-zoom; }
.pd-main__link img { width: auto; height: auto; max-width: min(100%, var(--nw, 100%)); max-height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: opacity var(--dur-2) var(--ease); }
.pd-main__zoom { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--c-primary); box-shadow: var(--sh-1); transition: transform var(--dur-2) var(--ease); }
.pd-main__link:hover .pd-main__zoom { transform: scale(1.08); }
.pd-main__count { position: absolute; right: 12px; bottom: 12px; padding: 3px 10px; border-radius: var(--r-pill); background: rgba(13, 38, 51, .82); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none; }
.pd-main .well__ph .icon { width: 64px; height: 64px; }
.pd-thumbs { position: relative; display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumb {
  display: block; flex: none; width: 72px; height: 72px; padding: 0;
  border: 1px solid var(--c-border); border-radius: var(--r-img); overflow: hidden; background: var(--c-surface);
  transition: box-shadow var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb:hover { border-color: var(--c-border-strong); }
.pd-thumb.is-active { border-color: var(--c-primary); box-shadow: inset 0 0 0 1px var(--c-primary), 0 0 0 1px var(--c-primary); }
@media (max-width: 767.98px) {
  .pd-main { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; border-inline: 0; }
}
.pd-info { display: grid; gap: 16px; align-content: start; min-width: 0; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-tags .chip:hover { background: var(--c-surface-3); }
.pd-code { margin-top: 4px; font-size: .875rem; }
.pd-code__lbl { color: var(--c-muted); font-weight: 500; margin-right: 4px; }
.pd-title { font-size: clamp(1.75rem, 1.44rem + 1.33vw, 2.5rem); line-height: 1.2; letter-spacing: -.02em; }
.pd-code + .pd-title { margin-top: -8px; } /* code sits right above the name; without a code the title keeps the normal gap */
.pd-tags__lbl { margin: 0 0 8px; font-size: .8125rem; line-height: 20px; font-weight: 600; color: var(--c-muted); }
@media (min-width: 1024px) { .pd-title { font-size: 2.5rem; line-height: 3rem; } }
.pd-sub { font-weight: 600; color: var(--c-primary-700); }
.pd-lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--c-muted); }
.pd-usps { display: grid; gap: 10px; }
.pd-usps li { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; line-height: 24px; }
.pd-usps__ic { display: grid; place-items: center; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--c-surface-2); color: var(--c-primary); }
.pd-usps__ic .icon { stroke-width: 2.6; width: 12px; height: 12px; }
.pd-key { border-top: 1px solid var(--c-border); }
.pd-key > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--c-border); }
.pd-key dt { font-size: .875rem; line-height: 22px; color: var(--c-muted); }
.pd-key dd { font-size: .9375rem; line-height: 22px; font-weight: 500; }
.pd-actions { display: grid; gap: 10px; margin-top: 4px; }
.pd-actions__meta { color: inherit; font-weight: 500; opacity: .8; white-space: nowrap; }
@media (max-width: 479.98px) { .pd-actions .btn--wrap .pd-actions__meta { display: block; } } /* label shrink-wraps, icon stays beside it */
.pd-actions__ask { justify-self: start; font-size: .9375rem; }
.pd-qform { margin: 0; }
.pd-qform .btn { gap: 10px; }
.pd-qform.is-added .btn, .pd-qform.is-in .btn--accent:not(:hover) { background: var(--c-primary); }
.pd-certs { padding-block: 28px; background: var(--c-surface-2); }
.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.badge-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-card); background: rgba(255, 255, 255, .72); min-width: 0; }
.badge-tile__ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: #fff; color: var(--c-primary); box-shadow: var(--sh-1); }
.badge-tile__txt { font-size: .875rem; line-height: 20px; font-weight: 600; min-width: 0; }
@media (min-width: 768px) { .badges { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; } .pd-certs { padding-block: 32px; } }

.ptabs-sentinel { height: 1px; margin-bottom: -1px; }
.ptabs {
  position: sticky; top: var(--hd-h); z-index: var(--z-subnav);
  background: #fff; border-bottom: 1px solid var(--c-border);
  transition: top var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.ptabs.is-stuck { box-shadow: var(--sh-2); }
@media (max-width: 1023.98px) { .is-scrolling-down:not(.nav-open):not(.hd-open):not(.filters-open) .ptabs { top: 0; } }
@media (min-width: 1024px) { .ptabs { top: 64px; } }
.ptabs__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 56px; }
.ptabs__scroll { position: relative; flex: 1; min-width: 0; height: 100%; overflow-x: auto; scrollbar-width: none; }
.ptabs__scroll::-webkit-scrollbar { display: none; }
.ptabs__list { display: flex; height: 100%; width: max-content; }
.ptabs__link {
  display: flex; align-items: center; height: 56px; padding: 0 14px;
  color: var(--c-muted); font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: color var(--dur-1) var(--ease);
}
.ptabs__link:hover { color: var(--c-primary); }
.ptabs__link.is-active { color: var(--c-primary); font-weight: 600; }
.ptabs__link:focus-visible { outline-offset: -4px; }
.ptabs__ind { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--c-primary); border-radius: 2px; opacity: 0; transition: transform var(--dur-2) var(--ease), width var(--dur-2) var(--ease); }
.ptabs__cta { display: none; }
@media (min-width: 1024px) {
  .ptabs__scroll.fade-edges { -webkit-mask-image: none; mask-image: none; }
  .ptabs__list { margin-left: -14px; }
  .ptabs.is-stuck .ptabs__cta { display: flex; align-items: center; gap: 16px; min-width: 0; animation: kl-fade var(--dur-2) var(--ease); }
  .ptabs__name { font-size: .9375rem; line-height: 20px; font-weight: 600; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.pd-sec { padding-block: 48px; }
.pd-sec--surface { background: var(--c-surface); }
@media (min-width: 1024px) { .pd-sec { padding-block: 72px; } }
.pd-over { display: grid; gap: 32px; }
.pd-over__main > * + * { margin-top: 16px; }
.pd-over__main .prose { margin-top: 20px; }
.pd-over__aside { display: grid; gap: 16px; align-content: start; }
.pd-box { padding: 20px; border-radius: var(--r-card); background: var(--c-surface); }
.pd-box__title { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.pd-box__title .icon { color: var(--c-primary); }
@media (min-width: 1024px) { .pd-over { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } .pd-box { padding: 24px; } }
.specs-card { padding: 4px 20px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--c-border); }
.specs__row {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px;
  min-height: 48px; padding: 13px 0;
  border-bottom: 1px solid var(--c-border);
  break-inside: avoid;
}
.specs__row dt { font-size: .875rem; line-height: 22px; color: var(--c-muted); }
.specs__row dd { font-size: .9375rem; line-height: 22px; font-weight: 500; }
.specs__more { display: none; margin: 8px 0 12px; }
.specs__more[aria-expanded="true"] .icon { transform: rotate(180deg); }
@media (max-width: 767.98px) {
  .js .specs:not(.is-expanded) .is-extra { display: none; }
  .js .specs__more { display: flex; }
}
@media (min-width: 768px) {
  .specs-card { padding: 8px 32px; }
  .specs { columns: 2; column-gap: 56px; column-rule: 1px solid var(--c-border); }
  .specs__row:last-child { border-bottom-color: transparent; }
}
@media (min-width: 768px) and (max-width: 1023.98px) { .specs { columns: 1; } }
/* rules sit between rows only: top rules, and the first rule of every column is clipped away */
@media (min-width: 768px) {
  .specs { margin-top: -1px; clip-path: inset(1px 0 0 0); }
  .specs__row, .specs__row:last-child { border-bottom: 0; border-top: 1px solid var(--c-border); }
}
.drawings { display: grid; gap: 12px; }
@media (min-width: 640px) { .drawings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); } }
@media (min-width: 1024px) { .drawings { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.drawing { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--c-border); border-radius: var(--r-card); overflow: hidden; background: #fff; color: var(--c-text); text-decoration: none; transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease); }
.drawing:hover { border-color: var(--c-border-strong); box-shadow: var(--sh-2); }
.drawing__img { aspect-ratio: 4 / 3; padding: 16px; background: #fff; }
.drawings__wide { grid-column: 1 / -1; }
.drawings__wide .drawing__img { aspect-ratio: var(--dr, 3); max-height: 420px; padding: 20px; }
.drawings__wide .drawing__img > img { width: 100%; max-width: min(100%, var(--nw, 100%)); }
.drawing__cap { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--c-border); font-size: .875rem; font-weight: 600; }
.drawing__cap span { flex: 1; min-width: 0; }
.drawing__cap .icon { color: var(--c-primary); }
.drawing__zoom { opacity: .6; }
#crtezi .dtiles { margin-top: 24px; }
.pd-cta .ctaband__actions form { margin: 0; }
@media (max-width: 479.98px) { .pd-cta .ctaband__actions form, .pd-cta .ctaband__actions form .btn { width: 100%; } }

/* family CTA tile */
.fam--cta { background: var(--c-surface); border-style: dashed; border-color: var(--c-border-strong); }
.fam--cta .fam__img { display: grid; place-items: center; background: #fff; color: var(--c-primary); }
.fam--cta .fam__name { color: var(--c-primary); }
@media (min-width: 768px) {
  .fam--cta { justify-content: space-between; }
  .fam--cta .fam__img { aspect-ratio: auto; height: auto; width: 64px; height: 64px; border-radius: 50%; margin: 16px 0 0 12px; box-shadow: var(--sh-1); }
}
.tframe__svg { aspect-ratio: 640 / 290; }
.tframe.is-compact .tframe__svg { aspect-ratio: 490 / 290; }
.tf-lbl { font-family: var(--font); font-size: var(--tf-fs, 13px); font-weight: 500; fill: var(--c-muted); }
.tf-lbl--main { fill: var(--c-primary); font-weight: 600; }
.tf-tag { fill: #fff; stroke: var(--c-border); stroke-width: 1; }

/* ================================================================ SECTORS */
.sectors { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.scard {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--c-border); border-radius: var(--r-hero); background: #fff; overflow: hidden;
  transition: transform var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.scard__img { position: relative; aspect-ratio: 16 / 10; margin: 8px 8px 0; border-radius: var(--r-card); overflow: hidden; background: var(--c-surface-2); }
.scard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease); }
.scard__badge { position: absolute; left: 16px; bottom: 16px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; color: var(--c-primary); box-shadow: var(--sh-2); }
.scard__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px var(--card-pad) 24px; }
.scard__count { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-primary); }
.scard__name { font-size: var(--fs-h2); line-height: 1.2; letter-spacing: -.015em; }
.scard__tag { font-weight: 600; color: var(--c-text); }
.scard__text { color: var(--c-muted); font-size: .9375rem; line-height: 24px; }
.scard__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; color: var(--c-primary); font-weight: 600; }
.scard__more .icon { transition: transform var(--dur-2) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .scard:hover { transform: translateY(-2px); border-color: var(--c-border-strong); box-shadow: var(--sh-2); }
  .scard:hover .scard__img img { transform: scale(1.03); }
  .scard:hover .scard__name { color: var(--c-primary); }
  .scard:hover .scard__more .icon { transform: translateX(4px); }
}
.scard:focus-within { border-color: var(--c-border-strong); }

/* sector + about hero */
.shero { padding-block: 20px 40px; background: linear-gradient(180deg, var(--c-surface) 0%, #fff 100%); }
.shero__grid { display: grid; gap: 28px; margin-top: 4px; }
.shero__txt > * + * { margin-top: 16px; }
.shero__txt .eyebrow .icon { display: none; }
.shero__facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--c-border); }
.shero__facts li { display: grid; }
.shero__facts strong { font-size: 1.75rem; line-height: 1.1; font-weight: 600; font-stretch: 85%; color: var(--c-primary-700); }
.shero__facts span { font-size: .875rem; color: var(--c-muted); }
.shero__cta { display: grid; gap: 10px; margin-top: 28px !important; }
@media (min-width: 480px) { .shero__cta { display: flex; flex-wrap: wrap; } }
.shero__media { border-radius: var(--r-hero); overflow: hidden; aspect-ratio: 4 / 3; background: var(--c-surface-2); }
.shero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
  .shero { padding-block: 24px 64px; }
  .shero__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; }
}
.sjump { display: grid; gap: 2px; }
.sjump a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 8px; margin-inline: -8px; border-radius: var(--r-btn); color: var(--c-text); text-decoration: none; font-weight: 600; font-size: .9375rem; line-height: 20px; }
.sjump a:hover { background: #fff; color: var(--c-primary); }
.sjump .mitem__ic { width: 36px; height: 36px; background: #fff; }
.sjump .mitem__ic .icon { width: 20px; height: 20px; }
.sjump__txt { flex: 1; min-width: 0; }
.sjump__n { font-size: var(--fs-xs); color: var(--c-muted); font-weight: 500; }
.sjump--lg a { min-height: 60px; border-bottom: 1px solid var(--c-border); border-radius: 0; margin: 0; padding-inline: 0; }
.sjump--lg a:hover { background: transparent; }
.sjump--lg .mitem__ic { background: var(--c-surface-2); }
.sgroup { scroll-margin-top: 20px; }
.sgroup + .sgroup { margin-top: 48px; }
.sgroup__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
@media (max-width: 767.98px) {
  .sgroup__head { flex-direction: column; align-items: flex-start; gap: 0; }
  .sgroup__head .tlink { margin-left: 52px; }
}
.sgroup__title { display: flex; align-items: center; gap: 12px; font-size: var(--fs-h3); line-height: 1.3; }
.sgroup__title .mitem__ic { background: #fff; }
.sgroup__n { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 8px; border-radius: var(--r-pill); background: var(--c-surface-2); color: var(--c-primary-700); font-size: 12px; font-weight: 600; }
.gtrack {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 80%); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
}
.gtrack::-webkit-scrollbar { display: none; }
.gtrack > * { scroll-snap-align: start; }
@media (min-width: 768px) {
  .gtrack { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); overflow: visible; margin: 0; padding: 0; }
}
@media (min-width: 1024px) { .gtrack { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .gtrack { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.osectors { display: grid; gap: 8px; }
@media (min-width: 768px) { .osectors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); } .osectors--stack { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.osector {
  display: flex; align-items: center; gap: 16px; height: 100%;
  padding: 8px 16px 8px 8px; border: 1px solid var(--c-border); border-radius: var(--r-card); background: #fff;
  color: var(--c-text); text-decoration: none;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.osector:hover { border-color: var(--c-border-strong); box-shadow: var(--sh-2); }
.osector:hover .osector__name { color: var(--c-primary); }
.osector > .icon { color: var(--c-primary); }
.osector__img { flex: none; width: 72px; height: 72px; border-radius: var(--r-img); overflow: hidden; background: var(--c-surface-2); }
.osector__img img { width: 100%; height: 100%; object-fit: cover; }
.osector__txt { display: grid; flex: 1; min-width: 0; }
.osector__name { font-weight: 600; line-height: 22px; }
.osector__meta { font-size: var(--fs-xs); color: var(--c-muted); line-height: 18px; }

/* ================================================================ LISTS (refs, posts) */
.filterbar { display: flex; gap: 8px; margin-bottom: 20px; padding-block: 2px; }
@media (min-width: 768px) { .filterbar { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; -webkit-mask-image: none; mask-image: none; } }
.listcount { margin-bottom: 20px; font-size: .9375rem; color: var(--c-muted); }
.listcount strong { color: var(--c-text); }
.phead__stat { display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--c-border); color: var(--c-muted); }
.phead__stat strong { font-size: 1.5rem; color: var(--c-primary-700); font-stretch: 85%; }

.plead { display: grid; gap: 20px; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--c-border); }
.plead__img { display: block; border-radius: var(--r-hero); overflow: hidden; aspect-ratio: 16 / 10; background: var(--c-surface-2); }
.plead__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease); }
.plead:hover .plead__img img { transform: scale(1.02); }
.plead__body { display: grid; gap: 14px; align-content: center; justify-items: start; }
.plead__body .card__meta .chip { min-height: 24px; padding: 2px 10px; }
.plead__title a { color: var(--c-text); text-decoration: none; }
.plead__title a:hover { color: var(--c-primary); }
@media (min-width: 1024px) { .plead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; } }

/* project */
.pj-hero { margin: 0 0 8px; border-radius: var(--r-hero); overflow: hidden; background: var(--c-surface-2); }
.pj-hero a { position: relative; display: block; }
.pj-hero img { width: 100%; height: auto; }
.pj-hero--contain a { display: grid; place-items: center; padding: 24px; aspect-ratio: 16 / 9; }
.pj-hero--contain img { width: auto; max-width: min(100%, var(--nw, 100%)); max-height: 100%; }
@media (max-width: 767.98px) { .pj-hero { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; } }
.pj-facts { border-top: 0; }
.pj-facts > div:last-child { border-bottom: 0; }
.pj-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 1024px) { .pj-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.pj-gallery a { display: block; border-radius: var(--r-img); overflow: hidden; }
.pj-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease); }
.pj-gallery a:hover img { transform: scale(1.04); }

/* article (post, page) */
.article__head > * + * { margin-top: 14px; }
.article__meta { gap: 6px 12px; }
.article__meta time, .article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.article__media-wrap { max-width: calc(1040px + 2 * var(--gutter)); }
.article__media { margin: 0; border-radius: var(--r-hero); overflow: hidden; background: var(--c-surface-2); }
.article__media img { width: 100%; height: auto; }
.article__media--contain { display: grid; place-items: center; padding: 24px; background: var(--c-surface); border: 1px solid var(--c-border); }
.article__media--contain img { width: auto; max-width: min(100%, var(--nw, 100%)); max-height: 520px; border-radius: var(--r-img); }
.page__media { margin-bottom: 8px; }
.article__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 40px var(--sec-sm); }
.article__body { max-width: 72ch; font-size: 1.0625rem; line-height: 1.75; }
.article__aside { display: grid; gap: 12px; align-content: start; }
@media (min-width: 1024px) {
  .article__grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; padding-top: 56px; }
  .article__aside { position: sticky; top: 96px; }
}
.pnav { display: grid; gap: 12px; padding-bottom: var(--sec-sm); }
@media (min-width: 768px) { .pnav { grid-template-columns: 1fr 1fr; } }
.pnav__link { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--c-border); border-radius: var(--r-card); color: var(--c-text); text-decoration: none; transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease); }
.pnav__link:hover { border-color: var(--c-border-strong); box-shadow: var(--sh-2); }
.pnav__link--next { text-align: right; justify-items: end; }
.pnav__dir { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-primary); }
.pnav__title { font-weight: 600; line-height: 1.4; }

/* downloads */
.dgroup { scroll-margin-top: 100px; }
.dgroup + .dgroup { margin-top: 48px; }
.dgroup__title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.dgroup__title > .icon { color: var(--c-primary); }
.docs { display: grid; gap: 12px; }
@media (min-width: 1024px) { .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); } }
.doc {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px 16px; align-items: start;
  padding: 14px; border: 1px solid var(--c-border); border-radius: var(--r-card); background: #fff;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.doc:hover { border-color: var(--c-border-strong); box-shadow: var(--sh-2); }
.doc__cover { grid-row: span 2; width: 72px; aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; background: var(--c-surface-2); box-shadow: 0 1px 0 var(--c-border), 0 8px 16px -10px rgba(13, 38, 51, .5); }
.doc__cover img { width: 100%; height: 100%; object-fit: cover; }
.doc__ext { display: grid; place-items: center; align-content: center; gap: 4px; height: 100%; color: var(--c-primary); font-size: 11px; font-weight: 700; }
.doc__body { display: grid; gap: 4px; min-width: 0; }
.doc__title { font-size: 1.0625rem; line-height: 1.35; }
.doc__desc { font-size: .875rem; line-height: 20px; color: var(--c-muted); }
.doc__meta { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--c-muted); }
.doc__badge { padding: 1px 6px; border-radius: 4px; background: var(--c-primary); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.doc__btn { justify-self: start; }
@media (min-width: 480px) {
  .doc { grid-template-columns: 80px minmax(0, 1fr) auto; align-items: center; padding: 16px 20px 16px 16px; }
  .doc__cover { grid-row: auto; width: 80px; }
  .doc__btn { justify-self: end; }
}

/* legal */
.legal .phead { padding-bottom: 24px; }
.legal__date { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: var(--fs-xs); color: var(--c-muted); }
.legal__body { padding-bottom: var(--sec); }
.legal__body .prose { max-width: none; }
.legal__toc { margin-bottom: 32px; padding: 20px 24px; border-radius: var(--r-card); background: var(--c-surface); }
.legal__toc ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.legal__toc a { font-weight: 500; }
.legal__toc-title { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.legal__more { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--c-border); }
.legal__more ul { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 8px; }

/* about */
.maker { display: flex; gap: 16px; align-items: flex-start; }
.maker__ic { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px; background: #fff; color: var(--c-primary); box-shadow: var(--sh-1); }
.maker__lbl { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.maker__name { font-size: 1.375rem; font-weight: 700; letter-spacing: .02em; color: var(--c-primary-700); }
.maker .tlink { min-height: 36px; font-size: .9375rem; }
.usps--cards { gap: var(--gap); }
@media (min-width: 1024px) { .usps--cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.usps--cards .usp { flex-direction: column; gap: 16px; padding: 24px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--c-border); }
.about-scope { display: grid; gap: 40px; }
@media (min-width: 1024px) { .about-scope { grid-template-columns: 1fr 1fr; gap: 64px; } }
.about-scope__t { margin-bottom: 16px; }

/* ================================================================ FORMS: contact + quote */
.contact { display: grid; gap: 32px; }
@media (min-width: 1024px) { .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: start; } .contact__aside { position: sticky; top: 96px; } }
.contact__main { display: grid; gap: 20px; min-width: 0; }
.contact__aside { display: grid; gap: 16px; min-width: 0; }
.fcard { padding: 24px 20px; border: 1px solid var(--c-border); border-radius: var(--r-hero); background: #fff; box-shadow: var(--sh-1); scroll-margin-top: 90px; }
@media (min-width: 768px) { .fcard { padding: 36px 40px; } }
.fcard__head { display: grid; gap: 6px; }
.fcard__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 8px; }
.fcard__foot .field__hint { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 479.98px) { .fcard__foot .btn { width: 100%; } }
.req { color: var(--c-accent-700); }
.errsum { padding: 16px 18px; border-radius: var(--r-card); background: var(--c-error-bg); border: 1px solid #f0c4c6; color: var(--c-accent-700); }
.errsum:focus { outline: 2px solid var(--c-accent-700); outline-offset: 2px; }
.errsum__title { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.errsum ul { margin: 8px 0 0; padding-left: 28px; display: grid; gap: 2px; font-size: .9375rem; list-style: disc; }
.errsum a { color: var(--c-accent-700); }
.check-wrap .field__err { margin-top: -4px; padding-left: 34px; }
.fprod { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-card); background: var(--c-surface); }
.fprod__img { flex: none; width: 56px; height: 56px; border-radius: var(--r-img); padding: 4px; background: #fff; }
.fprod__txt { display: grid; min-width: 0; line-height: 20px; }
.fprod__lbl { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.fprod__txt a { font-weight: 600; color: var(--c-text); }
.ccard { padding: 24px; border-radius: var(--r-hero); background: var(--c-surface); }
.ccard__t { margin-bottom: 8px; }
.ccard__list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--c-border); font-size: .9375rem; line-height: 22px; }
.ccard__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.ccard__ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: #fff; color: var(--c-primary); }
.ccard__lbl { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.ccard__list a { font-weight: 600; color: var(--c-text); text-decoration: none; display: inline-flex; min-height: 28px; align-items: center; }
.ccard__list a:hover { color: var(--c-primary); text-decoration: underline; }
.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-hero); overflow: hidden; background: var(--c-surface-2); }
.map iframe { width: 100%; height: 100%; border: 0; }
.map__ph { display: grid; place-items: center; align-content: center; gap: 12px; height: 100%; padding: 24px; text-align: center; color: var(--c-muted); font-size: .875rem; }
.map__ph > .icon { color: var(--c-primary); }
.maplink, .qcta {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-card);
  border: 1px solid var(--c-border); background: #fff; color: var(--c-text); text-decoration: none;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.maplink:hover, .qcta:hover { border-color: var(--c-border-strong); box-shadow: var(--sh-2); }
.maplink > .icon, .qcta > .icon { color: var(--c-primary); flex: none; }
.maplink__art, .qcta__ic { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--c-surface-2); color: var(--c-primary); }
.maplink__art .icon { width: 26px; height: 26px; }
.maplink__txt, .qcta > span:nth-child(2) { display: grid; flex: 1; min-width: 0; font-size: .875rem; line-height: 20px; color: var(--c-muted); }
.maplink__txt strong, .qcta strong { color: var(--c-text); font-size: .9375rem; }
.done { display: grid; justify-items: start; gap: 12px; padding: 24px; border-radius: var(--r-hero); background: var(--c-success-bg); border: 1px solid #b7dcc7; }
.done__ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--c-success); color: #fff; }
.done__ic .icon { stroke-width: 2.4; }
.done__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.done--big { padding: 32px 24px; background: #fff; border-color: var(--c-border); box-shadow: var(--sh-1); }
.done--big .done__ic { width: 72px; height: 72px; }
.done__num { font-size: 1.125rem; }
.done__num strong { color: var(--c-primary-700); }
@media (min-width: 768px) { .done--big { padding: 48px; } }
.qdone { display: grid; gap: 24px; }
@media (min-width: 1024px) { .qdone { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; } }
.timeline { display: grid; gap: 0; width: 100%; margin: 12px 0 8px; }
.timeline li { position: relative; display: flex; gap: 16px; padding-bottom: 20px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--c-surface-3); }
.timeline__n { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--c-surface-2); color: var(--c-primary); font-weight: 600; font-size: .875rem; }
.timeline strong { display: block; line-height: 32px; }
.timeline p { color: var(--c-muted); font-size: .9375rem; line-height: 24px; }

/* quote */
.qhead .phead__grid { align-items: end; }
.qhead { padding-bottom: clamp(20px, 1rem + 1.5vw, 36px); }
.qhead + .sec { padding-top: 8px; }
.stepper { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 8px; --p: 0%; }
.stepper::before, .stepper::after { content: ""; position: absolute; left: 16.66%; right: 16.66%; top: 17px; height: 2px; border-radius: 2px; background: var(--c-surface-3); }
.stepper::after { right: auto; width: calc(66.67% * var(--p) / 100%); background: var(--c-primary); transition: width var(--dur-3) var(--ease); }
.stepper__item { position: relative; z-index: 1; display: flex; justify-content: center; }
.stepper__btn { display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--c-muted); font-size: .8125rem; line-height: 18px; font-weight: 600; text-align: center; cursor: default; }
.js .stepper__btn { cursor: pointer; }
.stepper__num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--c-surface-3); color: var(--c-muted); font-variant-numeric: tabular-nums; transition: background-color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }
.stepper__item.is-current .stepper__num { border-color: var(--c-primary); background: var(--c-primary); color: #fff; box-shadow: 0 0 0 4px var(--c-ring); }
.stepper__item.is-current .stepper__btn { color: var(--c-text); }
.stepper__item.is-done .stepper__num { border-color: var(--c-primary); color: var(--c-primary); font-size: 0; }
.stepper__item.is-done .stepper__num::before { content: "\2713"; font-size: 15px; }
html:not(.js) .stepper { display: none; }
.quote { display: grid; gap: 32px; }
@media (min-width: 1024px) { .quote { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; } .qsum { position: sticky; top: 96px; } }
.qform { display: grid; gap: 24px; min-width: 0; scroll-margin-top: 90px; }
.qstep { min-width: 0; margin: 0; padding: 24px 20px; border: 1px solid var(--c-border); border-radius: var(--r-hero); background: #fff; box-shadow: var(--sh-1); }
@media (min-width: 768px) { .qstep { padding: 32px 36px; } }
.qform.is-wizard .qstep.is-current { animation: kl-rise var(--dur-3) var(--ease); }
.qstep__head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.qstep__head .h3:focus { outline: none; }
.qstep__num { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--c-surface-2); color: var(--c-primary); font-weight: 600; font-size: .875rem; }
.qstep__meta { margin-left: auto; font-size: .875rem; color: var(--c-muted); font-weight: 500; }
.qlines { border-top: 1px solid var(--c-border); }
.qline { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px 16px; padding: 16px 0; border-bottom: 1px solid var(--c-border); }
.qline__img { width: 64px; height: 64px; border-radius: var(--r-img); padding: 6px; color: var(--c-border-strong); }
.qline__body { display: grid; gap: 2px; min-width: 0; align-content: start; }
.qline__name { font-size: 1rem; line-height: 1.4; }
.qline__name a { color: var(--c-text); text-decoration: none; }
.qline__name a:hover { color: var(--c-primary); text-decoration: underline; }
.qline__cat { font-size: var(--fs-xs); color: var(--c-muted); }
.qline__notebtn { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: 2px; padding: 0; border: 0; background: none; color: var(--c-primary); font-size: .875rem; font-weight: 600; text-align: left; }
.qline__notebtn:hover { text-decoration: underline; }
.qline__note { margin-top: 4px; }
.textarea--sm { min-height: 68px; padding: 8px 12px; font-size: .9375rem; }
.qline__ctrl { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (min-width: 640px) {
  .qline { grid-template-columns: 80px minmax(0, 1fr) auto; align-items: start; }
  .qline__img { width: 80px; height: 80px; }
  .qline__ctrl { grid-column: auto; flex-direction: column; align-items: flex-end; }
}
.qty { display: inline-flex; align-items: center; border: 1px solid var(--c-border-input); border-radius: var(--r-btn); background: #fff; overflow: hidden; }
.qty__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--c-primary); }
.qty__btn:hover { background: var(--c-surface); }
.qty__input { width: 56px; height: 44px; padding: 0; border: 0; border-inline: 1px solid var(--c-border); text-align: center; font-size: 1rem; font-weight: 600; background: #fff; -moz-appearance: textfield; appearance: textfield; }
.qty__input::-webkit-inner-spin-button, .qty__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--c-primary); }
.qline__rm { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 6px; border: 0; border-radius: var(--r-btn); background: none; color: var(--c-muted); font-size: .875rem; font-weight: 500; }
.qline__rm:hover { color: var(--c-accent-700); background: var(--c-error-bg); }
.qstep__add { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.qsaved { font-size: var(--fs-xs); color: var(--c-muted); }
.qsaved.is-ok { color: var(--c-success); font-weight: 600; }
.qnav { display: none; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--c-border); }
.js .qnav { display: flex; }
html:not(.js) .qstep:last-child .qnav { display: flex; }
html:not(.js) .qstep:last-child .qnav [data-kl-prev-step] { visibility: hidden; }
@media (max-width: 479.98px) { .qnav .btn--accent, .qnav .btn--primary { flex: 1; } .qnav .btn { padding: 0 14px; } }
.empty--left { justify-items: start; text-align: left; padding: 24px; }
.empty--left .empty__actions { justify-content: flex-start; }
.qsug__t { margin: 24px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.qsug { display: grid; gap: 8px; }
@media (min-width: 768px) { .qsug { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qsug__item { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--c-border); border-radius: var(--r-card); }
.qsug__img { flex: none; width: 56px; height: 56px; border-radius: var(--r-img); padding: 4px; }
.qsug__name { flex: 1; min-width: 0; align-self: stretch; display: flex; align-items: center; min-height: 44px; font-size: .875rem; line-height: 20px; font-weight: 600; color: var(--c-text); text-decoration: none; }
.qsug__name:hover { color: var(--c-primary); text-decoration: underline; }
.qsum { display: grid; gap: 16px; align-content: start; min-width: 0; }
.qsum__card { padding: 24px; border-radius: var(--r-card); background: var(--c-surface); }
.qsum__t { margin-bottom: 8px; }
.qsum__list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--c-border); font-size: .9375rem; }
.qsum__list dt { color: var(--c-muted); }
.qsum__list dd { font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.qsum__notes { display: grid; gap: 8px; margin-top: 16px; font-size: .875rem; color: var(--c-muted); }
.qsum__notes li { display: flex; align-items: center; gap: 8px; }
.qsum__notes .icon { color: var(--c-success); }

/* ================================================================ SEARCH */
.shead { padding-bottom: 32px; }
.shead__t { margin: 14px 0 20px; }
.sform { position: relative; display: flex; align-items: center; gap: 8px; max-width: 760px; }
.sform__ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--c-muted); pointer-events: none; }
.sform__input { flex: 1; min-width: 0; height: 56px; padding: 0 16px 0 48px; border: 1px solid var(--c-border-input); border-radius: var(--r-input); background: #fff; font-size: 1.0625rem; -webkit-appearance: none; appearance: none; }
.sform__input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-ring); }
.sform__btn { --btn-h: 56px; }
@media (max-width: 479.98px) { .sform__btn { padding: 0 16px; } }
.sform--compact .sform__input { height: 52px; }
.sform--compact .sform__btn { --btn-h: 52px; }
.shead__count { margin-top: 16px; color: var(--c-muted); font-size: .9375rem; }
.shead__count strong { color: var(--c-text); }
.sstart { display: grid; gap: 14px; }
.sstart--after { margin-top: 32px; }
.sstart__t { color: var(--c-muted); }
.sres { display: grid; gap: 40px; }
@media (min-width: 1200px) { .sres { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; } .sres__aside { position: sticky; top: 96px; } }
.sres__t { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.shead__jump { color: inherit; text-underline-offset: 3px; }
.sres__more { margin-top: 16px; }
.sres__aside { scroll-margin-top: 80px; }
/* phones: show the first 6 products, then the other results are only a short scroll away */
@media (max-width: 767.98px) {
  .pgrid.is-capped > :nth-child(n+7) { display: none; }
  .pgrid.is-capped ~ .pager { display: none; }
}
@media (min-width: 768px) { .sres__more { display: none !important; } }
.sres .pgrid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 480px) and (max-width: 767.98px) { .sres .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .sres .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sres .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sother { display: grid; gap: 8px; }
.sother__item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--c-border); border-radius: var(--r-card); color: var(--c-text); text-decoration: none; transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease); }
.sother__item:hover { border-color: var(--c-border-strong); box-shadow: var(--sh-2); }
.sother__item:hover .sother__title { color: var(--c-primary); }
.sother__txt { display: grid; gap: 2px; min-width: 0; }
.sother__type { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary); }
.sother__title { font-weight: 600; line-height: 22px; }
.sother__ex { font-size: .875rem; line-height: 20px; color: var(--c-muted); }

/* ================================================================ ERROR */
.errp { padding-block: 40px var(--sec); background: linear-gradient(180deg, var(--c-surface) 0%, #fff 100%); }
.errp__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.errp__txt > * + * { margin-top: 16px; }
.errp__txt .sform { margin-top: 28px; }
.errp__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px !important; }
.errp__debug { white-space: pre-wrap; padding: 16px; border-radius: var(--r-card); background: var(--c-surface-2); font-size: .8125rem; overflow-x: auto; }
.errp__art { max-width: 420px; justify-self: center; width: 100%; }
.errp__svg { width: 100%; height: auto; }
.errp__svg * { vector-effect: non-scaling-stroke; }
.errp__svg .sc-line, .errp__svg .sc-leaf { --sc-stroke: var(--c-primary); --sc-fill: #fff; }
.errp__void { fill: #dbe9f1; }
.errp__plate { fill: #fff; stroke: var(--c-primary); stroke-width: 1.5; }
.errp__code { font-family: var(--font); font-size: 22px; font-weight: 600; font-stretch: 85%; fill: var(--c-primary-700); letter-spacing: -.02em; }
@media (min-width: 1024px) { .errp { padding-top: 64px; } .errp__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; } }
.catalog + .sec--cta { padding-top: 0; }
.pj-links { display: grid; margin-top: -6px; }
.pj-links li + li { border-top: 1px solid var(--c-border); }
.pj-links .tlink { width: 100%; justify-content: space-between; font-size: .9375rem; }
@media (max-width: 1023.98px) { .errp__art { max-width: 280px; } }
/* whole caption is the link target */
a.hero__cap-title::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }
a.hero__cap-title:focus-visible { outline: none; }
a.hero__cap-title:focus-visible::after { outline: 2px solid var(--c-focus); outline-offset: 2px; }

/* ---- Certification band (home) ---- */
.certs-head { display: grid; gap: 8px; margin-bottom: 24px; }
.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.cert {
  display: flex; align-items: center; gap: 14px;
  min-height: 72px; padding: 14px 16px;
  border-radius: var(--r-card); background: #fff;
  box-shadow: var(--sh-1);
}
.cert__ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--c-surface); color: var(--c-primary); }
.cert__txt { font-size: .9375rem; line-height: 22px; font-weight: 600; min-width: 0; }
.certs-sec + .stats-sec { padding-top: 8px; }
.certs-sec + .stats-sec .stats { border-top: 1px solid rgba(10, 92, 122, .14); padding-top: 32px; }
@media (min-width: 1024px) { .certs-head { margin-bottom: 32px; } .certs { gap: 16px; } }
@media (max-width: 1023.98px) { .article__aside { display: none; } }
/* odd last sector card spans the full row (horizontal layout) */
@media (min-width: 768px) {
  .sectors > .scard:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .sectors > .scard:last-child:nth-child(odd) .scard__img { aspect-ratio: auto; min-height: 280px; margin: 8px; }
  .sectors > .scard:last-child:nth-child(odd) .scard__body { justify-content: center; padding: 32px 32px 32px 24px; }
}
/* "Cijeli katalog" tile fills the last row */
@media (min-width: 1024px) and (max-width: 1199.98px) { .fams .fam--cta { grid-column: span var(--s3, 1); } }
@media (min-width: 1200px) { .fams .fam--cta { grid-column: span var(--s4, 1); } }
@media (min-width: 1024px) {
  .fams .fam--cta { flex-direction: row; align-items: center; gap: 8px; min-height: 120px; }
  .fams .fam--cta .fam__img { margin: 0 0 0 16px; }
  .fams .fam--cta .fam__body { justify-content: center; padding: 16px 20px; }
}
@media (min-width: 768px) and (max-width: 1023.98px) { .fams .fam--cta { grid-column: span var(--s2, 1); } }
.fam__go, .fam__art { display: none; }
@media (min-width: 768px) {
  .fam--cta .fam__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--c-primary); font-weight: 600; font-size: .9375rem; }
  .fam--cta .fam__go .icon { transition: transform var(--dur-2) var(--ease); }
  .fam--cta:hover .fam__go .icon { transform: translateX(4px); }
}
/* wide CTA tile: banner with line drawing */
@media (min-width: 768px) and (max-width: 1023.98px) { .fams .fam--cta.w2 .fam__art { display: grid; } }
@media (min-width: 1024px) and (max-width: 1199.98px) { .fams .fam--cta.w3 .fam__art { display: grid; } }
@media (min-width: 1200px) { .fams .fam--cta.w4 .fam__art { display: grid; } }
.fams .fam--cta .fam__art {
  place-items: center; align-self: stretch; flex: 0 0 42%; margin: 0 0 0 auto;
  border-radius: var(--r-img);
  background-color: #fff;
  background-image: linear-gradient(rgba(10, 92, 122, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 92, 122, .06) 1px, transparent 1px);
  background-size: 16px 16px; background-position: center;
}
.fams .fam--cta .fam__art .well__ph--draw { max-width: 260px; }
.fams .fam--cta .fam__name { font-size: var(--fs-h2); line-height: 1.2; }
.fams .fam--cta .fam__text { -webkit-line-clamp: 3; max-width: 44ch; }
@media (min-width: 768px) and (max-width: 1023.98px) {
  .fams .fam--cta.w2 { flex-direction: row; align-items: center; gap: 8px; }
  .fams .fam--cta.w2 .fam__img { margin: 0 0 0 16px; }
  .fams .fam--cta.w2 .fam__body { justify-content: center; padding: 16px 20px; }
}
.fams .fam--cta .fam__art { padding: 12px; }
.fams .fam--cta .fam__index { display: none; place-items: initial; align-content: center; padding: 20px 24px; background-image: none; border: 1px solid var(--c-border); }
@media (min-width: 768px) and (max-width: 1023.98px) { .fams .fam--cta.w2 .fam__index { display: grid; } }
@media (min-width: 1024px) and (max-width: 1199.98px) { .fams .fam--cta.w3 .fam__index { display: grid; } }
@media (min-width: 1200px) { .fams .fam--cta.w4 .fam__index { display: grid; } }
/* single-width tile on tablets: the index fills the space under the text */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .fams .fam--cta:not(.w2) .fam__index { display: grid; align-content: start; flex: none; margin: auto 12px 12px; padding: 16px 18px; }
  .fams .fam--cta:not(.w2) .fam__body { flex: none; }
}
.fam__index-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1.5px solid var(--c-primary); font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.fam__index-row { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--c-border); font-size: .875rem; line-height: 20px; }
.fam__index-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--c-text); }
.fam__index-dots { flex: 1 1 12px; min-width: 12px; border-bottom: 1px dotted var(--c-border-strong); transform: translateY(-4px); }
.fam__index-n { flex: none; color: var(--c-primary-700); font-weight: 600; }
.fam__index-more { padding-top: 8px; font-size: var(--fs-xs); line-height: 18px; color: var(--c-muted); }

/* ================================================================ E-MAIL INSTEAD OF FORMS
   CMS → Postavke → Upiti i e-pošta: "Prikaži kontakt obrazac" / "Prikaži obrazac za upit za ponudu" isključeno.
   /kontakt: kartica "Pišite nam" (.mcard) umjesto obrasca · /upit: korak 1 (popis) + panel "Pošaljite popis e-poštom"
   (.qmail) umjesto koraka projekt/kontakt · zajednički gumb za kopiranje (.kcopy, [data-kl-copy] u theme.js). */

/* ---- copy buttons: clipboard → check for a moment after copying ---- */
.kcopy__b { display: none; }
[data-kl-copy].is-copied .kcopy__a { display: none; }
[data-kl-copy].is-copied .kcopy__b { display: inline-block; }
.btn.kcopy.is-copied { border-color: var(--c-success); color: var(--c-success); background: var(--c-success-bg); }

/* ---- /kontakt: "Pišite nam" card ---- */
.mcard { display: grid; gap: 20px; }
.mcard__head { display: grid; gap: 8px; }
.mcard__head .muted { max-width: 60ch; }
.mtopics legend { margin-bottom: 10px; }
html:not(.js) .mtopics { display: none; }
.mbtn {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ic lbl go" "ic addr go";
  align-items: center; column-gap: 16px; row-gap: 2px;
  padding: 18px 22px 18px 18px; border-radius: var(--r-card);
  background: var(--c-primary); color: #fff; text-decoration: none; box-shadow: var(--sh-2);
  transition: background-color var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease), transform var(--dur-1) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.mbtn:hover { background: var(--c-primary-700); color: #fff; text-decoration: none; box-shadow: var(--sh-3); }
.mbtn:active { transform: scale(.99); }
.mbtn:focus-visible { outline: 3px solid var(--c-highlight); outline-offset: 3px; }
.mbtn__ic { grid-area: ic; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.mbtn__lbl { grid-area: lbl; align-self: end; font-size: var(--fs-eyebrow); line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-surface-3); }
.mbtn__addr { grid-area: addr; align-self: start; min-width: 0; font-size: clamp(1.125rem, 1.02rem + .45vw, 1.5rem); line-height: 1.25; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.mbtn__go { grid-area: go; opacity: .8; transition: transform var(--dur-2) var(--ease); }
@media (hover: hover) and (pointer: fine) { .mbtn:hover .mbtn__go { transform: translate(2px, -2px); opacity: 1; } }
@media (max-width: 479.98px) {
  .mbtn { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ic lbl" "addr addr"; row-gap: 10px; padding: 16px; }
  .mbtn__ic { width: 44px; height: 44px; border-radius: 12px; }
  .mbtn__lbl { align-self: center; }
  .mbtn__go { display: none; }
}
.mcard__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: -6px; }
.mcard__subj { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; font-size: .9375rem; line-height: 22px; font-weight: 600; overflow-wrap: anywhere; }
.mcard__k { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.mcard__hint { margin-top: -10px; padding-bottom: 18px; border-bottom: 1px solid var(--c-border); }
.mcard__alt { display: flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--c-muted); }
.mcard__alt .icon { flex: none; color: var(--c-primary); }
.mcard__alt a { font-weight: 600; color: var(--c-text); overflow-wrap: anywhere; }
.mcard__alt a:hover { color: var(--c-primary); }
.mcard__meta .kcopy { --btn-h: 44px; } /* dodirna meta ≥ 44 px */
@media (max-width: 479.98px) { .mcard__meta .kcopy { width: 100%; } }
.mtips .ccard__t { margin-bottom: 16px; }
.mtips__att { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--c-border); font-size: .875rem; line-height: 20px; color: var(--c-muted); }
.mtips__att .icon { flex: none; margin-top: 1px; color: var(--c-primary); }
/* phone / hours / address: divided list in a narrow card, three tiles when the card is wide enough */
.mcard { container: mcard / inline-size; }
.minfo { display: grid; border-top: 1px solid var(--c-border); }
.minfo li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--c-border); font-size: .9375rem; line-height: 22px; min-width: 0; }
.minfo li:last-child { border-bottom: 0; }
.minfo li > span:last-child { display: grid; min-width: 0; }
.minfo .ccard__ic { background: var(--c-surface-2); }
.minfo a { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--c-text); text-decoration: none; }
.minfo a:hover { color: var(--c-primary); text-decoration: underline; }
.minfo a:first-of-type { margin-top: -10px; } /* 44 px dodirna meta bez dodatnog razmaka ispod oznake */
.minfo a:last-of-type { margin-bottom: -10px; }
@container mcard (min-width: 580px) {
  .minfo { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; border-top: 0; }
  .minfo li, .minfo li:last-child { flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--c-border); border-radius: var(--r-card); }
}
.mcard__co { padding-top: 16px; border-top: 1px solid var(--c-border); font-size: var(--fs-xs); line-height: 18px; color: var(--c-muted); }

/* ---- /upit: list is sent by e-mail ---- */
.qmail { scroll-margin-top: 96px; }
.qmail__lead { max-width: 62ch; margin: -6px 0 20px; color: var(--c-muted); }
.qmail__mail { border: 1px solid var(--c-border); border-radius: var(--r-card); overflow: hidden; background: #fff; }
.qmail__hdr { padding: 2px 16px; background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.qmail__hdr > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 44px; padding: 4px 0; }
.qmail__hdr > div + div { border-top: 1px solid var(--c-border); }
.qmail__hdr dt { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.qmail__hdr dd { min-width: 0; font-size: .9375rem; line-height: 22px; font-weight: 600; overflow-wrap: anywhere; }
.qmail__to { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qmail__cp { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: -4px -10px -4px 0; padding: 0; border: 0; border-radius: var(--r-btn); background: transparent; color: var(--c-primary); }
.qmail__cp:hover { background: var(--c-surface-2); }
.qmail__cp.is-copied { color: var(--c-success); }
.qmail__body {
  margin: 0; padding: 14px 16px 16px; max-height: 300px; overflow: auto; overscroll-behavior: contain;
  font: inherit; font-size: .875rem; line-height: 1.6; color: var(--c-text);
  white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4;
}
.qmail__body:focus-visible { outline: 2px solid var(--c-focus); outline-offset: -2px; }
@media (max-width: 479.98px) { .qmail__body { max-height: 240px; } .qmail__hdr > div { grid-template-columns: 64px minmax(0, 1fr); } }
.qmail__warn { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-card); background: var(--c-surface-2); color: var(--c-text); font-size: .875rem; line-height: 20px; }
.qmail__warn .icon { flex: none; margin-top: 1px; color: var(--c-primary); }
.qmail__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
@media (max-width: 479.98px) { .qmail__actions .btn { width: 100%; } }
.qmail__hint { margin-top: 14px; }
.qmail__hint strong { color: var(--c-text); font-weight: 600; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- Touch: ≥44 px tap targets
   Kept last in the last stylesheet: rules of the same specificity earlier in pages.css (e.g. .cat-chips .pill 40 px,
   .rbar__view .iconbtn 36 px) would otherwise win over it. */
@media (pointer: coarse) {
  .pill, .chip--link, .seg__opt, .cat-chips .pill, .cat-head .seg__opt, .mega__lens .pill { min-height: 44px; }
  .chip--x, .pd-tags .chip, a.chip { min-height: 44px; }
  .ft__bottom a, .ft__cookie, .ft__list a, .crumbs a, .crumbs-back, .crumbs--compact .crumbs-back, .filters__clear, .cat-lead__more { min-height: 44px; }
  .crumbs a { display: inline-flex; align-items: center; }
  .support__links a, .ft__addr a { min-height: 44px; }
  .btn--sm, .select--sm, .qline__rm, .qline__notebtn, .mnav__children a, .mega .mitem__sub a { min-height: 44px; }
  .fcat, .fopt { min-height: 48px; }
  .rbar__view .iconbtn { width: 44px; height: 44px; }
}
/* touch screens with the desktop header (iPad landscape): 72 px header has room for 44 px controls */
@media (pointer: coarse) and (min-width: 1024px) {
  .quotebtn { height: 44px; }
  .hd__cta { --btn-h: 44px; }
}

/* Form controls ≥16 px on phones/tablets and any touch screen: iOS Safari zooms the page into smaller fields
   (and does not zoom back), e.g. while typing dimensions into the quote note. */
@media (max-width: 1023.98px), (pointer: coarse) {
  .fsearch .input, .select--sm, .textarea--sm { font-size: 1rem; }
}
