/* =========================================================
   TOMEX – Dachy Bełchatów
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
    --graphite-900: #16191c;
    --graphite-800: #1c1f22;
    --graphite-700: #2a2e33;
    --graphite-600: #3b4047;
    --slate-500: #6b7280;
    --slate-400: #8d939c;
    --line: #e4ded4;
    --paper: #f6f3ee;
    --paper-2: #efe9e0;
    --white: #ffffff;

    --accent: #c8462b;          /* terakota / cegła */
    --accent-dark: #a5371f;
    --accent-soft: #f6e3dc;

    --text: #23272b;
    --text-muted: #5d636b;

    --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --radius: 6px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(22, 25, 28, .06), 0 2px 8px rgba(22, 25, 28, .05);
    --shadow-md: 0 10px 30px rgba(22, 25, 28, .12);
    --shadow-lg: 0 24px 60px rgba(22, 25, 28, .22);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 3000;
    padding: 10px 16px;
    background: var(--graphite-900);
    color: var(--white);
    border-radius: var(--radius);
    text-decoration: none;
    transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.005em;
    color: var(--graphite-900);
}

h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .9rem;
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
}
.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: currentColor;
}
.eyebrow-light { color: #f0a58f; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .8rem 1.4rem;
    border: 2px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .25s var(--ease), color .25s var(--ease),
                border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-lg { padding: 1rem 1.75rem; font-size: 1.2rem; }
.btn-sm { padding: .6rem 1.1rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 10px 24px rgba(200, 70, 43, .35); }

.btn-ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-ghost:hover { background: var(--white); border-color: var(--white); color: var(--graphite-900); }

.btn-outline-light { border-color: rgba(255, 255, 255, .4); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }

/* ---------- Header ---------- */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s, border-color .3s, background-color .3s;
}
.header.scrolled {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px rgba(22, 25, 28, .06);
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-logo { display: inline-flex; flex-shrink: 0; }
.nav-logo img { height: 44px; width: auto; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.nav-link {
    position: relative;
    padding: .4rem 0;
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--graphite-700);
    transition: color .2s;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}
.nav-link:hover,
.nav-link.active { color: var(--accent); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

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

.nav-phone {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding-left: 2rem;
    border-left: 1px solid var(--line);
    text-decoration: none;
    color: var(--graphite-900);
}
.nav-phone-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-size: .95rem;
    transition: transform .3s var(--ease), background-color .2s;
}
.nav-phone:hover .nav-phone-icon { transform: rotate(-12deg) scale(1.06); background: var(--accent-dark); }
.nav-phone-text {
    display: flex;
    flex-direction: column;
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: .02em;
}
.nav-phone-text small {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 10px;
    border-radius: var(--radius);
}
.bar {
    display: block;
    width: 100%;
    height: 2.5px;
    border-radius: 2px;
    background: var(--graphite-900);
    transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle.active .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active .bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--header-h) + 64px) 0 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--white);
    background: var(--graphite-900);
    isolation: isolate;
    overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 40%;
    animation: heroZoom 18s var(--ease) both;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(16, 18, 20, .92) 0%, rgba(16, 18, 20, .75) 40%, rgba(16, 18, 20, .25) 75%, rgba(16, 18, 20, .15) 100%),
        linear-gradient(0deg, rgba(16, 18, 20, .85) 0%, rgba(16, 18, 20, 0) 35%);
}

.hero-inner {
    max-width: 1200px;
    padding-bottom: 56px;
}
.hero-inner > * { max-width: 720px; }

.hero-title {
    margin-bottom: 1.4rem;
    font-size: clamp(2.6rem, 1.4rem + 4.4vw, 4.75rem);
    font-weight: 700;
    line-height: .98;
    text-transform: uppercase;
    color: var(--white);
    animation: rise .9s var(--ease) .1s both;
}
.hero-title span { color: #f08a6c; }

.hero-subtitle {
    margin-bottom: 2.25rem;
    max-width: 580px;
    font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem);
    color: rgba(255, 255, 255, .82);
    animation: rise .9s var(--ease) .25s both;
}
.hero .eyebrow { animation: rise .9s var(--ease) both; }

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: rise .9s var(--ease) .4s both;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255, 255, 255, .16);
    animation: rise .9s var(--ease) .55s both;
}
.stat-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .35rem;
    min-height: 120px;
    padding: 1.5rem 1.5rem 1.75rem 0;
}
.stat-item + .stat-item {
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, .16);
}
.stat-number {
    font-family: var(--font-head);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--white);
    font-variant-numeric: tabular-nums;
}
.stat-icon {
    font-size: 1.7rem;
    line-height: 1;
    color: #f08a6c;
    height: 2.75rem;
    display: flex;
    align-items: center;
}
.stat-label {
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }

.section-header {
    max-width: 720px;
    margin: 0 auto clamp(40px, 5vw, 64px);
    text-align: center;
}
.section-header .eyebrow { justify-content: center; }
.section-header h2 { margin-bottom: 1rem; }
.section-header > p:last-child { font-size: 1.15rem; color: var(--text-muted); }

.section-header-left { margin-left: 0; text-align: left; }
.section-header-left .eyebrow { justify-content: flex-start; }

/* ---------- Services ---------- */
.services { background: var(--paper); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    position: relative;
    padding: 2.25rem 2rem 2rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--ease);
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}
.service-card:hover::after { transform: scaleX(1); }

.service-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.service-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.5rem;
    transition: background-color .3s, color .3s;
}
.service-card:hover .service-icon { background: var(--accent); color: var(--white); }
.service-num {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--paper-2);
    -webkit-text-stroke: 1px var(--line);
}
.service-card h3 {
    margin-bottom: .75rem;
    font-size: 1.65rem;
    text-transform: uppercase;
}
.service-card p { color: var(--text-muted); font-size: 1rem; }

/* ---------- About ---------- */
.about-content {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
}

.about-media { position: relative; padding: 0 0 32px 32px; }
.about-media::before {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 60%;
    height: 70%;
    background:
        repeating-linear-gradient(135deg, var(--accent) 0 2px, transparent 2px 14px);
    opacity: .22;
    border-radius: var(--radius-lg);
}
.about-media img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.about-badge {
    position: absolute;
    right: -16px;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--accent);
    color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(200, 70, 43, .35);
}
.about-badge strong {
    font-family: var(--font-head);
    font-size: 3.25rem;
    line-height: 1;
}
.about-badge span {
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .06em;
    line-height: 1.35;
    text-transform: uppercase;
}

.about-text h2 { margin-bottom: 1.5rem; }
.about-text > p { color: var(--text-muted); }

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9rem 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}
.about-features li {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-weight: 600;
    color: var(--graphite-800);
}
.about-features i {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: .75rem;
}

/* ---------- Gallery ---------- */
.gallery { background: var(--paper); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    gap: 1rem;
}
.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--paper-2);
    cursor: zoom-in;
}
.gallery-item-wide { grid-column: span 2; grid-row: span 2; }
.gallery-item-tall { grid-row: span 2; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1.25rem;
    background: linear-gradient(0deg, rgba(16, 18, 20, .55) 0%, rgba(16, 18, 20, 0) 50%);
    opacity: 0;
    transition: opacity .35s var(--ease);
}
.gallery-overlay i {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--white);
    color: var(--graphite-900);
    font-size: 1rem;
    transform: scale(.8);
    transition: transform .35s var(--ease);
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay i,
.gallery-item:focus-visible .gallery-overlay i { transform: scale(1); }

/* ---------- Contact ---------- */
.contact {
    position: relative;
    background: var(--graphite-900);
    color: rgba(255, 255, 255, .8);
    overflow: hidden;
    isolation: isolate;
}
.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 22px),
        radial-gradient(60% 80% at 100% 0%, rgba(200, 70, 43, .28), transparent 70%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
}
.contact h2 { color: var(--white); margin-bottom: 1.25rem; }
.contact-lead { font-size: 1.15rem; max-width: 520px; }

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem);
    font-weight: 700;
    line-height: 1;
    color: var(--white);
    text-decoration: none;
    transition: color .2s;
}
.contact-phone i { font-size: .6em; color: var(--accent); }
.contact-phone:hover { color: #f08a6c; }

.cta-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.contact-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-lg);
    transition: background-color .3s, border-color .3s;
}
.contact-item:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .18); }
.contact-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: rgba(200, 70, 43, .18);
    color: #f08a6c;
}
.contact-item h3 {
    margin-bottom: .35rem;
    font-size: 1rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
}
.contact-item p { color: var(--white); font-weight: 500; }
.contact-item p a { text-decoration: none; word-break: break-word; }
.contact-item p a:hover { color: #f08a6c; }
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .6rem;
    font-size: .9rem;
    font-weight: 600;
    color: #f08a6c;
    text-decoration: none;
}
.contact-link i { font-size: .7rem; }
.contact-link:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer {
    padding: 64px 0 28px;
    background: var(--graphite-800);
    color: rgba(255, 255, 255, .65);
    font-size: .98rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
}
.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.footer-brand img {
    height: 48px;
    width: auto;
    margin-bottom: 1.25rem;
    filter: invert(1);
}
.footer-brand p { max-width: 340px; }
.footer-section h3 {
    margin-bottom: 1.1rem;
    font-size: 1.15rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--white);
}
.footer-section li { margin-bottom: .55rem; }
.footer-section a { text-decoration: none; transition: color .2s; }
.footer-section a:hover { color: var(--white); }
.footer-contact li { display: flex; align-items: baseline; gap: .7rem; }
.footer-contact i { width: 16px; color: var(--accent); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .88rem;
    color: rgba(255, 255, 255, .45);
}
.footer-bottom p { margin: 0; }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--graphite-900);
    color: var(--white);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s, transform .3s var(--ease), visibility .3s, background-color .2s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); transform: translateY(-3px); }

/* ---------- Mobile call bar ---------- */
.mobile-cta { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 80px;
    background: rgba(12, 14, 16, .94);
    animation: fadeIn .25s ease both;
}
.lightbox[hidden] { display: none; }

.lightbox-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 100%;
    max-height: 100%;
}
.lightbox-content {
    max-width: min(1200px, 100%);
    max-height: calc(100vh - 180px);
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
    animation: zoomIn .3s var(--ease) both;
}
.lightbox-figure figcaption { color: rgba(255, 255, 255, .75); font-size: .95rem; text-align: center; }

.lightbox-btn {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: var(--white);
    font-size: 1.2rem;
    transition: background-color .2s;
}
.lightbox-btn:hover { background: var(--accent); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Cookie Consent ---------- */
.cookie-consent {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 1500;
    width: min(440px, calc(100% - 48px));
    padding: 1.5rem;
    background: var(--graphite-900);
    color: rgba(255, 255, 255, .8);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: slideUp .45s var(--ease) both;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent h2 {
    margin-bottom: .5rem;
    font-size: 1.3rem;
    color: var(--white);
}
.cookie-consent p { font-size: .9rem; line-height: 1.55; }
.cookie-consent-buttons {
    display: flex;
    gap: .75rem;
    margin-top: 1.25rem;
}
.cookie-consent-buttons .btn { flex: 1; }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--delay, 0s);
}
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Animations ---------- */
@keyframes rise {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}
@keyframes heroZoom {
    from { transform: scale(1.12); }
    to { transform: scale(1); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
    .nav-menu { gap: 1.4rem; }
    .nav-phone { padding-left: 1.4rem; gap: .6rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(3) { padding-left: 0; border-left: 0; }
    .stat-item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .16); }
}

@media (max-width: 920px) {
    :root { --header-h: 68px; }

    .nav-logo img { height: 38px; }
    .nav-phone { display: none; }
    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: .5rem 24px 1.5rem;
        background: var(--white);
        border-top: 1px solid var(--line);
        box-shadow: 0 20px 40px rgba(22, 25, 28, .12);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: transform .3s var(--ease), opacity .3s, visibility .3s;
    }
    .nav-menu.active { transform: none; opacity: 1; visibility: visible; }
    .nav-menu li { border-bottom: 1px solid var(--line); }
    .nav-menu li.nav-menu-cta { display: block; border: 0; padding-top: 1.25rem; }
    .nav-link { display: block; padding: 1rem 0; font-size: 1.3rem; }
    .nav-link::after { display: none; }

    .about-content,
    .contact-content { grid-template-columns: 1fr; }

    .about-media { max-width: 640px; }
    .about-badge { right: 16px; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
    .gallery-item-wide { grid-column: span 2; grid-row: span 2; }
    .gallery-item-tall { grid-row: span 2; }

    .footer-content { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    body { font-size: 1rem; padding-bottom: 64px; }
    .container { padding: 0 16px; }
    .nav-menu { padding-left: 16px; padding-right: 16px; }

    .hero { padding-top: calc(var(--header-h) + 40px); }
    .hero-bg::after {
        background: linear-gradient(0deg, rgba(16, 18, 20, .95) 0%, rgba(16, 18, 20, .7) 55%, rgba(16, 18, 20, .55) 100%);
    }
    .hero-inner { padding-bottom: 40px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    .stat-item { min-height: 96px; padding: 1.1rem 1rem 1.25rem 0; }
    .stat-item + .stat-item { padding-left: 1rem; }
    .stat-item:nth-child(3) { padding-left: 0; }
    .stat-number { font-size: 2.2rem; }
    .stat-icon { font-size: 1.4rem; height: 2.2rem; }
    .stat-label { font-size: .75rem; letter-spacing: .06em; }

    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 1.75rem 1.5rem; }

    .about-media { padding: 0 0 24px 16px; }
    .about-badge { right: 8px; padding: 1rem 1.2rem; }
    .about-badge strong { font-size: 2.6rem; }
    .about-features { grid-template-columns: 1fr; }

    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
    .gallery-item-wide, .gallery-item-tall { grid-column: auto; grid-row: auto; }
    .gallery-item-tall { grid-row: span 2; }

    .contact-info { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { width: 100%; }

    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; }

    .back-to-top { right: 16px; bottom: 80px; width: 44px; height: 44px; }

    .mobile-cta {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 950;
        display: grid;
        grid-template-columns: 1.4fr 1fr;
        height: 60px;
        box-shadow: 0 -6px 24px rgba(0, 0, 0, .18);
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--graphite-900);
    }
    .mobile-cta a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .6rem;
        font-family: var(--font-head);
        font-size: 1.15rem;
        font-weight: 600;
        letter-spacing: .06em;
        text-transform: uppercase;
        text-decoration: none;
        color: var(--white);
    }
    .mobile-cta-call { background: var(--accent); }
    .mobile-cta-mail { background: var(--graphite-900); }

    .cookie-consent { left: 12px; right: 12px; bottom: 72px; width: auto; padding: 1.25rem; }

    .lightbox { padding: 64px 12px; }
    .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; transform: none; }
    .lightbox-prev { left: calc(50% - 60px); }
    .lightbox-next { right: calc(50% - 60px); }
    .lightbox-content { max-height: calc(100vh - 200px); }
}
