@import '../fonts/fonts.css';

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

a {
    color: #fff;
    text-decoration: none;
}

body {
    font-family: 'SF Pro Display', sans-serif;
}

.container {
    max-width: 1170px;
    padding: 0 15px;
    margin: 0 auto;
}

.header {
    background: #2576C5;
    height: 68px;
    padding: 2px;
}

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

.header__city {
    position: relative;
}

.header__cityInput {
    cursor: pointer;
    padding: 0 16px 0 12px;
    height: 38px;
    background: #fff;
    display: flex;
    align-items: center;
    border-radius: 12px;
}

.header__cityInputValue {
    font: 500 17px/25px 'SF Pro Display';
    margin: 0 0 0 10px;
}

.header__cityConfirm {
    position: absolute;
    top: calc(100% + 8px);
    z-index: 3;
    padding: 30px;
    font: 500 19px/20px 'sf pro display';
    text-align: center;
    background: #fff;
    color: #000;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
    transform: translateY(-4px);
    visibility: hidden;
    opacity: 0;
    transition: all .14s ease;
}

.header__cityConfirm--visible {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
}

.header__cityConfirmControl {
    display: flex;
    justify-content: space-between;
    margin: 25px 0 0;
    gap: 10px;
}

.header__cityConfirmButton {
    width: 90px;
    height: 40px;
    padding: 0;
    color: #fff;
    font: 400 16px/1 "sf pro display";
    background: #1A73E8;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .15s, background .2s;
}

.header__cityConfirmButton:hover {
    background: #003cd4;
}

.header__cityConfirmButton:first-child {
    background: #eee;
    color: #000;
}

.header__cityConfirmButton:first-child:hover {
    background: #dedede;
}

.header__cityDropdown {
    position: absolute;
    top: calc(100% + 8px);
    z-index: 3;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    min-width: 200px;
    max-height: 390px;
    font: 17px / 18px "sf pro display";
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
    transform: translateY(-4px);
    visibility: hidden;
    opacity: 0;
    transition: all .14s ease;
}

.header__cityDropdown--visible {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
}

.header__cityDropdownOption {
    border-bottom: 1px solid #f4f4f4;
    margin: -1px 0 0 0;
    cursor: pointer;
    padding: 11px 20px 10px 36px;
}

.header__cityDropdownOption:hover {
    background: #f5f5f5;
    border-bottom-color: transparent;
}

.header__logo {
    margin: 0 auto;
}

.main {
    min-height: calc(100vh - 220px);
}

.main__card {
    position: relative;
    background-image: url('../img/main-card.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    height: 262px;
    border-radius: 24px;
    margin-top: 32px;
    overflow: hidden;
    border: 1px solid #00000012;
}

.main__label {
    display: none;
    position: absolute;
    z-index: 3;
    top: 20px;
    left: 20px;
    border-radius: 7px;
    padding: 2px 8px;
    background: #F4842E;
    color: #fff;
    font: 400 15px/20px 'SF Pro Display';
}

.main__badge {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: #000;
    color: #fff;
    font: 700 24px/28px "SF Pro Display";
    letter-spacing: 0.01em;
    padding: 7px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main__smallCard--picoteo .main__badge {
    background: #689A21;
}

.main__badgeWine {
    background: #52021D;
}

.main__badgePhone {
    font: 600 20px/23px 'SF Pro Display';
    letter-spacing: 0.01em;
    color: #fff;
    text-wrap: nowrap;
}

.main__description {
    width: 100%;
    font: 500 15px/20px 'SF Pro Display';
    font-size: 15px;
    font-weight: 500;
    line-height: 20.25px;
    color: #02090E;
    opacity: .5;
    padding: 12px 0px 0px 15px;
    white-space: pre-line;
}

.main__wrapper {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.main__smallWrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.main__smallCard {
    position: relative;
    width: 554px;
}

.main__picture {
    height: 262px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    overflow: hidden;
    background: #00000012;
    border: 1px solid #00000012;
}

.main__smallCard--picoteo .main__picture {
    background: #DCC635;
}

.main__pictureLink {
    width: 100%;
    height: 100%;
}

.main__pictureCover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main__pictureDjango {
    max-width: 162px;
}

.footer {
    padding: 40px 0;
    background: #000;
}

.footer__application-descr {
    font-size: 15px;
    font-weight: 500;
    line-height: 20.25px;
    margin-bottom: 20px;
}

.footer__apps {
    display: flex;
    justify-content: center;
}

.footer__application {
    margin: 0 6px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #969696;
    transition: background-color .2s ease, border-color .2s ease;
    color: #969696;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.footer__application:hover {
    background-color: #fff;
    border-color: #fff;
}

.footer__application--appstore {
    background: url('../img/apps/app-store.svg') center top 4px / 17px 20px no-repeat;
}

.footer__application--googleplay {
    background: url('../img/apps/google-play.svg') center top 4px / 17px 20px no-repeat;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    color: #969696;
}

.footer__nav {
    width: fit-content;
    font-size: 16px;
    font-weight: 600px;
    color: #969696;
    cursor: pointer;
    transition: color 200ms;
    display: inline-block;
}

.footer__nav:hover {
    color: #fff;
}

.footer__info {
    width: 577px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__payments {
    display: flex;
    align-items: center;
    margin: 30px 0 0 0;
    flex-wrap: wrap;
}

.footer__payment {
    background: no-repeat 50%;
    opacity: .3;
    margin: 0 15px 10px 0;
    background-size: contain;
    transition: opacity 250ms;
}

/*style swiper*/
.swiper {
    width: 100%;
}

.swiper__nav {
    opacity: 0;
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    width: 40px;
    height: 40px;
    z-index: 2;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color .2s ease,opacity .4s ease;
    background: rgba(0, 0, 0, 0.2) url('../img/arrow.svg') no-repeat 50% 50%;
    backdrop-filter: blur(4px);
}

.swiper__nav:hover {
    background: rgba(0, 0, 0, 0.4) url('../img/arrow.svg') no-repeat 50% 50%;
}

.swiper__navPrev {
    left: 10px !important;
    transform: rotate(180deg);
}

.swiper__navNext {
    right: 10px !important;
}

.swiper:hover .swiper__nav {
    opacity: 1;
}

.swiperImg {
    border: 1px solid #E4E4E4;
    border-radius: 16px;
    object-fit: cover;
}


@media screen and (max-width: 992px) {
    .main__smallCard {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .header {
        display: flex;
        align-items: center;
    }

    .header__logo {
        display: none;
    }

    .main__description {
        width: 100%;
    }

    .main__wrapper {
        flex-direction: column;
    }

    .main__smallWrapper {
        flex-direction: column;
    }

    .footer__info {
        width: 100%;
        align-items: center;
    }

    .footer__payments {
        justify-content: center;
    }

    .footer__content {
        align-items: center;
        flex-direction: column;
    }

    .footer__applications {
        margin-top: 10px;
    }
}

@media screen and (max-width: 576px) {
    .container {
        width: 100%;
    }

    .header__content img {
        transform: scale(0.8);
    }

    .main__card {
        height: 216px;
        border-radius: 14px;
        background-image: url('../img/main-card--mobile.svg');
    }

    .main__picture {
        height: 216px;
        border-radius: 14px;
    }

    .main__picture img {
        transform: scale(0.7);
    }

    .main__label {
        top: 14px;
        left: 14px;
        padding: 2px 6px;
        font: 400 13px/17px 'SF Pro Display';
    }

    .main__badgeName {
        font: 600 18px/21px 'SF Pro Display';
    }

    .main__badgePhone {
        font: 700 14px/18px 'SF Pro Display';
    }

    .swiper__nav {
        display: none;
    }
}