/* 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;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #F9FBFF;
  color: #24364C;
  min-height: 100vh;
}
ul, ol {
  list-style-type: disc;
  margin-left: 22px;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #2976c2;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F1B217;
  outline: none;
}
strong, b {
  font-weight: 700;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #24364C;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #364161;
}
li {
  margin-bottom: 8px;
}
small {
  font-size: 0.875rem;
  color: #8A939B;
}

/* SOFT PASTEL PALETTE */
:root {
  --brand-primary: #24364C;
  --brand-secondary: #e6eaf0;
  --brand-accent: #F1B217;
  --pastel-blue: #D3E3FC;
  --pastel-mint: #C8F3DF;
  --pastel-pink: #F9DAE6;
  --pastel-lavender: #E6D6FF;
  --pastel-yellow: #FFF9D6;
  --pastel-bg: #F9FBFF;
  --text-main: #24364C;
  --text-light: #6D7A8C;
  --card-shadow: 0 2px 12px rgba(60, 70, 120, 0.09);
  --radius-large: 18px;
  --radius-med: 12px;
  --radius-sm: 7px;
}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--pastel-bg);
  border-radius: var(--radius-large);
  box-shadow: var(--card-shadow);
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.section:last-child, .content-wrapper:last-child {
  margin-bottom: 0;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-med);
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
  transition: box-shadow .22s, transform .15s;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 240px;
  flex: 1 1 280px;
  padding: 28px 24px;
}
.card:hover {
  box-shadow: 0 4px 20px rgba(60, 70, 120,.17);
  transform: translateY(-5px);
}
.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;
  background: var(--pastel-blue);
  padding: 20px;
  border-radius: var(--radius-med);
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
  color: var(--text-main);
  transition: box-shadow .22s;
}
.testimonial-card:hover {
  box-shadow: 0 2px 20px rgba(60, 70, 120, 0.13);
}
.testimonial-card p {
  flex: 1;
  margin-bottom: 0;
  font-size: 1.06rem;
  color: var(--text-main);
}
.testimonial-card strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--text-main);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature grid on / */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: flex-start;
  padding: 0;
}
.feature-grid li {
  background: var(--pastel-pink);
  flex: 1 1 240px;
  min-width: 200px;
  max-width: 320px;
  border-radius: var(--radius-med);
  padding: 22px 16px 18px 16px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  font-size: 1.02rem;
  margin-bottom: 0;
  transition: box-shadow .18s, background .2s;
}
.feature-grid li:hover {
  box-shadow: 0 4px 24px rgba(241,178,23,0.13);
  background: var(--pastel-yellow);
}
.feature-grid img {
  width: 34px;
  height: 34px;
}

/* TABLE STYLES (used in porownania-modeli.html) */
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin: 20px 0 24px 0;
  background: #fff;
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-med);
  overflow: hidden;
}
thead {
  background: var(--pastel-mint);
}
th, td {
  padding: 14px 12px;
  text-align: left;
  font-size: 1rem;
}
th {
  color: var(--brand-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: .005em;
}
tbody tr:nth-child(odd) {
  background: var(--pastel-blue);
}

/* CONTROLS & BUTTONS */
.reviews-controls, .news-controls, .comparison-controls, .video-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.reviews-controls span, .news-controls span, .comparison-controls span, .video-controls span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--brand-primary);
}
.reviews-controls button,
.news-controls button,
.comparison-controls button,
.video-controls button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  background: var(--pastel-lavender);
  color: var(--brand-primary);
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 16px;
  margin-right: 0;
  margin-bottom: 0;
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
}
.reviews-controls button:hover,
.news-controls button:hover,
.comparison-controls button:hover,
.video-controls button:hover {
  background: var(--brand-accent);
  color: #fff;
}

/* CALL TO ACTION BUTTONS */
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: linear-gradient(90deg, #F1B217 0%, #F9DAE6 100%);
  color: #24364C;
  border: none;
  border-radius: var(--radius-large);
  font-size: 1.125rem;
  font-weight: 600;
  padding: 13px 38px;
  box-shadow: 0 2px 12px rgba(188,176,146,.15);
  margin-top: 14px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: background 0.22s, color .18s, box-shadow 0.18s, transform 0.13s;
  display: inline-block;
  letter-spacing: .01em;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #F9DAE6 0%, #F1B217 100%);
  color: #24364C;
  box-shadow: 0 6px 32px rgba(241,178,23,0.18);
  transform: translateY(-2px) scale(1.03);
}

/* HEADER STYLES */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 18px rgba(36,54,76,0.07);
  padding: 0 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  z-index: 40;
}
header > a img {
  height: 56px;
  margin-left: 22px;
}
header .main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
header .main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--brand-primary);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: background .16s, color .15s;
}
header .main-nav a:hover, header .main-nav a.active {
  background: var(--pastel-blue);
  color: #2976c2;
}
header .cta-btn {
  margin-left: 8px;
}
.mobile-menu-toggle {
  display: none;
}

/* MOBILE MENU STYLES */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  color: var(--brand-primary);
  font-size: 2rem;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  transition: background 0.18s;
  z-index: 201;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--brand-accent);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(234, 240, 255, 0.95);
  box-shadow: 0 0 120px 10px rgba(60,70,120,0.11);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.7,0,0.3,1);
  z-index: 200;
  padding: 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.25rem;
  color: var(--brand-primary);
  margin: 22px 26px 16px 0;
  cursor: pointer;
  line-height: 1;
  z-index: 210;
  transition: color 0.14s;
}
.mobile-menu-close:focus {
  color: var(--brand-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px 34px;
  margin-top: 6px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--brand-primary);
  background: var(--pastel-lavender);
  padding: 12px 20px;
  border-radius: var(--radius-med);
  text-align: left;
  transition: background 0.18s, color 0.18s;
  margin-bottom: 3px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--brand-accent);
  color: #fff;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fffbea;
  color: var(--brand-primary);
  border-top: 1.5px solid #e7e4ce;
  padding: 20px 12px 21px 12px;
  box-shadow: 0 -2px 18px rgba(36,54,76,.11);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  animation: slideInBanner 0.46s cubic-bezier(0.7,0,0.3,1);
}
@keyframes slideInBanner {
  from { transform: translateY(120%); opacity:0; }
  to   { transform: translateY(0);    opacity:1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 3px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: var(--radius-med);
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 25px;
  margin-right: 2px;
  margin-bottom: 0;
  transition: background 0.18s, color 0.15s;
  cursor: pointer;
}
.cookie-banner .accept {
  background: var(--brand-accent);
  color: #24364C;
}
.cookie-banner .accept:hover {
  background: #ffc025;
}
.cookie-banner .reject {
  background: #e5e3e3;
  color: var(--brand-primary);
}
.cookie-banner .reject:hover {
  background: #f9dae6;
  color: #bf4444;
}
.cookie-banner .settings {
  background: var(--pastel-lavender);
  color: var(--brand-primary);
}
.cookie-banner .settings:hover {
  background: var(--pastel-blue);
  color: #2976c2;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal-bg {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,54,76,0.24);
  z-index: 4000;
  align-items: center;
  justify-content: center;
}
.cookie-modal-bg.open {
  display: flex;
  animation: fadeIn 0.23s;
}
@keyframes fadeIn {
  from { opacity:0; }
  to { opacity:1; }
}
.cookie-modal {
  background: #fff;
  border-radius: var(--radius-large);
  box-shadow: 0 8px 48px rgba(36,54,76,.17);
  max-width: 420px;
  width: 94vw;
  padding: 32px 26px 24px 26px;
  position: relative;
  animation: modalRise .39s cubic-bezier(0.7,0,0.3,1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@keyframes modalRise {
  from { transform: translateY(48px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.32rem;
  margin-bottom: 12px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--brand-primary);
  cursor: pointer;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--brand-accent);
  width: 19px; height: 19px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 12px;
}
.cookie-modal .close-modal {
  position: absolute;
  right: 18px; top: 14px;
  background: none;
  border: none;
  color: #a7aec1;
  font-size: 1.65rem;
  cursor: pointer;
  transition: color .16s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: var(--brand-primary);
}

/* FOOTER */
footer {
  background: var(--pastel-mint);
  border-top: 1.5px solid #C8F3DF;
  padding: 42px 0 12px 0;
  box-shadow: 0 -2px 16px rgba(60,70,120,0.06);
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer > a img {
  height: 44px;
  margin-bottom: 2px;
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin: 12px 0 4px 0;
}
.footer-nav a {
  color: var(--brand-primary);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: var(--pastel-yellow);
  transition: background 0.17s, color 0.17s;
}
.footer-nav a:hover {
  background: var(--pastel-pink);
  color: #F1B217;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 12px 0 0 0;
  font-size: 0.96rem;
  color: var(--brand-primary);
}
.footer-contact img {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  vertical-align: bottom;
}

/* CONTACT PAGE BLOCK */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 18px 0 24px 0;
}
.contact-info div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  background: var(--pastel-mint);
  border-radius: var(--radius-sm);
  padding: 11px 17px;
  color: var(--brand-primary);
  box-shadow: 0 1px 5px rgba(36,54,76,0.05);
}
.contact-info img {
  width: 22px; height: 22px;
}
.map-section {
  margin: 24px 0 0 0;
  padding: 17px 18px;
  background: var(--pastel-blue);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--card-shadow);
}

/* MISC */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}
hr {
  border: none;
  border-top: 1px solid #dfdede;
  margin: 30px 0;
}

/* Responsive: MOBILE FIRST */
@media (max-width: 1160px) {
  .container {
    max-width: 97vw;
    padding: 0 9px;
  }
}
@media (max-width: 1050px) {
  .feature-grid {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .feature-grid li { min-width: 130px; max-width: 100%; }
  .testimonial-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
  .section, .content-wrapper {
    padding: 26px 8px;
    margin-bottom: 36px;
  }
  header {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 3px;
    min-height: 62px;
    padding: 3px 3px;
  }
  header .main-nav {
    display: none;
  }
  .cta-btn {
    font-size: 1rem;
    padding: 11px 22px;
  }
  .cookie-banner {
    padding: 13px 7px 15px 10px;
    font-size: 0.97rem;
  }
  .feature-grid {
    flex-direction: column;
    gap: 13px;
  }
  .feature-grid li { min-width: unset; max-width: unset; }
  .text-image-section,
  .content-grid {
    flex-direction: column;
    gap: 15px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 9px;
    align-items: flex-start;
  }
  .footer-nav {
    gap: 10px;
    flex-direction: column;
    align-items: flex-start;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 540px) {
  h1 { font-size: 1.46rem; }
  h2 { font-size: 1.12rem; }
  .contact-info div { font-size: .97rem; }
}
@media (max-width: 410px) {
  .cta-btn { padding: 7px 13px; font-size: .9rem; }
  .cookie-modal { padding: 16px 4px 15px 4px; }
}

/* Animations for micro-interactions */
.card, .testimonial-card, .feature-grid li {
  transition: box-shadow .18s, background .17s, transform .13s;
}
.card:hover, .feature-grid li:hover, .testimonial-card:hover {
  transform: translateY(-3px) scale(1.02);
}

/* Spacing hacks per requirements */
.card-container > * {
  margin-bottom: 0 !important;
}
.content-grid > *,
.section > *,
.content-wrapper > *:not(:last-child) {
  margin-bottom: 22px;
}
.card + .card,
.testimonial-card + .testimonial-card,
.feature-item + .feature-item {
  margin-top: 20px !important;
}

/* Hide mobile menu by default and show on click */
@media (max-width: 990px) {
  header .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Print styles: hide nav & cookie */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-bg, footer { display:none !important; }
}
