/* 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,
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 {
  line-height: 1;
  scroll-behavior: smooth;
}
body {
  background-color: #181D23;
  color: #E5EAF1;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

/* BRAND FONTS */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@900;700&family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
  --primary: #22437A;
  --primary-dark: #152a43;
  --secondary: #65B672;
  --secondary-dark: #4C8757;
  --accent: #F4F8FB;
  --neutral-bg: #22262b;
  --fg-dark: #22262b;
  --fg-light: #E5EAF1;
  --steel: #6C7A89;
  --metal: #ACB3BA;
  --glass: rgba(36,44,56,0.9);
  --shadow: 0 8px 24px rgba(20,24,32,0.13),0 1.5px 6px rgba(60,60,60,0.14);
  --radius-lg: 18px;
  --radius: 10px;
  --transition: 0.28s cubic-bezier(.4,0,.2,1);
}

.container {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: var(--accent);
  color: #181D23;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 14px rgba(34,67,122,0.10),0 1.5px 6px rgba(60,60,60,0.11);
  padding: 20px;
  margin-bottom: 24px;
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FLEX LAYOUTS + GAPS */
.guide-list,
.offer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.article-preview {
  background: var(--neutral-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
  flex: 1 1 300px;
  min-width: 240px;
}
.provider-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--neutral-bg);
  padding: 24px 18px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 240px;
  gap: 12px;
}
.provider-detail-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--accent);
  color: var(--fg-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  margin-bottom: 24px;
  gap: 14px;
  min-width: 260px;
}
.offer-item {
  display: flex;
  flex-direction: column;
  background: var(--neutral-bg);
  border: 1.5px solid var(--metal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 18px;
  margin-bottom: 18px;
  gap: 14px;
  min-width: 240px;
}
.brand-story {
  background: var(--neutral-bg);
  border-left: 6px solid var(--secondary);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  margin-top: 6px;
  box-shadow: 0 2px 12px rgba(30,40,49,0.12);
}

/* TYPOGRAPHY */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--accent);
  line-height: 1.18;
  margin-bottom: 10px;
}
h1 {
  font-size: 2.2rem;
  color: var(--secondary);
}
h2 {
  font-size: 1.45rem;
  color: var(--accent);
  margin-bottom: 8px;
}
h3 {
  font-size: 1.1rem;
  color: var(--primary);
}
h4, h5, h6 {
  font-size: 1rem;
  color: var(--secondary);
}
p, li, span, label {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.66;
}
p {
  margin-bottom: 10px;
}
.section h1, .section h2, .section h3 {
  margin-bottom: 13px;
}
.author {
  font-size: 1rem;
  color: var(--steel);
  margin-top: 0px;
  font-style: italic;
  letter-spacing: 0.01em;
}
.stars {
  margin: 0 0 0.5em 0;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #FDB840;
  letter-spacing: 0.05em;
  font-size: 1.2rem;
}

/* BUTTONS */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 13px 36px;
  min-height: 46px;
  min-width: 180px;
  cursor: pointer;
  transition: box-shadow var(--transition), background var(--transition), color var(--transition), border var(--transition), transform var(--transition);
  box-shadow: 0 1.5px 7px 0 rgba(54,58,63,0.11);
  margin-top: 5px;
  border: none;
}
.btn-primary {
  background: linear-gradient(92deg,#22437A 60%, #334e69 100%);
  color: #fff;
  border: 1.5px solid var(--secondary);
  box-shadow: 0 2px 10px rgba(100,150,200,0.13);
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(92deg,#65B672 40%, #22437A 100%);
  color: #181D23;
  border-color: #65B672;
  outline: none;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 4px 18px #65B67255;
}
.btn-secondary {
  background: #F4F8FB;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary-dark);
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 4px 13px #65B67244;
}
.promo-badge {
  display: inline-block;
  background: var(--secondary-dark);
  color: #fff;
  font-size: 0.92em;
  border-radius: var(--radius);
  padding: 4px 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* NAVIGATION HEADER */
header {
  background: #1B2330;
  border-bottom: 2.5px solid var(--steel);
  box-shadow: 0 1.5px 10px rgba(34,67,122,0.07);
  position: relative;
  z-index: 40;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 0;
  min-height: 62px;
}
header nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
header nav a {
  color: var(--accent);
  font-weight: 600;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: #181D23;
  outline: none;
}
header img {
  height: 39px;
  margin-right: 18px;
}

/* HAMBURGER MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  background: var(--steel);
  border-radius: 50%;
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: absolute;
  right: 16px; top: 10px;
  z-index: 85;
  transition: background var(--transition), box-shadow var(--transition);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: #181D23;
  outline: none;
}

/* MOBILE DRAWER MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--glass);
  backdrop-filter: blur(5px);
  z-index: 1002;
  transform: translateX(-110vw);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  box-shadow: 4px 0 36px 0 #00000060;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 26px 18px 0 0;
  cursor: pointer;
  z-index: 1003;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  margin: 38px 0 0 30px;
  gap: 18px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 9px 0;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--fg-dark);
  outline: none;
}

/* HERO/CTA AREA */
section:first-of-type {
  background: linear-gradient(80deg, #181D23 45%, #242B37 100%);
  border-bottom: 2.5px solid var(--primary);
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  width: 100%;
  box-sizing: border-box;
}

/* TABLE (PORÓWNYWARKA) */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0 16px 0;
  background: var(--neutral-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
thead th {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
  padding: 14px 10px;
  background: var(--primary-dark);
  color: var(--accent);
  font-size: 1.02em;
}
tbody td {
  padding: 13px 10px;
  font-size: 1em;
  border-top: 1.5px solid #2b3642;
  color: var(--metal);
}
tbody td img {
  vertical-align: middle;
  height: 29px;
  margin-right: 8px;
}
table a {
  color: var(--secondary);
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--glass);
  text-decoration: underline dotted;
  transition: color var(--transition), background var(--transition);
}
table a:hover, table a:focus {
  background: var(--secondary);
  color: #fff;
}

/* SEARCH BAR (poradniki) */
.search-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-top: 10px;
}
.search-bar input[type='text'] {
  width: 100%;
  max-width: 310px;
  font-size: 1rem;
  border-radius: 7px;
  border: 1.5px solid var(--metal);
  padding: 12px 15px;
  background: #22262b;
  color: var(--accent);
  transition: border var(--transition), background var(--transition);
}
.search-bar input[type='text']:focus {
  border-color: var(--secondary);
  background: #232D3C;
  outline: none;
}

.topics {
  margin-top: 6px;
  color: var(--metal);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.topics span {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  padding: 0 4px;
}

/* LISTS (ICONS + TEXT) */
ul, ol {
  margin-left: 0;
  margin-bottom: 10px;
  padding: 0;
}
ul li, ol li {
  position: relative;
  padding-left: 38px;
  min-height: 32px;
  margin-bottom: 8px;
  color: var(--metal);
  font-weight: 500;
}
ul li img, ol li img {
  position: absolute;
  left: 0;
  top: 3px;
  height: 25px;
  width: 25px;
  display: inline-block;
  margin-right: 0;
}

/* MAP PLACEHOLDER */
.map-placeholder {
  background: #23282F;
  color: var(--metal);
  border-radius: var(--radius);
  padding: 18px 0 18px 8px;
  box-shadow: 0 1px 7px 0 #152a4366;
  font-size: 1.05rem;
  margin-top: 10px;
  min-height: 60px;
}

/* FOOTER */
footer {
  width: 100%;
  background: #16181b;
  color: var(--steel);
  border-top: 2.5px solid var(--primary-dark);
  box-shadow: 0 -1px 10px rgba(60,70,80,0.13);
  padding: 28px 0 0 0;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  padding: 0 16px 18px 16px;
}
footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
footer nav a {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.96rem;
  transition: color var(--transition);
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
}
footer .contact-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
  font-size: 0.98rem;
}
footer .contact-info span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--metal);
  margin-bottom: 2px;
}
footer .contact-info img {
  height: 18px;
  width: 18px;
  display: inline-block;
}

/* TEXT SECTIONS (regulamin, polityka) */
.text-section {
  padding: 35px 18px;
  max-width: 770px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: var(--glass);
  box-shadow: 0 2px 12px #11141c14;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 1150px){
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
}
@media (max-width: 900px){
  .container { max-width: 99vw; }
  .content-wrapper { gap: 18px; }
  .section { padding: 32px 7px; }
  .provider-item,.provider-detail-card,.offer-item,.testimonial-card,.article-preview { min-width: 180px; }
}
@media (max-width: 768px){
  .container { max-width: 100vw; }
  .content-wrapper { gap: 14px; }
  .section { padding: 24px 0 24px 0; }
  header .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer nav, .footer .contact-info { align-items: flex-start; }
  header nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (max-width: 640px){
  section { padding: 16px 0; }
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.1rem; }
  .article-preview, .offer-item, .provider-item, .provider-detail-card, .testimonial-card {
    padding: 13px 8px 10px;
    border-radius: 10px;
  }
  .map-placeholder { padding: 9px 4px; font-size: 0.97rem; }
}
@media (max-width: 600px) {
  .guide-list, .offer-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1600;
  background: var(--glass);
  color: var(--fg-light);
  padding: 19px 26px 11px 26px;
  box-shadow: 0 -2px 18px 0 #11141c14;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  animation: slideBannerIn 0.6s cubic-bezier(.4,0,.2,1);
}
@keyframes slideBannerIn {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner__actions {
  display: flex;
  gap: 20px;
  margin-top: 3px;
}
.cookie-banner .btn-cookie {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 9px;
  border: none;
  margin-right: 2px;
  min-width: 104px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.btn-cookie-accept {
  background: var(--secondary);
  color: #fff;
}
.btn-cookie-accept:hover, .btn-cookie-accept:focus {
  background: #46885a;
  color: #fff;
}
.btn-cookie-reject {
  background: var(--steel);
  color: #fff;
}
.btn-cookie-reject:hover, .btn-cookie-reject:focus {
  background: #6c7a8930;
  color: var(--secondary);
}
.btn-cookie-settings {
  background: var(--accent);
  color: var(--fg-dark);
  border: 1.5px solid var(--steel);
}
.btn-cookie-settings:hover, .btn-cookie-settings:focus {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(20, 24, 32, 0.76);
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.5s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal.active {
  display: flex;
}
.cookie-modal__content {
  background: var(--accent);
  color: var(--fg-dark);
  border-radius: 18px;
  box-shadow: 0 7px 36px 0 #21273c49;
  min-width: 320px; max-width: 90vw;
  padding: 32px 24px 18px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slideModalIn 0.5s cubic-bezier(.4,0,.2,1);
}
@keyframes slideModalIn {
  from { transform: translateY(64px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal__header {
  font-size: 1.3rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 3px;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 1rem;
  margin-bottom: 16px;
}
.cookie-modal__category {
  display: flex;
  align-items: center;
  gap: 11px;
}
.cookie-modal__category label {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 1rem;
}
.cookie-modal__category input[type='checkbox'],
.cookie-modal__category input[type='radio'] {
  accent-color: var(--primary);
  width: 20px;
  height: 20px;
}
.cookie-modal__actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 8px;
}
.cookie-modal__close {
  position: absolute;
  top: 19px; right: 20px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--primary-dark);
  cursor: pointer;
  transition: color var(--transition);
}
.cookie-modal__close:hover, .cookie-modal__close:focus {
  color: var(--secondary);
}

/* ANIMATIONS + MICRO-INTERACTIONS */
a, .btn-primary, .btn-secondary, .mobile-menu-toggle, .mobile-nav a, .footer nav a, .btn-cookie {
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), border var(--transition), transform var(--transition);
}
.testimonial-card:hover, .provider-detail-card:hover, .offer-item:hover, .article-preview:hover {
  box-shadow: 0 7px 24px 0 #65B67222, 0 1.5px 6px rgba(60,60,60,0.14);
  transform: translateY(-2px) scale(1.02);
}


/* GENERAL UTILITY */
.d-none { display: none !important; }
.d-flex { display: flex; }
.w-100 { width: 100%; }

/* Helper class for visually hidden (accessibility) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* SELECTION & SCROLLBARS */
::selection {
  background: var(--secondary);
  color: #fff;
}
::-webkit-scrollbar { width: 10px; background: #22262b; border-radius: 6px; }
::-webkit-scrollbar-thumb { background: #334e69; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #65B672; }
