/* СТМ Евро-Булмедик – occupational health service, Sofia.
   Hi-vis workwear and the risk assessment: workwear navy, hi-vis yellow (only on navy), reflective
   silver bands, paper; the four risk colours only in the matrix. Play Bold + Source Sans 3. */

@font-face {
    font-family: "Play";
    src: url("/fonts/play-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Source Sans 3";
    src: url("/fonts/source-sans-3.woff2") format("woff2");
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --navy: #14213d;
    --navy-deep: #0c1529;
    --navy-lit: #1f3157;
    --navy-line: #33466e;
    --hi: #d9f03b;
    --hi-deep: #c2da1c;
    --silver: #c5cad3;
    --silver-light: #e4e7ec;
    --paper: #f3f4ef;
    --sheet: #ffffff;
    --ink: #14213d;
    --muted: #4a5468;
    --on-navy: #eef1f6;
    --on-navy-muted: #b9c1d0;
    --rule: #d9dce3;
    --risk-low: #2e9e5b;
    --risk-mid: #f2b134;
    --risk-high: #ec7a2c;
    --risk-top: #b83228;
    --focus: var(--navy);
    --radius: 22px;
    --display: "Play", "Arial Narrow", system-ui, sans-serif;
    --text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wrap: 1180px;
    --tape: linear-gradient(to bottom,
        transparent 0 5px, var(--silver) 5px 13px, transparent 13px 23px,
        var(--silver) 23px 31px, transparent 31px);
}

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-wrap: break-word;
}

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

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

h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}

h3 {
    font-size: 1.25rem;
    line-height: 1.2;
}

.h3 {
    font-size: 1.25rem;
}

p {
    margin: 0 0 1em;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    text-decoration-thickness: 2px;
}

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

.top,
.hero,
.page-head,
.band-navy,
.card-navy,
.call-band,
.foot,
.not-found {
    --focus: var(--hi);
}

.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);
    white-space: nowrap;
}

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

.skip:focus {
    top: 12px;
}

/* ---- reflective tape: two silver bands, with a glint that runs along them ---- */

.tape {
    position: relative;
    height: 36px;
    background: var(--tape);
    overflow: hidden;
}

.tape::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 0 40%, rgba(255, 255, 255, 0.85) 48%, transparent 56% 100%);
    background-size: 60% 100%;
    background-repeat: no-repeat;
    background-position: -80% 0;
    -webkit-mask: var(--tape);
    mask: var(--tape);
}

@media (prefers-reduced-motion: no-preference) {
    .tape::after {
        animation: glint 7s ease-in-out 1s infinite;
    }
}

@keyframes glint {
    0% { background-position: -80% 0; }
    40%, 100% { background-position: 260% 0; }
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    min-height: 48px;
    padding: 0.7em 1.35em;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-hi {
    background: var(--hi);
    color: var(--navy);
    box-shadow: 0 10px 24px -12px rgba(217, 240, 59, 0.7);
}

.btn-hi:hover {
    background: #e6f86a;
}

.btn-line {
    border-color: var(--silver);
    color: var(--on-navy);
}

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

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

.btn-ink:hover {
    background: var(--navy-lit);
}

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

.top {
    position: relative;
    z-index: 20;
    background: rgba(12, 21, 41, 0.94);
    color: var(--on-navy);
    border-bottom: 1px solid var(--navy-line);
}

@supports (backdrop-filter: blur(8px)) {
    .top {
        background: rgba(12, 21, 41, 0.86);
        backdrop-filter: blur(10px) saturate(1.2);
    }
}

@media (min-width: 760px) {
    .top {
        position: sticky;
        top: 0;
    }
}

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

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

.brand .mark {
    flex: none;
    width: 44px;
    height: 44px;
    box-shadow: 0 0 0 1px var(--navy-line);
    border-radius: 10px;
}

.brand-text {
    display: grid;
    line-height: 1.1;
}

.brand-name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.01em;
}

.brand-kind {
    font-size: 0.82rem;
    color: var(--on-navy-muted);
}

.call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0.45em 1em;
    border-radius: 999px;
    background: var(--hi);
    color: var(--navy);
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.02rem;
    text-decoration: none;
    white-space: nowrap;
}

.call:hover {
    background: #e6f86a;
}

.lang {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--navy-line);
    border-radius: 999px;
    font-family: var(--display);
    font-size: 0.9rem;
}

.lang a,
.lang span {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    min-height: 36px;
    border-radius: 999px;
    text-decoration: none;
}

.lang span {
    background: var(--navy-lit);
    color: var(--hi);
}

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

.menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0.4em 0.95em;
    border: 1px solid var(--navy-line);
    border-radius: 999px;
    background: transparent;
    color: var(--on-navy);
    font: 700 0.95rem var(--display);
    cursor: pointer;
}

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

.menu-bars,
.menu-bars::before,
.menu-bars::after {
    display: block;
    width: 18px;
    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: -6px; }
.menu-bars::after { top: 6px; }

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

.nav a {
    padding: 0.5em 0.8em;
    border-radius: 999px;
    color: var(--on-navy);
    text-decoration: none;
    font-weight: 600;
}

.nav a:hover {
    background: var(--navy-lit);
}

.nav a[aria-current="page"] {
    color: var(--hi);
    box-shadow: inset 0 -3px 0 var(--hi);
    border-radius: 999px 999px 4px 4px;
}

.js-menu .nav {
    display: none;
}

.js-menu .nav.is-open {
    display: grid;
    gap: 2px;
    padding-bottom: 6px;
}

.js-menu .nav.is-open a {
    border-radius: 12px;
    padding: 0.7em 0.9em;
}

@media (max-width: 559px) {
    .brand {
        flex: 1 1 auto;
    }

    .call {
        order: 3;
        flex: 1 1 auto;
        justify-content: center;
    }

    .lang {
        order: 4;
    }

    .menu-toggle {
        order: 2;
    }

    .nav {
        order: 5;
    }
}

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

    .brand {
        margin-right: 0;
    }

    .nav,
    .js-menu .nav {
        display: flex;
        order: 0;
        width: auto;
        flex: 1;
        justify-content: center;
        gap: 2px;
    }

    .nav a {
        padding: 0.45em 0.7em;
        font-size: 0.98rem;
    }

    .menu-toggle,
    .js-menu .menu-toggle {
        display: none;
    }
}

/* ---- hero: the vest and the matrix ---- */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60rem 30rem at 85% 10%, rgba(217, 240, 59, 0.1), transparent 60%),
        linear-gradient(160deg, var(--navy-lit) 0%, var(--navy) 45%, var(--navy-deep) 100%);
    color: var(--on-navy);
    padding-block: clamp(40px, 7vw, 96px) clamp(96px, 10vw, 140px);
}

.hero::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(28px, 4vw, 48px);
    height: 36px;
    background: var(--tape);
    opacity: 0.9;
}

@media (prefers-reduced-motion: no-preference) {
    .hero::before {
        animation: tape-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
        transform-origin: left center;
    }
}

@keyframes tape-in {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

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

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

.eyebrow {
    margin-bottom: 1em;
    color: var(--hi);
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow-ink {
    color: var(--navy);
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 5.1rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
    margin-bottom: 0.45em;
}

.hl {
    color: var(--hi);
}

.lead {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    max-width: 38em;
    color: var(--on-navy);
}

.lead-dark {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 34em;
}

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

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

.hero-facts li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.35em 0.85em 0.35em 0.5em;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--navy-line);
    font-weight: 600;
    font-size: 0.98rem;
}

.hero-facts li::before {
    content: "";
    width: 20px;
    height: 20px;
    flex: none;
    border-radius: 50%;
    background: var(--hi) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%2314213d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-copy > * {
        animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

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

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

.matrix-card {
    position: relative;
    margin: 0;
    padding: clamp(18px, 3vw, 28px);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(31, 49, 87, 0.95), rgba(12, 21, 41, 0.95));
    border: 1px solid var(--navy-line);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
    max-width: 460px;
    justify-self: center;
    width: 100%;
}

.matrix {
    display: block;
    width: 100%;
}

.cell-low { fill: var(--risk-low); }
.cell-mid { fill: var(--risk-mid); }
.cell-high { fill: var(--risk-high); }
.cell-top { fill: var(--risk-top); }

.cell-score {
    font-family: var(--display);
    font-weight: 700;
    font-size: 17px;
    fill: var(--navy-deep);
}

.cell-top + .cell-score {
    fill: #fff;
}

.axis {
    font-family: var(--text);
    font-weight: 600;
    font-size: 15px;
    fill: var(--on-navy-muted);
}

@media (prefers-reduced-motion: no-preference) {
    .cell,
    .cell-score {
        transform-box: fill-box;
        transform-origin: center;
        animation: cell-on 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
        animation-delay: calc(var(--i) * 80ms + 300ms);
    }
}

@keyframes cell-on {
    from { opacity: 0; transform: scale(0.4); }
    to { opacity: 1; transform: none; }
}

.matrix-key {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    font-size: 0.92rem;
    color: var(--on-navy-muted);
}

.matrix-key li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.key {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.key-low { background: var(--risk-low); }
.key-mid { background: var(--risk-mid); }
.key-high { background: var(--risk-high); }
.key-top { background: var(--risk-top); }

.matrix-card figcaption {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--on-navy-muted);
}

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

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

.band-sheet {
    background: var(--sheet);
    border-block: 1px solid var(--rule);
}

.band-navy {
    background: linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: var(--on-navy);
}

.section-title {
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    letter-spacing: -0.02em;
}

.split-head {
    display: grid;
    gap: 0 40px;
    align-items: end;
    margin-bottom: 2rem;
}

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

/* the bento of the four services */

.bento {
    display: grid;
    gap: 16px;
}

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

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

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(22px, 3vw, 34px);
    border-radius: var(--radius);
    background: var(--sheet);
    border: 1px solid var(--rule);
    color: var(--ink);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tile::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--navy);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.25s ease;
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 40px -28px rgba(20, 33, 61, 0.55);
    border-color: var(--silver);
}

.tile:hover::before,
.tile:focus-visible::before {
    transform: scaleY(1);
}

.tile-no {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(3rem, 6vw, 4.6rem);
    line-height: 1;
    color: #7d8699;
    margin-bottom: 0.3em;
}

.tile h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.tile p {
    color: var(--muted);
    flex: 1;
}

.tile-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--display);
    font-weight: 700;
    color: var(--navy);
}

.tile-more::after {
    content: "→";
    transition: transform 0.2s ease;
}

.tile:hover .tile-more::after {
    transform: translateX(5px);
}

/* the yellow band: free */

.free {
    position: relative;
    background: var(--hi);
    color: var(--navy);
    padding-block: clamp(56px, 8vw, 100px);
    overflow: hidden;
}

.free::before {
    content: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 36px;
    margin-top: -18px;
    background: linear-gradient(to bottom,
        transparent 0 5px, rgba(20, 33, 61, 0.12) 5px 13px, transparent 13px 23px,
        rgba(20, 33, 61, 0.12) 23px 31px, transparent 31px);
}

.free-grid {
    position: relative;
    display: grid;
    gap: 20px 56px;
    align-items: center;
}

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

    .free::before {
        content: "";
    }
}

.free-word {
    margin: 0;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(3rem, 11vw, 8.2rem);
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

:lang(en) .free-word {
    font-size: clamp(3.4rem, 13vw, 9.4rem);
}

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

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

.free-list li {
    padding-left: 34px;
    position: relative;
}

.free-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23d9f03b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* the trail: we come to you */

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

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

.trail li {
    position: relative;
    padding: 0 0 0 64px;
}

@media (min-width: 860px) {
    .trail li {
        padding: 72px 24px 0 0;
    }

    .trail li::before {
        content: "";
        position: absolute;
        top: 25px;
        left: 52px;
        right: 0;
        height: 3px;
        background: repeating-linear-gradient(90deg, var(--silver) 0 10px, transparent 10px 18px);
    }

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

.trail-no {
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--navy);
    color: var(--hi);
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.5rem;
}

.trail h3 {
    font-size: 1.35rem;
    margin-bottom: 0.3em;
}

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

.trail-note {
    margin: 2rem 0 0;
    font-weight: 600;
}

.trail-note a::after {
    content: " →";
}

/* the register of documents */

.register-grid {
    display: grid;
    gap: 36px 56px;
}

@media (min-width: 940px) {
    .register-grid {
        grid-template-columns: 0.9fr 1.1fr;
        align-items: start;
    }
}

.big-figure {
    margin: 0;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(6rem, 18vw, 12rem);
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--hi);
}

.register-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.register-head p:not(.big-figure) {
    color: var(--on-navy-muted);
}

.count {
    color: var(--navy);
    background: linear-gradient(transparent 62%, var(--hi) 62% 92%, transparent 92%);
    padding-inline: 0.1em;
}

.register {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: reg;
    border-top: 2px solid var(--navy);
}

@media (min-width: 900px) {
    .register:not(.register-short) {
        columns: 2;
        column-gap: 48px;
    }
}

.register li {
    counter-increment: reg;
    display: grid;
    grid-template-columns: 3.1em 1fr 26px;
    gap: 12px;
    align-items: start;
    padding: 0.7em 0;
    border-bottom: 1px solid var(--rule);
    break-inside: avoid;
    view-timeline-name: --row;
}

.register li::before {
    content: counter(reg, decimal-leading-zero);
    font-family: var(--display);
    font-weight: 700;
    color: var(--muted);
}

.register li::after {
    content: "";
    width: 24px;
    height: 24px;
    border: 2px solid var(--navy);
    border-radius: 6px;
    background: var(--hi) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='%2314213d' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.band-navy .register {
    border-top-color: var(--hi);
}

.band-navy .register li {
    border-bottom-color: var(--navy-line);
}

.band-navy .register li::before {
    color: var(--on-navy-muted);
}

.band-navy .register li::after {
    border-color: var(--hi);
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .register li::after {
            animation: tick linear both;
            animation-timeline: --row;
            animation-range: entry 60% cover 45%;
        }
    }
}

@keyframes tick {
    from { background-color: transparent; background-size: 0 0; }
    to { background-color: var(--hi); background-size: 100% 100%; }
}

/* what we need for a contract */

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

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

.needs li {
    counter-increment: need;
    position: relative;
    padding: 28px 26px 22px;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--rule);
}

.needs li::before {
    content: counter(need);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: var(--navy);
    color: var(--hi);
    font: 700 1.3rem var(--display);
}

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

/* the certificate on the home page */

.cert-teaser {
    display: grid;
    gap: 36px 64px;
    align-items: center;
}

@media (min-width: 820px) {
    .cert-teaser {
        grid-template-columns: minmax(220px, 320px) 1fr;
    }
}

.cert-thumb {
    display: block;
    max-width: 320px;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 30px 50px -30px rgba(20, 33, 61, 0.55), 0 0 0 1px var(--rule);
    transform: rotate(-2.5deg);
    transition: transform 0.25s ease;
}

.cert-thumb:hover,
.cert-thumb:focus-visible {
    transform: rotate(0deg) scale(1.02);
}

.cert-thumb img {
    display: block;
}

.cert-teaser p {
    color: var(--muted);
    max-width: 36em;
}

/* the call band */

.call-band {
    background: var(--navy-deep);
    color: var(--on-navy);
}

.call-grid {
    display: grid;
    gap: 20px 48px;
    align-items: center;
    padding-block: clamp(44px, 6vw, 76px);
}

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

.call-band h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}

.call-band p {
    color: var(--on-navy-muted);
    margin: 0;
}

.call-links {
    display: grid;
    gap: 8px;
    justify-items: start;
}

@media (min-width: 900px) {
    .call-links {
        justify-items: end;
    }
}

.big-phone {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2.1rem, 6vw, 3.4rem);
    line-height: 1.05;
    color: var(--hi);
    text-decoration: none;
    white-space: nowrap;
}

.big-phone:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px;
}

.call-mail {
    color: var(--on-navy);
    font-size: 1.1rem;
}

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

.page-head {
    position: relative;
    background:
        radial-gradient(50rem 24rem at 90% 0%, rgba(217, 240, 59, 0.09), transparent 60%),
        linear-gradient(160deg, var(--navy-lit), var(--navy) 50%, var(--navy-deep));
    color: var(--on-navy);
    padding-block: clamp(44px, 7vw, 88px) clamp(70px, 9vw, 110px);
    overflow: hidden;
}

.page-head > .tape {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
}

.page-head h1 {
    font-size: clamp(2.2rem, 5.6vw, 4rem);
    letter-spacing: -0.02em;
    max-width: 16em;
}

.page-head .wrap > * {
    position: relative;
}

@media (prefers-reduced-motion: no-preference) {
    .page-head .wrap > * {
        animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .page-head .wrap > :nth-child(2) { animation-delay: 0.07s; }
    .page-head .wrap > :nth-child(3) { animation-delay: 0.14s; }
}

/* services: a side index and numbered sheets */

.with-aside {
    display: grid;
    gap: 24px 48px;
    padding-block: clamp(36px, 6vw, 80px);
}

@media (min-width: 1000px) {
    .with-aside {
        grid-template-columns: 250px 1fr;
        align-items: start;
    }
}

.aside-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.aside-nav a {
    padding: 0.5em 0.95em;
    border-radius: 999px;
    border: 1px solid var(--rule);
    background: var(--sheet);
    text-decoration: none;
    font-weight: 600;
}

.aside-nav a:hover {
    border-color: var(--navy);
}

@media (min-width: 1000px) {
    .aside-nav {
        position: sticky;
        top: 100px;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 4px;
        padding-left: 14px;
        border-left: 3px solid var(--navy);
    }

    .aside-nav a {
        border: 0;
        background: none;
        padding: 0.45em 0.6em;
        border-radius: 8px;
    }

    .aside-nav a:hover {
        background: var(--sheet);
    }
}

.sections {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.svc {
    position: relative;
    padding: clamp(24px, 4vw, 48px);
    border-radius: 28px;
    background: var(--sheet);
    border: 1px solid var(--rule);
    scroll-margin-top: 100px;
    overflow: hidden;
}

.svc-no {
    position: absolute;
    right: clamp(16px, 3vw, 36px);
    top: clamp(10px, 2vw, 22px);
    font: 700 clamp(3.6rem, 9vw, 6.4rem) / 1 var(--display);
    color: transparent;
    -webkit-text-stroke: 1.5px var(--silver);
    pointer-events: none;
}

.svc h2 {
    position: relative;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    max-width: 15em;
    padding-right: 2.2em;
}

.svc h3 {
    margin-top: 1.6em;
}

.stamp {
    display: inline-block;
    padding: 0.45em 1em;
    border-radius: 10px;
    background: var(--navy);
    color: var(--hi);
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.05rem;
    transform: rotate(-1.2deg);
}

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

@media (min-width: 760px) {
    .checks-cols {
        grid-template-columns: 1fr 1fr;
        gap: 10px 32px;
    }
}

.checks li {
    position: relative;
    padding-left: 32px;
}

.checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23d9f03b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.callout {
    margin: 1.2em 0 0;
    padding: 0.9em 1.1em;
    border-left: 5px solid var(--navy);
    background: var(--paper);
    border-radius: 0 12px 12px 0;
    font-weight: 700;
}

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

.chips li {
    padding: 0.4em 0.9em;
    border-radius: 999px;
    background: var(--paper);
    border: 1px solid var(--rule);
    font-weight: 600;
}

.steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
    display: grid;
    gap: 0;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding: 0.9em 0 0.9em 56px;
    border-top: 1px solid var(--rule);
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.75em;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--navy);
    font: 700 1.1rem var(--display);
}

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

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

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

.gauges li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--paper);
    border: 1px solid var(--rule);
    font-weight: 600;
    line-height: 1.35;
}

.gauge-ico {
    flex: none;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--hi);
    font: 700 1.05rem var(--display);
    box-shadow: inset 0 0 0 4px var(--navy-lit);
}

/* legislation */

.acts {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 2px solid var(--navy);
}

.acts li {
    display: grid;
    gap: 4px 24px;
    padding: 1em 0;
    border-bottom: 1px solid var(--rule);
    font-weight: 600;
}

@media (min-width: 760px) {
    .acts li {
        grid-template-columns: 110px 1fr 170px;
        align-items: baseline;
    }
}

.act-kind {
    font-family: var(--display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.act-src {
    font-weight: 400;
    color: var(--muted);
}

@media (min-width: 760px) {
    .act-src {
        text-align: right;
    }
}

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

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

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

.orgs li {
    padding: 18px 20px 18px 22px;
    border-radius: 16px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-left: 5px solid var(--navy);
    font-weight: 600;
    line-height: 1.35;
}

/* certificate */

.docs {
    display: grid;
    gap: 28px;
    align-items: start;
}

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

.doc {
    margin: 0;
}

.doc a {
    display: block;
    padding: 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 30px 50px -34px rgba(20, 33, 61, 0.55), 0 0 0 1px var(--rule);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doc a:hover {
    transform: translateY(-4px);
}

.doc img {
    display: block;
    width: 100%;
}

.doc figcaption {
    margin-top: 14px;
    color: var(--muted);
}

.doc figcaption strong {
    color: var(--ink);
}

.doc-cols {
    display: grid;
    gap: 24px 56px;
}

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

.doc-cols p,
.doc-cols li {
    color: var(--muted);
}

.doc-cols ol {
    padding-left: 1.3em;
    margin: 0;
    display: grid;
    gap: 10px;
}

/* contact */

.duo {
    display: grid;
    gap: 20px;
    align-items: start;
}

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

.card {
    padding: clamp(24px, 4vw, 40px);
    border-radius: 28px;
    background: var(--sheet);
    border: 1px solid var(--rule);
    min-width: 0;
}

.card-navy {
    background: linear-gradient(165deg, var(--navy-lit), var(--navy-deep));
    border-color: var(--navy-line);
    color: var(--on-navy);
}

.card-label {
    margin: 0;
    font-family: var(--display);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
    color: var(--on-navy-muted);
}

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

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

.contact-list dt {
    font-family: var(--display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--on-navy-muted);
}

.contact-list dd {
    margin: 2px 0 0;
    font-size: 1.1rem;
}

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

.card-navy a.big-phone {
    color: var(--hi);
}

.marks {
    padding-left: 1.2em;
    margin: 0;
    color: var(--on-navy-muted);
}

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

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75em 0.9em;
    border: 2px solid var(--silver);
    border-radius: 12px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--navy);
    background: #fff;
}

.contact-form ul {
    margin: 4px 0 0;
    padding-left: 1.1em;
    color: #a1261c;
    font-weight: 600;
}

.contact-form .btn {
    justify-self: start;
    background: var(--navy);
    color: #fff;
}

.contact-form .btn:hover {
    background: var(--navy-lit);
}

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

.contact-sent {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 14px;
    background: #e3f3e8;
    border: 1px solid #9ccfae;
    color: #14402a;
}

.contact-sent strong {
    display: block;
}

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

.foot {
    background: var(--navy-deep);
    color: var(--on-navy-muted);
    padding-bottom: 28px;
}

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

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

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

.foot h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--on-navy);
}

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

.brand-foot {
    color: var(--on-navy);
    margin-bottom: 16px;
}

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

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

.foot address {
    font-style: normal;
}

.foot-phone {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--hi);
    text-decoration: none;
}

.foot .foot-phone {
    color: var(--hi);
}

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

.foot-bottom {
    padding-top: 20px;
    border-top: 1px solid var(--navy-line);
    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(160deg, var(--navy-lit), var(--navy) 50%, var(--navy-deep));
    color: var(--on-navy);
    position: relative;
    overflow: hidden;
}

.not-found::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 60px;
    height: 36px;
    background: var(--tape);
}

.not-found > div {
    position: relative;
    max-width: 640px;
}

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

.not-found a:not(.btn):not(.brand) {
    color: var(--hi);
}

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

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

/* ---- lightbox: /js/lightbox.js opens a linked image enlarged over the page, in a <dialog> ----
   Paste this block into the site's css/site.css. The overlay is dark in every theme and brings its own
   colours and box sizing, so it does not depend on the rest of the stylesheet. To recolour it to the
   site, set these on .lightbox (or on :root): --lb-bg, --lb-text, --lb-accent (focus ring),
   --lb-accent-soft (hover). */

[data-lightbox] {
    cursor: zoom-in;
}

.lightbox,
.lightbox * {
    box-sizing: border-box;
}

html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 68px 12px 14px;
    border: 0;
    background: var(--lb-bg, rgba(12, 14, 16, 0.95));
    color: var(--lb-text, #f2f2f2);
    color-scheme: dark;
    overscroll-behavior: contain;
}

.lightbox[open] {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
}

.lightbox::backdrop {
    background: none;
}

.lightbox-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    max-width: none;
    border-radius: 4px;
    background: #fff;
}

.lightbox-caption {
    display: grid;
    place-items: center;
    min-height: 44px;
    max-width: none;
    margin: 0;
    padding: 0 56px;
    color: var(--lb-text, #f2f2f2);
    font-size: 0.92rem;
    line-height: 1.35;
    text-align: center;
}

.lightbox-button {
    position: absolute;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lightbox-button:hover {
    border-color: #ffffff;
    background-color: var(--lb-accent-soft, rgba(255, 255, 255, 0.16));
}

.lightbox-button:focus-visible {
    outline: 3px solid var(--lb-accent, #ffffff);
    outline-offset: 3px;
    border-radius: 50%;
}

.lightbox-button[hidden] {
    display: none;
}

.lightbox-close {
    top: 12px;
    right: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

.lightbox-prev,
.lightbox-next {
    bottom: 14px;
}

.lightbox-prev {
    left: 12px;
    rotate: 180deg;
}

.lightbox-next {
    right: 12px;
}

@media (min-width: 760px) {
    .lightbox {
        padding: 24px 84px 18px;
    }

    .lightbox-caption {
        padding: 0;
    }

    .lightbox-prev,
    .lightbox-next {
        top: calc(50% - 22px);
        bottom: auto;
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next,
    .lightbox-close {
        right: 20px;
    }

    .lightbox-close {
        top: 20px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .lightbox[open] {
        animation: lightbox-in 0.2s ease;
    }
}

@keyframes lightbox-in {
    from {
        opacity: 0;
    }
}

.lightbox {
    --lb-bg: rgba(12, 21, 41, 0.96);
    --lb-accent: #d9f03b;
    --lb-accent-soft: rgba(217, 240, 59, 0.18);
}
