* {
    box-sizing: border-box;
}

:root {
    --header-bg: #10375c;
    --main-color: #2e80ce;
}

html {
    font-size: 62.5%;
}

body {
    font-size: 1.6rem;
    font-family: "Sora", sans-serif;
}

/* Common */
.container {
    width: 1170px;
    max-width: calc(100% - 48px);
    margin: 0 auto;
}

input,
textarea,
select,
button {
    font-family: inherit;
    font-size: inherit;
}

a {
    text-decoration: none;
}

.btn {
    display: inline-block;
    line-height: 60px;
    color: #fff;
    font-size: 18px;
    text-align: center;
    font-weight: 400;
    min-width: 205px;
    border-radius: 999px;
    border: 1px solid var(--main-color);
    background: var(--main-color);
}

.btn:hover {
    cursor: pointer;
    opacity: 0.8;
}

.section-heading {
    color: #10375c;
    font-size: 5rem;
    font-weight: 600;
    line-height: 1.2; /* 120% */
    letter-spacing: -0.02em;
}

.section-desc {
    color: #575f66;
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.67; /* 166.667% */
}

.control {
    display: flex;
    gap: 18px;
}

.control__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #575f66;
    background: #fff;
    transition: 0.25s;
}

/* Header */
.header {
    position: relative;
    padding: 30px 0 110px;
    background: var(--header-bg);
}

/* Navigation */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
}

.navbar__list {
    display: flex;
}

.navbar__link,
.action__login {
    padding: 8px 21px;
    color: #c9d2da;
    font-size: 1.6rem;
    font-weight: 300;
}

.navbar__link--active {
    text-shadow: 1px 0 0 currentColor;
    color: #fff;
}

.navbar__link--active::before {
    position: relative;
    right: 8px;
    bottom: 2px;
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

.navbar__link:hover,
.action__login:hover {
    text-shadow: 1px 0 0 currentColor;
    color: #fff;
}

.action__btn {
    margin-left: 7px;
    min-width: 104px;
    font-size: 1.6rem;
    line-height: 44px;
}

/* Hero */
.hero {
    display: flex;
    align-items: center;
    margin-top: 76px;
}

/* Hero__content */
.hero__content {
    flex-shrink: 0;
    width: 44%;
}

.hero__heading {
    color: #fff;
    font-size: 7rem;
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -0.02em;
}

.hero__desc {
    margin-top: 22px;
    color: #c9d2da;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.67; /* 166.667% */
}

.hero__row {
    display: flex;
    align-items: center;
    margin-top: 38px;
}

.hero__phone {
    margin-left: 38px;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1.67;
    font-weight: 400;
}

/* Hero__media */
.hero__media {
    flex-grow: 1;
}

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

.hero__img {
    width: 330px;
    height: 540px;
    border-radius: 6px;
    object-fit: cover;
}

.hero__img:first-child {
    position: relative;
    margin-right: -6px;
}

.hero__img:last-child {
    width: 210px;
    height: 410px;
    border-radius: 0px 6px 6px 0px;
}

/* Service */
.service {
    padding: 170px 0;
}

.service__heading,
.service__desc {
    text-align: center;
}

.service__desc {
    margin-top: 18px;
    max-width: 468px;
    margin: 18px auto 0;
}

.service__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 70px;
}

.service__img {
    width: 570px;
    height: 570px;
    object-fit: cover;
    border-radius: 12px;
}

.service__list {
    margin-bottom: 55px;
}

.service-item {
    display: flex;
    padding: 21px 18px 20px 22px;
    max-width: 470px;
    border-radius: 10px;
    transition: 0.25s;
}

.service-item:hover {
    box-shadow: 0px 14px 28px 0px rgba(0, 0, 0, 0.05);
}

.service-item:hover .service-item__icon {
    background: rgba(46, 128, 206, 1);
    color: #fff;
}

.service-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(16, 55, 92, 1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(239, 246, 253, 1);
    transition: 0.25s;
}

.service-item__content {
    margin-left: 19px;
}

.service-item__title {
    color: #10375c;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: normal;
}

.service-item__desc {
    margin-top: 8px;
    max-width: 351px;
    color: #575f66;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1.75;
}

/* How it works */
.work {
    padding: 100px 0;
    background: #f6fbff;
}

.work__desc {
    margin-top: 18px;
    max-width: 468px;
}

.work__list {
    display: flex;
    gap: 30px;
    margin-top: 86px;
}

.work-item {
    padding: 42px 43px;
    border-radius: 4px;
    background: #fff;
    border: 16px solid #eaf6ff;
    transition: 0.3s;
}

.work-item:hover {
    border: 16px solid var(--main-color);
    transform: translateY(-16px);
}

.work-item__link:hover {
    text-decoration: underline;
    font-weight: 400;
}

.work-item__title {
    margin-top: 18px;
    color: #10375c;
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1.38; /* 138.462% */
}

.work-item__desc,
.work-item__link {
    color: #575f66;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1.75; /* 175% */
}

.work-item__desc {
    margin-top: 28px;
}

.work-item__link {
    display: inline-block;
    color: var(--main-color);
    margin-top: 18px;
}

/* About */
.about {
    margin-top: 85px;
    padding: 85px 0;
}

.about__block {
    display: flex;
}

.about__img {
    width: 512px;
    height: 370px;
    object-fit: cover;
    border-radius: 6px;
}

.about__img:last-child {
    width: 332px;
    height: 370px;
    margin-left: 238px;
    margin-top: -211px;
}

.about__content {
    margin-top: 82px;
    margin-left: 130px;
}

.about__desc {
    margin-top: 18px;
    margin-bottom: 38px;
}

/* Member */
.member {
    padding: 85px 0;
}

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

.member__btn {
    margin-top: 38px;
}

.member__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 34px;
    margin-top: 70px;
}

.member__control {
    justify-content: center;
    margin-top: 38px;
}

.member-item:hover .member-item__avatar {
    transform: scale(1.1);
}

.member-item__block {
    padding-top: 28px;
    border-radius: 6px;
    background: #eaf6ff;
    overflow: hidden;
}

.member-item__avatar {
    display: block;
    max-width: 100%;
    height: 290px;
    object-fit: cover;
    transition: 0.25s;
}

.member-item__name {
    margin-top: 12px;
    color: #10375c;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.75; /* 175% */
}

.member-item__desc {
    color: #575f66;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.86; /* 185.714% */
}

.control__btn:hover {
    background: var(--main-color);
    border: var(--main-color);
    color: #fff;
    cursor: pointer;
}

/* Install app */
.install {
    margin-top: 180px;
}

.install__inner {
    display: flex;
    padding: 0 70px;
    background: var(--main-color);
    border-radius: 4px;
}

.install__img {
    display: block;
    margin-top: -95px;
    width: 284px;
    height: 522px;
    object-fit: cover;
}

.install__content {
    margin-left: 160px;
}

.install__heading {
    margin-top: 76px;
    color: #fff;
}

.install__desc {
    margin-top: 18px;
    color: #fff;
}

.install__row {
    display: flex;
    gap: 28px;
    margin-top: 38px;
}

/* News */
.news {
    padding: 85px 0;
    margin-top: 85px;
}

.news__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news__content {
    flex-shrink: 0;
}

.news__heading {
    max-width: 470px;
}

.news__link {
    display: inline-block;
    font-size: 1.8rem;
    line-height: 1.56;
    margin-top: 28px;
    color: #10375c;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.news__control {
    margin-top: 28px;
}

.news__list {
    display: flex;
    column-gap: 30px;
    width: 570px;
}

.news-item {
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e8ebee;
    transition: 0.25s;
}

.news-item:hover {
    box-shadow: 0px 18px 50px 0px rgba(0, 0, 0, 0.05);
    border: 1px solid #fff;
    transform: translateY(-15px);
}

.news-item__img {
    margin: -1px;
    width: 270px;
    height: 172px;
    object-fit: cover;
    border-radius: 12px 12px 0px 0px;
}

.news-item__body {
    padding: 0 22px;
}

.news-item__title {
    display: inline-block;
    margin-top: 18px;
    color: #10375c;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.63; /* 162.5% */
}

.news-item__desc {
    margin-top: 10px;
    color: #575f66;
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.71; /* 171.429% */
}

.news-item__more {
    display: inline-block;
    margin-top: 12px;
    margin-bottom: 14px;
    color: #10375c;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.7;
}

.news-item__more:hover {
    color: var(--main-color);
}

/* Appointment */
.appointment {
    margin: 85px 0;
}

.appointment__inner {
    padding: 100px 0;
    border-radius: 4px;
    background: #f6fbff;
    text-align: center;
}

.appointment__heading {
    position: relative;
    padding-bottom: 20px;
}

.appointment__heading::after {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    content: "";
    display: block;
    width: 136px;
    height: 2px;
    background: var(--main-color);
}

.appointment__desc {
    color: #575f66;
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1.75; /* 175% */
    margin: 18px auto 0;
    max-width: 617px;
}

.appointment__btn {
    margin-top: 38px;
}

/* Footer */
.footer {
    margin-top: 170px;
    padding: 100px 0 42px;
    background: #10375c;
    font-family: "Open Sans", sans-serif;
}

.footer__row {
    display: grid;
    grid-template-columns: 1fr 0.4fr 0.4fr 1fr;
    column-gap: 78px;
}

.footer__desc {
    margin-top: 21px;
    color: #a9b3bb;
    font-size: 1.6rem;
    line-height: 1.75; /* 175% */
}

.footer__title {
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.75; /* 175% */
}

.footer__link {
    display: inline-block;
    margin-bottom: 10px;
    color: #a9b3bb;
    font-size: 1.4rem;
    line-height: 1.86; /* 185.714% */
    white-space: nowrap;
}

.footer__link:hover {
    text-decoration: underline;
}

.footer__title + .footer__title {
    margin-top: 28px;
}

li:last-child .footer__link {
    margin-bottom: 28px;
}

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

.footer__social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: var(--main-color);
}

.footer__social-btn:hover {
    color: #fff;
    background: var(--main-color);
}

.footer__sub-desc {
    margin-top: 20px;
    color: #a9b3bb;
    font-size: 1.4rem;
    line-height: 1.86; /* 185.714% */
}

.footer-form {
    display: flex;
    column-gap: 12px;
    margin-top: 10px;
}

.footer-form__input {
    width: 212px;
    height: 46px;
    padding: 0 10px;
    outline: none;
    border-radius: 4px;
    border: 1px solid #406181;
    background: transparent;
    color: #fff;
}

.footer-form__input::placeholder {
    color: #9ca8b1;
    font-size: 1.4rem;
    line-height: 1.86; /* 185.714% */
}

.footer-form__submit {
    min-width: 108px;
    font-size: 1.4rem;
    line-height: 46px;
    border-radius: 4px;
}

.footer__copyright {
    border-top: 1px solid #406181;
}

.footer__copyright-text {
    margin-top: 28px;
    color: #aab3ba;
    text-align: center;
    font-size: 1.4rem;
    line-height: 1.86; /* 185.714% */
}
