/* CSS 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,
b, 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,
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 { box-sizing: border-box; -webkit-font-smoothing: antialiased; height: 100%; font-size: 16px; }
*, *:before, *:after { box-sizing: inherit; }
body { min-height: 100vh; line-height: 1.5; background: #fff; color: #151821; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul, ol { list-style: none; }

/* BASE TYPOGRAPHY */
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #fff;
  color: #151821;
  font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  color: #101010;
  line-height: 1.13;
  letter-spacing: -1px;
}
h1 { font-size: 2.75rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 13px; font-weight: 700; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
p, blockquote, li { font-size: 1.0625rem; color: #212329; line-height: 1.68; margin-bottom: 12px; }
strong { font-weight: 700; }
em { color: #606060; font-style: italic; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
}

/* LAYOUT CONTAINERS & SPACING */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 800px) {
  .content-wrapper {
    gap: 32px;
  }
}

/* FLEXBOX: CARD GRID & FEATURE, PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(35,36,37,0.06), 0 1.5px 6px rgba(0,0,0,.015);
  transition: box-shadow 0.2s, border 0.2s;
}
.card:hover {
  box-shadow: 0 8px 36px rgba(20,20,20,0.13), 0 2.5px 8px rgba(0,0,0,.07);
  border-color: #15325060;
  z-index: 1;
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fafafd;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(15,20,40,0.09);
  margin-bottom: 20px;
  flex: 1 1 320px;
  border: 1px solid #e3e6ef;
}
.testimonial-card blockquote {
  font-size: 1.15rem;
  color: #111;
  font-style: italic;
  margin: 0;
}
.testimonial-card p {
  color: #48494c;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}
.trust-note {
  color: #555;
  margin-top: 10px;
  font-size: 1rem;
  font-style: italic;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features ul, .about-values ul, .samochody-features ul, .privacy-features ul, .gdpr-features ul, .regulamin-features ul, .cookies-features ul, .oferta-services ul, .services-home ul, .kontakt-details ul, .kontakt-hours ul, .faq-list ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.features ul li,
.about-values ul li,
.samochody-features ul li,
.privacy-features ul li,
.cookies-features ul li,
.oferta-services ul li,
.services-home ul li,
.kontakt-details ul li,
.kontakt-hours ul li,
.faq-list ul li,
.gdpr-features ul li,
.regulamin-features ul li {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #ebebea;
  color: #191b21;
  font-size: 1.05rem;
  transition: box-shadow 0.19s, border 0.2s;
}
.features ul li img, .about-values ul li img, .samochody-features ul li img {
  width: 28px;
  flex-shrink: 0;
  filter: grayscale(1) contrast(1.7) brightness(0.8);
}

/* HERO/SECTION BACKGROUNDS */
.hero, .about-hero, .oferta-hero, .samochody-hero, .cennik-hero, .faq-hero, .kontakt-hero, .privacy-hero, .gdpr-hero, .cookies-hero, .regulamin-hero, .thankyou-hero {
  background: #101114;
  color: #fff;
  padding-top: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid #eee;
}
.hero .cta-btn,
.about-hero .cta-btn,
.oferta-hero .cta-btn,
.samochody-hero .cta-btn,
.cennik-hero .cta-btn,
.faq-hero .cta-btn,
.kontakt-hero .cta-btn {
  margin-top: 12px;
}

.section:not(.hero):not(.about-hero):not(.oferta-hero):not(.samochody-hero):not(.cennik-hero):not(.faq-hero):not(.kontakt-hero):not(.privacy-hero):not(.gdpr-hero):not(.cookies-hero):not(.regulamin-hero):not(.thankyou-hero) {
  background: #f6f7f9;
  border-radius: 22px;
  box-shadow: 0 2px 14px rgba(20,20,20,.03);
}

/* BUTTONS & LINKS */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #101114;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 13px 32px;
  border-radius: 99px;
  font-size: 1.13rem;
  font-weight: 700;
  border: 2px solid #101114;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(22,22,22,0.08);
  transition: background 0.18s, color 0.18s, border 0.15s, box-shadow 0.21s;
  cursor: pointer;
  margin-right: 10px;
  margin-top: 10px;
  text-align: center;
}
.cta-btn:hover, .cta-btn:focus {
  background: #fff;
  color: #101114;
  border: 2px solid #2EB4D6;
  box-shadow: 0 0 0 2px #2EB4D622;
}
.cta-btn.outlined {
  background: #fff;
  color: #101114;
  border: 2px solid #101114;
}
.cta-btn.outlined:hover, .cta-btn.outlined:focus {
  color: #fff;
  background: #101114;
}
.main-nav a {
  color: #222;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  margin: 0 16px;
  display: inline-block;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.14s;
  font-size: 1rem;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #2EB4D6;
  text-decoration: underline;
}
.footer-nav a {
  margin: 0 9px;
  color: #848484;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.15s;
}
.footer-nav a:hover { color: #2EB4D6; }
.mobile-nav a {
  color: #101114;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 24px;
  width: 100%;
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid #ececff;
  transition: color 0.17s, background 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F7F7FA;
  color: #2EB4D6;
}

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  background: #fff;
  border-radius: 13px;
  overflow: hidden;
  font-family: 'Roboto', Arial, sans-serif;
}
th, td {
  padding: 15px;
  border-bottom: 1px solid #eef0f3;
  text-align: left;
  font-size: 1.05rem;
  color: #151821;
}
th {
  background: #F7F7FA;
  font-size: 1.1rem;
  font-weight: 700;
  color: #090B10;
}
tr:last-child td { border-bottom: none; }

/* HEADER & NAV */
header {
  background: #fff;
  border-bottom: 1px solid #ececec;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 16px 0 10px 0;
}
.header-flex a img {
  max-height: 44px;
  vertical-align: middle;
  margin-right: 5px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 1100px) {
  .container { padding-left: 10px; padding-right: 10px; }
  .main-nav a { margin: 0 9px; }
}
@media (max-width: 900px) {
  .header-flex { gap: 12px; }
  .main-nav { gap: 3px; }
  .main-nav a { font-size: 0.97rem; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .cta-btn { padding: 11px 23px; font-size: 0.99rem; }
}

/* FOOTER */
footer {
  background: #101114;
  padding: 36px 0 18px 0;
  color: #e6e6eb;
  font-size: 1rem;
  border-top: 1px solid #eee;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
  justify-content: space-between;
}
.footer-flex > * { margin-bottom: 10px; }
.footer-flex a img {
  width: 44px;
  margin-bottom: 6px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
@media (max-width: 768px) {
  .footer-flex { flex-direction: column; gap: 12px; align-items: flex-start; }
  .footer-nav { flex-wrap: wrap; gap: 8px; }
}

/* HERO BUTTON PADDING FIX */
.hero .cta-btn,
.about-hero .cta-btn,
.oferta-hero .cta-btn,
.samochody-hero .cta-btn,
.cennik-hero .cta-btn,
.faq-hero .cta-btn,
.kontakt-hero .cta-btn,
.thankyou-hero .cta-btn {
  margin-top: 24px;
}

/* ACCORDION (FAQ) */
.faq-accordion > div {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(10,10,10,.05);
  border: 1px solid #e4e6ef;
  margin-bottom: 20px;
  padding: 23px 24px 14px 22px;
  transition: box-shadow 0.14s, border 0.18s;
}
.faq-accordion h3 {
  margin-bottom: 7px;
  cursor: pointer;
  color: #153250;
}
.faq-accordion p { margin-bottom: 0; color: #212329; font-size: 1rem; }
.faq-accordion > div:hover {
  box-shadow: 0 4px 16px rgba(22,60,100,0.07);
  border-color: #2EB4D6;
  z-index: 2;
}

/* SERVICE PRICING */
.service-price {
  display: inline-block;
  background: #F7F7FA;
  color: #1b1c20;
  font-size: 1rem;
  font-weight: 600;
  padding: 4px 15px;
  border-radius: 999px;
  margin-top: 5px;
  margin-left: 5px;
  letter-spacing: 0.01em;
}

/* MAP SNIPPET (Kontakt) */
.map-snippet {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fafbfc;
  border-radius: 13px;
  border: 1px solid #e6e9ec;
  padding: 13px;
  margin-top: 10px;
}
.map-snippet img { width: 60px; }
.map-snippet p { margin-bottom: 0; font-size: 1.08rem; }

/* RESPONSIVE: MOBILE FIRST */
@media (max-width: 768px) {
  .container { padding-left: 8px; padding-right: 8px; }
  .section { margin-bottom: 30px; padding: 23px 7px; }
  .content-wrapper { gap: 12px; }
  .footer-flex { gap: 8px; padding-bottom: 14px; }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.15rem; }
  .main-nav { display: none !important; }
}

/* MOBILE TOGGLE BUTTON */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #153250;
  cursor: pointer;
  z-index: 1001;
  margin-left: 7px;
  padding: 8px 10px;
  transition: background 0.18s, color 0.17s;
  border-radius: 6px;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #153250;
  color: #fff;
}
@media (max-width: 1024px) {
  .mobile-menu-toggle { display: flex; align-items: center; }
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #fff;
  z-index: 2000;
  box-shadow: 0 2px 40px 0 rgba(17,31,51,.22);
  display: flex;
  flex-direction: column;
  gap: 0;
  transform: translateX(-104vw);
  transition: transform 0.36s cubic-bezier(.77,.05,.87,.62);
  will-change: transform;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0 4px 64px 2px #0002;
}
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 22px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #153250;
  cursor: pointer;
  z-index: 2100;
  padding: 6px 13px;
  border-radius: 8px;
  transition: background 0.19s, color 0.22s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #2EB4D6;
  color: #fff;
}
.mobile-nav {
  padding: 80px 28px 18px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
}
.mobile-nav a:first-child { border-top: 1px solid #ececff; }

@media (max-width: 500px) {
  .mobile-nav {
    padding: 80px 8px 18px 8px;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #0C0C0D;
  color: #fff;
  width: 100vw;
  z-index: 3000;
  box-shadow: 0 -2px 28px 0 rgba(17,34,44,.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 19px 28px 19px 18px;
  font-size: 1.04rem;
  letter-spacing: .01em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.33s, transform 0.36s cubic-bezier(.77,.05,.87,.62);
}
.cookie-banner.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner .cookie-text {
  flex: 1 1 230px;
  max-width: 560px;
  color: #fff;
  font-size: 1rem;
  margin-right: 19px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  background: #fff;
  color: #153250;
  border: none;
  font-family: 'Montserrat',Arial,sans-serif;
  font-size: 1.07rem;
  font-weight: 700;
  border-radius: 99px;
  padding: 8px 24px;
  box-shadow: 0 1.5px 6px rgba(30,50,71,0.10);
  transition: background 0.16s, color 0.19s, box-shadow 0.15s;
  cursor: pointer;
}
.cookie-btn.primary { background: #2EB4D6; color: #fff; }
.cookie-btn.danger { background: #fff; color: #A11111; border: 1.3px solid #D81020; }
.cookie-btn.settings { background: #fff; color: #153250; border: 1.2px solid #153250; }
.cookie-btn:hover, .cookie-btn:focus {
  background: #153250;
  color: #fff;
  box-shadow: 0 3px 15px 0 #0002;
}

@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 15px 7px; font-size:0.97rem; gap: 7px; }
  .cookie-banner .cookie-text { margin-right: 0; font-size: 0.97rem; }
}

/* COOKIE SETTINGS MODAL */
#cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 4000;
  background: rgba(10,10,14,0.68);
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeInModal 0.32s;
}
#cookie-modal.active {
  display: flex;
}
@keyframes fadeInModal {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-window {
  background: #fff;
  color: #191b21;
  border-radius: 14px;
  max-width: 430px;
  width: 100%;
  padding: 33px 36px 23px 36px;
  box-shadow: 0 5px 28px 0 rgba(17,34,44,.21);
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 17px;
  position: relative;
}
.cookie-modal-window h2 {
  font-size: 1.35rem;
  color: #101114;
  margin-bottom: 11px;
}
.cookie-modal-options {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.cookie-pref-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 7px 0;
  font-size: 1.08rem;
}
.cookie-switch {
  appearance: none;
  width: 39px;
  height: 21px;
  border-radius: 99px;
  background: #e7e9ee;
  position: relative;
  outline: none;
  transition: background .19s;
  cursor: pointer;
}
.cookie-switch:checked {
  background: #2EB4D6;
}
.cookie-switch:after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 15px; height: 15px;
  background: #fff;
  border-radius: 50%;
  transition: left .20s;
}
.cookie-switch:checked:after {
  left: 21px;
}
.cookie-pref-always {
  font-style: italic;
  color: #646466;
  font-size: 0.96rem;
}
.cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 15px;
  justify-content: flex-end;
}
.cookie-modal-close {
  position: absolute;
  top: 13px;
  right: 16px;
  font-size: 1.7rem;
  background: none;
  border: none;
  color: #2EB4D6;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F7F7FA;
  color: #153250;
}
@media (max-width: 500px) {
  .cookie-modal-window { max-width: 96vw; padding: 22px 10px 11px 10px; }
}

/* MONOCHROME-SOPHISTICATED FLAIR: */
body, .section, .container, main, .footer-flex, .header-flex {
  background: #fff;
}
.hero, .about-hero, .oferta-hero, .samochody-hero, .cennik-hero, .faq-hero, .kontakt-hero, .privacy-hero, .gdpr-hero, .cookies-hero, .regulamin-hero, .thankyou-hero {
  background: #101114;
  color: #fff;
}
.section {
  box-shadow: 0 2px 16px rgba(30,32,35,0.04);
}
@media (max-width: 768px) {
  .section { border-radius: 9px; }
}

/* SUBTLE ANIMATIONS & INTERACTIONS */
.card, .testimonial-card, .features ul li, .about-values ul li, .samochody-features ul li, .privacy-features ul li, .gdpr-features ul li, .regulamin-features ul li {
  transition: box-shadow 0.22s, border 0.17s, background 0.17s, color 0.13s;
}
.card:hover, .testimonial-card:hover, .features ul li:hover, .about-values ul li:hover, .samochody-features ul li:hover, .privacy-features ul li:hover {
  box-shadow: 0 8px 40px 0 #1a1a2150;
  background: #f9fafc;
  border-color: #15325033;
}

.cta-btn:active, .cookie-btn:active, .mobile-menu-toggle:active {
  box-shadow: 0 2px 10px #672eb41c;
  color: #2EB4D6;
}

/* MISCELLANEOUS */
::-webkit-scrollbar { width: 11px; background: #fafbfc; }
::-webkit-scrollbar-thumb { background: #e6e7e8; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #d2d7e0; }
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid #2EB4D6;
  outline-offset: 1.5px;
}

/**** CRITICAL: REMOVE OVERLAP, ENSURE GAPS IN FLEXBOX ****/
.card-container > *, .content-grid > *, .footer-flex > *, .features ul > *, .oferta-services ul > *, .testimonial-card + .testimonial-card {
  margin-bottom: 0 !important;
}

/**** END OF CSS ****/
