:root {
    --text: #25282b;
    --accent: #1d6fb6;
    --background: #f8fcff;
    --background-foot: #788088;
    --light-accent: #d0dce7;
}

body {
    font-family: 'Montserrat', 'Arial', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: calc(20 / 16);
}

.container {
    max-width: 1230px;
    padding: 0 15px;
    width: 100%;
    margin: 0 auto;
    height: 100%;
}

.header {
    line-height: 150%;
}

.header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    min-height: 108px;
    align-content: center;
    align-items: center;
}

.nav__list {
    display: flex;
    gap: 10px 30px;
    flex-direction: row;
    flex-wrap: wrap;
}

.header__logo {
    max-width: 54px;
}

.header__links {
    justify-content: flex-end;
}

.links {
    display: flex;
    gap: 10px 30px;
    flex-direction: row;
    flex-wrap: wrap;
}

/* ========================================================== */

.hero {
    overflow: hidden;
    display: flex;
    justify-content: center;
    background: rgba(16, 46, 73, 0.80);
    color: var(--background);
    position: relative;
    line-height: 150%;
}

.hero__inner {
    text-align: center;
    min-height: 582px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
}

.hero__title {
    line-height: 150%;
    font-weight: 600;
    font-size: 52px;
}

.hero__list {
    margin-bottom: 10px;
}

.hero__text {
    font-size: 24px;
    color: var(--background);
}

.hero__text:nth-child(2) {
    margin: 15px 0;
    line-height: 150%;
}

.hero__text-like {
    margin-right: 18px;
}

.hero__text-like--transform2 {
    transform: translate(0, 6px);
}

.button {
    background-color: var(--light-accent);
    color: var(--accent);
    border-radius: 100px;
    padding: 18px 30px;
    min-width: 288px;
    min-height: 56px;
    font-size: 16px;
    transition: all .5s;
    text-align: center;
    display: block;
}

.button:hover {
    color: var(--background);
    background-color: #83ADD3;
}

.button--align {
    align-self: center;
}

.hero__video {
    object-fit: cover;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    right: 15%;
    z-index: -10;
    width: 100%;
    height: 100%;
}

/* ========================================================== */

.main-section {
    min-height: 2342px;
    padding-top: 165px;
}

.main-section__inner {
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.aside {
    max-width: 282px;
    width: 100%;
    max-height: 1170px;
    border: var(--light-accent) 1px solid;
    padding: 30px;
}

.aside__list {
    font-weight: 500;
}

.aside__item {
    padding-bottom: 20px;
    width: 100%;
}

.aside__item:last-child {
    padding-bottom: 0px;
}

/* ================================================== */

.wrapper {
    /* лайфхак для универсальной вставки изображений */
}

.top-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
    gap: 24px;
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 120px;
}

.top-cards__item img {
    /* лайфхак для универсальной вставки изображений */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.top-cards__item {
    position: relative;
    display: block;
    overflow: hidden;
    /* лайфхак для универсальной вставки изображений */
    padding-bottom: 100%;
}

.top-cards__hint {
    content: 'Подробнее';
    display: flex;
    width: 100%;
    height: 29%;
    background-color: rgba(29, 111, 182, 0.7);
    position: absolute;
    bottom: 0px;
    justify-content: center;
    align-items: center;
    color: var(--background);
    transition: all .5s;
    transform: translateY(100%);
    opacity: 0;
}

.top-cards__item:hover .top-cards__hint {
    transform: translateY(0%);
    opacity: 1;
}

.top-cards__item--large-left {
    grid-column: 1/3;
    grid-row: span 2;
    font-size: 24px;
}

.top-cards__item--large-right {
    grid-column: -1/-3;
    grid-row: span 2;
    font-size: 24px
}

/* ============================================ */

.bottom-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    font-weight: 500;
}

.bottom-cards__card {
    position: relative;
}

.bottom-cards__img-wrapper {
    position: relative;
    padding-bottom: 60%;
}

.bottom-cards__card-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.bottom-cards__border {
    border: 1px solid var(--light-accent);
    border-top: none;
    padding: 30px 40px;
}

.bottom-cards__hint {
    color: var(--accent);
    background-color: var(--background);
    border-radius: 0 100px 100px 0;
    padding: 18px 30px;
    min-width: 130px;
    max-height: 56px;
    position: absolute;
    top: 30px;
    left: 0px;
    animation: stretch;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-fill-mode: forwards;
    animation-direction: alternate-reverse;
    animation-timing-function: c    ubic-bezier(.6, -0.28, .74, .05);
}

@keyframes stretch {
    0% {
        padding-left: 29px;
    }

    100% {
        padding-left: 38px;
    }
}

@keyframes stretch-back {
    0% {
        padding-left: 29px;
    }

    100% {
        padding-left: 38px;
    }
}

/* ============================== */

.footer {
    background-color: var(--background-foot);
    color: var(--background);
    min-height: 80px;
}

.footer__inner {
    display: flex;
    justify-content: center;
    padding: 30px 0px;
}

.footer__img {
    margin-right: 10px;
}