/* Делииванови ООД – the warehouse in section.
   Cladding silver of the new hall, the steel blue of the logo, mill-scale dark bands, the red block of
   the facade, the yellow of the stock tags (on dark only). Tektur (display) + Overpass (text, tables). */

@font-face {
    font-family: "Tektur";
    src: url("/fonts/tektur.woff2") format("woff2");
    font-weight: 400 900;
    font-stretch: 75% 100%;
    font-display: swap;
}

@font-face {
    font-family: "Overpass";
    src: url("/fonts/overpass.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --clad: #e7eaec;
    --sheet: #f7f8f9;
    --rib: #d2d7db;
    --ink: #1b2329;
    --muted: #4b5761;
    --steel: #3a6c86;
    --steel-deep: #24485b;
    --mill: #1b2329;
    --mill-2: #242e35;
    --mill-3: #33404a;
    --zinc: #c9d1d7;
    --red: #b3262d;
    --red-deep: #8e1d23;
    --tag: #f2c230;
    --on-dark: #eef1f3;
    --on-dark-muted: #b9c3ca;
    --radius: 14px;
    --display: "Tektur", "Arial Narrow", sans-serif;
    --text: "Overpass", "Segoe UI", Arial, sans-serif;
    --ribs: repeating-linear-gradient(90deg, transparent 0 34px, rgba(27, 35, 41, 0.07) 34px 36px, rgba(255, 255, 255, 0.55) 36px 38px, transparent 38px 48px);
    --ribs-dark: repeating-linear-gradient(90deg, transparent 0 34px, rgba(0, 0, 0, 0.18) 34px 36px, rgba(255, 255, 255, 0.045) 36px 38px, transparent 38px 48px);
    --lb-accent: #f2c230;
    --lb-accent-soft: rgba(242, 194, 48, 0.25);
}

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

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

body {
    margin: 0;
    background: var(--clad);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.6;
}

img,
svg {
    max-width: 100%;
}

img {
    height: auto;
    display: block;
}

a {
    color: var(--steel-deep);
    text-underline-offset: 0.18em;
}

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

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

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

h1 {
    font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.4rem);
    font-weight: 800;
}

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

h3 {
    font-size: 1.3rem;
}

p {
    margin: 0 0 1em;
}

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

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

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

.skip:focus {
    top: 12px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    min-height: 48px;
    padding: 0.7em 1.3em;
    border-radius: 999px;
    border: 2px solid transparent;
    font-family: var(--display);
    font-stretch: 90%;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.1;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

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

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

.btn-steel {
    background: var(--steel-deep);
    color: #fff;
}

.btn-steel:hover {
    background: var(--mill);
    color: #fff;
}

.btn-line {
    border-color: var(--on-dark-muted);
    color: var(--on-dark);
}

.btn-line:hover {
    border-color: var(--tag);
    color: var(--tag);
}

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

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 248, 249, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rib);
}

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

.brand {
    margin-right: auto;
    display: block;
    border-radius: 6px;
}

.brand img {
    width: clamp(210px, 26vw, 330px);
}

.call {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    padding: 0.5em 1em;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-family: var(--display);
    font-weight: 700;
    font-stretch: 90%;
    font-size: 1.05rem;
    text-decoration: none;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

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

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

.lang a,
.lang span {
    padding: 0.35em 0.6em;
    border-radius: 6px;
    text-decoration: none;
}

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

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

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

.menu-toggle {
    display: none;
}

.nav {
    background: var(--mill);
}

.nav-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
}

.nav a {
    position: relative;
    padding: 0.8em 0.9em;
    color: var(--on-dark);
    text-decoration: none;
    font-family: var(--display);
    font-weight: 600;
    font-stretch: 88%;
    font-size: 1.02rem;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0.9em;
    right: 0.9em;
    bottom: 0;
    height: 4px;
    background: var(--tag);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
}

.nav a:hover,
.nav a[aria-current] {
    color: #fff;
}

.nav a:hover::after,
.nav a[aria-current]::after {
    transform: scaleX(1);
}

@media (max-width: 760px) {
    .js-menu .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.5em;
        min-height: 40px;
        padding: 0.4em 0.9em;
        border: 2px solid var(--steel-deep);
        border-radius: 999px;
        background: transparent;
        color: var(--steel-deep);
        font: 600 0.95rem var(--display);
        cursor: pointer;
    }

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

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

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

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

    .js-menu .nav:not(.open) {
        display: none;
    }

    .nav-row {
        flex-direction: column;
        padding-block: 6px;
    }

    .nav a::after {
        left: 0;
        right: auto;
        top: 0.7em;
        bottom: 0.7em;
        width: 4px;
        height: auto;
    }

    .top-row {
        gap: 10px 12px;
    }

    .brand {
        flex-basis: 100%;
    }

    .brand img {
        width: min(300px, 100%);
    }
}

/* ---- the profile ends (SVG sections) ---- */

.sec {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    overflow: visible;
}

.sec path {
    fill: var(--zinc);
    stroke: var(--steel-deep);
    stroke-width: 1.6;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.sec .wire {
    fill: none;
    stroke-width: 3.2;
    stroke-linecap: round;
}

.sec-angle path {
    fill: var(--steel);
}

.draw path {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .draw path {
        stroke-dashoffset: 1;
        fill-opacity: 0;
        animation: draw 1.1s cubic-bezier(0.6, 0, 0.3, 1) forwards, fill-in 0.6s ease forwards;
        animation-delay: calc(0.25s + var(--i, 0) * 0.09s), calc(1s + var(--i, 0) * 0.09s);
    }
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fill-in {
    to {
        fill-opacity: 1;
    }
}

/* ---- hero ---- */

.hero,
.page-hero {
    background: var(--ribs), linear-gradient(180deg, var(--sheet), var(--clad));
    border-bottom: 1px solid var(--rib);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
    padding-block: clamp(36px, 6vw, 84px);
}

.hero h1 {
    max-width: 13ch;
}

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

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

.wall ul {
    list-style: none;
    margin: 0;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    background: linear-gradient(160deg, var(--mill-2), var(--mill));
    border-radius: calc(var(--radius) + 6px);
    box-shadow: 0 30px 60px -30px rgba(27, 35, 41, 0.6);
}

.wall li:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.wall li:nth-last-child(-n + 2) {
    grid-column: span 2;
}

.wall li:nth-last-child(-n + 2) a {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.wall li:nth-last-child(-n + 2) .sec {
    width: 38%;
    margin: 0;
}

.wall a {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 6px;
    padding: 10px 10px 9px;
    border-radius: 10px;
    background: radial-gradient(circle at 50% 42%, var(--mill-3), var(--mill-2) 70%);
    color: var(--on-dark);
    text-decoration: none;
    font-family: var(--display);
    font-stretch: 85%;
    font-weight: 600;
    font-size: 0.82rem;
    line-height: 1.15;
    outline-offset: 2px;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.wall .sec {
    width: 78%;
    margin-inline: auto;
}

.wall li:first-child .sec {
    width: 70%;
}

.wall li:first-child span {
    font-size: 1.15rem;
}

.wall .sec path {
    fill: #a9b4bc;
    stroke: #e8edf0;
}

.wall .sec .wire {
    stroke: #c7d0d6;
    fill: none;
}

.wall .sec-angle path {
    fill: #5f93ae;
}

.wall a:hover,
.wall a:focus-visible {
    box-shadow: inset 0 0 0 2px var(--tag);
    color: var(--tag);
}

.wall a:focus-visible {
    outline-color: var(--tag);
}

/* ---- stores strip ---- */

.stores {
    background: var(--sheet);
    border-bottom: 1px solid var(--rib);
}

.stores-grid {
    display: grid;
    grid-template-columns: auto 1fr 1fr auto;
    gap: 18px 36px;
    align-items: start;
    padding-block: 28px;
}

.stores h2 {
    font-size: 1.4rem;
    margin: 0;
    max-width: 8ch;
}

.store {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 14px;
    font-style: normal;
}

.store a {
    grid-column: 2;
}

.store-n {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--steel-deep);
    color: #fff;
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.3rem;
}

.store-hours h3 {
    font-size: 1rem;
    margin: 0 0 0.3em;
}

.hours {
    margin: 0;
}

.hours div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.hours dt,
.hours dd {
    margin: 0;
}

.hours dd {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
}

/* ---- bands ---- */

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

.band-dark {
    background: var(--ribs-dark), linear-gradient(180deg, var(--mill-2), var(--mill));
    color: var(--on-dark);
}

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

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

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 12px 48px;
    align-items: end;
    margin-bottom: clamp(24px, 3vw, 40px);
}

.section-head h2 {
    margin: 0;
}

.section-head p {
    margin: 0;
    max-width: 40em;
    color: var(--muted);
}

/* ---- products bento ---- */

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

.bento a,
.bento-docs > div {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 8px;
    height: 100%;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--rib);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.bento a:hover {
    border-color: var(--steel);
    transform: translateY(-3px);
    box-shadow: 0 18px 30px -22px rgba(27, 35, 41, 0.55);
    color: var(--ink);
}

.bento .sec {
    width: 64px;
}

.bento strong {
    font-family: var(--display);
    font-stretch: 85%;
    font-size: 1.3rem;
    line-height: 1.1;
}

.bento span {
    color: var(--muted);
    font-size: 0.97rem;
}

.bento li:nth-child(-n + 3) {
    grid-column: span 2;
}

.bento li:nth-child(-n + 3) a {
    grid-template-columns: 96px 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 20px;
    align-items: start;
}

.bento li:nth-child(-n + 3) .sec {
    width: 96px;
    grid-row: span 2;
}

.bento-rebar-preforms a {
    background: var(--steel-deep);
    border-color: var(--steel-deep);
    color: #fff;
}

.bento-rebar-preforms a:hover {
    color: #fff;
}

.bento-rebar-preforms span {
    color: #dbe6ec;
}

.bento-rebar-preforms .sec .wire {
    stroke: #fff;
    fill: none;
}

.bento-docs {
    grid-column: span 2;
}

.bento-docs > div {
    grid-template-rows: auto 1fr;
    background: transparent;
    border-style: dashed;
    border-color: #9aa5ad;
}

.more {
    margin: 28px 0 0;
}

/* ---- services band ---- */

.service-row {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 2px solid var(--mill-3);
}

.service-row li {
    padding: 22px 22px 6px 0;
    border-right: 1px solid var(--mill-3);
}

.service-row li + li {
    padding-left: 22px;
}

.service-row li:last-child {
    border-right: 0;
}

.service-row h3 {
    font-size: 1.35rem;
}

.service-row h3 a {
    text-decoration: none;
}

.service-row h3 a:hover {
    text-decoration: underline;
}

.service-row p {
    color: var(--on-dark-muted);
}

/* ---- photo strip ---- */

.strip {
    list-style: none;
    margin: 0;
    padding: 0 16px 12px max(16px, 50vw - 600px);
    scroll-padding-inline: max(16px, 50vw - 600px);
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.strip li {
    position: relative;
    flex: none;
    scroll-snap-align: start;
}

.strip figure {
    margin: 0;
}

.strip img {
    height: clamp(260px, 34vw, 380px);
    width: auto;
    border-radius: var(--radius);
}

/* ---- call band ---- */

.call-band {
    background: var(--ribs-dark), var(--red);
    color: #fff;
    padding-block: clamp(40px, 6vw, 72px);
}

.call-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px 40px;
    align-items: center;
}

.call-band h2 {
    margin-bottom: 0.25em;
}

.call-band p {
    margin: 0;
}

.call-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.call-links a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0.55em 1.2em;
    border-radius: 999px;
    background: #fff;
    color: var(--red-deep);
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.call-links a:hover {
    background: var(--mill);
    color: #fff;
}

.call-links .call-write {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 2px #fff;
}

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

/* ---- page heroes ---- */

.page-hero .wrap {
    padding-block: clamp(32px, 5vw, 64px);
}

.page-hero h1 {
    max-width: 20ch;
}

.crumbs {
    font-size: 0.95rem;
    margin-bottom: 1em;
    color: var(--muted);
}

.crumbs a {
    color: var(--steel-deep);
}

.item-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(140px, 22vw, 260px);
    gap: 24px 48px;
    align-items: center;
}

.item-sec {
    padding: 22px;
    border-radius: calc(var(--radius) + 6px);
    background: radial-gradient(circle at 50% 42%, var(--mill-3), var(--mill));
}

.item-sec .sec path {
    fill: #a9b4bc;
    stroke: #e8edf0;
}

.item-sec .sec .wire {
    stroke: #c7d0d6;
    fill: none;
}

.item-sec .sec-angle path {
    fill: #5f93ae;
}

.note {
    font-size: 0.95rem;
    color: var(--muted);
    max-width: 44em;
    margin: 0;
}

/* ---- size filter and price tables ---- */

.filter-bar {
    background: var(--sheet);
    border-bottom: 1px solid var(--rib);
}

.filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding-block: 14px;
}

.filter[hidden] {
    display: none;
}

.filter label {
    font-family: var(--display);
    font-weight: 700;
    font-stretch: 88%;
    font-size: 1.1rem;
}

.filter input {
    flex: 1 1 220px;
    max-width: 360px;
    min-height: 46px;
    padding: 0.5em 0.9em;
    border: 2px solid var(--steel);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.filter output {
    color: var(--muted);
    font-size: 0.95rem;
}

.stock-list {
    padding-block: 28px clamp(48px, 6vw, 80px);
}

.stock-index ul {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stock-index a {
    display: inline-block;
    padding: 0.35em 0.85em;
    border-radius: 999px;
    border: 1px solid #9aa5ad;
    background: var(--sheet);
    color: var(--ink);
    font-size: 0.93rem;
    text-decoration: none;
}

.stock-index a:hover {
    border-color: var(--steel);
    color: var(--steel-deep);
}

.stock {
    margin-top: clamp(28px, 4vw, 48px);
}

.stock[hidden] {
    display: none;
}

.stock-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.stock-head h2 {
    margin: 0;
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
    max-width: 26ch;
}

.stock-photo {
    flex: none;
    display: block;
    width: clamp(110px, 18vw, 200px);
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid var(--sheet);
    box-shadow: 0 10px 22px -14px rgba(27, 35, 41, 0.7);
}

.stock-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.stock-empty {
    color: var(--muted);
}

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--rib);
    background: #fff;
}

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

.price th,
.price td {
    padding: 0.55em 0.9em;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid #e3e7ea;
}

.price thead th {
    position: sticky;
    top: 0;
    background: var(--steel-deep);
    color: #fff;
    font-family: var(--display);
    font-stretch: 85%;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.2;
    white-space: normal;
    vertical-align: bottom;
    min-width: 7.5em;
}

.price thead th:first-child {
    min-width: 0;
}

.price .num {
    text-align: right;
}

.price tbody th {
    position: sticky;
    left: 0;
    background: inherit;
    font-weight: 700;
    color: var(--ink);
}

.price tbody tr {
    background: #fff;
}

.price tbody tr:nth-child(even) {
    background: #f1f3f5;
}

.price tbody tr:hover {
    background: #e4edf2;
}

.price tbody tr:last-child th,
.price tbody tr:last-child td {
    border-bottom: 0;
}

.price td:nth-child(2) {
    font-weight: 700;
    color: var(--steel-deep);
}

.na {
    color: #8a959d;
}

.price tr.hit th {
    box-shadow: inset 5px 0 0 var(--tag);
}

/* ---- other products, call box ---- */

.others .ask {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 32px;
    align-items: center;
    padding-bottom: 40px;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--mill-3);
}

.others .ask h2 {
    margin: 0;
}

.others .ask p {
    margin: 0;
    color: var(--on-dark-muted);
}

.ask-phones {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.others .ask .ask-phones a {
    color: #fff;
}

.others-h {
    font-size: 1.5rem;
}

.chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 8px;
}

.chips a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--mill-2);
    border: 1px solid var(--mill-3);
    text-decoration: none;
    font-family: var(--display);
    font-stretch: 88%;
    font-weight: 600;
    line-height: 1.15;
}

.chips .sec {
    width: 34px;
    flex: none;
}

.chips .sec path {
    fill: #a9b4bc;
    stroke: #e8edf0;
}

.chips .sec .wire {
    stroke: #c7d0d6;
    fill: none;
}

.chips .sec-angle path {
    fill: #5f93ae;
}

.chips a[aria-current] {
    border-color: var(--tag);
    color: var(--tag);
}

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

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

.cat-list > li > a {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 6px 26px;
    align-items: center;
    padding: 18px 24px;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--rib);
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cat-list > li > a:hover {
    border-color: var(--steel);
    box-shadow: 0 18px 30px -24px rgba(27, 35, 41, 0.6);
    color: var(--ink);
}

.cat-list .sec {
    width: 88px;
    grid-row: span 2;
}

.cat-list strong {
    font-family: var(--display);
    font-stretch: 85%;
    font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
    line-height: 1.1;
}

.cat-list span {
    color: var(--muted);
    grid-column: 2;
}

.cat-list .cat-go {
    grid-column: 3;
    grid-row: 1 / span 2;
    padding: 0.5em 1em;
    border-radius: 999px;
    background: var(--steel-deep);
    color: #fff;
    font-family: var(--display);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.also {
    margin-top: 32px;
    padding: 20px 24px;
    border-radius: var(--radius);
    border: 1px dashed #9aa5ad;
}

.also h2 {
    font-size: 1.3rem;
}

.also p {
    margin: 0;
}

/* ---- text pages ---- */

.prose {
    max-width: 46em;
}

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

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
}

.photo-card {
    margin: 0;
}

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

.photo-card figcaption {
    margin-top: 8px;
    font-size: 0.95rem;
    color: var(--muted);
}

.stock-items {
    columns: 2 18em;
    column-gap: 40px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.stock-items li {
    break-inside: avoid;
    padding: 0.35em 0 0.35em 1.5em;
    border-bottom: 1px solid var(--rib);
    position: relative;
}

.stock-items li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 0.7em;
    height: 0.7em;
    border-left: 3px solid var(--steel);
    border-bottom: 3px solid var(--steel);
}

.spec {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin: 28px 0;
    padding: 0;
    list-style: none;
}

.spec li {
    padding: 20px 22px;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--rib);
}

.spec h3 {
    font-size: 1.2rem;
}

.spec dl {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 16px;
}

.spec dt {
    color: var(--muted);
}

.spec dd {
    margin: 0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

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

.service-list > li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    gap: 18px 36px;
    align-items: center;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--rib);
}

.service-list h2 {
    font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
}

.service-list p:last-child {
    margin-bottom: 0;
}

.service-list figure {
    margin: 0;
}

.service-list figure a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
}

.service-list img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

.spec h2 {
    font-size: 1.25rem;
}

.h-small {
    font-size: 1.25rem;
    margin-top: 1.4em;
}

.hours-wide {
    max-width: 420px;
}

.band-dark .stock-items li {
    border-bottom-color: var(--mill-3);
}

.band-dark .stock-items li::before {
    border-color: var(--tag);
}

.band-dark p {
    max-width: 46em;
    color: var(--on-dark-muted);
}

.preform {
    padding-top: 12px;
}

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

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

.gallery {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 4 220px;
    column-gap: 12px;
}

.gallery li {
    break-inside: avoid;
    margin-bottom: 12px;
}

.gallery figure {
    margin: 0;
}

.gallery a {
    display: block;
    border-radius: 10px;
    overflow: hidden;
}

.gallery img {
    width: 100%;
    transition: transform 0.4s;
}

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

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

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.big-phones {
    display: grid;
    gap: 8px;
    margin: 0 0 24px;
}

.big-phones a {
    font-family: var(--display);
    font-weight: 800;
    font-stretch: 85%;
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
    line-height: 1.05;
    color: var(--red);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

.big-phones a:hover {
    color: var(--red-deep);
    text-decoration: underline;
}

.contact-stores {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.contact-stores .store {
    padding: 18px;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--rib);
}

.contact-form-box {
    padding: clamp(20px, 3vw, 32px);
    border-radius: calc(var(--radius) + 4px);
    background: var(--sheet);
    border: 1px solid var(--rib);
}

.contact-form > div {
    margin-bottom: 16px;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.65em 0.8em;
    border: 2px solid #9aa5ad;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--steel);
}

.contact-form .btn {
    background: var(--red);
    color: #fff;
    cursor: pointer;
}

.contact-form .btn:hover {
    background: var(--red-deep);
}

.form-hint {
    margin-top: 10px;
    font-size: 0.93rem;
    color: var(--muted);
}

.contact-sent {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #e3f0e6;
    border: 1px solid #7fb08d;
}

.contact-sent strong {
    display: block;
}

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

.foot {
    background: var(--mill);
    color: var(--on-dark-muted);
    padding-top: clamp(40px, 6vw, 72px);
    font-size: 0.98rem;
}

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

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

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

.foot h2 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0 0 0.6em;
}

.foot h2 + * + h2,
.foot p + h2 {
    margin-top: 1.2em;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
    gap: 32px;
}

.foot-logo {
    display: inline-block;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 10px;
    background: #fff;
}

.foot-logo img {
    width: min(280px, 100%);
}

.foot address {
    font-style: normal;
    margin-bottom: 14px;
}

.foot-phones {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
}

.foot .hours div {
    gap: 12px;
}

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

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

.foot-bottom {
    margin-top: 40px;
    padding-block: 20px;
    border-top: 1px solid var(--mill-3);
    font-size: 0.9rem;
}

.foot-bottom p {
    margin: 0;
}

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

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

.not-found > div {
    max-width: 640px;
    padding: clamp(24px, 4vw, 44px);
    border-radius: calc(var(--radius) + 6px);
    background: var(--sheet);
    border: 1px solid var(--rib);
}

.not-found img {
    width: min(330px, 100%);
    margin-bottom: 24px;
}

.not-found h1 {
    font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
}

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

/* ---- responsive ---- */

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

    .stores-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stores h2 {
        grid-column: 1 / -1;
        max-width: none;
    }

    .bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-row li {
        padding: 22px 22px 6px 0;
        border-bottom: 1px solid var(--mill-3);
    }

    .service-row li:nth-child(2n) {
        border-right: 0;
        padding-left: 22px;
    }

    .service-row li:nth-child(2n + 1) {
        padding-left: 0;
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr;
    }

    .two-col,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    body {
        font-size: 1rem;
    }

    .wall ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 10px;
        gap: 8px;
    }

    .wall li:first-child {
        grid-row: auto;
    }

    .wall li:first-child .sec {
        width: 34%;
    }

    .wall li:first-child a,
    .wall li:nth-last-child(-n + 2) a {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
    }

    .wall li:nth-last-child(-n + 2) {
        grid-column: auto;
    }

    .wall li:nth-last-child(-n + 2) a {
        flex-direction: column;
        align-items: stretch;
        justify-content: space-between;
    }

    .wall li:nth-last-child(-n + 2) .sec {
        width: 70%;
        margin-inline: auto;
    }

    .wall .sec {
        width: 70%;
    }

    .wall a {
        font-size: 0.72rem;
        padding: 8px 6px 7px;
    }

    .stores-grid,
    .section-head,
    .call-grid,
    .item-grid,
    .others .ask,
    .service-list > li {
        grid-template-columns: minmax(0, 1fr);
    }

    .item-sec {
        width: 140px;
        padding: 16px;
    }

    .ask-phones {
        grid-column: auto;
        grid-row: auto;
    }

    .bento {
        grid-template-columns: minmax(0, 1fr);
    }

    .bento li:nth-child(-n + 3),
    .bento-docs {
        grid-column: auto;
    }

    .bento li:nth-child(-n + 3) a {
        grid-template-columns: 64px 1fr;
    }

    .bento li:nth-child(-n + 3) .sec {
        width: 64px;
    }

    .service-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-row li,
    .service-row li + li,
    .service-row li:nth-child(2n) {
        padding: 18px 0 4px;
        border-right: 0;
    }

    .cat-list > li > a {
        grid-template-columns: 56px minmax(0, 1fr);
        padding: 16px;
        gap: 4px 16px;
    }

    .cat-list .sec {
        width: 56px;
    }

    .cat-list .cat-go {
        display: none;
    }

    .stock-head {
        align-items: start;
    }

    .stock-photo {
        width: 96px;
    }

    .foot-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .call-links a {
        font-size: 1.05rem;
    }
}

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