html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

@font-face {
    font-family: 'OpenSans';
    src: local('OpenSans-Regular'),
        url("../fonts/OpenSansRegular.woff2"), format("woff2"),
        url("../fonts/OpenSansRegular.woff"), format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OpenSans';
    src: local('OpenSans-Light'),
        url("../fonts/OpenSansLight.woff2"), format("woff2"),
        url("../fonts/OpenSansLight.woff"), format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OpenSans';
    src: local('OpenSans-SemiBold'),
        url("../fonts/OpenSansSemiBold.woff2"), format("woff2"),
        url("../fonts/OpenSansSemiBold.woff"), format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

body {
    min-width: 320px;
    font-family: 'OpenSans', sans-serif;
    font-weight: 400;
}

:root {
    --gap: 30px;
}

.list-reset {
    margin: 0;
    padding: 0;
    list-style: none;
}

.btn-reset {
    padding: 0;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.flex {
    display: flex;
}

.container {
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    margin: 0;
    margin-bottom: 40px;
    font-weight: 300;
    font-size: 36px;
    line-height: 130%;
    color: #1C1C1C;
}

.section-descr {
    margin: 0;
    margin-bottom: 50px;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    color: #787878;
}

.section-offset {
    padding-top: 87px;
    padding-bottom: 160px;
}

/* Header */

.header {
    padding: 36px 0;
    border-bottom: 1px solid #c4c4c4;
    background-color: #fff;
}

.nav__link {
    position: relative;
    font-weight: 600;
    font-size: 15px;
    color: #1c1c1c;
    transition: color 0.3s ease-in-out;
}

.nav__link:focus {
    outline-offset: 2px;
    outline: 1px solid #71a7e2;
}

.nav__link:hover {
    color: #71A7E2;
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color:#3474BA;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.nav__link:active {
    color: #3172B9;
    outline: none;
}

.nav__link:active::after {
    opacity: 1;
}

.header__container {
    align-items: center;
}

.header__logo {
    margin-right: auto;
}

.header__nav {
    margin-right: 52px;
}

.nav__item:not(:last-child) {
    margin-right: 52px;
}

.footer__nav .nav__link {
    font-size: 12px;
    color: #787878;
}

.btn {
    position: relative;
    outline: none;
    padding: 15px 35px;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    background-color: #3172b9;
    color: #fff;
    border-radius: 3px;
    transition: background-color 0.3s ease-in-out;
}

.btn::after {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: inherit;
    border: 1px solid #3172B9;
    outline: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.btn:focus::after {
    opacity: 1;
}

.btn:hover {
    background-color: #71A7E2;
}

.btn:active {
    background-color: #0e3b6c;
}

.btn:active::after {
    opacity: 0;
}

/* HERO */

.hero {
    padding: 100px 0;
    padding-top: 100px;
    padding-bottom: 150px;
    background-image: url(../img2/hero-bg.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.hero__content {
    max-width: 50%;
    flex-direction: column;
    align-items: flex-start;
}

.hero__title {
    margin: 0;
    margin-bottom: 25px;
    font-weight: 300;
    font-size: 40px;
    line-height: 130%;
}

.hero__descr {
    margin: 0;
    margin-bottom: 34px;
    font-size: 16px;
    font-weight: 400;
    line-height: 155%;
    color: #787878;
}

.hero__btn {
    margin-bottom: 14px;
    min-width: 250px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.hero__wrapper {
    flex-direction: column;
    align-items: center;
}

.hero__secure {
    font-size: 11px;
    line-height: 155%;
    color: #787878;
    text-transform: uppercase;
    background-image: url(../img2/secure.svg);
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 14px 17px;
    padding-left: 30px;
}

/* SERVICES */

.services {
    border-bottom: 1px solid #c4c4c4;
}

.services-title {
    text-align: center;
}

.services-descr {
    text-align: center;
}

.services-list {
    --offsets: 3;
    gap: var(--gap);
    flex-wrap: wrap;
}

/* @media (max-width: 1024px) {
    .services-list {
        --offsets: 2;
    }
}

@media (max-width: 768px) {
    .services-list {
        --offsets: 1;
    }
} */


.services-item {
    padding: 60px 30px;
    width: calc((100% - (var(--gap) * var(--offsets))) / (var(--offsets) + 1));
    flex-direction: column;
    align-items: center;
    border-radius: 5px;
    border: 1px solid #E4E4E4;
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out; 
}

.services-item:hover {
    border-color: #3172B9;
    background-color: #3172B9;
}

.services-item-icon {
    fill: #3172B9;
    margin-bottom: 25px;
    transition: fill 0.3s ease-in-out;
}

.services-item:hover .services-item-icon {
    fill: #fff;
}

.services-item-title {
    margin: 0;
    margin-bottom: 15px;
    color: #1C1C1C;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    line-height: 130%;
    transition: color 0.3s ease-in-out;
}

.services-item:hover .services-item-title {
    color: #fff;
}

.services-item-descr {
    margin: 0;
    text-align: center;
    color: #787878;
    font-size: 14px;
    font-weight: 400;
    line-height: 150%;
    transition: color 0.3s ease-in-out;
}

.services-item:hover .services-item-descr {
    color: #fff;
}

/* ARTICLES */

.articles {
    border-bottom: 1px solid #dadada;
}

.articles-list {
    flex-wrap: wrap;
    --offsets: 1;
    gap: var(--gap);
}

.articles-item {
    width: calc((100% - (var(--offsets) * var(--gap))) / (var(--offsets) + 1));
    margin-bottom: 30px;
}

.blog-preview {
    overflow: hidden;
    border: 1px solid #E4E4E4;
    border-radius: 5px;
    height: 100%;
}

.blog-preview-image {
    object-fit: cover;
}

.blog-preview-text {
    padding: 30px;
}

.blog-preview-time {
    display: block;
    margin-bottom: 5px;
    color: #787878;
    font-size: 10px;
    font-weight: 400;
    line-height: 150%;
    transition: color 0.3s ease-in-out;
}

.blog-preview-title {
    margin: 0;
    margin-bottom: 15px;
    color: #1C1C1C;
    font-size: 20px;
    font-weight: 600;
    line-height: 130%;
    transition: color 0.3s ease-in-out;
}

.blog-preview-descr {
    max-width: 210px;
    margin: 0;
    color: #787878;
    font-size: 14px;
    font-weight: 400;
    line-height: 150%;
    transition: color 0.3s ease-in-out;
}

.blog-preview-link {
    display: flex;
    position: relative;
    width: 100%; 
    transition: background-color 0.3s ease-in-out;
}

.blog-preview-link:focus {
    background-color: #71A7E2;
}

.blog-preview-link:focus .blog-preview-title {
    color: #fff;
}

.blog-preview-link:focus .blog-preview-descr {
    color: #fff;
}

.blog-preview-link:focus .blog-preview-time {
    color: #fff;
}


.blog-preview-link:hover {
    background-color: #3172B9;
}

.blog-preview-link:hover .blog-preview-title {
    color: #fff;
}

.blog-preview-link:hover .blog-preview-descr {
    color: #fff;
}

.blog-preview-link:hover .blog-preview-time {
    color: #fff;
}


.blog-preview-link:active {
    background-color: #0E3B6C;
}

.blog-preview-link:active .blog-preview-title {
    color: #fff;
}

.blog-preview-link:active .blog-preview-descr {
    color: #fff;
}

.blog-preview-link:active .blog-preview-time {
    color: #fff;
}

/* CLIENTS */

.clients {
    border-bottom: 1px solid #dadada;
}

.clients-list {
    --offsets: 2;
    flex-wrap: wrap;
    gap: var(--gap);
}

.clients-item {
    width: calc((100% - (var(--gap) * var(--offsets))) / (var(--offsets) + 1));
    padding: 50px 36px;
    padding-bottom: 30px;
    flex-direction: column;
    border: 1px solid #E4E4E4;
    border-radius: 5px;
}

.clients-item-descr {
    margin: 0;
    margin-bottom: 30px;
    max-width: 281px;
    ;
    color: #787878;
    font-size: 14px;
    font-weight: 400;
    line-height: 180%;
}

.clients-user {
    margin-top: auto;
    align-items: center;
    border-top: 1px solid #dadada;
    width: 100%;
    padding-top: 20px;
}

.clients-avatar {
    flex-shrink: 0;
    width: 67px;
    margin-right: 17px;
}

.clients-avatar img {
    border: 2px solid #3172b9;
    border-radius: 100%;
}

.clients-name {
    margin-bottom: 1px;
    color: #1C1C1C;
    font-size: 17px;
    font-weight: 600;
    line-height: 180%;
}

.clients-post {
    color: #787878;
    font-size: 14px;
    font-weight: 400;
    line-height: 180%;
}


/* CONTACTS */

.contacts {
    border-bottom: 1px solid #dadada;
}

.contacts-address {
    font-style: normal;
}

.contacts-list {
    --offsets: 2;
    flex-wrap: wrap;
    gap: var(--offsets);
}

.contacts-item {
    flex-direction: column;
    width: calc((100% - (var(--gap) * var(--offsets))) / (var(--offsets) + 1));
    background-position: left top;
    background-repeat: no-repeat;
    background-size: 29px 29px;
    padding-top: 48px;
}

.contacts-item-address {
    background-image: url(../img2/location_on.svg);
}

.contacts-item-call {
    background-image: url(../img2/phone.svg);
}

.contacts-item-mail {
    background-image: url(../img2/mail.svg);
}

.contacts-item-caption {
    margin-bottom: 30px;
    color: #1C1C1C;
font-size: 17px;
font-weight: 600;
line-height: 180%;
}

.contacts-item-text {
    margin: 0;
    max-width: 215px;
    font-size: 14px;
    line-height: 180%;
    color: #787878;
}

.contacts-item-link {
    font-size: 14px;
    line-height: 180%;
    font-weight: 400;
    color: #787878;
    transition: color 0.3s ease-in-out;
}

.contacts-item-link:focus {
    outline: 1px solid #71A7E2;
}

.contacts-item-link:hover {
    color: #71A7E2;
}

.contacts-item-link:active {
    outline: none;
    color: #0E3B6C;
}


/* JOIN US */

.join-us {
    border-bottom: 1px solid #dadada;
}

.form {
    padding: 0 55px;
}
.join-us-title {
    text-align: center;
}

.join-us-descr {
    text-align: center;
    margin-bottom: 30px;
}

.form-input {
    border: 1px solid #dadada;
    box-sizing: border-box;
    border-radius: 50px;
    padding: 16px 28px;
    width: 251px;
    height: 60px;
    transition: border-color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

/* .form-input:nth-child(-n+2) {
    margin-bottom: 19px;
} */

.form-input:focus {
    outline: none;
    border-color: #71A7E2;
    background-color: rgba(113, 167, 226, 0.20);
}

.form-input:hover {
    border-color: #71A7E2;
}

.form-input:active {
    border-color: #0E3B6C;
}


.form-select {
    padding: 16px 28px;
    width: 251px;
    height: 60px;
    box-sizing: border-box;
    border: 1px solid #dadada;
    border-radius: 50px;
    transition: border-color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.form-select:focus {
    outline: none;
    border-color: #71A7E2;
    background-color: rgba(113, 167, 226, 0.20);
}
.form-select:hover {
    border-color: #71A7E2;
}

.form-select:active {
    border-color: #0E3B6C;
}

.form-textarea {
    padding: 16px 28px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: 1px solid #dadada;
    border-radius: 20px;
    resize: none;
    transition: border-color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.form-textarea:focus {
    outline: none;
    border-color: #71A7E2;
    background-color: rgba(113, 167, 226, 0.20);
}
.form-textarea:hover {
    border-color: #71A7E2;
}

.form-textarea:active {
    border-color: #0E3B6C;
}

.form-bottom {
    display: flex;
    justify-content: flex-end;
}

.form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 19px;
}

.form-left {
    width: 49%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
}

.form-right {
    width: 49%;
}

.form-btn {
    min-width: 230px; 
    padding: 20px 0;
    border-radius: 50px;
    margin-bottom: 9px;
}

.form-check {
    font-size: 12px;
    line-height: 16px;
    color: #787878;
}

.form-check input {
    margin-right: 8px;
}

.form-check a {
    color: #3172B9;
    border-bottom: 1px solid #3172B9;
}
/* footer */

.footer {
    padding: 42px 0;
}
.footer__left {
    gap: 20px;
    align-items: center;
}
.footer__right {
    margin-left: auto;
    align-items: center;
}
.nav__container {
    align-items: center;
    justify-content: space-between;
}

.nav__left,
.nav__right {
    align-items: center;
}

.nav__logo {
    margin-right: 25px;
}

.footer__nav {
    margin-right: 56px;
}

.footer__nav .nav__item:not(:last-child) {
    margin-right: 28px;
}

.footer__copy {
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: #787878;
}

.footer-link {
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    color: #787878;
    transition: color 0.3s ease-in-out;
}

.footer-link:focus {
    outline-offset: 2px;
    outline: 1px solid #71a7e2;
}

.footer-link:hover {
    color: #71A7E2;
}

.footer-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color:#3474BA;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.footer-link:active {
    color: #3172B9;
    outline: none;
}

.footer-link:active::after {
    opacity: 1;
}

.footer-item:not(:last-child) {
    margin-right: 28px;
}


.social {
    align-items: center;
}

.social-item:not(:last-child) {
    margin-right:  32px;
}

.social-link {
    display: flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
}

.social-link svg {
    fill: #000;
    transition: fill 0.3s ease-in-out, stroke 0.3s ease-in-out;
}

.social-link-mail svg {
    fill: transparent;
    stroke: #000;
}

.social-link:focus {
    outline-offset: 2px;
    outline: 1px solid #71A7E2;
}

.social-link:hover svg {
    fill: #71A7E2;
}

.social-link-mail:hover svg {
    fill: transparent;
    stroke: #3172B9;
}

.social-link:active svg {
    fill: #3172B9;
}

.social-link-mail:active svg {
    fill: transparent;
    stroke: #3172B9;
}

.burger {
    display: none;

}