* {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-size: 1.6rem;
    font-family: 'Sora', 'Open Sans', sans-serif;
}

:root {
    --primary-color: #2e80ce;
    --second-color: #10375c;
}

/* common */

.container {
    width: 1170px;
    max-width: calc(100% - 48px);
    margin-left: auto;
    margin-right: auto;
}

.content-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
h2 {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 600;
    font-size: 5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--second-color);
}

a {
    text-decoration: none;
}

button {
    background: transparent;
    border: none;
    outline: none;
    padding: 0;
}

.btn {
    display: inline-block;
    text-align: center;
    color: #ffffff;
    background: var(--primary-color);
    border-radius: 999px;
    font-family: 'Sora', 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 1.8rem;
    width: 205px;
    height: 60px;
}

button:hover {
    opacity: 0.9;
}

/* Nav */

header {
    padding-top: 30px;
    background: var(--second-color);
    min-height: 100vh;
}

.nav__list {
    display: flex;
    gap: 42px;
}

.list__item.action {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 400;
}

.list__item.action::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 8px;
    background: #ffffff;
}

.list__item {
    font-weight: 300;
    font-size: 1.6rem;
    color: #c9d2da;
}

.nav__btn--login {
    margin-right: 28px;
    font-weight: 300;
    color: #c9d2da;
}
.btn__signup {
    display: inline-block;
    text-align: center;
    color: #ffffff;
    background: var(--primary-color);
    border-radius: 999px;
    font-family: 'Sora', 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 1.8rem;
    width: 104px;
    height: 44px;
}

.nav__btn--signup {
    display: flex;
    align-items: center;
    justify-content: center;
}

/*  <!-- Hero --> */
.hero {
    padding-top: 76px;
}

.hero__info {
    width: 517px;
}

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

.hero__info--desc {
    margin-top: 22px;
    font-weight: 300;
    font-size: 1.8rem;
    line-height: 1.67;
    color: #c9d2da;
}

.hero__contact {
    margin-top: 38px;
}

.info__btn,
.services-btn,
.about__info--btn,
.about__02--btn,
.appointment__btn {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__contact--phone {
    margin-left: 38px;
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 1.67;
    color: #ffffff;
}
.hero__img {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.hero__img--1 {
    position: relative;
    margin-right: -6px;
    width: 330px;
    height: 540px;
    border-radius: 6px;
    object-fit: cover;
}

.hero__img--2 {
    right: -204px;
    width: 210px;
    height: 410px;
    border-radius: 0px 6px 6px 0px;
    object-fit: cover;
}

/* <!-- Services --> */
.services {
    padding: 170px 0 170px;
}

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

.services-desc {
    width: 468px;
    font-weight: 300;
    font-size: 1.8rem;
    line-height: 1.67;
    text-align: center;
    color: #575f66;
    margin: 18px auto 0;
}

.services__block {
    display: flex;
    margin-top: 70px;
}

.services__block--img {
    margin-right: 130px;
    width: 570px;
    height: 570px;
    border-radius: 12px;
    object-fit: cover;
}

.block__info--group {
    margin: 35px auto 55px;
}

.info__group--item {
    display: flex;
    padding: 21px;
    background: #ffffff;
    border-radius: 10px;
}

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

.info__group--item:hover .img__block--teeth {
    color: #ffffff;
    transition: 0.25s;
}

.info__group--item:hover .img-block {
    background: var(--primary-color);
    transition: 0.25s;
}

.img-block {
    margin-right: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #fff;
    flex-shrink: 0;
    box-shadow: 0px 8px 16px rgba(40, 155, 222, 0.15);
    border-radius: 50%;
}

.img__block--teeth {
    display: inline-block;
    width: 22px;
    height: 24px;
    object-fit: cover;
    color: var(--second-color);
}

.item__title {
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--second-color);
}

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

.services-btn a {
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 1.67;
    color: #ffffff;
}

/* Work */

.work {
    padding: 100px 0;
    background: #f7fbff;
}
.work__title {
    width: 468px;
}

.work__desc {
    margin-top: 18px;
    font-weight: 300;
    font-size: 1.8rem;
    line-height: 1.67;
    color: #575f66;
}

.work__list {
    margin-top: 86px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.work__item {
    padding: 42px;
    height: 402px;
    border: 16px solid #eaf6ff;
    border-radius: 4px;
}
.work__item:hover {
    transform: translateY(-16px);
    transition: 0.25s;
    border-color: var(--primary-color);
}

.work__item--info {
    width: 254px;
}

.work__item--title {
    margin-top: 18px;
    font-weight: 600;
    font-size: 2.6rem;
    line-height: 1.38;
    color: var(--second-color);
}

.work__item--desc {
    margin-top: 28px;
    font-weight: 300;
    font-size: 1.6rem;
    line-height: 1.75;
    color: #575f66;
}

.work__item--more {
    display: inline-block;
    margin-top: 18px;
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.75;
    color: var(--primary-color);
}

/* about */
.about {
    padding: 170px 0;
}

.about-row {
    display: flex;
}

.about__img {
    position: relative;
    padding-right: 58px;
    padding-bottom: 121px;
}
.about__img--1 {
    width: 512px;
    height: 370px;
    object-fit: cover;
    filter: drop-shadow(0px 14px 28px rgba(0, 0, 0, 0.07));
    border-radius: 6px;
}

.about__img--2 {
    position: absolute;
    width: 332px;
    height: 370px;
    object-fit: cover;
    border-radius: 6px;
    bottom: 0;
    right: 0;
}

.about__info {
    padding: 82px 0;
    margin-left: 130px;
    width: 470px;
    flex-shrink: 0;
}
.about__info--desc {
    margin-top: 18px;
    font-weight: 300;
    font-size: 1.8rem;
    line-height: 1.67;
    color: #575f66;
}

.about__info--btn {
    margin-top: 38px;
}

/* about 2 */

.about__02 {
    padding-bottom: 85px;
}

.about__02--header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about__02--btn {
    margin-top: 38px;
    width: 205px;
    height: 60px;
}
.about__02--btn a {
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 1.67;
    color: #ffffff;
}

.about__02--doctor {
    margin-top: 70px;
    display: flex;
    gap: 30px;
}

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

.doctor__item:hover .doctor-img {
    transform: scale(1.1);
}

.doctor-img--block {
    overflow: hidden;
    background: #eaf6ff;
    border-radius: 6px;
    padding: 28px 4px 0;
}

.doctor-img {
    transition: 0.25s;
    width: 270px;
    height: 318px;
    object-fit: cover;
}

.doctor-name {
    display: inline-block;
    margin-top: 12px;
    font-weight: 500;
    font-size: 1.6rem;
    line-height: 1.75;
    color: var(--second-color);
}

.doctor-desc {
    font-weight: 300;
    font-size: 1.4rem;
    line-height: 1.86;
    color: #575f66;
}

.about__01--arrow {
    margin-top: 38px;
    display: flex;
    justify-content: center;
    gap: 18px;
}

.arrow__block {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #575f66;
    transform: matrix(-1, 0, 0, 1, 0, 0);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.arrow__block:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.arrow__block:hover .arrow__block--left,
.arrow__block:hover .arrow__block--right {
    color: #fff;
}

.arrow__block--left,
.arrow__block--right {
    color: #575f66;
}

/* features */

.features {
    padding-top: 180px;
    padding-bottom: 85px;
}

.features__body {
    padding: 0 70px;
    background: var(--primary-color);
    border-radius: 4px;
    height: 427px;
}

.features__body--img {
    position: relative;
    top: -95px;
}

.features__body--info {
    width: 586px;
    margin-bottom: 95px;
}

.features__info--title {
    width: 489px;
    color: #fff;
}

.features__info--desc {
    margin-top: 18px;
    font-weight: 300;
    font-size: 1.8rem;
    line-height: 1.67;
    color: #ffffff;
}

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

/* ===News=== */

.news {
    padding: 85px 0;
}

.news__info {
    width: 460px;
    padding: 68px 0;
    /* margin-right: 130px; */
}

.news__info--more {
    display: inline-block;
    margin-top: 28px;
    font-weight: 600;
    font-size: 1.8rem;
    text-decoration-line: underline;
    color: var(--second-color);
    text-underline-offset: 5px;
}

.news__arrow {
    justify-content: flex-start;
    margin-top: 28px;
}

.news__link--group {
    display: flex;
    gap: 30px;
}
.link__item {
    width: 270px;
    height: 375px;
    background: #ffffff;
    outline: 1px solid #e8ebee;
    border-radius: 12px;
}
.link__item:hover {
    outline: none;
    position: relative;
}

.link__item:hover .news__link--img {
    transform: scale(1.1);
}

.link__item:hover .news__link--info {
    box-shadow: 0px 18px 50px rgba(0, 0, 0, 0.05);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.link__img--block {
    overflow: hidden;
    height: 172px;
    border-radius: 12px 12px 0px 0px;
}

.news__link--img {
    height: 172px;
    width: 270px;
    border-radius: 12px 12px 0px 0px;
    object-fit: cover;
    cursor: pointer;
    transition: 0.25s;
}

.news__link--info {
    padding: 20px;
}

.news__link--title {
    font-weight: 600;
    font-size: 1.6rem;
    line-height: 1.62;
    color: var(--second-color);
    cursor: pointer;
}

.news__link--desc {
    margin-top: 10px;
    font-weight: 300;
    font-size: 1.4rem;
    line-height: 1.71;
    color: #575f66;
}

.news__links--more {
    display: inline-block;
    margin-top: 12px;
    font-weight: 400;
    font-size: 1.4rem;
    color: var(--second-color);
}

/* =======appointment====== */

.appointment__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 85px 0 170px;
    background: #f7fbff;
    padding: 100px 178px;
}

.appointment__title {
    position: relative;
}

.appointment__title::before {
    position: absolute;
    display: block;
    left: 0;
    right: 0;
    bottom: -18px;
    margin: 0 auto;
    content: '';
    width: 136px;
    height: 2px;
    background: var(--primary-color);
}
.appointment__desc {
    margin-top: 38px;
    width: 617px;
    text-align: center;
    font-weight: 300;
    font-size: 1.6rem;
    line-height: 1.75;
    color: #575f66;
}

.appointment__btn {
    margin-top: 38px;
}

/* Footer */
footer {
    background-color: var(--second-color);
    padding: 100px 0 42px 0;
}

.footer__content {
    align-items: flex-start;
    padding-bottom: 28px;
    border-bottom: 1px solid #406181;
}

.footer__desc {
    width: 336px;
    margin-top: 21px;
    font-family: 'Open Sans';
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.75;
    color: #a9b3bb;
}

.support__header,
.social__header,
.subscribe__header {
    font-family: 'Open Sans';
    font-weight: 600;
    font-size: 1.6rem;
    line-height: 1.75;
    color: #ffffff;
}

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

.support__item {
    margin-top: 10px;
}

.support__item--info {
    font-family: 'Open Sans';
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.86;
    color: #a9b3bb;
}

.support__item--info:hover {
    text-decoration: underline;
}

.support__item:first-child {
    margin-top: 20px;
}

.social {
    width: 322px;
}

.social__block {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.social__img--block {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    background-color: #fff;
    color: var(--primary-color);
}

.social__img--block:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.subscribe__header {
    margin-top: 28px;
}

.subscribe__desc {
    margin-top: 20px;
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.86;
    color: #a9b3bb;
}

.footer__form {
    margin-top: 10px;
    display: flex;
    gap: 12px;
}

.footer__form--input {
    width: 212px;
    height: 46px;
    border: 1px solid #406181;
    border-radius: 4px;
    background-color: transparent;
    padding: 0 10px;
    outline: none;
    color: #9ca8b1;
}

.footer__form--input::placeholder {
    font-family: 'Open Sans';
    font-weight: 400;
    font-size: 1.4rem;
    color: #9ca8b1;
}

.btn-submit {
    width: 108px;
    height: 46px;
    background: var(--primary-color);
    border-radius: 4px;
    font-size: 1.4rem;
    color: #ffffff;
    cursor: pointer;
}

.copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    font-weight: 400;
    font-size: 1.4rem;
    color: #aab3ba;
}
