root, [data-bs-theme=light] {
  --bs-black-color: #154189;
  --bs-super-black-color: #154189;
  --bs-light-black-color: #1f5fc7;
  --bs-success-bg-subtle: #0dcaf0;
  --bs-dark-rgb: 24,74,155;
  --bs-footer-color: #275970;
  --bs-white-color: #FFF;
  --bs-white-color-rgb: 255,255,255;
  --bs-black-color-rgb: 21, 65, 137;
  --bs-super-black-color-rgb: 42,100,151;
  --bs-primary-rgb: 21, 65, 137;
  --bs-primary: #154189;
  --bs-primary-hover: #1a52ac;
  --bs-green-color: #63A088;
  --bs-green-color-rgb: 104,120,100;
  --bs-green-color-hover: #76ac96;
  --bs-green-color-hover-rgb: 114,131,109;
  --bs-super-green-color: #114124;
  --swiper-navigation-size-doctor: 18px;
  --bs-yellow-color: #fc0;
  --bs-link-color-rgb: 104,120,100;
}


root, [data-bs-theme=dark] {
  --bs-body-bg-rgb: 18,57,119;
}

.fit-cover {
  object-fit: cover;
}

html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

header {
  background: linear-gradient(100deg, #154189 34.98%, #154189 33.92%, #ffffff 35.05%);
  z-index: 2;
}

@media (max-width : 1024px) {
  header {
    background: linear-gradient(100deg, #154189 31.98%, #154189 30.92%, #ffffff 32.1%);
  }
}

@media (max-width : 800px) {
  header {
    background: linear-gradient(100deg, #154189 42.98%, #154189 41.92%, #ffffff 43.05%);
  }
}

@media (max-width : 576px) {
  header {
    background: linear-gradient(100deg, #154189 70.99%, #154189 71.91%, #ffffff 72.1%);
  }
}

header {
  flex: 0 0 auto;
  color: var(--bs-white-color);
  font-size: 1.20rem;
}

header .top-contacts {
  background-color: var(--bs-black-color );
}

header .top-contacts a, header .top-contacts a span {
  color: var(--bs-white-color);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "RUSSO ONE", sans-serif;
  font-style: italic;
}

.display-1 {
  font-size: calc(1.25rem + 4.5vw);
}

.nav-link {
  font-family: "RUSSO ONE", sans-serif;
  font-style: italic;
}

@media (max-width : 1024px) {
  .nav-link {
    color: #FFF;
  }
}

@media (max-width : 1024px) {
  .navbar-nav li a {
    color: white !important;
  }
}

.section-second-page {
  flex: 1 0 auto;
}

footer {
  flex: 0 0 auto;
}

body {
  font-family: "Roboto", sans-serif;
}

a {
  transition: 0.33s;
  color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
  text-decoration: none;
}

/* a:hover {
  color: rgba(var(--bs-green-color-hover-rgb), var(--bs-link-opacity, 1));
} */

@media (min-width : 450px) and (max-width : 767px) {
  h1 {
    font-size: 1.7rem;
  }
}

.phone-header {
  font-size: 1.1rem;
  color: var(--bs-black-color);
  text-decoration: none;
  opacity: 0.95;
  font-family: "RUSSO ONE", sans-serif;
  font-style: italic;
}

a.link-header {
  font-size: 1.1rem;
  color: var(--bs-black-color);
  text-decoration: none;
  opacity: 0.9;
  font-family: "Roboto", sans-serif;
  font-style: italic;
}

a.link-header:hover {
  text-decoration: underline;
  color: var(--bs-black-color);
  opacity: 1;
}

.phone-header:hover {
  opacity: 1;
  color: var(--bs-black-color);
}

.adress-header, .adress-header a {
  font-size: 0.9rem;
  color: rgba(var(--bs-black-color-rgb), 1);
}

@media (max-width : 768px) {
  .phone-header {
    font-size: 1.15rem;
  }
}

@media (max-width : 576px) {
  .phone-header {
    font-size: 1.05rem;
  }
}

.logo-bg {
  height: 70px;
  margin-top: 0.5rem;
  /*position: absolute;*/
}

@media (max-width : 1024px) {
  .logo-bg {
    margin-top: 0;
    height: 60px;
    /*position: relative;*/
  }
}

@media (max-width : 576px) {
  .logo-bg {
    margin-top: 0;
    height: 55px;
    /*position: relative;*/
  }
}

.navbar {
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2847, 111, 167, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  --bs-navbar-color: rgba(var(--bs-black-color-rgb), 0.75);
  --bs-navbar-hover-color: rgba(var(--bs-super-black-color-rgb), 0.99);
  --bs-navbar-nav-link-padding-x: 0.75rem;
  font-size: 1.10rem;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
  color: rgba(var(--bs-white-color-rgb), 1);
  font-family: "RUSSO ONE", sans-serif;
  font-style: italic;
}

.dropdown-menu {
  --bs-dropdown-inner-border-radius: 0;
  --bs-dropdown-link-color: var(--bs-body-color);
  --bs-dropdown-link-hover-color: var(--bs-body-color);
  --bs-dropdown-link-hover-bg: var(--bs-tertiary-bg);
  --bs-dropdown-link-active-color: #fff;
  --bs-dropdown-link-active-bg: var(--bs-turquoise-super-light);
  border-radius: var(--bs-dropdown-border-radius);
  border: none;
}

.dropdown-toggle::after {
  display: inline-block;
  width: .3em;
  height: .3em;
  margin: -.1em 0 0 .4em;
  vertical-align: middle;
  content: "";
  border: .3em solid;
  border-width: 0 .15em .15em 0;
  transform: rotateZ(45deg);
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);
  clear: both;
  font-weight: 400;
  color: var(--bs-turquoise-black);
  text-align: inherit;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  border-radius: var(--bs-dropdown-item-border-radius,0);
  font-family: "RUSSO ONE", sans-serif;
  font-style: italic;
  color: var(--bs-black-color);
  opacity: 0.9;
}

.dropdown-item:focus:hover {
  color: var(--bs-black-color);
  opacity: 1;
}

.dropdown-item:hover {
  color: var(--bs-black-color);
  opacity: 1;
}
@media (min-width : 1025px) {
.dropdown-item.active, .dropdown-item:active {
    color: var(--bs-super-black-color);
    text-decoration: none;
    background-color: var(--bs-dropdown-link-active-bg);
}
}

@media (min-width : 1200px) {
  .offcanvas {
    visibility: visible;
    position: relative;
    background: none;
    border: none;
    justify-content: end;
    color: #22494b;
  }
}

/* Выпадающее по наведению */

@media (min-width : 1200px) {
  .dropdown:hover > .dropdown-menu {
    display: block;
  }
}

@media (min-width : 1200px) {
  .dropdown > .dropdown-toggle:active {
    pointer-events: none;
  }
}

@media (max-width : 1200px) {
  .offcanvas {
    width: 310px !important;
    background-color: var(--bs-black-color);
  }
}

@media (max-width : 1200px) {
  .bg-navigation {
    background-color: var(--bs-turquoise-black);
  }
}

@media (max-width : 1200px) {
  .dropdown-menu {
    --bs-dropdown-bg: inherit;
    --bs-dropdown-border-color: inherit;
    --bs-dropdown-box-shadow: inherit;
  }
}

@media (max-width : 1200px) {
  .offcanvas-start-xl {
    top: 0;
    left: 0;
    border-right: 1px solid rgba(0, 0, 0, .2);
    transform: translateX(-100%);
  }
}

@media (max-width : 1200px) {
  .navbar-nav li a {
    /*color: white !important;*/
  }
}

#carousel-1 {
  height: 650px;
}

@media (max-width : 450px) {
  #carousel-1 {
    height: 500px;
  }
}

.btn.btn-primary {
  clip-path: polygon( 5% 0, 100% 0, 95% 100%, 0 100% );
}

.skew-rect {
  width: 480px;
  padding: 2rem 4rem;
  /*background: #3498db;*/
  /*color: #fff;*/
  /*clip-path: polygon( 11.5% 0, 100% 0, 88.5% 100%, 0 100% );*/
}

@media (max-width : 450px) {
  .skew-rect {
    width: 100%;
    padding: 1.5rem 3rem;
    /*background: #3498db;*/
    /*color: #fff;*/
    /*clip-path: polygon( 8% 0, 100% 0, 90% 100%, 0 100% );*/
  }
}

#carousel-2 {
  height: 600px;
}

@media (max-width : 450px) {
  #carousel-2 {
    height: 630px;
  }
}

#carousel-servise {
  height: 750px;
}

@media (max-width : 450px) {
  #carousel-servise {
    height: 450px;
  }
}

/* ************* */

.card img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: all 0.25s;
}

.img-wrapper {
  width: 100%;
  height: 100%;
  height: 270px;
  overflow: hidden;
  border-radius: var(--bs-card-border-radius) var(--bs-card-border-radius) 0 0;
}

.servises .card img {
  object-fit: contain;
  width: 100%;
  height: 100%;
  transition: all 0.25s;
}

.servises .img-wrapper {
  height: 300px;
  width: auto;
}

.card:hover img {
  transform: scale(1.05);
  position: relative;
}

.card:hover a.stretched-link {
  background-image: none;
  color: #FFF;
}

.card:hover {
  box-shadow: 3px 3px 20px #999999;
}

.wrapper-catd-button {
  padding: 1rem;
  background: linear-gradient(100deg, #154189 39.98%, #154189 38.92%, #ffffff 40.05%);
}


@media (max-width : 1200px) {
  .wrapper-catd-button {
    padding: 1rem;
    background: linear-gradient(100deg, #154189 51%, #154189 41.92%, #ffffff 37.05%);
  }
}

@media (max-width : 800px) {
  .wrapper-catd-button {
    padding: 1rem;
    background: linear-gradient(100deg, #154189 42.98%, #154189 41.92%, #ffffff 37.05%);
  }
}


@media (max-width : 450px) {
  .wrapper-catd-button {
    padding: 1rem;
    background: linear-gradient(100deg, #154189 42.98%, #154189 41.92%, #ffffff 37.05%);
  }
}

/* ***************** */

.smaller {
  font-size: 0.8rem;
}

.background-fone {
  background-color: rgba(31,74,111, 0.5);
}

.card-img-overlay {
  background-color: rgba(40,95,143, 0.85);
}

.btn-primary {
  border-radius: 0;
  padding: 0.75rem 2.5rem;
  line-height: 1;
  color: #FFF;
  border: 1px solid var(--bs-primary);
  margin: 10px;
  text-decoration: none;
  position: relative;
  text-align: center;
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: var(--bs-primary-hover);
  --bs-btn-hover-border-color: var(--bs-primary-hover);
  --bs-btn-focus-shadow-rgb: 49,132,253;
  --bs-btn-focus-shadow-rgba: 47,100,103, 0.5;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bs-primary-hover);
  --bs-btn-active-border-color: var(--bs-primary-hover);
  text-decoration: none;
  font-weight: 600;
}

.btn-primary:hover {
  text-decoration: none;
}

.btn-secondary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #1f5fc7;
  --bs-btn-border-color: #1f5fc7;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #2168d9;
  --bs-btn-hover-border-color: #2168d9;
  --bs-btn-focus-shadow-rgb: 130, 138, 145;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #2168d9;
  --bs-btn-active-border-color: #2168d9;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #1f5fc7;
  --bs-btn-disabled-border-color: #1f5fc7;
}

.btn.btn-secondary {
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
}

.navbar .megamenu {
  padding: 1rem;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.top-photo {
  filter: grayscale(50%);
  border-radius: .25rem .25rem 0 0;
}

.top-photo:hover {
  filter: grayscale(0%);
}

.bs-icon.bs-icon-primary {
  color: var(--bs-white);
  background: var(--bs-light-black-color) !important;
}

.btn-outline-primary {
  --bs-btn-color: #FFF;
  --bs-btn-border-color: #FFF;
  --bs-btn-hover-color: #2f6fa7;
  --bs-btn-hover-bg: #FFF;
  --bs-btn-hover-border-color: #FFF;
  --bs-btn-focus-shadow-rgb: 13, 110, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0d6efd;
  --bs-btn-active-border-color: #0d6efd;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #0d6efd;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #0d6efd;
  --bs-gradient: none;
}

.service-item {
  padding: 25px 15px 15px;
  margin: 0 -15px;
  display: flex;
  border-bottom: 1px solid #e8e8e8;
}

.service-item__divider:first-child {
  flex: 1 0 60%;
}

.service-item__label, .service-item__price, .service-item__info, .service-item__description {
  font-size: 1rem;
  line-height: 19px;
}

.service-item__label {
  font-weight: 400;
}

.service-item__description {
  margin: 0;
  color: gray;
}

.service-item.js-service-item:hover {
  background-color: #eff5fb;
}

.bage-item {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  transition: transform 0.5s ease;
  z-index:1;
}

.photo-grid .grid-item:hover .item-content .bage-item {
transform: scale(1.05);
z-index:10;
}

