@import url('https://fonts.googleapis.com/css2?family=Cousine:wght@400;700&family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Yanone+Kaffeesatz:wght@200..700&display=swap');

*::-webkit-scrollbar {
    width: 8px;
}

*::-webkit-scrollbar-track {
    background:white; 
}

*::-webkit-scrollbar-thumb {
    background-color: #888;
}



html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Oswald", sans-serif;
    font-weight: 400;
    color: var(--black-c);
    background: #dfedff;
    min-height: 100vh;
    scroll-behavior: smooth;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}



/* Указываем box sizing */
/* Убираем внутренние отступы */
ul[class],
ol[class] {
    padding: 0;
}

/* Убираем внешние отступы */
/* body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
    margin: 0;
} */

:root {     
    --black-c: #1d1d1d;
    --grey-c: #e0e0e0;
    --white-c: #ffffff;
}





/* 
body {
    background-color: #f8f9fa;
}

.navbar {
    background-color: #335880;
}

.navbar-nav a {
    color: white;
}

.navbar-brand {
    color: white;
}

.footer {
    background-color: #1A3760;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.card {
    margin: 15px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
}



body {
    position: relative;
}


:root {
    --black-c: #313131;
    --white-c: #ffffff;
}

.bg-body-tertiary {
    background-color: #1A3760;
} */

nav {
    font-family: "Oswald";
    font-size: 1rem;
    margin-bottom: 3rem;
    background-color: #0952af;
    height: 4rem;
    padding: 0.3rem;
    box-shadow: 0px 0px 15px -3px rgba(0, 0, 0, 0.5);
}

.navbar_name {
    font-weight: 700;
    color: var(--white-c);
    font-size: 1rem;
    text-transform: uppercase;
    margin: 0 1.3rem 0 1.1rem;
    outline: none;
    text-decoration: none;
}


.nav-item {
    margin-right: 2rem;
}

.nav-item a {
    color: var(--white-c);
    text-decoration: none;
    font-weight: 700;
}

.custom-hover {
    position: relative;
    border: none;
    overflow: hidden;
}

.custom-hover::before {
    content: "";
    position: absolute;
    top: 120%;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1.5px;
    background-color: #ffffff;
    transition: width 0.4s ease, left 0.4s ease;
}

.custom-hover:hover::before {
    width: 100%;
    left: 0;
}



footer {
    position: relative;
    background-color: #2c3e50;
    color: #fff;
    padding: 20px 0;
    margin-top: 2rem;
    text-align: center;
    color: var(--white-c);
    background: #0952af;
    box-shadow: 0px -1px 9px 3px rgba(34, 60, 80, 0.17);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    font-size: 1.4rem;
    margin: 0;
}

.footer-column p,
.footer-column ul,
.footer-column li {
    font-size: 1.2rem;
    font-weight: 400;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--white-c);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.social-block {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.social {
    margin-right:1rem;
}


.footer-column ul li a:hover {
    text-shadow: 4px 4px 5px rgba(0,0,0,0.1);
    color: var(--grey-c);
}

.footer-bottom {
    margin-top: 20px;
    font-size: 1.1rem;
    border-top: 1px solid #7f8c8d;
    padding-top: 20px;
}


.template_container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    
}

.navbar-navigation {
    display: flex;
}

.navbar-navigation li,
.tech_btn {
    list-style: none; 
}




.navbar-navigation li:last-child {
    margin-right: 0;
}

.navbar-navigation li a {
    text-decoration: none;
    font-weight: 700;
}

.in_progress.for_nav {
    color: #c8c8c8;
}





.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger-menu span {
    border-radius: 5px;
    height: 4px;
    width: 35px;
    background-color: white;
    margin: 3px 10px;
}

#searchInput {
    width: 225px;
    outline: none;
    border: none;
    padding: 5px 8px 1px;
    border-radius: 5px;
}

#scrollToTop {
    position: fixed; /* Позволяет разместить кнопку внутри футера */
    bottom: 20px; /* Расстояние от нижнего края футера */
    right: 1rem; /* Расстояние от правого края футера */
    padding: 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;

}


#searchResults {
    border: 1px solid #ccc;
    background-color: white;
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
}

#searchResults div {
    padding: 8px;
    border-bottom: 1px solid #ccc;
    border: none;
}

#searchResults div a {
    text-decoration: none;
    color: black;
}

#searchResults div a:hover {
    background-color: #f0f0f0;
}



#searchResults {
    display: none;
    position: absolute; 
    z-index: 1000; 
    background-color: white; 
    border: 1px solid #ccc; 
    width: 240px;
    max-height: 200px; 
    overflow-y: auto;
}







@media (max-width: 926px) {
    nav {
        height: 5rem;
    }
} 


@media (max-width: 616px) {
    nav {
        height: 6rem;
    }
    .navbar_name {
        font-size: 1.2rem;
    }

    .burger-menu {
        display: flex;
    }

    .navbar-navigation {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top:88px;
        background-color: #063e86;
        left: 0;
        gap: 0;
    }

    .navbar-navigation li {
        border-top: 1px solid #fff;
        margin-right: 0;
    }


    .navbar-navigation.show {
        display: flex;
        z-index: 100;
    }

    .nav-item {
        text-align: center;
        padding: 10px 0;
    }

    .template_container {
        margin: 2rem 5px 0 5px;
    }


} 

@media (max-width: 591px) {
    nav {
        height: 6rem;
    }
    .navbar_name {
        font-size: 1.2rem;
    }

    .burger-menu {
        display: flex;
    }

    .burger-menu span {
        display: block;
    }

    .navbar-navigation {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top:88px;
        background-color: #063e86;
        left: 0;
        gap: 0;
    }

    .navbar-navigation li {
        border-top: 1px solid #fff;
        margin-right: 0;
    }


    .navbar-navigation.show {
        display: flex;
    }

    .nav-item {
        text-align: center;
        padding: 10px 0;
    }

    .template_container {
        margin: 0.3rem 5px 0 5px;
    }

} 

@media (max-width: 361px) {
    nav {
        height: 6rem;
    }

    .navbar_name {
        font-size: 1.1rem;
    }

    .burger-menu {
        display: flex;
    }

    .navbar-navigation {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top:88px;
        background-color: #063e86;
        left: 0;
        gap: 0;
    }

    .navbar-navigation li {
        border-top: 1px solid #fff;
        margin-right: 0;
    }


    .navbar-navigation.show {
        display: flex;
    }

    .nav-item {
        text-align: center;
        padding: 10px 0;
    }


}
/* @media (max-width: 768px) {
    .navbar {
        margin-bottom: 1rem;
        justify-content: center;
    }

    .navbar_name {
        font-size: 1.3rem;
    }

    .burger-menu {
        display: flex;
    }

    .navbar-navigation {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        background-color: #063e86;
        left: 0;
        gap: 0;
    }

    .navbar-navigation li {
        border-top: 1px solid #fff;
        margin-right: 0;
    }


    .navbar-navigation.show {
        display: flex;
    }

    .nav-item {
        text-align: center;
        padding: 10px 0;
    }

    .template_container {
        margin-top: 1.2rem;
    }

} */

main {
    flex: 1;
}