:root {
    --title-font: "Georgia", serif;
    --font-family: "Lato", sans-serif;
    --accent-color: #01996D;
    --bg-accent-color: #245852;
} 

html {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
}

*, *::before, *::after {
    box-sizing: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}

img {
    display: block;
    width: 100%;
}


ul {
    padding: 0;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */

.container {
    max-width: 1370px;
    width: 100%;
    margin: 0 auto;

}
.header__menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 16px;
}
.header__menu-logo {
    width: 79.57px;
}

.header__menu-burger {
    background-color: var(--accent-color);
    width: 50px;
    height: 50px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;   
}

.header__menu-burger-line {
    background-color: #fff;
    width: 30px;
    height: 4px;
}
  
.header__menu-nav-list  {
    display: flex;
    gap: 71px; 
    margin-right: 90px;
    
}
.header__menu-nav-item {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 20px;
    color: #292929;   
}


.header__menu-nav-item > a:hover {
    color: var(--accent-color);
    transition: 0.5s;
}
.header__menu-btn {
}
.header__menu-btn-entry {
    font-weight: 400;
    font-size: 20px;
    color: #000;
    background-color: #fff;
    border: none;
    border-radius: 4px;
    margin-right: 14px;
    width: 98px;
    height: 51px;

    cursor: pointer;
}

.header__menu-btn-entry:hover {
    background-color: var(--accent-color);
    color: #fff;
    transition: 0.5s ease;
    opacity: 0.8;
}
.header__menu-btn-start {
    width: 183px;
    height: 51px;
}
.button {
    font-weight: 400;
    font-size: 20px;
    line-height: 125%;
    text-align: center;
    color: #fff;
    border: none;
    border-radius: 4px;
    background-color: var(--accent-color);
    text-transform: capitalize;

    cursor: pointer;
}

.button:hover {
    opacity: 0.8;
    transform: 0.5s;
}
.header__block {
    border-top: 1px solid #D6D6D6;
    background-image: url(../img/BG.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 895px;

    padding-top: 175px;
    padding-bottom: 336px;
}
.header__block-title {
    font-family: var(--title-font);
    font-weight: 700;
    font-size: 65px;
    color: var(--accent-color);
    max-width: 450px;

    margin-bottom: 28px;
}
.header__block-text {
    font-weight: 400;
    font-size: 20px;
    line-height: 157%;
    color: #484848;
    max-width: 420px;
    line-height: 145%;

    margin-bottom: 52px;
}
.header__block-button {
    width: 227px;
    height: 65px;
}

/* About */
.about {
    max-width: 1386px;
    width: 100%;
    margin: 0 auto;
    padding-top: 169px;
    padding-bottom: 51px;
}
.about__header > .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
   
    margin-bottom: 52px;
}

.p__text {
    font-weight: 600;
    font-size: 24px;
    line-height: 157%;
    color: #424242;
    margin-bottom: -3px;
}
.title__text {
    font-family: var(--title-font);
    color: var(--accent-color);
    font-weight: 700;
    font-size: 50px;
    line-height: 157%;
    max-width: 584px;
}
.about__header-description {
    font-weight: 500;
    font-size: 20px;
    line-height: 150%;
    color: #424242;
    max-width: 651px;
    margin-bottom: 14px;
}
.about__main {
    max-width: 1370px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 96px;
}


.about__main-card:nth-child(1) {
    max-width: 390px;
    width: 100%;
}

.about__main-card:nth-child(2) {
    max-width: 392px;
    width: 100%;
    margin-top: 288px;
}

.about__main-card:nth-child(3) {
    max-width: 441px;
    width: 100%;
    margin-top: 54px;
}

.card__2 > div > div {
    left: 78px;
}

.card__3 > div > div {
    left: 126px;
}
.about__main-card-number {
    font-family: var(--title-font);
    font-weight: 400;
    font-size: 150px;
    line-height: 150%;
    color: rgba(1, 153, 109, 0.2);
    margin-bottom: 10px;
    max-width: 269px;

    position: relative;
}
.about__main-card-number-text {
    font-weight: 700;
    font-size: 30px;
    line-height: 150%;
    color: #000;
    width: 313px;

    position: absolute;
    bottom: 45px;
    left: 90px;
}

.card__3 > div {
    margin-bottom: 0;
}

.card__1 > p {
    margin-bottom: 60px;
    max-width: 382px;
}

.card__2 > p {
    margin-bottom: 37px;
    max-width: 392px;
} 

.card__3 > p {
    margin-bottom: 48px;
    max-width: 411px;
}

.about__main-card-text {
    font-weight: 500;
    font-size: 20px;
    line-height: 150%;
    color: #424242;
}
.about__main-card-img {
    max-width: 390px;
   
    height: auto;
}

/* Video */
.video {
    background-color: var(--bg-accent-color);
    padding: 229px 15px 177px;   
}
.video__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1507px;
    width: 100%;
    margin: 0 auto;
}

.video__info-title {
    font-family: var(--title-font);
    font-weight: 700;
    font-size: 50px;
    line-height: 157%;
    color: #fff;
    max-width: 580px;
    margin-bottom: 33px;
}
.video__info-text {
    font-weight: 600;
    font-size: 25px;
    line-height: 157%;
    color: #fff;
    margin-bottom: 57px;
}
.video__info-button {
    width: 240px;
    height: 65px;
    text-transform: none;
}
video {
    border-radius: 16px;
    height: auto;
    max-height: 100%;
}

.video__play {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;  
}
.play {
    position: absolute;
    width: 80.85px;
}

/* Product */
.product {
    padding-top: 120px;
    padding-bottom: 242px;
}
.product > .container {
    display: flex;
    justify-content: flex-end;
}
.product__card {
    display: flex;
    align-items: flex-end;
    position: relative;
    margin-right: 88px;
}
.product__card-photo {
    border-radius: 18px;
}
.product__card-user {
    position: absolute;
    bottom: -16%;
    left: -12%;
    width: 52%;
    height: auto;
}
.product__group-text {
    margin-bottom: 10px;
}

.product__group-title {
    margin-bottom: 20px;
}

.product__group-description {
    font-weight: 400;
    font-size: 20px;
    line-height: 157%;
    color: #484848;
    line-height: 145%;
    max-width: 530px;
    margin-bottom: 34px;
}

/* Footer */
.footer {
    padding-top: 102px;
    padding-bottom: 240px;
    background-color: var(--bg-accent-color);
}

.footer__logo {
    width: 108px;
    height: 30px;
    margin-bottom: 78px;  
}

.footer__logo:hover {
    transform: scale(1.2);
    transition: 0.5s;
}

.footer__item {
    font-weight: 600;
    font-size: 25px;
    color: #fff;
    margin-bottom: 60px;
}

.footer__item:last-child {
    margin-bottom: 0;
}
.footer__item-link {
    position: relative;
}
.footer__item-link:after {
    content: "";
    display: block;
    position: absolute;
    right: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background-color: #fff; 
    transition: width 0.5s;
}
.footer__item-link:hover:after {
    content: "";
    width: 100%;
    display: block;
    position: absolute;
    left: 0;
    bottom: -3px;
    height: 2px; 
    background-color: #fff; 
    transition: width 0.5s; 
}


    

/* Медиазапросы */

@media screen and (max-width: 1550px) {
    /* Video */
    .video {
        padding-top: 177px;
    }
    .video__inner {
        flex-wrap: wrap;
        justify-content: center;
    }
    .video__info {
        text-align: center;
    }
    .video__info-title {
        max-width: 1000px;
    }

    .video__info-button {
        margin-bottom: 50px;
    }
}


@media screen and (max-width: 1440px) {

    /* Header */
   .header__menu {
    padding-right: 15px;
    padding-left: 15px;
   } 

   .header__block {
    padding-right: 15px;
    padding-left: 15px;
   }

   /* About */
   .about {
    padding-right: 15px;
    padding-left: 15px;
   }
   .about__main {
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
   }

   .about__main-card:nth-child(2) {
    margin-top: 120px;
    }

    .about__main-card:nth-child(3) {
    margin-top: 0;
    }

    .about__header > .container {
        gap: 50px;
    }

    /* Product */

    .product {
        padding-right: 15px;
        padding-left: 90px;
    }

    /* Footer */
    .footer {
        padding-right: 15px;
        padding-left: 15px;
    }

}


@media screen and (min-width: 1200px) {

    /* Header */
    .header__menu-burger {
        display: none;
    }  
}

@media screen and (max-width: 1200px) {

    /* Header */
    .header__menu-nav {
        display: none;
    }
   
    .header__menu-burger {
       order: 2;
    }

    /* About */

    .about {
        padding-top: 100px;
    }
    .about__header > .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .about__header-description {
        max-width: 1100px;
    }

    /* Video */

    video {
        width: 100%;
    }

    /* Product */
    .product {
        padding-bottom: 120px;
    }
    .product > .container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .product__group {
        margin-top: 100px;
    }
}

@media screen and (max-width: 850px) {

    /* About */
    .about__main-card:nth-child(2) {
    margin-top: 0;
    }
}

@media screen and (max-width: 576px) {

    /* Header */

    .header__menu {
        gap: 30px;
        flex-wrap: wrap;
    }

    .header__block-title {
        font-size: 56px;
    }

    /* About */
    .title__text {
        font-size: 36px;
    }

    /* Video */
    .video__info-title {
        font-size: 36px;
    }

}

@media screen and (max-width: 516px) {

    /* Header */

    .header__menu-btn {
        order: 2;
        margin-left: auto;
        margin-top: 40px;
    }

    /* About */
    .about__main-card-number {
        font-size: 110px;
    }

    .card__1 > div > div {
        bottom: 38px;
        left: 70px;
    }

    .card__2 > div > div {
        bottom: 36px;
        left: 64px;
    }

    .card__3 > div > div {
        bottom: 36px;
        left: 90px;
    }

    .about__main-card-number-text {
        font-size: 20px;
    }

    .about__main-card-number-text {
        width: 220px;
    }

    /* Product */

    .product {
        padding-right: 30px;
        padding-left: 60px;
    }
}

