@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body{
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;
}

.title{
    width: 100%;
    color: white;
    background: black;
    padding: 8px 64px;
}

section{
    min-height: 100vh;
    width: 100%;
    padding: 64px 128px;
}

/* Первая секция */
.first-section__title{
    font-weight: 700;
    font-size: 64px;
    margin-bottom: 4px;
}

.first-section__subTitle{
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 238px;
}

#first-section{
    background: url('../img/firstBlock.svg') no-repeat;
    background-size: contain;
    background-position: right;

    display: flex;
    flex-direction: column;
    align-items: left;
}

.first-section__info{
    width: 50%;
}

.first-section__info_title{
    font-weight: 700;
    font-size: 36px;

    margin-bottom: 112px;
}

.first-section__info_button, 
.button_primary{
    padding: 22px 48px;
    border: none;
    border-radius: 12px;
    width: fit-content;

    background: black;
    color: white;

    font-weight: 400;
    font-size: 16px;

    cursor: pointer;
    transition: ease-in-out .3s all;
}

.button_primary.white{
    background: white;
    color: black;

    margin-top: 24px;
}

.first-section__info_button:hover, .button_primary:hover{
    opacity: .7;
}

/* Вторая секция */

#second-section > .features_section > h2{
    font-weight: 400;
    font-size: 24px;
    margin-bottom: 32px;
}

#second-section.problems{
    background: rgba(4, 3, 15, 1);
    
    color: rgba(255, 255, 255, 1);
}

.fabrix_header{
    padding: 25px 0px;
    border-bottom: solid 1px rgba(252, 166, 95, 1);
    
    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 16px;

    margin-bottom: 48px;
}

.handShake{
    position: relative;
    display: flex;
    justify-content: flex-end;
    width: 52px;
}

.handShake_hand{
    position: absolute;
    left: 0;

    animation: 1.5s infinite handMove;
}

@keyframes handMove {
    from {
        transform: translateX(0);
    }
    50%{
        transform: translateX(42%);
    }
    to {
        transform: translateX(0);
    }
}

#problems{
    display: none;
    color: white;
}

#problems > .advantage-list > .advantage-card > .advantage-card_info > span{
    font-weight: 400;
    font-size: 16px;

    color: rgba(250, 250, 250, 1);
}

#second-section.problems > .fabrix_header{
    border-bottom: solid 1px rgba(250, 250, 250, 1);   
}

#problems > h2{
    font-weight: 300;
    font-style: italic;
    font-size: 24px;
}

.switch{
    width: 56px;
    height: 32px;
    border-radius: 64px;
    position: relative;

    background: black;
    border: 1px solid black;

    cursor: pointer;
}

.switch.on{
    border: 1px solid white;
    transition: all .2s ease-in-out;
}

@keyframes switch{
    0%{
        left: 28px;
    }
    100%{
        left: 4px;
    }
}

@keyframes switchOn{
    0%{
        left: 4px;
    }
    100%{
        left: 28px;
    }
}

.switch.on::after{
    animation-name: switch;
    animation-duration: .3s;
    right: 0;
    left: 4px;
}

.switch::after{
    content: '';
    display: block;

    width: 24px;
    height: 24px;
    
    border-radius: 64px;

    background: white;
    
    position: absolute;

    left: 28px;
    top: 3px;

    animation-name: switchOn;
    animation-duration: .3s;
}

.advantage-list{
    display: flex;
    flex-direction: column;

    gap: 48px;
}

.advantage-card:nth-child(even){
    flex-direction: row-reverse;
}

.advantage-card{
    display: flex;
    justify-content: space-between;
}

.advantage-card > img{
    margin: 0 auto;
}

.advantage-card_info{
    width: 50%;
}

.advantage-card_info > span{
    font-size: 16px;
    font-weight: 500;

    color: rgba(252, 166, 95, 1);
}

.advantage-card_info > h2{
    font-weight: 500;
    font-size: 32px;

    margin-bottom: 24px;
}

.advantage-card_info > p, .description{
    font-weight: 400;
    font-size: 20px;

    display: flex;
    align-items: center;

    gap: 16px;
    margin-bottom: 16px;

    width: 90%;
}

/* Третья секция */

#third-section{
    margin-top: 64px;
    max-width: 1184px;
    padding: 0px;
}

#third-section > h1{
    font-weight: 500;
    font-size: 64px;   
    
    margin-bottom: 48px;
}

.info-list{
    max-width: 741px;
    width: fit-content;
    margin: 0 auto;

    padding-left: 95px;
    
    position: relative;
}

.info-list::before{
    content: '';
    position: absolute;

    top: 4px;
    bottom: 0;
    left: 41.5px;

    width: 2px;
    height: 75%;
    background: rgba(252, 166, 95, 1);
}

.info-list_card{
    position: relative;
    margin-bottom: 32px;
}

.info-list_card::before{
    content: '';
    position: absolute;

    left: -78px;
    top: 12.5px;
    
    height: 45px;
    width: 45px;

    border: 2px solid rgba(252, 166, 95, 1);

    transform: rotate(45deg);
    background: white;
}

.info-list_card:nth-child(2)::before{
    background: url('../img/Polygon\ 5.svg') no-repeat white;
    background-position-x: 50%;
    background-position-y: 50%;
}

.info-list_card:nth-child(3)::before{
    background: rgba(252, 166, 95, 1);
}

.info-list_card > h1{
    display: flex;
    align-items: center;

    font-size: 32px;
    font-weight: 500;
    margin-bottom: 24px;

    gap: 16px;
}

.info-list_card > h1 > span{
 font-size: 64px;
 font-weight: 700;   
}

/* Пятая секция */

#fifth-section{
    max-width: 1184px;
    padding: 0px;
    margin-top: 64px;
}

#fifth-section > h1{
    font-size: 64px;
    font-weight: 500;

    margin-bottom: 32px;
}

.order-card-list{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;

    gap: 16px;
}

.order-card{
    width: 373px;
    padding: 93px 0px 0px;

    background: url('../img/illustration.svg') no-repeat;
}

.order-card:first-child > .order-card__body:first-child{
    background: rgba(255, 255, 255, 1);
}

.order-card:first-child > .order-card__body:first-child > .description-list >  h1{
    color: black;
}

.order-card:first-child > .order-card__body:first-child >  .description-list > .description-card{
    color: black;
}

.order-card__body{
    background: rgba(4, 3, 15, 1);
    border: 1px solid rgba(209, 209, 214, 1);
    border-top: 0px;
    border-radius: 0px 0px 12px 12px;

    width: 100%;
    height: 100%;
    padding: 32px 24px 32px 24px;
}

.description-list > h1{
    color: white;
    font-weight: 700;
    font-size: 32px;

    margin-bottom: 16px;
}

.description-list{
    height: 360px;
    width: 100%;
}

.description-list > span{
    display: block;
    font-weight: 100;
    font-style: italic;
    color: white;
}

.description-card{
    color: white;
    font-weight: 400;
    font-size: 16px;

    display: flex;
    align-items: center;

    gap: 16px;
    margin-bottom: 16px;

    width: 100%;
}

.checkbox-list{
    display: flex;
    flex-direction: column;

    margin-bottom: 24px;

    gap: 12px;

    min-height: 215px;
}

.checkbox-list > .checkBox{
    display: flex;
    align-items: center;
}

.info-price{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkBox > .info-price > h2, .checkBox > .info-price > label{
    font-weight: 400;
    font-size: 20px;

    color: white;
}

.checkBox > .info-price > p{
    font-weight: 400;
    font-size: 16px;
    font-style: italic;

    color: white;
}

.order-card:first-child > .order-card__body > .checkbox-list > .checkBox > label{
    color: black;
}

.order-card:first-child > .order-card__body > .checkbox-list > .checkBox > input[type=checkbox]::before {
    background: black;
}

.checkbox-list > .checkBox > input[type=checkbox] {
    position: relative;

    border: 1px solid rgba(209, 209, 214, 1);
    border-radius: 2px;
    border-radius: 100%;

    background: none;

    cursor: pointer;

    line-height: 0;
    margin: 0 .6em 0 0;
    outline: 0;
    padding: 4px;

    vertical-align: text-top;

    height: 32px;
    width: 32px;
    -webkit-appearance: none;
}

.checkbox-list > .checkBox > input[type=checkbox]:checked::before{
    display: block;
}

.checkbox-list > .checkBox > input[type=checkbox]::before {
    content: '';

    display: none;
    position: absolute;

    top: 4px;
    bottom: 4px;
    right: 4px;
    left: 4px;

    border-radius: 100%;
    background: white;
}

.order-card:first-child > .order-card__body > .price {
    border-top: 1px solid black;
}

.order-card:first-child > .order-card__body > .price > h2 {
    color: black;
}

.order-card:first-child > .order-card__body > .price > h1 {
    color: black;
}

.order-card:first-child > .order-card__body > .price > h3 {
    font-weight: 400;
    font-style: italic;
    font-size: 16px;
    color: black;
}

.order-card:first-child > .order-card__body > .button_order {
    background: black;
    color: white;
}

.price{
    padding-top: 16px;
    border-top: 1px solid white;

    display: flex;
    flex-direction: column;

    height: 164px;
    gap: 8px;
}

.price > h2{
    font-weight: 400;
    font-size: 24px;
    color: white;
}

.price > h1{
    font-weight: 700;
    font-size: 32px;
    color: white;
}

.benefit{
    color: white;

    font-size: 16px;
    font-weight: 400;
    font-style: italic;
}

.sale{
    opacity: 0;
    font-weight: 500;
    font-size: 24px;
    font-style: normal;

    width: fit-content;

    color: rgba(135, 134, 140, 1);

    position: relative;
}

.sale::before{
    content: '';
    display: block;
    position: absolute;

    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(135, 134, 140, 1);
}

.button_order{
    width: 100%;

    margin-top: 32px;

    background: white;
    color: black;
}

/* Aутер */

footer{
    margin-top: 64px;
    width: 100%;
    background: black;

    padding: 162px 256px;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

footer > h1{
    color: white;

    font-weight: 400;
    font-size: 16px;
}

footer > a{
    text-decoration: none;
    color: white;

    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px; /* 125% */
    letter-spacing: -0.64px;
}

.mobile-bottom{
    display: none;
}

/* Модальное окно */
.modal-block{
    display: none;
}

.modal-block.open{
    position: fixed;

    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    padding: 16px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(0, 0, 0, 0.304);
}

.modal{
    position: relative;

    background: white;

    width: 100%;
    max-width: 480px;

    padding: 32px;

    border-radius: 12px;
}

.modal > form > button{
    width: 100%;
}

.modal > form > h1{
    font-weight: 700;
    font-size: 32px;

    margin-bottom: 32px;

    width: 100%;
    
    display: flex;
    justify-content: space-between;
}

.modal > form > h1 > span{
    font-size: 24px;

    cursor: pointer;
}

.modal > form > p{
    font-weight: 400;
    font-size: 16px;

    margin-bottom: 16px;

    color: rgba(95, 94, 102, 1);
}

.modal > form > input{
    width: 100%;
    margin-bottom: 32px;

    padding-bottom: 15px;

    outline: none;

    border: none;
    border-bottom: solid 1px black;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none; 
}

input[type='number'],
input[type="number"]:hover,
input[type="number"]:focus {
    appearance: none;
    -moz-appearance: textfield;
}

.input-box{
    display: flex;
    gap: 8px;
}

.input-box > input[type = 'checkbox']{
    width: max-content;
    margin: 0px;

    width: 24px;
    height: 24px;
    border: solid 1px rgba(209, 209, 214, 1);
    border-radius: 4px;
}

.modal > form > input[type='submit']{
    margin-bottom: 0px;
    width: 100%;

    padding: 15px;
}