/* Lodowa Porada – Scandinavian Clean CSS
   Brand: Lodowa Porada | Style: Scandinavian Clean
   Mobile-first, flexbox layout ONLY – NO CSS Grid. 
   */

/* === CSS RESET & BASE === */
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;
  border: 0;
}
body {
  background: #F7F7FC;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #233347;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img, picture, svg {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #0A5175;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #86D0EF;
}
:focus {
  outline: 2px solid #0A5175;
  outline-offset: 2px;
}

/* === TYPOGRAPHY SCALE === */
h1, .hero h1, .thankyou h1 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #0A5175;
}
h2 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: #0A5175;
}
h3 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: #233347;
  margin-bottom: 8px;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #233347;
}
strong {
  font-weight: 700;
}

/* === BUTTONS === */
.cta-btn, button.cta-btn, .newsletter .cta-btn, .contact .cta-btn, .hours .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background: #0A5175;
  color: #fff;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 32px;
  box-shadow: 0 2px 12px rgba(16, 54, 80, 0.06);
  border: none;
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
  cursor: pointer;
  margin-top: 20px;
  text-align: center;
  min-width: 165px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #86D0EF;
  color: #0A5175;
  box-shadow: 0 6px 24px rgba(16,54,80,0.10);
  transform: translateY(-2px) scale(1.025);
}
button {
  font-family: inherit;
  font-size: 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

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

/* === HEADER/NAVIGATION === */
header {
  background: #fff;
  border-bottom: 1.5px solid #E1ECF3;
  position: sticky;
  top: 0;
  z-index: 50;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 14px 0 14px 0;
  min-height: 56px;
}
.main-nav .logo-link {
  margin-right: 28px;
  display: flex;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #0A5175;
  padding: 7px 16px;
  border-radius: 24px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:not(.logo-link):hover,
.main-nav a:not(.logo-link):focus {
  background: #E1ECF3;
  color: #233347;
}
.main-nav .cta-btn {
  margin-left: auto;
  margin-right: 0;
  background: #86D0EF;
  color: #fff;
}
.main-nav .cta-btn:hover, .main-nav .cta-btn:focus {
  background: #0A5175;
  color: #fff;
}
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #0A5175;
  font-size: 2rem;
  border-radius: 8px;
  padding: 2px 12px;
  margin: 0 6px 0 0;
  box-shadow: 0 1px 4px rgba(10,81,117,0.04);
  border: 1px solid #E1ECF3;
  transition: background 0.15s, color 0.15s, box-shadow 0.18s;
  z-index: 104;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #E1ECF3;
  color: #233347;
}

/* Hide nav for mobile, show for desktop */
@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(247,247,252,0.97);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(0.45,0.5,0.39,0.98);
  z-index: 130;
  padding: 0;
  visibility: hidden;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}
.mobile-menu-close {
  font-size: 2rem;
  color: #0A5175;
  align-self: flex-end;
  background: transparent;
  border-radius: 24px;
  margin: 18px 18px 6px 0;
  padding: 4px 12px;
  transition: background 0.15s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #E1ECF3;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin-top: 0px;
  padding: 16px 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.14rem;
  font-weight: 500;
  color: #0A5175;
  background: none;
  padding: 14px 0 14px 0;
  border-radius: 6px;
  width: 100%;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E1ECF3;
  color: #233347;
}

/* === SECTIONS === */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}
.hero, .thankyou {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background: #E1ECF3;
  border-radius: 32px;
  margin-bottom: 48px;
  box-shadow: 0 5px 48px rgba(16,54,80,0.045);
}
.hero .container, .thankyou .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.features, .services, .services-overview, .categories, .schedule, .library, .download {
  margin-bottom: 60px;
  padding: 40px 0;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(16,54,80,0.07);
  border-radius: 18px;
  position: relative;
  padding: 24px;
  flex: 1 1 220px;
  min-width: 200px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 22px rgba(10,81,117,0.12);
  transform: translateY(-2px) scale(1.01);
}

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

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

/* === UL LISTS === */
ul, ol {
  margin-left: 20px;
  margin-bottom: 16px;
}
ul {
  list-style-type: disc;
}
ol {
  list-style-type: decimal;
}
.services ul, .features ul, .categories ul, .schedule ul, .faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-left: 0;
  padding-left: 18px;
}
.features ul li, .services ul li, .categories ul li, .faq-list > .text-section {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px 16px 50px;
  box-shadow: 0 1px 10px rgba(134,208,239,0.08);
  margin-bottom: 6px;
  position: relative;
  min-height: 48px;
  font-size: 1.05rem;
  color: #233347;
  display: flex;
  align-items: center;
}
.features ul li img, .categories ul li img {
  width: 28px;
  height: 28px;
  margin-right: 18px;
  position: absolute;
  left: 14px;
  top: 12px;
}
.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 8px;
}
.category-list li {
  min-width: 200px;
}
.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.topic-tags span {
  background: #E1ECF3;
  color: #0A5175;
  font-size: 0.97rem;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  border-radius: 18px;
  padding: 6px 15px;
  margin-bottom: 6px;
}

.quick-tips ul {
  padding-left: 15px;
  margin-top: 5px;
}

/* === PRICING === */
.price, .pricing {
  display: inline-block;
  background: #86D0EF;
  color: #fff;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.01rem;
  padding: 7px 17px;
  border-radius: 24px;
  margin-top: 8px;
  margin-bottom: 0;
  box-shadow: 0 1px 6px rgba(10,81,117,0.05);
}

/* === TESTIMONIALS === */
.testimonials, .download {
  margin-bottom: 60px;
  padding: 40px 0;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(16,54,80,0.06);
  margin-bottom: 20px;
  flex-wrap: wrap;
  transition: box-shadow 0.18s;
}
.testimonial-card p {
  color: #233347;
  font-style: italic;
  margin-bottom: 0;
  flex: 2 1 260px;
  font-size: 1.06rem;
}
.testimonial-card span {
  color: #0A5175;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 0.99rem;
  font-weight: 600;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 24px rgba(10,81,117,0.14);
}

/* === NEWSLETTER === */
.newsletter, .faq {
  margin-bottom: 60px;
  padding: 40px 0;
}
.newsletter .cta-btn,
.download .cta-btn {
  margin-top: 15px;
}

/* === CONTACT BLOCKS === */
.contact-info {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(16,54,80,0.06);
  margin-bottom: 15px;
  color: #233347;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.99rem;
}
.map-placeholder {
  background: #E1ECF3;
  color: #0A5175;
  border-radius: 14px;
  padding: 20px;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 1.01rem;
  text-align: center;
}

.hours ul, .schedule ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* === TEAM BIOS === */
.team-bios {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.team-bios .text-section {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 8px rgba(134,208,239,0.07);
}

/* === FAQ === */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

/* === LEGAL SECTIONS === */
.legal {
  background: #fff;
  border-radius: 24px;
  padding: 40px 20px;
  margin-bottom: 60px;
  box-shadow: 0 2px 12px rgba(16,54,80,0.07);
}
.legal h1, .legal h2 {
  margin-bottom: 10px;
}
.legal .text-section ul {
  margin-left: 1rem;
}

/* === FOOTER === */
footer {
  background: #fff;
  border-top: 1.5px solid #E1ECF3;
  margin-top: 60px;
}
footer .container {
  padding: 0 16px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: flex-start;
  margin-bottom: 8px;
  margin-top: 10px;
}
.footer-nav a {
  color: #0A5175;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-size: 0.97rem;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background 0.13s, color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #E1ECF3;
  color: #233347;
}
.footer-contact, .footer-social {
  margin-bottom: 13px;
  margin-top: 0;
  color: #527188;
  font-size: 0.97rem;
}
.footer-social img {
  width: 40px;
  height: 40px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 26px 0 10px 0;
}
@media (max-width: 768px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  display: flex;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(16,54,80,0.06);
  border-top: 1.5px solid #E1ECF3;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  z-index: 200;
  gap: 18px;
  animation: cookie-slidein 0.33s 0.12s ease backwards;
}
@keyframes cookie-slidein {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.cookie-banner p {
  color: #233347;
  font-size: 1rem;
  margin: 0;
  flex: 3;
}
.cookie-actions {
  display: flex;
  gap: 12px;
}
.cookie-actions button {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  padding: 9px 22px;
  font-size: 1rem;
  border-radius: 22px;
  border: 1.5px solid #E1ECF3;
  background: #F7F7FC;
  color: #0A5175;
  font-weight: 600;
  transition: background 0.17s, color 0.17s, border 0.17s;
}
.cookie-actions .accept {
  background: #86D0EF;
  color: #fff;
  border: 1.5px solid #86D0EF;
}
.cookie-actions .accept:hover, .cookie-actions .accept:focus {
  background: #0A5175;
  color: #fff;
  border-color: #0A5175;
}
.cookie-actions .reject {
  background: #fff;
  color: #233347;
  border-color: #E1ECF3;
}
.cookie-actions .reject:hover, .cookie-actions .reject:focus {
  background: #E1ECF3;
  color: #0A5175;
}
.cookie-actions .settings {
  background: #F7F7FC;
  color: #0A5175;
  border-color: #E1ECF3;
}
.cookie-actions .settings:hover, .cookie-actions .settings:focus {
  background: #E1ECF3;
  color: #0A5175;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 10px;
    gap: 12px;
  }
  .cookie-actions {
    width: 100%;
    gap: 9px;
  }
  .cookie-actions button {
    width: 100%;
  }
}

/* === COOKIE MODAL === */
.cookie-modal-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 210;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,51,71,0.11);
  transition: background 0.26s;
  animation: modal-in 0.24s ease;
}
@keyframes modal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 42px rgba(10,81,117,0.18);
  max-width: 96vw;
  width: 385px;
  padding: 34px 30px 27px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  animation: cookiescale 0.22s ease;
}
@keyframes cookiescale {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.22rem;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #0A5175;
  margin-bottom: 9px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin: 10px 0 20px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #E1ECF3;
  padding: 10px 13px;
  border-radius: 14px;
  width: 100%;
}
.cookie-category span {
  font-size: 1rem;
  color: #233347;
}
.cookie-category label {
  font-size: 1rem;
  color: #233347;
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #0A5175;
  cursor: pointer;
}
.cookie-category.disabled {
  opacity: 0.63;
  pointer-events: none;
}
.cookie-modal .cta-btn {
  width: 100%;
  margin-top: 0;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: #0A5175;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  background: #E1ECF3;
}

/* === THANK YOU === */
.thankyou {
  min-height: 320px;
  background: #E1ECF3;
  border-radius: 24px;
  margin-bottom: 40px;
  box-shadow: 0 3px 28px rgba(16,54,80,0.05);
  align-items: center;
  justify-content: center;
}
.thankyou .container {
  text-align: center;
}

/* === MEDIA QUERIES RESPONSIVE === */
@media (max-width: 991px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
}
@media (max-width: 768px) {
  .hero, .thankyou, .legal {
    padding: 26px 4px;
    min-height: 180px;
    border-radius: 18px;
  }
  .section, section {
    padding: 28px 5px;
    margin-bottom: 38px;
  }
  h1, .hero h1 {
    font-size: 1.44rem;
  }
  h2 {
    font-size: 1.15rem;
  }
  .content-wrapper {
    gap: 14px;
  }
  .features ul li, .services ul li, .categories ul li, .faq-list > .text-section {
    padding-left: 38px;
    font-size: 0.99rem;
    min-height: 36px;
  }
  .features ul li img, .categories ul li img {
    left: 8px;
    top: 8px;
    width: 22px;
    height: 22px;
  }
  .card, .team-bios .text-section {
    min-width: 80vw;
    padding: 16px;
  }
  .topic-tags span {
    font-size: 0.96rem;
    padding: 6px 10px;
  }
  footer .content-wrapper {
    gap: 8px;
    padding: 16px 0;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
    gap: 7px;
  }
  .testimonial-card p {
    font-size: 0.99rem;
  }
}

/* Ensure min 20px between cards/sections */
.section, section, .card, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}

/* Prevent overlapping, provide breathing room */
body > *:not(header):not(footer) {
  margin-top: 10px;
}
