@font-face {
    font-display: swap;
    font-family: "Suisse Intl";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/SuisseIntl-Regular.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Suisse Intl";
    font-style: normal;
    font-weight: 600;
    src: url("../fonts/SuisseIntl-SemiBold.woff2") format("woff2");
}

body {
    color: #3a3a3a;
    font-family: "Suisse Intl";
}

button {
    display: inline-block;
    cursor: pointer;
    padding: 0;
    border: none;
    background: none;
    -webkit-user-select: none;
    user-select: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

.mortgage-offer {
    padding: 80px 3rem;
}

.mortgage-offer__wrapper {
    max-width: 1760px;
    margin: 0 auto;
}

.mortgage-offer__content {}

.mortgage-offer__title {
    font-size: 48px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 14px;
}

.mortgage-offer__description {
    font-size: 24px;
    text-transform: uppercase;
}

.mortgage-offer__time {
    background-color: #0a66dd;
    font-size: 16px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 13px;
    border-radius: 45px;
    padding: 9px 20px;
    text-transform: initial;
    display: inline-flex;
    transform: rotate(-10deg) translate(29px, -15px);
}

.mortgage-offer__card {
    background-color: #0a66dd;
    border-radius: 20px;
    margin-top: 57px;
    padding: 64px;
    height: 450px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.mortgage-offer__card::before {
    content: "";
    position: absolute;
    width: 330px;
    height: 240px;
    border-radius: 100%;
    background-color: #ffffff;
    filter: blur(122px);
    left: -90px;
    top: -100px;
    overflow: visible;
}

.mortgage-offer__card::after {
    content: "";
    position: absolute;
    width: 590px;
    height: 380px;
    border-radius: 100%;
    background-color: #ffffff;
    filter: blur(142px);
    right: 9%;
    bottom: 12%;
    overflow: visible;
}

.mortgage-offer__card-body {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    position: relative;
}

.chair {
    position: absolute;
    right: 16%;
    bottom: 0%;
    z-index: 1;
    width: 27%;
}

.mortgage-offer__info {}

.mortgage-offer__rate {
    font-size: 48px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 35px;
}

.mortgage-offer__bank {
    font-size: 32px;
    color: #ffffff;
    font-weight: 300;
}

.mortgage-offer__logo {
    background-color: #ffffff;
    height: fit-content;
    padding: 16px 32px;
    border-radius: 60px;
}

.mortgage-offer__logo img {
    max-width: 100%;
    height: auto;
}

.mortgage-offer__action {
    margin-top: auto;
}

.mortgage-offer__button {}

.button-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding: 12px 32px;
    color: #ffffff;
    background-color: #0a66dd;
    border-radius: 30px;
    transition-duration: 0.2s;
    transition-timing-function: ease-out;
    transition-property: color, border-radius, background-color;
    border: none;
    cursor: pointer;
}

.button-primary__arrow {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ffffff;
    transition-duration: 0.2s;
    transition-timing-function: ease-out;
    transition-property: width, border-radius;
}

.button-primary__arrow::after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    right: 10px;
    width: 12px;
    height: 8px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%228%22%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22%230A66DD%22%20d%3D%22M1%203.5a.5.5%200%200%200%200%201zm10.354.854a.5.5%200%200%200%200-.708L8.172.464a.5.5%200%201%200-.708.708L10.293%204%207.464%206.828a.5.5%200%201%200%20.708.708zM1%204v.5h10v-1H1z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
}

.button-primary__arrow div {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    height: 8px;
    width: 10px;
    overflow: hidden;
    transition: width 0.2s ease-out;
}

.button-primary__arrow div::after {
    content: "";
    display: block;
    width: 26px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2226%22%20height%3D%228%22%20fill%3D%22none%22%3E%3Cpath%20stroke%3D%22%230A66DD%22%20stroke-linecap%3D%22round%22%20d%3D%22M25%204H1%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
}

.button-primary:hover {
    background-color: #3b9dff;
    border-radius: 16px;
}

.button-primary:hover span {
    color: #ffffff;
}

.button-primary:hover .button-primary__arrow {
    border-radius: 8px;
    width: 48px;
}

.button-primary:hover .button-primary__arrow div {
    width: 24px;
}

.button-primary:disabled {
    color: var(--color-grey-dark);
    background-color: var(--color-grey);
}

.mortgage-offer__action .button-primary {
    background-color: #ffffff;
    color: #0a66dd;
}

.mortgage-offer__action .button-primary:hover span {
    color: #0a66dd;
}

.mortgage-offer__action .button-primary__arrow {
    background-color: #0a66dd;
}

.mortgage-offer__action .button-primary__arrow div::after {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2226%22%20height%3D%228%22%3E%3Cpath%20stroke%3D%22%23FFFFFF%22%20stroke-linecap%3D%22round%22%20d%3D%22M25%204H1%22%2F%3E%3C%2Fsvg%3E");
}

.mortgage-offer__action .button-primary__arrow::after {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='11' height='8' viewBox='0 0 11 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M0.5 3.18201C0.223858 3.18201 0 3.40586 0 3.68201C0 3.95815 0.223858 4.18201 0.5 4.18201L0.5 3.68201L0.5 3.18201ZM10.8536 4.03556C11.0488 3.8403 11.0488 3.52372 10.8536 3.32845L7.67157 0.146473C7.47631 -0.0487893 7.15973 -0.0487893 6.96447 0.146473C6.7692 0.341735 6.7692 0.658318 6.96447 0.85358L9.79289 3.68201L6.96447 6.51043C6.7692 6.7057 6.7692 7.02228 6.96447 7.21754C7.15973 7.4128 7.47631 7.4128 7.67157 7.21754L10.8536 4.03556ZM0.5 3.68201L0.5 4.18201L10.5 4.18201V3.68201V3.18201L0.5 3.18201L0.5 3.68201Z' fill='white'/%3e%3c/svg%3e ");
}

/*  */
.city-selector-modal {
    overflow: auto;
    background-color: #f0f3fa;
}

.city-selector {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 80vh;
    width: 90%;
    max-width: 1760px;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 16px;
    z-index: 1000;
    background-color: #f0f3fa;
}

.city-selector__title {
    font-size: 48px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 28px;
    padding-right: 50px;
}

.city-selector__list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
}

.city-selector__item {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 16px;
}

.city-selector__image-wrapper {
    height: 216px;
    margin-bottom: 30px;
    position: relative;
}

.city-selector__image-wrapper svg {
    display: none;
    position: absolute;
    right: 6px;
    bottom: 6px;
}

.city-selector__image {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.city-selector__content {
    padding: 0 16px 16px;
}

.city-selector__city {
    font-size: 24px;
    color: #0a66dd;
    font-weight: bold;
    text-transform: uppercase;
}

.city-selector__price {
    display: block;
    margin-top: 20px;
    padding-top: 20px;
    font-size: 17px;
    color: #90969f;
    border-top: 1px solid #dde2ed;
    font-weight: normal;
    text-transform: initial;
}

.city-selector__button {
    margin-top: 16px;
    width: 100%;
}

[data-popup-close-btn] {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 10;
    width: 32px;
    height: 32px;
    color: var(--color-grey-dark);
    transition: color 0.2s ease-out;
}

[data-popup-close-btn]:hover {
    color: #0a66dd;
}

[data-popup] {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

[data-popup]._open {
    top: 0;
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    z-index: 9999;
}

.mortgage-offer__button-mobile {
    display: none;
}

.mortgage-offer__list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 100px;
    margin-top: 50px;
    font-weight: 400;
    font-size: 20px;
    line-height: 140%;
}

.mortgage-offer__list ul {
    flex: 1 1;
    display: flex;
    align-items: flex-start;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;

}

.mortgage-offer__list ul li {
    padding-right: 30px;
    border-right: 1px solid #DDE2ED;
}

.mortgage-offer__list ul li:last-child {
    border: none;
    padding-right: 0;
}



.mortgage-offer__list ul li p {
    color: #0A66DD;
    font-weight: 600;
    margin-top: 7px;
}

.mortgage-offer__list-title {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mortgage-offer__list-title span {
    font-weight: 600;
    font-size: 32px;
    line-height: 120%;
    letter-spacing: 0%;
}

.mortgage-offer__list-btn {
    flex: none;
    max-width: 254px;
    width: 100%;
}

.mortgage-offer__list-btn a {
    width: 100%;
}

.tooltip__icon {
    position: absolute;
    right: 20px;
    bottom: 20px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: help;
}


.tooltip:hover .tooltip__content {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.tooltip__content {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    background-color: #fff;
    padding: 24px;
    border-radius: 20px;
    transition: .3s ease;
    bottom: 20px;
    right: 68px;
    z-index: 2;
    max-width: 1040px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 13px;
    line-height: 130%;

}

@media (max-width: 1600px) {

    .tooltip__content {
        max-width: 734px;
    }

    .mortgage-offer__list {
        gap: 50px;
        font-size: 18px;
    }

    .mortgage-offer__list ul li {
        padding-right: 16px;
        flex: 1 1;
        white-space: nowrap;
    }

    .mortgage-offer__list ul {
        gap: 16px;
    }

    .mortgage-offer__list-title span {
        font-size: 24px;
    }
}

@media (max-width: 1440px) {

    .mortgage-offer__title,
    .city-selector__title {
        font-size: 40px;
    }

    .mortgage-offer__card {
        margin-top: 37px;
        padding: 48px;
        height: 420px;
    }

    .mortgage-offer__rate {
        font-size: 40px;
        margin-bottom: 25px;
    }

    .mortgage-offer__bank {
        font-size: 24px;
    }

    .chair {
        right: 12%;
        bottom: 0%;
        max-width: 100%;
        width: 27%;
    }

    .city-selector__city {
        font-size: 18px;
    }
}

@media (max-width: 1439.5px) {

    .chair {
        width: 30%;
    }

    .tooltip__content {
        left: 15px;
        max-width: 100%;
        font-size: 11px;
        padding: 16px;
    }

    .mortgage-offer__list {
        flex-wrap: wrap;
        gap: 24px;
        font-size: 16px;
    }

    .mortgage-offer__list-title {
        flex: 1 1 100%;
    }

    .mortgage-offer__list-title span {
        font-size: 22px;
    }
}

@media (max-width: 1280px) {
    .mortgage-offer__title {
        margin-bottom: 25px;
    }

    .mortgage-offer__description {
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 28px;
    }

    .mortgage-offer__time {
        transform: initial;
        width: auto;
    }
}

@media (max-width: 1210px) {

    .mortgage-offer__card {
        height: 350px;
    }

    .city-selector__list {
        grid-template-columns: 1fr 1fr;
    }

    .city-selector__button {
        display: none;
    }

    .city-selector__item {
        display: grid;
        grid-template-columns: 1fr 0.6fr;
    }

    .city-selector__image-wrapper {
        order: 2;
    }

    .city-selector__content {
        order: 1;
    }

    .city-selector__image-wrapper {
        height: auto;
        margin-bottom: 0;
    }

    .city-selector__image-wrapper svg {
        display: block;
    }
}

@media (max-width: 1024px) {
    .mortgage-offer {
        padding: 39px 1.3rem;
    }

    .mortgage-offer__title,
    .city-selector__title {
        font-size: 36px;
    }

    .mortgage-offer__description {
        font-size: 20px;
    }

    .mortgage-offer__rate {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .mortgage-offer__bank {
        font-size: 20px;
    }

    .mortgage-offer__logo {
        max-width: 159px;
    }

    .mortgage-offer__logo {
        padding: 12px 29px;
    }

    .city-selector {
        max-height: 95vh;
        width: 100%;
        padding: 50px 20px;
    }

    .city-selector__city-name {
        height: auto !important;
    }

    .city-selector__price {
        margin-top: 12px;
        padding-top: 0;
        border: none;
    }
}

@media (max-width: 1023.5px) {
    .tooltip {
        z-index: 2;
    }

    .tooltip__content {
        font-size: 10px;
        right: 58px;
        bottom: 12px;
    }

    .tooltip__icon {
        right: 12px;
        bottom: 12px;
    }

    .mortgage-offer__list-btn {
        flex: 1 1 100%;
    }

    .mortgage-offer__list-btn a {
        width: 100%;
    }

    .mortgage-offer__list-title {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .city-selector__title {
        font-size: 24px;
        line-height: 1.3;
    }

    .mortgage-offer__description {
        font-size: 16px;
    }

    .mortgage-offer__card {
        margin-top: 37px;
        padding: 32px;
        height: 382px;
    }

    .chair {
        right: 8%;
        bottom: 0%;
        max-width: 46%;
    }

    .mortgage-offer__card::after {
        right: -71%;
        bottom: -38%;
    }

    .mortgage-offer__card::before {
        left: -150px;
        top: -150px;
    }

    .city-selector__list {
        grid-template-columns: 1fr;
    }

    .city-selector__image-wrapper {
        height: 111px;
    }

    .city-selector__item {
        gap: 16px;
    }

    .city-selector__content {
        padding: 0;
    }
}

@media (max-width: 767.5px) {

    .mortgage-offer__card {
        overflow: visible;
    }

    .tooltip__content {
        left: 0;
        right: 0;
        top: 0;
        bottom: 55px;
        box-shadow: 0px 4px 12px 0px #00000054;
    }

    .mortgage-offer__list ul {
        overflow: auto;
        margin: 0 -20px;
        flex: 1 1 100%;
        gap: 24px;
    }

    .mortgage-offer__list ul li {
        min-width: 164px;
        white-space: nowrap;
        padding-right: 24px;
        box-sizing: border-box;
    }

    .mortgage-offer__list ul li:first-child {
        padding-left: 20px;
    }

    .mortgage-offer__list ul::-webkit-scrollbar {
        display: none;
    }


}

@media (max-width: 516px) {

    .mortgage-offer__title,
    .city-selector__title {
        font-size: 24px;
    }

    .mortgage-offer__description {
        font-size: 16px;
    }

    .mortgage-offer__rate {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .mortgage-offer__bank {
        font-size: 16px;
    }

    .mortgage-offer__card {
        margin-top: 32px;
        padding: 24px;
        height: 445px;
    }

    .mortgage-offer__card::before {
        display: none;
    }

    .chair {
        right: 7%;
        bottom: 0%;
        max-width: 82%;
    }

    .mortgage-offer__card::after {
        width: 460px;
        height: 270px;
    }

    .mortgage-offer__action {
        /* display: none; */
        position: relative;
        z-index: 1;
        max-width: fit-content;
    }

    .mortgage-offer__list-btn {
        max-width: 100%;
        width: 100%;
    }

    .mortgage-offer__logo {
        display: none;
    }

    .mortgage-offer__card-body {
        flex-direction: column;
        height: 100%;
        z-index: 1;
    }

    .mortgage-offer__logo {
        max-width: 146px;
        padding: 8px 18px;
    }

    .mortgage-offer__button-mobile {
        display: none;
        width: 100%;
        margin-top: 24px;
    }

    .city-selector__image-wrapper {
        height: 100%;
    }

    .chair {
        max-width: 100%;
        width: 85%;
    }
}