/* RESET & NORMALIZE */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  line-height: 1.6;
  background: #fff;
  color: #232323;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s;
}
a:focus {
  outline: 2px solid #0A3876;
  outline-offset: 2px;
}

/* COLOURS */
:root {
  --color-black: #111;
  --color-white: #fff;
  --color-gray-900: #232323;
  --color-gray-800: #333;
  --color-gray-700: #444;
  --color-gray-500: #8c939d;
  --color-gray-300: #dadbdd;
  --color-gray-100: #f5f7fa;
  --primary: #0A3876;
  --secondary: #55C2C3;
  --accent: #F5F7FA;
}

/* TYPOGRAPHY */
body, .body-text {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  color: var(--color-gray-900);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  text-rendering: optimizeLegibility;
  color: var(--color-black);
}
h1 { font-size: 2.5rem; letter-spacing: -2px; margin-bottom: 24px; }
h2 { font-size: 2rem; letter-spacing: -1px; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 16px; }
h4, h5, h6 { font-size: 1.125rem; margin-bottom: 12px; }
.text-section p, .text-section ul, .text-section li {
  color: var(--color-gray-800);
  font-size: 1rem;
  line-height: 1.8;
}
strong { font-weight: 700; }
ul, ol {margin-left: 1.5em; margin-bottom: 20px;}
ul { list-style-type: disc; }
ol { list-style-type: decimal; }
ul li, ol li { margin-bottom: 0.7em; }

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
/* SECTION SPACING */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section, section { padding: 28px 0 28px 0; }
}

/* HEADER */
header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-300);
  box-shadow: 0 2px 8px rgba(17,17,17, 0.02);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 80px;
}
.logo img {
  height: 38px;
  display: block;
}
/* MAIN NAV */
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--color-black);
  opacity: 0.85;
  padding: 8px 10px;
  border-radius: 5px;
  transition: background .19s, color .22s, opacity .19s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-gray-100);
  opacity: 1;
}
/* HEADER BUTTON */
.btn.btn-primary {
  background: var(--color-black);
  color: var(--color-white);
  border-radius: 8px;
  padding: 11px 26px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  border: none;
  transition: background .19s, box-shadow .17s, color .19s;
  cursor: pointer;
  box-shadow: 0 2px 14px rgba(10,56,118,0.08);
}
.btn.btn-primary:hover, .btn.btn-primary:focus {
  background: var(--primary);
  color: var(--color-white);
  box-shadow: 0 4px 24px rgba(10,56,118,0.15);
}
.btn.btn-secondary {
  background: var(--color-white);
  color: var(--color-black);
  border: 2px solid var(--color-black);
  border-radius: 8px;
  padding: 11px 26px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  transition: background .18s, color .18s, box-shadow .19s;
  cursor: pointer;
  margin-left: 18px;
}
.btn.btn-secondary:hover, .btn.btn-secondary:focus {
  background: var(--color-gray-100);
  color: var(--primary);
  border-color: var(--primary);
}
/* HAMBURGER BUTTON */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-black);
  cursor: pointer;
  border-radius: 6px;
  padding: 6px 10px;
  transition: background .17s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-gray-100);
}
/* HIDE ON DESKTOP */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .btn.btn-primary { margin-left: auto; }
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-white);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.87,.21,.44,1.08);
  z-index: 50;
  box-shadow: -4px 0 24px rgba(10,56,118,0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px 22px 22px 22px;
  gap: 34px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.05rem;
  color: var(--color-black);
  align-self: flex-end;
  margin-bottom: 16px;
  cursor: pointer;
  border-radius: 6px;
  transition: background .19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-gray-100);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.14rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 13px 6px;
  color: var(--color-black);
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--primary);
  color: var(--color-white);
}

/* HERO SECTION */
.hero {
  background: var(--color-black);
  color: var(--color-white);
  margin-bottom: 60px;
  padding: 60px 0 60px 0;
  display: flex;
  align-items: center;
}
.hero .container { min-height: 350px; }
.hero h1 {
  color: #fff;
  font-size: 2.8rem;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -2px;
}
.hero p {
  color: #eaeaea;
  margin-bottom: 30px;
  font-size: 1.23rem;
  max-width: 480px;
}
.hero .btn {
  margin-top: 8px;
}

/* FEATURES SECTION */
.features {
  background: var(--color-white);
  margin-bottom: 60px;
}
.features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
  margin-bottom: 10px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--accent);
  border-radius: 18px;
  padding: 28px 20px 22px 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
  min-width: 210px;
  flex: 1 1 220px;
  transition: box-shadow .19s, transform .23s;
}
.feature-item img {
  width: 48px;
  height: 48px;
  filter: grayscale(1);
  opacity: 0.78;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 8px 30px rgba(10,56,118,0.10);
  transform: translateY(-3px) scale(1.02);
}
.feature-item h3 { font-size: 1.15rem; color: var(--color-black); margin-bottom: 8px; }
.feature-item p { font-size: 1rem; color: var(--color-gray-800); }

/* HOW IT WORKS / STEPS */
.how-it-works, .steps {
  background: var(--color-gray-100);
  margin-bottom: 60px;
  border-radius: 20px;
  box-shadow: 0 3px 12px rgba(17,17,17,0.04);
}
.how-it-works h2, .steps h1 {
  color: var(--color-black);
  margin-bottom: 16px;
}
.how-it-works ol, .steps ol {
  margin-bottom: 18px;
  margin-left: 1.5em;
  color: var(--color-gray-800);
  font-size: 1.1rem;
}
.how-it-works p, .how-it-works li, .steps p, .steps li {
  font-size: 1rem;
}
.how-it-works .btn,
.steps .btn {
  margin-top: 20px;
}

/* FLEET PREVIEW (index) & SERVICES (flota) */
.fleet-preview, .services {
  margin-bottom: 60px;
  background: var(--color-white);
}
.fleet-preview ul, .services ul {
  margin-left: 1.5em;
  font-size: 1.06rem;
  color: var(--color-gray-700);
  margin-bottom: 12px;
  line-height: 1.7;
}
.fleet-preview h2,
.services h1 {
  margin-bottom: 18px;
}

/* TESTIMONIALS */
.testimonials {
  background: var(--color-gray-100);
  border-radius: 20px;
  margin-bottom: 60px;
  padding-top: 54px;
  padding-bottom: 54px;
}
.testimonials h2 {
  text-align: left;
  color: var(--color-black);
  margin-bottom: 24px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(10,56,118,0.08);
  margin-bottom: 20px;
  max-width: 650px;
  border-left: 4px solid var(--primary);
  transition: box-shadow .18s, transform .2s;
}
.testimonial-card p {
  margin-bottom: 0;
  font-size: 1.09rem;
  color: var(--color-gray-900);
}
.testimonial-card span {
  color: var(--primary);
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.99rem;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 30px rgba(10,56,118,0.13);
  transform: translateY(-2px) scale(1.01);
}

/* CTA BANNER */
.cta-banner {
  background: var(--color-black);
  color: var(--color-white);
  border-radius: 18px;
  margin-bottom: 60px;
  box-shadow: 0 6px 28px rgba(10,56,118,0.10);
  padding-top: 48px;
  padding-bottom: 48px;
}
.cta-banner h2 { letter-spacing: -1px; margin-bottom: 12px; color: #fff; }
.cta-banner p { margin-bottom: 26px; color: #e0e0e0; }

/* CARD STYLES */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 3px 22px rgba(0,0,0,0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 22px 20px;
  transition: box-shadow .18s, transform .2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 30px rgba(10,56,118,0.11);
  transform: translateY(-2px) scale(1.01);
}

/* CONTENT GRID */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* PRICE LIST / TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: var(--color-white);
  border-radius: 14px;
  overflow: hidden;
  font-size: 0.99rem;
  box-shadow: 0 3px 18px rgba(17,17,17,0.06);
}
thead {
  background: var(--color-black);
  color: var(--color-white);
}
th, td {
  padding: 15px 14px;
  text-align: left;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.01rem;
}
tbody tr {
  border-bottom: 1px solid var(--color-gray-300);
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover {
  background: var(--color-gray-100);
}

/* BUTTONS */
.btn {
  display: inline-block;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  text-align: center;
  transition: background .18s, color .19s, box-shadow .16s, border-color .19s, transform .18s;
  outline: none;
  min-width: 120px;
}
.btn:active {
  transform: scale(.97);
}
.btn:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* TEXT-IMAGE FLEX WRAP */
@media (max-width: 768px) {
  .text-image-section,
  .content-grid,
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
}

/* FOOTER */
footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 55px 0 28px 0;
  border-top: 1px solid var(--color-gray-300);
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin: 14px 0;
}
.footer-nav a {
  font-size: 0.98rem;
  color: var(--color-white);
  opacity: 0.78;
  transition: color .16s, opacity .16s;
  padding: 6px 3px;
  border-radius: 4px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--secondary);
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
  font-size: 0.95rem;
}
.footer-contact img {
  width: 20px;
  vertical-align: middle;
  margin-right: 6px;
  filter: grayscale(1) brightness(3.5);
  opacity: 0.74;
}
footer img {
  height: 38px;
  margin-bottom: 5px;
}
footer small {
  color: #bbb;
  font-size: 0.92rem;
  margin-top: 8px;
}

/* About Page - Team Section */
.team ul {
  margin-left: 1.2em;
  color: var(--color-gray-800);
  font-size: 1.06rem;
  line-height: 1.6;
}
.team li { margin-bottom: 12px; }

/* Kontakt (contact) styles */
.contact-information ul, .business-hours ul {
  margin-left: 1.2em;
  color: var(--color-gray-800);
  font-size: 1.05rem;
}
.contact-information li { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.contact-information img {
  width: 22px; opacity: 0.54; filter: grayscale(1);
}
.map img {
  width: 22px; opacity: .43; filter: grayscale(1);
  vertical-align: middle;
  margin-right: 7px;
}

/* POLICY section */
.policy .text-section {
  max-width: 800px;
}
.policy ul { margin-bottom: 16px; }
.policy h2 { margin-top: 22px; font-size: 1.29rem; color: var(--color-black); }
.policy p { font-size: 1.03rem; }

/* SEARCH PAGE (wyszukiwarka) styles */
.search .filters ul {
  margin-left: 1.2em;
  color: var(--color-gray-800);
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.search .btn { margin-top: 22px; }

/* THANK YOU/CONFIRMATION */
.confirmation {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-gray-100);
  border-radius: 18px;
  margin-top: 50px;
  box-shadow: 0 2px 16px rgba(10,56,118,0.06);
}
.confirmation h1 {text-align: center; margin-bottom: 24px;}
.confirmation .btn { margin-top: 32px; }

/* FAQ */
.faq .text-section h3 {
  margin-bottom: 7px;
  color: var(--color-black);
  font-size: 1.04rem;
  font-weight: 600;
}
.faq .text-section p { margin-bottom: 13px; }

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: var(--color-black);
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 25px;
  justify-content: center;
  z-index: 200;
  padding: 22px 32px 22px 32px;
  box-shadow: 0 -2px 16px rgba(10,56,118,0.11);
  animation: cookieSlideIn .82s cubic-bezier(.62,.01,.26,1.19);
  font-size: 1rem;
}
@keyframes cookieSlideIn {
  from { transform: translateY(140%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin-bottom: 0;
  color: #fff;
  max-width: 440px;
  font-size: 1rem;
}
.cookie-banner .cookie-buttons {
  display: flex; flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cookie-banner .btn {
  min-width: 112px;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 0.99rem;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-banner .btn {
  border: 1.5px solid var(--secondary);
}
.cookie-banner .btn.accept {
  background: var(--secondary);
  color: var(--color-black);
  border-color: var(--secondary);
  font-weight: 700;
}
.cookie-banner .btn.accept:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.cookie-banner .btn.reject {
  background: var(--color-black);
  color: #fff;
  border-color: #fff;
  font-weight: 600;
}
.cookie-banner .btn.reject:hover {
  background: #fff;
  color: var(--color-black);
  border-color: var(--color-black);
}
.cookie-banner .btn.settings {
  background: var(--color-gray-800);
  color: #fff;
  border-color: var(--color-gray-800);
}
.cookie-banner .btn.settings:hover {
  background: var(--secondary);
  color: var(--color-black);
  border-color: var(--secondary);
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(30,30,38,0.58);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInCookie 0.27s linear;
}
@keyframes fadeInCookie {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(17,17,17,0.18);
  width: 95%;
  max-width: 420px;
  padding: 32px 30px 30px 30px;
  color: var(--color-black);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: popInCookie 0.36s cubic-bezier(.46,-0.01,.36,1.12);
}
@keyframes popInCookie {
  from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 { margin-top: 0; font-size: 1.21rem; font-weight: 700; }
.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.99rem;
  border-bottom: 1px solid var(--color-gray-100);
}
.cookie-category:last-child{ border-bottom: none; }
.cookie-category label {
  font-weight: 500;
  color: var(--color-black);
  cursor: pointer;
}
.cookie-category .toggle {
  width: 40px; height: 22px;
  border-radius: 16px;
  border: none;
  background: var(--color-gray-300);
  position: relative;
  margin-left: 8px;
  cursor: pointer;
  transition: background .18s;
}
.cookie-category .toggle.on {
  background: var(--secondary);
}
.cookie-category .toggle:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left .18s;
}
.cookie-category .toggle.on:before {
  left: 21px;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 15px;
}
.cookie-modal-actions .btn { width: 45%;}
.cookie-modal-close {
  position: absolute;
  right: 21px; top: 17px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-gray-800);
  cursor: pointer;
}
.cookie-modal-close:hover {
  color: var(--primary);
}

/* RESPONSIVE: MOBILE FIRST, SCALE UP */
@media (max-width: 1100px) {
  .container {
    padding: 0 12px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 750px;
  }
  .footer-nav { flex-direction: column; gap: 10px; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  header .container { padding: 0 8px; }
  .content-wrapper { gap: 13px; }
  .hero { padding: 40px 0 45px 0; }
  .cta-banner, .testimonials, .how-it-works, .steps { padding: 20px 0; }
  .feature-grid, .features .feature-grid { gap: 16px; }
  .feature-item {
    min-width: 0;
    width: 100%;
    padding: 20px 12px 14px 12px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 17px 11px;
    border-left: 3px solid var(--primary);
    font-size: 0.98rem;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .btn { min-width: 105px; font-size: 1rem; }
  .policy .text-section { padding: 0 2px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 1.6rem; }
  .container { padding: 0 6px; }
  .cta-banner { padding: 22px 5px 25px 5px; border-radius: 10px; }
  .testimonials { border-radius: 10px; }
  .how-it-works, .steps { border-radius: 10px; }
  .cookie-banner { padding: 15px 6px; flex-direction: column; gap: 10px; align-items: flex-start; }
  .cookie-modal { padding: 19px 8px 18px 13px; }
}

/* Micro-interactions: links, images */
a:not(.btn):hover, a:not(.btn):focus {
  color: var(--secondary);
  text-decoration: underline;
}
img, svg { max-width: 100%; height: auto; display: block; }

/* OVERRIDES -- NEVER GRID OR COLUMNS! */
/* All layouts handled by display: flex as above! */
