assets/style.css Repository wynajem_motorowek Original path assets/style.cssRole SOURCE Size 9927 bytes Lines 482 SHA-256 8a16b294e283bb82a17633bfeb160f94b315d53c13c672734e489644970eca1dDisplayed range 1–482 Previous file/page · Project index · Next file/page
:root{
--bg: #070A10;
--text: rgba(255,255,255,.92);
--muted: rgba(255,255,255,.70);
--line: rgba(255,255,255,.14);
--card: rgba(0,0,0,.35);
--card2: rgba(255,255,255,.06);
--accent: #7ab8ff;
--shadow: 0 16px 50px rgba(0,0,0,.55);
--radius: 22px;
--tile-h: 92px;
}
*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
margin:0;
font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
color: var(--text);
background: var(--bg);
}
a{ color: inherit; }
.bg{
min-height:100%;
background:
radial-gradient(1000px 600px at 20% 0%, rgba(120,184,255,.18), transparent 60%),
radial-gradient(900px 500px at 80% 10%, rgba(255,170,120,.12), transparent 55%),
linear-gradient(180deg, rgba(0,0,0,.50), rgba(0,0,0,.70)),
url("../tlo1.jpg") center/cover no-repeat fixed;
padding: 26px 0 40px;
}
.shell{
width: min(1200px, calc(100% - 30px));
margin: 0 auto;
}
.top{
display:flex;
align-items:center;
justify-content:space-between;
gap:16px;
padding: 12px 4px 16px;
}
.brand{
display:flex;
flex-direction:column;
gap:6px;
}
.brand h1{
margin:0;
font-size: 34px;
letter-spacing: .2px;
}
.brand .tag{
margin:0;
color: var(--muted);
font-size: 14px;
}
.nav{
display:flex;
gap:10px;
flex-wrap:wrap;
}
.nav button{
border:1px solid var(--line);
background: rgba(255,255,255,.05);
color: var(--text);
padding: 10px 14px;
border-radius: 14px;
cursor:pointer;
transition:.12s ease;
}
.nav button:hover{
background: rgba(255,255,255,.08);
border-color: rgba(255,255,255,.24);
}
.nav button.active{
border-color: rgba(122,184,255,.55);
background: rgba(122,184,255,.12);
}
/* DESKTOP: 2 kolumny */
.panel{
display:grid;
grid-template-columns: 175px 1fr;
gap: 16px;
align-items:start;
}
/* ✅ krytyczne: w grid/flex potomkowie mogą rozpychać – to temu zapobiega */
.panel > *{ min-width: 0; }
/* ====== SIDEBAR ====== */
.sidebar{
border: 1px solid var(--line);
border-radius: var(--radius);
background: rgba(0,0,0,.35);
box-shadow: var(--shadow);
overflow:hidden;
}
.sidebar h3{
margin:0;
padding: 14px 14px 10px;
font-size: 16px;
color: var(--muted);
border-bottom: 1px solid var(--line);
}
/* ====== MENU (kafelki) ====== */
.menu{ padding: 10px; }
.tiles{
display:flex;
flex-direction:column;
gap: 10px;
}
.tile{
width:100%;
height: var(--tile-h);
padding: 0;
border-radius: 16px;
overflow:hidden;
cursor:pointer;
border: 1px solid rgba(255,255,255,.14);
background: rgba(255,255,255,.04);
transition:.12s ease;
}
.tile:hover{
background: rgba(255,255,255,.07);
border-color: rgba(255,255,255,.22);
}
.tile.active{
border-color: rgba(122,184,255,.60);
background: rgba(122,184,255,.10);
box-shadow: 0 0 0 3px rgba(122,184,255,.12);
}
.tile img{
width:100%;
height:100%;
display:block;
object-fit: cover;
object-position:center;
opacity:.96;
filter: saturate(1.03) contrast(1.03);
}
/* ====== RAMKA (panel treści) ====== */
.frame{
position: relative;
border-radius: var(--radius);
border: 1px solid var(--line);
overflow:hidden;
box-shadow: var(--shadow);
min-height: 520px;
background: rgba(0,0,0,.35);
scroll-margin-top: 12px;
/* ✅ żadne dziecko nie ma prawa wyjść poza szerokość ramki */
max-width: 100%;
}
.frame::before{
content:"";
position:absolute;
inset:0;
background:
linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,.60)),
url("../tlo1.jpg") center/cover no-repeat;
filter: saturate(1.05) contrast(1.05);
transform: scale(1.02);
z-index: 0;
}
.frame-inner{
position: relative;
z-index: 1;
padding: 22px;
max-width: 100%;
}
.title-big{
text-align:center;
font-size: 44px;
letter-spacing: 1px;
margin: 4px 0 14px;
font-weight: 800;
}
@media (max-width: 520px){
.title-big{ font-size: 34px; }
}
.card{
border: 1px solid var(--line);
background: rgba(0,0,0,.45);
border-radius: 18px;
padding: 18px;
max-width: 100%;
overflow: hidden; /* ✅ żeby nic nie wychodziło */
}
.quote{
text-align:center;
font-size: 18px;
color: var(--text);
line-height: 1.55;
}
.quote span{ color: var(--muted); }
.contact-big{
margin-top: 18px;
text-align:center;
}
.contact-big .phone{
font-size: 42px;
font-weight: 800;
letter-spacing: 1px;
}
.contact-big .addr{
margin-top: 8px;
color: var(--muted);
font-size: 20px;
line-height: 1.4;
}
.footer{
margin-top: 16px;
padding: 14px 6px 0;
color: var(--muted);
font-size: 13px;
display:flex;
justify-content:space-between;
flex-wrap:wrap;
gap: 10px;
}
/* ====== GALERIA ====== */
.gallery{
display:flex;
flex-direction:column;
gap: 12px;
max-width: 100%;
}
.viewer{
position: relative;
border: 1px solid var(--line);
border-radius: 18px;
overflow:hidden;
background: rgba(0,0,0,.55);
max-width: 100%;
}
/* ✅ klikane duże zdjęcie */
.viewer-media{
width:100%;
height: 360px;
display:block;
object-fit: contain;
background: rgba(0,0,0,.55);
cursor: zoom-in;
max-width: 100%;
}
@media (max-width: 520px){
.viewer-media{ height: 280px; }
}
.viewer .btn{
position:absolute;
top:50%;
transform: translateY(-50%);
border: 1px solid rgba(255,255,255,.22);
background: rgba(0,0,0,.40);
color: var(--text);
width: 44px;
height: 44px;
border-radius: 999px;
cursor:pointer;
display:grid;
place-items:center;
transition:.12s ease;
z-index: 2;
}
.viewer .btn:hover{
background: rgba(0,0,0,.55);
border-color: rgba(255,255,255,.35);
}
.viewer .btn.prev{ left: 12px; }
.viewer .btn.next{ right: 12px; }
.thumbs{
display:flex;
gap: 10px;
overflow:auto;
padding: 6px 2px;
scroll-behavior:smooth;
max-width: 100%;
}
.thumbs::-webkit-scrollbar{ height: 10px; }
.thumbs::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.12); border-radius: 999px; }
.thumb{
border: 1px solid rgba(255,255,255,.16);
background: rgba(0,0,0,.35);
border-radius: 14px;
overflow:hidden;
cursor:pointer;
flex: 0 0 auto;
width: 120px;
height: 78px;
position: relative;
}
.thumb img{
width:100%;
height:100%;
object-fit: cover;
display:block;
opacity:.92;
}
.thumb.active{
border-color: rgba(122,184,255,.60);
box-shadow: 0 0 0 3px rgba(122,184,255,.16);
}
.boat-head{
display:flex;
align-items:flex-end;
justify-content:space-between;
flex-wrap:wrap;
gap: 10px;
margin-bottom: 8px;
}
.boat-head h2{
margin:0;
font-size: 26px;
}
.boat-head .meta{
color: var(--muted);
font-size: 14px;
}
/* chips */
.chips{
display:flex;
gap: 8px;
flex-wrap:wrap;
margin-top: 10px;
}
.chip{
border: 1px solid rgba(255,255,255,.16);
background: rgba(255,255,255,.06);
color: var(--text);
border-radius: 999px;
padding: 6px 10px;
font-size: 13px;
}
.backrow{
display:flex;
justify-content:space-between;
align-items:center;
gap: 10px;
flex-wrap:wrap;
margin-bottom: 14px;
}
.backrow button{
border: 1px solid rgba(255,255,255,.18);
background: rgba(255,255,255,.06);
color: var(--text);
padding: 10px 12px;
border-radius: 14px;
cursor:pointer;
}
.backrow button:hover{
background: rgba(255,255,255,.09);
border-color: rgba(255,255,255,.28);
}
/* =========================================================
✅ MOBILE kolejność: frame -> sidebar
========================================================= */
@media (max-width: 900px){
.panel{
display:flex;
flex-direction:column;
gap: 14px;
}
.frame{ order: 1; min-height: unset; }
.sidebar{ order: 2; }
.frame-inner{ padding: 16px; }
:root{ --tile-h: 104px; }
}
/* =========================================================
✅ FULLSCREEN LIGHTBOX
========================================================= */
.lightbox{
position: fixed;
inset: 0;
background: rgba(0,0,0,.88);
backdrop-filter: blur(3px);
z-index: 9999;
display: none;
align-items: center;
justify-content: center;
padding: 14px;
}
.lightbox.open{ display: flex; }
.lightbox img{
max-width: min(1200px, 96vw);
max-height: 92vh;
width: auto;
height: auto;
object-fit: contain;
border-radius: 14px;
border: 1px solid rgba(255,255,255,.16);
box-shadow: 0 20px 70px rgba(0,0,0,.65);
background: rgba(0,0,0,.35);
}
/* przyciski w lightbox */
.lb-btn{
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 52px;
height: 52px;
border-radius: 999px;
border: 1px solid rgba(255,255,255,.22);
background: rgba(0,0,0,.35);
color: var(--text);
cursor: pointer;
display: grid;
place-items: center;
font-size: 26px;
user-select: none;
}
.lb-btn:hover{ background: rgba(0,0,0,.55); border-color: rgba(255,255,255,.35); }
.lb-prev{ left: 14px; }
.lb-next{ right: 14px; }
.lb-close{
position: absolute;
top: 14px;
right: 14px;
width: 44px;
height: 44px;
border-radius: 999px;
border: 1px solid rgba(255,255,255,.22);
background: rgba(0,0,0,.35);
color: var(--text);
cursor: pointer;
display: grid;
place-items: center;
font-size: 22px;
}
.lb-close:hover{ background: rgba(0,0,0,.55); border-color: rgba(255,255,255,.35); }
.lb-hint{
position: absolute;
bottom: 14px;
left: 50%;
transform: translateX(-50%);
font-size: 12px;
color: rgba(255,255,255,.70);
padding: 6px 10px;
border-radius: 999px;
border: 1px solid rgba(255,255,255,.14);
background: rgba(0,0,0,.30);
}