.main-page__header {
    background: var(--back-blue);
    position: relative;
    z-index: 2;
    padding-bottom: 88px;
}

.main-page__header-top {
    opacity: 0;
}

.header-gradient__top {
    position: absolute;
    width: 100%;
    height: 397px;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, #dde7f9 0%, #f8f9fe 100%);
    opacity: 0.4;
}

.header-gradient__bot {
    position: absolute;
    width: 100%;
    height: 165px;
    bottom: 0;
    left: 0;
    background: linear-gradient(0deg, #dde7f9 0%, #f8f9fe 100%);
    opacity: 0.4;
}

.main-page__header .container {
    position: relative;
}

.main-page__header-mid {
    padding-top: 74px;
}

.main-page__content {
    display: flex;
    flex-direction: column;
    margin-right: 151px;
    margin-top: 32px;
}

.subtitle-wrapper {
    position: relative;
    display: inline-block;
    text-align: right;
    max-width: 230px;
    margin-left: auto;
}

.main-page__subtitle {
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 40px;
    text-align: right;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    align-self: flex-end;
    transform: translateY(120%);
    transition: transform .5s;
    opacity: 0;
    position: relative;
}

.main-page__subtitle::before {
    content: "";
    display: block;
    margin-right: 14px;
    border-radius: 50%;
    background: var(--light-blue);
    width: 12px;
    height: 12px;
    min-width: 12px;
    min-height: 12px;
}

.circle-stream {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(calc(5px), -50%);
    pointer-events: none;
    z-index: 0;
}

.circle-instance {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
    animation: pulse 8s linear forwards;
}

.circle-instance img {
    width: 64.115vw;
    height: auto;
    display: block;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

.main-page__title {
    color: var(--light-blue);
    font-weight: 700;
    font-size: 92px;
    text-align: right;
    margin-bottom: 35px;

    transform: translateY(130%);
    transition: transform .5s;
    opacity: 0;
}

.main-page__description {
    color: var(--dark-blue);
    font-weight: 400;
    font-size: 20px;
    line-height: 150%;
    letter-spacing: 0.02em;
    text-align: right;
    margin-right: 60px;
    display: inline;

    transition: opacity .8s;
    opacity: 0;
}

.main-page__header-car {
    margin-bottom: 40px;
    max-width: 1019px;
    transform: translateX(60px);
    align-self: flex-end;

    transition: transform .9s;
    transform: translateX(120%);
}

.main-page__header-car img {
    width: 100%;
}

.advantages {
    padding-top: 154px;
    overflow: hidden;
}

.popular-routes {
    padding: 100px 0;
    background-color: var(--back-blue);
    position: relative;
}

.popular-routes__back {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.popular-routes__heading {
    font-weight: 600;
    font-size: 40px;
    line-height: 110%;
    letter-spacing: 0.02em;
    color: #32465a;
    margin-bottom: 60px;
}

.popular-routes__heading span {
    color: var(--light-blue);
}

.route-cards__wrapper {
    columns: 2;
    column-gap: 20px;
    margin-bottom: 60px;
}

.route-cards__btn {
    width: 274px;
}

.route-card {
    border-radius: 32px;
    padding: 40px;
    padding-bottom: 34px;
    background: #fff;
    max-width: 610px;
    margin-bottom: 20px;
    break-inside: avoid;
}

.route-card__title {
    font-weight: 500;
    font-size: 28px;
    line-height: 120%;
    letter-spacing: 0.02em;
    color: #32465a;
    margin-bottom: 26px;
}

.route-card__subtitle {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #a9b1bc;
}

.route-card__list {
    display: inline-flex;
    flex-direction: column;
}

.route-card__rows-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.route-card__rows {
    display: inline-flex;
    flex-direction: column;
    margin-right: 40px;
}

.route-card__distance {
    margin-left: 6px;
}

.route-card__distance-text {
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: 0.02em;
    color: #e4e7ee;
}

.route-card__distance-amount {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0.02em;
    color: #a9b1bc;
}

.route-card__row {
    display: inline-flex;
    align-items: center;
    margin-bottom: 4px;
    transition: all .2s;
    border-radius: 12px;
    padding: 6px;
}

.route-card__row:nth-child(3n-1) {
    margin-bottom: 0;
}

.route-card__row:hover {
    background: #f8f9fe;
}

.route-card__row:hover .route-stop__name {
    color: var(--light-blue);
}

.route-stop {
    display: flex;
    align-items: center;
}


.route-stop__name {
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0.02em;
    color: #32465a;
    white-space: nowrap;
}

.route-card__line {
    width: 100%;
    height: 1px;
    background: #e4e7ee;
    margin: 10px 0;
}

.route-card__line:last-child {
    display: none;
}

.route-stop__icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2px;
}

.route-card__arrow {
    width: 40px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 8px;
}

.clients {
    background: var(--back-blue);
    padding: 100px 0;
    overflow: hidden;
}

.faq {
    padding: 100px 0;
    overflow: hidden;
}

.faq-list {
    max-width: 820px;
    position: relative;
}

.faq-title {
    font-weight: 600;
    font-size: 40px;
    line-height: 110%;
    letter-spacing: 0.02em;
    color: #32465a;
    margin-bottom: 60px;
}

.faq-title span {
    color: #3579f4;
}

.faq-wrapper {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border: 1px solid rgba(53, 121, 244, 0.1);
    border-radius: 16px;
    padding: 19px 24px;
    background: #fff;
    transition: all .2s;
    cursor: pointer;
    position: relative;
}

.faq-left {
    padding-right: 60px;
}

.faq-wrapper:hover {
    box-shadow: 0 16px 40px -14px rgba(53, 121, 244, 0.07);
}

.faq-wrapper:hover .faq-right {
    background: rgba(53, 121, 244, 0.06);
}

.faq-wrapper:hover .faq-right svg path {
    fill: #3579f4;
}

.faq-wrapper--active {
    background: #f8f9fe;
}

.faq-wrapper--active .faq-right {
    transform: rotate(180deg);
}

.faq-wrapper--active .faq-right svg {
    margin-left: 0;
}

.faq__question {
    font-weight: 400;
    font-size: 20px;
    line-height: 150%;
    letter-spacing: 0.02em;
    color: #32465a;
    transition: all .2s;
}

.faq__answer {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0.02em;
    color: #6a7989;
    max-height: 0;
    overflow: hidden;
    transition: all .35s ease;
}

.faq-wrapper--active .faq__answer {
    margin-top: 16px;
    max-height: 1000px;
}

.faq-right {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    border-radius: 50%;
    position: absolute;
    right: 19px;
    top: 15px;
}

.faq-right svg {
    margin-left: 1px;
    margin-top: 2px;
}

.faq-decor {
    position: absolute;
    right: 0;
    top: 185px;
    transform: translateX(100%);
}

.request {
    padding: 100px 0;
}

@media(max-width: 1920px) {
    .popular-routes__back {
        width: calc(35.8333vw + 219px);
    }

    .popular-routes__back img {
        width: 100%;
    }
}


@media(max-width: 1280px) {
    .main-page__subtitle {
        font-size: calc(2.1739vw + 12.174px);
    }

    .main-page__title {
        font-size: calc(5.8696vw + 18.8694px);
        margin-bottom: calc(-1.6304vw + 55.869px);
    }

    .header-gradient__bot {
        height: calc(9.5652vw + 42.565px);
    }

    .header-gradient__top {
        height: calc(9.5652vw + 274.565px);
    }

    .main-page__subtitle::before {
        width: calc(0.4348vw + 6.4347px);
        height: calc(0.4348vw + 6.4347px);
        min-width: calc(0.4348vw + 6.4347px);
        min-height: calc(0.4348vw + 6.4347px);
        margin-right: calc(0.5435vw + 7.0434px);
    }

    .main-page__content {
        margin-right: calc(16.413vw - 59.087px);
        margin-top: calc(-2.1739vw + 59.826px);
    }

    .main-page__description {
        margin-right: calc(6.5217vw - 23.478px);
        font-size: calc(0.6522vw + 11.6522px);
        margin-left: calc(16.413vw - 59.087px);
    }

    .main-page__header-car {
        margin-bottom: calc(-1.087vw + 53.913px);
    }

    .main-page__header-back {
        width: calc(84.0217vw + 104.522px);
        right: calc(21.7391vw - 153.261px);
        top: calc(-27.2826vw + 98.183px);
    }

    .main-page__header-back img {
        width: 100%;
    }

    .popular-routes {
        padding-bottom: calc(-13.58696vw + 273.913px) !important;
    }
}

@media(max-width: 1192px) {

    .main-page__header {
        padding-bottom: 172px;
        margin-bottom: 84px;
    }
}

@media(max-width: 1000px) {

    .main-page__description {
        display: block;
        text-align: center;
    }

    .main-page__header {
        margin-bottom: 360px;
        padding-bottom: 154px;
    }

    .advantages {
        padding-top: 60px;
        padding-bottom: 94px;
    }
}

@media(max-width: 860px) {
    .route-cards__wrapper {
        columns: 1;
    }

    .route-card {
        max-width: none;
        padding: 24px;
    }

    .route-card__title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .route-card__subtitle {
        font-size: 14px;
        line-height: 140%;
    }
}

@media(max-width: 768px) {

    .main-page__subtitle {
        line-height: 120%;
    }

    .main-page__description {
        line-height: 140%;
    }

    .faq-left {
        padding-right: 45px;
    }

    .popular-routes__heading {
        font-size: 28px;
        line-height: 120%;
    }

    .title {
        margin-bottom: 40px;
    }

    .faq__question {
        font-size: 16px;
    }

    .faq__answer {
        font-size: 14px;
    }

    .cars-title,
    .clients-title,
    .faq-title,
    .popular-routes__heading,
    .how-we-work__title,
    .services__heading {
        margin-bottom: 40px;
    }

    .faq-decor {
        display: none;
    }
}

@media(max-width: 568px) {

    .route-cards__btn {
        width: 100%;
        text-align: center;
    }

    .route-stop__icon {
        display: none;
    }

    .popular-routes {
        padding-bottom: 225px !important;
    }

    .popular-routes__back {
        width: 348px;
    }

    .route-card__rows-wrapper {
        flex-direction: column;
        align-items: start;
    }

    .route-card__distance {
        display: flex;
        align-items: center;
        margin: 8px auto 0 auto;
    }

    .route-card__distance-text {
        margin-right: 24px;
    }

    .route-card__rows {
        margin-right: 0;
        width: 100%;
    }

    .route-card__row {
        justify-content: center;
        width: 100%;
        background: #f8f9fe;
    }

    .route-card__list {
        width: 100%;
    }

    .clients-rating,
    .clients-ratings {
        width: 100%;
        max-width: none;
    }
}

@media(max-width: 360px) {
    .main-page__header-car {
        width: 100vw;
    }
}