/* Metal-Dobrica – metal-dobrica.si */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --blue: #006baa; --blue-2: #0a5fad; --blue-l: #e8f2fa; --navy: #003372; --ink: #040922;
  --text: #2b3046; --muted: #6d7191; --grey: #a4a9b1; --line: #e3e6ee; --soft: #f3f5f9; --white: #fff;
  --ok: #1b8a5a; --err: #c0392b;
  --r: 16px; --r-sm: 10px; --pill: 40px;
  --shadow: 0 10px 30px -12px rgba(4, 9, 34, .18); --shadow-lg: 0 24px 60px -20px rgba(4, 9, 34, .28);
  --container: 1240px; --gutter: clamp(16px, 4vw, 32px);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: 16.5px; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-weight: 650; color: var(--ink); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #5fb0e6; outline-offset: 2px; border-radius: 4px; }
.ico { width: 1.1em; height: 1.1em; flex: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0 } .mb-0 { margin-bottom: 0 } .mt-2 { margin-top: 2rem } .mt-3 { margin-top: 3rem }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .9em 1.7em; border-radius: var(--pill); background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; border: 2px solid var(--blue); cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; line-height: 1.2; white-space: nowrap; }
.btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--sm { padding: .6em 1.15em; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
@media (max-width: 560px) { .btn { white-space: normal; text-align: center; max-width: 100%; } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; }
.link-arrow .ico { transition: transform .2s; }
.link-arrow:hover .ico { transform: translateX(4px); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin: 0 0 .9em; }
.eyebrow--light { color: #bfe0f6; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 46em; }

/* ---------- top bar + header */
.topbar { background: var(--ink); color: #c9cde0; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-left: 20px; }
.topbar a:hover { color: #9fd2f5; }
@media (max-width: 900px) { .topbar__inner > span:first-child { display: none; } .topbar__inner { justify-content: center; } .topbar a { margin: 0 8px; } }
@media (max-width: 480px) { .topbar a:last-child { display: none; } }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 20px; height: 76px; }
.logo img { height: 52px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav ul a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; text-decoration: none; font-size: .97rem; }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--blue); background: var(--blue-l); }
.inq-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--pill); border: 2px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; font-size: .9rem; }
.inq-btn:hover { border-color: var(--blue); color: var(--blue); }
.inq-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--blue); color: #fff; font-size: .75rem; display: inline-grid; place-items: center; }
.inq-count.bump { animation: bump .4s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle .ico { width: 28px; height: 28px; }
@media (max-width: 1080px) {
  .nav__cta { display: none; }
}
@media (max-width: 900px) {
  .header__inner { height: 66px; }
  .logo img { height: 44px; }
  .nav-toggle { display: block; }
  .inq-btn { margin-left: auto; }
  .inq-btn__label { display: none; }
  .nav { position: fixed; inset: 66px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; }
  .nav ul a { padding: 12px; font-size: 1.05rem; }
  .nav__cta { display: inline-flex; }
}

/* ---------- home hero */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; isolation: isolate; }
.hero__img { position: absolute; inset: 0; z-index: -2; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ''; position: absolute; z-index: -1; left: -18%; top: -30%; width: 78%; height: 160%; border-radius: 50%; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 60%, var(--navy) 100%); box-shadow: 30px 0 0 rgba(255,255,255,.08), 60px 0 0 rgba(255,255,255,.05); }
.hero__inner { min-height: clamp(520px, 78vh, 740px); display: flex; flex-direction: column; justify-content: center; padding-top: 70px; padding-bottom: 120px; }
.hero__content { max-width: 600px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.hero .lead { color: #dcecf8; }
.hero .btn-row { margin-top: 28px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; padding: 0; list-style: none; font-size: .92rem; color: #e6f2fb; }
.hero__badges li { display: flex; align-items: center; gap: 8px; }
.hero__badges .ico { color: #8fd0ff; }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; fill: #fff; }
@media (max-width: 760px) {
  .hero::before { left: -60%; width: 190%; top: -10%; height: 90%; border-radius: 0 0 50% 50%; }
  .hero__img { top: auto; height: 46%; }
  .hero__inner { min-height: 0; padding-top: 48px; padding-bottom: 54vw; }
}

/* ---------- page hero */
.page-hero { position: relative; color: #fff; background: linear-gradient(120deg, var(--navy), var(--blue)); padding: clamp(48px, 7vw, 92px) 0 clamp(70px, 9vw, 120px); overflow: hidden; isolation: isolate; }
.page-hero.has-img .page-hero__img { position: absolute; inset: 0; z-index: -2; }
.page-hero.has-img .page-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero.has-img::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(0,51,114,.95) 0%, rgba(0,107,170,.86) 48%, rgba(0,107,170,.35) 100%); }
.page-hero h1 { color: #fff; max-width: 20em; }
.page-hero .lead { color: #dcecf8; }
.page-hero__wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 50px; fill: #fff; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0 0 22px; font-size: .85rem; }
.crumbs li { color: #cfe6f7; }
.crumbs li + li::before { content: '/'; margin: 0 8px; opacity: .6; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs--dark li { color: var(--muted); }
.crumbs--dark a { color: var(--blue); }

/* ---------- sections */
.section { padding: clamp(56px, 8vw, 110px) 0; position: relative; }
.section--soft { background: var(--soft); }
.section--tight { padding: clamp(36px, 5vw, 64px) 0; }
.section--navy { background: var(--ink); color: #c9cde0; overflow: hidden; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--blue { background: linear-gradient(120deg, var(--navy), var(--blue)); color: #e3f1fb; overflow: hidden; }
.section--blue h2, .section--blue h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p:last-child { margin-bottom: 0; }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--wide { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 860px) { .split, .split--wide { grid-template-columns: 1fr; } }
.split__media { position: relative; }
.split__media img { border-radius: var(--r); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow-lg); }
.split__media--blob::before { content: ''; position: absolute; inset: 8% -6% -6% 8%; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; background: var(--blue-l); z-index: -1; }
.split__media .stat-badge { position: absolute; left: -10px; bottom: 24px; }
.stat-badge { background: var(--blue); color: #fff; border-radius: var(--r); padding: 18px 22px; box-shadow: var(--shadow-lg); line-height: 1.1; }
.stat-badge strong { display: block; font-size: 2.3rem; font-weight: 700; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006baa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.section--navy .ticks li::before, .section--blue .ticks li::before { background-color: rgba(255,255,255,.15); }

/* ---------- cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 2.6vw, 32px); transition: box-shadow .25s, transform .25s, border-color .25s; position: relative; }
.card:hover { box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-l); color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.card__icon .ico { width: 26px; height: 26px; }
.card--link { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.card--link:hover { transform: translateY(-3px); color: inherit; }
.card--link .link-arrow { margin-top: auto; padding-top: 12px; }
.card--img { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--img .card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.card--img .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card--img:hover .card__media img { transform: scale(1.04); }
.card--img .card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card--feature { background: linear-gradient(150deg, var(--blue), var(--navy)); color: #e3f1fb; border: 0; }
.card--feature h3 { color: #fff; }
.card--feature .card__icon { background: rgba(255,255,255,.14); color: #fff; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); background: var(--blue-l); padding: 4px 10px; border-radius: 20px; }
.tag--inox { color: #4b5563; background: #eceef2; }
.tag--lg { font-size: .82rem; padding: 6px 14px; }

/* big image tiles (home) */
.tiles { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } }
.tile { position: relative; border-radius: var(--r); overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; color: #fff; text-decoration: none; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,9,34,0) 25%, rgba(4,9,34,.88) 100%); }
.tile:hover img { transform: scale(1.04); }
.tile__body { padding: 30px; }
.tile h3 { color: #fff; font-size: 1.6rem; }
.tile p { color: #d6dbe8; max-width: 34em; }
.tile .tag { background: var(--blue); color: #fff; margin-bottom: 12px; }
.tile .tag--inox { background: rgba(255,255,255,.2); color: #fff; }
.tile:hover { color: #fff; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 10px; }
.stat strong { display: block; font-size: clamp(2rem, 4vw, 2.9rem); color: #fff; font-weight: 700; line-height: 1.1; }
.stat span { color: #b9c9e6; font-size: .95rem; }

/* fence types */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .types { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .types { grid-template-columns: 1fr; } }
.type { background: linear-gradient(180deg, #eef1f6, #e2e6ee); border-radius: var(--r); overflow: hidden; }
.type__img { aspect-ratio: 3 / 2; display: grid; place-items: center; }
.type__img img { width: 100%; height: 100%; object-fit: contain; }
.type__body { background: #fff; padding: 18px 22px 20px; }
.type__body h3 { font-size: 1.08rem; margin-bottom: .3em; }
.type__body p { font-size: .93rem; color: var(--muted); margin: 0; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery a { display: block; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 3 / 2; }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery a:hover img { transform: scale(1.05); }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: #fff; border-radius: var(--r); padding: 26px; border: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-weight: 700; color: var(--blue); font-size: 1.5rem; margin-bottom: 8px; }
.steps h3 { font-size: 1.05rem; }
.steps p { margin: 0; font-size: .95rem; color: var(--muted); }

/* CTA band */
.cta { position: relative; border-radius: calc(var(--r) * 1.5); background: linear-gradient(120deg, var(--navy), var(--blue)); color: #e3f1fb; padding: clamp(32px, 5vw, 64px); overflow: hidden; display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; isolation: isolate; }
.cta::after { content: ''; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.07); z-index: -1; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding-bottom: 18px; color: var(--text); }

/* prose */
.prose { max-width: 760px; font-size: 1.06rem; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.prose h3 { margin-top: 1.5em; }
.prose img { border-radius: var(--r-sm); }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: 16px 22px; border-left: 4px solid var(--blue); background: var(--blue-l); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.prose blockquote p:last-child { margin: 0; }
.prose li { margin-bottom: .35em; }

/* ---------- catalog */
.cat-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 960px) { .cat-layout { grid-template-columns: minmax(0, 1fr); } }
.filters { position: sticky; top: 96px; display: grid; gap: 22px; min-width: 0; }
.filters > *, .cat-layout > *, .product > *, .inq-layout > *, .split > *, .article > * { min-width: 0; }
.filters__group h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.filters__cats { display: grid; gap: 4px; }
.chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid transparent; background: none; text-align: left; cursor: pointer; color: var(--ink); font-weight: 500; font-size: .94rem; text-decoration: none; }
.chip:hover { background: var(--soft); color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-current] { background: var(--blue-l); color: var(--blue); font-weight: 650; }
.chip small { color: var(--muted); font-weight: 500; }
@media (max-width: 960px) {
  .filters { position: static; gap: 12px; }
  .filters__group h3 { display: none; }
  .filters__cats { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
  .filters__cats::-webkit-scrollbar { display: none; }
  .chip { flex: none; white-space: nowrap; border-color: var(--line); border-radius: var(--pill); padding: 7px 14px; }
  .chip small { display: none; }
  .filters__group--pdf { display: none; }
}
.line-switch { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--soft); border-radius: var(--pill); padding: 4px; }
.line-switch button { border: 0; background: none; padding: 8px 6px; border-radius: var(--pill); font-weight: 600; font-size: .88rem; cursor: pointer; color: var(--muted); }
.line-switch button[aria-pressed="true"] { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(4,9,34,.08); }
.search { position: relative; }
.search .ico { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }
.search input { width: 100%; padding: 16px 18px 16px 50px; border: 2px solid var(--line); border-radius: var(--pill); font-size: 1.02rem; background: #fff; transition: border-color .2s; }
.search input:focus { outline: none; border-color: var(--blue); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0; color: var(--muted); font-size: .92rem; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, border-color .25s; }
.pcard:hover { box-shadow: var(--shadow); border-color: transparent; }
.pcard__media { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.pcard__media img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.pcard__media--empty { background: var(--soft); color: var(--grey); }
.pcard__media--empty .ico { width: 44px; height: 44px; }
.pcard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard__code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; color: var(--blue); font-weight: 600; }
.pcard h3 { font-size: 1rem; margin: 0; line-height: 1.35; }
.pcard h3 a { color: var(--ink); text-decoration: none; }
.pcard h3 a::after { content: ''; position: absolute; inset: 0; }
.pcard { position: relative; }
.pcard__meta { font-size: .84rem; color: var(--muted); }
.pcard__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard__foot .btn { position: relative; z-index: 2; }
.add-btn.added { background: var(--ok); border-color: var(--ok); color: #fff; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cat-intro { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

/* product page */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .product { grid-template-columns: minmax(0, 1fr); } }
.product__gallery { display: grid; gap: 14px; position: sticky; top: 100px; }
@media (max-width: 900px) { .product__gallery { position: static; } }
.product__img { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: clamp(16px, 3vw, 36px); display: grid; place-items: center; min-height: 260px; }
.product__img img { max-height: 460px; width: auto; }
.product__img figcaption { font-size: .82rem; color: var(--muted); margin-top: 10px; text-align: center; }
.product__img figure { margin: 0; text-align: center; }
.product__img figure img { margin: 0 auto; }
.product h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.product__code { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--blue); font-weight: 700; margin-bottom: 8px; }
.specs { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: .96rem; }
.specs th, .specs td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; width: 45%; }
.specs td { color: var(--ink); font-weight: 600; }
.addbox { background: var(--soft); border-radius: var(--r); padding: 22px; display: grid; gap: 14px; }
.addbox__row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.addbox label { display: grid; gap: 4px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.addbox input, .addbox select { padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; min-width: 0; }
.addbox input[type=number] { width: 110px; }
.addbox .btn { flex: 1; }
.vtable-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); margin: 8px 0 24px; }
.vtable { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.vtable th { background: var(--soft); text-align: left; padding: 12px 14px; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.vtable td { padding: 10px 14px; border-top: 1px solid var(--line); white-space: nowrap; }
.vtable td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; color: var(--ink); }
.vtable tr:hover td { background: #fafbfd; }
.vtable .btn { padding: .45em .9em; font-size: .82rem; }
.vfilter { margin: 0 0 6px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--pill); width: 100%; max-width: 320px; }
.note { font-size: .92rem; color: var(--muted); background: var(--soft); border-radius: var(--r-sm); padding: 12px 16px; }

/* inquiry page */
.inq-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 980px) { .inq-layout { grid-template-columns: minmax(0, 1fr); } }
.inq-list { display: grid; gap: 10px; }
.inq-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.inq-item__img { width: 64px; height: 64px; border-radius: 8px; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.inq-item__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.inq-item__name { font-weight: 600; color: var(--ink); line-height: 1.3; }
.inq-item__name a { color: inherit; text-decoration: none; }
.inq-item__code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; color: var(--blue); }
.inq-item__ctrl { display: flex; gap: 6px; align-items: center; }
.inq-item__ctrl input { width: 78px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; text-align: right; }
.inq-item__ctrl select { padding: 8px 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.inq-item__note { grid-column: 2 / -1; }
.inq-item__note input { width: 100%; padding: 7px 10px; border: 1px dashed var(--line); border-radius: 8px; font-size: .88rem; }
.icon-btn { border: 0; background: none; padding: 8px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: #fdecea; color: var(--err); }
@media (max-width: 560px) { .inq-item { grid-template-columns: 48px minmax(0, 1fr); } .inq-item__img { width: 48px; height: 48px; } .inq-item__ctrl { grid-column: 1 / -1; justify-content: flex-end; } .inq-item__note { grid-column: 1 / -1; } }
.inq-empty { border: 2px dashed var(--line); border-radius: var(--r); padding: 40px 24px; text-align: center; color: var(--muted); }
.quick-add { display: flex; gap: 8px; margin-top: 14px; }
.quick-add input { flex: 1; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--pill); }

/* forms */
.form { display: grid; gap: 16px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field label .req { color: var(--err); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #d3d8e3; border-radius: var(--r-sm); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,107,170,.15); }
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: .82rem; color: var(--muted); }
.field input[type=file] { padding: 10px; background: var(--soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 14px 18px; border-radius: var(--r-sm); font-weight: 500; }
.form-msg--ok { background: #e7f6ee; color: #135c3c; }
.form-msg--err { background: #fdecea; color: #8e2a1f; }

/* contact */
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--r); background: var(--soft); }
.contact-card .card__icon { margin: 0; flex: none; }
.contact-card h3 { font-size: 1rem; margin: 0 0 4px; }
.contact-card p { margin: 0; }
.contact-card a { font-weight: 600; text-decoration: none; }

/* video facade */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.video button { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(255,255,255,.18); transition: transform .2s; }
.video button:hover { transform: scale(1.08); }
.video button .ico { width: 34px; height: 34px; fill: currentColor; margin-left: 4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video small { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; color: #fff; font-size: .78rem; opacity: .85; padding: 0 12px; }

/* blog */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
@media (max-width: 980px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .posts { grid-template-columns: minmax(0, 1fr); } }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .86rem; color: var(--muted); margin-bottom: 10px; }
.posts .card h3 a { color: var(--ink); text-decoration: none; }
.posts .card h3 a::after { content: ''; position: absolute; inset: 0; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; }
@media (max-width: 1000px) { .article { grid-template-columns: minmax(0, 1fr); } }
.article__cover { border-radius: var(--r); overflow: hidden; margin-bottom: 36px; box-shadow: var(--shadow); }
.article__cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.toc { position: sticky; top: 100px; display: grid; gap: 20px; }
@media (max-width: 1000px) { .toc { position: static; } }
.toc nav { background: var(--soft); border-radius: var(--r); padding: 22px; }
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; font-size: .92rem; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--blue); }

/* footer */
.footer { position: relative; background: var(--ink); color: #aab1c9; padding-top: clamp(56px, 7vw, 90px); overflow: hidden; isolation: isolate; font-size: .94rem; }
.footer__blob { position: absolute; z-index: -1; left: -140px; top: -160px; width: 520px; height: 420px; border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%; background: var(--blue); opacity: .9; }
.footer__blob::after { content: ''; position: absolute; right: -1400px; bottom: -560px; width: 380px; height: 300px; border-radius: 50%; background: var(--blue-2); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 36px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { height: 74px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: #dbe6f7; max-width: 26em; }
.footer .pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); color: #fff; border-radius: var(--pill); padding: 9px 16px; margin: 0 6px 8px 0; text-decoration: none; font-weight: 600; font-size: .9rem; }
.footer .pill:hover { background: #fff; color: var(--navy); }
.footer__h { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 7px; }
.footer a { color: #cfd5e6; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer address { font-style: normal; margin-bottom: 12px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 20px; padding-bottom: 26px; font-size: .84rem; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 14px 18px; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); display: flex; gap: 14px; align-items: center; font-size: .94rem; max-width: calc(100% - 32px); }
.toast a { color: #8fd0ff; font-weight: 600; white-space: nowrap; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; } }
@media print { .topbar, .header, .footer, .toast, .btn, .filters { display: none !important; } }

/* ---------- prices, basket, checkout, pricelist */
.r { text-align: right; }
.nowrap { white-space: nowrap; }
.pricebox { border: 2px solid var(--blue-l); background: #f7fbfe; border-radius: var(--r); padding: 16px 20px; margin-bottom: 14px; }
.pricebox__main b { font-size: 1.9rem; color: var(--ink); font-weight: 700; margin-right: 6px; }
.pricebox__main span { color: var(--muted); }
.pricebox__sub { color: var(--muted); font-size: .92rem; }
.pricebox__anchor { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #cfe3f3; font-size: .9rem; }
.pricebox__anchor.is-changed { color: var(--navy); }
.vprice { white-space: nowrap; }
.vprice select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: .85rem; max-width: 220px; }
.vprice__anchor { display: block; font-size: .75rem; color: var(--muted); }
.inq-item__mat { display: inline-flex; gap: 6px; align-items: center; font-size: .82rem; color: var(--muted); margin-top: 4px; }
.inq-item__mat select { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.inq-item__price { font-size: .86rem; margin-top: 4px; color: var(--text); }
.inq-item__ctrl select[disabled] { background: var(--soft); color: var(--muted); }
.totals { margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; display: grid; gap: 8px; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; }
.totals__grand { border-top: 1px solid var(--line); padding-top: 10px; font-size: 1.2rem; color: var(--ink); }
.totals p { margin: 0; }
.totals__coupon b { color: var(--ok); } .link-x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0 4px; } .link-x:hover { color: var(--err); }
.totals .coupon { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.coupon label { font-weight: 600; font-size: .9rem; color: var(--ink); } .coupon input { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; text-transform: uppercase; min-width: 0; }
.coupon .hint { font-size: .85rem; color: var(--muted); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border: 0; padding: 4px; margin: 0; background: var(--soft); border-radius: var(--pill); }
.seg label { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: var(--pill); cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--muted); }
.seg input { accent-color: var(--blue); }
.seg label:has(input:checked) { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(4,9,34,.08); }
.vat-row { display: flex; gap: 8px; } .vat-row input { flex: 1; }
.hint--ok { color: var(--ok) !important; font-weight: 600; } .hint--err { color: var(--err) !important; }
.form fieldset { min-width: 0; }
.pl-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; margin-bottom: 12px; }
@media (max-width: 860px) { .pl-bar { grid-template-columns: 1fr; } }
.pltable { min-width: 680px; }
.pltable td { white-space: normal; font-family: inherit !important; font-weight: 400 !important; }
.pltable td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; color: var(--muted) !important; white-space: nowrap; }
.pltable tr.is-changed td { background: #fffaf0; }
.chg { font-size: .75rem; } .chg.up { color: var(--err); } .chg.down { color: var(--ok); }
.files-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.files-list li { display: grid; word-break: break-all; font-size: .92rem; }
.arch td:first-child { font-family: inherit !important; color: var(--text) !important; font-size: .85rem; }
.footer__eu { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: #aab1c9; }
.footer__eu img { width: 300px; max-width: 100%; height: auto; background: #fff; border-radius: 8px; padding: 8px; }
.footer__eu p { flex: 1; min-width: 240px; margin: 0; }
