:root {
    --blue: #3361ec;
    --primary-color: #4285f4;
    --secondary-color: #8c8c8c;
    --white: #ffffff;
    --bg-color: #f3f7fa;
    --text-color: #2b2a29;
    /* --gradient-color: #97C5FF80 */
    --font-h1: 50px;
    --font-h2: 40px;
    --font-h4: 20px;
    --font-h3: 24px;
    --font-h5: 18px;
    --font-describer: 30px;
    --font-describer-mini: 20px;
    --font-regular-18: 18px;
    --font-regular-16: 16px;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

/*ol, ul {
	list-style: none;
}*/

* {
    padding: 0;
    margin: 0;
    font-family: "Onest";
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    gap: 80px;
    background-color: var(--bg-color);
}

.main {
    max-width: 1320px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 0 auto;
}

@media screen and (max-width: 1200px) {
    .main {
        gap: 20px;
    }

    body {
        gap: 20px;
    }
}

/*  ---------------------------- HEADER -----------------------*/

#menu_checkbox {
    display: none;
}

.header {
    width: 100%;
    background-color: var(--white);
}

.header__container {
    max-width: 1320px;
    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 20px 0;
}

.header__link,
.header__link-dropdown {
    font-size: var(--font-regular-18);
    line-height: 22px;
    text-decoration: none;
    color: var(--text-color);
}

.header__phone,
.header__phone-desktop {
    font-size: var(--font-h4);
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
}

.header__phone {
    display: none;
}

.header__logo {
    display: contents;
}

.header__logo img {
    margin-right: 20px;
}

.header__link-dropdown {
    display: flex;
    align-items: center;
}

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

.header__wrapper {
    flex-direction: row;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.header__menu {
    display: none;
}

.header__link:hover > .header__menu,
.header__menu:hover {
    display: flex;
    flex-direction: column;
    position: absolute;
    background-color: var(--white);
    gap: 24px;
    padding: 24px;
    box-shadow: 0 14px 34px #00000007;
    border: 1px solid #d7d7d7;
    z-index: 10;
}

.header__link:hover .header__li,
.header__menu:hover > .header__li {
    display: flex;
}

.header__li {
    font-size: var(--font-h5);
    font-weight: 700;
    text-decoration: none;
    color: var(--text-color);
}

.header__socials {
    display: flex;
    gap: 12px;
}

.header__socials a {
    display: contents;
}

.header__btn {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: var(--font-h5);
    line-height: 20px;
    border: none;
    border-radius: 4px;
    padding: 16px 30px;
    cursor: pointer;
}

.header__burger {
    display: none;
}

@media screen and (max-width: 1200px) {
    header {
        max-width: 100vw;
    }

    .header__burger {
        display: block;
        width: 40px;
        height: 40px;
    }

    .header__container {
        justify-content: right;
        gap: 20px;
        padding: 18.5px 16px 18.5px 10px;
        width: auto;
    }

    .header__logo img {
        margin: 0;
        position: absolute;
        top: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
    }

    .header__link,
    .header__btn,
    .header__socials,
    .header__nav :not(.header__logo),
    .header__phone-desktop {
        display: none;
    }

    .header__phone {
        width: 100%;
        display: block;
        margin-left: 40px;
        text-align: center;
        font-size: 18px;
    }

    #menu_checkbox {
        display: none;
    }

    #burger {
        top: 50%;
        right: 0;
        left: 0;
        display: block;
        width: 32px;
        height: 21px;
        cursor: pointer;
        order: 3;
    }

    #burger:before {
        content: "";
        transition: 1.2s cubic-bezier(0, 0.96, 1, 0.02);
    }

    #burger div {
        position: relative;
        top: 0;
        height: 5px;
        background-color: #000000;
        margin-bottom: 5px;
        transition: 0.3s ease transform, 0.3s ease top, 0.3s ease width,
        0.3s ease right;
    }

    #burger div:first-child {
        transform-origin: 0;
    }

    #burger div:last-child {
        margin-bottom: 0;
        transform-origin: 25px;
    }

    #burger div:nth-child(2) {
        right: 0;
        width: 32px;
    }

    #menu_checkbox:checked + #burger div:first-child {
        top: -2px;
        transform: rotateZ(45deg);
    }

    #menu_checkbox:checked + #burger div:last-child {
        top: -2px;
        right: 5px;
        transform: rotateZ(45deg);
    }

    #menu_checkbox:checked + #burger div:nth-child(2) {
        width: 35px;
        top: 0;
        right: 5px;
        transform: rotateZ(-45deg);
    }

    #menu_checkbox:checked ~ .header__nav {
        display: block;
    }

    #menu_checkbox:checked ~ .header__wrapper .header__socials,
    #menu_checkbox:checked ~ .header__wrapper .header__btn,
    #menu_checkbox:checked ~ .header__wrapper .header__link,
    #menu_checkbox:checked
    ~ .header__wrapper
    .header__link
    .header__link-dropdown
    img,
    #menu_checkbox:checked ~ .header__nav.header__logo img {
        display: block;
    }

    #menu_checkbox:checked
    ~ .header__wrapper
    .header__link
    .header__link-dropdown,
    #menu_checkbox:checked ~ .header__wrapper {
        display: flex;
    }

    .header__wrapper {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 55px;
        left: 0px;
        padding: 10px 10px 0 10px;
        height: fit-content;
        padding-bottom: 30px;
        width: 100%;
        background-color: var(--bg-color);
        gap: 24px;
        align-items: start;
    }

    .header__nav {
        flex-direction: column;
        align-items: start;
        gap: 16px;
    }
}

/* -------------------HERO---------------- */

.hero__form {
    display: flex;
    background-color: var(--primary-color);
    border-radius: 8px;
    align-items: center;
}

.hero__form-wrapper {
    display: flex;
    flex-direction: column;
    color: var(--text-color);
    gap: 16px;
    margin-top: 20px;
}

.hero__form-wrapper h2 {
    font-size: var(--font-h2);
    color: var(--text-color);
}

.hero__form form {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
    font-size: var(--font-h5);
    font-weight: 600;
}

.hero__form form input,
.hero__form form button {
    border-radius: 4px;
}

.hero__form-container button {
    background-color: var(--primary-color);
    padding: 16px 30px;
    font-size: var(--font-h5);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
}

.hero__form-container input {
    border: 2px solid gray;
    border-radius: 6px;
    background-color: var(--white);
    padding: 15.5px 16px;
    font-size: var(--font-regular-16);
    font-weight: 400;
    color: var(--text-color);
}

.hero__form-container input::placeholder {
    color: var(--text-color);
}

.hero__form-container {
    display: flex;
    gap: 12px;
}

.hero__form-privacy {
    font-size: 14px /* var(--font-regular-18)*/;
    font-weight: 400;
    max-width: 540px;
    line-height: 24px;
    color: var(--secondary-color);
}

.hero__form label {
    font-size: var(--font-h5);
}

.hero__form-privacy__link {
    text-decoration: underline var(--secondary-color);
    color: var(--secondary-color);
}

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

.hero img {
    width: fit-content;
}

.hero__wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.hero__img-mobile {
    display: none;
}

.hero__wrapper h1 {
    font-size: var(--font-h1);
    color: var(--text-color);
}

.hero__describe {
    font-size: var(--font-describer);
    font-weight: 200;
}

@media screen and (max-width: 1200px) {
    .hero__wrapper h1 {
        font-size: var(--font-h1);
        text-align: center;
    }

    .hero__describe {
        font-size: var(--font-describer-mini);
        font-weight: 200;
    }

    .hero__form-wrapper label {
        font-size: var(--font-h5);
        color: var(--text-color);
        font-weight: 700;
    }

    .hero__form-wrapper form {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .hero__form,
    .hero__form * {
        flex-direction: column;
    }

    .hero__form-wrapper h2 {
        font-size: var(--font-h3);
    }

    .hero__form-wrapper {
        box-sizing: border-box;
    }

    .hero__form-container {
        align-items: stretch;
        flex-direction: column;
    }

    .hero__form-privacy__link,
    .hero__form-privacy {
        font-size: var(--font-regular-16);
        font-weight: 400;
    }

    .hero img:first-of-type {
        display: none;
    }

    .hero__img-mobile {
        display: block;
    }

    .hero {
        flex-direction: column;
        gap: 16px;
        align-items: center;
        margin: 0 10px;
    }
}

/*  ------------- FORM ----------------*/

.form {
    display: flex;
    background-color: var(--primary-color);
    border-radius: 8px;
    align-items: center;
}

.form-wrapper {
    display: flex;
    flex-direction: column;
    color: var(--white);
    gap: 16px;
    padding: 40px;
}

.form-wrapper h2 {
    font-size: var(--font-h2);
}

.form form {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
    font-size: var(--font-h5);
    font-weight: 600;
}

.form form input,
.form form button {
    border-radius: 4px;
}

.form-container button {
    background-color: var(--white);
    padding: 16px 30px;
    font-size: var(--font-h5);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    font-weight: 700;
}

.form-container input {
    border: 1px solid var(--white);
    background-color: var(--primary-color);
    padding: 15.5px 16px;
    font-size: var(--font-regular-16);
    font-weight: 400;
    color: var(--white);
}

.form-container input::placeholder {
    color: var(--white);
}

.form-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-privacy {
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
}

.form-privacy__link {
    text-decoration: underline var(--white);
    color: var(--white);
}

.form img:first-of-type {
    margin: 23px 70px 23px 0;
}

.form__pic-mobile {
    display: none;
}

@media screen and (max-width: 1200px) {
    .form,
    .form * {
        flex-direction: column;
    }

    .form-wrapper h2 {
        font-size: var(--font-h3);
    }

    .form-wrapper {
        box-sizing: border-box;
        padding: 20px;
    }

    .form-container {
        align-items: stretch;
        justify-content: stretch;
    }

    .form-container input {
        padding: 15.5px 13px 15.5px 13px;

    }

    .form-container button {
        padding: 8px 0 8px 0;
    }

    .form-privacy__link,
    .form-privacy {
        font-size: var(--font-regular-16);
        font-weight: 400;
    }

    .form img:first-of-type {
        display: none;
    }

    .form__pic-mobile {
        display: block;
        margin: 0 20px 20px 20px;
        height: fit-content;
    }
}

/* ------------- CONDITIONS ------------------ */

.conditions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.condition {
    align-items: anchor-center;
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 30px;
    background-color: var(--white);
    border-radius: 4px;
}

.condition h3 {
    font-size: var(--font-h3);
    color: var(--text-color);
}

.condition img {
    width: fit-content;
}

@media screen and (max-width: 1200px) {
    .conditions {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 0 10px;
    }

    .condition {
        padding: 20px
    }

    .condition img {
        width: 48px;
    }

    .condition h3 {
        font-size: var(--font-h4);
    }
}

/* ----------------- PORTFOLIO ------------------ */

.portfolio h1 {
    font-size: var(--font-h1);
    color: var(--text-color);
}

.portfolio {
    display: flex;
    flex-direction: column;
    gap: 42px;
}

.portfolio-wrapper {
    display: flex;
    gap: 24px;
}

.portfolio-container {
    display: flex;
    background-color: var(--white);
    border-radius: 8px;
    width: 200px;
    height: 120px;
    align-items: center;
    justify-content: center;
}

.portfolio__img-mobile {
    display: none;
    max-width: 120px;
}

@media screen and (max-width: 1200px) {
    .portfolio {
        margin: 0 10px;
        gap: 20px
    }

    .portfolio h1 {
        font-size: var(--font-h3);
    }

    .portfolio-wrapper {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .portfolio-container {
        width: 145px;
        height: 87px
    }

    .portfolio__img-mobile {
        display: block;
    }

    .portfolio-container img:first-of-type {
        display: none;
    }
}

/* ---------------- ABOUT US ---------------- */

.about {
    display: flex;
    flex-direction: column;
    gap: 30px;
    color: var(--text-color);
}

.about h1 {
    font-size: var(--font-h1);
}

.about-wrapper {
    display: flex;
    gap: 54px;
}

.about-container h3 {
    font-size: var(--font-h3);
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-list__container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-list__li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.about-list__li img {
    padding: 4.5px;
}

.about-list__li span {
    font-size: var(--font-h5);
    color: var(--text-color);
    font-weight: 700;
}

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

    .about {
        margin: 0 10px;
    }

    .about-wrapper > img:first-child {
        width: calc(100% - 20px);
        height: 100%;
    }

    .about-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 20px
    }

    .about h1 {
        font-size: var(--font-h3);
    }

    .about-container h3 {
        font-size: var(--font-h4);
    }

    .about-list__li img {
        width: 18px;
        padding: 3px;
    }

    .about-list__li span {
        font-size: var(--font-h5);
        font-weight: 400;
    }
}

/* ----------------- FOOTER ------------------- */

footer {
    padding: 40px 0;
    background-color: var(--primary-color);
}

.footer-wrapper {
    max-width: 1320px;
    padding: 0 10px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__logo-container {
    display: flex;
    gap: 16px;
    color: var(--white);
    text-wrap: nowrap;
    align-items: center;
    font-size: var(--font-h4);
    font-weight: 700;
}

.footer__contacts {
    display: flex;
    gap: 54px;
    align-items: center;
}

.footer__contacts a {
    color: var(--white);
    text-decoration: none;
    font-size: var(--font-h4);
    font-weight: 700;
}

.footer__socials {
    display: flex;
    gap: 12px;
}

.footer__policy {
    color: var(--white);
    font-size: var(--font-regular-18);
    font-weight: 400;
}

@media screen and (max-width: 1200px) {
    footer {
        padding: 30px 38px;
    }

    .footer-wrapper {
        padding: 0;
        width: 100%;
        max-width: 100vw;
        flex-direction: column;
        gap: 20px;
    }

    .footer__contacts {
        flex-direction: column;
        gap: 20px;
    }

    .footer__policy {
        font-size: var(--font-regular-16);
    }
}

/* -------------- CONTENT -------------- */

.title-container {
    width: 100%;
}

.title-container__bread-crumbs, .title-container__link {
    color: var(--secondary-color);
    font-size: var(--font-regular-16);
    text-decoration: none;
}

.title-container__link:first-of-type {
    color: var(--primary-color)
}

.title-container__title {
    font-size: var(--font-h1);
    color: var(--text-color);
    margin: 38px 0 0 0;
}

@media screen and (max-width: 1200px) {
    .title-container__title {
        font-size: var(--font-h3);
        margin: 20px 10px 0 10px;
        width: 91vw;
    }

    .title-container__bread-crumbs {
        margin: 0 10px;
    }
}

/* -------------- CONTENT SERVICES -------------- */

.services {
    /*display: grid;*/
    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}

.services-item {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: var(--white);
    border-radius: 4px;
    padding: 30px;
    align-items: start;
    justify-content: space-between;
    min-height: 160px;
    max-width: 100vw;
}

.services-item__wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--text-color)
}

.services-item__wrapper p {
    font-size: var(--font-regular-18);
    line-height: 24px;
}

.services-item__wrapper h3 {
    font-size: var(--font-h3);
}

.services-item__container {
    display: flex;
    gap: 20px;
    align-items: center;

    line-height: 35.7px;
    color: var(--text-color)
}

.services-item__container h2 {
    max-width: 272px;
    font-size: var(--font-h3);
    font-weight: 700;
}

.services-item__btn {
    border: solid 1px var(--primary-color);
    border-radius: 4px;
    background-color: var(--white);
    color: var(--primary-color);
    font-size: var(--font-h5);
    padding: 16px 24px;
    cursor: pointer;
}

@media screen and (max-width: 1200px) {
    .services {
        grid-template-columns: 1fr;
        margin: 0 10px;
    }

    .sub-services h2{
        margin: 0 10px;
    }

    .services-item {
        padding: 20px;
        flex-wrap: wrap;
        flex-direction: row;
        min-height: inherit;
    }

    .services-item__wrapper h2, .services-item__wrapper h3 {
        font-size: var(--font-h4);
    }

    .services-item__wrapper p {
        font-size: var(--font-regular-16);
    }

    .services-item__container img {
        width: 48px;
        height: 48px;
    }
}

/* ---------------- CONTENT ARTICLES  --------------- */

.item {
    display: flex;
    gap: 54px;

}

.item__description {
    display: flex;
    flex-direction: column;
    gap: 24px
}

.item__description p {
    font-size: var(--font-regular-18);
    color: var(--text-color)
}

.item__description h3 {
    font-size: var(--font-h3);
    color: var(--text-color)

}

.item__img-mobile {
    display: none;
}

@media (min-width: 701px) and (max-width: 1200px) {
    .item img {
        max-width: 50%;
        width: fit-content;
        height: fit-content;
    }

    .item {
        margin: 0 10px;
        gap: 20px
    }
}

@media screen and (max-width: 700px) {
    .item {
        flex-direction: column;
        margin: 0 10px;
        gap: 20px
    }

    .item img:first-of-type {
        display: none !important;
    }

    .item__img-mobile {
        display: block;
    }

    .item p {
        font-size: var(--font-regular-16);
    }

    .item h3 {
        font-size: var(--font-h4);
    }

}

/* -------------CONTENT ADS ---------------- */

.pluses {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.plus-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background-color: var(--white);
    border-radius: 4px;
    gap: 20px
}
.plus-item h3{
    text-align: center;
}

.plus-item h3 {
    font-size: var(--font-h3);
}

.plus-item img {
    width: fit-content;
}

@media (min-width: 701px) and (max-width: 1200px) {
    .pluses {
        grid-template-columns: 1fr 1fr;
        margin: 0 10px;
    }
    .service-content{
        margin: 0 10px;
    }
    .item__img-mobile{
        width: 100%;
    }
}

@media screen and (max-width: 700px) {
    .pluses {
        grid-template-columns: 1fr;
        margin: 0 10px;
    }

    .plus-item img {
        width: 48px;
        height: 48px;
    }

    .plus-item h3 {
        font-size: var(--font-h4);
    }
    .service-content{
        margin: 0 10px;
    }
    .item__img-mobile{
        width: 100%;
        margin: auto;
    }
}

/* ----------------SERVICES ------------------- */

.item__description span, .item__description p, .service-content span, .service-content p {
    font-size: 16px;
}

.services h1 {
    font-size: var(--font-h1);
}

.services p, .services li {
    font-size: 16px;
}


.services {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.services__wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}

.services-item {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 24px;
    background-color: var(--white);
    border-radius: 4px;
    padding: 30px;
    align-items: start;
    justify-content: space-between;
    min-height: 160px;
    max-width: 100vw;
}

.services-item__wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--text-color);
}

.services-item__wrapper p {
    font-size: var(--font-regular-18);
    line-height: 24px;
}

.services-item__wrapper h3 {
    font-size: var(--font-h3);
}

.services-item__container {
    display: flex;
    gap: 20px;
    align-items: center;

    line-height: 35.7px;
    color: var(--text-color);
}

.services-item__container h2 {
    max-width: 272px;
    font-size: var(--font-h3);
    font-weight: 700;
}

.services-item__btn {
    border: solid 1px var(--primary-color);
    border-radius: 4px;
    background-color: var(--white);
    color: var(--primary-color);
    font-size: var(--font-h5);
    padding: 16px 24px;
    cursor: pointer;
}

@media (min-width: 700px) and (max-width: 1200px) {
    .services-item__container {
        align-items: start;
    }

    .services__wrapper {
        grid-template-columns: repeat(2, calc(50% - 12px));
    }

    .services {
        margin: 0 10px;
    }

    .services-item__container h2,
    .services-item__container h3 {
        font-size: var(--font-h4);
    }

    .services-item {
        padding: 20px;
        flex-wrap: wrap;
        flex-direction: column;
        gap: 33px;
        min-height: inherit;
    }

    .services-item__container img {
        width: 48px;
        height: 48px;
    }

    .services h1 {
        font-size: var(--font-h3);
        color: var(--text-color);
    }
}

@media screen and (max-width: 699px) {
    h1{margin: 10px;}

    .services {
        margin: 0 10px;
        gap: 20px
    }

    .services h1 {
        font-size: var(--font-h3);
        color: var(--text-color);
    }

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

    .services-item {
        padding: 20px;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: anchor-center;
        gap: 10px;
        min-height: inherit;
    }

    .services-item__container h2,
    .services-item__container h3 {
        font-size: var(--font-h4);
    }

    .services-item__wrapper p {
        font-size: var(--font-regular-16);
    }

    .services-item__container img {
        width: 48px;
        height: 48px;
    }
}
