/* ==========================================================================
   CJ CUSTOMS — Studio detailingowe
   Design system inspired by the studio itself:
   charcoal walls, hex LED light, crimson accent, concrete floor.
   ========================================================================== */

:root {
    /* Surfaces — from black ceiling to concrete floor */
    --ink:        #0A0A0B;
    --surface:    #121214;
    --surface-2:  #17171A;
    --surface-3:  #1E1E22;
    --line:       #26262B;
    --line-soft:  rgba(255, 255, 255, 0.07);

    /* Accent — the red wall / sofa */
    --red:        #D8232F;
    --red-bright: #F0353F;
    --red-dim:    #9E1822;
    --red-glow:   rgba(216, 35, 47, 0.28);

    /* Text — hex LED white through concrete grey */
    --text:       #F4F4F6;
    --text-2:     #A6A6AE;
    --text-3:     #6C6C75;

    --ok:         #4FBF87;
    --err:        #E86A6A;

    /* Elevation */
    --sh-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --sh-2: 0 8px 24px rgba(0, 0, 0, 0.45);
    --sh-3: 0 20px 48px rgba(0, 0, 0, 0.55);

    /* Geometry */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;

    /* Rhythm */
    --nav-row: 100px;  /* logo, social buttons, links, actions */
    --nav-sub: 0px;    /* phones only: social buttons + address on a second row */
    --nav-h: calc(var(--nav-row) + var(--nav-sub));
    --gap: clamp(16px, 4vw, 32px);
    --section-y: clamp(56px, 9vw, 104px);
    --shell: 1180px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 1100px) {
    :root { --nav-row: 88px; }
}

@media (max-width: 720px) {
    :root { --nav-row: 62px; --nav-sub: 50px; }
}

/* ---------- Reset ---------- */

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

* { margin: 0; padding: 0; }

/* `display` set by a class would otherwise beat the UA rule for [hidden],
   and the scripts toggle .hidden on flex/grid containers. */
[hidden] { display: none !important; }

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

body {
    font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: rgba(216, 35, 47, 0.15);
}

img, svg, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

ul, ol { list-style: none; }

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

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

/* ---------- Layout primitives ---------- */

.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: clamp(16px, 5vw, 40px);
}

main {
    flex: 1 0 auto;
    width: 100%;
}

.section { padding-block: var(--section-y); }

.section--tight { padding-block: clamp(40px, 6vw, 64px); }

/* ---------- Typography ---------- */

.display {
    font-family: 'Syne', 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.2; font-weight: 700; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-3);
}

.eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--red);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: clamp(24px, 4vw, 40px);
}

.section-title {
    font-family: 'Syne', 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin-top: 10px;
}

.section-sub {
    color: var(--text-2);
    max-width: 56ch;
    margin-top: 12px;
    font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
}

.lede {
    font-size: clamp(1rem, 0.95rem + 0.4vw, 1.15rem);
    color: var(--text-2);
}

/* ==========================================================================
   Navigation — fixed bar, panel is a sibling of the page so nothing clips it
   ========================================================================== */

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 900;
    height: var(--nav-h);
    background: rgba(10, 10, 11, 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line-soft);
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav.is-scrolled {
    background: rgba(10, 10, 11, 0.94);
    border-bottom-color: var(--line);
}

/* The bar spans the full window, so the logo sits at the far left edge
   (.shell.nav__inner outranks the .shell width cap) */
.shell.nav__inner { max-width: none; }

.nav__inner {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
}

/* Right-most visible group carries the auto margin, so the bar reads
   brand · … · links/actions at every width. The menu never shrinks; the
   address beside the logo gives way first. */
.nav__links { margin-left: auto; flex: none; }

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

@media (max-width: 1100px) {
    .nav__actions { margin-left: auto; }
}

/* Tap-to-call stays in the bar on phones, where it matters most */
.nav__tel {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    color: var(--text);
    transition: all 0.2s var(--ease);
}

.nav__tel svg { width: 18px; height: 18px; }

.nav__tel:hover,
.nav__tel:active {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

@media (max-width: 1100px) {
    .nav__tel { display: inline-flex; }
}

.nav__inner > .brand { align-self: stretch; }

/* Logo */
.brand {
    display: inline-flex;
    align-items: center;
    flex: none;
}

.brand__logo {
    width: auto;
    height: 80px;
    /* A soft red halo lifts the logo's black outline off the dark bar */
    filter: drop-shadow(0 0 14px rgba(216, 35, 47, 0.3));
}

/* Desktop links */
.nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav__link {
    position: relative;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-2);
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.nav__link[aria-current='page'] { color: var(--text); }

.nav__link[aria-current='page']::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--red);
}

.nav__cta {
    margin-left: 10px;
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.2s var(--ease);
}

.nav__cta:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* Hamburger */
.nav__burger {
    display: none;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__burger:hover { border-color: var(--red); }

.nav__burger span {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.28s var(--ease), background 0.15s var(--ease);
}

.nav__burger span::before,
.nav__burger span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.28s var(--ease), top 0.2s var(--ease) 0.08s;
}

.nav__burger span::before { top: -6px; }
.nav__burger span::after  { top: 6px; }

.nav__burger[aria-expanded='true'] span { background: transparent; }

.nav__burger[aria-expanded='true'] span::before {
    top: 0;
    transform: rotate(45deg);
    transition: top 0.2s var(--ease), transform 0.28s var(--ease) 0.08s;
}

.nav__burger[aria-expanded='true'] span::after {
    top: 0;
    transform: rotate(-45deg);
    transition: top 0.2s var(--ease), transform 0.28s var(--ease) 0.08s;
}

/* Mobile panel — fixed to the viewport, so no ancestor can clip or cover it */
.nav__panel {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 899;
    display: none;
    padding: 12px clamp(16px, 5vw, 40px) calc(20px + env(safe-area-inset-bottom));
    background: rgba(13, 13, 15, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-3);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.nav__panel.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav__panel a:not(.btn) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 4px 6px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-2);
    border-bottom: 1px solid var(--line-soft);
    transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}

.nav__panel a:not(.btn):hover,
.nav__panel a:not(.btn):active { color: var(--text); padding-left: 12px; }

.nav__panel a:not(.btn)[aria-current='page'] { color: var(--text); }

.nav__panel a:not(.btn)[aria-current='page']::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
}

.nav__panel .btn { width: 100%; margin-top: 16px; }

/* Scrim behind the open panel */
.nav__scrim {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    z-index: 898;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s var(--ease), visibility 0.24s;
}

.nav__scrim.is-open { opacity: 1; visibility: visible; }

body.nav-locked { overflow: hidden; }

@media (max-width: 1100px) {
    .nav__links { display: none; }
    .nav__burger { display: inline-flex; }
    .nav__panel { display: block; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 26px;
    border: 1px solid transparent;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s var(--ease);
}

.btn--primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 6px 20px var(--red-glow);
}

.btn--primary:hover {
    background: var(--red-bright);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px var(--red-glow);
}

.btn--primary:active { transform: translateY(0); }

.btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line);
    color: var(--text);
}

.btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 0.78rem; }

/* ==========================================================================
   Hero — three portrait videos side by side, nothing laid over them
   ========================================================================== */

.hero {
    position: relative;
    margin-top: var(--nav-h);
    height: clamp(300px, 56.25vw, calc(100svh - var(--nav-h)));
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(60% 90% at 50% 40%, rgba(216, 35, 47, 0.14), transparent 70%),
        var(--ink);
}

/* Hex mesh, a nod to the ceiling lights — only seen until the first clip loads */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='56' height='100' viewBox='0 0 56 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 56px 100px;
    pointer-events: none;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Columns overlap by --blend and fade out across the overlap, so neighbouring
   clips dissolve into each other instead of meeting at a hard line. */
.blend-cols { --blend: clamp(48px, 9vw, 180px); }

.blend-cols > * {
    position: relative;
    overflow: hidden;
    margin-inline: calc(var(--blend) / -2);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--blend), #000 calc(100% - var(--blend)), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 var(--blend), #000 calc(100% - var(--blend)), transparent);
}

.blend-cols > :first-child {
    margin-left: 0;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - var(--blend)), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - var(--blend)), transparent);
}

.blend-cols > :last-child {
    margin-right: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--blend));
            mask-image: linear-gradient(90deg, transparent, #000 var(--blend));
}

/* Phones: two wider columns keep the clips portrait instead of thin slivers */
@media (max-width: 599px) {
    .hero { height: 80vw; }
    .hero__media { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero__col:nth-child(3) { display: none; }
    /* With the third column hidden, the second is the last one on screen */
    .hero__col:nth-child(2) {
        margin-right: 0;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--blend));
                mask-image: linear-gradient(90deg, transparent, #000 var(--blend));
    }
}

.hero__media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.7s var(--ease);
}

.hero__media video.is-active { opacity: 1; }

/* Soft fade into the page below, so the clip doesn't end on a hard edge */
.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    height: 18%;
    background: linear-gradient(180deg, transparent, var(--ink));
    pointer-events: none;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

/* On phones the two calls to action read better as equal full-width blocks */
@media (max-width: 520px) {
    .hero__actions .btn { flex: 1 1 100%; }
}

/* Phone number as the primary nav action (it is the contact route he wants) */
.nav__cta--tel {
    display: inline-flex;
    white-space: nowrap;
    align-items: center;
    gap: 8px;
    font-variant-numeric: tabular-nums;
}

.nav__cta--tel svg { width: 15px; height: 15px; flex: none; }

@media (max-width: 1340px) {
    .nav__cta--tel span { display: none; }
    .nav__cta--tel { padding-inline: 13px; }
}

/* Free quote sits right of the phone, as the one filled button in the bar */
.nav__cta--quote {
    margin-left: 8px;
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    white-space: nowrap;
}

.nav__cta--quote:hover {
    background: var(--red-bright);
    border-color: var(--red-bright);
}

.nav__link { white-space: nowrap; }

/* Below wide screens the bar is tight: slim the logo and links */
@media (max-width: 1499px) {
    .brand__logo { height: 64px; }
    .nav__links { gap: 0; }
    .nav__link { padding-inline: 10px; }
    .nav__link[aria-current='page']::after { left: 10px; right: 10px; }
    .nav__cta--quote { padding-inline: 14px; }
}

@media (max-width: 720px) {
    .brand__logo { height: 44px; }
}

/* Just above the burger breakpoint the full menu leaves no room for the
   address; the Maps button still links to it */
@media (min-width: 1101px) and (max-width: 1199px) {
    .nav__addr { display: none; }
}

/* Social profiles beside the logo, in each network's own colours,
   then the full studio address set off by a thin divider */
.nav__social {
    --btn: 38px;
    --btn-gap: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex: none;
}

.social { display: flex; gap: var(--btn-gap); flex: none; }

.social__btn {
    flex: none;
    width: var(--btn);
    height: var(--btn);
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    box-shadow: var(--sh-1);
    transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}

.social__btn svg { width: 24px; height: 24px; }

.social__btn:hover { transform: translateY(-2px); filter: brightness(1.1); }

.social__btn--fb { background: #1877F2; }

.social__btn--ig {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social__btn--maps { background: #fff; }

.social__btn--maps svg { width: 26px; height: 26px; }

.nav__addr {
    padding-left: 16px;
    border-left: 1px solid var(--line);
    font-size: 0.78rem;
    line-height: 1.3;
    color: var(--text-2);
    white-space: nowrap;
    transition: color 0.2s var(--ease);
}

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

/* Phones: logo and buttons on the first row, socials + address on the second */
@media (max-width: 720px) {
    .nav__inner {
        flex-wrap: wrap;
        align-content: center;
        row-gap: 8px;
        column-gap: 10px;
    }
    .nav__social {
        --btn: 36px;
        order: 3;
        flex: 1 1 100%;
        gap: 14px;
    }
    .social__btn svg { width: 21px; height: 21px; }
    .social__btn--maps svg { width: 23px; height: 23px; }
}

/* Supporting note under a section's main content */
.note {
    margin-top: clamp(20px, 3vw, 28px);
    padding: 16px 18px;
    border-left: 2px solid var(--line);
    color: var(--text-2);
    font-size: 0.95rem;
}

/* Compact page header for inner pages, with a muted clip of our work behind it */
.page-head {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin-top: var(--nav-h);
    padding-block: clamp(44px, 8vw, 80px);
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(70% 140% at 12% 0%, rgba(216, 35, 47, 0.14), transparent 62%),
        var(--ink);
}

.page-head__video {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

/* Darken the clip so the heading stays readable over it */
.page-head::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(70% 140% at 12% 0%, rgba(216, 35, 47, 0.18), transparent 62%),
        linear-gradient(90deg, rgba(10, 10, 11, 0.86), rgba(10, 10, 11, 0.62));
}

.page-head__title {
    font-family: 'Syne', 'Outfit', sans-serif;
    font-size: clamp(1.9rem, 1.2rem + 3vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    text-transform: uppercase;
    margin-top: 14px;
}

.page-head__sub {
    margin-top: 14px;
    max-width: 58ch;
    color: var(--text-2);
    font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.08rem);
}

.page-head--compact { padding-block: clamp(24px, 3.5vw, 36px); }

.page-head--compact .page-head__title {
    font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
    margin-top: 8px;
}

.page-head__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px 32px;
}

.page-head__row .page-head__sub { margin-top: 0; }

/* uslugi.html: thinner banner so packages + price list fit one screen */
.page-head--slim { padding-block: clamp(14px, 2vw, 22px); }
.page-head--slim .page-head__title { font-size: clamp(1.4rem, 1rem + 1.4vw, 1.9rem); margin-top: 4px; }

.shell--wide { max-width: 1360px; }
.shell--xwide { max-width: 1600px; }

/* Link inside running text */
.inline-link {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-underline-offset: 3px;
    transition: color 0.2s var(--ease);
}

.inline-link:hover { color: var(--red-bright); }

/* ==========================================================================
   Service cards
   ========================================================================== */

.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(14px, 2.2vw, 22px);
}

.service {
    padding: clamp(22px, 3vw, 32px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.service__icon {
    width: 40px;
    height: 40px;
    color: var(--red);
    margin-bottom: 18px;
}

.service h3 {
    font-family: 'Syne', 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.service p { color: var(--text-2); font-size: 0.95rem; }

/* ==========================================================================
   Price list (uslugi.html) — four columns, sized to fit one desktop screen
   ========================================================================== */

.pricing-wrap { padding-block: clamp(16px, 2vw, 24px) clamp(32px, 5vw, 56px); }

/* ---------- Detailing packages (uslugi.html) ----------
   One compact row so packages and the price list fit one desktop screen;
   the full scope of each package opens in a <dialog>. */

.block-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-family: 'Syne', 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
}

.block-title::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--red);
}

.packages + .block-title { margin-top: clamp(16px, 2vw, 22px); }

.packages {
    display: grid;
    gap: clamp(12px, 1.6vw, 18px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.package {
    padding: 12px 18px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.package__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.package__row + .package__row { margin-top: 4px; align-items: baseline; }

.package--featured {
    background: linear-gradient(180deg, rgba(216, 35, 47, 0.10), var(--surface) 70%);
    border-color: var(--red-dim);
    box-shadow: 0 0 0 1px var(--red-dim), 0 12px 32px var(--red-glow);
}

.package__tier {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red-bright);
}

.package__badge {
    flex: none;
    margin-left: 10px;
    vertical-align: 0.1em;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.package__name {
    margin-top: 0;
    font-family: 'Syne', 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.package__lead {
    margin-top: 4px;
    color: var(--text-2);
    font-size: 0.85rem;
    line-height: 1.45;
}

/* Prices in Outfit (same as the single-service price list): Syne's wide,
   stylised numerals were hard to read, especially "od 17 900 zł". */
.package__price {
    flex: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    white-space: nowrap;
}

.package--featured .package__price { color: var(--red-bright); }

.package__more {
    flex: none;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.package__more::after { content: ' →'; }

.package__more:hover,
.package__more:focus-visible {
    border-color: var(--red);
    background: rgba(216, 35, 47, 0.14);
}

/* Phones: every card stacks the same way — tier, name, price, lead — with
   the "Zakres pakietu" button as a full-width row at the bottom, so it never
   jumps between the tier line and its own row depending on the label length.
   Scoped to .packages so the pop-ups (same class names) are not affected;
   placed after the base rules so it wins the cascade. */
@media (max-width: 520px) {
    .packages .package { display: flex; flex-direction: column; align-items: flex-start; }
    .packages .package__row { display: contents; }
    .packages .package__name { order: 1; margin-top: 8px; font-size: 1.15rem; }
    .packages .package__price { order: 2; margin-top: 2px; font-size: 1.25rem; }
    .packages .package__lead { order: 3; }
    .packages .package__more {
        order: 4;
        align-self: stretch;
        margin-top: 12px;
        padding: 10px 14px;
        font-size: 0.85rem;
        text-align: center;
    }
}

/* Package details pop-up */

.pkg-dialog {
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--sh-3);
    overflow: auto;
}

.pkg-dialog.package--featured { border-color: var(--red-dim); }

.pkg-dialog::backdrop {
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
}

.pkg-dialog__body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px clamp(18px, 4vw, 28px);
}

.pkg-dialog__body > * { width: 100%; }
.pkg-dialog__body > .btn { width: auto; margin-top: 18px; }

.pkg-dialog__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px !important;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--text);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.pkg-dialog__close:hover { border-color: var(--red); }

.pkg-dialog .package__name { font-size: 1.7rem; padding-right: 40px; }

/* Small phones: keep the package name clear of the close button. */
@media (max-width: 520px) {
    .pkg-dialog .package__name { font-size: 1.4rem; padding-right: 44px; }
}

.pkg-dialog__kind {
    margin-top: 2px;
    color: var(--text-2);
    font-size: 0.88rem;
}

.pkg-dialog__kind strong { color: var(--red-bright); }

.pkg-dialog .package__lead { margin-top: 8px; font-size: 0.95rem; }

.package__label {
    margin-top: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
}

.package__list { margin-top: 6px; }

.package__list li {
    position: relative;
    padding: 4px 0 4px 18px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-2);
}

.package__list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.85em;
    width: 7px;
    height: 7px;
    border-radius: 1px;
    background: var(--red);
    transform: rotate(45deg);
}

.package__for {
    margin-top: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-2);
}

.pkg-dialog__note {
    margin-top: 16px;
    padding: 10px 14px;
    border-left: 2px solid var(--red-dim);
    color: var(--text-3);
    font-size: 0.8rem;
}

body.dialog-open { overflow: hidden; }


.pricing {
    display: grid;
    gap: clamp(12px, 1.6vw, 18px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
}

@media (max-width: 1100px) {
    .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .pricing { grid-template-columns: 1fr; }
}

.price-group {
    padding: 20px 20px 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.price-group__title {
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--red-dim);
    font-family: 'Syne', 'Outfit', sans-serif;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.price-item {
    padding: 11px 0;
    border-bottom: 1px solid var(--line-soft);
}

.price-item:last-child { border-bottom: none; }

.price-item__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.price-item h3 {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
}

.price-item__price {
    flex: none;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--red-bright);
    white-space: nowrap;
}

.price-item p {
    margin-top: 3px;
    font-size: 0.83rem;
    line-height: 1.5;
    color: var(--text-3);
}

.pricing__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: clamp(14px, 2vw, 20px);
    padding: 14px 20px;
    border-left: 2px solid var(--line);
    color: var(--text-2);
    font-size: 0.92rem;
}

/* Shorter desktop screens (laptops ~900px tall): tighten spacing so the
   packages and the whole price list still fit without scrolling. */
@media (min-width: 1101px) and (max-height: 980px) {
    .page-head--slim { padding-block: 10px; }
    .page-head--slim .eyebrow { display: none; }
    .page-head--slim .page-head__title { font-size: 1.5rem; margin-top: 0; }
    .pricing-wrap { padding-top: 12px; }
    .package { padding-block: 10px 12px; }
    .packages + .block-title { margin-top: 12px; }
    .price-group { padding: 14px 16px 4px; }
    .price-group__title { padding-bottom: 8px; font-size: 0.76rem; }
    .price-item { padding: 7px 0; }
    .price-item p { font-size: 0.8rem; line-height: 1.42; }
    .pricing__foot { margin-top: 10px; padding-block: 8px; }
}

/* ==========================================================================
   Content blocks (about / contact)
   ========================================================================== */

.split {
    display: grid;
    gap: clamp(28px, 5vw, 60px);
    align-items: center;
}

@media (min-width: 880px) {
    .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split--reverse > *:first-child { order: 2; }
}

.split__media {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 4 / 3;
}

.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* About: the studio photos fill the section behind the text, blended into
   one another and into the page above and below. */
.showcase {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: clamp(520px, 72vh, 760px);
    padding-block: var(--section-y);
}

.showcase__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
}

.showcase__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

/* Darkest behind the text, opening up toward the photos on the right */
.showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, var(--ink) 0%, transparent 22%, transparent 78%, var(--ink) 100%),
        linear-gradient(90deg, rgba(10, 10, 11, 0.94) 0%, rgba(10, 10, 11, 0.86) 40%, rgba(10, 10, 11, 0.42) 75%, rgba(10, 10, 11, 0.22) 100%);
}

/* Narrow screens: the text spans the photos, so darken them evenly */
@media (max-width: 879px) {
    .showcase::before {
        background:
            linear-gradient(180deg, var(--ink) 0%, transparent 15%, transparent 85%, var(--ink) 100%),
            rgba(10, 10, 11, 0.8);
    }
}

.showcase__text { max-width: 580px; }

.showcase__text p {
    color: rgba(244, 244, 246, 0.86);
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6);
}

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

/* Clean Car accreditation badge — links to the brand's shop */
.cert {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 4px 0 20px;
    padding: 12px 16px;
    border-radius: var(--r-md);
    background: #fff;
    box-shadow: 0 0 0 1px transparent;
    transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.cert:hover {
    box-shadow: 0 0 0 2px var(--red), 0 10px 28px var(--red-glow);
    transform: translateY(-1px);
}

.cert img { display: block; width: 100%; height: auto; }

.prose p { color: var(--text-2); margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }
/* A heading inside .prose gets the same gap as "Nasza historia" (.story__body). */
.prose > .section-title + p { margin-top: 18px; }

/* About: the founders' story, laid over the second photo showcase */
.story__body { margin-top: 18px; }

.panel {
    padding: clamp(24px, 3.5vw, 36px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.contact-list { display: grid; gap: 4px; }

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
}

.contact-row:last-child { border-bottom: none; }

.contact-row svg {
    width: 20px;
    height: 20px;
    flex: none;
    margin-top: 4px;
    color: var(--red);
}

.contact-row .k {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
}

.contact-row .v {
    font-size: 1.02rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.contact-row .v--soft { font-size: 0.92rem; font-weight: 400; color: var(--text-2); }

.contact-row__main { flex: 1; min-width: 0; }

.contact-row .btn { flex: none; align-self: center; }

/* Phones: the Maps button drops under the address, lined up with the text */
@media (max-width: 520px) {
    .contact-row { flex-wrap: wrap; }
    .contact-row__main { flex-basis: calc(100% - 36px); }
    .contact-row .btn { margin-left: 36px; }
}

.contact-wrap { padding-block: clamp(20px, 3vw, 28px) clamp(40px, 6vw, 64px); }

/* Both columns end on the same line: the details panel grows to meet the
   bottom of the form, with its rows centred in the extra height. */
.contact-grid {
    display: grid;
    gap: clamp(14px, 2vw, 20px);
}

@media (min-width: 960px) {
    .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
}

.contact-col {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: clamp(14px, 2vw, 20px);
}

.panel--compact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 8px;
}

/* Grow the tap target to ~44px without changing how the row looks */
a.v {
    display: inline-block;
    padding-block: 12px;
    margin-block: -12px;
}

a.v:hover { color: var(--red-bright); }

/* ==========================================================================
   Contact: phone band and enquiry form
   ========================================================================== */

.call-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 4vw, 40px);
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background:
        radial-gradient(80% 160% at 0% 0%, rgba(216, 35, 47, 0.2), transparent 62%),
        var(--surface);
}

.call-band__num {
    display: block;
    width: fit-content;
    margin-top: 10px;
    /* Must never break mid-number, so the floor is sized for a 320px screen */
    font-size: clamp(1.4rem, 1rem + 1.6vw, 2.3rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--text);
    transition: color 0.2s var(--ease);
}

.call-band__num:hover { color: var(--red-bright); }

/* Narrow column: number above the buttons */
.call-band--stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: clamp(22px, 3vw, 28px);
}

.call-band--stack .call-band__num { font-size: clamp(1.4rem, 1rem + 1.1vw, 2rem); }

.call-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 620px) {
    .call-band__actions { width: 100%; }
    .call-band__actions .btn { flex: 1 1 100%; }
}

.form { margin-top: 18px; display: grid; gap: 14px; }

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

.form__field { display: grid; gap: 7px; min-width: 0; }

.form__field label {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-3);
}

.form__field label span { color: var(--red); }

.form__field input,
.form__field select,
.form__field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    background: var(--surface-3);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    transition: border-color 0.2s var(--ease);
}

.form__field textarea { min-height: 110px; resize: vertical; line-height: 1.6; }

.form__field input::placeholder,
.form__field textarea::placeholder { color: var(--text-3); }

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
    outline: none;
    border-color: var(--red);
}

.form__field select {
    appearance: none;
    cursor: pointer;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236C6C75' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.form__field option { background: var(--surface-2); color: var(--text); }

/* "Wybierz temat" placeholder reads as a hint, like empty inputs. */
.form__field select:has(option[value=""]:checked) { color: var(--text-3); }

.form__hint { color: var(--text-3); font-size: 0.88rem; }

.form__actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 520px) {
    .form__actions .btn { flex: 1 1 100%; }
}

.form__status {
    padding: 14px 16px;
    border-radius: var(--r-sm);
    font-size: 0.95rem;
    border-left: 3px solid var(--line);
    background: var(--surface-2);
}

.form__status--ok { border-left-color: var(--ok); color: var(--text); }
.form__status--error { border-left-color: var(--err); color: var(--text); }

/* CTA band */
.cta-band {
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 6vw, 64px);
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background:
        radial-gradient(100% 160% at 100% 0%, rgba(216, 35, 47, 0.22), transparent 60%),
        var(--surface);
    text-align: center;
}

.cta-band h2 {
    font-family: 'Syne', 'Outfit', sans-serif;
    font-size: clamp(1.4rem, 1.1rem + 1.8vw, 2.1rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.cta-band p {
    max-width: 48ch;
    margin: 14px auto 0;
    color: var(--text-2);
}

.cta-band .hero__actions { justify-content: center; margin-top: 28px; }

.fade-up {
    animation: fadeUp 0.45s var(--ease) both;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    margin-top: auto;
    padding-top: clamp(40px, 6vw, 64px);
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line);
}

.footer__grid {
    display: grid;
    gap: clamp(28px, 4vw, 48px);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    padding-bottom: 32px;
}

.footer h4 {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 16px;
}

.footer p, .footer li { color: var(--text-2); font-size: 0.93rem; }

.footer li { margin-bottom: 10px; }

.footer a:hover { color: var(--red-bright); }

.footer__logo {
    display: block;
    width: 160px;
    margin-bottom: 14px;
}

.footer__logo img { width: 100%; height: auto; }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--line-soft);
    font-size: 0.82rem;
    color: var(--text-3);
}

/* Utilities */
.u-center { text-align: center; }
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ==========================================================================
   Privacy policy page
   ========================================================================== */

.legal { padding-block: clamp(36px, 6vw, 64px) var(--section-y); }

.legal__body {
    max-width: 78ch;
    color: var(--text-2);
}

.legal__body h2 {
    margin: 2.2em 0 0.7em;
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
    font-weight: 600;
    color: var(--text);
}

.legal__body h3 {
    margin: 1.6em 0 0.5em;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.legal__body p,
.legal__body ul { margin-bottom: 1em; }

.legal__body ul { padding-left: 1.3em; list-style: disc; }

.legal__body li { margin-bottom: 0.45em; }

.legal__body li::marker { color: var(--red); }

.legal__body a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.legal__body a:hover { color: var(--red-bright); }

.legal__meta {
    font-size: 0.88rem;
    color: var(--text-3);
}

.legal__card {
    margin-bottom: 1em;
    padding: 18px 22px;
    font-style: normal;
    line-height: 1.8;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 2px solid var(--red);
    border-radius: var(--r-md);
}

/* ==========================================================================
   Privacy notice bar (added by site.js on every page)
   ========================================================================== */

.privacy-bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 14px 20px;
    max-width: 720px;
    margin-inline: auto;
    padding: 14px 18px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--sh-3);
    animation: fadeUp 0.45s var(--ease) both;
}

.privacy-bar__text {
    flex: 1;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-2);
}

.privacy-bar__text a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-underline-offset: 3px;
}

.privacy-bar__text a:hover { color: var(--red-bright); }

.privacy-bar__ok { flex-shrink: 0; }

@media (max-width: 520px) {
    .privacy-bar { flex-direction: column; align-items: stretch; text-align: center; }
}

.form__legal { font-size: 0.78rem; line-height: 1.5; }

.form__legal a {
    color: var(--text-2);
    text-decoration: underline;
    text-underline-offset: 2px;
}
