/* =========================
GLOBAL
========================= */

:root{
--black:#080808;
--black2:#111;
--gold:#c9973e;
--gold2:#e1b45c;
--white:#fff;
--gray:#777;
--light:#f6f6f4;
--border:#e6e6e6;
}

*{box-sizing:border-box;margin:0;padding:0}

html{scroll-behavior:smooth}

body{
font-family:"DM Sans",sans-serif;
color:#151515;
background:#fff;
line-height:1.6;
overflow-x:hidden;
}

a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
button{font:inherit}

.container{
width:min(1180px,calc(100% - 40px));
margin:0 auto;
}

section{scroll-margin-top:80px}


/* =========================
HEADER
========================= */

header{
position:fixed;
z-index:1000;
top:0;
left:0;
width:100%;
background:rgba(8,8,8,.96);
border-bottom:1px solid rgba(201,151,62,.18);
}

.header{
height:82px;
display:flex;
align-items:center;
gap:30px;
}

.logo img{width:185px}

nav{
display:flex;
gap:30px;
margin-left:auto;
}

nav a{
color:#fff;
font-size:12px;
font-weight:700;
text-transform:uppercase;
letter-spacing:.04em;
padding:30px 0;
position:relative;
}

nav a:after{
content:"";
position:absolute;
bottom:20px;
left:0;
width:0;
height:2px;
background:var(--gold);
transition:.25s;
}

nav a:hover:after,
nav a.active:after{width:100%}

.phone{
color:#fff;
white-space:nowrap;
font-weight:700;
font-size:14px;
}

.phone span{
display:block;
color:#999;
font-size:10px;
font-weight:400;
}

.header-btn,
.btn{
display:inline-flex;
align-items:center;
justify-content:center;
gap:10px;
background:var(--gold);
color:#090909;
font-size:12px;
font-weight:800;
text-transform:uppercase;
letter-spacing:.04em;
min-height:50px;
padding:0 25px;
transition:.25s;
border:0;
cursor:pointer;
}

.header-btn:hover,
.btn:hover{
background:var(--gold2);
transform:translateY(-2px);
}

.menu{
display:none;
background:none;
border:1px solid #444;
color:#fff;
width:42px;
height:42px;
font-size:21px;
}


/* =========================
HERO – DESKTOP
========================= */

.hero{
min-height:760px;
padding-top:82px;
display:flex;
align-items:center;
position:relative;
overflow:hidden;

background:
linear-gradient(
90deg,
rgba(5,5,5,.48) 0%,
rgba(5,5,5,.32) 34%,
rgba(5,5,5,.12) 61%,
rgba(5,5,5,.03) 100%
),
url("img/hero-background.jpg") center 58%/cover no-repeat;
}

.hero:after{
content:"";
position:absolute;
inset:0;
background:linear-gradient(
180deg,
rgba(0,0,0,0),
rgba(0,0,0,.08)
);
}

.hero-content{
position:relative;
z-index:2;
color:#fff;
}

.hero-copy{max-width:570px}

.eyebrow,
.label{
color:var(--gold2);
font-size:12px;
font-weight:800;
text-transform:uppercase;
letter-spacing:.16em;
display:flex;
align-items:center;
gap:17px;
}

.eyebrow{margin-bottom:22px}

.eyebrow:after,
.label:after{
content:"";
width:50px;
height:1px;
background:var(--gold);
}

h1{
font-size:clamp(48px,6vw,78px);
line-height:.98;
letter-spacing:-.05em;
margin-bottom:27px;
}

h1 span{color:var(--gold2)}

.hero p{
max-width:450px;
color:rgba(255,255,255,.8);
font-size:16px;
line-height:1.75;
margin-bottom:34px;
}

.actions{
display:flex;
gap:13px;
}

.btn-outline{
background:transparent;
color:#fff;
border:1px solid rgba(255,255,255,.65);
}

.btn-outline:hover{
background:#fff;
color:#111;
}


/* =========================
BENEFITS
========================= */

.benefits{background:#090909;color:#fff}

.benefits-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
justify-content:center;
}

.benefit{
min-height:135px;
padding:24px 25px;
display:flex;
align-items:center;
justify-content:center;
gap:16px;
border-right:1px solid rgba(255,255,255,.12);
}

.benefit:last-child{border:0}

.icon{
width:47px;
height:47px;
min-width:47px;
border:1px solid var(--gold);
border-radius:50%;
display:grid;
place-items:center;
color:var(--gold);
font-size:20px;
}

.benefit h3{font-size:14px;margin-bottom:3px}
.benefit p{font-size:11px;color:#999;line-height:1.45}


/* =========================
COMMON
========================= */

.section{padding:105px 0}

.label{margin-bottom:20px}

.heading{
font-size:clamp(34px,4vw,52px);
line-height:1.08;
letter-spacing:-.04em;
}


/* =========================
FLEET
========================= */

.fleet-header{
display:grid;
grid-template-columns:1fr 400px;
gap:60px;
align-items:end;
margin-bottom:50px;
}

.fleet-info{
color:#666;
font-size:15px;
line-height:1.8;
}

.fleet-info .btn{
margin-top:20px;
background:#111;
color:#fff;
}

.cars{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:28px;
}

.card{
border:1px solid var(--border);
background:#fff;
box-shadow:0 14px 40px rgba(0,0,0,.06);
overflow:hidden;
transition:.3s;
}

.card:hover{
transform:translateY(-5px);
box-shadow:0 25px 55px rgba(0,0,0,.1);
}

.car-img{
height:315px;
background:#f5f5f3;
padding:22px;
}

.car-img img{
width:100%;
height:100%;
object-fit:contain;
}

.card-body{padding:26px}

.card h3{
font-family:"Playfair Display",serif;
font-size:27px;
margin-bottom:19px;
}

.specs{
display:grid;
grid-template-columns:repeat(3,1fr);
padding-bottom:18px;
border-bottom:1px solid var(--border);
gap:8px;
}

.spec{font-size:11px;color:#666}

.bottom{
display:flex;
align-items:center;
justify-content:space-between;
gap:15px;
padding-top:19px;
}

.price{white-space:nowrap}
.price small{color:#666;font-size:11px}
.price strong{font-size:28px;color:var(--gold);margin:0 4px}
.price span{font-size:11px;color:#666}

.details{
border:0;
background:none;
font-size:11px;
font-weight:800;
text-transform:uppercase;
cursor:pointer;
}

.details:hover{color:var(--gold)}


/* =========================
ABOUT
========================= */

.about{background:#0b0b0b;color:#fff}

.about-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:75px;
align-items:center;
}

.about-img{
min-height:500px;
background:url("img/crafter/crafter_1.jpg") center/cover no-repeat;
border-radius:28px;
overflow:hidden;
}


.about p{
color:#aaa;
margin-top:22px;
line-height:1.85;
font-size:15px;
}

.points{
display:grid;
grid-template-columns:1fr 1fr;
gap:12px;
margin-top:30px;
}

.point{
border:1px solid rgba(255,255,255,.1);
padding:16px;
}

.point strong{
color:var(--gold2);
margin-right:10px;
}


/* =========================
SERVICES
========================= */

.services{background:var(--light)}

.services-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:18px;
margin-top:50px;
}

.service{
background:#fff;
border:1px solid var(--border);
padding:32px;
transition:.25s;
}

.service:hover{
border-color:rgba(201,151,62,.5);
transform:translateY(-3px);
}

.service-num{
color:var(--gold);
font-weight:800;
font-size:12px;
margin-bottom:20px;
}

.service h3{font-size:19px;margin-bottom:10px}

.service p{
font-size:13px;
color:#707070;
line-height:1.7;
}


/* =========================
CONTACT
========================= */

.contact-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:70px;
align-items:center;
}

.contact-text>p{
color:#666;
max-width:560px;
margin-top:22px;
line-height:1.8;
}

.contact-list{
display:grid;
gap:18px;
margin-top:30px;
}

.contact-item{
display:flex;
align-items:center;
gap:16px;
}

.contact-icon{
width:45px;
height:45px;
border:1px solid #ddd;
display:grid;
place-items:center;
color:var(--gold);
}

.contact-item small{
display:block;
color:#888;
font-size:10px;
text-transform:uppercase;
}

.contact-item strong{font-size:15px}

.contact-box{
background:#0b0b0b;
color:#fff;
padding:45px;
}

.contact-box h3{font-size:28px;margin-bottom:13px}
.contact-box p{color:#999;margin-bottom:25px}


/* =========================
FOOTER
========================= */

footer{
background:#080808;
color:#fff;
padding:70px 0 22px;
width:100%;
}

.footer-grid{
display:grid;
grid-template-columns:1.5fr 1fr 1fr 1.2fr;
gap:40px;
padding-bottom:45px;
border-bottom:1px solid rgba(255,255,255,.1);
}

.footer-logo img{
width:175px;
margin-bottom:18px;
}

.footer-about{
color:#888;
max-width:280px;
font-size:13px;
}

.footer-title{
font-size:12px;
font-weight:800;
text-transform:uppercase;
margin-bottom:20px;
}

.footer-links{display:grid;gap:9px}
.footer-links a{color:#888;font-size:13px}
.footer-links a:hover{color:var(--gold)}

.footer-contact{
display:grid;
gap:12px;
color:#999;
font-size:13px;
}

.footer-bottom{
display:flex;
align-items:center;
justify-content:space-between;
width:100%;
padding-top:20px;
color:#666;
font-size:11px;
}

.footer-bottom-inner{
width:100%;
display:flex;
justify-content:center;
align-items:center;
text-align:center;
}

.footer-bottom-inner span{
width:100%;
text-align:center;
}

.footer-bottom-text{display:block}
.footer-legal{display:flex;gap:25px}


/* =========================
MODAL
========================= */

.modal{
display:none;
position:fixed;
inset:0;
background:rgba(0,0,0,.88);
z-index:3000;
padding:20px;
align-items:center;
justify-content:center;
}

.modal.show{display:flex}

.modal-box{
background:#fff;
width:min(950px,100%);
max-height:94vh;
overflow:auto;
position:relative;
}

.close{
position:absolute;
right:12px;
top:12px;
width:40px;
height:40px;
border:0;
background:#111;
color:#fff;
font-size:25px;
cursor:pointer;
z-index:20;
}

.modal-gallery{background:#f5f5f3}

.modal-gallery-main{
height:460px;
position:relative;
display:flex;
align-items:center;
justify-content:center;
overflow:hidden;
}

.modal-gallery-main img{
width:100%;
height:100%;
object-fit:contain;
padding:25px;
transition:opacity .2s ease;
}

.modal-gallery-prev,
.modal-gallery-next{
position:absolute;
top:50%;
transform:translateY(-50%);
width:48px;
height:48px;
border:0;
border-radius:50%;
background:rgba(0,0,0,.72);
color:#fff;
font-size:34px;
line-height:1;
cursor:pointer;
z-index:10;
display:flex;
align-items:center;
justify-content:center;
transition:.25s;
}

.modal-gallery-prev{left:18px}
.modal-gallery-next{right:18px}

.modal-gallery-prev:hover,
.modal-gallery-next:hover{
background:var(--gold);
color:#111;
}

.modal-thumbs{
display:grid;
grid-template-columns:repeat(5,1fr);
gap:8px;
padding:12px 20px 20px;
}

.modal-thumbs img{
width:100%;
height:75px;
object-fit:cover;
cursor:pointer;
opacity:.55;
border:2px solid transparent;
transition:.2s;
}

.modal-thumbs img:hover,
.modal-thumbs img.active{
opacity:1;
border-color:var(--gold);
}

.modal-content{padding:30px}

.modal-content h2{
font-family:"Playfair Display",serif;
font-size:32px;
}

.modal-details{
display:grid;
grid-template-columns:repeat(3,1fr);
margin-top:20px;
border-top:1px solid #ddd;
border-bottom:1px solid #ddd;
}

.modal-detail{
padding:16px;
border-right:1px solid #ddd;
}

.modal-detail:last-child{border:0}
.modal-detail small{display:block;color:#888}

.modal-price{
margin-top:25px;
display:flex;
align-items:center;
justify-content:space-between;
}


/* =========================
TABLET
========================= */

@media(max-width:900px){

nav{
display:none;
position:absolute;
top:82px;
left:0;
width:100%;
background:#090909;
padding:10px 20px 20px;
flex-direction:column;
gap:0;
}

nav.open{display:flex}

nav a{
padding:14px 0;
border-bottom:1px solid #222;
}

nav a:after{display:none}

.phone,
.header-btn{display:none}

.menu{
display:block;
margin-left:auto;
}

.benefits-grid{grid-template-columns:repeat(3,1fr)}

.benefit{border-right:1px solid #222}
.benefit:last-child{border-right:0}

.fleet-header{
grid-template-columns:1fr;
gap:22px;
}

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

.about-img{
min-height:380px;
order:2;
}

.services-grid{grid-template-columns:1fr 1fr}
.footer-grid{grid-template-columns:1fr 1fr}
}


/* =========================
TELEFON – UKŁAD HERO
========================= */

/*
NAJWAŻNIEJSZA ZMIANA:
Na telefonie zdjęcie NIE jest już tłem całego hero.

Hero składa się z:
1. osobnego pola ze zdjęciem na górze,
2. osobnego pola z tekstem pod zdjęciem.

Dzięki temu:
- góra zdjęcia nie jest zasłaniana przez stały HEADER,
- zdjęcie nie jest przycinane przez "cover",
- tekst nie wchodzi na zdjęcie.
*/

@media(max-width:600px){

/* HEADER */

.header{
height:72px;
}

.logo img{
width:155px;
}

/* HERO */

.hero{
margin-top:72px;
min-height:0;
height:auto;
padding:0 0 42px;
display:block;
position:relative;
overflow:hidden;
background:#080808;
}

/* usuwamy stare tło hero */
.hero:before{
content:"";
display:block;
width:100%;
height:56vw;

background:
linear-gradient(
90deg,
rgba(5,5,5,.28) 0%,
rgba(5,5,5,.12) 55%,
rgba(5,5,5,.03) 100%
),
url("img/hero-background.jpg");

background-repeat:no-repeat;
background-position:center top;
background-size:100% auto;
background-color:#080808;
}

/* stary overlay nie może już przykrywać zdjęcia */
.hero:after{
display:none;
}

/* TEKST JEST POD ZDJĘCIEM */

.hero-content{
position:relative;
z-index:2;
padding:34px 20px 0;
color:#fff;
}

.hero-copy{
max-width:100%;
margin:0 auto;
}

.eyebrow{
margin-bottom:16px;
font-size:10px;
}

.eyebrow:after{
width:38px;
}

.hero h1{
font-size:40px;
line-height:1.02;
letter-spacing:-.04em;
margin-bottom:20px;
}

.hero p{
max-width:100%;
font-size:14px;
line-height:1.65;
margin-bottom:25px;
color:rgba(255,255,255,.82);
}

.actions{
display:flex;
flex-direction:column;
gap:10px;
width:100%;
max-width:300px;
}

.btn{
width:100%;
}

/* BENEFITS */

.benefits-grid{
grid-template-columns:1fr;
}

.benefit,
.benefit:nth-child(2),
.benefit:last-child{
width:100%;
min-height:130px;
border-right:0;
border-bottom:1px solid #222;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
text-align:center;
gap:8px;
padding:22px 15px;
}

.benefit:last-child{border-bottom:0}

.benefit .icon{margin:0 auto 4px}
.benefit h3{text-align:center;margin:0;font-size:14px}
.benefit p{text-align:center;margin:0;font-size:11px}

/* SEKCJE */

.section{padding:75px 0}
.heading{font-size:34px}

/* SAMOCHODY */

.cars{grid-template-columns:1fr}

.car-img{
height:245px;
padding:15px;
}

.card-body{padding:21px}
.card h3{font-size:23px}
.specs{gap:5px}
.spec{font-size:9px}

.bottom{
flex-direction:column;
align-items:center;
justify-content:center;
gap:10px;
}

.price{
width:100%;
text-align:center;
}

.price strong{font-size:28px}

.details{
width:100%;
text-align:center;
}

/* ABOUT */

.about-img{min-height:290px}
.points{grid-template-columns:1fr}

/* SERVICES */

.services-grid{grid-template-columns:1fr}

/* CONTACT */

.contact-box{padding:30px 22px}

/* FOOTER */

footer{
width:100%;
text-align:center;
}

footer .container{
width:100%;
max-width:100%;
margin:0 auto;
padding-left:20px;
padding-right:20px;
}

.footer-grid{
display:grid;
grid-template-columns:1fr;
width:100%;
text-align:center;
justify-items:center;
}

.footer-grid > div{
width:100%;
text-align:center;
}

.footer-about{
margin-left:auto;
margin-right:auto;
text-align:center;
}

.footer-title{text-align:center}

.footer-links{
justify-items:center;
text-align:center;
}

.footer-links a{text-align:center}

.footer-contact{
justify-items:center;
text-align:center;
}

.footer-logo{
width:100%;
display:flex;
justify-content:center;
align-items:center;
text-align:center;
}

.footer-logo img{
width:175px;
margin:0 auto 18px;
}

.footer-bottom{
width:100% !important;
display:flex !important;
flex-direction:column !important;
justify-content:center !important;
align-items:center !important;
text-align:center !important;
padding:20px 0 0 !important;
margin:0 auto !important;
}

.footer-bottom span{
display:block !important;
width:100% !important;
margin:0 auto !important;
text-align:center !important;
}

.footer-legal{
width:100%;
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
gap:8px;
margin-top:10px;
text-align:center;
}

/* MODAL */

.modal{padding:8px}
.modal-box{max-height:96vh}
.modal-gallery-main{height:270px}
.modal-gallery-main img{padding:15px}

.modal-gallery-prev,
.modal-gallery-next{
width:42px;
height:42px;
font-size:28px;
}

.modal-gallery-prev{left:8px}
.modal-gallery-next{right:8px}

.modal-thumbs{
grid-template-columns:repeat(4,1fr);
gap:6px;
padding:8px 10px 12px;
}

.modal-thumbs img{height:55px}
.modal-content{padding:22px 17px}
.modal-content h2{font-size:27px}

.modal-details{
grid-template-columns:1fr 1fr;
}

.modal-detail:nth-child(2){border-right:0}
.modal-detail:nth-child(3){border-top:1px solid #ddd}

.modal-price{
flex-direction:column;
align-items:stretch;
gap:18px;
}

}


/* =========================
FORMULARZ DOSTĘPNOŚCI
========================= */

.availability-modal{
display:none;
position:fixed;
inset:0;
z-index:5000;
background:rgba(0,0,0,.88);
padding:20px;
align-items:center;
justify-content:center;
}

.availability-modal.show{display:flex}

.availability-box{
position:relative;
width:min(720px,100%);
max-height:94vh;
overflow:auto;
background:#fff;
box-shadow:0 30px 100px rgba(0,0,0,.5);
}

.availability-header{
background:#0b0b0b;
color:#fff;
padding:32px 38px;
border-bottom:2px solid var(--gold);
}

.availability-label{
color:var(--gold2);
font-size:11px;
font-weight:800;
text-transform:uppercase;
letter-spacing:.16em;
margin-bottom:8px;
}

.availability-header h2{
font-family:"Playfair Display",serif;
font-size:34px;
line-height:1.1;
}

.availability-header p{
color:#999;
font-size:13px;
margin-top:8px;
}

.availability-close{
position:absolute;
right:15px;
top:15px;
width:42px;
height:42px;
border:1px solid rgba(255,255,255,.25);
background:#111;
color:#fff;
font-size:25px;
cursor:pointer;
z-index:5;
}

.availability-close:hover{
background:var(--gold);
color:#111;
}

.availability-form{padding:32px 38px 38px}

.form-section{margin-bottom:27px}

.form-section-title{
display:flex;
align-items:center;
gap:10px;
font-size:12px;
font-weight:800;
text-transform:uppercase;
letter-spacing:.08em;
margin-bottom:14px;
}

.form-number{
width:25px;
height:25px;
display:grid;
place-items:center;
background:var(--gold);
color:#111;
font-size:11px;
font-weight:800;
}

.form-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:14px;
}

.form-group{
display:flex;
flex-direction:column;
gap:6px;
}

.form-group.full{grid-column:1/-1}

.form-group label{
font-size:11px;
font-weight:700;
color:#555;
}

.form-group input,
.form-group select,
.form-group textarea{
width:100%;
min-height:50px;
padding:0 14px;
border:1px solid #ddd;
background:#fafafa;
color:#111;
font-family:"DM Sans",sans-serif;
font-size:13px;
outline:none;
transition:.2s;
}

.form-group textarea{
padding:13px 14px;
min-height:90px;
resize:vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
border-color:var(--gold);
background:#fff;
box-shadow:0 0 0 2px rgba(201,151,62,.08);
}

.form-summary{
display:flex;
justify-content:space-between;
align-items:center;
padding:17px 18px;
background:#f6f6f4;
border-left:3px solid var(--gold);
margin-top:5px;
}

.form-summary span{color:#777;font-size:12px}
.form-summary strong{font-size:14px}

.availability-submit{
width:100%;
min-height:56px;
border:0;
background:var(--gold);
color:#090909;
font-size:12px;
font-weight:800;
text-transform:uppercase;
letter-spacing:.06em;
cursor:pointer;
transition:.25s;
}

.availability-submit:hover{
background:var(--gold2);
transform:translateY(-2px);
}

.form-note{
text-align:center;
color:#888;
font-size:10px;
line-height:1.5;
margin-top:13px;
}

.availability-card-btn{
border:0;
background:var(--gold);
color:#111;
min-height:42px;
padding:0 18px;
font-size:10px;
font-weight:800;
text-transform:uppercase;
cursor:pointer;
transition:.25s;
}

.availability-card-btn:hover{
background:var(--gold2);
transform:translateY(-2px);
}

.form-success{
display:none;
text-align:center;
padding:45px 30px;
}

.form-success.show{display:block}

.form-success-icon{
width:60px;
height:60px;
margin:0 auto 18px;
border:1px solid var(--gold);
border-radius:50%;
display:grid;
place-items:center;
color:var(--gold);
font-size:28px;
}

.form-success h3{
font-family:"Playfair Display",serif;
font-size:28px;
margin-bottom:10px;
}

.form-success p{
color:#777;
font-size:13px;
line-height:1.7;
}


/* FORMULARZ – TELEFON */

@media(max-width:600px){

.availability-modal{
padding:8px;
align-items:center;
}

.availability-box{max-height:96vh}

.availability-header{padding:27px 22px}

.availability-header h2{
font-size:28px;
padding-right:35px;
}

.availability-form{padding:24px 18px 25px}

.form-grid{
grid-template-columns:1fr;
gap:12px;
}

.form-group.full{grid-column:auto}
.form-section{margin-bottom:24px}

.form-group input,
.form-group select{
min-height:52px;
font-size:14px;
}

.form-summary{
flex-direction:column;
align-items:flex-start;
gap:5px;
}

.availability-close{
right:10px;
top:10px;
}

}
@media(max-width:600px){
    .hero-content{
        transform: translateY(-35px);
    }
}