:root {
    --black: #2E2A24;
    --black75: #625F5B;
    --black50: #969491;
    --black25: #C8C6C1;
    --black5: #F4F3F2;
    --white: #FFFFFF;
    --primary-color: #00488C;
    --primary-color-10: #CCDAE8;
    --secondary-color: #F6AA1C;
    --accent: #9DDFD3;
    --primary-gradient: linear-gradient(123.1deg, #003261 12.28%, #001F3C 78.14%);
    --secondary-gradient: linear-gradient(268.24deg, #9DDFD3 17.32%, #3D968B 99.34%);
    --padding-button: 10px 20px;
    --border-radius: 20px;
}

::selection {
    color: var(--primary-color);
    background: var(--secondary-color);
  }


html {
    font-size: 62.5%; 
    box-sizing: border-box;
    scroll-behavior: smooth;
}


*, 
::before, 
::after {
    box-sizing: inherit;
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--black);
    background-color: var(--white);
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
}


h2 {
    color: var(--primary-color);
    font-size: 2.6em;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 60px;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

.wrapper {
    max-width: 1120px;
    margin: auto;
    padding: 10px;
}

/*---------- tlačítka odkazů ---------*/
.button {
    letter-spacing: 0.04em;
    text-transform: capitalize;
    font-weight: 400;
    border-radius: var(--border-radius);
}

.rotary-int,
.link2240 {
    background: var(--primary-gradient);
    color: var(--black5);
}

.rotary-int:hover,
.link2240:hover {
    background: var(--secondary-color);
    color: var(--black);
}

/*=====================================*/

/* -------------------- header start */


.nav-link {
    transition: 0.7s ease;
}


.hamburger {
    display: none;
}

.bar {
    display: block;
    background-color: var(--primary-color);
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}



header {
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid var(--black25);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.rotary-logo {
    cursor: pointer;
}

.main-menu {
    display: flex;
}

.main-menu ul li {
    list-style-type: none;
    display: inline-block;
    font-size: 1.5em;
    font-weight: 400;
    color: var(--black);
    
}

.nav-link {
    padding: 10px 20px;
    border: 1px solid var(--white);
    border-radius: var(--border-radius);
}
.nav-link:hover {
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
}

.nav-link:last-of-type {
    margin-left: 10px;
}

/* header styling end */


/* ------------------------- hero section start */

.hero-wrapper {
    max-width: 1120px;
    height: 100%;
    padding-top: 140px;
}

.hero {
    height: 100vh;
    background-color: var(--black75);
    background-image: url(images/praha-pozadi.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    overflow-x: hidden;
}

h1 {
    color: var(--white);
    text-align: center;
    font-weight: 700;
    font-size: 4.9em;
    line-height: 120%;
    margin: 30px auto 90px auto;
}

.hero p {
    text-align: center;
    color: var(--secondary-color);
    font-size: 2em;
    font-weight: 400;
    line-height: 150%;
    text-transform: capitalize;
    letter-spacing: 0.05em;
    margin: auto;
}

.cta-button {
    width: 274px;
    font-size: 1.4em;
    font-weight: 600;
    line-height: 145%;
    text-transform: none;
    background-color: var(--accent);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-align: center;
    display: block;
    margin: auto;
    transition: 0.5s ease;
}

.cta-button img {
    margin-left: 20px;
    vertical-align: text-top;
}

.cta-button:hover {
    background-color: var(--secondary-color);
}

/* hero section end */


/* ------------------------- hero2 section start */

.hero2-wrapper {
    max-width: 1120px;
    height: 100%;
    padding-top: 140px;
}

.hero2 {
    height: 100vh;
    background-color: #ffffff;
 
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    overflow-x: hidden;
}

.hero2 h1 {
    color: var(--primary-color);
    text-align: center;
    font-weight: 700;
    font-size: 4.9em;
    line-height: 120%;
    margin: 30px auto 90px auto;
}

.hero2 p {
    text-align: center;
    color: var(--secondary-color);
    font-size: 2em;
    font-weight: 400;
    line-height: 150%;
    text-transform: capitalize;
    letter-spacing: 0.05em;
    margin: auto;
}

.hero2 cta-button {
    width: 274px;
    font-size: 1.4em;
    font-weight: 600;
    line-height: 145%;
    text-transform: none;
    background-color: var(--accent);
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-align: center;
    display: block;
    margin: auto;
    transition: 0.5s ease;
}

.hero2 cta-button img {
    margin-left: 20px;
    vertical-align: text-top;
}

.cta-button:hover {
    background-color: var(--secondary-color);
}

/* hero2 section end */

/* ---------------------- Kdo jsme section start */
.kdo-jsme-wrapper {
    padding: 0 15% 120px 15%;
}

#kdo-jsme h2 {
    color: var(--black5);
    padding-top: 140px;
}

h2::before {
    content: "";
    width: 120px;
    height: 1px;
    background-color: var(--secondary-color);
    position: absolute;
    bottom: -10px;
    left: -20px;
}

#kdo-jsme {
    background: var(--primary-gradient);
}

.kdo-jsme-wrapper p {
    font-size: 1.6em;
    font-weight: 400;
    line-height: 30px;
    color: var(--black5);
    margin-bottom: 30px;
    position: relative;
}

.kdo-jsme-wrapper p:last-of-type {
    margin-bottom: 0;
}

.kdo-jsme-wrapper p::before {
    content: url(pics/chevron-right.svg);
    position: absolute;
    top: 0;
    left: -40px; 
}

/* Kdo jsme section end */

/* ---------------------------------- */
.projekty-aktuality-wrapper,
.contacts-wrapper {
    padding: 140px 15px 120px 15px;
}
/* ---------------------------------- */

/* ------------------------------ Projekty-aktuality section start */

.cards-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    gap: 30px;
    justify-content: space-between;
}

.cards-container h2 { 
    grid-column-start: 1;
    grid-column-end: -1;  

}

.card {
    padding: 40px 35px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.card__mise-vize {
    background-color: var(--black5);
    color: var(--black);
    font-size: 1.4em;
    text-align: center;
    line-height: 150%;
    color: var(--black);
}

.card-top {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 30%;
    justify-content: space-between;
}

.ikona-mise-vize {
    display: inline-block;
    height: 60px;
}

.mise-vize p {
    line-height: 1.5em;
}

.members { 
    border-radius: var(--border-radius);
    display: block; 
    margin: 60px auto 0 auto;
    width: 100%;
    max-width: 600px;
    height: auto;
}

#projekty-aktuality {
    position: relative;
}

.background {
    width: 100%;
    height: 500px;
    background-color: var(--primary-color-10);
    position: absolute;
    z-index: -998;
    top: 45%;
}

/* Projekty-aktuality section end */

/* ---------------------------------- Kontakty section start */

.cards-container__flex {
    padding: 0 5%;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    flex: 0 0 30%;
    justify-items: center;
    justify-content: center;
    margin-top: 30px;
}


.card-contact {
    justify-content: space-between;
    text-align: center;
    font-size: 1.6em;
    line-height: 150%;
}

.card__contact-name img {
    display: block;
    margin: 0 auto 15px auto;
}

.card__contact-name h3 {
    margin-bottom: 10px;
}

.contact-info a {
    display: block;
    margin-bottom: 10px;
}

.tel::before {
    content: url(pics/phone.svg);
    display: inline-block;
    position: relative;
    top: 9px;
    left: -8px;
}

.tel-card-1::before {
    content: url(pics/phone-blue.svg);
}

.tel-card-2::before {
    content: url(pics/phone-black.svg);
}

.email::before {
    content: url(pics/mail.svg);
    display: inline-block;
    position: relative;
    top: 5px;
    left: -11px;
}

.email-card-1::before {
    content: url(pics/mail-blue.svg);
}

.email-card-2::before {
    content: url(pics/mail-black.svg);
}

.card-1 {
    background-color: var(--primary-color-10);
    color: var(--primary-color);
}

.card-2 {
    background-color: var(--secondary-color);
}

.card-3 {
    background-color: var(--primary-color);
    color: var(--black5);
}

.card-4 {
    background-color: var(--black75);
    color: var(--black5);
}

.card-5 {
    background-color: var(--black75);
    color: var(--black5);
}

.distrikt2240 {
    display: flex;
    gap: 10%;
    justify-content: center;
    margin-top: 150px;
}

.link2240 {
    align-self: center;
    text-transform: none;
    padding: 12px 22px;
    font-size: 1.4em;
}

.logo-distrikt2240 {
    cursor: pointer;
}

/* ----------- Kontakty section end */


/* ------------------- Footer start */
footer {
    background: var(--primary-gradient);
    padding: 60px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    font-size: 1.4em;
    color: var(--white);
}

.link-fb {
    background-color: var(--secondary-color);
    padding: var(--padding-button);
}

.link-fb:hover {
    border: 1px solid  var(--secondary-color);
    background-color: transparent;
}

.fb-icon {
    margin-right: 10px;
    vertical-align: middle;
}

.up {
    background-color: var(--primary-color-10);
    color: var(--black);
    padding: var(--padding-button);
    font-size: 1.4em;
    font-weight: 600;
}

.up:hover {
    border: 1px solid var(--primary-color-10);
    background-color: transparent;
    color: var(--white);
}

/* footer end */

/* --------------- media query ----------- */

@media (max-width: 960px) {
     
    .hamburger {
        cursor: pointer;
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        height: 75vh;
        background-color: var(--black);  
        width: 100%;
        text-align: center;
        transition: 0.3s;
    }

    .nav-link {
        color: var(--white);
        border: none;
        
    }

    .main-menu ul li {
        display: block;
        margin: 50px auto;
    }

    .nav-item {
        margin: 18px 0;
        flex-grow: 1;
    }

    .nav-menu.active {
        top: 90px;
        left: 0;
        
    }

    .hero-wrapper {
        padding-top: 20%;
    }

    .cards-container,
    .cards-container__flex {
        display: block;
        width: 90%;
        margin: auto;
    }

    .card { 
        flex-direction: row;
    }

    .card-top {
        flex-shrink: 0;
        flex-basis: 30%;
        align-self: top;
    }

    .contact-info {
        align-self: center;
    }

    .ikona-mise-vize {
        height: 40px;
    }

    .card__mise-vize p {
        text-align: left;
    }

    .background {
        display: none;
    }

    .card__mise-vize,
    .card-contact {
        margin-bottom: 30px;
    }

    .cards-container__flex {
        display: block;

    }

    .distrikt2240 {
        flex-direction: column;
    }

    .logo-distrikt2240 {
        display: block;
        margin: 0 auto 30px auto;
    }

    .link2240 {
        text-align: center;
    }

    .card__contact-name {
        flex-shrink: 0;
        align-self: center;
    }

    .contact-info {
        justify-self: center;
        align-self: center;
    }

    .card-contact {
        gap: 10px;
    }

    .card__contact-name img {
        display: none;
    }
}

@media (max-width: 630px) {

    .cards-container {
        width: 100%;
    }

    .card { 
        flex-direction: column;
        gap: 30px;
    }

    .ikona-mise-vize {
        height: 40px;
    }

    .card__mise-vize p {
        text-align: center;
    }
}

@media (max-width: 460px) {
    .follow-fb {
        display: none;
    }

    h1 {
        font-size: 3.5em;
        line-height: 130%;
    }
}

@media (max-width: 400px) {
    .link-fb {
        display: block;
        margin-left: 0;
        
    }  
}

@media (max-width: 400px) {

    .link-fb {
        display: block;
        margin-left: 0;
    }

}

@media (max-width: 360px) {
    .cards-container__flex {
        width: 100%;
    }
}




