@media (max-width: 1240px) {
    section.feedback {
        overflow: hidden;
    }

    section.another-cards {
        overflow: hidden;
    }

    section.another-cards ul li {
        max-width: 320px;
    }
}

@media (max-width: 1024px) {
    footer .footer__wrapper {
        justify-content: center;
    }

    section.lk-section .lk-section__wrapper {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    section.lk-section h2 {
        text-align: center;
    }

    section.lk-section .text-content {
        align-items: center;
        justify-content: center;
        display: flex;
        flex-direction: column;
    }

    section.lk-section .lk-section__wrapper .text-content .text {
        margin-bottom: 32px;
    }

    section.lk-section .lk-section__wrapper > img {
        max-width: 600px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .select-dropdown ul {
        right: 37px;
        top: -61px;
    }
    .select-dropdown.white li:last-child {
        border-radius: 0 24px 24px 0;
    }
    section.feedback ul {
        justify-content: flex-start;
    }

    header .header__wrapper nav ul, header .header__wrapper .header__actions {
        display: none;
    }

    .calculator .calculator__inputs-wrapper {
        flex-direction: column;
    }

    header {
        height: 62px;
    }

    #burger {
        display: initial;
    }

    header .header__wrapper {
        height: 62px;
    }

    .calculator .calculator__details-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .calculator {
        margin-top: 24px;
        padding: 24px;
    }

    section.main-section {
        padding: 100px 0 !important;
        padding-bottom: 64px !important;
    }

    section.main-section h1 {
        margin-bottom: 8px !important;
    }

    section.get-loan ul li {
        min-height: auto;
        padding: 24px;
        max-width: 344px;
    }

    section.get-loan ul li .title {
        font-size: 20px;
        line-height: 1.4;
    }

    footer .footer__wrapper {
        justify-content: space-between;
    }

    section.feedback {
        overflow: initial;
    }

    .container {
        padding: 0 12px;
    }

    section.socials .socials__wrapper {
        gap: 32px;
        text-align: center !important;
    }

    section.socials h2 {
        text-align: center !important;
    }

    section.socials .socials__wrapper > img {
        max-width: 600px;
        width: 100%;
    }

    section.socials .socials__wrapper .content-wrapper .socials-link {
        flex-direction: column;
    }

    section.socials .socials__wrapper .content-wrapper .text {
        margin-bottom: 0;
    }

    section.referral ul li {
        padding: 24px 24px 0 24px;

    }

    section.referral ul li > img {
        width: 100%;
    }

    section.referral ul li .title {
        font-size: 24px;
        line-height: 1.4;
    }

    .calculator .calculator__details-wrapper .calculator__details li {
        align-items: flex-start;
    }

    .calculator .calculator__details-wrapper .calculator__details li .name {
        flex: 1 1 auto;
        min-width: 0;
    }

    .calculator .calculator__details-wrapper .calculator__details li .value {
        flex: 0 0 auto;
        white-space: nowrap;
        text-align: right;
    }
}

@media (max-width: 500px) {
    section.main-section {
        background: url("../images/first-screen-mobile-bg.png") no-repeat center center;
        background-size: cover;
    }

    section.main-section .video-wrap video {
        display: none;
    }

    section.main-section .video-wrap video.mobile {
        display: block;
    }

    section.card-open-section h2 {
        text-align: center;
    }

    .breadcrumbs__container {
        margin-bottom: 32px;
    }

    .card-open-details {
        justify-content: center;
    }

    footer nav ul li {
        max-width: 450px;
    }

    footer .socials-wrapper {
        gap: 8px;
    }

    main.main-page section {
        padding: 48px 0;
    }

    footer {
        padding-top: 40px;
    }

    .h2-mb {
        margin-bottom: 32px !important;
    }

    h2 {
        font-size: 28px;
        line-height: 1.4;
    }

    h1 {
        font-size: 34px;
        line-height: 1.4;
    }

    .subtitle {
        font-size: 20px;
        line-height: 1.4;
    }

    .text {
        font-size: 20px;
        line-height: 1.4;
    }
}

@media screen and (min-width: 768px) {
    .hero-banner__image--desktop {
        display: block;
    }


    .hero-banner__image--mobile {
        display: none;
    }

    .hero-banner__image-container {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .hero-banner__image {
        width: 100%;
        margin-top: 0;
        z-index: -1;
        height: 100%;
        object-fit: cover;
        overflow: visible;
        transform: scale(1.2);
        transform-origin: right bottom;
        aspect-ratio: 599 / 658;
    }

    .hero-banner__container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 31px;
        max-width: 1270px;
        padding: 0 20px;
        margin: 0 auto;
    }

    .hero-banner__content-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 102px 0 145px;
    }

    .hero-banner__title {
        text-align: start;
        font-size: 36px;
        line-height: 120%;
        text-wrap: balance;
    }

    .hero-banner__subtitle {
        text-align: start;

        font-size: 28px;
        line-height: 120%;
        margin-bottom: 40px;
        text-wrap: balance;
    }

    .hero-banner__description {
        text-align: start;
        line-height: 120%;
        margin-bottom: 64px;
        text-wrap: balance;
    }

    .hero-banner__link {
        padding: 20px 92.5px;
    }
}

/* features section */

@media screen and (min-width: 768px) {

    .features {
        margin: 100px 0;
    }

    .features__item {
        padding: 0 24px;
        flex-direction: row;
        column-gap: 40px;
    }

    .features__item-text {
        text-align: start;
        font-size: 28px;
        line-height: 120%;
    }
}

/* action banner */

@media screen and (min-width: 768px) {
    .action-banner {
        margin: 100px 0;
    }

    .action-banner__container {
        display: grid;
        grid-template-columns: 1.25fr 1fr;
    }

    .action-banner__content-container {
        padding: 100.5px 0;
    }

    .action-banner__image {
        margin-top: 0;
        transform: scale(1);
        transform-origin: center center;
        height: 100%;
        object-fit: none;
        overflow: visible;
    }

    .action-banner__title {
        font-size: 36px;
        line-height: 120%;
        text-align: end;
    }

    .action-banner__description {
        font-size: 28px;
        line-height: 120%;
        text-align: end;
    }

    .action-banner__link-container {
        margin-top: 24px;
        justify-content: flex-end;
    }

}

/* text info section */
@media screen and (min-width: 768px) {

    .text-info {
        max-width: 820px;
        margin: 100px auto;
    }

    .text-info__title {
        font-size: 36px;
        line-height: 120%;
        margin-bottom: 40px;
    }

    .text-info__description {
        font-size: 16px;
        line-height: 140%;
        margin-bottom: 24px;
    }
}

/* faq section */

@media screen and (min-width: 768px) {

    .faq__top-container {
        gap: 24px;
    }

    .faq__bg-element-container {
        display: block;
        pointer-events: none;
    }

    .faq__title {
        font-size: 36px;
        line-height: 120%;
    }

    .faq__description {
        font-size: 18px;
        line-height: 120%;

    }

    .faq-page .faq {
        padding: 64px 0 181px;
    }

    .faq__content-container {
        display: grid;
        grid-template-columns: 0.3fr 0.7fr;
        row-gap: 64px;
        column-gap: 30px;
    }

    .faq__toggle-tabs-list {
        display: flex;
        flex-direction: column;
        row-gap: 24px;
        width: 100%;
    }

    .faq__questions-list {
        height: fit-content;
    }

    .faq__toggle-tabs-button {
        width: 100%;
        font-size: 24px;
        line-height: 120%;
    }

    .faq__questions-button-text {
        font-size: 16px;
        line-height: 140%;
    }

}

/* pagination-grid media queries */

@media (min-width: 500px) {
    .pagination-grid__pagination-list {
        row-gap: 10px;
    }

    .pagination-grid__pagination-btn {
        padding: 2px 10px;
    }

    .pagination-grid__pagination-container {
        column-gap: 2px;
    }
}

@media (min-width: 768px) {
    .pagination-grid__list {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .pagination-grid__title {
        font-size: 36px;
        line-height: 120%;
        margin-bottom: 64px;
    }

    .pagination-grid__item-title {
        line-height: 120%;
    }
}

@media (min-width: 1200px) {
    .pagination-grid__list {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 30px;
    }
}
