/* ==========================================================================
   1. GLOBALNE STYLE
   ========================================================================== */

body {
    font-family: var(--font);
    color: var(--grey-400);
    line-height: 140%;
    font-weight: 400;
    font-size: var(--p);
    background-color: var(--sand-100);
}

:root {
    --sand-0: #FFFFFF;
  --sand-50: #F7F5F4;
  --sand-100: #EFECE9;
  --sand-150: #E7E2DE;
  --sand-200: #DFD9D3;
  --sand-300: #CFC5BE;
  --sand-400: #BFB2A8;
  --sand-500: #AF9F92;
  --sand-600: #8F8277;
  --sand-700: #6F645C;
  --sand-800: #4F4741;
  --sand-850: #3F3834;
  --sand-900: #2F2926;
  --sand-950: #1F1B19;
  --sand-1000: #0F0C0B;
  --grey-0: #AFAFAF;
  --grey-50: #A0A0A0;
  --grey-100: #919191;
  --grey-150: #838383;
  --grey-200: #747474;
  --grey-300: #565656;
  --grey-400: #393939;
  --grey-500: #1B1B1B;
  --grey-600: #161616;


    /* ============= */

    --caption: 9px;
    --small: 12px;
    --p: 16px;
    --h6: 21px;
    --h5: 27px;
    --h4: 36px;
    --h3: 47px;
    --h2: 61px;
    --h1: 80px;
    --display1: 105px;
    --display2: 138px;
    --font: "Wix Madefor Display";
    /* ============= */

    --spacing-8: 8px;
    --spacing-16: 16px;
    --spacing-24: 24px;
    --spacing-32: 32px;
    --spacing-40: 40px;
    --spacing-56: 56px;
    --spacing-88: 88px;
    --spacing-112: 112px;
    --spacing-128: 128px;
    --spacing-144: 144px;
    --spacing-176: 176px;

    /* ============= */
    --radius-16: 16px;
    --radius-8: 8px
}


/* ==========================================================================
   2. TYPOGRAFIA
   ========================================================================== */

a {
    text-decoration: none;
    color: var(--sand-800);
    transition: all 0.3s;
}

a:hover{
    color: var(--sand-600);
    text-decoration: none;
}
a:active{
    color: var(--sand-600);
    text-decoration: none;
}
a:focus{
    color: var(--sand-600);
    text-decoration: none;
}


small {
    font-size: var(--small);
    line-height: 120%;
    font-weight: 400;
    font-family: var(--font);
    display: inline-block;
}

.caption {
    font-size: var(--caption);
    line-height: 120%;
    font-weight: 400;
    font-family: var(--font);
    text-transform: uppercase;
    letter-spacing: 0.36px;
}

p {
    font-size: var(--p);
    line-height: 140%;
    font-weight: 400;
    font-family: var(--font);
    color: var(--grey-400);
}

h6 {
    font-size: var(--h6);
    line-height: 130%;
    font-weight: 400;
    font-family: var(--font);
    color: var(--grey-500);
}

h5 {
    font-size: var(--h5);
    line-height: 130%;
    font-weight: 400;
    font-family: var(--font);
    color: var(--grey-500);
}

h4 {
    font-size: var(--h4);
    line-height: 120%;
    font-weight: 400;
    font-family: var(--font);
    color: var(--grey-500);
    letter-spacing: -0.36px;
}

h3 {
    font-size: var(--h3);
    line-height: 120%;
    font-weight: 400;
    font-family: var(--font);
    color: var(--grey-500);
    letter-spacing: -0.47px;
}

h2 {
    font-size: var(--h2);
    line-height: 120%;
    font-weight: 400;
    font-family: var(--font);
    color: var(--grey-500);
    margin-bottom: var(--spacing-16);
    letter-spacing: -0.61px;
}

h1 {
    font-size: var(--h1);
    line-height: 120%;
    font-weight: 400;
    font-family: var(--font);
    color: var(--grey-500);
    margin-bottom: var(--spacing-16);
    letter-spacing: -0.8px;
}

.display1 {
    font-size: var(--display1);
    line-height: 120%;
    font-weight: 300;
    font-family: var(--font);
    letter-spacing: -2.1px;
    color: var(--grey-500);
}

.display2 {
    font-size: var(--display2);
    line-height: 120%;
    font-weight: 300;
    font-family: var(--font);
    letter-spacing: -0.77px;
    color: var(--grey-500);
    letter-spacing: -2.76px;
}

/* ==========================================================================
   3. KOMPONENTY
   ========================================================================== */


.btn {
    padding: 12px 16px 12px 16px;
    border-radius: var(--radius-8);
    font-size: 16px;
    font-weight: 600;
}

.btn img {
    margin-left: 8px;
    transition: all 0.3s;
}

.btn:hover img {
    margin-left: 12px;
}

.btn-dark {
    background-color: var(--grey-500);
    color: var(--sand-0);
}

.btn-dark:hover {
    background-color: var(--grey-400);
    color: var(--sand-0);
    opacity: 1;
}

.btn-dark:active {
   background-color: var(--grey-400);
    color: var(--sand-0);
    opacity: 1;
}

.btn-dark:focus {
   background-color: var(--grey-400);
    color: var(--sand-0);
    opacity: 1;
}


.btn-secondary {
    background-color: var(--sand-500);
    color: var(--sand-950);
    border: none;
}

.btn-secondary:hover {
    background-color: var(--sand-400);
    color: var(--sand-950);
    opacity: 1;
}

.btn-secondary:active {
   background-color: var(--sand-400);
    color: var(--sand-950);
    opacity: 1;
}

.btn-secondary:focus {
   background-color: var(--sand-400);
    color: var(--sand-950);
    opacity: 1;
}

.btn-gsap {
  position: relative;
  overflow: hidden;
  z-index: 0; /* umożliwia efekt pod tekstem */
}

.button__flair {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  transform: scale(0);
  transform-origin: 0 0;
  will-change: transform;
  z-index: 0;
}

.button__flair::before {
  content: "";
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: 170%;
  aspect-ratio: 1/1;
  background-color: rgba(255, 255, 255, 0.1); /* domyślna jasna wersja */
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Specjalne wersje dopasowane kolorystycznie */
.btn-dark .button__flair::before {
  background-color: rgba(255, 255, 255, 0.08); /* jasny błysk na ciemnym tle */
}

.btn-secondary .button__flair::before {
  background-color: rgba(0, 0, 0, 0.05); /* ciemniejszy błysk na piaskowym tle */
}

.button__label {
  position: relative;
  z-index: 1;
}


.text-columns {
    column-count: 2;
    column-gap: 24px;
    /* Odstęp między kolumnami */
}

.radius-8{
    border-radius: var(--radius-8);
}
.radius-16{
    border-radius: var(--radius-16);
}

.sekcja{
    margin-bottom: var(--spacing-128);
}

.btn-marg{
    margin-top: var(--spacing-24);
}

/* ==========================================================================
   4. SEKCJE
   ========================================================================== */

/* ====== NAVBAR ====== */
.nav-link{
    font-weight: 600;
    font-size: var(--p);
    color: var(--grey-600);
    transition: all 0.3s;
}

.nav-link:hover{
    color: var(--sand-500);
}

.lokalizacja-box{
    background-color: var(--sand-0);
    padding: 16px 24px;
    display: inline-block;
    align-items: center;
    margin-top: var(--spacing-176);
}

.icon-location {
  width: 30px;
  height: auto;
  flex-shrink: 0;
}

.header{
    margin-top: var(--spacing-88);
}

.header h1{
    margin-top: var(--spacing-88);
}

.navbar-fixed-top{
    background-color: var(--sand-100);
}

.scroll-image {
  transform: translateY(0);
  will-change: transform;
  margin-top: 160px; /* punkt wyjściowy */
}

.care-info h2{
    margin-bottom: var(--spacing-88);
}

.oferta-home ul{
    margin-top: var(--spacing-56);
}

.diagnostyka-image-wrapper {
  position: relative;
  aspect-ratio: 3/4;
}

.diagnostyka-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.diagnostyka-image.active {
  opacity: 1;
  z-index: 1;
}

.diagnostyka-list li {
  cursor: default;
  margin-bottom: 1.25rem;
  font-weight: 600;
  transition: color 0.3s;
}

.diagnostyka-list li:hover {
  color: var(--bs-primary);
}

.diagnostyka-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all 0.3s;
}

.diagnostyka-item:hover{
padding-left: 16px;
}

.number {
  min-width: 2.5rem;
  color: var(--grey-400);
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.4;
  padding-top: 0.35rem;
  transition: all 0.3s;
}

.diagnostyka-item:hover .number{
  color: var(--sand-500);
}

.zaufanie-box{
    background-color: var(--sand-200);
    padding: 32px 40px;
}

.zaufanie-box img{
    margin-bottom: var(--spacing-56);
}

.zaufanie-boxy{
    margin-top: var(--spacing-56);
}

.wizyta {
  background-image: url("../img/wizyta.webp");
  background-size: 120%;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  border-radius: var(--radius-16);
  padding-top: var(--spacing-144);
  padding-bottom: var(--spacing-144);
  transition: none;
}

.wizytaw{
  background-image: url("../img/wizyta2.webp");
}

.wizyta-box{
    background-color: var(--sand-0);
    padding: 32px 24px;
}

.wizyta-box h4{
    margin-bottom: var(--spacing-16);
}

.sticky-column {
  position: sticky;
  top: 128px;
}

.footer{
 background-color: var(--grey-500);   
 padding-top: var(--spacing-112);
}

.footer-bottom{
  padding-top: var(--spacing-88);  
}

.footer h6{
    color: var(--grey-50);
}

.footer li{
    font-size: var(--p);
    color: var(--sand-0);
    list-style-type: none;
    margin-bottom: var(--spacing-16);
}

.footer ul{
    padding-left: 0px;
}

.footer .footer-links a{
    color: var(--sand-0);
}

.footer .footer-links a:hover{
    color: var(--sand-500);
}

.footer-bottom p{
    font-size: 12px;
    color: var(--grey-150);
}

.footer-bottom a{
    font-size: 12px;
    color: var(--grey-150);
}

.footer-bottom a:hover{
    color: var(--sand-500);
}

.footer-links li {
  position: relative;
  overflow: hidden;
}

.footer-links a {
  display: inline-block;
  position: relative;
  padding-right: 24px;
}

.footer-arrow {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%) translateX(-6px);
  opacity: 0;
  transition: none;
  pointer-events: none;
}

.svg-background {
  position: fixed;
  top: 10%;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.svg-floating {
  position: absolute;
  width: auto;
will-change: transform;
}

.page-bg{
  left: 55%;
}

.reveal-text {
  overflow: hidden;
}

.reveal-text .char {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
}

.diagnostyka-sticky {
  position: sticky;
  top: 80px;
}


.page-header{
  margin-bottom: var(--spacing-88);
  margin-top: var(--spacing-128);
}

.lekarz {
  position: relative;
}

.lekarz h5{
  margin-top: var(--spacing-16);
}

.img-wrapper {
  position: relative;
}

.plus-button {
  position: absolute;
  bottom: 16px;
  right: 16px;
  height: 48px;
  width: 48px;
  background: var(--sand-0);
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  padding: 0 12px;
  transition: width 0.3s ease;
}

.plus-button .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  font-weight: bold;
  color: var(--grey-500);
  z-index: 2;
  pointer-events: none;
}

.plus-button .label {
  display: inline-block;
  opacity: 0;
  transform: translateX(8px);
  white-space: nowrap;
  font-size: 14px;
  color: var(--grey-500);
  padding-left: 20px; /* miejsce na plusa */
  line-height: 48px;
  height: 48px;
  z-index: 1;
}

.doctor-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  overflow-y: auto;
}

.doctor-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 32px;
  border-radius: 16px;
  width: 50%;
  max-width: 720px;
  position: relative;
}

.doctor-modal-close {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  border: none !important;
  background-color: transparent !important;
}

.doctor-modal-close:focus-visible {
  outline: none;
  outline-offset: 0px;
}

.doctor-modal-close:focus:not(:focus-visible) {
  outline: none;
}

.doctor-modal h4{
  margin-top: var(--spacing-40);
}

.lekarze-boxy{
  margin-top: var(--spacing-40);
}

.badge-custom {
  background-color: var(--sand-200);
  color: var(--grey-500);
  padding: 4px 6px;
  font-size: var(--caption);
  border-radius: 4px;
  display: inline-block;
  line-height: 120%;
  letter-spacing: 0.36px;
  text-transform: uppercase;
}

.kategorie-badge{
  margin-top: var(--spacing-88);
}

.right-info h5{
  margin-top: var(--spacing-16);
}

.zakres ul{
  margin-top: var(--spacing-56);
}

.zakres li{
  margin-bottom: var(--spacing-32);
}

.zakres li img{
  width: 18px;
  height: 18px;
}

.badania h6{
  margin-top: -4px;
}

.leczenie-boxy{
  margin-top: var(--spacing-56);
}

.accordion.custom-pricing .accordion-button {
  background-color: transparent;
  box-shadow: none;
  padding: 24px 16px;
  color: var(--grey-500);
  font-size: var(--h6);
  line-height: 130%;
font-family: var(--font);
}

.accordion.custom-pricing .accordion-button:not(.collapsed) {
   color: var(--grey-500);
}

.accordion.custom-pricing .accordion-body {
  padding-top: 0;
  padding-bottom: 1rem;
}

.accordion.custom-pricing li {
  font-size: var(--p);
   color: var(--grey-400);
}

.accordion-item{
  margin-bottom: var(--spacing-32);
}

.accordion-button::after {
  display: none !important;
}

.accordion-button .icon-toggle {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--sand-200, #e9e2dc);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s ease;
}

/* Ikona jako ::before */
.accordion-button .icon-toggle::before {
  content: "+";
  font-size: 20px;
  color: var(--grey-400);
  font-weight: 600;
  transition: transform 0.3s ease;
}

/* Po otwarciu sekcji – zamieniamy + na – */
.accordion-button:not(.collapsed) .icon-toggle::before {
  content: "–";
}

.alert-secondary{
  background-color: var(--sand-150) !important;
  border: 1px solid var(--sand-300) !important;
  font-size: var(--p);
  color: var(--grey-200);
}

.kontakt-but{
  margin-top: 24px;
}

.mapa iframe{
  height: 450px;
  border-radius: var(--radius-16);
  filter: grayscale(60%);
}

.mapa{
  margin-top: var(--spacing-88);
}

.adres{
  margin-top: var(--spacing-88);
  margin-bottom: var(--spacing-56);
}

.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.sticky-top-centrum{
  position: sticky;
  top: 80px;
}

.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.lightbox.show { display: flex; }

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 16px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  z-index: 1;
  border-radius: 8px;
}
.lightbox-close { top: 10px; right: 20px; }
.lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }

.lightbox-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: zoom-out;
  z-index: 1;
}


/* ==========================================================================
   6. MEDIA QUERIES
   ========================================================================== */
@media (min-width: 1920px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1660px;
    }
}

@media (min-width: 1600px) {

}

@media (max-width: 1440px) {
   
  
}

@media (max-width: 1280px) {
  :root {
    --caption: 8px;
    --small: 10px;
    --p: 14px;
    --h6: 18px;
    --h5: 22px;
    --h4: 28px;
    --h3: 36px;
    --h2: 48px;
    --h1: 56px;
    --display1: 70px;
    --display2: 80px;

    --spacing-8: 8px;
    --spacing-16: 12px;
    --spacing-24: 16px;
    --spacing-32: 24px;
    --spacing-40: 32px;
    --spacing-56: 40px;
    --spacing-88: 64px;
    --spacing-112: 80px;
    --spacing-128: 96px;
    --spacing-144: 112px;
    --spacing-176: 128px;
  }

  .lokalizacja-box{
    margin-top: var(--spacing-88);
  }

  .nav-link{
    font-size: 14px;
  }

  .nav-item .btn{
    font-size: 14px;
  }
   .navbar-nav.gap-3 {
    gap: 0.5rem !important;
  }

  .lekarz h5{
    font-size: var(--h6);
  }

  .doctor-modal-content{
    width: 70%;
  }
}

@media (max-width: 768px) {
  :root {
    --caption: 8px;
    --small: 10px;
    --p: 14px;
    --h6: 16px;
    --h5: 20px;
    --h4: 24px;
    --h3: 30px;
    --h2: 40px;
    --h1: 48px;
    --display1: 60px;
    --display2: 70px;

    --spacing-8: 8px;
    --spacing-16: 12px;
    --spacing-24: 14px;
    --spacing-32: 20px;
    --spacing-40: 28px;
    --spacing-56: 32px;
    --spacing-88: 48px;
    --spacing-112: 64px;
    --spacing-128: 72px;
    --spacing-144: 88px;
    --spacing-176: 96px;
  }

  .care-info{
    margin-bottom: var(--spacing-88);
  }

   .page-header{
    margin-top: var(--spacing-144);
  }
 
}

@media (max-width: 480px) {

:root {
    --h2: 36px;
    --h1: 42px;
}

  .scroll-image{
    margin-top: var(--spacing-8);
    margin-bottom: var(--spacing-40);
  }
   .diagnostyka-item p{
    margin-bottom: 0px;
  }

  .diagnostyka-sticky{
    margin-top: var(--spacing-32);
  }

  .wizyta{
    background-image: none;
    padding-top: 0px;
    padding-bottom: 0px;
  }

  .navbar-nav  {
  align-items: start !important;
  }

  .navbar-collapse{
    padding-top: var(--spacing-56);
  }

  .oto-centrum img{
    margin-bottom: var(--spacing-32);
  }

  .oto-centrum .btn img{
    margin-bottom: 0px !important;
  }

    #pricingAccordion .accordion-body li > strong {
    padding-left: 12px;
    padding-right: 8px;
    text-align: right;
    white-space: nowrap;
  }
  
  #pricingAccordion .accordion-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  #pricingAccordion .accordion-button {
    padding-left: 16px;
    padding-right: 16px;
  }

  .accordion-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem; /* lub mniej */
}

.accordion-button .icon-toggle {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kontakt .text-center{
  text-align: left !important;
}

.doctor-modal-content {
        width: 96%;
    }

}
