/* Общие стили */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: Montserrat;
}

body {
    background-color: rgb(232, 223, 194);

}

a {
  text-decoration: none;
}

/* Начала стилей для шапки  */

#head {
    width: 100%;
    height: 10vw;
    display: flex;
    align-items: center;

}

#headLeft {
    margin-left: 7vw;
    display: flex;
    align-items: center;
    gap: 18vw;
}

.pages {
    width: 3vw;
    cursor: pointer;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.pages:hover {
  filter: brightness(90%);
  transform: scale(1.1);
}

.page {
    display: flex;
    align-items: center;
    gap: 3.5vw;

}

#headLogo {
    width: 29vw;
    cursor: pointer;
}

/* Стили для анимации поисска */

.container {
  position: relative;

}

#image {
  width: 3vw;
  cursor: pointer;
  transition: opacity 0.6s ease;
}

#search {
    position: absolute;
    right: 0;
    top: 0;
    height: 3vw;
    width: 0;
    padding: 0 0;
    font-size: 1em;
    border-radius: 2vw;
    border: 2px solid #ccc;
    outline: none;
    opacity: 0;
    transition:
    width 0.6s ease,
    padding 0.6s ease,
    opacity 0.6s ease;
}

#search[type="search"] {
  font-size: 1vw;
}

#search::placeholder {
    font-size: 1vw;

}

#search.active {
    width: 13vw;
    height: 3vw;
    padding: 0 1vw;
    opacity: 1;
    margin-top: -1.5vw
}

/* Начало стилей для футера */

#footerFon {
    background: url('/static/main/images/about2.png');
    background-size: 100% 100%;
    width: 100%;
    height: 43vw;
    display: flex;


}

#footer {
    background: url('/static/main/images/footer.png');
    margin-top: 5vw;
    width: 85vw;
    height: 34vw;
    background-size: 100% 100%;
    color: rgb(215, 120, 67);
    display: flex;
    gap: 9vw;
    margin-left: 9vw;
}

#footer a {
    color: rgb(215, 120, 67);
}

#footer h2 {
    font-size: 1vw;
    font-weight: 800;
    margin-top: 2vw;
}

#footer h3 {
    font-size: 0.9vw;
    font-weight: 500;
    margin-top: 1vw;
    white-space: pre-wrap;
}

#footer h3 span {
    font-weight: 800;
}

#footer h2 span {
    font-weight: 500;
}

#footer #left, #right {
    margin-top: 8vw;
}

#footer #left {
    margin-left: 10vw;

}

#footer #right h2 {
    margin-bottom: 1vw;
}

#footer #map {
    width: 33vw;
    height: 18vw;
    border-radius: 1vw;
    border:0;
}

#copyText:hover {
    cursor: pointer;
}

#footer .active {
    transition: filter 0.3s ease;
}

#footer .active:hover {
    filter: brightness(85%);
}

@media screen and (max-width: 800px) {
    #head {
        height: 18vw;
    }

    #headLogo {
        width: 33vw;

    }

    .pages, #image {
        width: 6vw;
    }

    #headLeft {
        gap: 10vw;
    }

    #search.active {
        width: 35vw;
        height: 5vw;
        margin-top: -3vw;
        font-size: 2vw;
    }

    #search::placeholder {
        font-size: 2vw;
    }

    #footer {
        gap: 15vw;
        height: 75vw;
        background: url(/static/main/images/footerFon.png);
        background-size: 100% 100%;
        display: block;
        width: 83vw;
    }

    #footer h3 {
        font-size: 2.3vw;
    }

    #footer h2 {
        font-size: 2.5vw;

    }

    #footer #left, #right {
        margin-left: 7vw;
        margin-top: 4vw;
    }

    #footer #left {
        display: flex;
        gap: 25vw;
        margin-top: 3vw;
    }

    #footerFon {
        height: 150vw;
    }

    #footer #map {
        height: 36vw;
        width: 70vw;
    }

    #footer #right h2 {
        margin-left: 10vw;
        margin-bottom: 2vw;
    }

    #footer #LongText {
        position: absolute;
        margin-left: 3vw;
        margin-top: 65vw;
    }

}