/*
Theme Name: Spectomont
Theme URI: https://www.spectomont.com
Author: Spectocommerce d.o.o.
Description: Custom tema za SPECTOMONT – čelične i aluminijske konstrukcije po mjeri. Podržava ACF i Polylang (BS / DE).
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: spectomont
*/

:root {
	--ink: #16191D;
	--steel: #2A3038;
	--line: #DCDFE3;
	--line-dark: #3A414A;
	--text: #2E343B;
	--muted: #4A525C;
	--muted-2: #5B636D;
	--grey: #A7AFB8;
	--grey-l: #C4CAD1;
	--soft: #F3F4F5;
	--foot: #EEF0F2;
	--white: #FFFFFF;
	--blue: #1463D6;
	--blue-d: #0D4AA6;
	--blue-l: #4C8FF0;
	--blue-xl: #7FB0F5;
	--font-display: 'Saira', 'Arial Narrow', sans-serif;
	--font-body: 'IBM Plex Sans', system-ui, sans-serif;
	--font-mono: 'IBM Plex Mono', ui-monospace, monospace;
	--wrap: 1240px;
	--gutter: 24px;
	--section: 104px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-d); }
:focus-visible { outline: 3px solid var(--blue-l); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; line-height: 1.08; margin: 0; overflow-wrap: break-word; hyphens: manual; }
/* German compounds are long: let the browser hyphenate headings instead of overflowing. */
.lang-de h1, .lang-de h2, .lang-de h3, .lang-de .card__title, .lang-de .fact__value { hyphens: auto; }
/* Size big headings by their column width, so the longest word always fits on one line. */
.hero__text, .page-hero__row > div:first-child { container-type: inline-size; }
.hero__text .h-xl { font-size: clamp(30px, 12cqi, 64px); }
.lang-de .hero__text .h-xl { font-size: clamp(28px, 10.4cqi, 64px); }
/* The blue part of the hero title always sits alone on the last line. */
.hero__text .h-xl .accent { display: block; }
.lang-de .page-hero__row .h-lg { font-size: clamp(20px, 7.2cqi, 60px); }
.card__body { container-type: inline-size; }
.lang-de .card__title { font-size: min(21px, 7.8cqi); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
	background: var(--white); padding: 12px 16px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.section--soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark,
.grid-bg {
	background-color: var(--ink);
	background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
	background-size: 48px 48px;
	color: var(--white);
}
.section--blue { background: var(--blue); color: var(--white); }

/* ---------- Typography helpers ---------- */
.eyebrow {
	font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
	color: var(--blue); display: flex; align-items: center; gap: 12px;
}
.grid-bg .eyebrow, .section--dark .eyebrow { color: var(--blue-xl); }
.section--blue .eyebrow { color: #CFE0FB; }
.eyebrow--line::before { content: ""; width: 32px; height: 2px; background: var(--blue); display: inline-block; }
.mono { font-family: var(--font-mono); }
.h-xl { font-size: clamp(30px, 8.4vw, 64px); line-height: 1.02; letter-spacing: -.01em; }
.h-lg { font-size: clamp(28px, 7.4vw, 60px); line-height: 1.02; }
.h-md { font-size: clamp(30px, 3.4vw, 44px); }
.h-sm { font-size: clamp(26px, 2.6vw, 34px); }
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--grey-l); max-width: 640px; margin: 0; }
.text-muted { color: var(--muted); }
.accent { color: var(--blue-l); }

.section-head { display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.section-head h2 { margin-top: 14px; }
.section-head p { max-width: 460px; margin: 0; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 14px 26px;
	font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .05em; text-transform: uppercase;
	text-decoration: none; border: 1px solid transparent; cursor: pointer; line-height: 1.2;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { flex: none; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-d); color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--steel); color: var(--white); }
.btn--ghost { border-color: var(--muted-2); color: var(--white); font-weight: 600; }
.btn--ghost:hover { border-color: var(--white); color: var(--white); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--white { background: var(--white); color: var(--blue-d); }
.btn--white:hover { background: #E3EDFD; color: var(--blue-d); }
.btn--outline-white { border-color: var(--white); color: var(--white); font-weight: 600; }
.btn--outline-white:hover { background: var(--white); color: var(--blue-d); }
.btn--sm { min-height: 48px; padding: 12px 22px; }
/* WhatsApp brand green; dark WhatsApp ink keeps the number readable (white on #25D366 is under 2:1). */
.btn--whatsapp { background: #25D366; color: #111B21; letter-spacing: .03em; }
.btn--whatsapp:hover { background: #1EBE5A; color: #111B21; }
.btn--block { display: flex; width: 100%; }
.link-arrow {
	font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .05em; text-transform: uppercase;
	color: var(--blue); text-decoration: none;
}

/* ---------- Top bar & header ---------- */
.topbar { background: var(--ink); color: var(--grey-l); font-family: var(--font-mono); font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 14px; min-height: 56px; }
.topbar a { color: var(--grey-l); text-decoration: none; }
.topbar a:hover { color: var(--white); }
.topbar__group { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.topbar__phone { color: var(--white) !important; }

.lang-switch { display: flex; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0; font-family: var(--font-mono); font-size: 14px; }
.lang-switch a {
	display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 10px;
	text-decoration: none; color: var(--grey-l); text-transform: uppercase; border: 1px solid transparent; border-radius: 2px;
	opacity: .7; transition: opacity .15s, border-color .15s;
}
.lang-switch a:hover { opacity: 1; color: var(--white); }
.lang-switch .is-current a { color: var(--white); font-weight: 500; opacity: 1; border-color: rgba(255, 255, 255, .28); }
.lang-switch__flag { width: 24px; height: 18px; display: block; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
.site-header .wrap { display: flex; gap: 16px 32px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.site-logo { display: block; line-height: 0; flex: none; }
.site-logo img { height: 60px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.main-nav a {
	display: block; padding: 10px 0; border-bottom: 2px solid transparent;
	font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
	color: var(--ink); text-decoration: none;
}
.main-nav a:hover { color: var(--blue); }
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a,
.main-nav .current_page_parent > a,
.main-nav .current-menu-parent > a { color: var(--blue); border-bottom-color: var(--blue); }
.main-nav .sub-menu { display: none; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle {
	display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--white);
	align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}

@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; }
	.site-header .wrap { flex-wrap: wrap; }
	.main-nav { display: none; width: 100%; order: 3; border-top: 1px solid var(--line); padding-top: 8px; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
	.main-nav .current-menu-item > a { border-bottom-color: var(--line); }
	.header-actions .btn { display: none; }
	.site-logo img { height: 48px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } .topbar__hide-sm { display: none; } }
/* Phone: e-mail and phone stacked on the left, language switcher on the right. */
@media (max-width: 782px) {
	.topbar .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; row-gap: 4px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
	.topbar__group { display: contents; }
	.topbar__email { grid-column: 1; grid-row: 1; overflow-wrap: anywhere; }
	.topbar__phone { grid-column: 1; grid-row: 2; }
	.topbar .lang-switch { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- Placeholders & media ---------- */
.ph {
	background-color: var(--steel);
	background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.055) 0 1px, transparent 1px 14px);
	display: flex; align-items: flex-end; padding: 16px;
	font-family: var(--font-mono); font-size: 11px; color: var(--grey);
}
.ph--light {
	background-color: #E4E7EB;
	background-image: repeating-linear-gradient(135deg, rgba(22,25,29,.07) 0 1px, transparent 1px 14px);
	color: var(--muted-2);
}
.media { position: relative; overflow: hidden; background: var(--steel); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Hero ---------- */
.hero__inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 88px; }
.hero__text { flex: 1.35 1 520px; min-width: 0; }
.hero__text h1 { margin: 22px 0 24px; }
.hero__text .lead { margin-bottom: 36px; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__visual { flex: 1 1 420px; min-width: 0; position: relative; padding: 28px 0 28px 28px; }
.hero__visual .media, .hero__visual .ph { height: 440px; border: 1px solid var(--line-dark); }
.dim { position: absolute; display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--blue-xl); }
.dim span { background: var(--blue-xl); }
.dim .dim__label { background: none; }
.dim--h { left: 28px; right: 0; top: 0; }
.dim--h .dim__tick { width: 1px; height: 12px; }
.dim--h .dim__line { flex: 1; height: 1px; }
.dim--v { left: 0; top: 28px; bottom: 28px; flex-direction: column; }
.dim--v .dim__tick { height: 1px; width: 12px; }
.dim--v .dim__line { flex: 1; width: 1px; }
.dim--v .dim__label { writing-mode: vertical-rl; transform: rotate(180deg); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line-dark); margin-top: 64px; }
.fact { padding: 28px 24px 32px; border-right: 1px solid var(--line-dark); }
.fact:first-child { padding-left: 0; }
.fact:last-child { border-right: 0; }
.fact__value { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.3; }
.fact__label { color: var(--grey); font-size: 15px; }
@media (max-width: 960px) { .fact { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--line-dark); } .fact:last-child { border-bottom: 0; } }

/* ---------- Page hero ---------- */
.page-hero__inner { padding-top: 72px; padding-bottom: 64px; }
.page-hero h1 { margin: 16px 0 18px; }
.page-hero__row { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; justify-content: space-between; }
.page-hero__row > div:first-child { flex: 1 1 560px; min-width: 0; }
.breadcrumbs { font-family: var(--font-mono); font-size: 13px; color: var(--grey); display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.breadcrumbs a { color: var(--grey); text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs [aria-current] { color: var(--white); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.card {
	text-decoration: none; color: var(--ink); border: 1px solid var(--line);
	display: flex; flex-direction: column; background: var(--white); transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--blue); color: var(--ink); }
.card__media { height: 190px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__num { font-family: var(--font-mono); font-size: 12px; color: var(--blue); }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.2; text-transform: uppercase; }
.card__text { font-size: 15px; color: var(--muted); line-height: 1.55; }
.card__more { margin-top: auto; padding-top: 10px; font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: var(--blue); }
.card--cta { background: var(--blue); color: var(--white); border-color: var(--blue); justify-content: space-between; padding: 28px; gap: 24px; min-height: 360px; }
.card--cta:hover { background: var(--blue-d); color: var(--white); }
.card--cta .card__num { color: #CFE0FB; }
.card--cta .card__title { font-weight: 800; font-size: 30px; line-height: 1.1; }
.card--cta .card__more { color: var(--white); display: flex; align-items: center; gap: 10px; font-weight: 700; }

/* Project cards */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 24px; }
.project-grid--featured { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.project { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 16px; }
.project:hover { color: var(--ink); }
.project:hover .project__title { color: var(--blue); }
.project__media { height: 260px; position: relative; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project:hover .project__media img { transform: scale(1.03); }
.project__tag { position: absolute; top: 14px; left: 14px; background: var(--white); color: var(--ink); font-family: var(--font-mono); font-size: 11px; padding: 4px 8px; text-transform: uppercase; }
.project__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); text-transform: uppercase; }
.project__title { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.2; text-transform: uppercase; }
.project-grid--featured .project:first-child { grid-row: span 2; }
.project-grid--featured .project:first-child .project__media { height: auto; flex: 1; min-height: 520px; }
.project-grid--featured .project:not(:first-child) .project__media { height: 210px; }
@media (max-width: 700px) { .project-grid--featured .project:first-child .project__media { min-height: 300px; } }

.filters { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 32px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.filter-btn {
	font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .05em; text-transform: uppercase;
	padding: 12px 18px; min-height: 44px; cursor: pointer; background: var(--white); color: var(--ink);
	border: 1px solid var(--grey-l); text-decoration: none; display: inline-flex; align-items: center;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.is-active, .filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.is-hidden { display: none !important; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 2px solid var(--ink); }
.step { padding: 28px 28px 8px 0; }
.step__num { font-family: var(--font-display); font-weight: 800; font-size: 52px; color: var(--blue); line-height: 1; }
.step h3 { font-weight: 700; font-size: 21px; margin: 18px 0 10px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Split / production ---------- */
.split { display: flex; flex-wrap: wrap; gap: 64px; align-items: stretch; }
.split__main { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.split__side { flex: 1 1 440px; min-width: 0; }
.split__main p { margin: 0; color: var(--grey-l); font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { border: 1px solid var(--muted); padding: 8px 14px; font-family: var(--font-mono); font-size: 13px; }
.split__media { flex: 1; min-height: 260px; margin-top: 12px; border: 1px solid var(--line-dark); }
.panel { background: var(--white); color: var(--ink); padding: 44px; display: flex; flex-direction: column; gap: 22px; height: 100%; }
.panel h3 { font-size: 32px; line-height: 1.1; }
.panel p { margin: 0; color: var(--muted); }
.country-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.country-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.country-list strong { font-family: var(--font-display); font-weight: 700; font-size: 19px; text-transform: uppercase; }
.country-list span { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.country-list .badge { color: var(--white); background: var(--blue); padding: 4px 10px; }
@media (max-width: 600px) { .panel { padding: 28px; } }

/* ---------- CTA band ---------- */
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center; justify-content: space-between; padding-top: 72px; padding-bottom: 72px; }
.cta-band__text { flex: 1 1 520px; min-width: 0; }
.cta-band h2 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; margin: 14px 0; }
.cta-band p { margin: 0; color: #E3EDFD; font-size: 17px; max-width: 620px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Contact ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact__info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.contact__map { flex: 1 1 520px; min-width: 0; min-height: 440px; border: 1px solid var(--line); }
.contact__map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; }
.contact-list { width: 100%; border-top: 1px solid var(--line); }
.contact-item { display: flex; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
a.contact-item:hover { color: var(--blue); }
.contact-item svg { flex: none; color: var(--blue); }
.contact-item small { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); text-transform: uppercase; }
.contact-item strong { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.3; word-break: break-word; }

/* ---------- Product single ---------- */
/* Gallery: one large photo + up to four small ones, "+N" on the last tile */
.sm-gallery { display: grid; gap: 12px; aspect-ratio: 2.25 / 1; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.sm-gallery__item { position: relative; display: block; overflow: hidden; background: var(--steel); min-height: 0; min-width: 0; cursor: zoom-in; }
.sm-gallery__item.ph { cursor: default; }
.sm-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.sm-gallery__item:hover img { transform: scale(1.04); }
.sm-gallery__item:first-child { grid-row: 1 / span 2; }
.sm-gallery__item.is-extra { display: none; }
.sm-gallery__more {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
	background: rgba(22, 25, 29, .64); color: var(--white); transition: background-color .2s;
}
.sm-gallery__item:hover .sm-gallery__more { background: rgba(20, 99, 214, .78); }
.sm-gallery__more b { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3vw, 44px); line-height: 1; }
.sm-gallery__more small { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.sm-gallery--n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 16 / 9; }
.sm-gallery--n1 .sm-gallery__item:first-child { grid-row: auto; }
.sm-gallery--n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; aspect-ratio: 2.4 / 1; }
.sm-gallery--n2 .sm-gallery__item:first-child { grid-row: auto; }
.sm-gallery--n3 { grid-template-columns: 2fr 1fr; }
.sm-gallery--n4 .sm-gallery__item:nth-child(4) { grid-column: span 2; }
@media (max-width: 700px) {
	.sm-gallery, .sm-gallery--n1, .sm-gallery--n2 { aspect-ratio: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 240px; grid-auto-rows: 72px; gap: 8px; }
	.sm-gallery__item:first-child { grid-column: 1 / -1; grid-row: auto; }
	.sm-gallery--n2 .sm-gallery__item:nth-child(2) { grid-column: 1 / -1; }
	.sm-gallery--n3 .sm-gallery__item:not(:first-child) { grid-column: span 2; }
	.sm-gallery--n4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sm-gallery--n4 .sm-gallery__item:nth-child(4) { grid-column: auto; }
	.sm-gallery__more b { font-size: 22px; }
	.sm-gallery__more small { display: none; }
}

/* Lightbox */
html.sm-lb-open { overflow: hidden; }
.sm-lightbox {
	width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
	background: rgba(10, 12, 14, .97); color: var(--white); overflow: hidden;
}
.sm-lightbox::backdrop { background: transparent; }
.sm-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.sm-lb__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; }
.sm-lb__count { font-family: var(--font-mono); font-size: 14px; color: var(--grey-l); }
.sm-lb__stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 88px; min-height: 0; touch-action: pan-y; user-select: none; }
.sm-lb__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 100%; min-height: 0; }
.sm-lb__img { max-width: 100%; max-height: calc(100vh - 230px); object-fit: contain; display: block; transition: opacity .2s; }
.sm-lb__img.is-loading { opacity: .25; }
.sm-lb__caption { font-size: 14px; color: var(--grey-l); text-align: center; }
.sm-lb__btn {
	width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; flex: none;
	background: rgba(255, 255, 255, .06); color: var(--white); border: 1px solid rgba(255, 255, 255, .25); cursor: pointer;
	transition: background-color .15s, border-color .15s;
}
.sm-lb__btn:hover { background: var(--blue); border-color: var(--blue); }
.sm-lb__btn:focus-visible { outline: 3px solid var(--blue-l); outline-offset: 2px; }
.sm-lb__prev, .sm-lb__next { position: absolute; top: 50%; transform: translateY(-50%); }
.sm-lb__prev { left: 20px; }
.sm-lb__next { right: 20px; }
.sm-lb__thumbs { display: flex; justify-content: center; gap: 8px; padding: 14px 20px 20px; overflow-x: auto; }
.sm-lb__thumb { flex: none; width: 72px; height: 52px; padding: 0; border: 2px solid transparent; background: var(--steel); cursor: pointer; opacity: .55; transition: opacity .15s, border-color .15s; }
.sm-lb__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-lb__thumb:hover { opacity: .9; }
.sm-lb__thumb[aria-current="true"] { opacity: 1; border-color: var(--blue-l); }
@media (max-width: 700px) {
	.sm-lb__stage { padding: 0 12px; }
	.sm-lb__img { max-height: calc(100vh - 200px); }
	.sm-lb__prev, .sm-lb__next { top: auto; bottom: 8px; transform: none; width: 44px; height: 44px; }
	.sm-lb__prev { left: 12px; }
	.sm-lb__next { right: 12px; }
	.sm-lb__figure { padding-bottom: 56px; }
	.sm-lb__thumbs { justify-content: flex-start; }
	.sm-lb__thumb { width: 56px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { .sm-gallery__item img, .sm-lb__img { transition: none; } }

.layout-sidebar { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.layout-sidebar__main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 64px; }
.layout-sidebar__aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 120px; }
@media (max-width: 1000px) { .layout-sidebar__aside { position: static; } }

.prose { font-size: 17px; color: var(--text); }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 40px 0 18px; }
.prose h3 { font-size: 22px; margin: 32px 0 12px; }
.prose ul { padding-left: 20px; }
.prose img { margin: 24px 0; }
.block-title { margin: 0 0 24px; }

.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 2px solid var(--ink); }
.spec { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); }
.spec small { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--blue); text-transform: uppercase; }
.spec strong { font-family: var(--font-display); font-weight: 700; font-size: 20px; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 32px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { flex: none; margin-top: 3px; color: var(--blue); }

.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { font-family: var(--font-display); font-weight: 700; font-size: 19px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 22px; color: var(--blue); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; color: var(--muted); }

.box-dark { background: var(--ink); color: var(--white); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.box-dark .label { font-family: var(--font-mono); font-size: 12px; color: var(--blue-xl); letter-spacing: .1em; text-transform: uppercase; }
.box-dark .title { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.15; text-transform: uppercase; }
.box-dark p { margin: 0; color: var(--grey-l); font-size: 15px; }
.box-line { border: 1px solid var(--line); padding: 24px 28px; display: flex; flex-direction: column; background: var(--white); }
.box-line .label { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .1em; }
.box-line ul { list-style: none; margin: 0; padding: 0; }
.box-line li a { display: block; color: var(--ink); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--foot); font-weight: 500; }
.box-line li:last-child a { border-bottom: 0; }
.box-line li a:hover, .box-line li.is-current a { color: var(--blue); }
.next-steps { display: flex; flex-direction: column; gap: 20px; }
.next-steps div { display: flex; gap: 16px; }
.next-steps b { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--blue-l); line-height: 1; }
.next-steps span { color: var(--grey-l); font-size: 15px; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); padding: 44px; display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 600px) { .form-card { padding: 24px; } }
.form-card fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.form-card legend { font-family: var(--font-display); font-weight: 800; font-size: 22px; text-transform: uppercase; padding: 0; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 14px; }
.field input, .field select, .field textarea {
	font: inherit; font-weight: 400; font-size: 16px; padding: 13px 14px; border: 1px solid var(--grey-l);
	background: var(--white); min-height: 48px; color: var(--ink); border-radius: 0; width: 100%;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
.dropzone {
	border: 2px dashed var(--grey); background: #F8F9FA; padding: 36px 24px; display: flex; flex-direction: column;
	align-items: center; gap: 10px; text-align: center; cursor: pointer; position: relative;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--blue); background: #F1F6FE; }
.dropzone svg { color: var(--blue); }
.dropzone strong { font-family: var(--font-display); font-weight: 700; font-size: 18px; text-transform: uppercase; }
.dropzone small { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone__files { font-size: 14px; color: var(--ink); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.hp-field { position: absolute; left: -9999px; }
.notice { padding: 18px 22px; border-left: 0; font-weight: 500; }
.notice--ok { background: #E7F3EA; color: #1C5B2C; border: 1px solid #A8D5B3; }
.notice--err { background: #FCEBEA; color: #8A1F17; border: 1px solid #F0B4AF; }

/* ---------- Footer ---------- */
.site-footer { background: var(--foot); border-top: 4px solid var(--blue); }
.site-footer .wrap { padding-top: 64px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 48px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; }
.footer-brand { flex: 1 1 280px; max-width: 340px; display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { width: 220px; }
.footer-brand p { margin: 0; color: var(--muted); font-size: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col h2 { font-weight: 700; font-size: 15px; letter-spacing: .05em; margin-bottom: 4px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; border-top: 1px solid #D3D7DC; padding-top: 24px; font-size: 13px; color: var(--muted); }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a { color: var(--muted); }

.wa-float {
	position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
	background: #25D366; color: var(--white); display: flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.wa-float:hover { background: #1EBE5A; color: var(--white); }

/* ---------- Misc ---------- */
.empty-state { color: var(--muted); font-size: 17px; }
.pagination { margin-top: 48px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--grey-l); text-decoration: none; color: var(--ink); padding: 0 12px; }
.pagination .current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.alignwide { max-width: var(--wrap); }
.wp-block-image img { height: auto; }

@media (max-width: 700px) {
	:root { --section: 72px; }
	.hero__inner { padding-top: 56px; }
	.hero__visual .media, .hero__visual .ph { height: 300px; }
	.contact-item strong { font-size: 18px; }
}

/* Cookie consent banner (Google Analytics) */
.sm-consent {
	position: fixed; left: 20px; bottom: 20px; z-index: 70; max-width: 520px; width: calc(100% - 40px);
	background: var(--ink); color: var(--grey-l); border: 1px solid var(--line-dark); border-top: 3px solid var(--blue);
	padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.sm-consent[hidden] { display: none; }
.sm-consent__text { margin: 0; font-size: 14px; line-height: 1.55; }
.sm-consent__text a { color: var(--blue-xl); }
.sm-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.btn--outline-light { border-color: var(--muted-2); color: var(--white); font-weight: 600; background: transparent; }
.btn--outline-light:hover { border-color: var(--white); color: var(--white); }
.sm-cookie-link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.sm-cookie-link:hover { color: var(--blue); }
@media (max-width: 600px) {
	.sm-consent { left: 0; bottom: 0; width: 100%; max-width: none; border-left: 0; border-right: 0; }
	.sm-consent__actions .btn { flex: 1 1 0; }
	html.sm-consent-open .wa-float { display: none; }
}
