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

@import "footer__style.css";

:root {
    --almost-white: #F2F4F9;
    --main-blue: #2558DD;
    --light-gray: #F5F5F5;
    --gray: #D9D9D9;
    --dark-gray: #808080;
    --main-black: #0E0E0E;
    font-size: 10px;
    --container-width: 1110px
}


html {
    box-sizing: border-box;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--main-blue);
}

a:hover {
    text-decoration: none;
    color: var(--main-blue); 

}

/* Dropdown Button */
.dropbtn {
    background: transparent;
    color: var(--main-blue);
    padding: 16px;
    font-family: "Saira", "sans-serif";
    border: none;
    font-weight: 500;
    font-size: 20px;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1.5px;
    transition: all 0.3s ease;
}

.dropbtn_nested {
    color: black;
    width: 100%;
    text-align: start;
    padding: 12px 16px;
    font-size: 20px;
    cursor: pointer;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown_nested {
    width: 100%;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content .dropdown-content {
  margin-left: 160px;
  top: 0;
  left: 0;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-color: var(--main-blue); color: white;}

/* Show the dropdown menu on hover */
.dropdown:hover>.dropdown-content {display: block;}

/* Change the background color of the dropdown button when the dropdown content is shown */
.dropdown:hover>.dropbtn {background-color: var(--main-blue); color: white;}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: 400;
}

/*base styles*/

html, body {
    height: 100%;
}

.wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

body {
    font-family: "Saira", "sans-serif";
    font-weight: 400;
    color: var(--main-black);
    font-size: 2.4rem;
}

.quantag {
    font-family: "Viga", "sans-serif";
}

.c {
    font-family: "Roboto", "sans-serif" !important;
    font-weight: 500 !important;
}


.container {
    max-width: 1148px;
    padding: 0 14px;
    margin: 0 auto;
}



.quantag__title h1 {
    font-size: 28px;
    font-weight: 500;
    text-transform: uppercase;
}

.quantag__title h2 {
    font-size: 16px;
    font-weight: 500;
    text-align: right;
    margin: -14px 0 0;
    text-transform: uppercase;
}
.quantag__title h3 {
    font-size: 28px;
    font-weight: 500;
    text-transform: uppercase;
}


/*main styles*/

.header {
    background: transparent;
    transition: all 0.4s ease;
}

.header__line {
    width: 100%;
    height: 2px;
    background: #646464;
    transition: all 0.3s ease;
}

.header .header__logo-title h2, .header .menu__list-item {
    color: white;
}

.active-header {
    background: #fff;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 25%);
}

.active-header .header__logo-title h2, .active-header .menu__list-item:not(:last-child) {
    color: inherit;
}

.active-header .header__line {
    background: transparent;
}

.header__main {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 5;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    align-items: center;
}

.header__logo {
    display: flex;
    gap: 1rem;
}

.logo-img {
    height: 54px;
}

.header__logo-title h1 {
    color: var(--main-blue);
}


.menu__list {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.menu__list-item {
    position: relative;
    font-size: 20px;
    font-weight: 500;
}

.menu__list-item__link {
    font-weight: 500;
    font-size: 20px;
    padding: 16px;
    color: var(--main-blue);
    transition: all 0.3s ease;
}

.menu__list-item__link:hover {
    background-color: var(--main-blue);
    color: white;

}

.button {
    margin:  0 16px;
    font-size: 20px;
    background: var(--main-blue);
    color: white;
    padding: 5px 17px;
    border-radius: 36px;
    border: none;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 500;
}

.button .menu__list-link {
       color: white; 
}

.button:hover {
    transform: scale(1.07);
    background: #1e47b4;
}

.header__line {
    width: 100%;
    background: rgba(100, 100, 100, 0.45);
    height: 2px;
    border-radius: 1px;
}


/*main*/

.main {
    flex-grow: 1;
}

.top__background {
    height: 100vh;
    width: 100%;
}


.filter {
    background: rgba(0, 0, 0, 34%);
    height: 100%;
}

.top .container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}


.title {
    font-size: 6.4rem;
    width: 73%;
    color: #fff;
    text-align: center;
}

.title:not(span) {
    font-weight: 600;
}


/*main services*/


.services-block__help {
    font-size: 4.8rem;
    text-align: center;
    font-weight: 500;
    margin: 2.8rem 0 -2px 0;
}

.services__title {
    font-size: 12rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #F0F0F0;
    margin: 0 0 -36px 0;
    z-index: 1;
    position: relative;
}

.services__list {
    display: grid;
    grid-auto-rows: 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin: 0 0 50px 0;
}

.service__card {
    height: 100%;
    max-width: 535px;
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 25%);
    padding: 15px 20px;
    border-radius: 9px;
    z-index: 2;
    position: relative;
    background: #fff;
    transition: all 0.3s ease;
}

.services__list-item:hover .service__card {
    background: var(--main-blue);
}


.card__text h3 {
    font-size: 4rem;
    line-height: 1.25em;
    font-weight: 400;
    margin-bottom: 10px;
}

.card__text h4 {
    font-family: "Roboto", "sans-serif";
    font-size: 2.4rem;
    font-weight: 400;
    color: #767676;
}

.card__text > *, .arrow, .arrow path {
    transition: all 0.3s ease;
}

.arrow {
    height: 34px;
    width: 34px;
    margin: 15px 0 0 0;
}


.services__list-item:hover .card__text h3, .services__list-item:hover .card__text h4 {
    color: #fff;
}

.services__list-item:hover .arrow path {
    fill: #fff;
}

.services__list-item:hover .arrow {
    transform: translate(5px) scale(1.05);
}


/*companies*/
.block {
    background: var(--almost-white);
}

.companies__title {
    font-size: 4rem;
    text-align: center;
    font-weight: 500;
    margin: 0 0 15px 0;
}

.companies {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.companies-block .container {
    max-width: 1166px;
}

.company_gnd {
    object-fit: cover;
    height: 60px;
}


/*message*/
.message-block {
    background: #fff;
    padding: 45px 0;
}

.message-card {
    border-radius: 9.5px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 25%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-card h2 {
    font-size: 2.4rem;
    font-weight: 500;
}

.message-card h3 {
    font-size: 2rem;
    font-weight: 500;
}

.message-card p {
    font-size: 1.6rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: #767676;
}


/*Form*/

.form__block {
    display: flex;
    gap: 7rem;
    padding: 5rem 0 0 0;
}

.form__title, .form__wrapper {
    flex: 1;
    /*border: 1px solid #000;*/
}

.form__title {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.form__title h1 {
    font-size: 4rem;
    font-weight: 600;
    max-width: 414px;
    text-align: center;
}


.form__wrapper {
    border-radius: 10rem 0 0 0;
    padding: 8rem 0 4rem 10rem;
    background: white;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 25%);
}

.form__group {
    margin: 0 0 30px 0;
    width: 470px;
    position: relative;
}

.form__label {
    position: absolute;
    font-size: 18px;
    color: #808080;
    transition: all 0.3s ease;
    top: -2px;
    left: 0;
}

.form__input {
    font-size: 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--main-black);
    outline: none;
    color: var(--main-black);
    width: 100%;
    transition: all 0.3s ease;
}

.form__button {
    font-size: 20px;
}

.form__input:focus {
    border-bottom: 3px solid var(--main-blue);
}

.form__input:focus ~ .form__label,
.form__input:not(:placeholder-shown) ~ .form__label {
    top: -18px;
    font-size: 12px;
    color: #b6b6b6;
}

.news-title {
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: 600;
}


/*Footer*/



/*Adaptive*/


/*Old monitors*/
@media ( max-width: 1200px ) {
    .container {
        max-width: 998px;
    }

    /*:root {*/
    /*    font-size: 9px;*/
    /*}*/
    .services__title {
        font-size: 10rem;
    }

    .form__wrapper {
        padding: 7rem 0 3rem 9rem;
    }

    .form__group {
        width: 380px;
    }
}


/*Tablets*/
@media (max-width: 992px ) {
    .container {
        max-width: 778px;
    }

    :root {
        font-size: 9px;
    }

    .services__title {
        font-size: 9.5rem;
        margin: 0 0 -30px 0;
    }

    .services__list {
        grid-template-columns: 1fr;
    }

    .service__card {
        width: 100%;
        max-width: none;
    }

    .header__inner {
        justify-content: space-between;
    }

    .form__block {
        flex-direction: column;
        padding: 5rem 1.5rem 0;
    }

    .form__title {
        justify-content: center;
    }

    .form__wrapper {
        border-radius: 10rem 10rem 0 0;
        padding: 7rem 7rem 4rem 7rem;
    }

    .form__group {
        width: 100%;
        /*border: 1px solid #000;*/
    }
}


/*Phones*/
@media (max-width: 767px ) {
    .container {
        max-width: none;
    }

    :root {
        font-size: 7px;
    }

    .header__logo-img {
        height: 44px;
    }

    .header__logo-title {
        display: none;
    }

    .menu__list-item, .dropbtn_nested {
        font-size: 17px;
    }

    .logo {
        display: flex;
        justify-content: center;
    }

    .services__title {
        font-size: 9rem;
        margin: 0 0 -20px 0;
    }

    .companies__title {
        margin: 0 0 35px 0;
    }

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

    .top .container {
        padding: 0;
    }



/*    services*/
    .info__cards .container {
        flex-direction: column;
    }

    .info__card {
        min-height: 10px;
    }

}