/* Технострой 2002: a riser in section, in the navy of the firm's logo plate, on basement concrete,
   with the three lines of a riser (hot red, cold blue, circulation amber). Oswald + Fira Sans. */

@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-regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

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

:root {
    --night: #111d30;
    --navy: #1c2d45;
    --steel: #2c4262;
    --mist: #9fb4cf;
    --on-navy: #f3f6fa;
    --on-navy-2: #c6d3e3;
    --concrete: #ebe9e3;
    --sheet: #f8f7f3;
    --line: #d6d3ca;
    --ink: #14202f;
    --ink-2: #45505e;
    --hot: #d2392c;
    --hot-ink: #b02a1f;
    --cold: #2a6fd6;
    --cold-ink: #1f5bb5;
    --circ: #f1963e;
    --circ-light: #ffc58a;
    --radius: 18px;
    --display: "Oswald", "Arial Narrow", sans-serif;
    --text: "Fira Sans", system-ui, sans-serif;
    --wrap: 1180px;
}

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

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

body {
    margin: 0;
    background: var(--concrete);
    color: var(--ink);
    font: 400 1.0625rem/1.6 var(--text);
}

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

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

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

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

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

h2 {
    font-size: clamp(1.9rem, 4.2vw, 3rem);
}

h3 {
    font-size: 1.35rem;
    font-weight: 500;
}

p {
    margin: 0 0 1em;
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

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

.skip:focus {
    top: 12px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font: 500 0.85rem/1.2 var(--display);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--hot) 0 33%, var(--cold) 0 66%, var(--circ) 0);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 2px solid transparent;
    background: var(--circ);
    color: var(--night);
    font: 500 1.1rem/1.1 var(--display);
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    color: var(--night);
    background: var(--circ-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(243, 246, 250, 0.45);
    color: var(--on-navy);
}

.btn-ghost:hover {
    background: rgba(243, 246, 250, 0.1);
    color: var(--on-navy);
    border-color: var(--on-navy);
}

.btn-navy {
    background: var(--navy);
    color: var(--on-navy);
}

.btn-navy:hover {
    background: var(--steel);
    color: var(--on-navy);
}

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

.top {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(17, 29, 48, 0.9);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    color: var(--on-navy);
    border-bottom: 1px solid rgba(159, 180, 207, 0.18);
}

.top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    min-height: 68px;
    padding-block: 10px;
}

.brand {
    display: block;
    padding: 6px 0;
    margin-right: auto;
}

.brand img {
    width: 190px;
    height: 19px;
}

.nav {
    display: flex;
    gap: 4px;
}

.nav a {
    position: relative;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--on-navy-2);
    font: 500 1rem/1.2 var(--display);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.nav a:hover {
    color: var(--on-navy);
    background: rgba(159, 180, 207, 0.14);
}

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

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

.lang {
    display: flex;
    gap: 2px;
    font: 500 0.9rem/1 var(--display);
    letter-spacing: 0.06em;
}

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

.lang a {
    color: var(--on-navy-2);
    text-decoration: none;
}

.lang a:hover {
    color: var(--on-navy);
    background: rgba(159, 180, 207, 0.14);
}

.lang span {
    color: var(--night);
    background: var(--on-navy-2);
}

.call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--circ);
    color: var(--night);
    font: 600 1.05rem/1 var(--display);
    letter-spacing: 0.03em;
    text-decoration: none;
    white-space: nowrap;
}

.call:hover {
    background: var(--circ-light);
    color: var(--night);
}

@media (max-width: 899px) {
    .top {
        position: relative;
    }

    .nav {
        order: 5;
        flex-wrap: wrap;
        width: calc(100% + 16px);
        margin-inline: -8px;
    }

    .nav a {
        padding: 8px 8px;
        font-size: 0.95rem;
        letter-spacing: 0.02em;
    }

    .call {
        display: none;
    }
}

/* the call bar at the bottom of a phone screen */
.callbar {
    display: none;
}

@media (max-width: 899px) {
    .callbar {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 40;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-height: 52px;
        border-radius: 999px;
        background: var(--circ);
        color: var(--night);
        font: 600 1.1rem/1 var(--display);
        letter-spacing: 0.03em;
        text-decoration: none;
        box-shadow: 0 12px 30px -10px rgba(17, 29, 48, 0.7);
    }

    .callbar:hover {
        color: var(--night);
    }

    body {
        padding-bottom: 76px;
    }
}

/* ---- hero (home) ---- */

.hero {
    position: relative;
    overflow: clip;
    background:
        radial-gradient(120% 90% at 85% 10%, rgba(115, 138, 169, 0.32), transparent 60%),
        linear-gradient(180deg, var(--steel) 0%, var(--navy) 46%, var(--night) 100%);
    color: var(--on-navy);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(159, 180, 207, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(159, 180, 207, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    gap: 24px;
    padding-block: clamp(40px, 7vw, 88px) clamp(36px, 5vw, 64px);
    align-items: center;
}

@media (min-width: 960px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: 48px;
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 6.4vw, 5rem);
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.002em;
    margin-bottom: 0.4em;
}

.hero h1 .h1-line {
    display: block;
}

.hero h1 .h1-accent {
    color: var(--circ-light);
}

.hero .lead {
    max-width: 34em;
    font-size: clamp(1.08rem, 1.6vw, 1.25rem);
    color: var(--on-navy-2);
}

.hero .lead strong {
    color: var(--on-navy);
    font-weight: 600;
}

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

.free-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 28px;
    padding: 12px 18px;
    border: 1px dashed rgba(255, 197, 138, 0.6);
    border-radius: 14px;
    color: var(--on-navy);
    font: 500 1.15rem/1.2 var(--display);
    letter-spacing: 0.03em;
}

.free-tag b {
    color: var(--circ-light);
    font-weight: 600;
    text-transform: uppercase;
}

/* ---- the riser drawing ---- */

.riser {
    margin: 0;
}

.riser-svg {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.riser-svg text {
    font-family: var(--text);
    font-size: 15px;
    fill: var(--on-navy-2);
}

.riser-svg .day-big {
    font: 600 27px var(--display);
    fill: var(--on-navy);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.riser-svg .day-t {
    font-size: 14px;
    fill: var(--mist);
}

.day-arc {
    stroke: rgba(255, 197, 138, 0.55);
    stroke-width: 2;
    stroke-dasharray: 2 7;
    stroke-linecap: round;
}

.sun circle {
    fill: var(--circ);
    filter: drop-shadow(0 0 10px rgba(241, 150, 62, 0.8));
}

.sun {
    transform-box: view-box;
    transform-origin: 280px 300px;
}

.block path {
    fill: none;
    stroke: rgba(159, 180, 207, 0.55);
    stroke-width: 2;
}

.block .slab {
    stroke: rgba(159, 180, 207, 0.3);
    stroke-width: 1.5;
}

.block .ground {
    stroke: var(--mist);
    stroke-width: 2.5;
}

.block .cellar {
    stroke-dasharray: 6 5;
}

.hatch path {
    stroke: rgba(159, 180, 207, 0.35);
    stroke-width: 1.2;
}

.old path {
    fill: none;
    stroke: #8a8f97;
    stroke-width: 6;
    stroke-dasharray: 3 6;
    opacity: 0.25;
}

.pipe {
    fill: none;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.p-hot {
    stroke: #ec5546;
}

.p-cold {
    stroke: #4d8df0;
}

.p-circ {
    stroke: var(--circ);
}

.branch path {
    fill: none;
    stroke-width: 3.5;
    stroke-linecap: round;
}

.branch .b-cold {
    stroke: #4d8df0;
}

.branch .b-hot {
    stroke: #ec5546;
}

.branch .valve {
    fill: var(--on-navy);
    stroke: none;
}

.branch .meter {
    fill: var(--navy);
    stroke: var(--on-navy-2);
    stroke-width: 2.5;
}

.branch .tap {
    stroke: rgba(198, 211, 227, 0.55);
    stroke-dasharray: 4 4;
}

.callout path {
    fill: none;
    stroke: var(--on-navy-2);
    stroke-width: 1.2;
}

.callout text {
    font-size: 14px;
    fill: var(--on-navy);
}

.basement-t {
    font-size: 14px;
    letter-spacing: 0.04em;
}

@media (max-width: 600px) {
    .riser-svg text,
    .riser-svg .day-t,
    .callout text,
    .basement-t {
        font-size: 18px;
    }

    .riser-svg .day-big {
        font-size: 32px;
    }

    :lang(en) .riser-svg .day-big {
        font-size: 25px;
    }
}

.riser-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 14px;
    font-size: 0.95rem;
    color: var(--on-navy-2);
}

.lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lg::before {
    content: "";
    width: 22px;
    height: 5px;
    border-radius: 3px;
    background: currentColor;
}

.lg-hot::before {
    background: #ec5546;
}

.lg-cold::before {
    background: #4d8df0;
}

.lg-circ::before {
    background: var(--circ);
}

.lg-old::before {
    background: repeating-linear-gradient(90deg, #8a8f97 0 3px, transparent 3px 7px);
}

/* the opening moment: the old pipes fade, the new ones fill from the basement up, the sun crosses the day */
@media (prefers-reduced-motion: no-preference) {
    .pipe {
        stroke-dasharray: 100;
        animation: fill-pipe 2.4s cubic-bezier(0.55, 0.05, 0.3, 1) 0.5s both;
    }

    .p-hot {
        animation-delay: 0.65s;
    }

    .p-circ {
        animation-delay: 0.8s;
    }

    .old path {
        animation: old-fade 1.6s ease 0.4s both;
    }

    .branch {
        animation: branch-in 0.5s ease both;
        animation-delay: calc(1.5s + var(--i) * 0.22s);
    }

    .sun {
        animation: sun-day 3.6s cubic-bezier(0.45, 0, 0.35, 1) 0.3s both;
    }

    .callout,
    .riser-svg .day-big {
        animation: branch-in 0.6s ease 3.1s both;
    }
}

@keyframes fill-pipe {
    from {
        stroke-dashoffset: 100;
    }

    to {
        stroke-dashoffset: 0;
    }
}

@keyframes old-fade {
    from {
        opacity: 0.85;
    }

    to {
        opacity: 0.25;
    }
}

@keyframes branch-in {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes sun-day {
    from {
        transform: rotate(-33deg);
    }

    to {
        transform: rotate(33deg);
    }
}

/* the sun stays at evening once the day is done; without motion it stands at noon */
@media (prefers-reduced-motion: reduce) {
    .sun {
        transform: none;
    }
}

/* ---- the four facts ---- */

.facts {
    position: relative;
    margin-top: -1px;
    background: var(--sheet);
    border-bottom: 1px solid var(--line);
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 0;
}

.fact {
    position: relative;
    container-type: inline-size;
    padding: 30px 24px 28px;
    border-top: 5px solid var(--c, var(--navy));
}

.fact + .fact {
    box-shadow: inset 1px 0 0 var(--line);
}

.fact-big {
    display: block;
    font: 600 min(clamp(2.6rem, 5vw, 3.6rem), 18cqi)/1 var(--display);
    color: var(--navy);
    letter-spacing: -0.01em;
}

.fact-big small {
    font-size: 0.5em;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.fact p {
    margin: 10px 0 0;
    color: var(--ink-2);
    font-size: 1rem;
}

.fact-hot {
    --c: var(--hot);
}

.fact-cold {
    --c: var(--cold);
}

.fact-circ {
    --c: var(--circ);
}

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

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

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

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

.section-head p {
    color: var(--ink-2);
    margin: 0;
    max-width: 36em;
}

.section-head .eyebrow {
    color: var(--ink-2);
}

/* services: a bento grid */
.bento {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr);
}

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

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

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

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px 24px 24px;
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--line);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px -24px rgba(17, 29, 48, 0.55);
}

.tile h3 {
    margin: 0;
    font-size: 1.45rem;
}

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

.tile svg {
    width: 56px;
    height: 56px;
    flex: none;
}

.tile-navy {
    background: linear-gradient(160deg, var(--steel), var(--navy));
    border-color: transparent;
    color: var(--on-navy);
}

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

.tile-num {
    position: absolute;
    top: 20px;
    right: 22px;
    font: 500 0.9rem/1 var(--display);
    letter-spacing: 0.1em;
    color: var(--ink-2);
}

.tile-navy .tile-num {
    color: var(--on-navy-2);
}

.ico-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ico-hot {
    stroke: var(--hot);
}

.ico-cold {
    stroke: var(--cold);
}

.ico-circ {
    stroke: var(--circ);
}

.tile-navy .ico-hot {
    stroke: #ec5546;
}

.tile-navy .ico-cold {
    stroke: #6aa0f2;
}

/* extras: instalments and meters */
.extras {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}


.extra {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px 24px;
    border-radius: var(--radius);
    background: transparent;
    border: 2px dashed var(--line);
}

.extra strong {
    display: block;
    font: 500 1.3rem/1.2 var(--display);
    margin-bottom: 4px;
}

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

.extra-mark {
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--circ-light);
    font: 600 1.2rem/1 var(--display);
}

/* materials: pipes in section */
.materials {
    background: var(--sheet);
    border-block: 1px solid var(--line);
}

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

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

.pipe-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--concrete);
}

.pipe-card h3 {
    margin-bottom: 6px;
}

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

.pipe-card .use {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    font: 500 0.95rem/1.3 var(--display);
    letter-spacing: 0.03em;
    color: #fff;
}

.use-hot {
    background: var(--hot-ink);
}

.use-cold {
    background: var(--cold-ink);
}

.xsec {
    width: clamp(96px, 22vw, 140px);
    height: auto;
}

.advantages {
    display: grid;
    gap: 0;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: adv;
}

@media (min-width: 760px) {
    .advantages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 40px;
    }
}

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

.advantages li {
    position: relative;
    padding: 16px 0 16px 46px;
    border-top: 1px solid var(--line);
}

.advantages li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 19px;
    width: 26px;
    height: 18px;
    background:
        linear-gradient(var(--navy), var(--navy)) 0 0 / 4px 100% no-repeat,
        linear-gradient(var(--navy), var(--navy)) 100% 0 / 4px 100% no-repeat,
        linear-gradient(var(--cold), var(--cold)) 0 50% / 100% 6px no-repeat;
    border-radius: 1px;
}


/* the photo strip */
.strip-wrap {
    background: var(--night);
    color: var(--on-navy);
    padding-block: clamp(56px, 7vw, 88px);
    overflow: clip;
}

.strip-wrap .section-head p,
.strip-wrap .section-head .eyebrow {
    color: var(--on-navy-2);
}

.strip {
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 0 max(16px, (100% - var(--wrap)) / 2) 12px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--steel) transparent;
}

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

.strip figure {
    margin: 0;
}

.strip a {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    outline-offset: 3px;
}

.strip img {
    height: clamp(240px, 36vw, 360px);
    width: auto;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.strip-more {
    margin-top: 26px;
}

.strip-wrap a.btn-ghost {
    color: var(--on-navy);
}

/* what the price includes: a numbered trail along a pipe */
.trail {
    position: relative;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.trail li {
    position: relative;
    padding: 0 0 26px 74px;
    counter-increment: step;
}

.trail li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: -4px;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--circ-light);
    font: 600 1.15rem/1 var(--display);
    z-index: 1;
}

.trail li::after {
    content: "";
    position: absolute;
    left: 24px;
    top: 40px;
    bottom: -4px;
    width: 4px;
    background: linear-gradient(var(--hot), var(--cold));
    border-radius: 2px;
}

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

.trail strong {
    display: block;
    font: 500 1.3rem/1.25 var(--display);
}

.trail span {
    color: var(--ink-2);
}

@media (min-width: 1000px) {
    .trail {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 20px;
    }

    .trail li {
        padding: 74px 0 0;
    }

    .trail li::after {
        left: 52px;
        right: -20px;
        top: 24px;
        bottom: auto;
        width: auto;
        height: 4px;
        background: linear-gradient(90deg, var(--hot), var(--cold));
    }
}

.price-note {
    display: grid;
    gap: 18px;
    margin-top: 36px;
    padding: 26px 28px;
    border-radius: var(--radius);
    background: var(--navy);
    color: var(--on-navy);
}

@media (min-width: 860px) {
    .price-note {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }
}

.price-note p {
    margin: 0;
    color: var(--on-navy-2);
}

.price-note strong {
    color: var(--on-navy);
    font: 500 1.4rem/1.2 var(--display);
    display: block;
    margin-bottom: 4px;
}

/* the call band */
.callband {
    background:
        linear-gradient(90deg, var(--hot) 0 33.3%, var(--cold) 0 66.6%, var(--circ) 0) top / 100% 6px no-repeat,
        var(--circ);
    color: var(--night);
    padding-block: clamp(44px, 6vw, 72px);
}

.callband-grid {
    display: grid;
    gap: 18px 40px;
    align-items: center;
}

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

.callband h2 {
    margin: 0 0 8px;
}

.callband p {
    margin: 0;
    font-size: 1.1rem;
}

.callband-phones {
    display: flex;
    flex-direction: column;
    gap: 6px;
    container-type: inline-size;
    width: 100%;
}

.callband-phones a {
    color: var(--night);
    font: 600 clamp(1.6rem, 13cqi, 2.6rem)/1.1 var(--display);
    text-decoration: none;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.callband-phones a:hover {
    color: var(--navy);
    text-decoration: underline;
}

.callband-phones span {
    font-size: 1rem;
}

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

.page-hero {
    position: relative;
    background: linear-gradient(170deg, var(--steel), var(--navy) 55%, var(--night));
    color: var(--on-navy);
    padding-block: clamp(44px, 7vw, 84px) clamp(40px, 6vw, 70px);
    overflow: clip;
}

.page-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--hot) 0 33.3%, var(--cold) 0 66.6%, var(--circ) 0);
}

.page-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    text-transform: uppercase;
    margin-bottom: 0.3em;
}

.page-hero .lead {
    max-width: 40em;
    color: var(--on-navy-2);
    font-size: 1.15rem;
    margin: 0;
}

.page-hero .eyebrow {
    color: var(--on-navy-2);
}

/* offer page */
.duo {
    display: grid;
    gap: 22px;
}

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

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

.card h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.ticks {
    margin: 0 0 1.2em;
    padding: 0;
    list-style: none;
}

.ticks li {
    position: relative;
    padding: 8px 0 8px 34px;
    border-top: 1px solid var(--line);
}

.ticks li:first-child {
    border-top: 0;
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 15px;
    width: 7px;
    height: 13px;
    border: solid var(--cold);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.doc {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
    align-items: start;
}

.doc + .doc {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.doc figure {
    margin: 0;
}

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

    .doc-preview {
        max-width: 180px;
    }

    .doc .doc-file {
        width: 84px;
        aspect-ratio: auto;
        padding: 16px 0;
        font-size: 1.1rem;
    }
}

.doc-preview a {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 14px 28px -20px rgba(17, 29, 48, 0.6);
    transition: transform 0.2s ease;
}

.doc-preview a:hover {
    transform: rotate(-1.5deg) translateY(-2px);
}

.doc-file {
    display: grid;
    place-items: center;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    background: var(--navy);
    color: var(--on-navy);
    font: 600 1.4rem/1 var(--display);
    letter-spacing: 0.08em;
}

.doc h3 {
    margin-bottom: 6px;
}

.doc p {
    color: var(--ink-2);
    margin-bottom: 10px;
    font-size: 1rem;
}

.doc-link {
    font-weight: 600;
}

.year {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--concrete);
    color: var(--ink);
    font: 500 0.9rem/1.5 var(--display);
    letter-spacing: 0.06em;
}

/* gallery page */
.masonry {
    columns: 3 280px;
    column-gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.masonry figure {
    position: relative;
    margin: 0;
}

.masonry a {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: var(--navy);
}

.masonry img {
    width: 100%;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.masonry a:hover img {
    transform: scale(1.03);
    opacity: 0.92;
}

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

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

.phones {
    container-type: inline-size;
    display: grid;
    gap: 6px;
    margin-bottom: 18px;
}

.big-phone {
    color: var(--navy);
    font: 600 clamp(1.7rem, 11cqi, 2.8rem)/1.15 var(--display);
    text-decoration: none;
    white-space: nowrap;
}

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

.contact-list {
    margin: 0;
}

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

.contact-list dt {
    font: 500 0.85rem/1.3 var(--display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-2);
    margin-bottom: 4px;
}

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

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

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

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

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--cold);
    outline: 3px solid rgba(42, 111, 214, 0.25);
    outline-offset: 0;
}

.contact-form ::placeholder {
    color: #6b7380;
}

.contact-form .btn {
    justify-self: start;
    border: 0;
    cursor: pointer;
}

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

.contact-sent {
    margin-bottom: 18px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #e3eefc;
    color: var(--ink);
}

.contact-sent strong {
    display: block;
}

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

.foot {
    position: relative;
    background: var(--night);
    color: var(--on-navy-2);
    padding-top: 0;
    font-size: 1rem;
}

.foot-lines {
    display: grid;
    gap: 4px;
    padding-top: 4px;
}

.foot-lines span {
    height: 4px;
}

.l-hot {
    background: var(--hot);
}

.l-cold {
    background: var(--cold);
}

.l-circ {
    background: var(--circ);
}

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

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

.foot h2 {
    font: 500 0.9rem/1.3 var(--display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mist);
    margin: 0 0 10px;
}

.foot p {
    margin: 0 0 16px;
}

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

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

.foot-logo {
    width: 190px;
    height: 19px;
    margin-bottom: 18px;
}

.foot-name {
    color: var(--on-navy);
    font-weight: 600;
}

.foot-note {
    color: var(--circ-light);
}

.foot-phone {
    font: 500 1.3rem/1.5 var(--display);
    text-decoration: none;
    letter-spacing: 0.02em;
}

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

.foot-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.foot-bottom {
    padding-block: 18px 22px;
    border-top: 1px solid rgba(159, 180, 207, 0.18);
    font-size: 0.92rem;
}

.foot-bottom p {
    margin: 0;
}

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

.not-found {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 16px;
    background: linear-gradient(170deg, var(--steel), var(--navy) 55%, var(--night));
    color: var(--on-navy);
}

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

.not-found h1 {
    font-size: clamp(2.2rem, 7vw, 3.6rem);
    text-transform: uppercase;
    margin-top: 28px;
}

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

.not-found p {
    color: var(--on-navy-2);
}

.not-found a:not(.btn) {
    color: var(--circ-light);
}

/* ---- scroll reveals ---- */

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            animation: reveal linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 60%;
        }
    }
}

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

    to {
        opacity: 1;
        transform: none;
    }
}

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

/* lightbox colours */
.lightbox {
    --lb-bg: rgba(10, 17, 29, 0.94);
    --lb-text: #f3f6fa;
    --lb-accent: #f1963e;
    --lb-accent-soft: rgba(241, 150, 62, 0.22);
}

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