:root {
  --main-font: 'Raleway', sans-serif;
  --second-font: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 360px;
  background: #fff;
  color: #333;
  font-family: var(--main-font);
}

main {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
}

a:focus {
  outline: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
textarea,
button,
select,
label {
  font-family: var(--main-font);
  border: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

html {
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  max-width: 1320px;
  padding: 0 15px;
  margin: 0 auto;
}

.header {
  margin: 50px 0 38px;
}

.header__block {
  background: #e3fffd;
  border-radius: 20px;
  padding: 7px 47px 6px 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.header__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.header__link {
  font-weight: 600;
  font-size: 14px;
  color: #000;
}

.header__phone {
  font-family: var(--second-font);
  font-weight: 700;
  font-size: 14px;
  color: #333;
  padding-left: 12px;
}

.hero {
  margin-bottom: 78px;
}

.hero__block {
  background: url(../img/hero-bg.jpg) no-repeat center / cover;
  border-radius: 20px;
  padding: 105px 110px 127px;
}

.hero__title {
  font-weight: 800;
  font-size: 36px;
  max-width: 550px;
  line-height: 135%;
  text-transform: uppercase;
  color: #10335c;
  margin-bottom: 16px;
}

.hero__text {
  max-width: 494px;
  font-weight: 500;
  font-size: 16px;
  line-height: 135%;
  color: #333;
  margin-bottom: 37px;
}

.hero__align {
  display: flex;
}

.hero__link {
  font-family: var(--second-font);
  font-weight: 700;
  font-size: 14px;
  color: #333;
  padding: 17.5px 25.5px;
  background: #30eadf;
  border-radius: 10px;
}

.services {
  margin-bottom: 81px;
}

.services__title {
  font-weight: 700;
  font-size: 40px;
  color: #333;
  margin-bottom: 19px;
}

.header__logo {
  flex-shrink: 0;
}

.services__block {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

.services__item {
  background: #d7f4f0 url(../img/icons/services-icon.svg) no-repeat;
  background-position: calc(100% - 15px) 10px;
  border-radius: 20px;
  padding: 24px 42px 44px;
  min-height: 419px;
}

.services__caption {
  font-weight: 700;
  font-size: 24px;
  text-align: center;
  color: #1d8e92;
  margin-bottom: 24px;
}

.services__heading {
  font-weight: 600;
  font-size: 16px;
  color: #4f4f4f;
  margin-bottom: 8px;
}

.services__info+.services__info {
  margin-top: 12px;
}

.services__text {
  font-weight: 600;
  font-size: 14px;
  color: #828282;
  margin-bottom: 0;
}

.services__wrapper {
  margin-bottom: 18px;
}

.services__item {
  display: flex;
  flex-direction: column;
}

.services__align {
  display: flex;
  justify-content: center;
  margin-top: auto;
}

.services__link {
  font-family: var(--second-font);
  font-weight: 700;
  font-size: 14px;
  color: #333;
  padding: 9px 41.5px;
  background: #30eadf;
  border-radius: 10px;
}

.doctor {
  margin-bottom: 97px;
}

.doctor__block {
  display: grid;
  grid-template-columns: 1fr 410px;
  align-items: start;
  gap: 140px;
}

.doctor__right {
  background: #30eadf url(../img/icons/doctor-icon.svg) no-repeat;
  background-position: calc(100% - 8px) 8px;
  border-radius: 20px;
  padding: 22px 59px 22px 58px;
}

.doctor__title {
  font-weight: 700;
  font-size: 40px;
  color: #333;
  margin-bottom: 16px;
}

.doctor__light {
  color: #1d8e92;
}

.doctor__image {
  border-radius: 10px;
}

.doctor__name {
  font-weight: 700;
  font-size: 20px;
  color: #4f4f4f;
  margin-bottom: 12px;
}

.doctor__post {
  font-family: var(--second-font);
  font-weight: 700;
  font-size: 16px;
  color: #828282;
}

.doctor__text+.doctor__text {
  margin-top: 19px;
}

.doctor__text {
  font-weight: 600;
  font-size: 14px;
  color: #4f4f4f;
  margin-bottom: 0;
}

.doctor__text b {
  font-weight: 700;
}

.consultation {
  margin-bottom: 80px;
}

.about__info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.consultation__block {
  position: relative;
  background: #30eadf;
  border-radius: 20px;
  padding: 27px 110px 28px;
}

.consultation__title {
  font-weight: 700;
  font-size: 32px;
  color: #333;
  margin-bottom: 18px;
  max-width: 451px;
}

.consultation__text {
  font-weight: 600;
  font-size: 16px;
  color: #4f4f4f;
  max-width: 520px;
}

.consultation__align {
  display: flex;
}

.consultation__link {
  font-family: var(--second-font);
  font-weight: 700;
  font-size: 14px;
  color: #333;
  padding: 15px 51.5px;
  background: #fff;
  border-radius: 10px;
}

.consultation__image {
  position: absolute;
  bottom: 0;
  right: 8.6vw;
}

.about {
  margin-bottom: 80px;
}

.about__title {
  font-weight: 700;
  font-size: 40px;
  color: #333;
  margin-bottom: 24px;
}

.about__block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.about__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
}

.about__text+.about__text {
  margin-top: 12px;
}

.about__text {
  font-weight: 500;
  font-size: 16px;
  color: #828282;
  margin-bottom: 0;
}

.about__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.about__image {
  border-radius: 20px;
}

.choose {
  margin-bottom: 80px;
}

.choose__block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr) auto;
  grid-column-gap: 30px;
  grid-row-gap: 30px;
}

.choose-grid-one {
  grid-area: 1 / 1 / 3 / 2;
}

.choose-grid-second {
  grid-area: 1 / 2 / 2 / 3;
}

.choose-grid-third {
  grid-area: 2 / 2 / 3 / 3;
}

.choose-grid-fourth {
  grid-area: 3 / 1 / 4 / 3;
}

.choose-grid-fifth {
  grid-area: 1 / 3 / 4 / 4;
}

.choose__first {
  background: linear-gradient(180deg, #30eadf 0%, #1d8e92 100%);
  position: relative;
  padding: 30px 30px 291px 53px;
  overflow: hidden;
  border-radius: 20px 0 0 0;
  min-height: 440px;
}

.choose__number {
  position: absolute;
  bottom: -1px;
  right: -25px;
  height: 290px;
}

.choose__number.second {
  height: 446px;
  right: -25px;
  bottom: 6px;
}

.choose__count {
  font-weight: 700;
  font-size: 40px;
  color: #ff3039;
  margin-bottom: 1px;
}

.choose__label {
  font-weight: 700;
  font-size: 16px;
  color: #ff3039;
  margin-bottom: 12px;
}

.choose__text {
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  max-width: 247px;
  margin-bottom: 0;
}

.choose__image {
  position: absolute;
  bottom: 0;
  left: 0;
}

.choose__first.second {
  border-radius: 0 20px 20px 0;
  padding: 29px 30px 70px 36px;
}

.choose__caption {
  font-weight: 700;
  font-size: 24px;
  color: #ff3039;
  margin-bottom: 27px;
}

.choose__first.second .choose__text {
  max-width: 336px;
}

.choose__second {
  background: #d7f4f0;
  padding: 29px 30px 37px;
}

.choose__perce {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.choose__percent {
  padding-top: 5px;
  font-family: var(--second-font);
  font-weight: 700;
  font-size: 40px;
  color: #ff3039;
  margin-bottom: 0;
}

.choose__pacient {
  font-weight: 700;
  font-size: 16px;
  color: #ff3039;
  margin-bottom: 0;
}

.choose__fourth {
  padding: 27px 21px 26px 53px;
  background: #d7f4f0;
  border-radius: 0 0 0 20px;
}

.choose__best {
  font-weight: 700;
  font-size: 24px;
  color: #ff3039;
  margin-bottom: 12px;
}

.choose__word {
  font-weight: 500;
  font-size: 16px;
  color: #1d8e92;
  margin-bottom: 0;
}

.choose__third {
  padding: 21px 25px 24px 28px;
  background: #fe7167 url(../img/icons/choose-icon.svg) no-repeat;
  background-position: calc(100% - 9px) 9px;
}

.choose__use {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  margin-bottom: 8px;
}

.choose__method {
  max-width: 248px;
  font-weight: 700;
  font-size: 20px;
  color: #30eadf;
  margin-bottom: 12px;
}

.choose__paragraph {
  font-weight: 500;
  font-size: 14px;
  color: #fff;
  margin-bottom: 0;
}

.choose__bottom {
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  color: #1d8e92;
  max-width: 286px;
  margin: 0 auto;
}

.heal {
  margin-bottom: 80px;
}

.heal__block {
  background: #30eadf;
  border-radius: 20px;
  padding: 0 82px 0 108px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.heal__title {
  margin-top: 45px;
  font-weight: 700;
  font-size: 32px;
  color: #333;
  margin-bottom: 18px;
}

.heal__text {
  font-weight: 600;
  font-size: 16px;
  color: #4f4f4f;
  margin-bottom: 18px;
}

.heal__align {
  display: flex;
  margin-bottom: 25px;
}

.heal__link {
  font-family: var(--second-font);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  padding: 15px 15.5px;
  background: #ff3039;
  border-radius: 10px;
}

.steps {
  margin-bottom: 80px;
}

.steps__title {
  font-family: var(--second-font);
  font-weight: 700;
  font-size: 40px;
  color: #333;
  max-width: 800px;
  margin-bottom: 48px;
}

.heal__image {
  height: 100%;
  object-fit: cover;
}

.steps__block {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 39px;
}

.steps__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 182px;
}

.steps__item:before {
  content: '';
  width: 30px;
  height: 1px;
  position: absolute;
  top: 68px;
  right: -37px;
  background: linear-gradient(90deg, #1D8E92 0%, #30EADF 100%);
}

.steps__item:last-child:before {
  display: none;
}

.steps__point {
  font-family: var(--second-font);
  position: relative;
  width: 117px;
  height: 135px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background: url(../img/icons/steps-icon.svg) no-repeat center / cover;
  font-weight: 700;
  font-size: 48px;
  text-align: center;
  color: #1d8e92;
  margin-bottom: 9px;
}

.steps__caption {
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  color: #333;
  min-height: 38px;
  margin-bottom: 8px;
}

.steps__bottom {
  font-weight: 500;
  font-size: 14px;
  text-align: center;
  color: #4f4f4f;
  margin-bottom: 0;
}

.cert {
  margin-bottom: 100px;
}

.cert__title {
  font-weight: 700;
  font-size: 40px;
  color: #333;
  margin-bottom: 24px;
}

.cert__block {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer {
  background: #e3fffd;
}

.footer__global {
  padding: 33px 0 34px;
  display: flex;
  align-items: flex-start;
  gap: 58px;
}

.footer__left {
  flex-grow: 1;
  padding-top: 27px;
  display: flex;
  gap: 30px;
}

.footer__logo {
  margin-bottom: 17px;
  display: inline-block;
}

.footer__contacts {
  padding-top: 26px;
}

.footer__name {
  font-family: var(--second-font);
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-bottom: 13px;
}

.footer__help {
  font-family: var(--second-font);
  font-weight: 500;
  font-size: 14px;
  color: #333;
  margin-bottom: 17px;
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__title {
  font-family: var(--second-font);
  font-weight: 700;
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.footer__capsule {
  display: flex;
  gap: 35px;
}

.footer__icon {
  margin-bottom: 7px;
}

.footer__heading {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-bottom: 7px;
}

.footer__value {
  font-family: var(--second-font);
  font-weight: 500;
  font-size: 14px;
  color: #333;
  margin-bottom: 0;
}

.footer__bottom {
  padding: 15px 0;
  border-top: 1px solid #828282;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--second-font);
  font-weight: 500;
  font-size: 16px;
  color: #333;
}

.footer__item {
  flex-shrink: 0;
}

.choose__title {
  font-weight: 700;
  font-size: 40px;
  color: #333;
  max-width: 559px;
  margin-bottom: 39px;
}

.choose__light {
  color: #1d8e92;
}

.header__burger {
  padding: 0;
  background: none;
  display: none;
}

.header-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  display: block;
  width: 100%;
  transition: all 0.2s ease;
  z-index: -10;
}

.header-mobile.active {
  transform: translateX(0);
  opacity: 1;
  z-index: 100;
}

.header-mobile.active .header-mobile__bg {
  z-index: 100;
  opacity: 1;
}

.header-mobile__bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -10;
  transition: all 0.1s ease;
  opacity: 0;
}

.header-mobile__inner {
  position: absolute;
  top: 0;
  padding: 64px 16px 30px;
  right: 0;
  bottom: 0;
  max-width: 254px;
  width: 100%;
  background-color: #fff;
  z-index: 900;
  height: 100%;
  overflow-y: auto;
  transition: all 0.2s ease;
  transform: translateX(100%);
}

.header-mobile__close {
  padding: 0;
  background: none;
  position: absolute;
  top: 16px;
  right: 16px;
}

.header-mobile.active .header-mobile__inner {
  transform: translateX(0);
}

.header-mobile__nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.header-mobile__link {
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #252525;
}

.footer__right iframe {
  max-width: 100%;
}

.widgets__tel {
    position: fixed;
    right: 20px;
    bottom: 100px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    text-align: center;
    z-index: 9999;
}

.widgets__tel::after, .widgets__tel::before {
    content: "";
    display: block;
    position: absolute;
    border: 50%;
    border: 1px solid #333333;
    left: -20px;
    right: -20px;
    top: -20px;
    bottom: -20px;
    border-radius: 50%;
    animation: animate 1.5s 
linear infinite;
    opacity: 0;
    backface-visibility: hidden;
}

.widgets__tel:after {
    animation-delay: 0.5s;
}

.widgets__whatsapp {
    position: fixed;
    right: 10px;
    bottom: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    text-align: center;
    z-index: 9999;
}

.widgets__whatsapp::after, .widgets__whatsapp::before {
    content: "";
    display: block;
    position: absolute;
    border: 50%;
    border: 1px solid #25D366;
    left: -20px;
    right: -20px;
    top: -20px;
    bottom: -20px;
    border-radius: 50%;
    animation: animate 1.5s 
linear infinite;
    opacity: 0;
    backface-visibility: hidden;
}

.widgets__whatsapp:after {
    animation-delay: 0.5s;
}

@keyframes animate {
  0% {
    transform: scale(0.5);
    opacity: 0;
}
50% {
    opacity: 1;
}
100% {
    transform: scale(1.2);
    opacity: 0;
}
}

@media (max-width: 1320px) {
  .steps__item:nth-child(5):before {
    display: none;
  }

}

@media (max-width: 1150px) {
  .services__block {
    grid-template-columns: 1fr 1fr;
  }

  .consultation__image {
    right: 0;
    width: 281px;
  }

  .choose__block {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr repeat(2, auto);
    gap: 30px;
  }

  .choose-grid-one {
    grid-area: 1 / 1 / 2 / 2;
  }

  .choose-grid-second {
    grid-area: 2 / 1 / 3 / 2;
  }

  .choose-grid-third {
    grid-area: 2 / 2 / 3 / 3;
  }

  .choose-grid-fourth {
    grid-area: 3 / 1 / 4 / 3;
  }

  .choose-grid-fifth {
    grid-area: 1 / 2 / 2 / 3;
  }

  .choose__image {
    width: 250px;
  }

  .choose__first {
    min-height: 516px;
  }

  .choose__first.second {
    border-radius: 0 20px 0 0;
  }

  .choose__fourth {
    border-radius: 0 0 20px 20px;
  }

  .footer__global {
    flex-direction: column;
  }

  .footer__right {
    width: 100%;
  }

  .footer__right iframe {
    width: 100%;
  }
}

@media (max-width: 1100px) {

  .steps__item:nth-child(5):before {
    display: block;
  }

  .steps__item:nth-child(4):before {
    display: none;
  }
}

@media (max-width: 1000px) {
  .header__block {
    padding: 7px 20px 6px;
  }

  .header__nav {
    gap: 20px;
  }

  .header__phone {
    padding-left: 0;
  }

  .doctor__block {
    gap: 40px;
  }

  .heal__block {
    padding: 30px 50px 0;
    flex-direction: column;
    align-items: center;
  }

  .heal__align {
    margin-bottom: 40px;
  }

  .heal__title {
    margin-top: 0;
  }

 
}

@media (max-width: 900px) {
  .consultation__block {
    padding: 35px 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .consultation__image {
    position: static;
    width: auto;
  }

  .steps__item:nth-child(4):before {
    display: block;
  }

  .steps__item:nth-child(3):before {
    display: none;
  }
}

@media (max-width: 800px) {
  .header__nav {
    display: none;
  }

  .header__burger {
    display: block;
    padding: 0;
    background: none;
  }

  .header__phone {
    margin-left: auto;
  }

  .services__block {
    grid-template-columns: 1fr;
  }

  .services__item {
    min-height: 300px;
  }

  .doctor__block {
    display: flex;
    flex-direction: column-reverse;
  }

  .about__block {
    grid-template-columns: 1fr;
  }

  .about__image {
    width: 100%;
  }

  .choose__number {
    height: 200px;
  }

  .choose__number.second {
    height: 261px;
    right: -35px;
  }

  .choose__image {
    width: 200px;
  }

  .choose__image.second {
    width: 180px;
  }

  .cert__block {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .cert__image {
    width: 100%;
  }

  .footer__left {
    flex-direction: column;
  }

 
}

@media (max-width: 600px) {
  .hero__block {
    padding: 40px 30px;
  }

  .doctor__right {
    width: 100%;
  }

  .hero__title {
    font-size: 27px;
  }

  .header {
    margin: 20px 0 25px;
  }

  .header__logo {
    width: 100px;
  }

  .header__block {
    padding: 10px 15px 10px;
  }

  .hero {
    margin-bottom: 40px;
  }

  .services__title {
    font-size: 30px;
  }

  .services__caption {
    padding: 0 27px;
  }

  .services__link {
    padding: 9px 38.5px;
  }

  .services__item {
    padding: 24px 25px;
  }

  .services__block {
    gap: 20px;
  }

  .doctor__image {
    width: 100%;
  }

  .doctor__block {
    gap: 25px;
  }

  .doctor__title {
    font-size: 30px;
  }

  .doctor {
    margin-bottom: 50px;
  }

  .services {
    margin-bottom: 50px;
  }

  .consultation__block {
    padding: 35px 30px 0;
  }

  .consultation__title {
    font-size: 28px;
  }

  .consultation__link {
    width: 100%;
    text-align: center;
  }

  .consultation {
    margin-bottom: 50px;
  }

  .about__title {
    font-size: 30px;
    margin-bottom: 15px;
  }

  .about__gallery {
    gap: 15px;
  }

  .about__image {
    border-radius: 15px;
  }

  .about {
    margin-bottom: 50px;
  }

  .choose__block {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .choose__title {
    font-size: 30px;
    margin-bottom: 25px;
  }

  .choose__first {
    min-height: auto;
    padding: 30px 30px 70px;
    border-radius: 20px 20px 0 0;
  }

  .choose__image {
    position: relative;
    bottom: -70px;
    left: -30px;
  }

  .choose__fourth {
    border-radius: 0;
    padding: 21px 25px;
  }

  .choose__first.second {
    border-radius: 0 0 20px 20px;
  }

  .choose {
    margin-bottom: 50px;
  }

  .heal__link {
    width: 100%;
    font-size: 13px;
    text-align: center;
  }

  .heal__block {
    padding: 30px 30px 0;
  }

  .heal__title {
    font-size: 28px;
  }

  .heal {
    margin-bottom: 50px;
  }

  .steps__item:nth-child(3):before {
    display: block;
  }

  .steps__item:nth-child(2):before {
    display: none;
  }

  .steps__item:nth-child(4):before {
    display: none;
  }

  .steps__title {
    font-size: 30px;
    margin-bottom: 35px;
  }

  .steps {
    margin-bottom: 50px;
  }

  .cert__title {
    font-size: 30px;
  }

  .cert__block {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .cert {
    margin-bottom: 50px;
  }

  .footer__capsule {
    gap: 19px;
  }

  .footer__contacts {
    padding-top: 0;
  }

  .footer__global {
    padding-top: 0;
    gap: 35px;
  }

  .footer__bottom {
    font-size: 14px;
  }

  .footer__copyright {
    width: 15px;
  }

 

  .hero__text {
    max-width: 320px;
  }
}

@media (max-width: 450px) {
  .steps__block {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .steps__item {
    width: auto;
  }

  .steps__item:before {
    width: 24px;
    right: -31px;
  }

  
}