/* Ремонтинженеринг ООД – the test bench at night.
   Gunmetal ink (the navy plate of the original header), steel, and the signal yellow of the firm's logo.
   Oswald for display, Fira Sans for text, JetBrains Mono for model codes and figures. One dark theme. */

@font-face {
    font-family: "Oswald";
    src: url("/fonts/oswald.woff2") format("woff2");
    font-weight: 200 700;
    font-display: swap;
}

@font-face {
    font-family: "Fira Sans";
    src: url("/fonts/fira-sans.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Fira Sans";
    src: url("/fonts/fira-sans-medium.woff2") format("woff2");
    font-weight: 500 700;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("/fonts/jetbrains-mono.woff2") format("woff2");
    font-weight: 100 800;
    font-display: swap;
}

:root {
    --ink: #0d151d;
    --ink-2: #14212e;
    --ink-3: #1c2c3b;
    --line: #2b3d4e;
    --steel: #c4ced6;
    --steel-2: #9aa8b4;
    --text: #e8edf1;
    --muted: #a9b6c1;
    --yellow: #f6be04;
    --yellow-2: #ffd23f;
    --on-yellow: #11181f;
    --radius: 18px;
    --radius-sm: 10px;
    --display: "Oswald", "Arial Narrow", sans-serif;
    --body: "Fira Sans", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
    --header-h: 72px;
    color-scheme: dark;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font: 400 1.0625rem/1.65 var(--body);
    overflow-x: clip;
}

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

a {
    color: var(--yellow);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--yellow-2);
}

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

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

h1 {
    font-size: clamp(2.6rem, 1.6rem + 5vw, 5.4rem);
    text-transform: uppercase;
    letter-spacing: -0.015em;
}

h2 {
    font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem);
}

h3,
.h3 {
    font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.6rem);
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: min(1200px, 100% - 32px);
    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(--yellow);
    color: var(--on-yellow);
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.skip:focus {
    top: 12px;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 0.9em;
}

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

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

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13, 21, 29, 0.82);
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    border-bottom: 1px solid rgba(196, 206, 214, 0.12);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    min-height: var(--header-h);
    padding-block: 10px;
}

.brand {
    display: block;
    margin-right: auto;
    line-height: 0;
}

.brand img {
    width: clamp(190px, 40vw, 280px);
    height: auto;
}

.call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--on-yellow);
    font: 600 1rem/1 var(--mono);
    text-decoration: none;
    white-space: nowrap;
}

.call:hover {
    background: var(--yellow-2);
    color: var(--on-yellow);
}

.lang {
    display: flex;
    gap: 2px;
    font: 500 0.85rem/1 var(--mono);
}

.lang a,
.lang span {
    padding: 8px 9px;
    border-radius: 8px;
    color: var(--steel);
    text-decoration: none;
}

.lang span {
    color: var(--yellow);
    background: rgba(246, 190, 4, 0.1);
}

.lang a:hover {
    color: var(--text);
    background: var(--ink-3);
}

.menu-toggle {
    display: none;
}

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

.nav a {
    position: relative;
    padding: 8px 12px;
    color: var(--steel);
    text-decoration: none;
    font: 500 0.95rem/1.2 var(--body);
    border-radius: 8px;
}

.nav a:hover {
    color: var(--text);
    background: var(--ink-3);
}

.nav a[aria-current="page"] {
    color: var(--yellow);
}

.nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    background: var(--yellow);
    border-radius: 2px;
}

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

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

    .brand {
        margin-right: 8px;
    }

    .call {
        order: 2;
        margin-left: auto;
    }

    .lang {
        order: 3;
    }
}

@media (max-width: 720px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        padding: 9px 12px;
        border: 1px solid var(--line);
        border-radius: 999px;
        color: var(--text);
        font: 500 0.9rem/1 var(--body);
        text-decoration: none;
    }

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

    .menu-bars {
        position: relative;
    }

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

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

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

    .brand {
        flex-basis: 100%;
    }

    .call {
        margin-right: auto;
    }

    /* The script hides the list until the toggle opens it; without the script it stays visible. */
    .js-menu .nav {
        display: none;
    }

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

    .nav {
        flex-direction: column;
        gap: 0;
        padding-bottom: 8px;
    }

    .nav a {
        padding: 12px 6px;
        border-top: 1px solid var(--line);
        border-radius: 0;
        font-size: 1.05rem;
    }

    .nav a[aria-current="page"]::after {
        left: 0;
        right: auto;
        top: 12px;
        bottom: 12px;
        width: 3px;
        height: auto;
    }

    .nav a[aria-current="page"] {
        padding-left: 14px;
    }
}

/* ---- buttons and links ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--on-yellow);
    font: 600 1rem/1.1 var(--body);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    background: var(--yellow-2);
    color: var(--on-yellow);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -10px rgba(246, 190, 4, 0.7);
}

.btn-big {
    padding: 16px 26px;
    font: 600 1.2rem/1 var(--mono);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    box-shadow: inset 0 0 0 1.5px var(--steel-2);
}

.btn-ghost:hover {
    background: var(--ink-3);
    color: var(--text);
    box-shadow: inset 0 0 0 1.5px var(--yellow);
}

.arrow-link {
    font-weight: 500;
    text-decoration: none;
}

.arrow-link::after {
    content: "→";
    display: inline-block;
    margin-left: 0.5em;
    transition: transform 0.2s ease;
}

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

.more {
    margin-top: 32px;
}

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

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 100px);
    background:
        radial-gradient(60% 70% at 85% 40%, rgba(246, 190, 4, 0.13), transparent 70%),
        radial-gradient(50% 60% at 0% 100%, rgba(80, 120, 150, 0.22), transparent 70%),
        linear-gradient(180deg, var(--ink-2), var(--ink));
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(196, 206, 214, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196, 206, 214, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    gap: 36px;
    align-items: center;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 48px;
    }
}

.hero h1 em {
    display: block;
    font-style: normal;
    color: var(--yellow);
}

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

.hero-hours {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 0.95rem;
}

.dot {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 0 4px rgba(246, 190, 4, 0.2);
}

.hero-gauge {
    justify-self: center;
    width: min(100%, 340px);
}

@media (min-width: 900px) {
    .hero-gauge {
        width: min(100%, 460px);
    }
}

.hero-text > * {
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-text > :nth-child(2) { animation-delay: 0.08s; }
.hero-text > :nth-child(3) { animation-delay: 0.16s; }
.hero-text > :nth-child(4) { animation-delay: 0.24s; }
.hero-text > :nth-child(5) { animation-delay: 0.32s; }

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

/* ---- the gauge ---- */

.gauge {
    display: block;
    width: 100%;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
}

.gauge-track,
.gauge-fill {
    fill: none;
    stroke-width: 10;
    stroke-dasharray: 270 360;
}

.gauge-track {
    stroke: rgba(196, 206, 214, 0.14);
}

.gauge-fill {
    stroke: var(--yellow);
    stroke-linecap: round;
    stroke-dashoffset: 0;
    animation: gauge-fill 2.2s cubic-bezier(0.3, 0.6, 0.2, 1) 0.3s both;
}

.gauge-ticks line {
    stroke: var(--steel-2);
    stroke-width: 2;
}

.gauge-ticks line.major {
    stroke: var(--text);
    stroke-width: 4;
}

.gauge-labels text {
    fill: var(--steel);
    stroke: #0f1a24;
    stroke-width: 6px;
    stroke-linejoin: round;
    paint-order: stroke;
    font: 500 17px var(--mono);
    text-anchor: middle;
    dominant-baseline: middle;
}

.gauge-unit {
    fill: var(--steel-2);
    font: 500 15px var(--mono);
    letter-spacing: 0.06em;
}

.gauge-needle {
    fill: var(--yellow);
    transform-box: view-box;
    transform-origin: 200px 200px;
    transform: rotate(135deg);
    animation: needle 2.2s cubic-bezier(0.3, 0.6, 0.2, 1) 0.3s both;
}

.gauge-read {
    fill: var(--text);
    font: 700 36px var(--mono);
    text-anchor: middle;
    letter-spacing: -0.02em;
    animation: fade 0.6s ease 2.2s both;
}

.gauge-caption {
    fill: var(--yellow);
    font: 500 14px var(--mono);
    text-anchor: middle;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@keyframes needle {
    0% {
        transform: rotate(-135deg);
    }

    80% {
        transform: rotate(139deg);
    }

    100% {
        transform: rotate(135deg);
    }
}

@keyframes gauge-fill {
    from {
        stroke-dashoffset: 270;
    }
}

@keyframes fade {
    from {
        opacity: 0;
    }
}

/* ---- the strip of systems ---- */

.strip {
    overflow: hidden;
    background: var(--yellow);
    color: var(--on-yellow);
    border-block: 1px solid #000;
}

.strip-track {
    display: flex;
    width: max-content;
    margin: 0;
    padding: 14px 0;
    list-style: none;
    animation: slide 36s linear infinite;
}

.strip-track li {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-right: 28px;
    font: 600 clamp(1.1rem, 0.9rem + 1vw, 1.6rem)/1 var(--display);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.strip-track li::after {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--on-yellow);
}

@keyframes slide {
    to {
        transform: translateX(-50%);
    }
}

/* ---- bands and sections ---- */

.band {
    padding-block: clamp(56px, 8vw, 110px);
}

.band-steel {
    background:
        radial-gradient(70% 60% at 100% 0%, rgba(246, 190, 4, 0.07), transparent 70%),
        var(--ink-2);
    border-block: 1px solid rgba(196, 206, 214, 0.08);
}

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

.section-lead {
    color: var(--muted);
    font-size: 1.1rem;
}

.duo {
    display: grid;
    gap: 40px;
}

@media (min-width: 860px) {
    .duo {
        grid-template-columns: 1fr 1fr;
        gap: 56px;
    }
}

/* ---- numbered trail ---- */

.trail {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

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

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

.trail li {
    position: relative;
    padding: 26px 24px 24px;
    border-radius: var(--radius);
    background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
    border: 1px solid var(--line);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.trail li:hover {
    transform: translateY(-4px);
    border-color: rgba(246, 190, 4, 0.6);
}

.trail-no {
    display: block;
    margin-bottom: 18px;
    font: 700 3rem/1 var(--mono);
    color: transparent;
    -webkit-text-stroke: 1.5px var(--yellow);
}

.trail p {
    color: var(--muted);
    margin: 0;
}

/* ---- nameplates of the benches ---- */

.plates {
    display: grid;
    gap: 18px;
}

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

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

    .plates-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.plate {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 26px 26px;
    border-radius: 14px;
    color: var(--on-yellow);
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 5px),
        linear-gradient(150deg, #e7ecef 0%, #b8c3cb 55%, #93a1ac 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -2px 0 rgba(0, 0, 0, 0.18),
        0 18px 40px -22px rgba(0, 0, 0, 0.9);
}

/* four rivets */
.plate::before {
    content: "";
    position: absolute;
    inset: 10px;
    pointer-events: none;
    background:
        radial-gradient(circle at 5px 5px, #5d6b76 0 3.5px, transparent 4px) top left / 10px 10px no-repeat,
        radial-gradient(circle at 5px 5px, #5d6b76 0 3.5px, transparent 4px) top right / 10px 10px no-repeat,
        radial-gradient(circle at 5px 5px, #5d6b76 0 3.5px, transparent 4px) bottom left / 10px 10px no-repeat,
        radial-gradient(circle at 5px 5px, #5d6b76 0 3.5px, transparent 4px) bottom right / 10px 10px no-repeat;
}

/* the maker's photo, behind a white inspection window on the plate */
.plate-photo {
    position: relative;
    display: grid;
    place-items: center;
    height: 190px;
    margin: -8px -8px 22px;
    padding: 14px 14px 30px;
    border-radius: 8px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(17, 24, 31, 0.18), inset 0 2px 6px rgba(17, 24, 31, 0.18);
    overflow: hidden;
}

.plate-photo img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 146px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.plate-photo::after {
    content: attr(data-note);
    position: absolute;
    left: 10px;
    bottom: 8px;
    font: 500 0.68rem/1 var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4a5662;
}

.plate-photo:hover img,
.plate-photo:focus-visible img {
    transform: scale(1.04);
}

.plate-photo:focus-visible {
    outline: 3px solid var(--on-yellow);
    outline-offset: 3px;
}

.plate-maker {
    margin: 0 0 4px;
    font: 600 0.78rem/1 var(--mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #39444e;
}

.plate-model {
    margin-bottom: 12px;
    font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem);
    letter-spacing: 0;
    color: var(--on-yellow);
}

.plate p {
    color: #232d36;
}

.plate .codes {
    margin-top: auto;
}

.plate-figure {
    margin: auto 0 0;
    padding-top: 12px;
    border-top: 1px dashed rgba(17, 24, 31, 0.35);
    font: 600 0.95rem/1 var(--mono);
    color: #232d36;
}

.plate-figure span {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--on-yellow);
    margin-right: 4px;
}

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

.codes li {
    padding: 5px 9px;
    border-radius: 6px;
    background: var(--on-yellow);
    color: var(--yellow);
    font: 600 0.8rem/1 var(--mono);
}

.band .codes-dark li {
    background: var(--ink-3);
    border: 1px solid var(--line);
    color: var(--yellow);
}

/* ---- lists ---- */

.checks {
    margin: 0 0 1.4em;
    padding: 0;
    list-style: none;
}

.checks li {
    position: relative;
    padding: 10px 0 10px 34px;
    border-bottom: 1px solid var(--line);
}

.checks li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 15px;
    width: 18px;
    height: 10px;
    border-left: 3px solid var(--yellow);
    border-bottom: 3px solid var(--yellow);
    transform: rotate(-45deg);
}

.tips-teaser {
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius);
    background: var(--ink-2);
    border: 1px solid var(--line);
}

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

.call-band {
    position: relative;
    overflow: hidden;
    padding-block: clamp(48px, 7vw, 88px);
    background:
        repeating-linear-gradient(-45deg, rgba(17, 24, 31, 0.06) 0 14px, transparent 14px 28px),
        var(--yellow);
    color: var(--on-yellow);
}

.call-band h2 {
    color: var(--on-yellow);
    text-transform: uppercase;
}

.call-band p {
    max-width: 34em;
    margin: 0;
    color: #1c242c;
}

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

@media (min-width: 860px) {
    .call-grid {
        grid-template-columns: 1fr auto;
    }
}

.call-big {
    justify-self: start;
    padding: 18px 28px;
    border-radius: 999px;
    background: var(--on-yellow);
    color: var(--yellow);
    font: 700 clamp(1.5rem, 1.1rem + 2vw, 2.6rem)/1 var(--mono);
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s ease;
}

.call-big:hover {
    color: var(--yellow-2);
    transform: scale(1.03);
}

.call-band :focus-visible {
    outline-color: var(--on-yellow);
}

/* ---- inner pages ---- */

.page-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(44px, 7vw, 96px) clamp(36px, 5vw, 64px);
    background:
        radial-gradient(55% 80% at 100% 0%, rgba(246, 190, 4, 0.12), transparent 70%),
        linear-gradient(180deg, var(--ink-2), var(--ink));
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    font-size: clamp(2.4rem, 1.6rem + 4vw, 4.6rem);
}

.page-hero .lead {
    margin-bottom: 0;
}

.page-dial {
    position: absolute;
    right: -90px;
    top: 50%;
    width: 360px;
    transform: translateY(-50%);
    opacity: 0.16;
    pointer-events: none;
}

@media (max-width: 720px) {
    .page-dial {
        width: 240px;
        right: -110px;
    }
}

.block {
    display: grid;
    gap: 24px 56px;
    padding-block: clamp(36px, 5vw, 56px);
    border-bottom: 1px solid var(--line);
}

.block:last-child {
    border-bottom: 0;
}

@media (min-width: 900px) {
    .block {
        grid-template-columns: 0.8fr 1.2fr;
    }
}

.block-head .trail-no {
    margin-bottom: 12px;
    color: var(--yellow);
    -webkit-text-stroke: 0;
}

.block p,
.block li {
    color: var(--steel);
}

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

@media (min-width: 640px) {
    .ticks.two {
        grid-template-columns: 1fr 1fr;
    }
}

.ticks li {
    position: relative;
    padding: 11px 0 11px 26px;
    border-bottom: 1px solid var(--line);
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 21px;
    width: 12px;
    height: 3px;
    background: var(--yellow);
}

.note {
    padding: 18px 22px;
    border-left: 4px solid var(--yellow);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--ink-2);
    color: var(--steel);
}

/* ---- maintenance tips ---- */

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

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

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

.tips li {
    display: flex;
    flex-direction: column;
    padding: 26px 24px;
    border-radius: var(--radius);
    background: var(--ink-2);
    border: 1px solid var(--line);
}

.tips li:nth-child(3n + 2) {
    background: linear-gradient(160deg, var(--ink-3), var(--ink-2));
}

.tips h2 {
    font-size: 1.35rem;
}

.tips p {
    color: var(--muted);
    margin: 0;
}

.tip-no {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 50%;
    border: 2px solid var(--yellow);
    color: var(--yellow);
    font: 700 1.3rem/1 var(--mono);
}

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

.quote {
    margin: 0;
    padding: clamp(28px, 5vw, 56px);
    border-radius: var(--radius);
    background: var(--yellow);
    color: var(--on-yellow);
}

.quote p {
    margin: 0;
    font: 600 clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem)/1.2 var(--display);
    text-transform: uppercase;
}

.figures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin: 0;
}

.figures div {
    padding: 22px;
    border-radius: var(--radius);
    background: var(--ink-2);
    border: 1px solid var(--line);
}

.figures dt {
    font: 700 clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem)/1 var(--mono);
    color: var(--yellow);
    margin-bottom: 8px;
}

.figures dd {
    margin: 0;
    color: var(--muted);
}

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

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

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

.card {
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius);
    background: var(--ink-2);
    border: 1px solid var(--line);
}

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

.phones a {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 14px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: var(--ink-3);
    border: 1px solid var(--line);
    color: var(--text);
    font: 600 1.25rem/1.2 var(--mono);
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.phones a:hover {
    border-color: var(--yellow);
    color: var(--text);
}

.phones .main a {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--on-yellow);
    font-size: 1.5rem;
}

.phones .main a:hover {
    background: var(--yellow-2);
    color: var(--on-yellow);
}

.phones small {
    font: 500 0.85rem/1.2 var(--body);
    color: var(--muted);
}

.phones .main small {
    color: #1c242c;
}

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

.contact-list dt {
    font: 600 0.78rem/1 var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 6px;
}

.contact-list dd {
    margin: 0;
    color: var(--steel);
}

.week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin: 8px 0 6px;
    padding: 0;
    list-style: none;
}

.week li {
    display: grid;
    place-items: center;
    padding: 10px 0;
    border-radius: 8px;
    background: var(--yellow);
    color: var(--on-yellow);
    font: 600 0.85rem/1 var(--mono);
}

.week li.off {
    background: transparent;
    border: 1px dashed var(--steel-2);
    color: var(--muted);
}

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

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

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--text);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--yellow);
    outline: none;
    box-shadow: 0 0 0 3px rgba(246, 190, 4, 0.3);
}

.contact-form textarea::placeholder {
    color: #8392a0;
}

.contact-form ul {
    margin: 6px 0 0;
    padding-left: 18px;
    color: #ff9c8a;
}

.form-hint {
    margin: 12px 0 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.contact-sent {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    background: rgba(246, 190, 4, 0.12);
    border: 1px solid var(--yellow);
}

.contact-sent strong {
    display: block;
    color: var(--yellow);
}

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

.foot {
    padding-top: clamp(48px, 6vw, 80px);
    background: #080e14;
    border-top: 3px solid var(--yellow);
    color: var(--muted);
    font-size: 0.97rem;
}

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

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

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

.foot h2 {
    font: 600 0.8rem/1 var(--mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 14px;
}

.foot-logo {
    width: min(100%, 374px);
    margin-bottom: 16px;
}

.foot address {
    font-style: normal;
}

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

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

.foot-phone {
    font: 600 1.2rem/1.4 var(--mono);
}

.foot-small {
    font-size: 0.88rem;
    color: var(--muted);
}

.foot-hours {
    margin: 0;
}

.foot-hours div {
    margin-bottom: 10px;
}

.foot-hours dt {
    color: var(--text);
}

.foot-hours dd {
    margin: 0;
}

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

.foot-bottom p {
    margin: 0;
}

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

.not-found {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 40px 16px;
    text-align: center;
    background:
        radial-gradient(60% 60% at 50% 30%, rgba(246, 190, 4, 0.12), transparent 70%),
        var(--ink);
}

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

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

.not-found h1 {
    font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);
}

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

/* ---- scroll reveal (finished state without support) ---- */

@supports (animation-timeline: view()) {
    .reveal {
        animation: rise linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 40%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .strip-track {
        flex-wrap: wrap;
        width: auto;
        justify-content: center;
    }

    .strip-track li[aria-hidden="true"] {
        display: none;
    }
}

/* ---- 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;
    }
}

.lightbox {
    --lb-bg: rgba(8, 14, 20, 0.96);
    --lb-text: #e8edf1;
    --lb-accent: #f6be04;
    --lb-accent-soft: rgba(246, 190, 4, 0.18);
}

/* ---- the makers' videos: a poster that opens YouTube, no iframe ---- */

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

@media (min-width: 760px) {
    .videos {
        grid-template-columns: 1fr 1fr;
    }
}

.video-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    color: var(--text);
    text-decoration: none;
}

.video-poster {
    position: relative;
    display: block;
    margin-bottom: 10px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--ink-3);
}

.video-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.85) brightness(0.8);
    transition: filter 0.3s ease, transform 0.4s ease;
}

.video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 0 0 0 8px rgba(246, 190, 4, 0.25), 0 12px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.video-play::after {
    content: "";
    position: absolute;
    left: 31px;
    top: 24px;
    border-style: solid;
    border-width: 14px 0 14px 22px;
    border-color: transparent transparent transparent var(--on-yellow);
}

.video-title {
    font: 500 clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem)/1.2 var(--display);
    color: var(--text);
}

.video-meta {
    font: 500 0.8rem/1.4 var(--mono);
    color: var(--muted);
}

.video-meta::after {
    content: " \2197";
}

.video-card:hover .video-poster img,
.video-card:focus-visible .video-poster img {
    filter: none;
    transform: scale(1.03);
}

.video-card:hover .video-play,
.video-card:focus-visible .video-play {
    transform: scale(1.08);
}

.video-card:hover .video-title {
    color: var(--yellow);
}

.video-card:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 6px;
    border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
    .plate-photo img,
    .video-poster img,
    .video-play {
        transition: none;
    }

    .plate-photo:hover img,
    .video-card:hover .video-poster img,
    .video-card:hover .video-play {
        transform: none;
    }
}
