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

/* Основные стили */

:root {
    --fire-color: #DB5F1F;
    --main-color: #FAF5F0;
}

body {
    margin: 0;
    font-family: "Alegreya Sans", sans-serif;
    background-color: white;
    color: black;
}

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

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

h3 {
    font-size: 30px;
}

p {
   margin: 0;
   font-size: 22px;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h3 + p {
    margin: 12px 0 24px 0;
}

input {
    width: 291px;
    height: 33px;
    padding: 3.5px 30px;
    font-family: "Alegreya Sans", sans-serif;
    font-weight: 400;
    font-size: 22px;
    color: #999999;
    border-radius: 30px;
    border-color: #999999;
}

.container {
    box-sizing: border-box;
    max-width: 1280px;
    margin: 0 auto;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--fire-color);
    border: 1px var(--fire-color) solid;
    color: white;
    font-weight: 500;
    border-radius: 30px;
    width: 122px;
    height: 33px;
    transition: all 0.2s ease;
}

.btn--big {
    font-size: 22px;
    border-radius: 32px;
    width: 235px;
    height: 64px;
}

.btn--inverted {
    background-color: white;
    color: black;
    width: 209px;
    height: 35px;
}

.btn:hover {
    background-color: white;
    color: black;
    transition: all 0.2s ease;
}

.btn--inverted:hover {
    background-color: var(--fire-color);
    color: white;
}

.link {
    padding: 0.5rem;
    position: relative;
}

.link::before {
    bottom: 0;
    left: 0;
}
  
.link:hover::before {
    transform: scaleX(1);
}

.link::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 5px;
    background: var(--fire-color);
    transform: scaleX(0);
    transition: all 0.3s ease;
}

/* Шапка */

.header {
    padding: 0 15px;
    background-color: var(--main-color);
}

.header::before {
    content: "";
    left: 0;
    top: 83px;
    position: absolute;
    width: 100%;
    height: 1px;
    background: #999999;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo__text {
    font-size: 16px;
}

.header__menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header__list {
    display: flex;
    gap: 25px;
    font-weight: 500;
    font-size: 20px;
}

/* Основная контент */

.main__welcome {
    background-color: var(--main-color);
}

.main__welcome .container {
    display: flex;
    align-items: center;
}

.welcome__title {
    margin-bottom: 50px;
    font-weight: 700;
    font-size: 45px;
    color: #2e2425;
}

.welcome__img {
    mix-blend-mode: multiply;
}

/* Секция с услугами */

.services__helping, .services__multiply, .services__setting-up, .services__mailing {
    display: flex;
    align-items: center;
    margin: 0 40px;
    margin-bottom: 60px;
}

.services__text-wrapper {
    flex: 0 1 620px;
}

/* Секция с отправкой заявки */

.main__application {
    margin-top: 35px;
}

.main__application .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.application__text {
    margin-bottom: 65px;
    width: 786px;
    height: 108px;
    font-size: 45px;
    text-align: center;
}

/* Секция с компаниями */

.main__companies {
    margin-top: 135px;
}

.main__companies .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.companies__text {
    margin-bottom: 100px;
    font-size: 45px;
    text-align: center;
}

.companies__logos {
    margin-bottom: 100px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    justify-items: center;
    align-items: center;
    gap: 50px;
}

/* Секция с преимуществами */

.main__why-us {
    margin-top: 170px;
}

.main__why-us .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.why-us__text {
    font-size: 45px;
}

.why-us__benefits {
    display: flex;
    gap: 45px;
    margin: 0 40px;
}

.why-us__benefits h3 {
    margin-bottom: 15px;
}

.why-us__benefits ul{
    list-style: disc;
}

.why-us__benefits li {
    margin: 0 0 30px 0;
    font-size: 22px;
}

.why-us__benefits li::marker{
    color: var(--fire-color);
}

.why-us__benefits img {
    max-width: 408px;
    max-height: 388px;
}

/* Секция с задачами */

.main__faq {
    margin: 140px 0 110px 0;
}

.main__faq .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.faq__text {
    margin-bottom: 25px;
    font-size: 45px;
}

.faq__tasks-wrapper {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 40px;
}

.faq__task1, .faq__task2, .faq__task3, .faq__task4 {
    width: 620px;
    height: 263px;
}

/* Подвал */

.footer {
    padding: 47px 0 42px 0;
    background-color: var(--main-color);
}

.footer .container{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.footer__form {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 17px;
}

.footer__rights {
    margin-top: 43px;
    display: flex;
    align-items: center;
    gap: 30px
}

.rights__copyright {
    font-size: 16px;
}

.rights__private-policy {
    color: var(--fire-color);
}

.footer__contacts {
    display: flex;
    justify-content: flex-end;
    gap: 27px;
}

.footer__navbar {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
    gap: 29px;
}

.footer__list {
    display: flex;
    gap: 5px;
    font-weight: 500;
    font-size: 16px;
}

@media (max-width: 1421px) {
    .why-us__benefits {
        flex-direction: column;
        align-items: center;
    }

    .why-us__benefit1, .why-us__benefit2, .why-us__benefit3, .why-us__benefit4 {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .why-us__benefit1 ul, .why-us__benefit2 ul, .why-us__benefit3 ul, .why-us__benefit4 ul {
        list-style-position: inside;
    }
}

@media (max-width: 1321px) {
    .main__welcome .container {
        flex-direction: column-reverse;
    }

    .welcome__text-wrapper {
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .services__helping, .services__multiply, .services__setting-up, .services__mailing {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        margin-bottom: 40px;
    }

    .services__text-wrapper {
        flex: 1 1 auto;
    }

    .services__multiply, .services__mailing {
        flex-direction: column-reverse;
    }

    .main__application {
        margin-top: 65px;
    }

    .companies__logos {
        grid-template-columns: repeat(3, 1fr);
    }

    .faq__task1 {
        height: 230px;
    }

    .faq__task3 {
        height: 290px;
    }

    .footer .container {
        flex-direction: column;
        align-items: center;
        gap: 100px
    }

    .footer__our-mailing {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer__navigation {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 821px) {
    p {
        font-size: 18px;
    }

    .header .container {
        padding: 0;
        gap: 10px;
        flex-direction: column;
    }
    
    .header::before {
        top: 133px;
    }

    .welcome__title {
        font-size: 36px;
    }

    .welcome__img {
        width: 80%;
        height: 80%;
    }

    .services__helping img, .services__multiply img, .services__setting-up img, .services__mailing img {
        width: 80%;
        height: 80%;
    }

    .companies__logos {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us__benefit1 img, .why-us__benefit2 img, .why-us__benefit3 img {
        width: 80%;
        height: 80%;
    }
    
    .main__faq img {
        width: 80%;
        height: 80%;
    }

    .application__text {
        width: 100%;
    }

    .application__text, .companies__text, .why-us__text, .faq__text {
        font-size: 36px;
    }

    .why-us__benefits li {
        font-size: 18px;
    }
}

@media (max-width: 721px) {
    h3 {
        font-size: 22px;
    }

    input {
        width: 232px;
        height: 26px;
    }

    .btn--big {
        font-size: 18px;
        border-radius: 32px;
        width: 188px;
        height: 51px;
    }
    
    .welcome__title {
        font-size: 26px;
    }

    .application__text {
        margin-bottom: 28px;
    }
    
    .application__text, .companies__text, .why-us__text, .faq__text {
        font-size: 26px;
    }

    .faq__task1, .faq__task2, .faq__task3, .faq__task4 {
        padding: 0 40px;
        width: 100%;
        height: fit-content;
    }
}

@media (max-width: 621px) {
    .header::before {
        top: 183px;
    }

    .header__menu {
        display: flex;
        flex-direction: column;
        gap: 15px
    }

    .companies__logos {
        grid-template-columns: 1fr
    }

    .footer__form {
        display: flex;
        flex-direction: column;
    }

    .footer__rights {
        margin-top: 17px;
    }

    .footer__navbar {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 421px) {
    h2 {
        font-size: 18px;
    }

    h3 {
        font-size: 16px;
    }

    p {
        font-size: 14px;
    }

    .btn--big {
        font-size: 14px;
        width: 150px;
        height: 41px;
    }

    .btn--inverted {
        font-size: 14px;
        width: 167px;
        height: 28px;
    }

    .header__list {
        font-size: 18px;
    }

    .header__list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .welcome__title {
        margin-bottom: 30px;
        font-size: 22px;
    }

    .application__text {
        height: 100%;
        font-size: 18px;
    }

    .companies__text {
        font-size: 22px;
    }

    .companies__logos img {
        width: 70%;
    }

    .why-us__text, .faq__text {
        font-size: 22px;
    }

    .rights__copyright {
        font-size: 14px;
    }

    .rights__private-policy {
        font-size: 14px;
    }
}

@media (max-width: 380px) {
    .header__menu .btn {
        display: none;
    }

    .welcome__title {
        font-size: 18px;
    }

    .application__text {
        font-size: 18px;
    }

    .why-us__text {
        font-size: 18px;
    }

    .faq__text {
        font-size: 18px;
    }

    .rights__copyright {
        font-size: 12px;
    }

    .rights__private-policy {
        font-size: 12px;
    }
}