:root {
    --white-text: #F8FCFF;
    --accent-text: #1D6FB6;
    --seryy: #D9D9D9;
}

body {
    font-family: "Montserrat", "Arial", sans-serif;
    line-height: calc(20px / 16px);
    color: #25282B;
    background: var(--white-text);
}

.conteiner {
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 15px;
    height: 100%;
}


/* Nav */

.header__inner {
    min-height: 108px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    align-content: center;
    align-items: center;
}

.nav-menu {
    display: flex;
    flex-direction: row;
}

.nav-menu-items {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--nabornyy);
    margin-right: 30px;
}

.nav-menu-items:last-child {
    margin-right: 0px;
}

.nav-socialMedia {
    display: flex;
    flex-direction: row;
    justify-content: end;
}


/* ================================================= */
.hero {
    color: var(--white-text);
    line-height: 1.5;
    padding: 120px 0;
    position: relative;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__title {
    font-weight: 600;
    font-size: 52px;
    margin-bottom: 30px;
}

.hero__plus__list {
    position: relative;
    font-size: 24px;
    margin-bottom: 40px;
}

.hero__plus__list__items {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 15px;
    transition: 0.5s;
}

.hero__plus__list__items:last-child {
    margin-bottom: 0px;
}

.hero__plus__list__items path {
    transition: all .5s;
}

.hero__plus__list__items:hover {
    color: var(--accent-text)
}

.hero__plus__list__items:hover path {
    fill: var(--accent-text)
}


.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: #102e49cc;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 500;
    font-size: 16px;
    line-height: calc(20px / 16px);
    color: var(--accent-text);

    width: 100%;
    max-width: 288px;
    height: 56px;
    background: #D0DCE7;
    border-radius: 100px;

    transition: all .5s;
}

.button:hover {
    color: var(--white-text);
    background: #83ADD3;
}


/* третья часть */



.wrapper {
    margin-top: 120px;
}

.wrapper-inner {
    display: flex;
    justify-content: center;
    gap: 126px;

}

/* sidebar */

.sidebar {
    border: 2px solid var(--seryy);
    padding: 30px;
    max-width: 282px;
    width: 100%;

    line-height: 20px;
    font-weight: 500;
}

.sidebar__item {
    margin-bottom: 20px;
}

.sidebar__item:last-child {
    margin-bottom: 0px;
}


/* gallery */

.main__body {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
    gap: 26px;

    color: var(--white-text);
    text-align: center;
    justify-content: center;

}


.gallery__img {
    display: block;
    position: relative;

    /* Для скрывания выплывающего контента */
    overflow: hidden;

    /* зачем он тут нужен????
    padding-bottom: 100%; */
}



.gallery__img img {
    width: 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;
    bottom: 0;
    right: 0;
    background: #1D6FB6B2;
    height: 20%;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;

    transform: translateY(100%);
    opacity: 0;
    transition: all 0.5s;
}

.gallery__img:hover .gallery__hint {
    opacity: 1;
    transform: translateY(0%);
}



.gallery__img--large-left .gallery__hint,
.gallery__img--large-right .gallery__hint {

    font-size: 24px;
}

/* ========================================== */
.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.products__item-img {
    position: relative;
    padding-bottom: 62%;
}

.products__item-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.products__item-badge {
    position: absolute;
    top: 12.6%;
    left: 0;
    background: var(--white-text);
    border-radius: 0px 100px 100px 0px;
    padding: 18px 15px;
    min-width: 33.9%;
    text-align: center;
    font-weight: 500;
    color: var(--accent-text);

    animation: badge-action 2s infinite alternate;
}

@keyframes badge-action {
    0% {
        min-width: 33.9%;
    }
    66.666% {
        min-width: 33.9%;
    }
    100% {
        min-width: 37.3%;
    }
}

.products__item-body {
    border: 1px solid #D0DCE7;
    border-top: none;
    padding: 30px 15px;
}

.products__item-button {
    margin: 0 auto;
}


/* ================================================== */

footer{
    margin-top: 120px;
    background: #788088;
    color:var(--white-text);
    padding: 30px 0;
}
.footer-inner{
    display: flex;
    justify-content: center;
    align-items:center;
    gap: 10px;
}
