* {
  box-sizing: border-box;
}

:where(ul, ol):where([class]) {
  padding-left: 0;
}

body,
:where(blockquote, figure):where([class]) {
  margin: 0;
}

:where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl):where([class]) {
  margin-block: 0;
}

:where(dd[class]) {
  margin-left: 0;
}

:where(fieldset[class]) {
  margin-left: 0;
  padding: 0;
  border: none;
}

:where(ul[class]) {
  list-style: none;
}

p {
  --paragraphMarginBottom: 24px;

  margin-block: 0;
}

p:where(:not([class]):not(:last-child)) {
  margin-bottom: var(--paragraphMarginBottom);
}

img {
  display: block;
}

input,
textarea,
select,
button {
  font: inherit;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  line-height: 1.5;
}

svg *[fill] {
  fill: currentColor;
}
svg *[stroke] {
  stroke: currentColor;
}

svg * {
  transition-property: fill, stroke;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Обмежувальна оболонка */
.slick-list {
  overflow: hidden;
}

.slick-track {
  display: flex;
  overflow: hidden;
}

/* Елемент точки */
/* Slider */
.slick-loading .slick-list {
  background: #fff url('./ajax-loader.gif') center center no-repeat;
}

/* Icons */

/* Arrows */
.slick-prev,
.slick-next {
  font-size: 0;
  line-height: 0;

  position: absolute;
  top: 50%;
  display: block;
  width: 20px;
  height: 20px;
  padding: 0;
  -webkit-transform: translate(0, -50%);
  -ms-transform: translate(0, -50%);
  transform: translate(0, -50%);
  cursor: pointer;
  color: transparent;
  border: none;
  outline: none;
  background: transparent;
}
.slick-prev:hover,
.slick-prev:focus,
.slick-next:hover,
.slick-next:focus {
  color: transparent;
  outline: none;
  background: transparent;
}
.slick-prev:hover:before,
.slick-prev:focus:before,
.slick-next:hover:before,
.slick-next:focus:before {
  opacity: 1;
}
.slick-prev.slick-disabled:before,
.slick-next.slick-disabled:before {
  opacity: 0.25;
}

.slick-prev:before,
.slick-next:before {
  font-family: 'slick';
  font-size: 20px;
  line-height: 1;

  opacity: 0.75;
  color: white;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.slick-prev {
  left: -25px;
}
[dir='rtl'] .slick-prev {
  right: -25px;
  left: auto;
}
.slick-prev:before {
  content: '←';
}
[dir='rtl'] .slick-prev:before {
  content: '→';
}

.slick-next {
  right: -25px;
}
[dir='rtl'] .slick-next {
  right: auto;
  left: -25px;
}
.slick-next:before {
  content: '→';
}
[dir='rtl'] .slick-next:before {
  content: '←';
}

/* Dots */
.slick-dotted.slick-slider {
  margin-bottom: 30px;
}

.slick-dots {
  position: absolute;
  bottom: -25px;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;

  list-style: none;

  text-align: center;
}
.slick-dots li {
  position: relative;

  display: inline-block;

  width: 20px;
  height: 20px;
  margin: 0 5px;
  padding: 0;

  cursor: pointer;
}
.slick-dots li button {
  font-size: 0;
  line-height: 0;
  display: block;
  width: 20px;
  height: 20px;
  padding: 5px;
  cursor: pointer;
  color: transparent;
  border: 0;
  outline: none;
  background: transparent;
}
.slick-dots li button:hover,
.slick-dots li button:focus {
  outline: none;
}
.slick-dots li button:hover:before,
.slick-dots li button:focus:before {
  opacity: 1;
}
.slick-dots li button:before {
  font-family: 'slick';
  font-size: 6px;
  line-height: 20px;
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  content: '•';
  text-align: center;
  opacity: 0.25;
  color: black;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.slick-dots li.slick-active button:before {
  opacity: 0.75;
  color: black;
}

.border-none {
  border-bottom: none !important;
}

.section {
  opacity: 1;
  transform: translateY(0);
  transition: all 1s;
}

.section--hidden {
  opacity: 0;
  transform: translateY(80px);
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  font-size: 62.5%;
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a[href] {
  text-decoration: none;
  display: inline-block;
}

.modal {
  position: fixed;
  width: 100%;
  height: 100%;
  background: url('img/bg_patients.png') center/cover no-repeat;
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  transition: all 0.6s ease;
}
.modal__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-size: 25px;
  text-align: center;
  margin-bottom: 20px;
}
.modal__wrapper {
  display: flex;
  transition: all 0.6s ease;
}
.modal__container {
  padding: 40px;
  background: tranparent;
  transition: all 0.6s ease;
}
.modal__block {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}
.modal__content {
  position: relative;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #f3f2f8;
  padding: 20px;
  border: 1px solid #eca73b;
  border-radius: 8px;
}
.close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
}
.modal__title .modal__close {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 25px;
  background: #eca73b;
  outline: none;
  border: none;
  cursor: pointer;
}
.modal__close:hover {
  color: red;
}
.modal__title .modal__x {
  color: white;
  font-size: 30px;
}

@media (max-width: 428px) {
  .modal__wrapper {
    padding: 20px;
  }
  .modal__form input {
    width: 350px;
  }
  .modal__form textarea {
    width: 350px;
  }
}
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background: #0e0f1c;
  z-index: 100;
}
#preloader img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
@keyframes preloader-anim {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
#preloader.hide-preloader {
  opacity: 0;
  transition: opacity 1s ease;
}

#preloader.preloader-hidden {
  display: none;
}

.header {
  position: relative;
  height: 100vh;
  /* padding: 0 0 72px 0; */
  padding: 0;
  /* background: url('../img/test/1.webp') top / cover no-repeat; */
}

/* .header::before {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.8);
} */
.header__hamburger {
  display: none;
  position: absolute;
  top: 20px;
  /* right: 35px; */
  right: 28px;
}
.header__hamburger_span {
  display: block;
  width: 35px;
  height: 2px;
  margin-bottom: 8px;
  background-color: #f3f2f8;
  transition: all 0.3s ease-in-out;
}
.header__nav-wrapper {
  position: relative;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  margin: 0 auto;
  align-items: center;
  text-align: center;
  z-index: 2;
}
.header__nav {
  font-size: 16px;
  line-height: 125%;
  padding: 12px 0;
  transition: all 1s linear;
  z-index: 9;
  backface-visibility: hidden;
}
.header__nav-scrolled {
  width: 100vw;
  position: fixed;
  animation: navbarAnim 2s;
  background-color: #191d48;
  margin-bottom: 10px;
}
.header__links {
  display: flex;
  -moz-column-gap: 24px;
  column-gap: 24px;
}

.header__submenu {
  display: none;
  margin: 0 auto;
  text-align: center;
  transition: all 3s ease;
  width: 40%;
  padding: 10px 0 0;
}
.header__submenu li a {
  font-size: 15px;
  color: #fff;
  font-weight: 400;
  white-space: nowrap;
  line-height: 125%;
  font-size: 16px;
  letter-spacing: 0.8px;
}
.header__link a {
  color: #f3f2f8;
  font-weight: 400;
  white-space: nowrap;
  line-height: 125%;
  font-size: 16px;
  letter-spacing: 0.8px;
}
.header__link a:hover {
  color: #eca73b;
}
.header__button button {
  width: 167px;
  height: 44px;
  background: transparent;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid #f3f2f8;
  line-height: 125%;
  letter-spacing: 0.8px;
  color: #f3f2f8;
  font-weight: 400;
  outline: none;
  font-size: 16px;
  cursor: pointer;
}
.header__button button:hover {
  background: #eca73b;
  border: 1px solid #eca73b;
  box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.5);
}
.header__button-consultation {
  display: none;
}
.header__slider {
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.header__slider img {
  width: 100%;
}
/* .header__content-wrapper {
 
} */

.header__text {
  position: relative;
  display: flex;
  z-index: 1;
  /* border: 1px solid #000; */
}
.header__wrapper {
  padding: 200px 0;
}
.header__title {
  font-size: 55px;
  color: white;
  font-style: normal;
  font-weight: 400;
  line-height: 80px;
  letter-spacing: 8.2px;
  padding-bottom: 72px;
}
.header__descr {
  display: block;
  text-align: right;
  color: white;
  font-size: 48px;
  font-style: normal;
  font-weight: 400;
  line-height: 125%;
  letter-spacing: 5.4px;
}
.header__ellipse {
  position: absolute;
  left: 13%;
  width: 588px;
  height: 588px;
  border: 1px solid #fff;
  border-radius: 50%;
}
.header__icons {
  position: absolute;
  bottom: 0;
  right: 0;
}
.header__descr-maxscreen578 {
  display: none;
}

.header__icons-img {
  width: 24px;
  height: 24px;
  color: white;
}
.header__icons-img:hover {
  stroke: #eca73b;
}
.header__text-maxscreen578 {
  display: none;
}
/* the end HEADER  */

@keyframes navbarAnim {
  0% {
    opacity: 0;
    top: -50%;
  }
  100% {
    opacity: 1;
    top: 0;
  }
}
.no-scroll {
  overflow: hidden;
}

.about {
  position: relative;
  min-height: 853px;
  background: #f3f2f8;
  padding: 168px 0 168px 0;
}
.about__wrapper {
  position: relative;
  display: flex;
  justify-content: space-evenly;
}
.about__content {
  max-width: 486px;
  min-height: 404px;
  align-self: flex-end;
}
.about__vector-left {
  max-width: 306px;
  max-height: 342px;
  position: absolute;
  transform: translate(-57%, -30%);
  z-index: 1;
}
.about__vector-left img {
  max-width: 100%;
  max-height: 100%;
}
.about__photo {
  height: 517px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.about__photo img {
  width: 100%;
}
.about__photo picture {
  max-width: 100%;
  max-height: 100%;
}
.about__title {
  position: relative;
  color: #0e0f1c;
  font-size: 48px;
  font-style: normal;
  font-weight: 700;
  line-height: 125%;
  letter-spacing: 2.4px;
  margin-bottom: 24px;
  z-index: 1;
}
.about__descr {
  max-width: 486px;
  min-height: 260px;
  color: #0e0f1c;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 125%;
  letter-spacing: 0.8px;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}
.about__read-more {
  display: flex;
  align-items: center;
}
.about__read-more:hover {
  -moz-column-gap: 13px;
  column-gap: 13px;
}
.about__link {
  position: relative;
  color: #eca73b;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 125%;
  letter-spacing: 0.8px;
  transition: all 6s;
}
.about__link::before {
  content: '';
  width: 140%;
  height: 100%;
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
}
.about__arrow {
  padding-left: 4px;
}

.about__photo img {
  display: block;
  border-radius: 12px;
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}
.about__vector-right {
  position: absolute;
  max-width: 352px;
  max-height: 394px;
  transform: translate(42%, -35%);
  z-index: -1;
}
.about__vector-right img {
  max-width: 100%;
  max-height: 100%;
}

.modal {
  position: fixed;
  width: 100%;
  height: 100%;
  background: url('../img/bg_patients.png') center/cover no-repeat;
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  transition: all 0.6s ease;
}
.modal__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-size: 25px;
  text-align: center;
  margin-bottom: 20px;
}
.modal__wrapper {
  display: flex;
  transition: all 0.6s ease;
}
.modal__container {
  padding: 40px;
  background: tranparent;
  transition: all 0.6s ease;
}
.modal__close {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 25px;
  background: transparent;
  outline: none;
  border: none;
  cursor: pointer;
}
.modal__close:hover {
  color: red;
}

@media (max-width: 428px) {
  .modal__wrapper {
    padding: 20px;
  }
  .modal__form input {
    width: 350px;
  }
  .modal__form textarea {
    width: 350px;
  }
}
.counter {
  min-height: 300px;
  background: #191d48;
  padding: 100px 0;
}
.counter__wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  -moz-column-gap: 30px;
  column-gap: 30px;
}
.counter__item {
  border: 1px solid #eca73b;
  border-radius: 12px;
  padding: 20px 40px;
  min-width: 322px;
  max-height: 195px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: 4px 4px 36px 0px rgba(0, 0, 0, 0.25);
}
.counter .counter__number {
  color: white;
  font-size: 64px;
  padding-bottom: 30px;
  font-style: italic;
}
.counter .counter__title {
  color: white;
  font-size: 19px;
  font-weight: 400;
}

.patients {
  min-height: 781px;
  position: relative;
  padding: 120px 0 127px 0;
  background: url('../img/bg_patients.png') center/cover no-repeat;
}
.patients::before {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.8);
}
.patients__title {
  text-align: center;
  font-size: 48px;
  font-weight: 500;
  line-height: 125%;
  letter-spacing: 2.4px;
  color: #f3f2f8;
  margin-bottom: 64px;
}
.patients__wrapper {
  display: grid;
  grid-auto-columns: minmax(350px, 1fr);
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  text-align: center;
  justify-items: center;
  row-gap: 67px;
  margin: 0 auto;
}
.patients__item {
  max-width: 299px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.patients__inner-icon {
  margin-bottom: 40px;
}
.patients__descr {
  color: white;
  text-wrap: balance;
  font-size: 24px;
  font-weight: 400;
  line-height: 125%;
  letter-spacing: 1.2px;
}

/* SErvice Start  */

.service {
  padding: 40px 0 0 0;
  background-color: #f3f2f8;
}
.service__link {
  width: 100%;
  transition: all 0.2s;
}

.service__inner {
  transition: all 0.3s;
}

/* Стили для наведения мыши и касания */
.service__inner-1:hover,
.service__inner-1.hover {
  background: url('../img/service/blefaro-bg.png') top / cover no-repeat;
}
.service__inner-2:hover,
.service__inner-2.hover {
  background: url('../img/service/service-2.webp') center / cover no-repeat;
}
.service__inner-3:hover,
.service__inner-3.hover {
  background: url('../img/service/scron-lift-bg.jpg') center / cover no-repeat;
}
.service__inner-4:hover,
.service__inner-4.hover {
  background: url('../img/service/ryno-bg.jpg') center / cover no-repeat;
}
.service__inner-5:hover,
.service__inner-5.hover {
  background: url('../img/service/heylo-bg.jpg') center / cover no-repeat;
}
.service__inner-6:hover,
.service__inner-6.hover {
  background: url('../img/service/oto-bg.jpg') center / cover no-repeat;
}
.service__inner-7:hover,
.service__inner-7.hover {
  background: url('../img/service/abdomino-bg.png') center / cover no-repeat;
}
.service__inner-8:hover,
.service__inner-8.hover {
  background: url('../img/service/lipo-bg.png') center / cover no-repeat;
}
.service__inner-9:hover,
.service__inner-9.hover {
  background: url('../img/service/scron-lift-bg.jpg') center / cover no-repeat;
}
.service__inner-10:hover,
.service__inner-10.hover {
  background: url('../img/service/service-10.webp') center / cover no-repeat;
}

.service__link:hover .service__item-title,
.service__link:hover .service__item-descr {
  color: #f3f2f8;
}
.service__title {
  color: #eca73b;
  font-size: 48px;
  font-weight: 500;
  line-height: 125%;
  letter-spacing: 2.4px;
  margin-bottom: 35px;
}

.service__item {
  min-height: 213px;
  padding: 40px 0 72px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #eca73b;
  cursor: pointer;
}
.border-none {
  border-bottom: none;
}
.service__item-num {
  padding-top: 2px;
  color: #eca73b;
  font-size: 16px;
  font-weight: 400;
  line-height: 125%;
  letter-spacing: 0.8px;
}
.service__item-title {
  padding: 0 16px;
  font-size: 24px;
  color: #0e0f1c;
  font-weight: 500;
  line-height: 125%;
  letter-spacing: 1.2px;
  z-index: 3;
  min-width: 257px;
}
.service__item-descr {
  text-wrap: balance;
  max-width: 520px;
  color: #0e0f1c;
  font-size: 16px;
  font-weight: 400;
  line-height: 125%;
  letter-spacing: 0.8px;
}
.service__item-descr p {
  width: 100%;
  height: 100%;
}
/* SErvice the end   */

.rules {
  background: url('../img/bg_rules.png') center/cover no-repeat;
}
.rules__title {
  color: #eca73b;
  text-align: center;
  font-size: 48px;
  font-weight: 700;
  line-height: 125%;
  letter-spacing: 2.4px;
  padding: 128px 0 72px 0;
}
.rules__text {
  color: #f3f2f8;
  font-size: 24px;
  font-weight: 400;
  line-height: 125%;
  letter-spacing: 1.2px;
  max-width: 909px;
  margin: 0 auto;
  padding-bottom: 72px;
  text-align: center;
}
.rules__wrapper {
  max-width: 100%;
  display: flex;
  -webkit-column-gap: 200px;
  -moz-column-gap: 200px;
  column-gap: 200px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}
.rules__item {
  display: flex;
  flex-direction: column;
  max-width: 484px;
  border-bottom: 1px solid #f3f2f8;
  padding-bottom: 32px;
  margin-bottom: 32px;
}
.rules__num {
  color: #eca73b;
  font-size: 16px;
  font-weight: 400;
  line-height: 125%;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}
.rules__descr {
  color: #f3f2f8;
  font-size: 16px;
  font-weight: 400;
  line-height: 125%;
  letter-spacing: 0.8px;
}
.rules__bottom-sub {
  color: #eca73b;
  text-align: center;
  font-family: 'Bad Script';
  font-size: 24px;
  font-weight: 400;
  line-height: 125%;
  letter-spacing: 1.2px;
  padding-bottom: 56px;
}
.rules__wrapper578px {
  display: none;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}
.rules__item-578 {
  padding: 24px 24px 72px 24px;
  border-radius: 12px;
  background: rgba(243, 242, 248, 0.1);
  -webkit-backdrop-filter: blur(18px);
  -moz-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  font-size: 16px;
  line-height: 125%;
  letter-spacing: 0.8px;
  font-weight: 400;
  margin: 0 20px;
}
.rules__number-578 {
  color: #eca73b;
  padding-bottom: 32px;
}
.rules__descr-578 {
  color: #f3f2f8;
}

.consultation {
  background: url('../img/bg_consultation_compressed.webp') center/cover
    no-repeat;
  padding: 127px 0 127px 0;
}
.consultation__wrapper {
  display: flex;
}
.consultation__container-form {
  max-width: 50%;
  background: #191d48;
  border-radius: 12px 0 0 12px;
  display: flex;
  flex-direction: column;
  padding: 99px 100px;
}
.consultation__text578 {
  display: none;
}
.consultation__form {
  display: flex;
  flex-direction: column;
  row-gap: 30px;
}
.consultation__form input {
  color: rgba(243, 242, 248, 0.5);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  background: transparent;
  border: none;
  padding: 10px;
  border-bottom: 1px solid #f3f2f8;
  padding-bottom: 4px;
}
.consultation__form input::placeholder,
.consultation__textarea::placeholder {
  color: #eca73b;
}
.consultation__textarea {
  padding: 12px 12px 12px 12px;
  color: rgba(243, 242, 248, 0.5);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  background: transparent;
  resize: none;
  border-radius: 12px;
  border: 1px solid #f3f2f8;
  outline: none;
  margin-bottom: 40px;
}
.consultation__btn {
  padding: 12px 40px;
  border-radius: 12px;
  border: 1px solid #eca73b;
  display: block;
  background: transparent;
  color: #eca73b;
  text-align: center;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 125%;
  letter-spacing: 0.8px;
  cursor: pointer;
}
.consultation__btn:hover {
  color: white;
  border: 1px solid white;
  box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.5);
}
.consultation-image {
  max-width: 50%;
  background: url('../img/consultation2.webp') center/cover no-repeat;
  border-radius: 0 12px 12px 0;
  padding: 28px 66px 54px 126px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.consultation-image img {
  max-width: 100%;
  max-height: 100%;
}
.consultation__text-top {
  color: #f3f2f8;
  font-size: 48px;
  font-weight: 500;
  line-height: 125%;
  letter-spacing: 2.4px;
}
.consultation__text-bottom {
  color: #eca73b;
  font-family: 'Bad Script';
  font-size: 32px;
  font-style: normal;
  font-weight: 400;
  line-height: 125%;
  letter-spacing: 1.6px;
  align-self: flex-end;
}
/* .contacts  start  */
.contacts {
  padding: 40px 0;
  min-height: 600px;
  background: #0e0f1c;
}
.contacts__title {
  color: #eca73b;
  font-size: 48px;
  font-weight: 500;
  line-height: 125%;
  letter-spacing: 2.4px;
  margin-bottom: 50px;
}
.contacts__flex-box {
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.contacts__social {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.contacts__block {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}
.contacts__number,
.contacts__link-email {
  color: #fff;
  font-size: 20px;
  margin: 10px 0;
}
.contacts__map {
  text-align: center;
}

/* .contacts  the end  */

.footer {
  padding: 44px 0;
  /* min-height: 123px; */
  background: #191d48;
}
.footer__wrapper {
  display: flex;
  align-items: flex-end;
}
.footer__logo {
  width: 35%;
  /* padding-top: 24px; */
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  row-gap: 24px;
  font-size: 16px;
  font-weight: 400;
  line-height: 125%;
  letter-spacing: 0.8px;
}
.footer__phone-link {
  color: #f3f2f8;
}
.footer__link-email {
  color: #f3f2f8;
}
.footer__social {
  display: flex;
  -moz-column-gap: 26px;
  column-gap: 26px;
}
.footer__social-icon {
  color: #f3f2f8;
}
.footer__social-icon:hover {
  color: #eca73b;
}
.footer__links {
  max-height: 123px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 40px;
  margin-left: 64px;
}
.footer__links-link {
  color: #f3f2f8;
  font-size: 16px;
  font-weight: 400;
  line-height: 125%;
  letter-spacing: 0.8px;
}
.footer__links-link:hover {
  color: #eca73b;
}
.copy {
  background: #0e0f1c;
  font-size: 20px;
  color: #fff;
  text-align: center;
  padding: 10px;
}
.copy__text {
  font-weight: 200;
}
@media (max-width: 2000px) {
  .header__links {
    width: 401px;
    justify-content: space-around;
  }
  .header__button {
    margin-left: 131px;
  }
  .header__logo {
    margin-right: 170px;
  }
}
@media (max-width: 1400px) {
  .header__ellipse {
    position: absolute;
    left: 17%;
    width: 560px;
    height: 560px;
    border: 1px solid #fff;
    border-radius: 50%;
  }
}
@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
  }
  .header__nav {
    justify-content: space-around;
  }
  .header__nav-scrolled {
    justify-content: space-between;
  }
  .header__logo .logo {
    margin-right: 119px;
  }
  .header__text {
    height: 500px;
  }
  .service__item-num {
    padding-top: 4px;
  }
  .rules__wrapper {
    -moz-column-gap: 106px;
    column-gap: 106px;
  }
  .rules__item {
    max-width: 447px;
  }
  .consultation__text-top {
    font-size: 35px;
  }
  .consultation__text-bottom {
    font-size: 27px;
  }

  .header__nav-wrapper {
    padding: 20px 20px;
  }
}

@media (max-width: 992px) {
  .header__nav-wrapper {
    max-width: 991px;
  }
  .header {
    position: relative;
    padding: 0;
  }
  .header__icons {
    bottom: 20px;
  }
  .about__vector-right {
    display: none;
  }
  .container {
    padding: 0 20px;
  }
  .header__nav {
    justify-content: space-around;
  }
  .header__ellipse {
    display: none;
  }
  .header__logo {
    margin-right: 67px;
  }
  .about__title {
    font-size: 40px;
  }
  .counter__item {
    padding: 20px 20px;
    min-width: 284px;
    max-height: 194px;
  }

  .service__descr {
    max-width: 450px;
  }
  .rules__item {
    max-width: 410px;
  }
  .rules__wrapper {
    -moz-column-gap: 129px;
    column-gap: 129px;
  }
  .consultation__container-form {
    padding: 50px 55px;
    /* padding: 30px; */
  }
  .contacts__wrapper {
    -moz-column-gap: 50px;
    column-gap: 50px;
  }
  .contacts__map iframe {
    position: relative;
    max-width: 400px;
    max-height: 400px;
  }
  .contacts {
    min-height: 554px;
  }
}
@media (max-width: 935px) {
  .service__item-arrow {
    display: none;
  }
  .header__button {
    margin-left: 81px;
  }
}
@media (max-width: 870px) {
  .service__item-title {
    font-size: 22px;
  }
  .header__button {
    margin-left: 30px;
  }
  .header__text {
    height: 476px;
  }
  /* test  */
  .header__nav-wrapper {
    padding: 20px 11px;
  }
  .counter__wrapper {
    column-gap: 4px;
  }
  /* test  */
}

@media (max-width: 867px) {
  .service__item-title {
    font-size: 20px;
  }
}

@media (max-width: 810px) {
  .service__item-num {
    padding-top: 0;
  }
  .header__button button {
    display: none;
  }
  .header__text {
    height: 450px;
  }
  .header__wrapper {
    padding: 112px 0;
  }
  .counter .counter__number {
    font-size: 40px;
  }
  .counter .counter__title {
    font-size: 16px;
  }
  .counter__item {
    min-width: 244px;
  }
  .counter__wrapper {
    column-gap: 10px;
  }
  .about {
    min-height: 750px;
    padding: 80px 0 0 0;
  }
}
@media (max-width: 768px) {
  .header__nav-wrapper {
    margin: 0;
  }
  .header__nav {
    justify-content: space-between;
    z-index: 9;
  }
  .header__text {
    height: 409px;
  }
  .about__title {
    font-size: 35px;
  }
  .about__photo img {
    border-radius: 0;
  }
  .counter {
    padding: 40px 0;
  }
  /* .header__button {
    display: none;
    } */
  .header__hamburger {
    right: 38px;
    display: block;
  }
  .header__button {
    margin-right: 30px;
  }
  .header__logo {
    padding-left: 20px;
  }
  .header__hamburger.active .header__hamburger_span:nth-child(2) {
    opacity: 0;
  }
  .header__hamburger.active .header__hamburger_span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .header__hamburger.active .header__hamburger_span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    margin-top: -3px;
  }
  .header__submenu {
    transition: all 3s ease-in-out;
  }
  .header__link > a::after {
    width: 25px;
    height: 25px;
    content: ' ';
    position: relative;
    top: 20px;
    left: 20px;
    background-image: url('../img/arrow-down.svg');
    background-position: center;
    background-repeat: no-repeat;
  }

  .header__links {
    position: fixed;
    height: 100vh;
    border-right: 1px solid black;
    overflow-y: auto;
    width: 80%;
    left: -100%;
    top: 0;
    bottom: 0;
    flex-direction: column;
    background: rgb(2, 0, 36);
    background: #191d48;
    text-align: center;
    justify-content: center;
    row-gap: 36px;
    transition: all 0.9s;
    z-index: 9;
  }
  .header__links-active {
    left: 0%;
  }

  /* тест  */
  /* Звичайний стан підменю - приховане */
  .header__submenu {
    display: none;
    transition: all 0.3s ease;
  }

  /* Активне підменю */
  .header__link.has-submenu.active-link .header__submenu,
  .header__submenu.submenu-open {
    display: block;
  }

  /* Стрілка у звичайному стані */
  .header__link.has-submenu > a {
    position: relative;
  }

  .header__link.has-submenu > a::after {
    content: '';
    display: block;
    position: absolute;
    top: 10px;
    left: 108%;
    width: 25px;
    height: 25px;
    background-image: url('../img/arrow-down.svg');
    background-repeat: no-repeat;
    transform: rotate(0deg); /* Початкове положення */
    transition: transform 0.3s ease;
  }

  /* Поворот стрілки в активному стані */
  .header__link.has-submenu.active-link > a::after {
    transform: rotate(180deg);
  }

  /* тест конец */
  .header__link a {
    font-size: 30px;
    height: 40px;
  }
  .header__icons {
    display: none;
  }

  .about__content {
    max-width: 400px;
  }
  .about__title {
    font-size: 34px;
  }
  .about__descr {
    max-width: 356px;
  }
  .counter__item {
    min-width: 246px;
    max-height: 192px;
  }
  .counter .counter__title {
    font-size: 17px;
  }
  .counter__wrapper {
    flex-wrap: wrap;
    -moz-column-gap: 30px;
    column-gap: 30px;
    row-gap: 30px;
  }
  .service {
    padding-bottom: 10px;
  }

  /* .service__arrow {
    display: none;
  } */
  .service__item-num {
    padding-top: 2px;
  }
  .service__title {
    text-align: center;
  }
  .rules__title {
    font-size: 40px;
  }
  .rules__text {
    font-size: 20px;
  }
  .rules__item {
    max-width: 333px;
  }
  .rules__wrapper {
    -moz-column-gap: 62px;
    column-gap: 62px;
  }
  .rules__descr {
    font-size: 15px;
  }
  .consultation-image {
    padding: 28px 31px 54px 28px;
  }
  .consultation__text-top {
    font-size: 30px;
  }
  .container .consultation {
    padding: 0;
  }
  .contacts__map iframe {
    max-width: 300px;
    max-height: 365px;
  }
  .footer__links {
    margin-left: 11px;
  }
}
@media (max-width: 668px) {
  .service__item {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .service__item-title {
    margin-bottom: 20px;
  }
  .service__item-descr {
    width: 100%;
    padding: 0 20px;
    text-wrap: pretty;
  }
  .contacts__flex-box {
    flex-wrap: wrap;
  }
  .header__text {
    height: 355px;
  }
  .header__title {
    font-size: 45px;
  }
  .about__title {
    font-size: 25px;
  }
}
@media (max-width: 578px) {
  .header__button {
    display: none;
  }
  .header__content-maxscreen578 {
    display: flex;
    flex-direction: column;
    justify-content:center;
    text-align: center;
    row-gap: 54px;
    padding-top: 160px;
  }

  .header__slider img {
    height: 100vh;
    object-fit: cover;
  }
  .about__vector-left {
    display: none;
  }
  .header__text {
    display: none;
  }

  .header__text-maxscreen578 {
    display: block;
    margin: 10px 0;
    text-shadow: 1px 1px 5px black;
    color: white;
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    line-height: 125%;
    letter-spacing: 1px;
    margin-bottom: 16px;
  }
  .header__button-consultation {
    display: block;
    margin: 0 auto;
    background: #eca73b;
    padding: 12px 40px;
    border-radius: 12px;
    border: 1px solid #eca73b;
    line-height: 125%;
    letter-spacing: 0.8px;
    color: #f3f2f8;
    font-weight: 400;
    font-size: 16px;
    cursor: pointer;
  }
  .header__button-consultation:hover {
    background: #eca73b;
    border: 1px solid #eca73b;
  }
  /* .about START  */
  .about {
    padding: 68px 0 44px 0;
    text-align: center;
    margin: 0 auto;
  }

  .about__wrapper {
    position: relative;
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    row-gap: 20px;
    margin: 0 auto;
  }
  .about__content {
    position: relative;
    left: -10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .about__descr {
    max-width: 425px;
  }

  .about__title {
    font-size: 30px;
    /* max-width: 461px; */
  }

  .patients {
    background: url('../img/patients-photo-vertical.webp') right / cover
      no-repeat;
  }
  .patients__descr,
  .patients__title {
    color: black;
    text-shadow: 1px 1px 5px #f3f2f8;
  }

  .patients__title {
    font-size: 32px;
  }
  .service {
    padding-bottom: 1px;
  }
  .service__title {
    font-size: 32px;
  }

  .rules__wrapper {
    display: none;
  }

  .rules__wrapper578px {
    display: block;
  }
  .rules__wrapper578px .slick-track {
    overflow: hidden;
  }
  /* cлик точки  start  */
  .rules__wrapper578px .slick-dots {
    position: relative;
    bottom: -25px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .rules__wrapper578px .slick-dots li {
    list-style: none;
    margin: 0 5px;
  }
  .rules__wrapper578px .slick-dots li.slick-active button {
    background-color: transparent;
    border: 1px solid orange;
  }
  .rules__wrapper578px .slick-dots li button {
    font-size: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ffff;
  }

  /* cлик точки  конец  */
  .consultation__wrapper {
    display: block;
  }
  .consultation__text578 {
    display: block;
    color: #f3f2f8;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 125%;
    text-align: center;
    letter-spacing: 1.2px;
    padding-bottom: 40px;
  }
  .consultation-image {
    display: none;
  }
  .consultation__container-form {
    border-radius: 12px;
    max-width: 100%;
    background: url('../img/consultation2.webp') center/cover no-repeat;
    padding: 50px 60px;
  }
  .contacts__wrapper {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .contacts__title {
    font-size: 40px;
    text-align: center;
  }
  .contacts__number {
    margin-bottom: 20px;
  }
  .contacts__social {
    display: block;
  }
  .contacts__social_link + .contacts__social_link {
    margin-left: 20px;
  }
  .contacts__map {
    display: block;
    width: 100%;
  }
  .contacts__map iframe {
    max-width: 100%;
    max-height: 365px;
  }
  .footer__wrapper {
    display: block;
    text-align: center;
    margin: 0 auto;
  }

  .footer__logo {
    width: 100%;
    margin-bottom: 32px;
  }

  .footer__links {
    display: block;
    min-height: 166px;
  }
  .footer__links-link {
    margin: 10px 0;
  }
}
@media (max-width: 460px) {
  .about__content {
    left: -3%;
  }
  .rules__title {
    font-size: 34px;
  }
  .header__text-maxscreen578 {
    letter-spacing: 2px;
  }
}

@media (max-width: 428px) {
  .header__title {
    font-size: 32px;
    letter-spacing: 1.6px;
  }
  .header__descr-maxscreen578 {
    font-size: 20px;
    letter-spacing: 1px;
    line-height: 125%;
    font-weight: 400;
  }
  .header__link.has-submenu > a::after {
    width: 23px;
    height: 20px;
  }
  .patients__title {
    font-size: 27px;
    font-weight: 500;
    line-height: 125%;
    letter-spacing: 1px;
  }
  .patients__descr {
    font-size: 23px;
  }
  .service {
    padding: 40px 0 20px 0;
  }
  .service__title {
    font-size: 27px;
  }

  .service__item {
    background-size: contain;
  }

  .service__descr {
    font-size: 15px;
    text-wrap: pretty;
  }

  .rules__title {
    font-size: 26px;
  }
  .rules__text {
    font-size: 17px;
  }

  .consultation__container-form {
    padding: 50px 40px;
  }
  .consultation__text578 {
    font-size: 20px;
  }
  .contacts__title {
    font-size: 27px;
  }
  .about__descr {
    max-width: 366px;
  }
  .about__content {
    left: 0;
  }
  .rules__title {
    font-size: 30px;
  }
  .container.consultation__wrapper {
    padding: 0;
  }
}

@media (max-width: 419px) {
  .rules__item {
    max-width: 300px;
  }
}

@media (max-width: 375px) {
  .header__logo {
    padding-left: 0;
  }
  .header__title {
    font-size: 31px;
    letter-spacing: 1.6px;
  }
  .header__hamburger {
    right: 20px;
  }
  .header__descr-maxscreen578 {
    font-size: 20px;
  }
  .header__link a {
    font-size: 24px;
  }
  .service__item-descr {
    padding: 0;
  }
  .rules__descr-578 {
    font-size: 15px;
  }
  .rules__title {
    font-size: 25px;
  }
  .consultation__text578 {
    font-size: 19px;
  }
}
@media (max-width: 321px) {
  .patients__wrapper {
    grid-template-columns: repeat(auto-fit, minmax(287px, 1fr));
  }
  .service__item-title {
    padding-left: 12px;
  }
}
