/* Falcon Poradnik Kierowcy - style.css | Vibrant Energetic Theme | Only Flexbox Layouts Used */

/* 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;
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  background: #F4F6FB;
  font-family: 'Roboto', Arial, sans-serif;
  color: #16324F;
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
a {
  color: #1273EB;
  text-decoration: none;
  transition: color .18s;
}
a:hover, a:focus {
  color: #F5C144;
  outline: none;
}
ul, ol {
  list-style: none;
  padding-left: 0;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: background 0.15s, color 0.15s, box-shadow .15s;
}

/* COLOR VARIABLES (WITH FALLBACKS) */
:root {
  --primary: #16324F;
  --secondary: #F4F6FB;
  --accent: #F5C144;
  --electric-blue: #1273EB;
  --electric-coral: #FF3864;
  --electric-green: #20E253;
  --white: #fff;
  --black: #141824;
  --grey: #e6eaf2;
  --shadow-card: 0 6px 24px 0 rgba(22,50,79,0.11);
  --shadow-hover: 0 8px 30px 0 rgba(22,50,79,0.18);
  --radius-main: 16px;
  --radius-pill: 999px;
}

/* FONTS */
@import url('https://fonts.googleapis.com/css?family=Oswald:400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
h1, h2, h3, h4 {
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
h1 {
  font-size: 2.8rem;
  color: var(--primary);
  line-height: 1.18;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(245,193,68,0.09);
}
h2 {
  font-size: 2rem;
  color: var(--electric-blue);
  margin-bottom: 18px;
  text-transform: uppercase;
}
h3 {
  font-size: 1.325rem;
  color: var(--electric-coral);
  margin-bottom: 8px;
}
p, li, address {
  font-size: 1.04rem;
  color: var(--primary);
  margin-bottom: 8px;
}
strong {
  font-weight: 700;
  color: var(--primary);
}

/* CONTAINER & WRAPPERS */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* SECTION SPACING PATTERN */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: var(--secondary);
  position: relative;
}
@media (max-width: 768px) {
  section {
    padding: 24px 0;
    margin-bottom: 36px;
  }
}

/* Cards & Grids (Flexbox only!) */
.card-container, .feature_grid, .safety_tips_grid, .tests_grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
}
.card, .feature_grid li, .safety_tips_grid li, .tests_grid li {
  background: var(--white);
  border-radius: var(--radius-main);
  padding: 28px 24px 24px 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.14s;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.card:hover, .feature_grid li:hover, .safety_tips_grid li:hover, .tests_grid li:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-7px) scale(1.015);
}
.card img, .feature_grid li img, .safety_tips_grid li img, .tests_grid li img {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
}
@media (max-width: 850px) {
  .card-container, .feature_grid, .safety_tips_grid, .tests_grid {
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .card, .feature_grid li, .safety_tips_grid li, .tests_grid li {
    padding: 16px 12px 16px 12px;
    border-radius: 11px;
  }
}

/* Content Grid Utility */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Feature Item Utility */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Testimonial Card Pattern */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 20px;
  background: var(--white);
  border-radius: var(--radius-main);
  box-shadow: 0 4px 16px 0 rgba(22,50,79,0.15);
  transition: box-shadow 0.22s;
  border-left: 7px solid var(--accent);
  max-width: 610px;
}
.testimonial-card p {
  color: #1b263b;
  font-size: 1.11rem;
  font-style: italic;
  margin-bottom: 0;
}
.testimonial-card strong {
  color: var(--electric-blue);
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1rem;
  margin-top: 6px;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-hover);
}

/* BUTTONS */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 14px 32px;
  margin-top: 6px;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s, transform 0.12s;
  box-shadow: 0 2px 12px 0 rgba(255,56,100,0.11);
  outline: none;
}
.btn-primary {
  background: var(--electric-coral);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(255,56,100,0.12);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--electric-blue);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(18,115,235,.19);
  transform: translateY(-2px) scale(1.025);
}
.btn-secondary {
  background: var(--electric-blue);
  color: var(--white);
  margin-left: 10px;
  box-shadow: 0 2px 10px rgba(18,115,235,0.10);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 2px 16px rgba(245,193,68,.15);
  transform: translateY(-1.5px) scale(1.035);
}

button[disabled], .btn-primary[disabled], .btn-secondary[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

/* CATEGORY FILTERS */
.category_filters {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}
.category_filters span {
  font-weight: 700;
  color: var(--primary);
  margin-right: 8px;
}
.category_filters button {
  padding: 9px 24px;
  background: var(--white);
  border: 2px solid var(--electric-blue);
  border-radius: var(--radius-pill);
  color: var(--electric-blue);
  text-transform: uppercase;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: .04em;
  transition: background 0.17s, color 0.18s;
}
.category_filters button:hover, .category_filters button:focus {
  background: var(--electric-blue);
  color: var(--white);
}

/* NAVIGATION BAR */
header {
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 14px 0 rgba(18,115,235,0.08);
  position: sticky;
  top: 0;
  z-index: 1002;
}
nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 0 24px;
  min-height: 78px;
  box-sizing: border-box;
  gap: 24px;
  background: transparent;
}
nav > a:first-child img {
  height: 50px;
  width: auto;
  margin-right: 22px;
}
nav ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-right: 22px;
}
nav ul li a {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.02rem;
  padding: 8px 18px;
  border-radius: var(--radius-main);
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 500;
  transition: background 0.17s, color 0.18s;
}
nav ul li a:hover, nav ul li a:focus {
  background: var(--accent);
  color: var(--white);
}
nav .btn-primary {
  margin-left: auto;
  margin-right: 0;
}

/* MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 22px;
  top: 17px;
  z-index: 1102;
  background: var(--electric-coral);
  color: var(--white);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 2rem;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px 0 rgba(255,56,100,.10);
  transition: background .15s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--electric-blue);
  color: var(--white);
}
@media (max-width: 1024px) {
  nav ul {
    display: none;
  }
  nav .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  position: fixed;
  display: flex;
  flex-direction: column;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  box-shadow: 0 6px 36px rgba(22,50,79,0.26);
  z-index: 9999;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(.29,1.13,.55,1);
  opacity: 0.992;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 30px;
  font-size: 2.3rem;
  color: var(--electric-coral);
  background: transparent;
  border: none;
  z-index: 10000;
  transition: color 0.18s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: var(--electric-green);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 90px 0 0 0;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
}
.mobile-nav a {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 16px 0;
  width: 90vw;
  text-align: center;
  border-radius: var(--radius-main);
  background: transparent;
  transition: background 0.19s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--electric-coral);
  color: #fff;
  outline: none;
}

@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Main spacing and layout for sections */
div.container > div.content-wrapper > ul,
div.container > div.content-wrapper > .card-container {
  margin-top: 12px;
}
div.container > div.content-wrapper > ul > li,
div.container > div.content-wrapper > .card {
  margin-bottom: 20px;
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 36px 0 28px 0;
  box-shadow: 0 -2px 16px 0 rgba(18,115,235,0.06);
  margin-top: 30px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 22px;
  align-items: center;
  justify-content: center;
}
.footer-nav a {
  color: var(--accent);
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  transition: background .16s, color .16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--electric-coral);
  color: var(--white);
}
footer address {
  color: var(--white);
  font-size: 1rem;
  font-style: normal;
  text-align: center;
  opacity: 0.93;
  margin: 0 auto;
}
footer address a {
  color: var(--accent); text-decoration: underline; transition: color 0.13s;
}
footer address a:hover { color: var(--electric-blue); }

/* Utility - .card, .category, .feature_item etc */
.card, .feature_grid li, .safety_tips_grid li, .tests_grid li {
  border-left: 5px solid var(--electric-blue);
  background: linear-gradient(90deg, #fff 85%, #F5C14418 100%);
  min-width: 220px;
  flex: 1 1 280px;
  max-width: 360px;
}

/* Responsive Cards Grid */
@media (max-width: 850px) {
  .card, .feature_grid li, .safety_tips_grid li, .tests_grid li {
    max-width: 99%;
    min-width: 190px;
  }
}
@media (max-width: 600px) {
  .card, .feature_grid li, .safety_tips_grid li, .tests_grid li {
    min-width: 90%;
    margin-bottom: 18px;
  }
}

/* Lists in text sections */
.text-section ul,
div.content-wrapper > ul,
div.content-wrapper ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.text-section ul li {
  padding-left: 1.2em;
  position: relative;
  color: var(--primary);
}
.text-section ul li:before {
  content: '';
  position: absolute;
  left: 0.3em;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 100%;
  background: var(--electric-coral);
}

/* PAGE TITLES AND SPACING */
h1, h2, h3, h4 {
  margin-top: 0;
}
.content-wrapper h1 { margin-top: 0; }

/* Address and Info-lists */
div.content-wrapper > ul > li img {
  margin-right: 10px;
  vertical-align: middle;
  width: 24px;
  height: 24px;
  display: inline-block;
}
div.content-wrapper > ul > li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.07rem;
  margin-bottom: 7px;
}
@media (max-width: 600px) {
  div.content-wrapper > ul > li img {
    width: 20px;
    height: 20px;
  }
  .footer-nav a { font-size: 0.98rem; }
}

/* Vibrant underlines and accents in lists */
div.content-wrapper ul li a {
  color: var(--electric-blue);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.13s;
}
div.content-wrapper ul li a:hover {
  color: var(--electric-coral);
}

/* Section Variations: Vibrant Energetic flourishes */
section:nth-child(odd) {
  background: #fffefb;
}
section:nth-child(even) {
  background: #F4F6FB;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--primary);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 20px 18px 20px 18px;
  z-index: 10005;
  box-shadow: 0 0 20px 0 rgba(18,115,235,0.09);
  animation: cookieBannerSlideIn 0.75s cubic-bezier(.45,.99,.41,1.41);
}
@keyframes cookieBannerSlideIn {
  0% { transform: translateY(180px); opacity: 0;} 100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  color: var(--white);
  margin: 0 0 8px 0;
  text-align: center;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-banner .btn-primary,
.cookie-banner .btn-secondary {
  min-width: 120px;
  padding: 10px 22px;
  font-size: 1rem;
}
.cookie-banner .btn-secondary {
  background: var(--white);
  color: var(--electric-blue);
  border: 2px solid var(--electric-blue);
}
.cookie-banner .btn-secondary:hover {
  background: var(--electric-blue);
  color: var(--white);
}

/* Cookie Consent Modal Popup */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(22,50,79,0.69);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10006;
  animation: fadeInBg .24s ease;
}
@keyframes fadeInBg {
  from { opacity: 0;} to { opacity: 1;}
}
.cookie-modal-content {
  background: var(--white);
  border-radius: var(--radius-main);
  padding: 30px 28px 28px 28px;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 2px 32px 0 rgba(245,193,68,0.16);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  animation: modalPop 0.32s cubic-bezier(.4,1.35,.44,1);
}
@keyframes modalPop {
  0% { transform: scale(0.87) translateY(48px); opacity: 0;} 100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-content h3 {
  color: var(--electric-blue);
  font-size: 1.35rem;
  margin-bottom: 6px;
} 
.cookie-modal-content label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 1rem;
  font-weight: 500;
}
.cookie-modal-content input[type='checkbox'] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--electric-blue);
  border-radius: 5px;
  background: var(--secondary);
  transition: background 0.13s, border-color 0.13s;
}
.cookie-modal-content input[type='checkbox']:checked {
  background: var(--electric-blue);
  border-color: var(--electric-coral);
  position: relative;
}
.cookie-modal-content input[type='checkbox']:checked:after {
  content: '';
  display: block;
  margin-left: 5px;
  margin-top: 2px;
  width: 7px;
  height: 13px;
  border: solid var(--accent);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.cookie-modal-content .modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal-content .btn-secondary {
  border: 2px solid var(--electric-blue);
  background: var(--white);
  color: var(--electric-blue);
}
.cookie-modal-content .btn-secondary:hover {
  background: var(--electric-blue);
  color: var(--white);
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 20px;
  right: 27px;
  color: var(--electric-coral);
  font-size: 2.1rem;
  background: transparent;
  border: none;
}
.cookie-modal .cookie-modal-close:hover {
  color: var(--electric-blue);
}

/* Microinteractions & Focus for Accessibility */
a, button, .btn-primary, .btn-secondary, input, [tabindex] {
  outline: none;
}
a:focus-visible, button:focus-visible, .btn-primary:focus-visible, .btn-secondary:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 5px;
}

/* Vibrant Focus */
input:focus, textarea:focus, select:focus {
  border-color: var(--electric-coral);
  box-shadow: 0 0 0 2px var(--electric-coral22);
}

/* Animations for Buttons */
.btn-primary, .btn-secondary {
  transition: background 0.18s cubic-bezier(0.37,2,0.66,1.59), color 0.13s;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  background: var(--secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--electric-blue);
  border-radius: 5px;
}

/* Responsive Layouts */
@media (max-width: 900px) {
  nav {
    padding: 0 6px;
    gap: 5px;
  }
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
  .card-container, .feature_grid, .safety_tips_grid, .tests_grid, .content-grid {
    gap: 9px;
  }
}
@media (max-width: 585px) {
  .footer-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    margin-bottom: 18px;
  }
}
@media (max-width: 450px) {
  .container {
    padding: 0 2vw;
  }
  section {
    padding: 10px 0 18px 0;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.25rem; }
}

/* Hide elements while 'modal' or menu is open to prevent unwanted background scroll */
body.menu-open,
body.modal-open {
  overflow: hidden;
}

/* Accessibility: Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation-duration: 0.001s !important;
  }
}

/* ========== END VIBRANT ENERGETIC FALCON THEME ========== */
