/* Siper Bulgaria – site.css
   Signal red of the original page and logo, cream cladding and graphite of the firm's own building,
   five material layers (wool, plaster, board, membrane, screed) as the signature of the home page.
   Fonts: Montserrat Alternates 800 (display), Manrope (text). One light theme with dark bands. */

@font-face {
    font-family: "Montserrat Alternates";
    src: url("/fonts/montserrat-alternates-800.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("/fonts/manrope.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --red: #e80000;
    --red-deep: #b80000;
    --red-ink: #c00000;
    --red-night: #5a0303;
    --cream: #f6f2ea;
    --cream-2: #ece5d6;
    --sheet: #ffffff;
    --line: #ddd5c4;
    --ink: #1b1c1f;
    --ink-2: #3a3c41;
    --steel: #575c63;
    --graphite: #1b1c1f;
    --graphite-2: #26282c;
    --graphite-3: #33363b;
    --on-dark: #f3efe7;
    --on-dark-2: #c9c4ba;
    --straw: #f2c35b;
    --wool: #f4d27e;
    --plaster: #efe7d6;
    --board: #dfe2e4;
    --membrane: #2a2b2f;
    --screed: #b9b6ae;
    --radius: 18px;
    --radius-sm: 10px;
    --display: "Montserrat Alternates", "Manrope", system-ui, sans-serif;
    --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wrap: 1200px;
    --lb-accent: var(--straw);
    --lb-accent-soft: rgba(242, 195, 91, 0.2);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 120px;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font: 400 1.0625rem/1.65 var(--text);
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--red-ink);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}

a:hover {
    color: var(--ink);
}

:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
    border-radius: 4px;
}

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2rem, 1.2rem + 4vw, 4.2rem);
}

h2 {
    font-size: clamp(1.55rem, 1.1rem + 2vw, 2.6rem);
}

h3 {
    font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem);
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: min(100% - 32px, var(--wrap));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    border-radius: 8px;
}

.skip:focus {
    top: 12px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    margin: 0 0 1rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.kicker::before {
    content: "";
    width: 28px;
    height: 3px;
    background: currentColor;
}

.lead {
    font-size: clamp(1.08rem, 1rem + 0.45vw, 1.3rem);
    line-height: 1.55;
    max-width: 60ch;
}

/* ---- buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    padding: 0.85em 1.35em;
    border-radius: 999px;
    border: 2px solid transparent;
    background: var(--ink);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--red-ink);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--red-ink);
}

.btn-light:hover {
    background: var(--ink);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    border-color: currentColor;
    color: #fff;
}

.btn-ghost:hover {
    background: #fff;
    color: var(--red-ink);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---- header */
.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 242, 234, 0.92);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    padding-block: 10px;
}

.brand {
    display: block;
    line-height: 0;
    flex: 0 1 auto;
    min-width: 0;
}

.brand img {
    width: clamp(170px, 30vw, 250px);
    height: auto;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6em 1em;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.call:hover {
    background: var(--ink);
    color: #fff;
}

.lang {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    font-size: 0.82rem;
    font-weight: 800;
}

.lang a,
.lang span {
    padding: 0.5em 0.75em;
    text-decoration: none;
    color: var(--ink);
}

.lang span {
    background: var(--ink);
    color: #fff;
}

.lang a:hover {
    background: var(--cream-2);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
    width: 100%;
    margin-inline: -10px;
}

.nav a {
    padding: 0.45em 0.7em;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.nav a:hover {
    background: var(--cream-2);
}

.nav a[aria-current] {
    color: var(--red-ink);
    box-shadow: inset 0 -3px 0 var(--red);
    border-radius: 8px 8px 0 0;
}

@media (min-width: 1000px) {
    .top-row {
        flex-wrap: nowrap;
    }

    .nav {
        order: 2;
        width: auto;
        margin: 0 0 0 auto;
    }

    .top-actions {
        order: 3;
        margin-left: 8px;
    }
}

@media (max-width: 420px) {
    .call {
        padding: 0.55em 0.8em;
        font-size: 0.92rem;
    }

    .call svg {
        display: none;
    }

    .brand img {
        width: 150px;
    }
}

/* ---- breadcrumbs */
.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    margin: 0;
    padding: 18px 0 0;
    list-style: none;
    font-size: 0.9rem;
    color: var(--steel);
}

.crumbs li + li::before {
    content: "/";
    margin: 0 0.6em;
    color: var(--steel);
}

.crumbs a {
    color: var(--ink-2);
}

/* ---- home hero: the red field and the five layers */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 55%),
        linear-gradient(160deg, var(--red) 0%, #d20000 55%, var(--red-deep) 100%);
    color: #fff;
    padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 88px);
}

.hero::after {
    /* the cream band of the firm's building, along the foot of the red field */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10px;
    background: var(--cream);
    opacity: 0.85;
}

.hero-grid {
    display: grid;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

@media (min-width: 960px) {
    .hero-grid {
        grid-template-columns: 1.02fr 1fr;
    }
}

.hero h1 {
    font-size: clamp(1.75rem, 0.9rem + 4.6vw, 4.6rem);
    hyphens: manual;
    margin-bottom: 0.35em;
}

.hero .lead {
    color: #fff;
}

.hero .kicker {
    color: #fff;
}

.stack {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
    perspective: 900px;
}

.stack li {
    --d: 0s;
    animation: lay 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    animation-delay: var(--d);
}

.stack li:nth-child(2) { --d: 0.12s; }
.stack li:nth-child(3) { --d: 0.24s; }
.stack li:nth-child(4) { --d: 0.36s; }
.stack li:nth-child(5) { --d: 0.48s; }

@keyframes lay {
    from {
        opacity: 0;
        transform: translateX(60px) rotateY(-14deg);
    }
}

.layer {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 74px;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--ink);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18), 0 14px 26px -18px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.layer:hover,
.layer:focus-visible {
    transform: translateX(-10px);
    color: var(--ink);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18), 0 22px 30px -18px rgba(0, 0, 0, 0.7);
}

.layer:focus-visible {
    outline: 3px solid #fff;
}

.layer-n {
    font-family: var(--display);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.3em 0.55em;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
}

.layer-name {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.02rem, 0.9rem + 0.6vw, 1.3rem);
    line-height: 1.15;
}

.layer-name small {
    display: block;
    margin-top: 3px;
    font-family: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0;
}

.layer-name,
.layer-name small {
    background: none;
}

.layer-arrow {
    font-size: 1.3rem;
    font-weight: 800;
}

/* each layer drawn as its material, in CSS only */
.layer-wool {
    background:
        repeating-linear-gradient(-62deg, rgba(160, 110, 10, 0.22) 0 2px, transparent 2px 9px),
        repeating-linear-gradient(58deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 11px),
        var(--wool);
    min-height: 96px;
}

.layer-plaster {
    background:
        radial-gradient(circle at 30% 40%, rgba(120, 100, 70, 0.22) 1.2px, transparent 1.6px) 0 0 / 9px 9px,
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.9) 1.2px, transparent 1.6px) 0 0 / 7px 7px,
        var(--plaster);
}

.layer-board {
    background:
        radial-gradient(circle, rgba(60, 64, 70, 0.55) 2px, transparent 2.6px) 40px 50% / 120px 100% no-repeat,
        linear-gradient(90deg, transparent calc(100% - 2px), rgba(60, 64, 70, 0.28) 0) 0 0 / 160px 100%,
        linear-gradient(180deg, #eef0f1, var(--board));
}

.layer-membrane {
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 5px),
        linear-gradient(180deg, transparent 0 46%, rgba(255, 255, 255, 0.12) 46% 50%, transparent 50%),
        var(--membrane);
    color: var(--on-dark);
}

.layer-membrane:hover,
.layer-membrane:focus-visible {
    color: #fff;
}

.layer-screed {
    background:
        radial-gradient(circle at 20% 30%, rgba(40, 40, 40, 0.22) 0.9px, transparent 1.3px) 0 0 / 6px 6px,
        radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.5) 0.9px, transparent 1.3px) 0 0 / 8px 8px,
        linear-gradient(180deg, #c7c4bc, var(--screed));
}

.stack-note {
    margin: 12px 0 0;
    font-size: 0.85rem;
    color: #fff;
    opacity: 0.92;
}

/* ---- bands */
.band {
    padding: clamp(48px, 7vw, 96px) 0;
}

.band-tight {
    padding: clamp(28px, 4vw, 52px) 0;
}

.band-sheet {
    background: var(--sheet);
}

.band-dark {
    background:
        radial-gradient(80% 60% at 0% 0%, rgba(232, 0, 0, 0.16), transparent 60%),
        var(--graphite);
    color: var(--on-dark);
}

.band-dark h2,
.band-dark h3 {
    color: #fff;
}

.band-dark a {
    color: var(--straw);
}

.band-dark a:hover {
    color: #fff;
}

.band-dark .kicker {
    color: var(--straw);
}

.section-head {
    display: grid;
    gap: 8px 40px;
    margin-bottom: clamp(24px, 4vw, 44px);
}

@media (min-width: 900px) {
    .section-head {
        grid-template-columns: 1fr 1fr;
        align-items: end;
    }

    .section-head > p {
        margin-bottom: 0.4em;
    }
}

.section-head h2 {
    margin: 0;
}

.section-head .kicker {
    color: var(--red-ink);
}

.band-dark .section-head .kicker {
    color: var(--straw);
}

/* ---- areas: a numbered trail of the ten fields of the home text */
.areas {
    counter-reset: area;
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0;
    border-top: 2px solid var(--ink);
}

.areas > li {
    counter-increment: area;
    display: grid;
    grid-template-columns: 3.2rem 1fr;
    gap: 6px 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.areas > li::before {
    content: counter(area, decimal-leading-zero);
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--red-ink);
    line-height: 1.4;
}

.areas p {
    margin: 0;
}

.areas .brands {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.areas .brands li {
    display: block;
    padding: 0.2em 0.65em;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--sheet);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.areas .brands li::before {
    content: none;
}

@media (min-width: 900px) {
    .areas > li {
        grid-template-columns: 4rem 1.3fr 1fr;
        align-items: start;
    }

    .areas .brands {
        grid-column: 3;
        margin: 0;
        justify-content: flex-end;
    }
}

/* ---- brand wall */
.brandwall {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.25rem, 0.9rem + 1.8vw, 2.4rem);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.brandwall li:nth-child(3n + 1) {
    color: #fff;
}

.brandwall li:nth-child(3n + 2) {
    color: var(--on-dark-2);
}

.brandwall li:nth-child(3n) {
    color: var(--straw);
}

/* ---- bento */
.bento {
    display: grid;
    gap: 16px;
}

@media (min-width: 820px) {
    .bento {
        grid-template-columns: repeat(6, 1fr);
    }

    .bento > :nth-child(1) {
        grid-column: span 4;
    }

    .bento > :nth-child(2) {
        grid-column: span 2;
    }

    .bento > :nth-child(3) {
        grid-column: span 3;
    }

    .bento > :nth-child(4) {
        grid-column: span 3;
    }
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: clamp(20px, 3vw, 32px);
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px -24px rgba(0, 0, 0, 0.45);
    color: var(--ink);
}

.tile h3 {
    margin: 0;
}

.tile p {
    margin: 0;
    color: var(--ink-2);
}

.tile-red {
    background: linear-gradient(150deg, var(--red), var(--red-deep));
    border-color: transparent;
    color: #fff;
}

.tile-red p {
    color: #fff;
}

a.tile-red:hover {
    color: #fff;
}

.tile-dark {
    background: var(--graphite-2);
    border-color: transparent;
    color: var(--on-dark);
}

.tile-dark p {
    color: var(--on-dark-2);
}

a.tile-dark:hover {
    color: var(--on-dark);
}

.tile-more {
    margin-top: auto;
    padding-top: 10px;
    font-weight: 800;
}

.tile-photo {
    padding: 0;
}

.tile-photo figure {
    margin: 0;
}

/* ---- inner page heads */
.page-head {
    padding: clamp(22px, 4vw, 44px) 0 clamp(28px, 4vw, 48px);
}

.page-head h1 {
    max-width: 22ch;
}

.page-head.red {
    margin-top: 0;
    background: linear-gradient(160deg, var(--red), var(--red-deep));
    color: #fff;
}

.page-head.red .lead,
.page-head.red .kicker {
    color: #fff;
}

.page-head .kicker {
    color: var(--red-ink);
}

/* ---- product range: groups */
.groups {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 760px) {
    .groups {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .groups {
        grid-template-columns: repeat(3, 1fr);
    }
}

.group-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    padding: 0;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.group-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px -24px rgba(0, 0, 0, 0.45);
    color: var(--ink);
}

.group-card .swatch {
    height: 70px;
    border-radius: 0;
    box-shadow: none;
    min-height: 0;
}

.group-card .body {
    padding: 4px 22px 22px;
}

.group-card h2,
.group-card h3 {
    margin: 0 0 6px;
    font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
}

.group-card p {
    margin: 0;
    color: var(--ink-2);
    font-size: 0.95rem;
}

/* subgroups and applications on a group page */
.toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.toc a {
    display: inline-block;
    padding: 0.4em 0.85em;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}

.toc a:hover {
    background: #fff;
    color: var(--red-ink);
}

.subgroup {
    padding: clamp(28px, 4vw, 48px) 0;
    border-bottom: 1px solid var(--line);
}

.subgroup > h2 {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.subgroup > h2 .n {
    color: var(--red-ink);
    font-size: 0.6em;
}

.apps {
    display: grid;
    gap: 14px;
}

@media (min-width: 900px) {
    .apps {
        grid-template-columns: repeat(2, 1fr);
    }
}

.app {
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    background: var(--sheet);
    border: 1px solid var(--line);
}

.app h3 {
    margin: 0 0 10px;
    font-family: var(--text);
    font-weight: 800;
    letter-spacing: 0;
    font-size: 1.05rem;
}

.app-empty {
    margin: 0;
    color: var(--steel);
    font-size: 0.92rem;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chips a {
    display: inline-block;
    padding: 0.32em 0.75em;
    border-radius: 7px;
    background: var(--cream);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.chips a:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.chips a[aria-current] {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* ---- product page */
.product {
    display: grid;
    gap: clamp(24px, 4vw, 56px);
    padding-bottom: clamp(36px, 5vw, 64px);
}

@media (min-width: 900px) {
    .product {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        align-items: start;
    }

    .product-media {
        position: sticky;
        top: 140px;
    }
}

.product-media {
    margin: 0;
    padding: clamp(18px, 3vw, 32px);
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
    text-align: center;
}

.product-media img {
    max-height: 420px;
    width: auto;
}

.product-media a {
    display: inline-block;
}

.product-noimg {
    display: grid;
    place-items: center;
    min-height: 220px;
    border-radius: 12px;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--ink);
}

.product h1 {
    font-size: clamp(1.9rem, 1.2rem + 3vw, 3.4rem);
    letter-spacing: -0.015em;
}

.product-in {
    margin: 0 0 1.4em;
    color: var(--steel);
    font-size: 0.95rem;
}

.prose {
    max-width: 72ch;
}

.prose h2 {
    margin: 1.4em 0 0.45em;
    font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
}

.prose h2:first-child {
    margin-top: 0;
}

.prose ul {
    padding-left: 1.2em;
}

.prose li {
    margin: 0.25em 0;
}

.prose li::marker {
    color: var(--red-ink);
}

.prose img {
    border-radius: 8px;
}

.spec-wrap {
    overflow-x: auto;
    margin: 0.6em 0 1.4em;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--sheet);
}

.spec {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

.spec td,
.spec th {
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.spec tr:last-child td {
    border-bottom: 0;
}

.spec tr:nth-child(even) td {
    background: #faf8f3;
}

.spec th {
    background: var(--ink);
    color: #fff;
    font-weight: 800;
}

.spec p {
    margin: 0;
}

.files {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .files {
        grid-template-columns: repeat(2, 1fr);
    }
}

.files a {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--sheet);
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.files a:hover {
    border-color: var(--red);
    transform: translateY(-2px);
    color: var(--ink);
}

.file-type {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 54px;
    border-radius: 6px 14px 6px 6px;
    background: var(--red);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.file-label small {
    display: block;
    font-weight: 500;
    color: var(--steel);
    font-size: 0.85rem;
}

.related {
    padding: clamp(28px, 4vw, 48px) 0;
    border-top: 1px solid var(--line);
}

.related h2 {
    font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
}

.related-block + .related-block {
    margin-top: 22px;
}

.related-block h3 {
    margin: 0 0 10px;
    font-family: var(--text);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0;
}

/* ---- details (technical drawings) */
.detail-groups {
    display: grid;
    gap: 16px;
}

@media (min-width: 900px) {
    .detail-groups {
        grid-template-columns: repeat(2, 1fr);
    }
}

.detail-group {
    padding: 22px;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
}

.detail-group h2 {
    font-size: clamp(1.2rem, 1rem + 0.8vw, 1.55rem);
}

.detail-group h3 {
    margin: 1em 0 0.4em;
    font-family: var(--text);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0;
    color: var(--steel);
}

.detail-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-list li {
    border-top: 1px solid var(--line);
}

.detail-list a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 2px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}

.detail-list a::after {
    content: "→";
    color: var(--red-ink);
    font-weight: 800;
}

.detail-list a:hover {
    color: var(--red-ink);
}

.drawing {
    margin: 0 0 1.4em;
    padding: 14px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    text-align: center;
}

.drawing a {
    display: inline-block;
}

.drawing figcaption {
    margin-top: 8px;
    font-size: 0.88rem;
    color: var(--steel);
}

/* ---- catalogues */
.cat-grid {
    display: grid;
    gap: 18px;
}

@media (min-width: 900px) {
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cat {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
}

.cat figure {
    margin: 0;
}

.cat h2 {
    font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
}

.cat .files {
    grid-template-columns: 1fr;
}

.cat .files a {
    padding: 8px 10px;
    font-size: 0.93rem;
}

.cat .file-type {
    width: 38px;
    height: 44px;
    font-size: 0.68rem;
}

@media (max-width: 520px) {
    .cat {
        grid-template-columns: 1fr;
    }

    .cat figure {
        max-width: 140px;
    }
}

/* ---- about */
.duo {
    display: grid;
    gap: clamp(24px, 4vw, 56px);
}

@media (min-width: 900px) {
    .duo {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: start;
    }
}

.photo-card {
    margin: 0;
    padding: 12px;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
}

.photo-card img {
    display: block;
    border-radius: 10px;
}

.photo-card figcaption {
    padding: 10px 4px 2px;
    font-size: 0.9rem;
    color: var(--ink-2);
}

.photo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.facts {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.facts li {
    padding: 14px 16px;
    border-left: 4px solid var(--red);
    background: var(--sheet);
    border-radius: 0 10px 10px 0;
}

/* ---- contact */
.contact-grid {
    display: grid;
    gap: 18px;
}

@media (min-width: 960px) {
    .contact-grid {
        grid-template-columns: 0.9fr 1.1fr;
        align-items: start;
    }
}

.card {
    padding: clamp(20px, 3vw, 32px);
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
}

.big-phone {
    display: inline-block;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.8rem);
    letter-spacing: -0.02em;
    color: var(--red-ink);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

.big-phone:hover {
    color: var(--ink);
}

.contact-list {
    margin: 0;
    display: grid;
    gap: 14px;
}

.contact-list div {
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.contact-list dt {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--steel);
}

.contact-list dd {
    margin: 4px 0 0;
}

.contact-form {
    display: grid;
    gap: 14px;
}

.contact-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75em 0.9em;
    border: 1.5px solid #b9b1a2;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid rgba(232, 0, 0, 0.35);
    border-color: var(--red-ink);
}

.contact-form ul {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    color: var(--red-ink);
    font-size: 0.9rem;
}

.form-hint {
    margin: 0;
    font-size: 0.88rem;
    color: var(--steel);
}

.contact-sent {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #e9f4ea;
    color: #1d4a22;
}

.contact-sent strong {
    display: block;
}

/* ---- call band */
.cta {
    background:
        linear-gradient(110deg, var(--red) 0%, var(--red-deep) 70%, var(--red-night) 100%);
    color: #fff;
    padding: clamp(36px, 5vw, 64px) 0;
}

.cta-row {
    display: grid;
    gap: 18px;
    align-items: center;
}

@media (min-width: 900px) {
    .cta-row {
        grid-template-columns: 1fr auto;
    }
}

.cta h2 {
    margin: 0 0 0.3em;
    color: #fff;
}

.cta p {
    margin: 0;
}

.cta .phone-big {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.6rem);
    color: #fff;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

.cta .phone-big:hover {
    text-decoration: underline;
    color: #fff;
}

.cta a:focus-visible {
    outline-color: #fff;
}

/* ---- footer */
.foot {
    background: var(--graphite);
    color: var(--on-dark-2);
    padding: clamp(40px, 6vw, 72px) 0 24px;
    font-size: 0.95rem;
}

.foot a {
    color: var(--on-dark);
}

.foot a:hover {
    color: var(--straw);
}

.foot a:focus-visible {
    outline-color: var(--straw);
}

.foot h2 {
    margin: 0 0 0.8em;
    font-size: 0.82rem;
    font-family: var(--text);
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
}

.foot-grid {
    display: grid;
    gap: 28px;
}

@media (min-width: 760px) {
    .foot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .foot-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    }
}

.foot-logo {
    display: inline-block;
    margin: 0 0 14px;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--cream);
    line-height: 0;
}

.foot-logo img {
    width: 220px;
}

.foot-name {
    color: #fff;
    font-weight: 800;
}

.foot-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.foot address {
    font-style: normal;
}

.foot-phone {
    font-weight: 800;
    font-size: 1.1rem;
}

.foot-bottom {
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid var(--graphite-3);
    font-size: 0.86rem;
}

.foot-bottom p {
    margin: 0;
}

/* ---- 404 */
.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    text-align: center;
}

.not-found > div {
    max-width: 640px;
}

.not-found .code {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(4rem, 3rem + 8vw, 9rem);
    line-height: 1;
    color: var(--red-ink);
    margin: 0.3em 0 0.1em;
}

.not-found [lang="en"] {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

/* ---- reveal on scroll */
@supports (animation-timeline: view()) {
    .reveal {
        animation: rise linear both;
        animation-timeline: view();
        animation-range: entry 0% cover 28%;
    }

    @keyframes rise {
        from {
            opacity: 0;
            transform: translateY(26px);
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
/* ---- lightbox: /js/lightbox.js opens a linked image enlarged over the page, in a <dialog> ----
   Paste this block into the site's css/site.css. The overlay is dark in every theme and brings its own
   colours and box sizing, so it does not depend on the rest of the stylesheet. To recolour it to the
   site, set these on .lightbox (or on :root): --lb-bg, --lb-text, --lb-accent (focus ring),
   --lb-accent-soft (hover). */

[data-lightbox] {
    cursor: zoom-in;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 68px 12px 14px;
    border: 0;
    background: var(--lb-bg, rgba(12, 14, 16, 0.95));
    color: var(--lb-text, #f2f2f2);
    color-scheme: dark;
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox::backdrop {
    background: none;
}

.lightbox-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
}

.lightbox-caption {
    display: grid;
    place-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 56px;
    color: var(--lb-text, #f2f2f2);
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.lightbox-button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-button:hover {
    border-color: #ffffff;
    background-color: var(--lb-accent-soft, rgba(255, 255, 255, 0.16));
}

.lightbox-button:focus-visible {
    outline: 3px solid var(--lb-accent, #ffffff);
    outline-offset: 3px;
    border-radius: 50%;
}

.lightbox-button[hidden] {
    display: none;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.lightbox-prev,
.lightbox-next {
    bottom: 14px;
}

.lightbox-prev {
    left: 12px;
    rotate: 180deg;
}

.lightbox-next {
    right: 12px;
}

@media (min-width: 760px) {
    .lightbox {
        padding: 24px 84px 18px;
    }

    .lightbox-caption {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next,
    .lightbox-close {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] {
        animation: lightbox-in 0.2s ease;
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}

/* ---- headings of the sections on detail and group pages */
.subgroup > h2 {
    font-size: clamp(1.25rem, 1rem + 1.2vw, 1.85rem);
}

.prose .spec-wrap + h2,
.prose h2 {
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
}
