@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    transition: all 0.1s linear;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    ;
    color: black;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

h1, h2, h3, h4, h5, h6, ul {
    margin: 0;
}

p {
    margin: 0;
}

a {
    text-decoration: none;
    color: black;
}

/* Container 
******************************/
.container {
    margin: 0 auto;
    padding: 0 5rem;
}

/* Header 
******************************/

.header {
    margin: 0 auto;
    width: 100%;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 0;
}

.header-title {
    font-size: 1.5rem;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.header-content-contacts {
    display: flex;
    gap: 3.5rem;
}

.header-content-contacts-item {
    display: flex;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.header-content-contacts-item-phones {
    display: flex;
    flex-direction: column;
}

.phone:hover {
    color: blue;
    text-decoration: underline;
}

/* Navigation
**********************************/
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 0 5rem;
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
}

.nav-mobile {
    display: none;
}

.nav-item {
    display: flex;
    justify-content: center;
    width: 20%;
    border-right: 1px solid rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.nav-item a {
    padding: 1rem;
}

.nav-item:hover a {
    background-color: #1B415C;
    color: white;
}

.nav-item:first-child {
    padding-left: 0;
}

.nav-item:last-child {
    padding-right: 0;
    border: none;
}

.nav-panel-container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 20%;
    border-right: 1px solid rgba(0, 0, 0, 0.7);
}

.nav-panel-link {
    padding: 1rem;
}

.nav-panel-container:hover a {
    background-color: #1B415C;
    color: white;
}

.nav-panel {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 2.5rem;
    left: 0;
    z-index: 1000;
    padding: 0.25rem 0;
    width: 22rem;
    background-color: #1B415C;
}

.nav-panel-container:hover .nav-panel {
    display: flex;
}

.nav-panel a {
    color: white;
}

.nav-panel-item {
    padding: 0.5rem 1rem;
}

.nav-panel-item:hover {
    text-decoration: underline;
}

/* Title
**********************************/
.main-title {
    position: relative;
    display: flex;
    align-items: center;
    margin: 1rem 0;
    height: 9rem;
    color: black;
    font-size: 2.5rem;
    font-weight: 600;
}

.main-title::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    opacity: 0.8;
    background-image: url('images/background-title.png');
    background-repeat: no-repeat;
    background-size: cover;
}

.main-title-content {
    margin-left: 2rem;
    padding: 0.5rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.6);
}

/* Main
**********************************/
.main-container {
    width: 90%;
    margin: 0 auto;
}

.main-standart {
    margin-top: 19rem;
    width: min(100%, 20rem);
}

/* Footer
**********************************/
.footer {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    background-color: #64B3D9;
    padding: 2rem 1rem 1.5rem;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contacts-item {
    display: flex;
    gap: 1rem;
    min-width: 17rem;
}

.footer-contacts-item-content {
    display: flex;
    flex-direction: column;
}

.footer-contacts-item-content-phone:hover {
    color: blue;
    text-decoration: underline;
}

@media screen and (max-width: 1200px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1rem;
    }

    /* Header 
    ******************************/
    .header-inner {
        gap: 1rem;
        padding: 1rem 0;
    }

    .header-logo {
        width: 25rem;
    }

    .header-title {
        font-size: 1.5rem;
    }

    .header-content {
        gap: 1rem;
    }

    .header-content-contacts {
        gap: 1.5rem;
    }

    /* Navigation
    **********************************/
    .nav {
        padding: 0 1rem;
        font-size: 1rem;
    }

    .nav-item {
        width: 20%;
    }

    .nav-item a {
        padding: 0.5rem;
    }

    /* Title
    **********************************/
    .main-title {
        height: 6rem;
        font-size: 1.5rem;
    }

    .main-title-content {
        padding: 0.5rem 1rem;
    }

    .main-standart {
        margin-top: 10rem;
    }
}

@media screen and (max-width: 1000px) {

    /* Header 
    ******************************/
    .header-logo {
        width: 20rem;
    }

    .header-title {
        font-size: 1rem;
    }

    .header-content {
        gap: 1rem;
    }

    .header-content-contacts {
        gap: 1rem;
    }

    .header-content-contacts-item {
        font-size: 0.8rem;
    }

    /* Navigation
    **********************************/
    .nav {
        font-size: 0.8rem;
    }

    /* Footer
**********************************/
    .footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 820px) {

    /* Header 
    ******************************/
    .header-logo {
        width: 10rem;
    }

    .header-title {
        font-size: 1rem;
    }

    .header-content {
        gap: 1rem;
    }

    .header-content-contacts {
        gap: 1rem;
    }

    .header-content-contacts-item {
        font-size: 0.8rem;
    }

    .main-standart {
        margin-top: 5rem;
    }
}

@media screen and (max-width: 675px) {

    /* Header 
    ******************************/
    .header-logo {
        width: 10rem;
    }

    .header-title {
        font-size: 0.8rem;
        text-align: center;
    }

    .header-content {
        gap: 1rem;
    }

    .header-content-contacts {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .header-content-contacts-item {
        font-size: 1rem;
    }

    /* Navigation
    **********************************/
    .nav {
        display: none;
    }

    .nav-mobile {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        position: relative;
        height: 3rem;
        padding: 0 1rem;
        background-color: rgb(226, 226, 226);
    }

    .nav-mobile-menu,
    .nav-mobile-close {
        display: block;
        width: 2rem;
        height: 2rem;
    }

    .nav-mobile-close {
        display: none;
    }

    .nav-mobile:has(input:checked) .nav-mobile-menu {
        display: none;
    }

    .nav-mobile:has(input:checked) .nav-mobile-close {
        display: block;
    }

    .nav-mobile:has(input:checked) .nav-mobile-panel {
        display: flex;
    }

    .nav-mobile-panel {
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 1000;
        display: none;
        flex-direction: column;
        background-color: rgb(226, 226, 226);
    }

    /* Footer
**********************************/
    .footer {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media screen and (max-width: 450px) {

    /* Header 
    ******************************/
    .header-logo {
        width: 7rem;
    }
}

.no-scroll {
    overflow: hidden;
}