.cover {
    padding-top: 165px;
    background: linear-gradient(to right, #021549 0%, #022586 100%);
    color: #fff;
    position: relative;
    z-index: 1;
}
.cover__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 90px;
    padding: 134px 30px 0px 0px;
}
.cover h1 {
    display: block;
    flex-grow: 0;
    max-width: 740px;
    font-weight: 900;
    font-size: 48px;
    line-height: 130%;
    margin-top: 0;
}
.cover__text ul {
    list-style-type: disc;
    max-width: 573px;
    padding-left: 20px;
}
.cover__text ul li {
    font-size: 18px;
    vertical-align: middle;
    color: #eff3ff;
    margin-top: 16px;
}
.cover__text p {
    margin-top: 25px;
    font-size: 14px;
    color: #eff3ff;
    opacity: 0.6;
}
.cover__text-btn {
    background: linear-gradient(to right, #ffffff 0%, #ffffff 100%);
    color: #850003;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease-in;
    margin-top: 56px;
    padding: 17px;
    max-width: 234px;
    font-size: 20px;
    font-weight: 900;
}
.cover__text-btn:hover {
    background: linear-gradient(to right, #850003 0%, #a80f12 100%);
    box-shadow: 0 0 6px 2px rgba(14, 14, 15, 0.25);
    color: #fff;
}
.container__inner {
    max-width: 85vw;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}
.cover__animation {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(14, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    overflow: hidden;
}
.cover__animation img[data-wheel="one"] {
    grid-row: 2/4;
    grid-column: 1/3;
    align-self: flex-end;
    width: 75%;
    animation: spin 25s linear infinite;
}
.cover__animation img[data-wheel="two"] {
    grid-row: 1/3;
    grid-column: 2/4;
    align-self: flex-end;
    width: 95%;
    animation: spin-reverse 25s linear infinite;
}
.cover__animation img[data-wheel="three"] {
    grid-row: 1/3;
    grid-column: 4/6;
    width: 85%;
    justify-self: center;
    margin-top: 10px;
    animation: spin 25s linear infinite;
}
.cover__animation img[data-wheel="four"] {
    grid-row: 2/4;
    grid-column: 5/8;
    width: 65%;
    align-self: flex-end;
    margin-top: 20px;
    justify-self: center;
    transform: rotate(-35deg);
    animation: spin-reverse 25s linear infinite;
}
.cover__animation img[data-wheel="five"] {
    grid-row: 1/3;
    grid-column: 7/9;
    width: 75%;
    transform: rotate(25deg);
    align-self: flex-end;
    margin-left: 40px;
    animation: spin 25s linear infinite;
}
.cover__animation img[data-wheel="six"] {
    grid-row: 2/4;
    grid-column: 9/11;
    width: 100%;
    animation: spin-reverse 25s linear infinite;
}
.cover__animation img[data-wheel="seven"] {
    grid-row: 1/3;
    grid-column: 11/13;
    width: 90%;
    align-self: flex-end;
    margin-left: 0;
    animation: spin 25s linear infinite;
}
.cover__animation img[data-wheel="eight"] {
    grid-row: 2/4;
    grid-column: 13/15;
    width: 100%;
    animation: spin-reverse 25s linear infinite;
}
.popular {
    margin-top: -105px;
    padding-top: 90px;
    position: relative;
    z-index: 2;
    background-color: #fff;
    border-radius: 20px 20px 0 0;
}
.popular__cats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-columns: repeat(3, minmax(270px, 456px));
    width: 100%;
    margin-top: 40px;
    column-gap: 16px;
    row-gap: 40px;
    justify-content: center;
}
.popular__showmore {
    color: #8b8b91;
    font-size: 14px;
    text-decoration: underline;
}
.popular__showmore:hover {
    color: #850003;
}
.popular__item {
    padding: 32px;
    background-color: #eff3ff;
    border-radius: 10px;
}
.popular__item:hover {
    box-shadow: 0 0 6px 2px rgba(14, 14, 15, 0.25);
}
.popular__item:hover .popular__item-title::after {
    opacity: 1;
}
.popular__item-title {
    font-weight: 700;
    font-size: 24px;
    position: relative;
    transition: all 0.3s ease-in;
}
.popular__item-title::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: -4px;
    left: 0;
    background-color: #850003;
    opacity: 0;
}
.popular__item-title:hover {
    color: #850003;
    cursor: pointer;
}
.popular__item__inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 32px;
    width: 100%;
    max-height: 90%;
}
.popular__item-list {
    display: grid;
    grid-template-rows: repeat(5, 25px);
    grid-template-columns: auto;
    gap: 16px;
    max-height: 100%;
    width: 100%;
    align-content: center;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    align-items: center;
}
.popular__item-list li {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.popular__item-list li:hover {
    color: #850003;
}
.popular__icon {
    align-self: flex-end;
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    overflow: visible;
}
.popular__icon img {
    position: absolute;
    inset: 0;
    width: 150%;
    height: auto;
    object-fit: cover;
    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}
.popular__icon img.hidden {
    opacity: 0;
    transform: scale(1);
    pointer-events: none;
}
.popular__icon img:nth-child(2) {
    width: 140%;
    height: 120%;
    left: 2px;
    top: -30%;
    transform: scale(1.6);
}
.popular__icon img:nth-child(2).hidden {
    opacity: 0;
    transform: scale(1.1);
}
.subtitle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.subtitle_red {
    font-weight: 800;
    font-size: 36px;
    color: #850003;
}
.subtitle_link {
    text-decoration: underline;
    font-size: 18px;
}
.subtitle_link_white {
    text-decoration: underline;
    font-size: 18px;
    color: #eff3ff;
}
.subtitle_link_white:hover {
    color: #850003;
}
.subtitle_link:hover {
    color: #850003;
}
.subtitle_white {
    font-weight: 800;
    font-size: 36px;
    color: #fff;
}
.about_main {
    margin-top: 140px;
}
.about_main__text {
    margin-top: 40px;
    font-size: 18px;
    font-weight: 400;
}
.options {
    margin-top: 40px;
}
.options__wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 257px;
    gap: 16px;
}
.options__item {
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 80px 52px 70px;
    height: 100%;
    gap: 16px;
}
.options__item-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #eff3ff;
    flex-shrink: 0;
}
.options__item-title {
    font-weight: 700;
    font-size: 20px;
}
.options__item-descr {
    font-size: 18px;
}
.services_main {
    margin-top: 140px;
}
.services_main__wrapper {
    width: 100%;
    border-radius: 20px;
    background: linear-gradient(to right, #021549 0%, #022586 100%);
    padding: 73px 80px 63px 64px;
}
.services_main__container {
    margin-top: 55px;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: end;
    gap: 40px;
}
.services_main__wheels {
    margin-right: auto;
    align-self: flex-end;
}
.service__card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    width: 338px;
    height: 404px;
    position: relative;
    z-index: 1;
}
.service__card:hover .service__card__title::after {
    opacity: 1;
}
.service__card__img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 1;
    transition: all 0.3s ease-in;
}
.service__card__img.hidden {
    opacity: 0;
}
.service__card__overlay {
    position: absolute;
    background: linear-gradient(to bottom, #010e31 0%, rgba(1, 14, 49, 0) 100%);
    pointer-events: none;
    z-index: 3;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.service__card__content {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 5;
    color: #fff;
    padding: 30px 17px;
}
.service__card__title {
    font-size: 24px;
    font-weight: 700;
    position: relative;
}
.service__card__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #850003;
    opacity: 0;
    transition: all 0.3s ease-in;
}
.articles_main {
    margin-top: 140px;
}
.articles_main__wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    justify-content: space-between;
    margin-top: 40px;
}
.articles_main__card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.1s ease-in;
    max-width: 456px;
    width: 100%;
}
.articles_main__card-image {
    position: relative;
    padding: 20px;
    width: 100%;
    height: 368px;
    transition: all 0.1s ease-in;
}
.articles_main__card-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #850003;
    opacity: 0;
    z-index: 5;
}
.articles_main__card-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}
.articles_main__card-tag {
    display: block;
    position: relative;
    z-index: 2;
    background-color: #021549;
    border-radius: 25px;
    padding: 9px 12px;
    color: #fff;
    max-width: fit-content;
}
.articles_main__card-title {
    margin-top: 20px;
    padding: 5px 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
    z-index: 4;
}
.articles_main__card-title a {
    text-overflow: ellipsis;
}
.articles_main__card:hover {
    box-shadow: 0 0 6px 2px rgba(14, 14, 15, 0.25);
}
.articles_main__card:hover .articles_main__card-image::after {
    opacity: 1;
}
.reviews {
    margin-top: 140px;
}
.reviews__controls {
    display: flex;
    gap: 16px;
    align-items: center;
}
.reviews__controls-left {
    width: 10px;
    height: 10px;
    border-left: 2px solid #021549;
    border-bottom: 2px solid #021549;
    transform: rotate(45deg);
    cursor: pointer;
    flex-shrink: 0;
}
.reviews__controls-right {
    width: 10px;
    height: 10px;
    border-left: 2px solid #021549;
    border-bottom: 2px solid #021549;
    transform: rotate(-135deg);
    cursor: pointer;
    flex-shrink: 0;
}
.reviews__wrapper {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}
.reviews__slider {
    margin-top: 40px;
    overflow: hidden;
}
.reviews__item {
    border: 1px solid #eff3ff;
    border-radius: 10px;
    padding: 20px 10px;
    overflow: hidden;
    width: 338px;
    height: 330px;
    flex-shrink: 0;
}
.reviews__item-caption {
    display: flex;
    gap: 20px;
    max-height: 70px;
    align-items: center;
}
.reviews__item-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #f9faff;
    overflow: hidden;
}
.reviews__item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.reviews__item-author p {
    font-weight: 700;
    font-size: 16px;
    color: #021549;
}
.reviews__item-author p.date {
    margin-top: 10px;
    color: #8b8b91;
    font-size: 12px;
    font-weight: 400;
}
.reviews__item-stars {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.reviews__item-text {
    margin-top: 20px;
    font-size: 16px;
    font-weight: 400;
    color: #021549;
}
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
@keyframes spin-reverse {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}
@media screen and (max-width: 1280px) {
    .cover__wrapper {
        padding: 100px 20px 30px 0px;
        gap: 40px;
    }
    .cover h1 {
        max-width: 50%;
        font-size: 44px;
    }
    .popular__cats {
        margin-top: 40px;
    }
    .options__wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 992px) {
    .cover__wrapper {
        flex-direction: column;
        padding: 90px 60px 30px 60px;
        gap: 20px;
    }
    .cover h1 {
        max-width: 100%;
        font-size: 42px;
    }
    .cover__text ul {
        max-width: 100%;
    }
    .cover__text ul li {
        font-size: 18px;
    }
    .cover__text p {
        font-size: 12px;
    }
    .cover__text-btn {
        margin-top: 40px;
        padding: 11px;
        font-size: 14px;
        font-weight: 700;
    }
    .cover__animation {
        grid-template-columns: repeat(14, 85px);
        grid-template-rows: repeat(3, 80px);
    }
    .cover__animation img[data-wheel="one"] {
        grid-row: 1/4;
        grid-column: 1/3;
        align-self: flex-end;
        margin-left: -60px;
        width: 90%;
        animation: spin 25s linear infinite;
    }
    .cover__animation img[data-wheel="four"] {
        margin-left: 20px;
    }
    .popular {
        margin-top: -45px;
        padding-top: 50px;
        width: 100%;
    }
    .subtitle_red,
    .subtitle_white {
        font-size: 30px;
    }
    .subtitle_link,
    .subtitle_link_white {
        font-size: 16px;
    }
    .popular__cats {
        grid-template-columns: repeat(2, minmax(270px, 50%));
        row-gap: 16px;
    }
    .about_main {
        margin-top: 100px;
    }
    .about_main__text {
        font-size: 16px;
        margin-top: 30px;
    }
    .options {
        margin-top: 30px;
    }
    .options__item {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .options__item-title {
        font-size: 18px;
    }
    .options__item-descr {
        font-size: 16px;
    }
    .services_main__wrapper {
        padding: 60px 40px;
    }
    .services_main__container {
        justify-content: center;
        margin-top: 30px;
        gap: 16px;
    }
    .services_main__wheels {
        display: none;
    }
    .articles_main__wrapper {
        overflow-x: auto;
        padding-bottom: 30px;
    }
    .articles_main__wrapper::-webkit-scrollbar {
        height: 3px;
    }
    .articles_main__wrapper::-webkit-scrollbar-track {
        background: #eff3ff;
        margin-top: 30px;
    }
    .articles_main__wrapper::-webkit-scrollbar-thumb {
        background-color: #850003;
        border-radius: 999px;
    }
    .articles_main__wrapper {
        scrollbar-width: thin;
        scrollbar-color: #850003 #eff3ff;
    }
    .articles_main__card {
        max-width: 355px;
        flex-shrink: 0;
    }
}
@media screen and (max-width: 692px) {
    .cover__wrapper {
        padding: 60px 10px;
    }
    .cover h1 {
        font-size: 32px;
        font-weight: 700;
    }
    .cover__text ul li {
        font-size: 16px;
    }
    .cover__text p {
        font-size: 10px;
    }
    .cover__text-btn {
        max-width: 100%;
    }
    .cover__animation {
        grid-template-columns: repeat(14, 55px);
        grid-template-rows: repeat(3, 55px);
    }
    .cover__animation img[data-wheel="one"] {
        grid-row: 1/4;
        grid-column: 1/3;
        align-self: flex-end;
        margin-left: -30px;
        width: 90%;
        animation: spin 25s linear infinite;
    }
    .cover__animation img[data-wheel="two"] {
        width: 100%;
    }
    .cover__animation img[data-wheel="three"] {
        grid-row: 2/4;
        justify-self: flex-start;
        width: 95%;
    }
    .cover__animation img[data-wheel="four"] {
        grid-row: 1/3;
        width: 65%;
    }
    .popular__cats {
        display: flex;
        flex-wrap: nowrap;
        overflow: auto;
        width: 100%;
        justify-content: flex-start;
        align-content: stretch;
        scroll-padding-left: 10px;
        scroll-snap-type: x proximity;
        padding-left: 10px;
        padding-bottom: 30px;
        scrollbar-gutter: stable;
    }
    .popular__cats::-webkit-scrollbar {
        height: 3px;
    }
    .popular__cats::-webkit-scrollbar-track {
        background: #eff3ff;
        margin-top: 30px;
    }
    .popular__cats::-webkit-scrollbar-thumb {
        background-color: #850003;
        border-radius: 999px;
    }
    .popular__cats {
        scrollbar-width: thin;
        scrollbar-color: #850003 #eff3ff;
    }
    .popular__item {
        width: 355px;
        flex-shrink: 0;
    }
    .subtitle {
        align-items: flex-end;
    }
    #subtitle_reviews {
        align-items: center;
    }
    .subtitle_red,
    .subtitle_white {
        font-size: 24px;
        line-height: 130%;
    }
    .subtitle_link,
    .subtitle_link_white {
        flex-shrink: 0;
    }
    .services_main__wrapper {
        padding: 44px 16px;
    }
    .services_main__container {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 30px;
    }
    .services_main__container .service__card {
        flex-shrink: 0;
        width: 100%;
    }
    .services_main__container::-webkit-scrollbar {
        height: 3px;
    }
    .services_main__container::-webkit-scrollbar-track {
        background: #eff3ff;
        margin-top: 30px;
    }
    .services_main__container::-webkit-scrollbar-thumb {
        background-color: #850003;
        border-radius: 999px;
    }
    .services_main__container {
        scrollbar-width: thin;
        scrollbar-color: #850003 #eff3ff;
    }
}
@media screen and (max-width: 576px) {
    .about_main {
        margin-top: 40px;
    }
    .options__wrapper {
        display: flex;
        flex-direction: column;
    }
    .articles_main__card {
        max-width: 100%;
        height: auto;
    }
}
