@import url(./fonts/fonts.css);

@keyframes slideUp {
    0% {
        bottom: -50%;
    }

    100% {
        bottom: 0;
    }
}

@keyframes slideLeft {
    0% {
        left: -50%;
    }

    100% {
        left: 0;
    }
}

body {
    font-family: 'IBMPlexSans', Arial, sans-serif;
    background-color: white;
    min-width: 375px;
    margin: 0 auto;
    position: relative;
    flex-grow: 1;
}

main {
    flex-grow: 1;
    flex-shrink: 0;
    margin: 0 auto;

}

[class*='ground-pane'] {
    filter: grayscale(1)
}

@media screen and (min-width: 750px) {
    [class*='ground-pane'] {
        filter: none;
    }
}

[class*='balloon'] {
    border-radius: 20px;
}

[class*='gotoymaps'] {
    display: none !important;
}

[class*='gototaxi'] {
    display: none !important;
}

[class*='gototech'] {
    display: none !important;
}

/* [class*="copyrights-pane"] {
    display: none !important;
  } */

/* header */

.header {
    background-color: black;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 0 auto;
}

.header__main {
    display: flex;
    gap: 15px;
    align-items: center;
    padding-left: 64px;
}

.header__title {
    color: #ffff;
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
}

.header__logo {
    height: 30px;
    width: 30px;
    background-color: gray;
    border-radius: 50%;
}

.header__nav-burger {
    background-color: inherit;
    background-image: url('./images/icon-menu-burger.svg');
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
    border: none;
    margin-top: 10px;
    cursor: pointer;
}

.header__item {
    padding-right: 50px;
    text-decoration: none;
    color: #ffff;
    font-size: 16px;
    font-weight: 400;
    line-height: 20.8px;
    text-align: center;
}

.header__item-catalog {
    padding-right: 30px;
    text-decoration: none;
    color: #ffff;
    font-size: 16px;
    font-weight: 400;
    line-height: 20.8px;
    text-align: center;
    background-image: url('./images/icon-arrow-down-white.svg');
    background-repeat: no-repeat;
    background-position: right;
}

.header__nav {
    padding: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

@media screen and (min-width: 750px) {
    .header__nav-burger {
        display: none;
    }
}

/* Content */

.bunner {
    width: 100%;
    height: 120px;
    background-color:  #E8E8E8;
    margin: 90px auto 0;
}

.title {
    border-bottom: 1px solid #E8E8E8;
    margin-left: 0;
    padding-left: 64px;
    margin-bottom: 0;
    padding-bottom: 25px;
    font-size: 64px;
    font-weight: 700;
    line-height: 89.6px;
    letter-spacing: -0.02em;
}

.partners {
    box-sizing: border-box;
    min-width: 32%;
    max-height: 90%;
    padding: 20px 0 24px 0;
    position: relative;
}

.partners__filter-buttons {
    display: flex;
    flex-direction: row;
    margin-right: 24px;
    margin-left: 64px;
    gap: 20px;
}

.filter-buttons__city-button {
    position: relative;
    display: block;
    box-sizing: border-box;
    border: 1px solid #C4C4C4;
    width: 216px;
    height: 37px;
    padding: 4px 8px;
    border-radius: 8px;
    background-color: inherit;
    text-align: left;
    color: #191919;
    cursor: pointer;
}

.filter-buttons__delete-city {
    display: block;
    position: absolute;
    background-color: inherit;
    border: none;
    top: 2%;
    right: 5%;
    font-size: 30px;
    font-weight: 400;
    color: #858582;
    cursor: pointer;
    width: 20px;
    height: 20px;
    padding: 0;
    line-height: 1;
}

.filter-buttons__button {
    background-image: url('./images/Icon-filter.svg');
    background-repeat: no-repeat;
    background-position: 5% 50%;
    border: 1px solid #C4C4C4;
    width: 136px;
    height: 37px;
    padding: 4px 8px 4px 30px;
    border-radius: 8px;
    background-color: inherit;
    color: #191919;
    cursor: pointer;
}

.filter-buttons__button:hover {
    cursor: pointer;
    background-color: #aaa;
}

.filter-buttons__button-item {
    padding-left: 10px;
    color: #1347FF;
}

.partners__container {
    box-sizing: border-box;
    max-height: 93vh;
    overflow-y: scroll;
    overflow-x: hidden;
}


.filters-checked__partners {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0 4px 0 0;
    padding: 0;
    flex-direction: row;
    gap: 4px;
}

.filters-checked {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 10px 10px;
}


@media screen and (min-width: 750px) {
    .filter-buttons {
        display: none;
    }

    .filters-checked {
        position: absolute;
        z-index: 3;
        top: 265px;
        left: 50%;
    }
}


@media screen and (max-width: 750px) {
    .partners__filter-buttons {
        display: none;
    }
}

.partner {
    border-bottom: 1px solid #858582;
    padding: 16px 64px 24px 64px;
}

.partner:hover {
    cursor: pointer;
    background-color: #F5F5F5;
    border-bottom: none;
}

.partner__engines {
    color: #858582;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    margin-top: 0;
}

.partner__engines-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #858582;
    border-radius: 50%;
    margin: 0 4px 2px 4px;
    text-align: center;
}

.partner__name {
    color: #191919;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
}

.partner__contacts {
    margin-bottom: 10px;
}

.partner__address {
    color: #191919;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
}

.partner__phone {
    color: #1347FF;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    height: 30px;
    text-decoration: none;
    cursor: pointer;
    padding: 5px 0 5px 30px;
    background-image: url('./images/Icon-phone.svg');
    background-position: left;
    background-repeat: no-repeat;
}

.partner__website {
    color: #1347FF;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    text-decoration: none;
    cursor: pointer;
    padding: 5px 0 5px 30px;
    background-image: url('./images/Icon-website.svg');
    background-position: left;
    background-repeat: no-repeat;
    margin-left: 15px;
}

.partner__block {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
}

.partner__open {
    padding-left: 30px;
    background-image: url('./images/Icon-time.svg');
    background-position: top left;
    background-repeat: no-repeat;
}

.partner__open-time {
    margin: 0 0 7px 0;
}

.route-button {
    border-radius: 12px;
    border: 1px solid #7D9AFF;
    padding: 4px 4px 4px 30px;
    background-image: url('./images/Icon-way.svg');
    background-position: 5px 2px;
    background-repeat: no-repeat;
    color: #1347FF;
    font-family: "IBM Plex Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    background-color: inherit;
    height: 29px;
    width: 105px;
    cursor: pointer;

}

/* MAP */


.map__container {
    height: 100vh;
    width: 100%;
    margin: 0;
}

.map {
    display: flex;
    flex-direction: row;
}


.map__button {
    position: absolute;
    z-index: 2;
    top: 78%;
    right: 2%;
    background-color: white;
    border-radius: 4px;
    border: 1px solid gray;
    height: 35px;
    background-image: url('./images/icon-list-partners.svg');
    background-repeat: no-repeat;
    background-position: 5% 50%;
    padding-left: 30px;
}

/* ballon */

.ballon {
    max-width: 220px;
    padding: 2px 0 2px 2px;
}

.ballon__header {
    color: #1347FF;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
    margin: 0;
}

.balloon__text {
    color: #4A4A4A;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    margin: 4px 0 0 0;
}

.ballon__status {
    display: flex;
    align-items: center;
}

.baloon__status-dot {
    margin-top: 4px;
    margin-right: 4px;
    background-color: #2D9F5A;
    height: 6px;
    width: 6px;
    border-radius: 50%;
    align-self: center;
}

@media screen and (min-width: 750px) {
    .map__button {
        display: none;
    }
}

/* footer */

.footer {
    width: 100%;
    z-index: 2;
    background-color: black;
    color: #E8E8E8;
    display: flex;
    justify-content: space-between;
    padding: 30px 64px;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer__item {
    margin: 10px 0;
    text-decoration: none;
    color: #E8E8E8;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    transition: opacity ease-in-out .3s;
}

.footer__item:hover {
    cursor: pointer;
    opacity: .7;
}

.footer__text {
    color: #E8E8E8;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    margin: 8px 0;
}

.footer__copyright {
    display: inline;
    text-align: right;
    color: #E8E8E8;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    margin: 8px 0;
}


/* POPUP */

.popup-menu__close {
    background-color: inherit;
    background-image: url('./images/icon-popup-close.svg');
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
    border: none;
    margin-top: 10px;
    cursor: pointer;
}

.popup-menu {
    display: none;
    height: 100vh;
    width: 100%;
    position: absolute;
    z-index: 3;
    background-color: white;
}

.popup-menu__main {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup-menu__item {
    text-decoration: none;
    cursor: pointer;
    color: black;
}

.popup-filter {
    box-sizing: border-box;
    display: none;
    position: fixed;
    z-index: 2;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.popup-filter__content {
    box-sizing: border-box;
    background-color: #fefefe;
    padding: 20px 24px 20px 64px;
    width: 100vw;
    border-radius: 10px;
    position: absolute;
    bottom: -5px;
    animation: slideUp 0.5s ease-in-out forwards;
    max-height: 80%;
    min-height: 30%;
    overflow: auto;
}

@media screen and (min-width: 750px) {
    .popup-filter__content {
        animation: slideLeft 0.5s ease-in-out forwards;
        bottom: 0;
        max-height: 69%;
        min-height: 69%;
        width: 33vw;
        position: fixed;
    }
}

.popup-filter__del-button {
    font-size: 16px;
    border: none;
    margin-left: 10px;
    cursor: pointer;
    background-color: inherit;
}

.popup-filter__close-button {
    color: #191919;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.popup-filter__close-button:hover,
.popup-filter__close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.popup-filter__back-button {
    font-size: 24px;
    font-weight: bold;
    color: #191919;
    border: none;
    background-color: inherit;
    cursor: pointer;
    padding: 0;
}

.popup-filter__title {
    margin-top: 40px;
    margin-bottom: 28px;
    color: #191919;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
}

.popup-filter__input {
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid #E8E8E8;
    background: inherit;
    width: 374px;
    height: 45px;
    padding: 4px 8px 4px 15px;
    color: #191919;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
}

.popup-filter__input::placeholder {
    color: #858582;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
}

.popup-filter__cities-list {
    list-style: none;
    padding: 0;
}

.popup-filter__city {
    cursor: pointer;
    margin-top: 10px;
    color: #191919;
    font-family: "IBM Plex Sans";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
}

.popup-filter__city:hover {
    text-decoration: underline;
}

.popup-filter__no-city {
    text-align: center;
    margin-top: 48px;
    margin-right: 24px;
}

.popup-filter__no-city-message {
    color: #191919;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
}

.popup-filter__no-city-text {
    color: #191919;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
}

.popup-filter__section {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 10px;
    row-gap: 10px;
}

.popup-filter__engine-checkbox {
    display: none;
}

.popup-filter__partners-checkbox {
    display: none;
}

.popup-filter__label-span {
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    border-radius: 16px;
    background-color: #C4C4C4;
    margin: 0;
    padding: 4px 12px;
    max-height: 30px;
    box-sizing: border-box;
}

.popup-filter__partners-checkbox:checked+.popup-filter__label-span {
    background-color: #4A4A4A;
    color: white;
}

.popup-filter__engine-checkbox:checked+.popup-filter__label-span {
    background-color: #4A4A4A;
    color: white;
}

.popup-filter__submit-button {
    margin: 20px 0;
    background-color: white;
    border-radius: 4px;
    border: 1px solid gray;
    height: 35px;
    width: 100%;
}

/* Стили для кнопки переключения */

.popup-filter__toggle {
    margin-top: 20px;
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.popup-filter__toggle .popup-filter__input-slider {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Стили для внешнего вида бегунка */

.popup-filter__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

.popup-filter__slider:before {
    position: absolute;
    content: "";
    height: 13px;
    width: 13px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

.popup-filter__input-slider:checked+.popup-filter__slider {
    background-color: #2196F3;
}

.popup-filter__input-slider:focus+.popup-filter__slider {
    box-shadow: 0 0 1px #2196F3;
}

.popup-filter__input-slider:checked+.popup-filter__slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}

.popup-filter__slider.round {
    border-radius: 34px;
}

.popup-filter__slider.round:before {
    box-sizing: border-box;
    border-radius: 50%;
}

.popup-filter__slider-title {
    margin-left: 10px;
}

.popup-filter__partners-list {
    list-style: none;
    padding: 0;
}

.popup-filter__store {
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-bottom: 1px solid gray;
    width: 100%;
}

.popup-filter__store-info {
    margin: 5px;
}

@media screen and (max-width: 750px) {
    .header__nav {
        display: none;
    }

    .partners {
        display: none;
    }
}