/*
 * Urbaniak - przewozy osob mikrobusami.
 *
 * Design tokens first: every component reads colours, type and spacing from
 * here, so a palette change is one edit instead of twenty.
 * Served as a file (not inline) because the policy allows 'self' styles.
 */

/*
 * Fonts live on this server: the policy lets nothing in from other origins.
 * Each face comes as two files, "latin" and "latin-ext" (Polish letters like
 * ą ę ł ś ż sit in the second), and the browser fetches the one it needs by
 * unicode-range. Licences: assets/fonts/LICENSE-*.txt (SIL OFL 1.1).
 */
@font-face {
    font-family: "Archivo Narrow";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("/assets/fonts/archivo-narrow-latin-ext-400-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Archivo Narrow";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("/assets/fonts/archivo-narrow-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Archivo Narrow";
    font-style: normal;
    font-weight: 700;
    font-display: block;
    src: url("/assets/fonts/archivo-narrow-latin-ext-700-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Archivo Narrow";
    font-style: normal;
    font-weight: 700;
    font-display: block;
    src: url("/assets/fonts/archivo-narrow-latin-700-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("/assets/fonts/source-serif-4-latin-ext-400-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("/assets/fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Source Serif 4";
    font-style: italic;
    font-weight: 400;
    font-display: block;
    src: url("/assets/fonts/source-serif-4-latin-ext-400-italic.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Source Serif 4";
    font-style: italic;
    font-weight: 400;
    font-display: block;
    src: url("/assets/fonts/source-serif-4-latin-400-italic.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Palette: navy base, brass accent. Our own, not the reference brand's. */
    --u-navy-900: #0b1a2d;
    --u-navy-800: #112843;
    --u-navy-700: #1a3a5e;
    --u-navy-600: #27527f;

    --u-brass:       #c08a2e;
    --u-brass-light: #ddab52;
    --u-brass-dark:  #9a6d1f;

    --u-n1: #f6f5f2;
    --u-n2: #e8e6e0;
    --u-n3: #cbc8c0;
    --u-n4: #9b978e;
    --u-n5: #6c6962;
    --u-n6: #3d3b37;
    --u-n7: #1c1b19;
    --u-white: #ffffff;

    --u-error: #b42318;
    --u-success: #10884c;

    /* Two families: narrow grotesk for text and UI, serif for display.
       The system fonts stay as the fallback while the woff2 files load. */
    --u-sans: "Archivo Narrow", "Arial Narrow", Arial, Helvetica, sans-serif;
    --u-serif: "Source Serif 4", Georgia, "Times New Roman", Times, serif;

    /* Scale in 4px steps, like the reference. Line heights come from it too. */
    --u-fs-12: 0.75rem;
    --u-fs-14: 0.875rem;
    --u-fs-16: 1rem;
    --u-fs-18: 1.125rem;
    --u-fs-20: 1.25rem;
    --u-fs-24: 1.5rem;
    --u-fs-28: 1.75rem;
    --u-fs-32: 2rem;
    --u-fs-40: 2.5rem;
    --u-fs-48: 3rem;
    --u-fs-56: 3.5rem;
    --u-fs-72: 4.5rem;

    --u-ls-thin:  0.03125rem;
    --u-ls-med:   0.0625rem;
    --u-ls-wide:  0.125rem;
    --u-ls-wider: 0.25rem;

    --u-space-1: 8px;
    --u-space-2: 16px;
    --u-space-3: 24px;
    --u-space-4: 32px;
    --u-space-5: 48px;
    --u-space-6: 64px;
    --u-space-7: 96px;

    --u-container: 1180px;
    --u-header-h: 76px;
    --u-header-h-mobile: 64px;

    --u-ease: 0.25s ease;
}

/* ---------- base ---------- */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--u-sans);
    font-size: var(--u-fs-18);
    line-height: 1.65;
    color: var(--u-n6);
    background: var(--u-white);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--u-navy-700); text-decoration: none; }
a:hover { color: var(--u-brass-dark); }

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--u-serif);
    font-weight: 400;
    color: var(--u-navy-900);
    line-height: 1.15;
}

p { margin: 0 0 var(--u-space-2); }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; list-style: none; }

/* Keyboard users must see where they are; the policy blocks inline styles,
   so every state lives in a class here. */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--u-brass);
    outline-offset: 3px;
}

.u-container {
    width: 100%;
    max-width: var(--u-container);
    margin: 0 auto;
    padding: 0 var(--u-space-3);
}

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

/* ---------- type helpers ---------- */

.u-eyebrow {
    display: block;
    font-family: var(--u-sans);
    font-size: var(--u-fs-12);
    font-weight: 700;
    letter-spacing: var(--u-ls-wider);
    text-transform: uppercase;
    color: var(--u-brass-dark);
    margin-bottom: var(--u-space-2);
}

.u-section-title {
    font-size: var(--u-fs-40);
    margin-bottom: var(--u-space-2);
}

.u-lead {
    font-size: var(--u-fs-20);
    color: var(--u-n5);
    max-width: 62ch;
}

/* ---------- buttons ---------- */
/* Sharp corners everywhere, like the reference. No radius, no exceptions. */

.u-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--u-space-1);
    min-height: 48px;
    padding: 0 var(--u-space-4);
    border: 1px solid transparent;
    border-radius: 0;
    font-family: var(--u-sans);
    font-size: var(--u-fs-14);
    font-weight: 700;
    letter-spacing: var(--u-ls-wide);
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color var(--u-ease), color var(--u-ease), border-color var(--u-ease);
}

.u-btn--primary { background: var(--u-brass); color: var(--u-navy-900); }
.u-btn--primary:hover { background: var(--u-brass-light); color: var(--u-navy-900); }

.u-btn--outline { background: transparent; color: var(--u-white); border-color: rgba(255, 255, 255, 0.55); }
.u-btn--outline:hover { background: var(--u-white); color: var(--u-navy-900); border-color: var(--u-white); }

.u-btn--dark { background: var(--u-navy-800); color: var(--u-white); }
.u-btn--dark:hover { background: var(--u-navy-700); color: var(--u-white); }

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

.u-section { padding: var(--u-space-7) 0; }
.u-section--tight { padding: var(--u-space-6) 0; }
.u-section--light { background: var(--u-n1); }
.u-section--dark { background: var(--u-navy-900); color: var(--u-n2); }
.u-section--dark h2, .u-section--dark h3 { color: var(--u-white); }
.u-section--dark .u-eyebrow { color: var(--u-brass-light); }
.u-section--dark .u-lead { color: var(--u-n3); }

.u-section-head { max-width: 70ch; margin-bottom: var(--u-space-5); }

/* ---------- header ---------- */
/* Transparent over the hero, solid once the page scrolls. The state class is
   added by app.js, the look stays here. */

.u-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    height: var(--u-header-h);
    display: flex;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 0.4s ease-out, border-color 0.4s ease-out, height 0.3s ease;
}

.u-header.is-solid {
    background: var(--u-navy-900);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.u-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--u-space-3);
    width: 100%;
    max-width: var(--u-container);
    margin: 0 auto;
    padding: 0 var(--u-space-3);
}

.u-logo { display: flex; flex-direction: column; line-height: 1.1; }
.u-logo__name {
    font-family: var(--u-serif);
    font-size: var(--u-fs-24);
    color: var(--u-white);
    letter-spacing: var(--u-ls-thin);
}
.u-logo__tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: var(--u-ls-wider);
    text-transform: uppercase;
    color: var(--u-brass-light);
}
.u-logo:hover .u-logo__name { color: var(--u-white); }

.u-nav { display: flex; align-items: center; gap: var(--u-space-4); }

.u-nav__link {
    font-size: var(--u-fs-12);
    font-weight: 700;
    letter-spacing: var(--u-ls-wide);
    text-transform: uppercase;
    color: var(--u-n2);
    padding: var(--u-space-1) 0;
    border-bottom: 2px solid transparent;
    transition: color var(--u-ease), border-color var(--u-ease);
}
.u-nav__link:hover,
.u-nav__link.is-active { color: var(--u-white); border-bottom-color: var(--u-brass); }

.u-header__phone {
    font-size: var(--u-fs-16);
    font-weight: 700;
    letter-spacing: var(--u-ls-thin);
    color: var(--u-white);
    white-space: nowrap;
}
.u-header__phone:hover { color: var(--u-brass-light); }

/* Burger: three bars that become a cross. */
.u-burger {
    display: none;
    width: 44px; height: 44px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}
.u-burger__bar {
    display: block;
    width: 26px; height: 2px;
    margin: 5px auto;
    background: var(--u-white);
    transition: transform var(--u-ease), opacity var(--u-ease);
}
.u-burger.is-open .u-burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.u-burger.is-open .u-burger__bar:nth-child(2) { opacity: 0; }
.u-burger.is-open .u-burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.u-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--u-header-h) + var(--u-space-6)) 0 var(--u-space-7);
    background:
        linear-gradient(140deg, rgba(11, 26, 45, 0.92) 0%, rgba(26, 58, 94, 0.78) 55%, rgba(39, 82, 127, 0.68) 100%),
        var(--u-navy-900);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.u-hero__inner { position: relative; z-index: 2; max-width: 56rem; }

.u-hero__title {
    font-size: var(--u-fs-56);
    color: var(--u-white);
    margin-bottom: var(--u-space-3);
}
.u-hero__title em { font-style: italic; color: var(--u-brass-light); }

.u-hero__text {
    font-size: var(--u-fs-20);
    color: var(--u-n2);
    max-width: 52ch;
    margin-bottom: var(--u-space-5);
}

.u-hero__actions { display: flex; flex-wrap: wrap; gap: var(--u-space-2); }

.u-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--u-space-5);
    margin-top: var(--u-space-7);
    padding-top: var(--u-space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.u-hero__fact-value {
    display: block;
    font-family: var(--u-serif);
    font-size: var(--u-fs-32);
    color: var(--u-white);
    line-height: 1.1;
}
.u-hero__fact-label {
    display: block;
    font-size: var(--u-fs-12);
    font-weight: 700;
    letter-spacing: var(--u-ls-wide);
    text-transform: uppercase;
    color: var(--u-brass-light);
    margin-top: 4px;
}

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

.u-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--u-n2);
    border: 1px solid var(--u-n2);
}

.u-card {
    background: var(--u-white);
    padding: var(--u-space-4);
    transition: background-color var(--u-ease), transform var(--u-ease);
}
.u-card:hover { background: var(--u-n1); transform: translateY(-4px); }

.u-card__no {
    display: block;
    font-size: var(--u-fs-12);
    font-weight: 700;
    letter-spacing: var(--u-ls-wider);
    color: var(--u-brass-dark);
    margin-bottom: var(--u-space-2);
}
.u-card__title { font-size: var(--u-fs-24); margin-bottom: var(--u-space-1); }
.u-card__text { font-size: var(--u-fs-16); color: var(--u-n5); }

/* The photo is the sixth cell of the grid, next to the fifth card; its height comes from the row. */
.u-cards__photo { position: relative; min-height: 0; margin: 0; overflow: hidden; background: var(--u-navy-900); }
.u-cards__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }

/* ---------- vehicle ---------- */

.u-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--u-space-7);
    align-items: center;
}

.u-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.14);
    margin-top: var(--u-space-4);
}
.u-spec { background: var(--u-navy-900); padding: var(--u-space-3); }
.u-spec__value {
    display: block;
    font-family: var(--u-serif);
    font-size: var(--u-fs-28);
    color: var(--u-white);
}
.u-spec__label {
    display: block;
    font-size: var(--u-fs-12);
    font-weight: 700;
    letter-spacing: var(--u-ls-wide);
    text-transform: uppercase;
    color: var(--u-n3);
    margin-top: 2px;
}

.u-figure {
    background: linear-gradient(140deg, var(--u-navy-700), var(--u-navy-600));
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.u-figure img { width: 100%; height: 100%; object-fit: cover; }
.u-figure__placeholder {
    font-size: var(--u-fs-12);
    font-weight: 700;
    letter-spacing: var(--u-ls-wider);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: var(--u-space-3);
}

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

.u-checklist { margin-top: var(--u-space-3); }
.u-checklist li {
    position: relative;
    padding-left: var(--u-space-4);
    margin-bottom: var(--u-space-1);
    font-size: var(--u-fs-16);
}
.u-checklist li::before {
    content: "";
    position: absolute;
    left: 0; top: 11px;
    width: 14px; height: 2px;
    background: var(--u-brass);
}

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

.u-contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--u-space-7); align-items: start; }

.u-contact__row { margin-bottom: var(--u-space-3); }
.u-contact__label {
    display: block;
    font-size: var(--u-fs-12);
    font-weight: 700;
    letter-spacing: var(--u-ls-wide);
    text-transform: uppercase;
    color: var(--u-n4);
}
.u-contact__value { font-family: var(--u-serif); font-size: var(--u-fs-24); color: var(--u-navy-900); }
a.u-contact__value:hover { color: var(--u-brass-dark); }

.u-field { margin-bottom: var(--u-space-3); }
.u-field label {
    display: block;
    font-size: var(--u-fs-12);
    font-weight: 700;
    letter-spacing: var(--u-ls-wide);
    text-transform: uppercase;
    color: var(--u-n5);
    margin-bottom: 6px;
}
.u-field input, .u-field textarea {
    width: 100%;
    padding: 12px var(--u-space-2);
    font-family: var(--u-sans);
    font-size: var(--u-fs-18);
    color: var(--u-n7);
    background: var(--u-white);
    border: 1px solid var(--u-n3);
    border-radius: 0;
}
.u-field input:focus, .u-field textarea:focus { border-color: var(--u-navy-700); }
.u-field textarea { min-height: 150px; resize: vertical; }
.u-field.has-error input, .u-field.has-error textarea { border-color: var(--u-error); }
.u-field__error { display: block; font-size: var(--u-fs-14); color: var(--u-error); margin-top: 4px; }

.u-note {
    padding: var(--u-space-2) var(--u-space-3);
    margin-bottom: var(--u-space-3);
    font-size: var(--u-fs-16);
    border-left: 3px solid;
}
.u-note--ok { background: #f0f8f3; border-color: var(--u-success); color: #0b5e36; }
.u-note--bad { background: #fdf2f1; border-color: var(--u-error); color: var(--u-error); }

.u-form__footer { display: flex; align-items: center; gap: var(--u-space-3); flex-wrap: wrap; }
.u-form__hint { font-size: var(--u-fs-14); color: var(--u-n4); }

/* ---------- call bar (mobile) ---------- */

.u-callbar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 60;
    display: none;
    background: var(--u-navy-900);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.u-callbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--u-space-1);
    min-height: 56px;
    font-size: var(--u-fs-16);
    font-weight: 700;
    letter-spacing: var(--u-ls-wide);
    text-transform: uppercase;
    color: var(--u-white);
}

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

.u-footer { background: var(--u-navy-900); color: var(--u-n3); padding: var(--u-space-6) 0 var(--u-space-4); }
.u-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--u-space-5); }
.u-footer h3 {
    font-family: var(--u-sans);
    font-size: var(--u-fs-12);
    font-weight: 700;
    letter-spacing: var(--u-ls-wider);
    text-transform: uppercase;
    color: var(--u-brass-light);
    margin-bottom: var(--u-space-2);
}
.u-footer p { font-size: var(--u-fs-16); }
.u-footer a { color: var(--u-n2); }
.u-footer a:hover { color: var(--u-white); }
.u-footer li { margin-bottom: 6px; font-size: var(--u-fs-16); }
.u-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--u-space-2);
    margin-top: var(--u-space-5);
    padding-top: var(--u-space-3);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: var(--u-fs-14);
    color: var(--u-n4);
}

/* ---------- reveal on scroll ---------- */
/* app.js adds .is-visible; anyone who asked for less motion gets none. */

.u-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.u-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .u-reveal { opacity: 1; transform: none; transition: none; }
    .u-card:hover { transform: none; }
}

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

@media (max-width: 1080px) {
    .u-cards { grid-template-columns: repeat(2, 1fr); }
    .u-cards__photo { min-height: 190px; }
    .u-split, .u-contact { grid-template-columns: 1fr; gap: var(--u-space-5); }
    .u-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --u-header-h: 64px; }

    .u-burger { display: block; }

    /* Menu slides out of the header instead of sitting in it. */
    .u-nav {
        position: fixed;
        top: var(--u-header-h);
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--u-space-2) var(--u-space-3) var(--u-space-4);
        background: var(--u-navy-900);
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
    }
    .u-nav.is-open { transform: none; }
    .u-nav__link { padding: var(--u-space-2) 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .u-nav__link:hover, .u-nav__link.is-active { border-bottom-color: rgba(255, 255, 255, 0.1); }

    .u-header__phone { display: none; }
    .u-callbar { display: block; }
    body { padding-bottom: 56px; }

    .u-hero__title { font-size: var(--u-fs-40); }
    .u-hero__text { font-size: var(--u-fs-18); }
    .u-hero__facts { gap: var(--u-space-3); margin-top: var(--u-space-5); }
    .u-section-title { font-size: var(--u-fs-32); }
    .u-section { padding: var(--u-space-6) 0; }
}

@media (max-width: 540px) {
    .u-cards, .u-specs, .u-footer__grid { grid-template-columns: 1fr; }
    .u-hero__title { font-size: var(--u-fs-32); }
    .u-hero__actions .u-btn { width: 100%; }
}

/* ---------- additions ---------- */

/* The hero photo is an element, not a background, because the policy blocks
   style attributes. The gradient moves to an overlay above it. */
.u-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Dark on the left where the text sits, open on the right so the van shows. */
.u-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(11, 26, 45, 0.88) 0%, rgba(11, 26, 45, 0.62) 42%, rgba(11, 26, 45, 0.12) 100%),
        linear-gradient(0deg, rgba(11, 26, 45, 0.55) 0%, rgba(11, 26, 45, 0) 35%);
}

/* Slideshow: the photos lie on top of each other and cross-fade; the active one
   also drifts slowly. app.js moves .is-active, without it the first stays. */
.u-hero__slides { position: absolute; inset: 0; z-index: 0; }

.u-hero__bg {
    opacity: 0;
    object-position: 70% center;
    transform: scale(1);
    transition: opacity 1.6s ease, transform 9s ease-out;
    will-change: opacity, transform;
}
.u-hero__bg.is-active {
    opacity: 1;
    transform: scale(1.09) translateX(-1.5%);
}
/* Where the subject sits differs from photo to photo. */
.u-hero__bg:nth-child(2) { object-position: 62% 60%; }
.u-hero__bg:nth-child(3) { object-position: 45% 50%; }
.u-hero__bg:nth-child(4) { object-position: 55% 35%; }


@media (max-width: 720px) {
    .u-hero::before {
        background: linear-gradient(0deg, rgba(11, 26, 45, 0.88) 0%, rgba(11, 26, 45, 0.6) 55%, rgba(11, 26, 45, 0.35) 100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .u-hero__bg { transition: opacity 0.01s; transform: none !important; }
    .u-hero__scroll span::after { animation: none; }
}

/* Honeypot. display:none rather than off-screen: a screen reader should not
   meet this field either. */
.u-hp { display: none; }

/* Anchor targets sit under the fixed header without it. */
section[id] { scroll-margin-top: calc(var(--u-header-h) + 8px); }

/* ---------- display type: thin serif for headings ---------- */
/* Cormorant Garamond (SIL OFL, assets/fonts/LICENSE-cormorant-garamond.txt), self-hosted like the rest. */
@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 300;
    font-display: block;
    src: url("/assets/fonts/cormorant-garamond-latin-ext-300-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 300;
    font-display: block;
    src: url("/assets/fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Cormorant Garamond";
    font-style: italic;
    font-weight: 300;
    font-display: block;
    src: url("/assets/fonts/cormorant-garamond-latin-ext-300-italic.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Cormorant Garamond";
    font-style: italic;
    font-weight: 300;
    font-display: block;
    src: url("/assets/fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 500;
    font-display: block;
    src: url("/assets/fonts/cormorant-garamond-latin-ext-500-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 500;
    font-display: block;
    src: url("/assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root { --u-display: "Cormorant Garamond", "Source Serif 4", Georgia, "Times New Roman", serif; }

/* Big headings go hairline-thin, small ones one step heavier so they stay readable. */
h1, h2 { font-family: var(--u-display); font-weight: 300; letter-spacing: 0.005em; }
h3, h4 { font-family: var(--u-display); font-weight: 500; }
.u-hero__title { font-weight: 300; }
.u-hero__title em { font-weight: 300; }
.u-hero__fact-value, .u-spec__value { font-family: var(--u-display); font-weight: 300; }
.u-logo__name { font-family: var(--u-display); font-weight: 500; }

/* Cormorant has a small x-height, so the same size reads smaller: nudge the big ones up. */
.u-hero__title { font-size: clamp(3rem, 6.2vw, 5rem); line-height: 1.05; }
.u-section-title { font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1.1; }
@media (max-width: 720px) {
    .u-hero__title { font-size: 2.9rem; }
    .u-section-title { font-size: 2.25rem; }
}

/* ---------- full-screen sections ---------- */

/* Every section is at least one screen tall and its content sits in the middle.
   svh, because 100vh is taller than the visible area on phones. */
.u-screen {
    min-height: 100vh;
    min-height: 100svh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: calc(var(--u-header-h) + var(--u-space-4));
    padding-bottom: var(--u-space-5);
    scroll-margin-top: 0;
}

/* ---------- hero: extra text, controls ---------- */

.u-hero { padding-bottom: var(--u-space-6); }

.u-hero__text--more { color: var(--u-n3); font-size: var(--u-fs-18); }

.u-hero__actions { margin-bottom: var(--u-space-5); }

.u-hero__facts { margin-top: var(--u-space-5); }

.u-hero__controls {
    position: absolute;
    left: 0; right: 0; bottom: var(--u-space-4);
    z-index: 2;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: var(--u-space-3);
    max-width: var(--u-container);
    margin: 0 auto;
    padding: 0 var(--u-space-3);
    pointer-events: none;
}
.u-hero__controls > * { pointer-events: auto; }

.u-hero__dots { display: flex; gap: 10px; }
.u-hero__dot {
    width: 28px;
    height: 3px;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.3s ease, width 0.3s ease;
}
.u-hero__dot:hover { background: rgba(255, 255, 255, 0.7); }
.u-hero__dot.is-active { background: var(--u-brass-light); width: 44px; }
.u-hero__dot:focus-visible { outline: 2px solid var(--u-white); outline-offset: 4px; }

.u-hero__scroll {
    position: absolute;
    right: var(--u-space-4);
    bottom: calc(var(--u-space-4) + 22px);
    z-index: 2;
    color: var(--u-n2);
    text-decoration: none;
    font-size: var(--u-fs-12);
    letter-spacing: var(--u-ls-wider);
    text-transform: uppercase;
    writing-mode: vertical-rl;
}
.u-hero__scroll span { display: flex; align-items: center; gap: 10px; }
.u-hero__scroll span::after {
    content: "";
    width: 1px;
    height: 44px;
    background: linear-gradient(var(--u-brass-light), transparent);
    animation: u-scroll-cue 2.2s ease-in-out infinite;
}
@keyframes u-scroll-cue {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 900px) {
    .u-hero__scroll { display: none; }
    .u-hero__controls { position: static; margin-top: var(--u-space-4); padding-top: 0; }
    .u-hero__dots { margin: 0 auto; }
}

/* Short laptop screens: keep the hero text from overflowing the screen. */
@media (max-height: 760px) and (min-width: 901px) {
    .u-hero__text--more { display: none; }
    .u-hero__facts { margin-top: var(--u-space-4); }
}
/* ---------- language switcher ---------- */

.u-lang { display: flex; align-items: center; gap: var(--u-space-1); margin-left: var(--u-space-2); }
.u-lang__link {
    padding: 4px 6px;
    font-size: var(--u-fs-12);
    font-weight: 700;
    letter-spacing: var(--u-ls-wide);
    color: var(--u-n3);
    border-bottom: 2px solid transparent;
}
.u-lang__link:hover { color: var(--u-white); }
.u-lang__link.is-current { color: var(--u-white); border-bottom-color: var(--u-brass); }

/* ---------- sub-pages ---------- */
/* The article comes first in the markup, so on a phone the sidebar lands under the
   text. On a wide screen it moves to the left column and stays in view. */

.u-page { padding: calc(var(--u-header-h) + var(--u-space-5)) 0 var(--u-space-7); }

.u-page__layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: var(--u-space-6);
    align-items: start;
}
.u-page__layout .u-sidebar { grid-column: 1; grid-row: 1; }
.u-page__layout .u-page__content { grid-column: 2; grid-row: 1; }

.u-page__single { max-width: 46rem; }

.u-page__back { font-size: var(--u-fs-14); margin-bottom: var(--u-space-3); }
.u-page__title { font-size: var(--u-fs-48); margin-bottom: var(--u-space-3); }
.u-page__lead { margin-bottom: var(--u-space-5); }

.u-page__section { margin-bottom: var(--u-space-5); }
.u-page__section h2 { font-size: var(--u-fs-28); margin-bottom: var(--u-space-2); }
.u-page__section p { max-width: 62ch; }

.u-page__form { margin-bottom: var(--u-space-6); padding: var(--u-space-4); background: var(--u-n1); border-top: 3px solid var(--u-brass); }
.u-page__cta-text { font-family: var(--u-serif); font-size: var(--u-fs-24); color: var(--u-navy-900); margin-bottom: var(--u-space-3); }

.u-page__cta { margin-top: var(--u-space-6); padding: var(--u-space-4); background: var(--u-n1); border-top: 3px solid var(--u-brass); }
.u-page__cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--u-space-3); }
.u-page__cta-phone { font-family: var(--u-serif); font-size: var(--u-fs-24); color: var(--u-navy-900); }

/* Links only: no box, no heading. A thin rule on the left turns brass at the current page. */
.u-sidebar { position: sticky; top: calc(var(--u-header-h) + var(--u-space-3)); font-family: var(--u-display); }

.u-sidebar__list { border-left: 1px solid var(--u-n2); }
.u-sidebar__link {
    display: block;
    margin-left: -1px;
    padding: 7px 0 7px var(--u-space-2);
    border-left: 2px solid transparent;
    font-size: 1.2rem; /* Cormorant has a small x-height */
    font-weight: 500;
    line-height: 1.3;
    color: var(--u-n5);
}
a.u-sidebar__link:hover { color: var(--u-navy-900); border-left-color: var(--u-n3); }
.u-sidebar__link.is-current { color: var(--u-navy-900); border-left-color: var(--u-brass); }

.u-footer__grid--wide { grid-template-columns: 2fr 1fr 1fr 1.4fr; }

@media (max-width: 1080px) {
    .u-footer__grid--wide { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .u-page__layout { grid-template-columns: minmax(0, 1fr); gap: var(--u-space-5); }
    .u-page__layout .u-sidebar, .u-page__layout .u-page__content { grid-column: 1; grid-row: auto; }
    .u-sidebar { position: static; }
    .u-page__title { font-size: var(--u-fs-32); }
    .u-page__form, .u-page__cta { padding: var(--u-space-3); }
}

@media (max-width: 768px) {
    .u-page { padding-top: calc(var(--u-header-h) + var(--u-space-3)); }
    .u-lang { margin: var(--u-space-2) 0 0; gap: var(--u-space-2); }
}

@media (max-width: 540px) {
    .u-footer__grid--wide { grid-template-columns: 1fr; }
}

/* ---------- "read more" links ---------- */

.u-more {
    display: inline-block;
    margin-top: var(--u-space-2);
    font-size: var(--u-fs-14);
    font-weight: 700;
    letter-spacing: var(--u-ls-wide);
    text-transform: uppercase;
    color: var(--u-brass-dark);
}
.u-more:hover { color: var(--u-navy-700); }
.u-section--dark .u-more { color: var(--u-brass-light); }
.u-section--dark .u-more:hover { color: var(--u-white); }
.u-more-wrap { margin-top: var(--u-space-3); }

/* ---------- half hero: the strip with the page title on sub-pages ---------- */
/* The fixed header sits on its top part, so the picture itself is about 200px tall. */

.u-banner {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: calc(var(--u-header-h) + 200px);
    overflow: hidden;
    color: var(--u-white);
    background: linear-gradient(135deg, var(--u-navy-900), var(--u-navy-700));
}
/* The picture starts under the header, so all 200px of it are visible. */
.u-banner__img { position: absolute; top: var(--u-header-h); left: 0; width: 100%; height: calc(100% - var(--u-header-h)); object-fit: cover; }
.u-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 26, 45, 0.82) 0%, rgba(11, 26, 45, 0.5) 55%, rgba(11, 26, 45, 0.2) 100%);
}
.u-banner__inner { position: relative; z-index: 1; padding-top: var(--u-space-3); padding-bottom: var(--u-space-4); }
.u-banner__title { max-width: 30ch; font-size: clamp(1.75rem, 3vw, 2.5rem); color: var(--u-white); }

.u-banner + .u-page { padding-top: var(--u-space-5); }

@media (max-width: 768px) {
    .u-banner { min-height: calc(var(--u-header-h-mobile) + 150px); }
    .u-banner__img { top: var(--u-header-h-mobile); height: calc(100% - var(--u-header-h-mobile)); }
    /* A long title (four lines in French) grows the banner instead of sliding under the fixed header. */
    .u-banner__inner { padding-top: calc(var(--u-header-h-mobile) + 8px); }
    .u-banner__title { font-size: var(--u-fs-32); }
    .u-banner + .u-page { padding-top: var(--u-space-3); }
}

/* ---------- drop-down under the first menu item ---------- */
/* A list of the sub-pages. app.js opens it on hover, focus and tap; without JavaScript it stays
   closed and the "Services" link still works. */

.u-nav__item { position: relative; display: flex; align-items: center; gap: 2px; }

.u-nav__toggle {
    width: 22px;
    height: 26px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}
.u-nav__toggle::before {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    margin: -3px auto 0;
    border-right: 1.5px solid var(--u-n3);
    border-bottom: 1.5px solid var(--u-n3);
    transform: rotate(45deg);
    transition: transform var(--u-ease), border-color var(--u-ease);
}
.u-nav__toggle:hover::before,
.u-nav__item.is-open .u-nav__toggle::before { border-color: var(--u-brass-light); }
.u-nav__item.is-open .u-nav__toggle::before { transform: rotate(225deg); margin-top: 3px; }

.u-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: -16px;
    z-index: 60;
    min-width: 300px;
    margin-top: 10px;
    padding: var(--u-space-1) 0;
    background: var(--u-navy-900);
    border-top: 2px solid var(--u-brass);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
/* A bridge over the gap, so the pointer does not leave the item on its way down. */
.u-submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 12px; }

.u-submenu__link {
    display: block;
    padding: 10px var(--u-space-3);
    font-size: var(--u-fs-14);
    line-height: 1.35;
    letter-spacing: var(--u-ls-thin);
    color: var(--u-n2);
    border-left: 2px solid transparent;
    transition: color var(--u-ease), background-color var(--u-ease), border-color var(--u-ease);
}
.u-submenu__link:hover,
.u-submenu__link:focus-visible { color: var(--u-white); background: rgba(255, 255, 255, 0.06); border-left-color: var(--u-brass); }

@media (max-width: 768px) {
    /* Inside the slide-out menu the list is part of the flow and folds open under its item. */
    .u-nav__item { flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
    .u-nav__item .u-nav__link { flex: 1 1 auto; border-bottom: 0; padding: var(--u-space-2) 0; }
    .u-nav__toggle { width: 44px; height: 44px; }
    .u-submenu { position: static; flex: 1 0 100%; min-width: 0; margin: 0 0 var(--u-space-1); padding: 0 0 var(--u-space-1) var(--u-space-2); background: transparent; border-top: 0; box-shadow: none; }
    .u-submenu::before { display: none; }
    .u-submenu__link { padding: 10px 0 10px var(--u-space-2); }
}

/* ---------- services: the whole section has to fit one screen ---------- */
/* A screen is one viewport tall (see .u-screen), and this one holds a heading, two rows of cards and the
   photo. So the heading, the gaps and the card text are tighter than in the other sections. */

#uslugi.u-screen { padding-bottom: var(--u-space-4); }
#uslugi .u-section-head { margin-bottom: var(--u-space-3); }
#uslugi .u-section-title { font-size: clamp(2rem, 3.3vw, 2.75rem); margin-bottom: var(--u-space-1); }
#uslugi .u-lead { font-size: var(--u-fs-18); }
#uslugi .u-card { padding: var(--u-space-3); }
#uslugi .u-card__no { margin-bottom: var(--u-space-1); }
#uslugi .u-card__title { font-size: 1.375rem; line-height: 1.2; }
#uslugi .u-card__text { font-size: 0.95rem; line-height: 1.5; }
#uslugi .u-more { margin-top: var(--u-space-1); }

/* A low window (a laptop with the browser bars) gets it a notch tighter still. */
@media (min-width: 901px) and (max-height: 820px) {
    #uslugi.u-screen { padding-top: calc(var(--u-header-h) + var(--u-space-2)); padding-bottom: var(--u-space-2); }
    #uslugi .u-section-head { margin-bottom: var(--u-space-2); }
    #uslugi .u-eyebrow { margin-bottom: var(--u-space-1); }
    #uslugi .u-card { padding: var(--u-space-2) var(--u-space-3); }
}

/* ---------- car slideshow (vehicle section) ---------- */
/* A big picture with arrows and dots. Corners stay sharp, like everywhere else on the site. */

.u-split--wide { grid-template-columns: 9fr 15fr; gap: var(--u-space-5); }

.u-slider {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(140deg, var(--u-navy-700), var(--u-navy-600));
}

.u-slider__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0s linear 0.55s;
}
.u-slider__slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.55s ease; }
.u-slider__slide img { width: 100%; height: 100%; object-fit: cover; }

.u-slider__caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: var(--u-space-6) var(--u-space-4) var(--u-space-3);
    background: linear-gradient(0deg, rgba(11, 26, 45, 0.9), rgba(11, 26, 45, 0));
    color: var(--u-white);
}
.u-slider__caption strong {
    display: block;
    font-family: var(--u-display);
    font-size: var(--u-fs-28);
    font-weight: 500;
    line-height: 1.15;
}
.u-slider__caption span { display: block; max-width: 52ch; margin-top: 4px; font-size: var(--u-fs-16); color: var(--u-n2); line-height: 1.4; }

.u-slider__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 52px;
    height: 64px;
    padding: 0 0 4px;
    transform: translateY(-50%);
    color: var(--u-white);
    background: rgba(11, 26, 45, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color var(--u-ease), border-color var(--u-ease), color var(--u-ease);
}
.u-slider__arrow:hover { background: var(--u-brass); border-color: var(--u-brass); color: var(--u-navy-900); }
.u-slider__arrow--prev { left: var(--u-space-2); }
.u-slider__arrow--next { right: var(--u-space-2); }

.u-slider__dots { position: absolute; top: var(--u-space-2); right: var(--u-space-2); z-index: 2; display: flex; gap: 8px; }
.u-slider__dot {
    width: 12px;
    height: 12px;
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: background-color var(--u-ease);
}
.u-slider__dot:hover, .u-slider__dot.is-active { background: var(--u-brass); border-color: var(--u-brass); }

@media (max-width: 1080px) {
    .u-split--wide { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
    .u-slider { aspect-ratio: 4 / 3; }
    .u-slider__arrow { width: 40px; height: 52px; font-size: 1.8rem; }
    .u-slider__caption { padding: var(--u-space-5) var(--u-space-2) var(--u-space-2); }
    .u-slider__caption strong { font-size: var(--u-fs-24); }
    .u-slider__caption span { font-size: var(--u-fs-14); }
}

/* ---------- about: a photo behind the text ---------- */
/* The picture is an <img> (the policy has no inline style), laid over the dark section. The heading
   sits at the top left, the four points in a row at the bottom, and the photo shows between them. */

.u-about { position: relative; overflow: hidden; }
.u-about__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.u-about::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(11, 26, 45, 0.9) 0%, rgba(11, 26, 45, 0.55) 45%, rgba(11, 26, 45, 0.25) 100%),
        linear-gradient(0deg, rgba(11, 26, 45, 0.85) 0%, rgba(11, 26, 45, 0) 38%);
}

.u-about__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--u-space-6);
    flex: 1;
}
.u-about__head { max-width: 46rem; }

.u-about__points {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--u-space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}
.u-about__points li {
    position: relative;
    padding: var(--u-space-3);
    font-size: var(--u-fs-16);
    line-height: 1.5;
    color: var(--u-n1);
    background: rgba(11, 26, 45, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 3px solid var(--u-brass);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

@media (max-width: 1080px) {
    .u-about::after { background: rgba(11, 26, 45, 0.82); }
    .u-about__points { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .u-about__points { grid-template-columns: 1fr; }
}

/* ---------- contact (home page): the whole block has to fit one screen ---------- */
/* A heading on the left and a form on the right, tighter than the contact sub-page, so that a laptop
   display shows it without scrolling. */

#kontakt.u-screen { padding-bottom: var(--u-space-4); }
#kontakt .u-section-title { font-size: clamp(2rem, 3.3vw, 2.75rem); margin-bottom: var(--u-space-1); }
#kontakt .u-lead { font-size: var(--u-fs-18); }
#kontakt .u-contact { gap: var(--u-space-5); align-items: center; }
#kontakt .u-contact__row { margin-bottom: var(--u-space-2); }
#kontakt .u-contact__value { font-size: var(--u-fs-20); }
#kontakt .u-field { margin-bottom: var(--u-space-2); }
#kontakt .u-field label { margin-bottom: 4px; }
#kontakt .u-field input, #kontakt .u-field textarea { padding: 9px var(--u-space-2); font-size: var(--u-fs-16); }
#kontakt .u-field textarea { min-height: 92px; }

@media (min-width: 901px) and (max-height: 820px) {
    #kontakt.u-screen { padding-top: calc(var(--u-header-h) + var(--u-space-2)); padding-bottom: var(--u-space-2); }
    #kontakt .u-field { margin-bottom: var(--u-space-1); }
    #kontakt .u-field textarea { min-height: 72px; }
    #kontakt .u-lead { margin-bottom: var(--u-space-2); }
}

/* ---------- screens: anchors and a window that is not very tall ---------- */

/* section[id] above asks for a scroll margin under the fixed header, but a screen already has the header
   in its own top padding. Without this an anchor landed 84px too early, with the end of the previous
   section showing under the menu. */
section.u-screen[id] { scroll-margin-top: 0; }

/* Vehicle section: the heading and the 2 x 2 facts are tighter, so heading, facts and the slider fit one screen. */
#bus .u-section-title { font-size: clamp(2rem, 3.3vw, 2.75rem); }
#bus .u-specs { margin-top: var(--u-space-3); }
#bus .u-spec { padding: var(--u-space-2) var(--u-space-3); }
/* A fact that is a phrase and not one word (two-zone air conditioning): smaller type, so the 2 x 2 block keeps its height. */
#bus .u-spec__value--phrase { font-size: var(--u-fs-20); line-height: 1.2; }
#bus .u-spec__value--phrase + .u-spec__label { letter-spacing: 0.04em; }

@media (min-width: 901px) and (max-height: 900px) {
    .u-hero { padding-top: calc(var(--u-header-h) + var(--u-space-4)); padding-bottom: var(--u-space-3); }
    .u-hero__actions { margin-bottom: var(--u-space-3); }
    .u-hero__title { font-size: clamp(2.6rem, min(6.2vw, 8.5vh), 4.5rem); }
}

/* The hero must end inside the window, facts included: 1440x900 and 1180x820 were 20px over,
   1366x768 (the usual laptop) 62px. Tighter gaps between the paragraphs, the text itself stays. */
@media (min-width: 901px) and (max-height: 940px) {
    .u-hero__text { margin-bottom: var(--u-space-4); }
}
@media (min-width: 901px) and (max-height: 820px) {
    .u-hero { padding-top: calc(var(--u-header-h) + var(--u-space-3)); padding-bottom: var(--u-space-2); }
    .u-hero__text { margin-bottom: var(--u-space-3); }
    .u-hero__facts { margin-top: var(--u-space-2); }
}

/* ---------- services: three columns, two low rows ---------- */
/* Five cards and the photo make six cells: 3 x 2. The cards are wide enough for their text to wrap in
   two or three lines, so each row is about half as tall as with four columns. */

#uslugi .u-cards { grid-template-columns: repeat(3, 1fr); }
#uslugi .u-card { padding: var(--u-space-2) var(--u-space-3); }
#uslugi .u-card__no { margin-bottom: 4px; }
#uslugi .u-card__title { margin-bottom: 4px; font-size: 1.3rem; }
#uslugi .u-card__text { font-size: 0.93rem; line-height: 1.45; }
#uslugi .u-more { margin-top: 6px; font-size: var(--u-fs-12); }
#uslugi .u-cards__photo img { object-position: 50% 55%; }

@media (max-width: 1080px) {
    #uslugi .u-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    #uslugi .u-cards { grid-template-columns: 1fr; }
}

/* ---------- back to top ---------- */
/* A quiet, see-through square in the corner. It fades in after the first screen and answers to hover
   and the keyboard focus. Sharp corners, like every other control on the site. */

.u-totop {
    position: fixed;
    right: var(--u-space-3);
    bottom: var(--u-space-3);
    z-index: 40;
    width: 48px;
    height: 48px;
    padding: 0;
    background: rgba(11, 26, 45, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s, background-color var(--u-ease), border-color var(--u-ease);
}
.u-totop::before {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    margin: 20px auto 0;
    border-top: 2px solid var(--u-brass-light);
    border-left: 2px solid var(--u-brass-light);
    transform: rotate(45deg);
    transition: border-color var(--u-ease), transform var(--u-ease);
}
.u-totop.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 0.3s ease, transform 0.3s ease, background-color var(--u-ease), border-color var(--u-ease); }
.u-totop:hover, .u-totop:focus-visible { background: rgba(11, 26, 45, 0.82); border-color: var(--u-brass); }
.u-totop:hover::before { transform: translateY(-2px) rotate(45deg); border-color: var(--u-white); }

@media (max-width: 768px) {
    /* The call bar sits at the bottom of a phone screen: the button goes above it. */
    .u-totop { right: var(--u-space-2); bottom: calc(56px + var(--u-space-2)); width: 44px; height: 44px; }
    .u-totop::before { margin-top: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    .u-totop, .u-totop.is-visible, .u-totop::before { transition: none; }
}

/* ---------- note that the pictures are illustrative ---------- */

.u-slider__note { margin: var(--u-space-1) 0 0; font-size: var(--u-fs-12); line-height: 1.4; letter-spacing: var(--u-ls-thin); color: var(--u-n4); }
.u-footer__note { margin: var(--u-space-2) 0 0; font-size: var(--u-fs-12); line-height: 1.5; color: var(--u-n4); }

/* ---------- a tablet in landscape and a small laptop: 901-1080px ---------- */
/* Below 1080px the two-column blocks stack, and stacked they are over a screen tall (the vehicle
   section was 1307px on 1024x768). Between 901px and 1080px, where one screen per section is the rule,
   the heading column and the form or the slideshow stay side by side. */
@media (min-width: 901px) and (max-width: 1080px) {
    .u-split--wide { grid-template-columns: 9fr 15fr; gap: var(--u-space-4); }
    #kontakt .u-contact { grid-template-columns: 1fr 1.2fr; gap: var(--u-space-4); }
}

/* A tablet held upright: the slideshow is a little flatter, so the vehicle section stays close to one screen. */
@media (min-width: 541px) and (max-width: 900px) {
    .u-slider { aspect-ratio: 16 / 9; }
}

/* A finger needs a 44px field; a mouse keeps the tighter one that lets the contact block fit a laptop screen. */
@media (min-width: 901px) and (max-width: 1080px) and (pointer: coarse) {
    #kontakt .u-field input { min-height: 44px; }
}

/* ---------- a phone held sideways ---------- */
/* Header and call bar are fixed, so on a window 375px tall they took a third of it. Thinner here
   (96px together, a quarter), and a menu taller than what is left scrolls inside itself. */
@media (max-width: 768px) and (max-height: 500px) and (orientation: landscape) {
    :root { --u-header-h: 52px; --u-header-h-mobile: 52px; }
    .u-callbar a { min-height: 44px; }
    body { padding-bottom: 44px; }
    .u-nav { max-height: calc(100vh - var(--u-header-h) - 44px); overflow-y: auto; overscroll-behavior: contain; }
    .u-totop { bottom: calc(44px + var(--u-space-2)); }
}

/* ---------- touch targets ---------- */
/* Small things you press with a finger get an invisible zone around them: the look stays, the target
   grows to at least 44px in one direction (24px for the dots, which sit close together). */
.u-lang__link, .u-more, .u-logo, .u-hero__dot, .u-slider__dot { position: relative; }
.u-lang__link::after { content: ""; position: absolute; inset: -8px -4px; }
.u-more::after, .u-logo::after { content: ""; position: absolute; inset: -12px 0; }
.u-hero__dot::after { content: ""; position: absolute; inset: -11px 0; }
.u-slider__dot::after { content: ""; position: absolute; inset: -6px; }
/* Dots 12px wide with 24px zones need 12px between them, or the zones overlap. */
.u-slider__dots { gap: 12px; }
