/* GLOBAL */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #2e3744;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* TOP BAR */
.topbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: none;
}

@media (min-width: 768px) {
    .topbar { display: block; }
}

.topbar-inner {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    padding: 8px 0;
    font-size: 14px;
}

.topbar-link{
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    text-decoration: none;
    transition: color .2s;
}

.topbar-link:hover {
    color: #0B68A2;
}


/* NAVIGATION */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 0;
}

/* LOGO */
.logo-img {
    height: 60px; /* uprav podle potřeby */
    width: auto;
    display: block;
}

/* NAV LINKS */
.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        gap: 32px;
        align-items: center;
        font-size: 16px;
        font-weight: 500;
    }
}

.nav-links a {
    color: #2e3744;
    text-decoration: none;
    transition: color .2s;
}

.nav-links a:hover {
    color: #357CC5;
}

.nav-links .active {
    color: #357CC5;
    font-weight: 600;
}

/* BUTTON */
.btn-primary {
    padding: 10px 20px;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 10px;
    transition: background .2s;
}

.btn-primary:hover {
    background: #eaf1f9;
}

.btn-primary.active {
    background: #eaf1f9;
}

/* MOBILE MENU BUTTON */
.mobile-menu-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: #2e3744;
    display: block;
    cursor: pointer;

    /*background-color: red;*/


}

.mobile-menu-btn .icon {
    width: 32px;
    height: 32px;
}


@media (min-width: 768px) {
    .mobile-menu-btn { display: none; }
}

/* MOBILE NAV */
.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center; /* zarovnání na střed */
    gap: 10px;
  
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    margin-bottom: 5px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
     border-top: 1px solid #e2e8f0;
     padding-top: 0px;

}

.mobile-nav.open {
    max-height: 350px; 
}

.mobile-nav a {
    color: #2e3744;
    font-size: 18px;
    text-decoration: none;
    font-weight: 500;
      display: block;
    width: 80%;          /* nebo 85 %, 90 % – podle chuti */
    text-align: center;  /* aby text byl uprostřed */
    padding: 5px 0;
}

.mobile-nav a.active {
    color: #2563eb;
    font-weight: 600;

}

@media (min-width: 768px) {
    .mobile-nav {
        display: none !important;
    }
}
.mobile-menu-btn i {
    width: 28px;
    height: 28px;
    color: #2e3744;
}

.mobile-nav a:first-child {
    margin-top: 5px;
}

.mobile-nav a.btn-primary {
    margin-bottom: 5px;
}

.mobile-nav.open a {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease, transform .35s ease;
}

.mobile-nav a {
    opacity: 0;
    transform: translateY(-5px);
}


/* ICON PLACEHOLDERS */
.icon.phone { background-image: url('icons/phone.svg'); }
.icon.menu { background-image: url('../icons/menu.svg'); }


/* SECTION BASE */
.hero-section {
    position: relative;
    min-height: 400px;
    padding: 0px 0 16px;
     background-image: url('../img/hero-bg.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center bottom;

    overflow: hidden;
}

/* CONTENT CONTAINER */
.hero-container {
    position: relative;
    z-index: 20;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0px 24px;
}

.hero-grid {
    display: grid;
    gap: 48px;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: center;
    }
}

/* LEFT COLUMN */
.hero-left {
    color: white;
     
}

/* TITLE */
.hero-title {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color:#013a81;
}

@media (min-width: 768px) {
    .hero-title { font-size: 44px; }
}

@media (min-width: 1024px) {
    .hero-title { font-size: 52px; }
}


/* TEXT */
.hero-text {
    font-size: 20px;
    font-weight: bold;
    color:  #338141;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 480px;
}

/* BUTTON */
.btn{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(
        180deg,
        #A6CE4A 0%,   
        #69A946 40%, 
        #489145 100% 
    );
    border-color: #338141;
    border:0px;
    color: white;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(37,99,235,0.3);
    transition: 0.3s ease;
    cursor: pointer;
}
.hero-btn {
    margin-bottom: 80px;

}
.btn:hover{
    background: linear-gradient(
        0deg,
        #A6CE4A 0%,   
        #69A946 30%, 
        #489145 100% 
    );
    color: white;
    box-shadow: 0 0 5px #338141;
    transform: translateY(-3px);
}

.btn-cancel {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;

    background: linear-gradient(
        180deg,
    #D1D5DB 0%,   /* světlejší highlight */
    #9CA3AF 40%,  /* světlejší hlavní šedá */
    #6B7280 100%  /* světlejší spodní část */
    );

    border: 0;
    color: #ffffff; /* bílý text */
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
    transition: 0.3s ease;
    cursor: pointer;
}

.btn-cancel:hover {
    background: linear-gradient(
        0deg,
        #D1D5DB 0%,
        #9CA3AF 30%,
        #6B7280 100%
    );
    box-shadow: 0 0 5px rgba(0,0,0,0.25);
    transform: translateY(-3px);
}


/* RIGHT COLUMN */
.hero-right {
      display: flex;
    justify-content: flex-end;
    align-items: flex-end; /* zarovnání dolů */
    height: 100%; /* důležité pro vertikální zarovnání */

    /*
    position: relative;
    display: none;
*/}

.hero-right {
    display: flex;
    justify-content: flex-end;   /* zarovná vpravo */
    align-items: flex-end;       /* zarovná dolů */
}

@media (min-width: 1024px) {
    .hero-right {
        display: block;
        perspective: 1200px;
    }
}


/* IMAGE WRAPPER */

.hero-image-wrapper {
    display: flex;
    align-items: flex-end;
    height: 100%;
}

.hero-image {
    max-height: 400px;
    object-fit: contain;
}


/* IMAGE */
.card-image {
    width: 100%;
    height: 120px;
    object-fit: contain;
}  

@media (max-width: 1024px) {
  .hero-right {
    display: none;
  }
}

/* SECTION WRAPPER */
.feature-section {
    position: relative;
    z-index: 20;
    margin-top: -80px;
    padding: 0 24px;
}

/* GRID */
.feature-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    gap: 24px;

}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .feature-icon {
    margin-top: 30px;
    }
}

/* BASE CARD */
.feature-card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: flex;
    gap: 18px;
    align-items: flex-start;
    position: relative;
    transition: transform 0.3s ease;
    container-type: inline-size;
}

.feature-card a, .ordinace-list a , a{
   /* color: #475569;*/
    color: #338141;
    text-decoration: none;
    font-weight: bold;
}
.feature-card a, .ordinace-list a , a:hover{
   /* color: #475569;*/
    color: #5BA34B;
}

.feature-card-one:hover {
    background: linear-gradient(to bottom right, rgba(167, 85, 174, 0.2) , #ffffff);
    border-color: #a755ae;
}
.feature-card-one a:hover{
    color: #a755ae;
}
.feature-card-two:hover {
    background: linear-gradient(to bottom right, rgba(255, 184, 66, 0.2) , #ffffff);
    border-color: #FFB842;
}
.feature-card-two a:hover{
    color: #FFB842;
}
.feature-card-three:hover {
    background: linear-gradient(to bottom right, rgba(108, 150, 208, 0.2) , #ffffff);
    border-color: #6C96D0;
}
.feature-card-three a:hover{
    color: #6C96D0;
}

.feature-card-four:hover {
    background: linear-gradient(to bottom right, rgba(201, 31, 88, 0.2) , #ffffff);
    border-color: #c91f58;
}
.feature-card-four a:hover{
    color: #e13a80;
}
.feature-card:hover {
    transform: translateY(-6px);
}

/* ICON WRAPPER */
.feature-icon {
    width: auto;
    height: 56px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
 
    margin: 20px 0px;

}




/* TITLES & TEXT */
.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.feature-text , .open-hours-text {
    color: #2e3744;
    font-size: 14px;
    line-height: 1.2;
}

.feature-card-content {
    display: flex;
    gap: 18px;
    align-items: center;
}

@container (max-width: 300px) {
    .feature-card-content {
        flex-direction: column;
        align-items: center;
    }
       .feature-icon {
    margin-top: 30px;
    }
}

/* FOOTER BASE */
.footer {
    background: #052859;
    color: white;
    padding: 10px 0;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* GRID */
.footer-grid {
    display: grid;
    gap: 28px;
    margin-bottom: 5px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* TITLES */
.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin: 14px 0px;
}

/* LISTS */
.footer-list,
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: #94a3b8;
    font-weight: 300;
}

.footer-item a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-item a:hover {
    color: white;
}

/* LINKS WITH ICONS */
.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}


#phonef a,
#emailf a {
    font-weight: normal;
}

#phonef a:hover,
#emailf a:hover {
    color: white;
}

/* ICONS */
.icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
}

.icon.mappin-foot { background-image: url('../icons/mappin-foot.svg'); }
.icon.phone-topbar { background-image: url('../icons/phone-topbar.svg'); }
.icon.phone-foot { background-image: url('../icons/phone-foot.svg'); }
.icon.mail-topbar { background-image: url('../icons/mail-topbar.svg'); }
.icon.mail-foot { background-image: url('../icons/mail-foot.svg'); }
.icon.chevron-right { background-image: url('../icons/chevron-right.svg') }

footer .icon {
    color: #0B68A2;
}

.footer-bottom {
    border-top: 1px solid #021b41;
    padding-top: 6px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* levý – střed – pravý */
    align-items: center;
    color: #64748b;
    font-size: 12px;
    gap: 20px;
}

/* LEFT SIDE – text + odkazy v jednom řádku */
.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-bottom-center {
    margin: 0 auto;
    text-align: center;
    flex: 1;
}

.footer-bottom-text {
    margin: 0;
}

/* LINKS */
.footer-bottom-links {
    display: flex;
    gap: 24px;
    justify-self: end;
}

.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: white;
}

/* SOCIAL ICONS RIGHT */
.footer-social {
    display: flex;
    gap: 16px;
    align-items: center;
}

.footer-social img {
    width: 18px;
    height: 18px;
    transition: filter 0.25s ease;
    filter: brightness(0) saturate(100%) invert(63%) sepia(52%) saturate(749%) hue-rotate(185deg) brightness(96%) contrast(92%);
}

.footer-social a:hover img {
    filter: brightness(0) invert(1);
}

/* MOBILE STACK */
@media (max-width: 885px) {
    .footer-bottom {
        grid-template-columns: 1fr; /* vše pod sebe */
        text-align: left;
          gap: 16px;
    }

    .footer-bottom-left {
        justify-content: flex-start; /* zarovnání vlevo */
        order: 1
    }

    .footer-bottom-center {
        text-align: left; /* © text vlevo */
        margin: 0px;
        order:3;
    }
        .footer-bottom-links {
        justify-self: start; 
        order:2;
    }
}




/* RIGHT SIDE – kontakt */
.ordinace-card {
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px); 
    padding: 14px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.ordinace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.ordinace-icon {
  width: 80px;
  height: auto;
}


.ordinace-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ordinace-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    font-size: 14px;
    color: #334155;
}

.ordinace-list li:last-child {
    border-bottom: none;
}

.ordinace-card-contact:hover {
    background: linear-gradient(to bottom right, rgba(161, 159, 159, 0.1) , #ffffff);
    border-color: #a19f9f;
}
.ordinace-card-contact a:hover{
    color: #a19f9f;
}
.ordinace-card-open-hours:hover {
    background: linear-gradient(to bottom right, rgba(179, 94, 26, 0.1) , #ffffff);
    border-color: #b35e1a;
}
.ordinace-card-open-hours a:hover{
    color: #b35e1a;
}
.ordinace-card-pricelist:hover {
    background: linear-gradient(to bottom right, rgba(36, 72, 40, 0.1) , #ffffff);
    border-color: #244828;
}
.ordinace-card-pricelist a:hover{
    color: #244828;
}
.ordinace-card:hover {
    transform: translateY(-6px);
}

.ordinace-card a{
   /* color: #475569;*/
    color: #338141;
    text-decoration: none;
    font-weight: bold;
}
.ordinace-card a:hover{
   /* color: #475569;*/
    color: #5BA34B;
   
}


.bg_corner {
    padding: 0px 0;
    background: url('../img/bgs/bg-corner.svg') no-repeat bottom / cover;
}

.bg_circ{
    padding: 0px 0;
    background: url('../img/bgs/bg_circ.svg') no-repeat bottom / cover;
}

.bg_diag{
    padding: 0px 0;
    background: url('../img/bgs/bg_diag.svg') no-repeat bottom / cover;
}

#cviceni-dospeli, #vysetreni, #cviceni, #screening, #ochrana-osob-udaju, #podminky-pouziti {
  scroll-margin-top: 50px; /* posun dle vysky navbar */
}



/* SECTION BASE */
section {
min-height: 200px;
 /*padding: 40px 0;
*/}
.section-container-grid, .section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 25px 24px;
    display: grid;
    gap: 20px;
    align-items: center;

  
}

.section-container-grid {
    grid-template-columns: 3fr 2fr; 
}

@media (min-width: 1024px) {
    .section-container-grid {
        grid-template-columns: 3fr 2fr;
    }
       
     
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 24px;
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 40px;
    }
}
.section-left-text {
    font-size: 20px;
    line-height: 1.7;
    color: #2e3744;
  /*  max-width: 520px;*/
}

.section-text p {
    font-size: 20px;
    color: #2e3744;
    line-height: 1.7;
    margin-bottom: 20px;
}


/* Výchozí stav – nic se neděje */
.section-left-tall {
    min-height: 800px;
}

/* Aplikovat jen když je viewport širší než 1024 px */
@media (max-width: 768px) {
    .section-left-tall {
       min-height: auto;
    }
}


/* Obrázek polikliniky – respektuje grid layout */
.ordinace-image {
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
     display: grid;
    place-content: center;
}

.ordinace-image img {
    width: auto;
    max-height: 300px;
    display: block;
    width: fit-content; /* Respektuje přirozenou šířku */
}

/* Responsivita – na mobilu menší velikost */
@media (max-width: 768px) {
    .ordinace-image img {
        max-height: 200px;
    }
}


/* Obrázek polikliniky – respektuje grid layout */
.service-image {
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
     display: grid;
    place-content: center;
}
.service-image picture {
    width: auto;
    max-height: 500px;
    display: block;
    width: fit-content; /* Respektuje přirozenou šířku */
}

/* Responsivita – na mobilu menší velikost */
@media (max-width: 768px) {
    .section-container-grid {
         grid-template-columns: 1fr;
     
    }
    /* Skryje obrázky ve službách */
    .service-image picture {
        display: none;
    }

    /* Skryje obrázky s class="float-image" */
    .float-image {
        display: none;
    }
}

.float-image {
    float: right;
    width: 300px; /* nebo auto */
    margin: 0 0 1rem 1rem;
    border-radius: 8px; /* volitelné */
}

.nowrap {
    white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
}