/* 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;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #273044;
  background: linear-gradient(135deg, #F5F2ED 70%, #AE8E63 120%);
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  border-style: none;
  display: block;
}
a {
  color: #AE8E63;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:active, a:focus {
  color: #273044;
  outline: none;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}
button {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
  cursor: pointer;
}
hr {
  border: 0;
  border-top: 1px solid #e0e0e0;
  margin: 32px 0;
}

/* BASE TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #273044;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.1;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; }
h4 { font-size: 1.125rem; }
p, ul, ol, li, span { font-size: 1rem; line-height: 1.7; color: #273044; }
strong, b { font-weight: 600; }

@media (max-width: 768px) {
 h1 { font-size: 2rem; }
 h2 { font-size: 1.5rem; }
 h3 { font-size: 1.1rem; }
}

/* GENERAL CONTAINER, CONTENT, SECTIONS */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(255,255,255,0.95);
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(39,48,68,0.08);
  transition: box-shadow 0.2s;
}
@media (max-width: 768px) {
  .section {
    padding: 26px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 8px;
  }
}

/* FLEX UTILITIES */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(39,48,68,0.09);
  padding: 24px 20px;
  flex: 1 1 320px;
  transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(39,48,68,0.14);
  transform: translateY(-4px) scale(1.015);
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 24px;
  margin-bottom: 22px;
  background: #f5f2ed;
  border-left: 6px solid #AE8E63;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(39,48,68,0.06);
  font-family: 'Roboto', Arial, sans-serif;
  max-width: 560px;
  min-width: 0;
}
.testimonial-card p {
  color: #273044;
  font-size: 1.05rem;
  margin-bottom: 6px;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.97rem;
  color: #AE8E63;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* CTA BUTTONS & LINKS */
.cta-btn {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(96deg, #AE8E63 10%, #d3ba96 90%);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  padding: 14px 32px;
  border: none;
  border-radius: 40px;
  box-shadow: 0 6px 24px rgba(174,142,99,0.16);
  transition: background 0.22s, box-shadow 0.22s, color 0.18s, transform 0.15s;
  margin-top: 16px;
  margin-bottom: 16px;
  cursor: pointer;
  letter-spacing: 0.03em;
  text-align: center;
  text-shadow: 0 1px 2px rgba(39,48,68,0.10);
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #9b7641 0%, #AE8E63 70%);
  color: #fff;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 32px rgba(174,142,99,0.21);
  outline: none;
}
.tel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #273044;
  background: #f7f5f2;
  padding: 8px 18px;
  border-radius: 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.17s, color 0.17s;
  margin-left: 12px;
  text-decoration: none;
}
.tel-link img { width: 20px; height: 20px; }
.tel-link:hover, .tel-link:focus { background: #e0dbd2; color: #AE8E63; }

/* HEADER / NAVIGATION */
header {
  background: linear-gradient(87deg, #273044 80%, #AE8E63 130%);
  padding: 0;
  width: 100vw;
  position: relative;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(39,48,68,0.06);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 22px;
}
header img[alt="Perłowy Zmierzch"] {
  max-height: 46px;
  margin-right: 8px;
}
header nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.15s;
  text-decoration: none;
  position: relative;
}
header nav a:hover, header nav a:focus {
  color: #AE8E63;
}
header .cta-btn {
  margin: 0 0 0 20px;
  padding: 11px 32px;
  background: #AE8E63;
  background: linear-gradient(90deg, #AE8E63 50%, #ffecd2 200%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
}
header .cta-btn:hover,
header .cta-btn:focus {
  background: #AE8E63;
  color: #fff;
  box-shadow: 0 6px 18px rgba(174,142,99,0.33);
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  background: #fff;
  color: #273044;
  font-size: 2rem;
  border-radius: 8px;
  padding: 3px 20px 7px 20px;
  margin-left: 8px;
  transition: background 0.19s;
  z-index: 202;
}
.mobile-menu-toggle:focus {
  background: #AE8E63;
  color: #fff;
  outline: none;
}
@media (max-width: 1020px) {
  header nav { display: none; }
  header .cta-btn { display: none; }
  .mobile-menu-toggle { display: inline-flex; }
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(100deg, #F5F2ED 60%, #D3BA96 140%);
  box-shadow: 0 2px 32px rgba(39,48,68,0.15);
  z-index: 2002;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.47,1.64,.41,.8);
  padding: 0;
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 18px;
  top: 18px;
  background: #AE8E63;
  color: #fff;
  font-size: 2rem;
  border-radius: 40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.19s, color 0.16s;
  z-index: 2200;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #d3ba96;
  color: #273044;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 80px 0 0 48px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  color: #273044;
  padding: 10px 18px;
  border-radius: 8px;
  width: fit-content;
  transition: background 0.13s, color 0.16s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #AE8E63;
  color: #fff;
}
@media (max-width: 576px) {
  .mobile-nav { margin-left: 25px; }
  .mobile-menu { padding: 0; }
}

/* MAIN & PAGE LAYOUTS */
main {
  flex: 1 1 auto;
  width: 100%;
  padding-top: 28px;
  background: none;
}
section {
  margin-bottom: 60px;
  padding: 40px 0;
}

@media (max-width: 768px) {
  main { padding-top: 16px; }
  section { padding: 20px 0; margin-bottom: 36px; }
  .card-container, .content-grid { gap: 14px; }
}

/* FOOTER */
footer {
  background: #273044;
  color: #fff;
  padding: 0 0 16px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
footer .content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 38px;
  margin: 0;
  padding: 36px 0 0 0;
  flex-wrap: wrap;
}
footer h3 { color: #AE8E63; font-size: 1.15rem; margin-bottom: 10px; }
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #AE8E63;
  outline: none;
}
footer p, footer span, footer .copyright {
  color: #F5F2ED;
  font-size: 0.97rem;
}
footer .copyright {
  flex: 1 1 100%;
  margin-top: 16px;
  font-size: 0.92rem;
  color: #d3ba96;
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 22px;
  }
}
@media (max-width: 600px) {
  footer .content-wrapper { padding: 22px 0 0 0; }
}

/* MAP PLACEHOLDER */
.map {
  width: 100%;
  min-height: 160px;
  background: linear-gradient(92deg, #e6e7e8 70%, #f5f2ed 120%);
  color: #ae8e63;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(39,48,68,0.06);
}

/* RESPONSIVE - FLEX ON MOBILE */
@media (max-width: 900px) {
  .card-container, .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .card {
    min-width: 0;
    width: 100%;
  }
  .section { padding: 26px 6px; }
}

/* MICROINTERACTIONS, SHADOWS, ANIMATIONS */
.card, .testimonial-card {
  transition: box-shadow 0.17s, transform 0.13s;
}
.testimonial-card:hover {
  box-shadow: 0 4px 24px rgba(174,142,99,0.10);
  border-left-color: #d3ba96;
}

/* ICON ALIGNING */
img[alt="Adres"], img[alt="Telefon"], img[alt="Email"], img[alt="Godziny pracy"], img[alt^="icon-"] {
  vertical-align: middle;
  width: 18px;
  height: 18px;
  margin-right: 7px;
  display: inline-block;
}

/* COOKIE CONSENT BANNER (Fixed Bottom) */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #273044;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 2500;
  padding: 18px 10px 18px 10px;
  box-shadow: 0 -4px 24px rgba(39,48,68,0.17);
  animation: bannerSlideIn 0.7s cubic-bezier(0.25,1,.35,1.2);
  font-size: 1rem;
}
@keyframes bannerSlideIn {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  margin: 0 6px;
  padding: 8px 22px;
  box-shadow: 0 3px 10px rgba(174,142,99,0.13);
  transition: background 0.19s, color 0.14s, box-shadow 0.14s, transform 0.13s;
}
.cookie-banner .accept {
  background: #AE8E63;
  color: #fff;
}
.cookie-banner .reject {
  background: #fff;
  color: #AE8E63;
  border: 1px solid #AE8E63;
}
.cookie-banner .settings {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus {
  box-shadow: 0 6px 22px rgba(174,142,99,0.25);
  transform: translateY(-2px) scale(1.012);
  outline: none;
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: #ae8e63; color: #fff;
  border-color: #ae8e63;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    font-size: 0.97rem;
    gap: 10px;
    padding: 18px 6px 18px 6px;
  }
}

/* COOKIE MODAL POPUP */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0;
  top: 0; bottom: 0;
  background: rgba(39,48,68,0.25);
  z-index: 2505;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInModal 0.3s ease;
}
@keyframes fadeInModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 48px rgba(39,48,68,0.25);
  padding: 36px 26px 26px 26px;
  max-width: 420px;
  width: 95vw;
  font-family: 'Roboto', Arial, sans-serif;
  color: #273044;
  position: relative;
}
.cookie-modal h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #AE8E63;
  margin-bottom: 22px;
  font-size: 1.28rem;
  text-align: center;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}
.cookie-modal .cookie-category:last-child { border: none; }
.cookie-modal .cookie-category label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #273044;
}
.cookie-modal .toggle {
  width: 48px;
  height: 24px;
  border-radius: 24px;
  background: #e0e0e0;
  position: relative;
  transition: background 0.18s;
  flex-shrink: 0;
}
.cookie-modal .toggle.enabled {
  background: #AE8E63;
}
.cookie-modal .toggle::before {
  content: '';
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 1px;
  left: 1px;
  transition: left 0.19s;
  box-shadow: 0 2px 8px rgba(39,48,68,0.11);
}
.cookie-modal .toggle.enabled::before {
  left: 25px;
}
.cookie-modal .cookie-modal-actions {
  margin-top: 18px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: center;
}
.cookie-modal .cookie-modal-actions .cookie-btn {
  min-width: 90px;
  padding: 9px 20px;
}
.cookie-modal .close-modal-btn {
  position: absolute;
  right: 14px;
  top: 14px;
  background: #d3ba96;
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.13s, color 0.13s;
  cursor: pointer;
}
.cookie-modal .close-modal-btn:hover, .cookie-modal .close-modal-btn:focus {
  background: #AE8E63;
}

@media (max-width: 460px) {
  .cookie-modal { padding: 20px 5vw 8px 5vw; }
}

/* UTILITY CLASSES */
.mt-0 { margin-top: 0 !important; }
.mt-24 { margin-top: 24px !important; }
.mb-12 { margin-bottom: 12px !important; }
.mb-24 { margin-bottom: 24px !important; }
.pt-16 { padding-top: 16px !important; }
.pb-16 { padding-bottom: 16px !important; }

/* SCROLLBAR - subtle modern look */
::-webkit-scrollbar { width: 8px; background: #F5F2ED; }
::-webkit-scrollbar-thumb {
  background: #AE8E63;
  border-radius: 4px;
}

/* OVERRIDES & SPECIFICS */
section:not(:last-child) { margin-bottom: 60px; }

/* FAQ, Tips List on poradnik.html */
h3 ~ ul, h3 ~ ol { margin-bottom: 20px; }

/* HIDING ELEMENTS FROM ACCESSIBILITY IF NEEDED */
[aria-label="Mapa lokalizacji"] { color: #ae8e63; font-style: normal; }

/* Accessibility: focus visible */
:focus-visible {
  outline: 2px solid #AE8E63;
  outline-offset: 1px;
}

/* ============================================
   END OF CSS
  ============================================= */

@media (max-width: 600px) {
 .cta-btn { font-size: 1rem; padding: 11px 18px; }
 .testimonial-card { padding: 16px 12px; }
 .container, .content-wrapper { padding: 0; }
}
