/* ==================================================
   FLUXSHORE - VINTAGE RETRO FLEXBOX CSS
   Brand colors: #214262 (primary), #E0F5FA/#ffffff (secondary), #27B1A9 / #22807b (accent)
   Fonts: 'Montserrat' for headings, 'Roboto' for body (load via HTML or fallback)
   Retro add-ons: nostalgic colorways, subtle textures/patterns, vintage font accents
   Only flexbox for layouts. Spacing as per instructions.
   ================================================== */
/* ========== RESET & BASE ========== */
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,font,img,ins,kbd,q,s,samp,
small,strike,strong,sub,sup,tt,var,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 {
  font-family: 'Roboto', Arial, sans-serif;
  background-color: #FAF5ED;
  color: #2B2B2B;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="1" cy="1" r="1" fill="%23e0f5fa" fill-opacity="0.34"/></svg>');
}
img { max-width:100%; height:auto; display:block; }
a { color: #214262; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #27B1A9; outline: none; }
ul,ol { margin-left: 20px; }
strong, b { font-weight: bold; }
hr { border:0; height:1px; background:#ede5d4; margin:28px 0; }

/* Font face for retro effect (Montserrat/Roboto) - should be loaded in HTML */

/* ========== TYPOGRAPHY HIERARCHY ========== */
h1, .h1 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 700;
  color: #2B2B2B;
  letter-spacing: -1px;
  margin-bottom: 16px;
  text-shadow: 1px 2px 0 #E0F5FA, 0 2px 12px #f6eec3;
}
h2, .h2 {
  font-family: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  font-size: 2rem;
  line-height: 1.18;
  font-weight: 600;
  color: #214262;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  text-shadow: 1px 1px 0 #ede4cb;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #22807b;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
h4,h5,h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #555;
  font-weight: 500;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 16px;
}
code,pre {
  font-family: 'Fira Mono', 'Consolas', monospace;
  background: #ede4cb;
  border-radius: 3px;
  padding: 2px 6px;
}

/* ========== LAYOUT & SPACING ========== */
.container {
  width: 100%;
  max-width:1100px;
  margin-left:auto;
  margin-right:auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  box-shadow: 0 12px 32px 0 rgba(33,66,98,0.06), 0 2px 8px 0 rgba(33,66,98,0.02);
  position: relative;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.feature-grid,
.team-list,
.step-list .process-icons,
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
/* Team/doctor cards on lekarze.html/about.html */
.team-list, .content-wrapper.team-list, .content-wrapper .team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.team-member-card,.doctor-bio-card {
  background: #F3EDDF;
  border-radius: 12px;
  border:2px solid #e3d7c0;
  box-shadow: 0 2px 12px rgba(33,66,98,0.04);
  padding: 22px 20px;
  margin-bottom: 16px;
  min-width: 240px;
  max-width: 320px;
  font-size: 1.07rem;
  display: flex;
  flex-direction: column;
  gap:4px;
}

/* ========== HEADER & NAV ========== */
header {
  background: #214262;
  box-shadow: 0 8px 24px -6px rgba(33,66,98,0.09);
  padding:0;
  position: relative;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
}
header a img {
  height: 46px;
  width: auto;
  margin-right: 18px;
}
.main-nav {
  display: flex;
  gap: 18px;
}
.main-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-shadow: 0 2px 8px #18405F44;
  padding: 7px 10px;
  border-radius: 6px;
  transition: background .18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #E0F5FA;
  color: #214262;
}
/* CTA Button in header */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #27B1A9;
  color: #fff!important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1.07rem;
  padding: 11px 32px;
  border-radius: 32px;
  border: none;
  text-shadow: 0 1px 7px #18405F21;
  box-shadow: 0 3px 16px 0 #22807b33;
  transition: background .14s, box-shadow .27s, transform .25s;
  margin-left: 14px;
  cursor: pointer;
  letter-spacing: 0.6px;
  position: relative;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: #214262;
  color: #fff;
  box-shadow: 0 2px 8px 0 #21426277;
  transform: translateY(-1px) scale(1.025);
}

/* ----- MOBILE BURGER MENU ----- */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border:0;
  color: #fff;
  cursor:pointer;
  margin-left: 8px;
  padding:7px 8px;
  border-radius: 6px;
  transition: background .2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #cfc7b8;
  color: #214262;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: #FFF8EA;
  z-index: 3000;
  transform: translateX(-120%);
  transition: transform .37s cubic-bezier(.86,.01,.13,1.05);
  box-shadow: 4px 0 32px #21426226;
  padding: 0 0 20px 0;
  pointer-events:none;
  opacity: 0.97;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events:auto;
  box-shadow: 0 0 0 100vw #21426233;
}
.mobile-menu-close {
  font-size:2rem;
  background: none;
  border: none;
  color: #214262;
  align-self:flex-end;
  margin: 26px 30px 18px 0;
  cursor:pointer;
  transition: color .14s;
  padding:6px 10px;
  border-radius: 6px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #27B1A9;
  background: #F5EAB6;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding:8px 34px 12px 38px;
}
.mobile-nav a {
  color: #214262;
  font-size: 1.28rem;
  font-family:'Montserrat',Arial,sans-serif;
  font-weight: 620;
  padding:12px 0;
  border-bottom: 1px dotted #e3d7c0;
  transition: color .13s, background .1s;
  border-radius: 2.5px;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #27B1A9;
  background: #fceec3;
  padding-left: 9px;
}

/* ========== HERO SECTIONS ========== */
.hero {
  background-color: #214262;
  background-image: linear-gradient(120deg, #E0F5FA 0%, #214262 65%, #FAF5ED 100%);
  border-radius: 0 0 36px 36px;
  padding: 64px 0 48px 0;
  margin-bottom:60px;
  box-shadow: 0 6px 30px -8px #18405F29;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.hero .content-wrapper {
  gap: 18px;
  color: #fff;
  text-shadow: 0 2px 10px #214262c6;
}
.hero h1, .hero h2, .hero p {
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 1px 2px 0 #18405Faa,
               0 2px 15px #18405F41;
}
.hero p {
  font-size: 1.2rem;
  color: #E0F5FA;
}
.hero .btn-primary {
  background: #FFF8EA;
  color: #229488!important;
  box-shadow:0 2px 8px #21426233;
  margin-left:0;
}
.hero .btn-primary:hover, .hero .btn-primary:focus {
  color: #fff!important;
  background: #27B1A9;
}

/* ========== FEATURE & CARD GRIDS ========== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top:18px;
}
.feature-grid > div {
  flex:1 0 260px;
  min-width:220px;
  background:#fffdfa;
  border-radius: 11px;
  box-shadow: 0 2px 16px #21426209;
  border:1.7px solid #ede5d4;
  padding: 28px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap:8px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .19s;
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  box-shadow: 0 4px 26px 0 #21426232;
}
.feature-grid img {
  height:48px;
  width:auto;
  margin-bottom:6px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap:24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #ffffffbb;
  border-radius: 13px;
  box-shadow: 0 7px 18px 0 #21426216;
  padding: 22px 20px;
}

/* Testimonials */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 26px 18px 20px;
  background: #fffdfa;
  border-radius: 16px;
  border:2px dashed #ede5d4;
  box-shadow: 0 1px 8px #2142620A;
  min-width: 230px;
  max-width:400px;
  flex:1 0 240px;
  margin-bottom: 20px;
  font-size:1.07rem;
  color:#232626;
}
.testimonial-card p {
  margin-bottom: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #2B2B2B;
  text-shadow:none;
}
.testimonial-card span {
  font-size: .98rem;
  color: #22807b;
  font-style: italic;
  font-family: 'Montserrat', Arial, sans-serif;
  align-self: flex-end;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap:30px;
  flex-wrap: wrap;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.faq-list, .step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.faq-list > div {
  background: #E0F5FA;
  border-radius: 10px;
  padding: 20px 16px 14px 22px;
  flex:1 0 250px;
  margin-bottom: 20px;
  min-width: 200px;
  border-left: 4px solid #22807b;
  box-shadow:0 2px 7px #21426211;
}

/* Table styling (cennik) */
table {
  border-collapse: separate;
  border-spacing:0;
  margin: 18px auto 24px auto;
  min-width:340px;
  background: #fffdfa;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:0 2px 26px 0 #21426211;
}
thead th {
  background: #E0F5FA;
  color: #214262;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size:1.09rem;
  font-weight:700;
  padding:12px 24px;
}
tbody td {
  padding:13px 22px;
  font-size: 1rem;
  color: #2B2B2B;
  border-bottom: 1px solid #ede4cb;
}
tbody tr:last-child td { border-bottom: none; }

/* Ol: retro-style counter for main steps */
ol {
  list-style: decimal inside;
  padding:0;
  margin-left: 0;
  margin-bottom: 16px;
}

.process-icons {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 12px;
}
.process-icons img {
  width:44px; height:44px;
  filter: grayscale(0.3) brightness(0.89) contrast(1.15);
  opacity:.9;
}

/* Footer */
footer {
  background: #214262;
  color: #eee;
  padding-top: 36px;
  padding-bottom: 20px;
  border-radius: 52px 52px 0 0/ 34px 34px 0 0;
  box-shadow: 0 -6px 20px -2px #21426233;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 14px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap:18px;
  margin:8px 0 0 0;
}
.footer-nav a {
  color: #E0F5FA;
  font-size: 1.01rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color:#27B1A9;
}
.footer-contact span, .footer-contact {
  font-size:0.99rem;
  color: #fff;
  letter-spacing: 0.04px;
  display: flex;
  align-items:center;
  gap:6px;
  margin-bottom: 6px;
}
.footer-contact img {
  height:18px; width:auto; margin-right: 8px; opacity:0.6;
}
footer img {
  max-height: 48px; margin-bottom: 8px;
  filter:drop-shadow(0 2px 10px #F6EEC3);
}

/* ========== COOKIE CONSENT BANNER ========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9001;
  background:#2B2B24;
  color:#fff6e8;
  font-size: 1rem;
  padding: 17px 22px 13px 22px;
  box-shadow: 0 -4px 16px #21426233;
  border-radius: 15px 15px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  transition: transform .39s, opacity .22s;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events:none;
  transform: translateY(120%);
}
.cookie-banner p {
  flex: 1 1 250px;
  margin:0 12px 0 0;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  border-radius: 23px;
  padding: 9px 24px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 2px;
  margin-bottom:4px;
  font-size: 0.99rem;
  background: #E0F5FA;
  color: #214262;
  transition: background .13s, color .13s, box-shadow .17s;
}
.cookie-banner .accept-btn {
  background: #27B1A9;
  color: #fff;
}
.cookie-banner .accept-btn:hover,.cookie-banner .accept-btn:focus {
  background: #22807b;
  color: #fff;
}
.cookie-banner .settings-btn {
  background: #ede4cb;
  color: #214262;
}
.cookie-banner .settings-btn:hover,.cookie-banner .settings-btn:focus {
  background: #d7c5a8;
}
.cookie-banner .reject-btn {
  background: #F3EDDF;
  color: #8a410e;
}
.cookie-banner .reject-btn:hover,.cookie-banner .reject-btn:focus {
  background: #edc085;
  color: #fff;
}

/* Cookie modal */
.cookie-modal-overlay {
  position:fixed;
  z-index:10008;
  left:0; top:0; width:100vw; height:100vh;
  background:rgba(33,66,98,0.64);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #FFF8EA;
  border-radius: 16px;
  max-width: 420px;
  width: 90%;
  padding: 28px 32px 18px 32px;
  box-shadow: 0 2px 48px #21426244;
  color: #214262;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal h2 {
  margin-bottom:10px; font-size: 1.3rem; color:#22807b;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap:18px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap:12px;
}
.cookie-modal .cookie-toggle {
  width:40px; height: 20px; border-radius:12px;
  background: #ede4cb;
  position: relative;
  cursor: pointer;
  box-shadow:0 2px 5px #21426218;
  transition: background .17s;
  margin-left:6px;
}
.cookie-modal .cookie-toggle.on {
  background: #27B1A9;
}
.cookie-modal .cookie-toggle-slider {
  position: absolute;
  left:2px; top:2px;
  width:16px; height:16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #21426233;
  transition: left .18s;
}
.cookie-modal .cookie-toggle.on .cookie-toggle-slider {
  left: 22px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top:5px;
  flex-wrap:wrap;
}
.cookie-modal .close-modal {
  background: #E0F5FA;
  color: #214262;
  padding: 8px 22px;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.cookie-modal .close-modal:hover,.cookie-modal .close-modal:focus {
  background: #214262;
  color:#fff;
}

/* ========== RESPONSIVE (MOBILE-FIRST) ========== */
@media (max-width: 1100px) {
  .container { max-width: 98vw; }
}
@media (max-width: 980px){
  .section { padding: 34px 6px; }
  .footer-grid { gap: 20px; }
  .main-nav { gap: 10px; }
}
@media (max-width: 820px){
  .hero {
    padding: 38px 0 30px 0;
    margin-bottom:40px;
    border-radius:0 0 22px 22px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-wrap: wrap;
    gap: 6px;
    padding:6px 10px;
  }
  .main-nav { display: none; }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-grid {
    flex-direction: column;
    align-items:flex-start;
    gap:18px;
    padding:0 2px;
  }
  .content-wrapper,
  .team-list,
  .feature-grid,
  .card-container,
  .step-list .process-icons,
  .testimonials,
  .faq-list { flex-direction: column; gap:20px; }
  .section { padding: 27px 3px; }
  .hero { padding-left: 0; padding-right:0; }
  .testimonials, .feature-grid { gap:20px; }
  table { min-width: 200px; font-size:0.97rem; }
}
@media (max-width:520px) {
  h1, .h1 { font-size: 1.56rem; }
  h2, .h2 { font-size: 1.18rem; }
  .footer-nav a, .footer-contact span, .main-nav a { font-size:0.98rem; }
  .btn-primary { font-size:0.98rem;padding:8px 24px; }
  .testimonial-card { max-width:100%; min-width: 0; }
}

/* Extra small devices */
@media (max-width:450px) {
  .container { padding-left:5px; padding-right:5px; }
  .hero { border-radius: 0; }
  .cookie-banner {padding: 12px 2px 9px 2px; gap: 8px;}
  .cookie-banner .cookie-btns {gap:7px;}
}

/* ========== MICRO-INTERACTIONS & EFFECTS ========== */
.btn-primary, .cookie-banner button, .cookie-modal .close-modal {
  transition: background 0.16s, color 0.18s, box-shadow 0.17s, transform 0.15s;
}
.btn-primary:active, .cookie-banner button:active, .cookie-modal .close-modal:active {
  transform:scale(0.98);
}
.card:hover, .card:focus-within {
  box-shadow: 0 7px 32px #22807b15;
}
/* Card hover mask decoration */
.card::before, .feature-grid > div::before {
  content: '';
  display: block;
  position: absolute;
  left: -20px; top: -12px;
  width: 58px; height: 32px;
  background: url('data:image/svg+xml;utf8,<svg fill="none" xmlns="http://www.w3.org/2000/svg" width="68" height="32"><ellipse cx="34" cy="16" rx="34" ry="7" fill="%23eedeac" fill-opacity="0.18"/></svg>') no-repeat;
  z-index:0;
  opacity:0.75;
  pointer-events:none;
}
.card:before { left: auto; right: -28px; top: -19px; opacity:.70;}

/* Retro deco line under h2 */
h2::after {
  display: block;
  content: '';
  height: 3px;
  width: 58px;
  background: #ede4cb;
  border-radius: 8px;
  margin: 10px 0 0 0;
}

/* Vintage corner deco for sections */
.section::before {
  content: '';
  position: absolute;
  left: -16px;
  top: -16px;
  width: 28px;
  height: 28px;
  background: url('data:image/svg+xml;utf8,<svg fill="none" xmlns="http://www.w3.org/2000/svg" width="30" height="30"><rect x="0" y="0" width="30" height="30" rx="8" fill="%23f6eec3" fill-opacity="0.28"/></svg>') no-repeat;
  z-index:1;
  opacity: .7;
  pointer-events: none;
}
.section::after {
  content: '';
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 28px; height: 28px;
  background: url('data:image/svg+xml;utf8,<svg fill="none" xmlns="http://www.w3.org/2000/svg" width="30" height="30"><rect x="0" y="0" width="30" height="30" rx="8" fill="%23e0f5fa" fill-opacity="0.23"/></svg>') no-repeat;
  z-index:1;
  opacity: .65;
  pointer-events: none;
}

/* ========== UTILITY ========== */
.text-section {
  padding:20px;
}
/* Accessibility: Focus ring */
a:focus, button:focus, .btn-primary:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline:2px solid #27B1A9;
  outline-offset:2px;
}

/* Hide visually but keep for screen readers (for modal overlays) */
.sr-only { position: absolute; width: 1px; height: 1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* Remove arrow from number inputs for retro feel */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
input[type=number] { -moz-appearance: textfield; }
