body {
    font-family: "Montserrat", "Arial", sans-serif;
    line-height: calc(20px / 16px);
    /* 125% LH*/
    color: #252828;
    background: #F8FCFF;
}

.container {
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 15px;
    height: 100%;
}

/* ======================== */
.header {
    line-height: 1.5;
    /* display: flex; */
}

.header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    min-height: 108px;
    align-content: center;
    align-items: center;
}

/* .header__inner>*:last-child {
    justify-self: end;
}  */

.header__logo {
    min-width: 54px;
}

.nav {}

.header__socials {
    justify-self: end;
}

.nav__list {
    display: flex;
    gap: 10px 30px;
    flex-wrap: wrap;
}

.nav__item {}

.nav__link {}

.socials {
    display: flex;
    gap: 10px 30px;
    flex-wrap: wrap;
}

.socials__item {}

.socials__link {}


/* ----------------------------------------------------- */

.hero {
    /* background: #000; */
    padding: 120px 0;
    color: var(--white-text);
    line-height: 1.5;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
    /* background: #000; */
    color: #F8FCFF;
    position: relative;
}

.hero__title {
    font-weight: 600;
    font-size: 52px;
    margin-bottom: 30px;
}

.hero__list {
    font-size: 24px;
    line-height: 1.5;
    margin-bottom: 40px;
}

.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__list__item {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 15px;
    transition: all .5s;
}

.hero__list__item:last-child {
    margin-bottom: 0px;
}

.hero__list__item:hover {
    color: #6666cc;
}

.hero__list__item:hover img {
    color: #6666cc;
    fill: #6666cc;
    filter: invert(34%) sepia(62%) saturate(2372%) hue-rotate(210deg) brightness(90%) contrast(90%);
    transition: all .5s;
}

.hero__video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero__video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__video:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0c0b5c80;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    color: blue;
    width: 100%;
    height: 56px;
    background: #62a1db;
    border-radius: 100px;
    transition: all 0.5s;
}

.button:hover {
    background: #0c0b5c80;
    color: #6666cc;
    transition: all .5s;
}

/* ============================================================================== */

.main__general {
    padding: 120px 0;
}

.main__wrapper {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    align-items: start;
}

.main__body {
    width: 100%;
    max-width: 792px;
}

.main__gallery {
    margin-bottom: 120px;
}

.sidebar {
    padding: 30px;
    /* flex-basis: 282px;
    flex-shrink: 0; */
    width: 100%;
    max-width: 282px;
    border: 2px solid #6f6f85;
    min-height: 60vh;
}

.main__sidebar{
    position: sticky;
    top: 5vh;

}


.sidebar__item {
    margin-bottom: 20px;
}

.sidebar__item :last-child {
    margin-bottom: 0;
}

.sidebar__link {}

/* ============================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    grid-auto-flow: dense;
    font-weight: 500;
    line-height: 20px;
    color: azure;
}

.gallery__img img {
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.gallery__img {
    display: block;
    position: relative;
    overflow: hidden;
    padding-bottom: 100%;
}

.gallery__img--large-left {
    grid-column: 1/3;
    grid-row: span 2;
}

.gallery__img--large-right {
    grid-column: -1/-3;
    grid-row: span 2;
}

.gallery__hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #567bf5;
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(100%);
    transition: all .5s;
    opacity: 0;
}

.gallery__img--large-left .gallery__hint,
.gallery__img--large-right .gallery__hint {
    height: 103px;
    font-size: 24px;
    line-height: 29px;
}

.gallery__img:hover .gallery__hint {
    transform: translateY(0%);
    opacity: 1;
}


/* ------------------------------------------- */

.products {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, 1fr);
}

.products__item {
    border: 1px solid #dce2e7;
    padding: 15px 10px;
}

.products__item-button {
    margin: 0 auto;
    width: 240px;
}


.products__item-img {
    position: relative;
    padding-bottom: 62%;
    margin-bottom: 16px;
}

.products__item-badge {
    position: absolute;
    left: 0;
    top: 30px;
    background: #eceae8;
    border-radius: 0px 100px 100px 0px;
    padding: 18px;
    min-width: 33%;
    text-align: center;
    font-weight: 500;
    line-height: 20px;
    color: #567bf5;

    animation: badge-actions 2s infinite alternate;

}

@keyframes badge-actions {
    0% {
        min-width: 33%;
    }
    66.333% {
    min-width: 33%;
    }
    100% {
        min-width: 37.3%;
    }
    
}


.products__item-img img {
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}



/* ------------------------------------------- */


.footer {
    background: #cac9be;
    text-align: center;
    color: #eeeaea;
    line-height: 20px;
    padding: 30px 0;
}

.footer img {
    vertical-align: sub;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}


/* :root {
    --white-text: #F8FCFF;
    --accent-text: #1D6FB6;
} */
/* В конце урока сказали перфекцианизм не нужен)) */