/* CSS RESET & NORMALIZATION */
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,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;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #F5F5F5;
  color: #263342;
  line-height: 1.6;
  min-height: 100vh;
}
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section {
  display: block;
}
ul,ol {
  list-style: none;
}
a {
  color: #1A4876;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E86200;
  outline: none;
}
img {
  max-width: 100%;
  display: block;
}

/* SCANDINAVIAN CLEAN DESIGN VARIABLES */
:root {
  --color-primary: #1A4876;
  --color-secondary: #F5F5F5;
  --color-bg: #FFFFFF;
  --color-accent: #E86200;
  --color-contrast: #263342;
  --color-border: #E4E8EC;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
h1 {font-size: 2.5rem; margin-bottom: 24px;}
h2 {font-size: 2rem; margin-bottom: 20px;}
h3 {font-size: 1.5rem; margin-bottom: 16px;}
h4 {font-size: 1.125rem; margin-bottom: 12px;}
p, ul, ol, li, address, label, input, select, textarea, th, td {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--color-contrast);
}
p {margin-bottom: 16px;}
strong {font-weight: 600; color: var(--color-primary);}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  background: var(--color-bg);
  border-radius: 16px;
  box-shadow: 0 2px 16px 0 rgba(30,40,50,0.04);
  padding: 32px 24px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-bg);
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(26,72,118,0.03);
  margin-bottom: 20px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 4px 22px 0 rgba(30,60,80,0.08);
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px 0 rgba(26,72,118,0.07);
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  flex: 1 1 250px;
  min-width: 250px;
  max-width: 100%;
  transition: box-shadow 0.2s;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: var(--color-contrast);
  margin-bottom: 4px;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #5A656C;
  font-style: italic;
}
.testimonial-card:hover {
  box-shadow: 0 6px 32px 0 rgba(26,72,118,0.13);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* BUTTONS, CTAS */
.cta-btn {
  background: var(--color-accent);
  color: #fff;
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  padding: 14px 32px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(232,98,0,0.07);
  transition: background 0.18s, transform 0.18s, box-shadow 0.2s;
  display: inline-block;
  margin: 8px 0 0 0;
}
.cta-btn:hover, .cta-btn:focus {
  background: #ff8833;
  box-shadow: 0 4px 18px 0 rgba(232,98,0,0.13);
  color: #fff;
  transform: translateY(-2px) scale(1.015);
  outline: none;
}

button, select, input[type="button"], input[type="submit"] {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 24px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-primary);
  transition: border 0.18s, box-shadow 0.18s;
}
button:focus, button:hover, select:focus, select:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px #E3F1FF;
  outline: none;
}

/* NAVIGATION */
header {
  width: 100%;
  background: var(--color-bg);
  box-shadow: 0 2px 10px 0 rgba(26,72,118,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  gap: 32px;
}
nav > a img {
  height: 38px;
  width: auto;
}
nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
nav ul li a {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.16s, color 0.13s;
}
nav ul li a:hover, nav ul li a:focus {
  background: #f3faff;
  color: var(--color-accent);
}
nav .cta-btn {
  margin-left: 16px;
  margin-right: 0;
  padding: 12px 24px;
  font-size: 1rem;
}
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 18px;
  background: #fff;
  border-radius: 50%;
  border: none;
  font-size: 2rem;
  color: var(--color-primary);
  width: 48px;
  height: 48px;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 2201;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #E3F1FF;
  color: var(--color-accent);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  background: var(--color-bg);
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2200;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.44,0,.22,1);
  box-shadow: 0 8px 32px 0 rgba(26,72,118,0.14);
  padding: 0;
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: var(--color-primary);
  align-self: flex-end;
  margin: 24px 24px 8px 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.16s;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
  background: #F8F6F4;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100vw;
  align-items: flex-start;
  padding: 0 36px;
  margin-top: 32px;
  gap: 18px;
}
.mobile-nav a {
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-size: 1.29rem;
  padding: 14px 6px 14px 2px;
  border-bottom: 1px solid var(--color-border);
  width: 100%;
  box-sizing: border-box;
  transition: color 0.14s, background 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  background: #f3faff;
  outline: none;
}

/* FORMS AND INPUTS */
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  border: 1px solid var(--color-border);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.98rem;
  background: #fff;
  margin-bottom: 16px;
  width: 100%;
  transition: box-shadow 0.13s, border 0.13s;
  color: var(--color-contrast);
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, select:focus, textarea:focus {
  outline: none;
  border: 1.5px solid var(--color-primary);
  box-shadow: 0 0 0 2px #E3F1FF;
}
label {
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 6px;
  display: inline-block;
  font-size: 1rem;
}

/* TABLES */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
th, td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
th {
  background: #f5f8fa;
  color: var(--color-primary);
  font-weight: 600;
}
tr:last-child td {
  border-bottom: none;
}

/* MAP PLACEHOLDER */
.map-placeholder {
  width: 100%;
  min-height: 160px;
  background: #f3f3f8;
  border-radius: 12px;
  box-shadow: 0 1px 8px 0 rgba(30,60,80,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  margin-bottom: 12px;
}
.map-placeholder img {
  opacity: 0.2;
  width: 64px;
  height: auto;
}

/* FOOTER STYLES */
footer {
  background: var(--color-bg);
  box-shadow: 0 -2px 10px 0 rgba(26,72,118,0.06);
  padding: 28px 0 24px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}
footer .content-wrapper {
  padding: 10px 0 0 0;
  background: transparent;
  box-shadow: none;
  gap: 24px;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
}
footer .content-wrapper > a img {
  width: 46px;
  height: auto;
  margin-bottom: 16px;
}
footer ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer ul li a {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-size: 0.97rem;
  transition: color 0.13s;
}
footer ul li a:hover {
  color: var(--color-accent);
}
footer address {
  font-size: 0.96rem;
  color: #5A656C;
  font-style: normal;
}
footer address img {
  width: 16px;
  margin-right: 6px;
  opacity: 0.73;
  vertical-align: middle;
}
footer address a {
  color: var(--color-primary);
  text-decoration: underline;
  font-size: 0.97rem;
  word-break: break-word;
}
footer address a:hover {
  color: var(--color-accent);
}

/* UTILITY, MISC STYLES */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 12px;
}
.text-section ul {
  gap: 6px;
}
.text-section li {
  position: relative;
  margin-left: 20px;
  margin-bottom: 6px;
  color: var(--color-primary);
}
.text-section li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--color-accent);
  border-radius: 50%;
  position: absolute;
  left: -16px;
  top: 7px;
  opacity: 0.80;
}

/* RICH LISTS IN CONTENT */
ul {
  margin-bottom: 16px;
}
li img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 6px;
  border-radius: 4px;
}

/* MEDIA QUERIES FOR RESPONSIVE FLEXBOX LAYOUTS */
@media (max-width: 1200px) {
  .container {max-width: 994px;}
}
@media (max-width: 900px) {
  nav ul {
    gap: 14px;
  }
  .content-wrapper, .section {
    padding-left: 10px; padding-right: 10px;
  }
}
@media (max-width: 768px) {
  html {font-size: 15px;}
  nav ul, nav .cta-btn {display: none;}
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .content-wrapper {
    padding: 22px 7px;
    gap: 12px;
    margin-bottom: 20px;
  }
  .section {
    padding: 24px 6px;
    margin-bottom: 38px;
  }
  .testimonial-card,
  .card {
    padding: 14px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  html {font-size: 14px;}
  h1, h2, h3 {word-break: break-word;}
  .content-wrapper, .section {
    padding-left: 2px; padding-right: 2px;
  }
}
/* FLEXBOX SPACING RULES */
.section:not(:last-child) { margin-bottom: 60px; }
.card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  gap: 20px;
}
.card, .testimonial-card, .feature-item { margin-bottom: 20px; }

/* FLEXBOX-ONLY ENFORCEMENT */
/* NO grid or column CSS is used anywhere */

/* MICRO-INTERACTIONS & ANIMATIONS */
.cta-btn, .card, .testimonial-card, .mobile-menu, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.22s, background 0.19s, color 0.13s, border 0.16s, transform 0.26s;
}

/* SCANDINAVIAN BUTTONS IN FORMS */
table input, table select {margin: 2px 0 0 0;}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #f9f9fa;
  color: var(--color-contrast);
  box-shadow: 0 -2px 18px 0 rgba(30,52,70,0.07);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  gap: 24px;
  z-index: 3000;
  font-size: 1rem;
  border-top: 1px solid #e4e8ec;
  animation: cookieBannerSlidein 0.32s ease;
}
@keyframes cookieBannerSlidein {
  from {transform: translateY(100%); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.cookie-btn {
  padding: 10px 24px;
  border-radius: 22px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-primary);
  font-family: 'Oswald', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, border 0.16s, color 0.14s;
  margin-right: 5px;
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: #fff;
  border: none;
  font-weight: 600;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #ff8833;
}
.cookie-btn.reject {
  background: #fff;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-weight: 500;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #FFF3EB;
}
.cookie-btn.settings {
  background: #F5F5F5;
  border: 1px solid var(--color-border);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #F9F6F1;
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 10px;
    gap: 14px;
    font-size: 0.97rem;
  }
  .cookie-banner .cookie-buttons {
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
  }
}

/* COOKIE MODAL POPUP */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(26,72,118, 0.15);
  z-index: 3400;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  opacity: 1;
  animation: fadeInModal 0.3s ease;
}
@keyframes fadeInModal {
  from {opacity: 0;}
  to {opacity: 1;}
}
.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px 0 rgba(26,72,118,0.14);
  padding: 32px 28px;
  max-width: 410px;
  width: 93%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: modalPopin 0.22s cubic-bezier(.47,1.64,.41,.79);
}
@keyframes modalPopin {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-content h3 {
  font-size: 1.36rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--color-contrast);
}
.cookie-category input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--color-primary);
  margin-right: 2px;
}
.cookie-category .essential {
  font-weight: 600;
  color: #7d897f;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 8px; right: 14px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  color: var(--color-accent);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  justify-content: flex-end;
}

/* CLEAN SCANDINAVIAN DETAILS */
body,
.section, 
.content-wrapper, 
.card, 
.testimonial-card, 
.footer, 
input, 
select, 
textarea {
  border-radius: 14px;
}

/* FOCUS VISIBLE */
a:focus-visible, button:focus-visible, .cta-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ------ PAGE SPECIFIC ADDITIONS ------ */

/* "Opinie użytkowników" Section - dark text on light bg */
.testimonial-card {
  background: #FBFBFB;
  color: #263342;
}

/* Last reviews / rankings cards - accent links */
.content-wrapper ul li a {
  color: var(--color-accent);
  text-decoration: underline;
  font-weight: 500;
  padding-left: 1px;
  transition: color 0.13s;
}
.content-wrapper ul li a:hover, .content-wrapper ul li a:focus {
  color: var(--color-primary);
  text-decoration: none;
}

/* Ranking page feature comparison boxes */
.text-section h3 {
  margin-bottom: 6px;
  font-size: 1.17rem;
  color: var(--color-primary);
}

/* Loader spinner, overlays etc (if needed later) */
/* Add focus management JS for burger and cookie as best practice */

/* Hide elements visually only */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* END OF CSS */

