/* Ключар-Автоключар Денонощен – the night shift of an emergency locksmith.
   Night oxblood (the original's #330707), the signal yellow of the key wall, the red of the shop sign,
   padlock chrome and the original's parchment. Russo One for display, Inter Tight for text. */

@font-face {
    font-family: "Russo One";
    src: url("/fonts/russo-one.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter Tight";
    src: url("/fonts/inter-tight.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --night: #1b0606;
    --night-2: #2a0a0b;
    --night-3: #3d1214;
    --line: rgba(244, 233, 210, .14);
    --text: #f4e9d2;
    --muted: #d4c3ae;
    --yellow: #ffc83d;
    --yellow-2: #ffd970;
    --red: #e0322a;
    --red-deep: #9e1712;
    --chrome: #d6d9de;
    --paper: #f4e9d2;
    --ink: #1b0606;
    --radius: 22px;
    --display: "Russo One", "Arial Black", system-ui, sans-serif;
    --body: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wrap: 1200px;
    --pad: clamp(16px, 4vw, 40px);
    color-scheme: dark;
}

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

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

body {
    margin: 0;
    background: var(--night);
    color: var(--text);
    font: 400 1.0625rem/1.6 var(--body);
    overflow-x: hidden;
}

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

img {
    display: block;
}

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

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

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

h1,
h2,
h3 {
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.01em;
    margin: 0 0 .5em;
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.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(--ink);
    font-weight: 700;
    border-radius: 10px;
}

.skip:focus {
    top: 12px;
}

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

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(27, 6, 6, .82);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
    border-bottom: 1px solid var(--line);
}

.top-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    min-height: 72px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    margin-right: auto;
}

.brand img {
    width: auto;
    height: 54px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text span {
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.brand-text strong {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.3rem;
    color: var(--yellow);
}

.call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--ink);
    font-weight: 800;
    font-size: 1.02rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 0 0 0 rgba(255, 200, 61, .5);
    animation: ring 2.6s ease-out 3s infinite;
}

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

@keyframes ring {
    0% { box-shadow: 0 0 0 0 rgba(255, 200, 61, .55); }
    70%, 100% { box-shadow: 0 0 0 14px rgba(255, 200, 61, 0); }
}

.lang {
    display: flex;
    gap: 2px;
    font-size: .85rem;
    font-weight: 700;
}

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

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

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

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

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

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

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

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

.menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    font: 600 .95rem var(--body);
    cursor: pointer;
}

.menu-btn[hidden] {
    display: none;
}

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

/* with the script: on a phone the navigation folds behind the menu button */
.js-menu .top:not(.is-open) .nav {
    display: none;
}

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

    .nav {
        width: auto;
        order: 0;
        margin-right: 8px;
    }

    .js-menu .top:not(.is-open) .nav {
        display: flex;
    }

    .menu-btn {
        display: none !important;
    }

    .brand {
        margin-right: auto;
    }
}

@media (max-width: 979px) {
    .js-menu .top.is-open .nav {
        display: flex;
        flex-direction: column;
        padding: 8px 0 12px;
    }

    .js-menu .top.is-open .nav a {
        padding: 12px 14px;
        font-size: 1.1rem;
    }
}

@media (max-width: 560px) {
    .brand-text {
        display: none;
    }

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

    .brand img {
        height: 48px;
    }

    .menu-btn {
        padding: 12px 11px;
    }

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

    .call {
        padding: 9px 13px;
        font-size: .95rem;
    }
}

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

.btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 14px 22px;
    border-radius: 16px;
    font: 400 1.35rem/1.1 var(--display);
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform .15s ease, background-color .15s ease;
}

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

.btn-small {
    font: 600 .78rem/1.2 var(--body);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.btn-call {
    background: var(--yellow);
    color: var(--ink);
    font-size: clamp(1.5rem, 4vw, 2rem);
}

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

.btn-ghost {
    border-color: rgba(244, 233, 210, .35);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

.btn-dark {
    background: var(--ink);
    color: var(--yellow);
}

.btn-dark:hover {
    color: var(--yellow-2);
}

.btn-dark-ghost {
    border-color: var(--ink);
    color: var(--ink);
}

.btn-dark-ghost:hover {
    background: var(--ink);
    color: var(--yellow);
}

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

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 7vw, 90px) 0 clamp(40px, 6vw, 80px);
    background:
        radial-gradient(60% 70% at 78% 40%, rgba(224, 50, 42, .32), transparent 70%),
        radial-gradient(40% 50% at 10% 0%, rgba(255, 200, 61, .12), transparent 70%),
        linear-gradient(180deg, var(--night-2), var(--night));
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 200, 61, .12) 1.2px, transparent 1.3px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 80%);
    mask-image: linear-gradient(90deg, transparent 30%, #000 80%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 32px;
    align-items: center;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    background: rgba(0, 0, 0, .25);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3ee07a;
    box-shadow: 0 0 0 0 rgba(62, 224, 122, .6);
    animation: live 1.8s ease-out infinite;
}

@keyframes live {
    0% { box-shadow: 0 0 0 0 rgba(62, 224, 122, .6); }
    80%, 100% { box-shadow: 0 0 0 10px rgba(62, 224, 122, 0); }
}

.hero h1 {
    font-size: clamp(2.5rem, 7.2vw, 5.4rem);
    margin: 18px 0 18px;
    letter-spacing: -.02em;
    animation: rise .8s cubic-bezier(.2, .8, .2, 1) both;
}

.hero h1:lang(en) {
    font-size: clamp(2.3rem, 5.6vw, 4.3rem);
}

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

.lead {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--muted);
    max-width: 36em;
}

.hero .lead {
    animation: rise .8s .12s cubic-bezier(.2, .8, .2, 1) both;
}

.hero-calls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
    animation: rise .8s .24s cubic-bezier(.2, .8, .2, 1) both;
}

.hero-calls .btn-call {
    flex: 1 1 100%;
}

.hero-calls .btn-ghost {
    flex: 1 1 200px;
}

@media (min-width: 560px) {
    .hero-calls .btn-call {
        flex: 0 0 auto;
    }

    .hero-calls .btn-ghost {
        flex: 0 0 auto;
    }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

/* ---- the cylinder (signature) ---- */

.hero-art {
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
}

.cyl {
    width: 100%;
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55));
}

.cyl-shear {
    stroke: var(--yellow);
    stroke-width: 3;
    stroke-dasharray: 10 8;
    animation: shear .7s 2.1s ease-out both;
}

.cyl-key {
    animation: key-in 1.2s .35s cubic-bezier(.3, .7, .2, 1) both;
}

.cyl-pins {
    animation: pins-up .4s calc(1.45s + var(--i) * .09s) cubic-bezier(.3, 1.4, .5, 1) both;
}

.cyl-spring {
    stroke: #c3c7ce;
    stroke-width: 3;
    stroke-linejoin: round;
    transform-box: fill-box;
    transform-origin: 50% 0;
    animation: spring-in .4s calc(1.45s + var(--i) * .09s) cubic-bezier(.3, 1.4, .5, 1) both;
}

.cyl-turn {
    animation: turn .7s 2.25s cubic-bezier(.5, 0, .2, 1) both;
}

.cyl-open {
    font: 400 44px var(--display);
    fill: var(--yellow);
    letter-spacing: .04em;
    animation: open-in .5s 2.7s ease-out both;
}

@keyframes key-in {
    from { transform: translateX(-300px); }
    to { transform: none; }
}

@keyframes pins-up {
    from { transform: translateY(var(--d)); }
    to { transform: none; }
}

@keyframes spring-in {
    from { transform: scaleY(calc((98 + var(--d)) / 98)); }
    to { transform: none; }
}

@keyframes turn {
    from { transform: rotate(0); }
    to { transform: rotate(90deg); }
}

@keyframes shear {
    from { stroke-opacity: .25; filter: none; }
    to { stroke-opacity: 1; filter: drop-shadow(0 0 6px #ffc83d); }
}

@keyframes open-in {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: none; }
}

/* ---- figures ---- */

.figures {
    background: var(--night-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.figures-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

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

.figure {
    padding: 26px 12px 26px 0;
    border-bottom: 1px solid var(--line);
}

.figure:nth-child(odd) {
    padding-right: 16px;
}

@media (min-width: 800px) {
    .figure {
        border-bottom: 0;
        border-right: 1px solid var(--line);
        padding: 32px 20px;
    }

    .figure:first-child {
        padding-left: 0;
    }

    .figure:last-child {
        border-right: 0;
    }
}

.figure strong {
    display: block;
    font: 400 clamp(2.6rem, 6vw, 4rem)/1 var(--display);
    color: var(--yellow);
}

.figure small {
    font-size: .45em;
    color: var(--text);
}

.figure span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 600;
}

/* ---- bands, headings ---- */

.band {
    padding: clamp(56px, 8vw, 104px) 0;
}

.band-tight {
    padding: clamp(36px, 5vw, 64px) 0;
}

.band-steel {
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 6px),
        linear-gradient(180deg, #2b0d0f, #210709);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.kicker {
    margin: 0 0 12px;
    font-weight: 800;
    font-size: .88rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--yellow);
}

.h-big {
    font-size: clamp(1.9rem, 4.6vw, 3.3rem);
    max-width: 18em;
}

.head-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px 24px;
    margin-bottom: 28px;
}

.head-row .h-big {
    margin: 0;
}

.more {
    font-weight: 700;
    white-space: nowrap;
}

.more::after {
    content: " →";
}

/* ---- bento of services ---- */

.bento {
    display: grid;
    gap: 14px;
    margin-top: 34px;
}

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

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

    .tile-hot {
        grid-column: span 2;
        grid-row: span 2;
    }

    .tile-wide {
        grid-column: span 3;
    }
}

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

.tile:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 200, 61, .45);
}

.tile h3 {
    font-size: 1.35rem;
    margin-top: 18px;
}

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

.tile-no {
    font: 400 .95rem var(--display);
    color: var(--yellow);
    opacity: .9;
}

.tile-link {
    display: inline-block;
    margin-top: 16px;
    font-weight: 800;
}

.tile-hot {
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .28), transparent 50%),
        linear-gradient(150deg, #ffd25a, #ffb81f);
    color: var(--ink);
    border: 0;
    display: flex;
    flex-direction: column;
}

.tile-hot h3 {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    margin-top: auto;
    padding-top: 40px;
}

.tile-hot p,
.tile-hot .tile-no {
    color: var(--ink);
}

.tile-hot p {
    font-size: 1.12rem;
    font-weight: 500;
}

.tile-hot .tile-link {
    color: var(--ink);
    font: 400 clamp(1.6rem, 3vw, 2.2rem) var(--display);
    text-decoration: none;
}

.tile-hot .tile-link:hover {
    text-decoration: underline;
}

.tile-shop {
    background:
        linear-gradient(90deg, rgba(42, 10, 11, .96) 45%, rgba(42, 10, 11, .55)),
        url("/img/mortice-locks-wall-3-s.webp") right center / cover;
}

/* ---- principles: a numbered trail ---- */

.principles {
    display: grid;
    gap: 28px;
}

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

.trail {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: step;
}

.trail li {
    position: relative;
    counter-increment: step;
    padding: 0 0 24px 64px;
    color: var(--muted);
}

.trail li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: -4px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid var(--yellow);
    color: var(--yellow);
    font: 400 .95rem var(--display);
}

.trail li::after {
    content: "";
    position: absolute;
    left: 21px;
    top: 44px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(var(--yellow), transparent);
    opacity: .5;
}

.trail li:last-child::after {
    display: none;
}

.trail strong {
    color: var(--text);
}

/* ---- advice: the yellow band ---- */

.advice {
    position: relative;
    background: var(--yellow);
    color: var(--ink);
    padding: clamp(48px, 7vw, 90px) 0;
    overflow: hidden;
}

.advice::before,
.advice::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 14px;
    background: repeating-linear-gradient(-45deg, var(--ink) 0 14px, transparent 14px 28px);
}

.advice::before {
    top: 0;
}

.advice::after {
    bottom: 0;
}

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

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

.advice h2 {
    margin: 0;
}

.advice-items {
    display: grid;
    gap: 16px;
}

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

.advice-items p {
    margin: 0;
    padding: 20px 22px;
    border: 2px solid var(--ink);
    border-radius: 18px;
    font-weight: 600;
    font-size: 1.08rem;
    background: rgba(255, 255, 255, .25);
}

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

.strip {
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 4px var(--pad) 18px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--night-3) transparent;
}

.strip li {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.strip a {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}

.strip img {
    height: clamp(240px, 38vw, 380px);
    width: auto;
    transition: transform .4s ease;
}

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

@media (min-width: 1300px) {
    .strip {
        padding-left: calc((100vw - var(--wrap)) / 2 + var(--pad));
    }
}

/* ---- clients ticker ---- */

.clients-band .kicker {
    margin-bottom: 22px;
}

.ticker {
    display: flex;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-row {
    display: flex;
    flex-shrink: 0;
    gap: 14px;
    margin: 0;
    padding: 0 14px 0 0;
    list-style: none;
    animation: tick 80s linear infinite;
}

.ticker:hover .ticker-row {
    animation-play-state: paused;
}

.ticker-row li {
    white-space: nowrap;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--night-2);
    font-weight: 600;
}

@keyframes tick {
    to { transform: translateX(-100%); }
}

.clients-more {
    margin: 22px 0 0;
    color: var(--muted);
}

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

.doc-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: start;
}

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

.doc-row a,
.doc-card a {
    display: block;
    padding: 10px;
    border-radius: 14px;
    background: var(--paper);
    box-shadow: 0 18px 30px rgba(0, 0, 0, .4);
    transition: transform .2s ease;
}

.doc-row li:nth-child(odd) a {
    transform: rotate(-1.5deg);
}

.doc-row li:nth-child(even) a {
    transform: rotate(1.2deg);
}

.doc-row a:hover,
.doc-card a:hover {
    transform: rotate(0) translateY(-4px);
}

.doc-row img,
.doc-card img {
    width: 100%;
    border-radius: 6px;
}

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

.cta {
    background:
        radial-gradient(80% 120% at 0% 0%, rgba(255, 255, 255, .22), transparent 60%),
        var(--yellow);
    color: var(--ink);
    padding: clamp(48px, 7vw, 88px) 0;
}

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

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

.cta p {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

.cta-calls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cta-calls .btn {
    flex: 1 1 220px;
    text-align: center;
    align-items: center;
}

/* ---- page heads of the other pages ---- */

.page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(44px, 7vw, 96px) 0 clamp(36px, 5vw, 64px);
    background:
        radial-gradient(50% 80% at 90% 20%, rgba(224, 50, 42, .28), transparent 70%),
        linear-gradient(180deg, var(--night-2), var(--night));
    border-bottom: 1px solid var(--line);
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -40px;
    top: 50%;
    width: 340px;
    height: 340px;
    transform: translateY(-50%);
    border-radius: 50%;
    border: 40px solid rgba(255, 200, 61, .06);
    box-shadow: inset 0 0 0 40px rgba(255, 200, 61, .04);
    pointer-events: none;
}

.page-hero h1 {
    font-size: clamp(2.4rem, 6.4vw, 4.6rem);
    margin: 0 0 16px;
    animation: rise .7s cubic-bezier(.2, .8, .2, 1) both;
}

.page-hero .lead {
    animation: rise .7s .1s cubic-bezier(.2, .8, .2, 1) both;
    margin: 0;
}

/* ---- catalog ---- */

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

.chips a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, .25);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
}

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

.chips small {
    color: var(--muted);
    font-weight: 500;
}

.cat {
    padding: 48px 0 8px;
    border-bottom: 1px solid var(--line);
}

.cat:last-of-type {
    border-bottom: 0;
}

.cat-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 16px;
    margin-bottom: 20px;
}

.cat-head h2 {
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
    margin: 0;
}

.cat-head span {
    color: var(--muted);
    font-weight: 600;
}

.items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    margin: 0 0 40px;
    padding: 0;
    list-style: none;
}

@media (min-width: 700px) {
    .items {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    }
}

.item {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--night-2);
    border: 1px solid var(--line);
    height: 100%;
}

.item a {
    display: block;
    overflow: hidden;
    background: #d9cdb4;
}

.item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .35s ease;
}

.item a:hover img {
    transform: scale(1.06);
}

.item figcaption {
    padding: 10px 12px 12px;
    font-size: .92rem;
    color: var(--muted);
}

.item figcaption strong {
    display: block;
    color: var(--text);
    font-size: 1rem;
}

.note {
    padding: 18px 22px;
    border-radius: 16px;
    border: 1px dashed rgba(255, 200, 61, .5);
    color: var(--muted);
    background: rgba(255, 200, 61, .05);
}

.note strong {
    color: var(--text);
}

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

.masonry {
    columns: 2 160px;
    column-gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 900px) {
    .masonry {
        columns: 3 240px;
    }
}

.masonry li {
    break-inside: avoid;
    margin-bottom: 14px;
}

.masonry figure {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    background: var(--night-2);
    border: 1px solid var(--line);
}

.masonry a {
    display: block;
    overflow: hidden;
}

.masonry img {
    width: 100%;
    transition: transform .4s ease;
}

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

.masonry figcaption {
    padding: 10px 14px 12px;
    font-size: .92rem;
    color: var(--muted);
}

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

.split {
    display: grid;
    gap: 32px;
    align-items: start;
}

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

.prose p {
    font-size: 1.1rem;
}

.photo-card {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--night-2);
}

.photo-card img {
    width: 100%;
}

.photo-card figcaption {
    padding: 12px 16px;
    color: var(--muted);
    font-size: .95rem;
}

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

.ticks li {
    position: relative;
    padding: 12px 16px 12px 60px;
    border-radius: 14px;
    background: var(--night-2);
    border: 1px solid var(--line);
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 20px;
    height: 10px;
    margin-top: -5px;
    border: 3px solid var(--yellow);
    border-right: 0;
    border-radius: 6px 0 0 6px;
    box-shadow: 14px 0 0 -2px var(--yellow);
}

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

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

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

.doc-card {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--night-2);
    border: 1px solid var(--line);
}

.doc-card figcaption {
    font-size: .95rem;
    color: var(--muted);
}

.doc-card figcaption strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 1.05rem;
}

.doc-year {
    display: inline-block;
    margin-bottom: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--ink);
    font: 400 .85rem var(--display);
}

.client-list {
    columns: 2 260px;
    column-gap: 28px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.client-list li {
    break-inside: avoid;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 600;
}

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

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

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

.card {
    padding: clamp(22px, 4vw, 36px);
    border-radius: var(--radius);
    background: var(--night-2);
    border: 1px solid var(--line);
}

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

.phone-list a {
    display: flex;
    flex-direction: column;
    padding: 14px 18px;
    border-radius: 16px;
    border: 2px solid rgba(244, 233, 210, .25);
    color: var(--text);
    text-decoration: none;
    font: 400 clamp(1.5rem, 4.4vw, 2rem)/1.1 var(--display);
}

.phone-list a:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

.phone-list li:first-child a {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--ink);
}

.phone-list span {
    font: 600 .8rem/1.4 var(--body);
    letter-spacing: .06em;
    text-transform: uppercase;
}

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

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

.contact-list dd {
    margin: 4px 0 0;
    font-size: 1.08rem;
}

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

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

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(244, 233, 210, .3);
    background: var(--night);
    color: var(--text);
    font: inherit;
}

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

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

.contact-form button {
    cursor: pointer;
    background: var(--yellow);
    color: var(--ink);
    font-size: 1.2rem;
}

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

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

.contact-sent {
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(62, 224, 122, .14);
    border: 1px solid rgba(62, 224, 122, .5);
}

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

.foot {
    background: #120303;
    border-top: 4px solid var(--yellow);
    padding: 56px 0 96px;
    color: var(--muted);
}

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

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

.foot h2 {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 14px;
}

.foot-brand {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.foot-brand img {
    width: 72px;
    height: auto;
    flex: 0 0 auto;
}

.foot-name {
    font: 400 1.25rem/1.2 var(--display);
    color: var(--text);
    margin-bottom: 10px;
}

.foot-small {
    font-size: .9rem;
}

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

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

.foot-phones span {
    display: inline-block;
    min-width: 90px;
    font-size: .9rem;
}

.foot-phones a {
    font: 400 1.15rem var(--display);
    text-decoration: none;
}

.foot-pages-title {
    margin-top: 6px;
}

.foot-pages {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

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

/* ---- sticky call bar on a phone ---- */

.call-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px 10px 18px;
    border-radius: 18px;
    background: var(--yellow);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}

.call-bar:hover {
    color: var(--ink);
}

.call-bar-label {
    font-weight: 700;
    font-size: .88rem;
    line-height: 1.2;
}

.call-bar-num {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--ink);
    color: var(--yellow);
    font: 400 1.05rem var(--display);
    white-space: nowrap;
}

@media (min-width: 900px) {
    .call-bar {
        display: none;
    }

    .foot {
        padding-bottom: 40px;
    }
}

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

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

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

.not-found img {
    margin: 0 auto 20px;
}

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

.not-found h2 {
    margin-top: 36px;
    font-size: 1.5rem;
}

.not-found .btn {
    background: var(--yellow);
    color: var(--ink);
    font-size: 1.1rem;
}

/* ---- reveal while scrolling, where supported ---- */

@supports (animation-timeline: view()) {
    .tile,
    .figure,
    .trail li,
    .doc-card,
    .item,
    .masonry li {
        animation: reveal linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 60%;
    }

    @keyframes reveal {
        from { opacity: 0; transform: translateY(28px); }
        to { opacity: 1; transform: none; }
    }
}

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

    .ticker {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .ticker-row {
        flex-wrap: wrap;
        flex-shrink: 1;
        gap: 10px;
        padding: 0 var(--pad);
    }

    .ticker-row[aria-hidden] {
        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(18, 3, 3, .94);
    --lb-text: #f4e9d2;
    --lb-accent: #ffc83d;
    --lb-accent-soft: rgba(255, 200, 61, .18);
}
