/* Elektryczny Wybór 2025 - tech_futuristic style | FLEXBOX-ONLY LAYOUTS | Responsive | Cookie Banner | Mobile Menu |- CSS RESET first */

/* --- CSS RESET & BASE TYPOGRAPHY --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #111627;
  color: #F5F8FA;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  font-size: 1rem;
  min-height: 100vh;
  letter-spacing: 0.01em;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #24A19C;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #75fff9;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1.5em;
}
strong {
  color: #24A19C;
  font-weight: 700;
}
input[type="text"] {
  border: 2px solid #282e4a;
  border-radius: 6px;
  background: #10162C;
  color: #F5F8FA;
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 16px;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}
input[type="text"]:focus {
  border-color: #24A19C;
  outline: 0;
}

/* --- BRAND FONTS --- */
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.8rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.4rem; margin-bottom: 14px; }
h4 { font-size: 1.18rem; margin-bottom: 10px; }

p {
  margin-bottom: 18px;
  font-size: 1.08rem;
}

/* Typography scale global for sections */
.section h1, 
.section h2, 
.section h3 {
  color: #F5F8FA;
}

/* --- REUSABLE LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- SECTION / CARD LAYOUTS & GAPS (mandatory patterns) --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 22px;
  background: #181f34;
  box-shadow: 0 6px 32px 0 rgba(36,161,156,0.12), 0 1.5px 4px 0 rgba(20,40,65,0.14);
  transition: box-shadow 0.25s;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #202c46;
  border-radius: 18px;
  box-shadow: 0 4px 20px 0 rgba(36, 161, 156, 0.11),0 1.5px 4px 0 rgba(20,40,65,0.16);
  transition: box-shadow 0.23s, transform 0.23s;
  padding: 28px 24px;
}
.card:hover {
  box-shadow: 0 8px 40px 0 rgba(36, 161, 156, 0.20),0 4px 12px 0 rgba(80,255,222,0.12);
  transform: translateY(-4px) scale(1.02);
}
.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: #F5F8FA;
  color: #1A2541;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px 0 rgba(36,161,156,0.11);
  font-size: 1.08em;
  line-height: 1.52;
  transition: box-shadow 0.23s;
}
.testimonial-card blockquote {
  border-left: 4px solid #24A19C;
  margin: 0;
  padding-left: 12px;
  font-style: italic;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Features grid as in several sections and navigations */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
}
.features-grid > div {
  background: #202c46;
  padding: 28px 18px;
  border-radius: 18px;
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 2px 14px rgba(36,161,156,0.10);
  border: 1.5px solid rgba(36,161,156,0.09);
  transition: box-shadow 0.22s, border-color 0.18s;
}
.features-grid > div:hover {
  box-shadow: 0 6px 24px rgba(36,161,156,0.17);
  border-color: #24A19C;
}
.features-grid img {
  width: 42px;
  height: 42px;
}
.features-grid h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

/* --- NAVIGATION --- */
header {
  background: #151D33;
  box-shadow: 0 3px 24px rgba(36,161,156,0.10);
  padding: 0;
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px 20px;
  gap: 20px;
}
header a img {
  height: 48px;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  gap: 24px;
  flex: 1 1 auto;
  align-items: center;
}
.main-nav a {
  color: #F5F8FA;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: .03em;
  font-weight: 500;
  font-size: 1.07rem;
  padding: 3px 0;
  position: relative;
  transition: color 0.16s;
}
.main-nav a:after {
  content: '';
  display: block;
  height: 2.5px;
  background: linear-gradient(90deg,#24A19C,#6bf3ec);
  width: 0;
  transition: width 0.21s;
  border-radius: 2px;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 100%;
}
.main-nav a:hover, .main-nav a:focus {
  color: #6bf3ec;
}
.cta-btn {
  margin-left: auto;
  background: linear-gradient(90deg, #24A19C 60%, #187674 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: .04em;
  font-size: 1.16rem;
  padding: 12px 30px;
  box-shadow: 0 2px 12px 0 rgba(36,161,156,0.09);
  cursor: pointer;
  transition: background 0.18s, transform 0.25s, box-shadow 0.18s;
  outline: none;
  position: relative;
  z-index: 1;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #1fd3db 20%, #0eaeb0 90%);
  color: #212942;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px 0 rgba(36,161,156,0.16);
}
.cta-btn-large {
  font-size: 1.33rem;
  padding: 18px 38px;
  border-radius: 13px;
}

/* Filters menu nav (for porownanie-modeli, rankingi-2025, poradniki etc) */
.filters-menu {
  display: flex;
  gap: 16px;
  margin: 12px 0 18px 0;
  flex-wrap: wrap;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.filters-menu a {
  background: #181f34;
  color: #24A19C;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 0.98rem;
  font-weight: 500;
  margin-right: 3px;
  margin-left: 0;
  outline: none;
  transition: background 0.17s, color 0.13s;
}
.filters-menu a:hover, .filters-menu a:focus {
  background: #24A19C;
  color: #111627;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #181f34;
  color: #F5F8FA;
  box-shadow: 0 0 16px 2px rgba(36,161,156,0.08);
  z-index: 1100;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 0.99rem;
  transition: transform 0.42s cubic-bezier(.6,1.12,.92,.94);
}
.cookie-banner.hide {
  transform: translateY(140%);
  pointer-events: none;
}
.cookie-banner .cookie-btn {
  min-width: 110px;
  background: #24A19C;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  margin-right: 10px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 7px rgba(36,161,156,0.15);
  transition: background 0.18s, color 0.16s, transform 0.23s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #17cdce;
  color: #181f34;
  transform: scale(1.04);
}
/* Cookie Settings button distinct accent */
.cookie-banner .cookie-btn-settings {
  background: #161c29;
  color: #24A19C;
  border: 1.5px solid #24A19C;
  margin-left: 4px;
}
.cookie-banner .cookie-btn-settings:hover, .cookie-banner .cookie-btn-settings:focus {
  background: #24A19C;
  color: #161c29;
}

/* Cookie settings modal */
.cookie-modal {
  position: fixed;
  z-index: 1200;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(12,18,35,0.91);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: opacity 0.35s;
  opacity: 1;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #181f34;
  border-radius: 16px;
  padding: 44px 26px 32px 26px;
  box-shadow: 0 18px 72px 0 rgba(36,161,156,0.14);
  color: #F5F8FA;
  max-width: 90vw;
  width: 410px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: modalIn .45s cubic-bezier(.61,1.18,.42,.98);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.cookie-modal-content h3 {
  color: #24A19C;
  font-size: 1.17rem;
  margin-bottom: 10px;
}
.cookie-modal-category {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-modal-category label {
  font-size: 1rem;
  user-select: none;
  flex: 1;
}
.cookie-checkbox {
  accent-color: #24A19C;
  width: 20px; height: 20px;
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: transparent;
  border: none;
  color: #F5F8FA;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #24A19C;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 13px;
  margin-top: 18px;
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: #161c29;
  color: #24A19C;
  border: none;
  font-size: 2.05rem;
  padding: 6px 18px;
  border-radius: 8px;
  margin-left: auto;
  cursor: pointer;
  transition: background 0.14s, color 0.16s;
  z-index: 1200;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #24A19C;
  color: #151D33;
}
.mobile-menu {
  position: fixed;
  background: #1A2541;
  color: #F5F8FA;
  top: 0; right: 0; bottom: 0;
  width: 94vw;
  max-width: 400px;
  box-shadow: -6px 0 24px 1px rgba(36,161,156,0.18);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.6,1.12,.92,.94);
  padding-top: 24px;
  pointer-events: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  background: transparent;
  color: #24A19C;
  border: none;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 0 30px 22px 0;
  cursor: pointer;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #f5f8fa;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 36px;
}
.mobile-nav a {
  color: #F5F8FA;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.17rem;
  padding: 10px 0;
  border-bottom: 1.7px solid #202c46;
  transition: color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #24A19C;
  background: #181f34;
}

/* --- MAIN & SECTION LAYOUTS --- */
main {
  padding-top: 24px;
  padding-bottom: 42px;
}
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
}
section .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* FAQ style for Porównanie modeli */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.faq-item {
  background: #181f34;
  border-left: 5px solid #24A19C;
  border-radius: 9px;
  padding: 18px 22px;
  box-shadow: 0 2px 8px 0 rgba(36,161,156,0.08);
  transition: box-shadow 0.22s;
}
.faq-item h3 {
  font-size: 1.04rem;
  margin-bottom: 6px;
  color: #F5F8FA;
}
.faq-item p {
  color: #d9f6f6;
  margin-bottom: 0;
}

/* List style for .text-section, .content-wrapper, ul's in sections */
.text-section ul, .content-wrapper ul {
  margin-left: 1.2em;
  margin-bottom: 1.4em;
  padding-left: 0.7em;
}
.text-section li, .content-wrapper li {
  margin-bottom: 0.65em;
  line-height: 1.6;
  font-size: 1.01em;
}
.text-section img, .content-wrapper img {
  vertical-align: middle;
  margin-right: 8px;
  width: 24px;
  height: 24px;
}

/* --- CONTACT DETAILS --- */
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  align-items: center;
}
.contact-details > div {
  display: flex;
  align-items: center;
  background: #202c46;
  color: #fff;
  padding: 10px 18px;
  border-radius: 9px;
  min-width: 210px;
  gap: 10px;
}
.contact-details img {
  width: 28px;
  height: 28px;
}

/* --- FOOTER --- */
footer {
  background: #151D33;
  color: #F5F8FA;
  padding-top: 40px;
  padding-bottom: 30px;
  border-top: 2.5px solid #24A19C24;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  font-size: 1.02rem;
}
.footer-nav a {
  color: #24A19C;
  padding: 2px 8px;
  transition: color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #6bf3ec;
}
.footer-branding {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  justify-content: center;
  text-align: center;
}
.footer-branding img {
  height: 42px;
}
.footer-branding span {
  font-size: 0.99rem;
  color: #F5F8FA;
  max-width: 380px;
  opacity: 0.87;
}
.social-links {
  display: flex;
  gap: 14px;
}
.social-links a {
  display: flex;
  align-items: center;
  background: #181f34;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  justify-content: center;
  transition: background 0.17s;
}
.social-links img {
  width: 20px;
  height: 20px;
}
.social-links a:hover, .social-links a:focus {
  background: #24A19C;
}
.footer-legal {
  text-align: center;
  opacity: 0.76;
  margin-top: 8px;
  font-size: 0.92em;
  color: #55e7db;
}
.footer-legal a {
  color: #24A19C;
  margin: 0 5px;
}
.footer-contact {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: left;
  font-size: 0.98rem;
  opacity: 0.93;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-contact img {
  width: 18px; height: 18px;
}

/* --- MICRO-INTERACTIONS & NEON ACCENTS --- */
.cta-btn, .card, .features-grid > div, .testimonial-card, .faq-item {
  box-shadow: 0 0px 0px 0 rgba(34,206,215,0.0),0 1.5px 4px rgba(36,161,156,0.17);
}
.cta-btn:active {
  box-shadow: 0 0 0 4px #1A254144;
  transform: scale(.98);
}
.card:before, .features-grid > div:before {
  content: '';
  display: block;
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: inherit;
  border: 2px solid transparent;
  pointer-events: none;
  transition: border-color 0.22s;
  z-index: 0;
}
.card:focus-within:before, .card:hover:before, .features-grid > div:focus-within:before, .features-grid > div:hover:before {
  border-color: #24A19C77;
}

/* --- RESPONSIVE DESIGN (mobile-first) --- */
@media (max-width: 1020px) {
  .container {
    max-width: 99vw;
    padding: 0 10px;
  }
  header .container { flex-wrap: wrap; }
}
@media (max-width: 820px) {
  .main-nav {
    gap: 12px;
  }
  .features-grid {
    gap: 14px;
  }
  .footer-nav { flex-wrap: wrap; gap: 10px; }
  .card {
    padding: 16px 10px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.37rem; }
  main, section {
    padding-left: 0;
    padding-right: 0;
  }
  .container {
    padding: 0 7px;
  }
  .content-grid, .features-grid {
    flex-direction: column;
    gap: 14px;
  }
  .features-grid > div {
    min-width: 0;
    width: 98%;
    align-items: flex-start;
  }
  .testimonial-card {
    align-items: flex-start;
    flex-direction: column;
    font-size: 1em;
  }
  .contact-details {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .footer-contact, .footer-nav, .footer-branding, .social-links {
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
  }
  .cookie-modal-content {
    padding: 22px 7px 18px 7px;
    width: 97vw;
    border-radius: 7px;
  }
  .mobile-menu { max-width: 100vw; width: 100vw; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.09rem; }
  .cta-btn, .cta-btn-large { font-size: 1rem; padding: 12px 16px; }
  section {
    margin-bottom: 34px;
    padding: 24px 0 30px 0;
  }
  .footer-contact span { font-size: .93em; }
}
@media (max-width: 540px) {
  .footer-branding img {
    height: 26px;
    margin-bottom: 8px;
  }
}

/* --- SHOW HAMBURGER ON MOBILE, HIDE DESKTOP NAV --- */
@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1021px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- ACCESSIBILITY FOCUS STATES --- */
a:focus, .cta-btn:focus, .mobile-menu-close:focus, .cookie-btn:focus {
  outline: 2px solid #24A19C;
  outline-offset: 2px;
}

/* --- SPECIAL NEON/ACCENT EFFECTS --- */
.cta-btn {
  box-shadow: 0 0 0 0 #6bf3ec, 0 2px 7px rgba(36,161,156,0.11);
}
.cta-btn:hover, .cta-btn:focus {
  box-shadow: 0 0 12px 1px #6bf3ec50, 0 6px 24px rgba(36,161,156,0.16);
}

/* --- MODERN ANIMATIONS & EFFECTS --- */
h1, h2, h3 { transition: color 0.13s; }
.card, .features-grid > div, .cta-btn { transition: transform .18s, box-shadow .23s, color 0.13s; }
.card:hover, .features-grid > div:hover { transform: translateY(-2px) scale(1.011); box-shadow: 0 8px 44px 0 #24A19C26;
}

/* --- PRINT UTILITY (optional, visually hidden on cookie/modal) --- */
@media print {
  .cookie-banner,
  .cookie-modal,
  .mobile-menu { display: none !important; }
}
