/* Алуминко-БГ: brushed aluminium, laminated glass with its green edge, and the red bar of the logo.
   Palette in CONTENT_SOURCE.md, "Design". One light theme with graphite bands. */

@font-face {
    font-family: 'TikTok Sans';
    src: url('/fonts/tiktok-sans.woff2') format('woff2');
    font-weight: 300 900;
    font-stretch: 75% 150%;
    font-display: swap;
}

/* JetBrains Mono has no ѝ: the spec labels never need it, and the system font draws it if they ever do. */
@font-face {
    font-family: 'JetBrains Mono';
    src: url('/fonts/jetbrains-mono.woff2') format('woff2');
    font-weight: 100 800;
    font-display: swap;
    unicode-range: U+0020-007E, U+00A0-00FF, U+0400-045C, U+045E-045F, U+2010-2026, U+20AC, U+2116, U+00D7, U+2022;
}

:root {
    --page: #f2f2f0;
    --sheet: #ffffff;
    --plate: #d8d8d8;
    --plate-hi: #f1f1ef;
    --plate-lo: #c9c9c7;
    --ink: #15181b;
    --ink-soft: #464c52;
    --line: #d3d4d2;
    --graphite: #1b1f22;
    --graphite-deep: #101315;
    --on-dark: #eef0ee;
    --on-dark-soft: #b7bdbf;
    --red: #ed1b24;
    --red-text: #b5121a;
    --red-deep: #9e0f16;
    --glass: #2b6b60;
    --glass-tint: #dcece7;
    --glass-edge: #6fae9f;
    --radius: 18px;
    --radius-s: 10px;
    --wrap: 1200px;
    --display: 'TikTok Sans', 'Arial Narrow', system-ui, sans-serif;
    --text: 'TikTok Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'DejaVu Sans Mono', monospace;
    --brushed: repeating-linear-gradient(90deg, rgb(255 255 255 / .22) 0 1px, rgb(0 0 0 / .025) 1px 3px, rgb(255 255 255 / .1) 3px 4px),
        linear-gradient(180deg, var(--plate-hi), var(--plate) 55%, var(--plate-lo));
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.0625rem;
    font-stretch: 100%;
    line-height: 1.6;
    font-variation-settings: 'opsz' 14;
}

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

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

a:hover {
    color: var(--red-deep);
    text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
    font-family: var(--display);
    font-stretch: 125%;
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.02em;
    margin: 0 0 .5em;
    font-variation-settings: 'opsz' 36;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.3rem, 1.4rem + 4.2vw, 4.6rem);
}

h2 {
    font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.9rem);
}

h3 {
    font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem);
    font-stretch: 112%;
    letter-spacing: -.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;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
}

.skip:focus {
    top: 12px;
    color: #fff;
}

.eyebrow {
    font-family: var(--mono);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--red-text);
    margin-bottom: .9rem;
}

.note {
    color: var(--ink-soft);
    font-size: .95rem;
}

.lead {
    font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem);
    color: var(--ink-soft);
    max-width: 38em;
}

/* ---- buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    min-height: 48px;
    padding: .7em 1.35em;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-stretch: 110%;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

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

.btn-ghost {
    background: transparent;
    color: var(--ink);
}

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

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

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

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

.btn-outline:hover {
    background: #fff;
    border-color: #fff;
    color: var(--red-deep);
}

.link-arrow {
    font-weight: 700;
    text-decoration: none;
    color: var(--red-text);
}

.link-arrow::after {
    content: ' →';
    display: inline-block;
    transition: transform .2s ease;
}

.link-arrow:hover::after {
    transform: translateX(4px);
}

/* ---- header ---- */

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(242 242 240 / .86);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid rgb(21 24 27 / .08);
}

.top::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: linear-gradient(90deg, var(--red) 0 22%, transparent 22%);
}

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

.brand {
    flex: 0 1 auto;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 0 rgb(255 255 255 / .8) inset, 0 2px 8px rgb(0 0 0 / .12);
}

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

.call {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--red-text);
    color: #fff;
    font-weight: 700;
    font-stretch: 110%;
    text-decoration: none;
    white-space: nowrap;
    font-variant-numeric: lining-nums tabular-nums;
}

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

.lang {
    display: flex;
    gap: 4px;
    font-family: var(--mono);
    font-size: .85rem;
    font-weight: 600;
}

.lang a,
.lang span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    border-radius: 8px;
    text-decoration: none;
}

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

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

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

.menu-toggle {
    display: none;
}

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

.nav a {
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.nav a:hover {
    background: rgb(21 24 27 / .06);
    color: var(--ink);
}

.nav a[aria-current] {
    color: var(--red-text);
}

.nav a[aria-current]::after {
    content: '';
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 3px;
    height: 3px;
    border-radius: 2px;
    background: var(--red);
}

.top .wrap {
    width: min(100% - 32px, 1360px);
}

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

    .nav {
        flex-basis: auto;
        order: 2;
        margin-inline: 0 auto;
        flex-wrap: nowrap;
    }

    .nav a {
        white-space: nowrap;
    }

    .brand {
        order: 1;
    }

    .call {
        order: 3;
        margin-left: 0;
    }

    .lang {
        order: 4;
    }
}

/* With the script, phones get a menu button; without it the navigation simply wraps. */
@media (max-width: 699px) {
    .top-row {
        gap: 8px 10px;
        padding-block: 8px;
    }

    .brand {
        margin-right: auto;
    }

    .brand img {
        width: 150px;
    }

    .js .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 2px solid var(--ink);
        border-radius: 10px;
        background: transparent;
        color: var(--ink);
        cursor: pointer;
    }

    .menu-bars,
    .menu-bars::before,
    .menu-bars::after {
        display: block;
        width: 18px;
        height: 2px;
        background: currentColor;
        border-radius: 2px;
        position: relative;
    }

    .menu-bars::before,
    .menu-bars::after {
        content: '';
        position: absolute;
        left: 0;
    }

    .menu-bars::before {
        top: -6px;
    }

    .menu-bars::after {
        top: 6px;
    }

    .js .nav {
        display: none;
        flex-direction: column;
        padding-bottom: 8px;
    }

    .js .nav.is-open {
        display: flex;
    }

    .js .nav a {
        padding: 12px 10px;
        font-size: 1.1rem;
    }

    .call {
        order: 5;
        flex: 1 1 100%;
        justify-content: center;
        margin-left: 0;
        min-height: 42px;
        padding-block: 6px;
    }

    .nav {
        order: 6;
    }
}

/* ---- hero: the pane of glass slides down into its profile ---- */

.hero {
    position: relative;
    padding-block: clamp(36px, 6vw, 80px) clamp(40px, 6vw, 88px);
    overflow: clip;
    background:
        radial-gradient(60rem 30rem at 85% 10%, rgb(111 174 159 / .22), transparent 70%),
        linear-gradient(180deg, var(--page), #e7e8e6);
}

.hero-grid {
    display: grid;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    }
}

.hero-text {
    container-type: inline-size;
}

.hero h1 {
    position: relative;
    padding-bottom: .4em;
    font-size: min(clamp(2.3rem, 1.4rem + 4.2vw, 4.6rem), 13cqi);
}

.hero h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(320px, 70%);
    height: 10px;
    background: linear-gradient(90deg, #fff 0 22px, var(--red) 22px);
    border-left: 22px solid var(--red);
    animation: bar-in .9s .2s cubic-bezier(.2, .8, .2, 1) both;
    transform-origin: left;
}

@keyframes bar-in {
    from {
        transform: scaleX(0);
    }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.6rem;
}

.pane-stage {
    margin: 0;
    position: relative;
    padding-top: 12px;
}

.pane {
    position: relative;
    z-index: 1;
    margin-inline: 6%;
    padding: 10px;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(135deg, rgb(255 255 255 / .55), rgb(220 236 231 / .35));
    box-shadow: 0 0 0 1px rgb(111 174 159 / .7), 0 30px 60px -30px rgb(16 19 21 / .45);
    backdrop-filter: blur(6px);
    animation: pane-in 1.4s .35s cubic-bezier(.3, .7, .15, 1) both;
}

.pane img {
    border-radius: 2px;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* The green edge of the laminated glass: three layers, 8 + 8 mm with the foil between. */
.pane-edge {
    position: absolute;
    top: 0;
    bottom: 0;
    right: -7px;
    width: 7px;
    border-radius: 0 3px 0 0;
    background: linear-gradient(90deg, var(--glass-edge) 0 3px, #cfe6df 3px 4px, var(--glass-edge) 4px);
}

@keyframes pane-in {
    from {
        transform: translateY(-46px);
        opacity: 0;
    }

    60% {
        opacity: 1;
    }
}

.profile {
    position: relative;
    z-index: 2;
    height: 58px;
    margin-top: -18px;
    border-radius: 6px;
    background: var(--brushed);
    box-shadow: 0 1px 0 #fff inset, 0 -1px 0 rgb(0 0 0 / .15) inset, 0 18px 30px -18px rgb(0 0 0 / .45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 14px 10px;
}

/* The slot of the profile the glass stands in. */
.profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 6%;
    right: 6%;
    height: 16px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(180deg, #8f9496, #b9bdbe);
    box-shadow: 0 2px 0 rgb(255 255 255 / .6);
}

.profile-spec {
    font-family: var(--mono);
    font-size: clamp(.62rem, .5rem + .45vw, .82rem);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #2d3236;
    text-align: center;
}

.pane-stage figcaption {
    margin-top: 12px;
    font-size: .85rem;
    color: var(--ink-soft);
}

/* ---- facts ---- */

.facts {
    background: var(--graphite);
    color: var(--on-dark);
}

.facts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    gap: 1px;
    background: rgb(255 255 255 / .12);
}

.fact {
    padding: 26px 20px;
    background: var(--graphite);
    container-type: inline-size;
}

.fact strong {
    display: block;
    font-family: var(--display);
    font-stretch: 125%;
    font-weight: 800;
    font-size: min(3rem, 22cqi);
    line-height: 1;
    color: #fff;
    letter-spacing: -.02em;
}

.fact strong::after {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    margin: 12px 0 10px;
    background: var(--red);
}

.fact span {
    color: var(--on-dark-soft);
    font-size: .98rem;
}

/* ---- sections ---- */

.band {
    padding-block: clamp(48px, 7vw, 96px);
}

.band-dark {
    background:
        radial-gradient(50rem 24rem at 10% 0%, rgb(43 107 96 / .35), transparent 70%),
        var(--graphite-deep);
    color: var(--on-dark);
}

.band-dark a:not(.btn) {
    color: #fff;
}

.band-dark .eyebrow {
    color: #ff7a7f;
}

.band-steel {
    background: var(--brushed);
}

.section-head {
    max-width: 46rem;
    margin-bottom: clamp(24px, 4vw, 44px);
}

.section-head p:last-child {
    color: var(--ink-soft);
}

.band-dark .section-head p:last-child {
    color: var(--on-dark-soft);
}

.duo {
    display: grid;
    gap: clamp(28px, 5vw, 64px);
}

@media (min-width: 900px) {
    .duo {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

/* ---- products: a bento grid ---- */

.bento {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr);
}

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

    .bento-crystal-line {
        grid-column: span 2;
    }
}

@media (min-width: 1000px) {
    .bento {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: 250px;
    }

    .bento-crystal-line {
        grid-column: span 2;
        grid-row: span 2;
    }

    .bento-elux {
        grid-column: span 4;
    }
}

.bento a {
    container-type: inline-size;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    min-height: 240px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--graphite);
    color: #fff;
    text-decoration: none;
    isolation: isolate;
}

.bento img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}

.bento-doors img {
    object-fit: contain;
    object-position: 85% 50%;
    background: #e9eae8;
    padding: 14px;
}

.bento a::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgb(16 19 21 / .04) 0%, rgb(16 19 21 / .6) 48%, rgb(16 19 21 / .93) 100%);
}

.bento a:hover img {
    transform: scale(1.05);
}

.bento-text {
    padding: 20px 22px;
    border-left: 6px solid var(--red);
    margin: 0 0 18px;
}

.bento-text strong {
    display: block;
    font-family: var(--display);
    font-stretch: 118%;
    font-weight: 800;
    font-size: min(clamp(1.2rem, 1rem + .8vw, 1.6rem), 9.5cqi);
    line-height: 1.1;
}

.bento-text small {
    display: block;
    margin-top: 6px;
    font-size: .92rem;
    color: #e3e6e5;
    max-width: 34em;
}

/* ---- Crystal Line types: a sideways strip of glass plates ---- */

.type-strip {
    list-style: none;
    margin: 0 -16px;
    padding: 6px 16px 18px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 214px;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--glass-edge) transparent;
}

.type-strip li {
    scroll-snap-align: start;
}

.type-strip a {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 230px;
    padding: 16px 16px 0;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(160deg, rgb(220 236 231 / .16), rgb(111 174 159 / .08));
    box-shadow: 0 0 0 1px rgb(111 174 159 / .5) inset;
    color: var(--on-dark);
    text-decoration: none;
    position: relative;
    transition: transform .25s ease, background-color .25s ease;
}

.type-strip a::after {
    content: '';
    margin: auto -16px 0;
    height: 22px;
    border-radius: 0 0 4px 4px;
    background: var(--brushed);
}

.type-strip a:hover {
    transform: translateY(-6px);
    background-color: rgb(111 174 159 / .14);
}

.type-code {
    font-family: var(--display);
    font-stretch: 140%;
    font-weight: 900;
    font-size: 3.2rem;
    line-height: 1;
    color: #fff;
}

.type-mount {
    margin-top: 10px;
    font-size: .95rem;
    color: var(--on-dark);
}

.type-spec {
    margin: 12px 0 14px;
    font-family: var(--mono);
    font-size: .8rem;
    color: #a9d4ca;
}

.types-more {
    margin: 26px 0 0;
}

/* ---- catalogues ---- */

.catalog-shelf h3 {
    margin-bottom: 18px;
}

.shelf,
.catalog-row {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
}

.catalog-row {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 230px));
}

.catalog {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.catalog img {
    border-radius: 4px;
    box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 8px 10px 0 -2px var(--plate), 0 14px 26px -14px rgb(0 0 0 / .45);
    transition: transform .25s ease;
    background: #fff;
}

.catalog:hover img {
    transform: translateY(-4px) rotate(-1deg);
}

.catalog-text strong {
    display: block;
    font-stretch: 110%;
    line-height: 1.25;
}

.catalog-text small {
    display: block;
    margin-top: 4px;
    color: var(--ink-soft);
    font-size: .85rem;
}

.catalog:hover strong {
    color: var(--red-text);
}

.file-type {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--red-text);
    color: #fff;
    font-family: var(--mono);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    vertical-align: 1px;
}

/* ---- distributors teaser ---- */

.dist-teaser {
    display: grid;
    gap: 28px;
    align-items: center;
}

@media (min-width: 900px) {
    .dist-teaser {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    }
}

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

.cities li {
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    font-stretch: 112%;
}

.cities li:first-child {
    background: var(--red-text);
}

/* ---- call band: the logo's red bar at full bleed ---- */

.call-band {
    position: relative;
    background: var(--red-text);
    color: #fff;
    padding-block: clamp(40px, 6vw, 72px);
    overflow: clip;
}

.call-band::before {
    content: 'А';
    position: absolute;
    right: -0.05em;
    bottom: -0.32em;
    font-family: var(--display);
    font-stretch: 150%;
    font-weight: 900;
    font-size: clamp(12rem, 28vw, 26rem);
    line-height: 1;
    color: rgb(255 255 255 / .07);
    pointer-events: none;
}

.call-grid {
    position: relative;
    display: grid;
    gap: 24px;
    align-items: center;
}

@media (min-width: 900px) {
    .call-grid {
        grid-template-columns: minmax(0, 1.3fr) auto;
    }
}

.call-band h2 {
    color: #fff;
}

.call-band p {
    max-width: 36em;
    margin: 0;
}

.call-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.big-phone {
    font-size: 1.2rem;
    font-variant-numeric: lining-nums tabular-nums;
}

/* ---- page hero (inner pages) ---- */

.page-hero {
    padding-block: clamp(32px, 5vw, 64px) clamp(32px, 5vw, 56px);
    background:
        radial-gradient(48rem 22rem at 90% 0%, rgb(111 174 159 / .2), transparent 70%),
        linear-gradient(180deg, var(--page), #e7e8e6);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.8rem);
    position: relative;
    padding-bottom: .35em;
}

.page-hero h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 120px;
    height: 7px;
    background: var(--red);
}

.ph-grid {
    display: grid;
    gap: 28px;
    align-items: center;
}

@media (min-width: 900px) {
    .ph-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    }
}

.ph-pane {
    margin: 0;
    padding: 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgb(255 255 255 / .7), rgb(220 236 231 / .4));
    box-shadow: 0 0 0 1px rgb(111 174 159 / .7), 0 24px 48px -28px rgb(16 19 21 / .45);
    justify-self: center;
    position: relative;
}

.ph-pane::after {
    content: '';
    position: absolute;
    left: -8px;
    right: -8px;
    bottom: -14px;
    height: 16px;
    border-radius: 4px;
    background: var(--brushed);
    box-shadow: 0 10px 18px -10px rgb(0 0 0 / .4);
}

.ph-pane img {
    max-height: 420px;
    width: auto;
}

.crumbs {
    font-size: .92rem;
    color: var(--ink-soft);
    margin-bottom: 14px;
}

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

.crumbs [aria-current] {
    color: var(--ink);
    font-weight: 600;
}

/* ---- prose and product sections ---- */

.prose {
    max-width: 46rem;
}

.wrap.prose {
    max-width: none;
}

.wrap.prose > * {
    max-width: 46rem;
}

.prose h2 {
    margin-top: 1.4em;
}

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

.prose li {
    margin-bottom: .35em;
}

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

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

.item {
    display: grid;
    gap: clamp(20px, 4vw, 48px);
    padding-block: clamp(28px, 4vw, 48px);
    border-top: 1px solid var(--line);
    scroll-margin-top: 140px;
}

.item:first-child {
    border-top: 0;
    padding-top: 0;
}

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

.item figure {
    margin: 0;
}

.item figure a {
    display: block;
    border-radius: var(--radius-s);
    overflow: hidden;
    background: #eceeec;
}

.item figure img {
    margin-inline: auto;
}

.item-code {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font-family: var(--mono);
    font-weight: 700;
    font-size: .9rem;
}

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

.specs li {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--glass-tint);
    color: #173f38;
    font-family: var(--mono);
    font-size: .82rem;
    font-weight: 600;
}

.plus {
    list-style: none;
    padding: 0;
    margin: 0 0 1em;
}

.plus li {
    position: relative;
    padding-left: 26px;
    margin-bottom: .4em;
}

.plus li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .62em;
    width: 14px;
    height: 4px;
    background: var(--red);
}

.tech {
    width: 100%;
    max-width: 40rem;
    border-collapse: collapse;
    font-size: .95rem;
    margin-bottom: 1em;
}

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

.tech td {
    font-family: var(--mono);
    font-size: .85rem;
    white-space: nowrap;
}

.tech th {
    font-weight: 500;
}

.table-scroll {
    overflow-x: auto;
}

.figs {
    list-style: none;
    margin: 0 0 1.4em;
    padding: 0;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
}

.figs figure {
    margin: 0;
    padding: 10px;
    background: #fff;
    border-radius: var(--radius-s);
    box-shadow: 0 0 0 1px var(--line);
}

.figs img {
    margin-inline: auto;
}

.figs figcaption {
    margin-top: 8px;
    font-size: .88rem;
    font-weight: 600;
    text-align: center;
}

/* ---- gallery ---- */

.band-gallery {
    background: var(--graphite);
    color: var(--on-dark);
}

.band-gallery .note {
    color: var(--on-dark-soft);
}

.gallery {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(min(46%, 260px), 1fr));
}

.gallery a {
    display: block;
    border-radius: var(--radius-s);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #2a3034;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.gallery-doors {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
}

.gallery-doors a {
    aspect-ratio: 197 / 400;
    background: #e9eae8;
}

.gallery-doors img {
    object-fit: contain;
}

.gallery a:hover img {
    transform: scale(1.04);
}

/* ---- documents ---- */

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

.h-docs {
    margin-top: clamp(36px, 5vw, 60px);
}

.docs {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}

.doc {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: var(--radius-s);
    background: var(--page);
    box-shadow: 0 0 0 1px var(--line);
}

.doc figure {
    margin: 0;
}

.doc figure > a {
    display: block;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 6px 18px -10px rgb(0 0 0 / .35);
}

.doc-small {
    padding: 16px 0;
}

.doc-small img {
    margin-inline: auto;
}

.doc figcaption {
    margin-top: 10px;
    font-size: .88rem;
    color: var(--ink-soft);
    line-height: 1.45;
}

.doc figcaption strong {
    display: block;
    color: var(--ink);
    font-size: .98rem;
    margin-bottom: 2px;
}

.file {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.file small {
    display: block;
    font-weight: 400;
    color: #c9cdcf;
    font-size: .8rem;
}

.file:hover {
    background: var(--red-text);
    color: #fff;
}

.file:hover .file-type {
    background: #fff;
    color: var(--red-text);
}

/* ---- chips ---- */

.band-others {
    padding-block: clamp(36px, 5vw, 56px);
}

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

.chips a {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--sheet);
    box-shadow: 0 0 0 1px var(--line);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.chips a:hover {
    box-shadow: 0 0 0 2px var(--ink);
    color: var(--ink);
}

.chips a[aria-current] {
    background: var(--ink);
    color: #fff;
    box-shadow: none;
}

/* ---- products overview ---- */

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

.cat-list a {
    display: grid;
    gap: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--sheet);
    box-shadow: 0 0 0 1px var(--line);
    color: var(--ink);
    text-decoration: none;
    transition: box-shadow .2s ease, transform .2s ease;
}

@media (min-width: 720px) {
    .cat-list a {
        grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    }
}

.cat-list a:hover {
    box-shadow: 0 0 0 2px var(--ink);
    transform: translateY(-2px);
}

.cat-list img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    max-height: 260px;
    object-fit: cover;
}

.cat-list .cat-doors img {
    object-fit: contain;
    background: #e9eae8;
    padding: 12px;
}

.cat-body {
    padding: clamp(18px, 3vw, 30px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 6px solid var(--red);
}

.cat-body h2 {
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
}

.cat-body p {
    color: var(--ink-soft);
}

.cat-body .link-arrow {
    margin-top: auto;
}

.plain-list {
    margin: 22px 0 0;
    padding: 18px 22px;
    border-radius: var(--radius-s);
    background: var(--sheet);
    box-shadow: 0 0 0 1px var(--line);
}

/* ---- about ---- */

.figure-photo {
    margin: 0;
}

.figure-photo a {
    display: inline-block;
    border-radius: var(--radius-s);
    overflow: hidden;
}

.figure-photo figcaption {
    margin-top: 8px;
    font-size: .88rem;
    color: var(--ink-soft);
}

.doc-group + .doc-group {
    margin-top: clamp(32px, 5vw, 56px);
}

/* ---- distributors ---- */

.dist-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
}

.dist {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border-radius: var(--radius-s);
    background: var(--sheet);
    box-shadow: 0 0 0 1px var(--line);
    border-top: 5px solid var(--ink);
}

.dist-city {
    font-family: var(--mono);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--red-text);
}

.dist h2 {
    font-size: 1.35rem;
    margin: 0;
    font-stretch: 112%;
}

.dist-logo {
    height: 52px;
    display: flex;
    align-items: center;
}

.dist-logo img {
    max-height: 52px;
    width: auto;
}

.dist p {
    margin: 0;
    font-size: .98rem;
}

.dist dl {
    margin: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 12px;
    font-size: .98rem;
}

.dist dt {
    color: var(--ink-soft);
}

.dist dd {
    margin: 0;
    overflow-wrap: anywhere;
}

/* ---- contact ---- */

.contact-grid {
    display: grid;
    gap: 22px;
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    }
}

.card {
    padding: clamp(20px, 3vw, 34px);
    border-radius: var(--radius);
    background: var(--sheet);
    box-shadow: 0 0 0 1px var(--line);
}

.card-dark {
    background: var(--graphite);
    color: var(--on-dark);
    box-shadow: none;
}

.card-dark a:not(.btn) {
    color: #fff;
}

.card-dark .big-phone-link {
    display: inline-block;
    font-family: var(--display);
    font-stretch: 120%;
    font-weight: 800;
    font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem);
    line-height: 1.1;
    text-decoration: none;
    color: #fff;
    border-bottom: 4px solid var(--red);
    margin-bottom: 22px;
    font-variant-numeric: lining-nums;
}

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

.contact-list dt {
    font-family: var(--mono);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--on-dark-soft);
}

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

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

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #9ea3a6;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid var(--glass);
    outline-offset: 1px;
    border-color: var(--glass);
}

.contact-form .btn {
    justify-self: start;
}

.form-hint {
    font-size: .88rem;
    color: var(--ink-soft);
    margin: 0;
}

.contact-sent {
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--glass-tint);
    margin-bottom: 16px;
}

.contact-sent strong {
    display: block;
}

/* ---- footer ---- */

.foot {
    position: relative;
    background: var(--graphite-deep);
    color: var(--on-dark-soft);
    padding: 0 0 26px;
    font-size: .96rem;
}

.foot-bar {
    height: 10px;
    background: linear-gradient(90deg, var(--red) 0 28px, #fff 28px 40px, var(--red) 40px);
}

.foot-grid {
    display: grid;
    gap: 30px;
    padding-block: clamp(36px, 5vw, 60px);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.foot-firm {
    grid-column: 1 / -1;
}

@media (min-width: 1000px) {
    .foot-grid {
        grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    }

    .foot-firm {
        grid-column: auto;
    }
}

.foot h2 {
    font-size: 1rem;
    font-stretch: 112%;
    color: #fff;
    letter-spacing: 0;
    margin-bottom: 12px;
}

.foot a {
    color: #fff;
}

.foot a:hover {
    color: #ffb3b6;
}

.foot-logo {
    width: 236px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.foot-marks {
    margin-top: 16px;
    border-radius: 6px;
    background: #fff;
    width: 240px;
}

.foot address {
    font-style: normal;
}

.foot-contacts {
    margin: 0;
    display: grid;
    gap: 6px;
}

.foot-contacts div {
    display: grid;
    grid-template-columns: 4.6em minmax(0, 1fr);
    gap: 8px;
}

.foot-contacts dt {
    color: #8f979a;
}

.foot-contacts dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.foot-phone {
    font-weight: 700;
}

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

.foot-bottom {
    border-top: 1px solid rgb(255 255 255 / .1);
    padding-top: 18px;
    font-size: .88rem;
}

.foot-bottom p {
    margin: 0;
}

/* ---- 404 ---- */

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background: var(--brushed);
}

.not-found > div {
    max-width: 36rem;
    padding: clamp(24px, 5vw, 44px);
    border-radius: var(--radius);
    background: rgb(255 255 255 / .82);
    box-shadow: 0 0 0 1px rgb(111 174 159 / .7), 0 30px 60px -30px rgb(0 0 0 / .4);
}

.not-found img {
    width: 236px;
    border-radius: 8px;
    margin-bottom: 22px;
}

.not-found h1 {
    font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);
}

.not-found h2 {
    font-size: 1.4rem;
    margin-top: 1.6em;
}

/* ---- scroll reveals, where supported; the finished state otherwise ---- */

@supports (animation-timeline: view()) {
    .bento li,
    .type-strip li,
    .doc,
    .dist,
    .cat-list li {
        animation: rise both linear;
        animation-timeline: view();
        animation-range: entry 0% entry 60%;
    }

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

@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;
    }
}

/* ---- long galleries: twelve photos, then a checkbox shows the rest ---- */

.more-label {
    display: none;
    margin-top: 22px;
}

.more-hide {
    display: none;
}

.more-toggle:focus-visible + .more-label {
    outline: 3px solid #a9d4ca;
    outline-offset: 3px;
}

@supports selector(:has(*)) {
    .more-label {
        display: inline-flex;
    }

    .gallery-wrap:not(:has(.more-toggle:checked)) .gallery:has(~ .more-toggle) li:nth-child(n + 13) {
        display: none;
    }

    .gallery-wrap:has(.more-toggle:checked) .more-show {
        display: none;
    }

    .gallery-wrap:has(.more-toggle:checked) .more-hide {
        display: inline;
    }
}
