/*all styles in here, except whatever has to be inline.*/

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* HEADER STYLING BEGINS HERE */
.nav-center {
   margin:auto;
   text-align: center;
   margin-bottom: 20px;
}

.nav-content {
    margin:auto;
    text-align: center;
    font-family: 'Rubik', sans-serif;
    line-height: 1.5em;
}

.nav-content h3 {
    font-style: normal;
    font-weight: 500;
    font-size: 36px;
    line-height: 43px;
    color: #433C3C;
    margin-bottom: 5px;
}

.nav-content a {
    text-transform: uppercase;
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    color: rgba(67, 60, 60, 0.9);
    transition: all .3s ease-in-out;
}

.nav-content a:hover {
    color: rgba(67, 60, 60, 0.7);
    text-decoration: none;
}

/* HEADER STYLING END HERE */

body {
    font-family: 'Rubik', sans-serif;
}

.container {
    width: 100%;
    padding: 200px 5% 0 5%;
}



/*section*/
.section {
    width: 100%;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 2rem;
    justify-content: center;
    text-align: center;
    margin: 6rem auto ;
}

/*footer*/
.footer {
    width: 100%;
    padding: 50px 100px;
    text-align: center;
    background-image: url("assets/footer-bg.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    /*border-radius: 90%/100px 100px 0 0;*/
}

.footer h3 {
    font-weight: 400;
    font-size: 18px;
    font-weight: 400;
    line-height: 19px;
    color: #ffffff;
    margin-bottom: 10px;
}

.footer a {
    font-size: 14px;
    line-height: 17px;
    font-weight: 500;
    color: #ffffffba;
    text-decoration: none;

}

.footer a:hover {
    text-decoration: underline;
    color: #ffffff;
    transition: all .3s ease-in-out;
}

.card{
    display: inline-block;
    place-self: center;
    font-family: 'Rubik', sans-serif;
    width: 300px;
    padding: 10px;
    margin: 0 20px 100px 20px;
    border-radius: 5px;
    text-align: center;
    background-color: #FCFAF8;
    border-bottom: 10px solid var(--dept-color);
    transition: all .3s ease-in-out 0s;

    --dept-color: transparent;
}

.card:hover{
    box-shadow: 0px 20px 40px 0 rgba(0, 0, 0, .08);
    /* 0 0 20px 4px var(--dept-color); */
    border: 2px solid var(--dept-color);
}

.img{
    width: 100%;
}

.info{
    margin-top: 15px;
    margin-bottom: 30px;
}

.info h2 {
    font-weight: 500;
    font-size: 22px;
    line-height: 26px;
    color: #433C3C;
}

.info p{
    font-size: 16px;
    line-height: 19px;
    margin-top: 5px;
    color: rgba(67, 60, 60, 0.7);
}

.social{
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.social a{
    margin: 10px;
}

.social img {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social img:hover {
    transform: scale(1.15);
    opacity: 0.85;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 40px auto;
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    color: #433C3C;
}

.legend-item {
    appearance: none;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.legend-item .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.legend-item:hover {
    transform: translateY(-1px);
}

.legend-item:focus-visible {
    outline: 2px solid #ddd;
    outline-offset: 2px;
}

.legend-item.active {
    background: rgba(0, 0, 0, .035);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .03) inset;
    /* лёгкая подсветка точкой */
}

.legend-item.active .dot {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .08);
}

/*MEDIA QUERIES*/
@media (max-width: 767px) {
    .footer {
        background-image: url("assets/footer-bg-mobile.png");
        background-size: cover;
        padding: 20px;
    }

    .container {
        padding: 100px 10% 0 10%;
    }

    .card {
        margin-bottom: 75px;
    }

}

@media (min-width: 1025px) {
    .section {
         grid-template-columns: repeat(3, minmax(250px, 400px));
         max-width: 1024px;
    }
}
