/* 01. Lokalne kroje pisma z oryginalnej strony */
@font-face {
    font-family: "Martian";
    src: url("../fonts/martian-semibold.woff2") format("woff2");
    font-display: swap;
    font-weight: 600 800;
}
@font-face {
    font-family: "Martian Light";
    src: url("../fonts/martian-light.woff2") format("woff2");
    font-display: swap;
}
@font-face {
    font-family: "Martian Ultralight";
    src: url("../fonts/martian-ultralight.woff2") format("woff2");
    font-display: swap;
}
@font-face {
    font-family: "Futura Light";
    src: url("../fonts/futura-01.woff2") format("woff2");
    font-display: swap;
}
@font-face {
    font-family: "Futura Light";
    src: url("../fonts/futura-05.woff2") format("woff2");
    font-display: swap;
    unicode-range: U+0100-024F, U+1E00-1EFF;
}

@font-face {
    font-family: "Poppins";
    src: url("../fonts/poppins-semibold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

/* 02. Wspólne ustawienia, kolory i dostępność */
:root {
    --slate: #4f5a6c;
    --slate-light: #adb9ce;
    --text: #2f2f30;
    --heading: #5f5e61;
    --white: #fff;
    --content-width: 980px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--text); font-family: "Futura Light", Arial, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #40679f; outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h2 { font-family: "Martian", Arial, sans-serif; font-size: 49px; font-weight: 600; color: var(--slate); text-align: center; }
section[id], footer[id] { scroll-margin-top: 20px; }
.content-width { width: min(var(--content-width), calc(100% - 48px)); margin-inline: auto; }
.heading-small { font-family: "Poppins", Arial, sans-serif; font-size: 36px; font-weight: 700; color: var(--heading); text-align: center; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 100; background: white; padding: 14px 20px; }

/* 03. Nagłówek i menu nawigacyjne */
.contact-bar { min-height: 147px; background: var(--slate); color: white; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 32px; padding: 20px max(5vw, 24px); }
.contact-bar > a:not(.brand) { display: flex; align-items: center; gap: 24px; padding-top: 22px; font-family: "Martian Light", Arial, sans-serif; font-size: 21px; }
.contact-bar__phone { justify-self: start; margin-left: 110px; }
.contact-bar__email { justify-self: end; }
.contact-bar svg { width: 32px; height: 32px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.3; }
.brand img { width: 237px; height: 73px; object-fit: contain; }
.navigation { min-height: 95px; display: flex; justify-content: center; align-items: center; }
.navigation ul { display: flex; align-items: center; justify-content: center; gap: 30px; padding: 0; margin: 0; list-style: none; }
.navigation a { display: block; padding-block: 15px; font-family: "Martian Light", Arial, sans-serif; font-size: 15px; transition: color .2s; }
.navigation a:hover, .navigation a[aria-current] { color: #7e899d; text-decoration: none; }
.menu-toggle { display: none; }

/* 04. Sekcja powitalna z dwoma polami tekstu */
.hero { height: 676px; position: relative; overflow: hidden; background: #6d777c; color: white; }
.hero__image { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.hero__content { position: absolute; inset: 0; width: min(1100px, calc(100% - 64px)); margin: auto; }
.hero h1 { position: absolute; left: 27px; top: 111px; font-family: "Martian", Arial, sans-serif; font-size: clamp(42px, 5.2vw, 75px); line-height: .9; font-weight: 600; }
.hero h1 span { background: var(--slate); padding: 0 25px 7px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero__content > p { position: absolute; bottom: 84px; right: 42px; height: 187px; width: min(685px, 70%); padding: 30px 24px; background: var(--slate); text-align: center; font-family: "Martian Ultralight", Arial, sans-serif; font-size: 40px; font-weight: 700; line-height: .9; }

/* 05. Wprowadzenie i sześć kafelków usług */
.introduction { padding: 45px 27px 50px; }
.introduction > p { margin-top: 27px; font-size: 27px; line-height: 1.7; text-align: justify; }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 48px; }
.service-card { position: relative; min-height: 374px; display: grid; place-items: end start; overflow: hidden; background: var(--slate); color: white; isolation: isolate; }
.service-card img { opacity: .8; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s ease; }
.service-card::after { content: ""; position: absolute; inset: 0; background: transparent; z-index: -1; }
.service-card h3 { width: 100%; margin-bottom: 72px; padding: 0 23px; font-family: "Martian", Arial, sans-serif; font-size: 36px; line-height: .9; font-weight: 600; text-align: left; }
.service-card:hover img { transform: scale(1.04); }

/* 06. O nas: dwie równe kolumny */
.about { display: grid; grid-template-columns: 1fr 1fr; min-height: 710px; }
.about__photo { overflow: hidden; background: var(--slate); }
.about__photo img { opacity: .8; width: 100%; height: 100%; min-height: 710px; object-fit: cover; }
.about__content { position: relative; padding: 155px max(48px, 9.5vw) 60px; }
.about__logo { position: absolute; top: 54px; right: max(48px, 10vw); width: 201px; height: 62px; object-fit: contain; }
.about__content p { margin-top: 34px; font-size: 17px; line-height: 1.7; text-align: justify; }

/* 07. Samochód po naprawie: szerokie zdjęcie z podpisem */
.showcase { position: relative; height: min(58.4vw, 900px); min-height: 480px; margin-top: 50px; overflow: hidden; background: var(--slate); }
.showcase > img { width: 100%; height: 100%; object-fit: cover; }
.showcase figcaption { position: absolute; left: 22px; top: 42px; color: white; font-family: "Martian Light", Arial, sans-serif; font-size: 24px; line-height: 1.15; letter-spacing: 2px; text-shadow: 0 1px 8px #000; }

/* 08. Oferta i numerowane etapy obsługi */
.offer { padding: 54px 20px 65px; }
.offer__intro { margin-top: 50px; font-size: 22px; line-height: 1.7; text-align: justify; }
.offer > h3 { margin-top: 55px; }
.steps { width: 100vw; list-style: none; padding: 0; margin: 65px 0 0 calc(50% - 50vw); display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 120px minmax(0, 600px); justify-content: center; min-height: 170px; align-items: center; background: #6d777c; color: white; padding: 30px 24px; }
.steps li:nth-child(2) { background: #3d4a50; }
.steps li:nth-child(3) { background: #1f2528; }
.steps__number { font-family: "Martian Ultralight", Arial, sans-serif; font-size: 64px; text-align: center; }
.steps p { border-left: 1px solid #adb9ce; padding-left: 35px; font-family: "Martian Ultralight", Arial, sans-serif; font-size: 22px; line-height: 1.7; }

/* 09. Samochody zastępcze: pas tekstu i zdjęcie */
.replacement { display: grid; grid-template-columns: 40.2% 59.8%; min-height: 650px; background: var(--slate-light); }
.replacement h2 { align-self: center; margin: 65px auto; width: min(343px, calc(100% - 70px)); font-family: "Poppins", Arial, sans-serif; font-size: 36px; font-weight: 700; line-height: 1.08; color: var(--heading); text-align: left; }
.replacement > img { opacity: .8; width: 100%; height: 650px; object-fit: cover; background: var(--slate); }

/* 10. Galeria realizacji: naprzemienne układy przed i po */
.gallery { padding-top: 58px; }
.gallery > h2 { margin: 0 24px 46px; font-size: 50px; }
.gallery-row { display: grid; grid-template-columns: 26% 37% 37%; min-height: 455px; margin-bottom: 30px; }
.gallery-row > h3 { align-self: center; padding: 35px; text-align: center; font-family: "Martian", Arial, sans-serif; font-size: 30px; font-weight: 600; color: var(--slate); }
.gallery-photo { position: relative; display: block; border: 0; padding: 0; overflow: hidden; height: 455px; background: var(--slate); color: white; }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .3s, transform .6s; }
.gallery-photo:hover img { opacity: 1; transform: scale(1.035); }
.gallery-photo span { position: absolute; bottom: 40px; left: 0; width: 100%; font-family: "Martian Light", Arial, sans-serif; font-size: 40px; letter-spacing: 6px; text-align: center; text-shadow: 0 2px 10px #000; }
.gallery-row--reverse { grid-template-columns: 37% 37% 26%; }
.gallery-row--reverse > h3 { grid-column: 3; grid-row: 1; }
.gallery-row--reverse .gallery-photo { grid-row: 1; }

/* 11. Kontakt, dane rejestrowe i formularz */
.contact { padding: 35px 0 60px; }
.contact__columns { display: grid; grid-template-columns: 1fr 1fr; gap: 120px; padding-top: 70px; }
.company { font-size: 16px; line-height: 1.7; font-style: normal; text-align: center; }
.company img { width: 243px; height: 75px; margin: 0 auto 22px; object-fit: contain; }
.company p + p { margin-top: 18px; }
.contact-form { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid #bebcc2; border-radius: 0; background: white; padding: 11px 12px; color: var(--text); font-family: Arial, sans-serif; font-size: 15px; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button { align-self: flex-end; border: 0; background: #7e899d; color: white; padding: 10px 38px; transition: background .2s; }
.contact-form button:hover { background: var(--slate); }
.form-note, .form-status { font-size: 14px; line-height: 1.5; }
.form-note { color: var(--heading); }
.form-note a { text-decoration: underline; overflow-wrap: anywhere; }
.form-status:empty { display: none; }

/* 12. Powiększanie zdjęć w natywnym oknie dialogowym */
.lightbox { position: fixed; width: min(1200px, 94vw); max-height: 94dvh; padding: 50px 16px 20px; border: 0; background: #151b25; color: white; }
.lightbox::backdrop { background: rgb(0 0 0 / 85%); }
.lightbox figure { display: grid; justify-items: center; gap: 14px; }
.lightbox figure img { width: auto; height: auto; max-height: 76dvh; object-fit: contain; }
.lightbox__close { position: absolute; right: 12px; top: 4px; border: 0; background: transparent; color: white; font-size: 36px; width: 44px; height: 44px; }
body.lightbox-open { overflow: hidden; }

/* 13. Animacje przewijania: treść pozostaje dostępna bez JavaScript */
[data-reveal] { opacity: 1; transform: none; }
[data-reveal].reveal-pending { opacity: 0; transform: translateY(30px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.65,.3,1); }
[data-reveal].reveal-visible { opacity: 1; transform: translateY(0); }

/* 14. Tablety: dopasowanie odstępów i wielkości tekstu */
@media (max-width: 1100px) {
    .contact-bar { gap: 20px; padding-inline: 28px; }
    .contact-bar > a:not(.brand) { font-size: 16px; gap: 12px; }
    .contact-bar__phone { justify-self: start; margin-left: 0; }
    .brand img { width: 210px; }
    .about__content { padding: 155px 48px 60px; }
    .about__logo { right: 48px; }
    .service-card h3 { font-size: 30px; }
    .contact__columns { gap: 65px; }
}

/* 15. Telefony: menu rozwijane i układ jednokolumnowy */
@media (max-width: 700px) {
    h2, .gallery > h2 { font-size: 34px; }
    .heading-small { font-size: 27px; }
    .content-width { width: calc(100% - 40px); }
    .contact-bar { min-height: 155px; grid-template-columns: 1fr 1fr; gap: 15px 8px; padding: 18px 20px; align-items: center; }
    .brand { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
    .brand img { width: 190px; height: 59px; }
    .contact-bar > a:not(.brand) { font-size: 12px; padding: 0; gap: 7px; }
    .contact-bar svg { width: 19px; height: 19px; }
    .navigation { display: block; min-height: 60px; padding: 0 20px; }
    .menu-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 18px 0; background: none; border: 0; color: var(--slate); }
    .navigation ul { display: grid; gap: 0; padding-bottom: 16px; justify-content: stretch; }
    .navigation.is-enhanced ul:not(.is-open) { display: none; }
    .navigation a { padding: 12px 0; }
    .hero { height: 520px; }
    .hero__content { width: calc(100% - 36px); }
    .hero h1 { font-size: clamp(30px, 8.3vw, 54px); top: 65px; left: 0; }
    .hero h1 span { padding-inline: 8px; }
    .hero__content > p { width: 95%; height: auto; bottom: 45px; right: 0; padding: 22px 18px; font-size: 28px; line-height: 1.15; }
    .introduction { padding: 36px 0; }
    .introduction > p { font-size: 21px; line-height: 1.6; text-align: left; }
    .services { grid-template-columns: 1fr; gap: 12px; padding-bottom: 36px; }
    .service-card { min-height: 300px; }
    .service-card h3 { padding: 0 25px; margin-bottom: 50px; font-size: 30px; }
    .about { grid-template-columns: 1fr; }
    .about__photo img { height: 370px; min-height: 0; }
    .about__content { padding: 125px 26px 45px; }
    .about__logo { top: 30px; right: 26px; width: 175px; }
    .about__content p { font-size: 19px; text-align: left; margin-top: 26px; }
    .showcase { height: 430px; min-height: 0; margin-top: 0; }
    .showcase figcaption { left: 20px; right: 20px; top: 25px; font-size: 18px; letter-spacing: 1px; }
    .offer { padding: 40px 0; }
    .offer__intro { margin-top: 28px; font-size: 20px; line-height: 1.6; text-align: left; }
    .offer > h3 { margin-top: 36px; }
    .steps { margin-top: 32px; gap: 15px; }
    .steps li { grid-template-columns: 55px 1fr; padding: 24px 15px; }
    .steps__number { font-size: 48px; }
    .steps p { padding-left: 18px; font-size: 19px; line-height: 1.55; }
    .replacement { grid-template-columns: 1fr; min-height: 0; }
    .replacement h2 { width: calc(100% - 56px); margin: 45px auto; font-size: 30px; }
    .replacement > img { height: 350px; }
    .gallery { padding-top: 40px; }
    .gallery > h2 { margin-bottom: 28px; }
    .gallery-row, .gallery-row--reverse { grid-template-columns: 1fr 1fr; min-height: 0; gap: 0; margin-bottom: 24px; }
    .gallery-row > h3, .gallery-row--reverse > h3 { grid-column: 1 / -1; grid-row: 1; font-size: 24px; padding: 25px 16px; }
    .gallery-photo, .gallery-row--reverse .gallery-photo { grid-row: 2; height: 240px; }
    .gallery-photo span { font-size: 23px; letter-spacing: 3px; bottom: 23px; }
    .contact { padding: 15px 0 40px; }
    .contact > h2 { padding-inline: 20px; }
    .contact__columns { grid-template-columns: 1fr; gap: 30px; padding-top: 35px; }
    .company { font-size: 17px; }
    .contact-form { padding-top: 0; }
    .contact-form input, .contact-form textarea { font-size: 16px; }
}

/* 16. Preferencje użytkownika: ograniczenie ruchu i animacji */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    [data-reveal].reveal-pending { opacity: 1; transform: none; }
}
