:root {
  --accent: #0969da;
  --bs-success: #0b7d35;
  --bs-success-rgb: 11, 125, 53;

  /* --accent: #198b43; */

  /* --accent: #0b7d35; */
  --black: #212529;
  --grey: #4d4d4d;
  --light-blue: #f1f4f8;
  --white: #ffffff;
  --light-gray: #f5f6f7;

  /* --- */
  --rounded-lg: 50%;
  --rounded-md: 1.5rem;
  --rounded-sm: 0.8rem;
}

/* ========================================
   Общие стили
   ======================================== */

.btn-success {
  background-color: var(--bs-success);
}

a {
  color: var(--bs-success);
  text-decoration: underline;
}

.txt-black {
  color: var(--black);
}

.txt-gray {
  color: var(--grey);
}

.txt-accent {
  color: var(--bs-success);
}

.bg__light-blue {
  background-color: var(--light-blue);
}

.bg__light-gray {
  background-color: var(--light-gray);
}

.py-large {
  padding-top: clamp(2rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

/* ========================================
   Шапка сайта
   ======================================== */

/* a {
  position: relative;
}

a:hover::before {
  width: 100%;
  right: auto;
  left: 0;
}

a::before {
  position: absolute;
  width: 0;
  height: 2px;
  right: 0;
  bottom: -4px;
  left: auto;
  background-color: var(--black);
  filter: invert(0);
  border-radius: 2px;
  opacity: 0.5;
  transition: width 0.4s;
  content: "";
} */

.header__nav {
  position: fixed;
  top: 1.6rem;
  right: 1.6rem;
  left: 1.6rem;
  border-radius: var(--rounded-sm);
  box-shadow: 0 4px 48px #21252920;
  transition: all 0.3s ease;
  z-index: 1030;
}

.header__nav-link,
.dropdown-item {
  color: var(--grey);
  text-decoration: none;
}

.header__nav-link:hover {
  color: var(--black);
}

.header > .container-fluid {
  padding-right: 0;
  padding-left: 0;
}

.header__hero-images {
  position: relative;
  min-height: 740px;
  margin: 1rem;
  border-radius: var(--rounded-md);
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}

.hero-content {
  margin-top: 7rem;
}

.hero-content p {
  max-width: 580px;
}

.header__hero-button {
  padding-bottom: 0.62rem;
}

.header__nav-contact {
  color: var(--grey);
  transition: color 0.4s ease;
}

.header__nav-contact:hover {
  color: var(--black);
}

.navbar-toggler:focus {
  box-shadow: none;
}

.dropdown-item {
  padding: 0.6rem;
  border-radius: var(--rounded-sm);
}

.header__nav-link.dropdown-toggle::after {
  display: none;
}

.dropdown-arrow {
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-left: 2px;
  transition: transform 0.4s ease;
  vertical-align: middle;
  flex-shrink: 0;
  stroke: var(--grey);
  fill: none;
}

.header__nav-link:hover .dropdown-arrow {
  stroke: var(--black);
}

.dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

/* ========================================
   Анимация шапка
   ======================================== */
.header__nav--scrolled {
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: 0 2px 24px #21252915;
  transition: all 0.3s ease;
  border-bottom: 3px solid var(--bs-success);
}

/* ========================================
   Анимация текста шапка сайта
   ======================================== */

.hero-content > * {
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  animation: hero 0.5s ease forwards;
}

.hero-content > *:nth-child(1) {
  animation-delay: 0.2s;
}

.hero-content > *:nth-child(2) {
  animation-delay: 0.4s;
}

.hero-content > *:nth-child(3) {
  animation-delay: 0.7s;
}

@keyframes hero {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ========================================
  Блок акции слайдер
  ======================================== */

.promo__scroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 0;
  scroll-padding-left: 16px;
}

.promo__scroll::-webkit-scrollbar {
  display: none;
}

.promo__track {
  width: fit-content;
  display: flex;
  gap: 1rem;
  margin: 0 auto;
  
}

.promo__slide {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1rem;
  padding: 12px;
  background-color: var(--light-blue);
  border-radius: 48px;
  cursor: pointer;
  scroll-snap-align: start;
  user-select: none;
}

.promo__item {
  min-width: 0;
}

.promo__item-subtitle {
  color: var(--grey);
}

.promo__item-title {
  transition: color 0.4s ease;
}

.promo__arrow {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  border-radius: 50%;
  flex-shrink: 0;
}

.promo__arrow svg {
  width: 24px;
  height: 24px;
  display: block;
  color: var(--grey);
  transition:
    transform 0.6s ease,
    color 0.4s ease;
}

.promo__slide:hover .promo__item-title {
  color: var(--bs-success);
}

.promo__slide:hover .promo__arrow svg {
  color: var(--bs-success);
  transform: rotate(45deg);
}

/* ========================================
   Блок бронирование номеров
   ======================================== */

.card__pricing {
  padding: 0.3rem 0.4rem;
  border-radius: 24px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card__pricing:hover {
  background-color: white;
  box-shadow: 0 4px 32px #00000020;
  transform: translateY(-2px);
}

.card-img-top {
  display: block;
  transition: transform 0.4s ease;
}

.card__pricing:hover .card-img-top {
  transform: scale(1.02);
}

.card__pricing .card-text {
  min-height: 44px;
  color: var(--grey);
}

.card__pricing .card-title {
  color: var(--black);
}

#section-pricing {
  scroll-margin-top: 72px;
}

/* ========================================
   Блок путевка
   ======================================== */

@media (prefers-reduced-motion: no-preference) {
  .card__scroll {
    overflow: hidden;
    scale: 0;
    animation: fade linear forwards;
    animation-timeline: view();
    animation-range: -400px 64vh;
  }

  @keyframes fade {
    0% {
      border-radius: 140px;
      transform: perspective(1000px) rotateY(-45deg) rotateX(20deg);
    }

    100% {
      border-radius: 0;
      transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
      scale: 1;
    }
  }
}

/* ========================================
   Блок награды
   ======================================== */

.awards__wrapper h2 {
  max-width: min(640px, 100%);
}

.awards__wrapper p {
  max-width: min(840px, 100%);
}

.awards__images {
  position: relative;
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
}

.awards__face {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  backface-visibility: hidden;
}

.awards__back {
  transform: rotateY(180deg);
}

@media (prefers-reduced-motion: no-preference) {
  .awards__images {
    animation: medal-rotate linear;
    animation-timeline: view();
    animation-range: -200px 60vh;
  }

  @keyframes medal-rotate {
    0% {
      transform: perspective(800px) rotateY(-360deg);
    }

    100% {
      transform: perspective(800px) rotateY(0deg);
    }
  }
}

/* ========================================
   Блок информация о санатории
   ======================================== */

.info__card p {
  margin-bottom: 0;
}

.info__card .card-body {
  padding-bottom: 0;
}

/* инфо */

@media (prefers-reduced-motion: no-preference) {
  .info__card {
    opacity: 1;
    scale: 0.3;
    animation: fade-in linear forwards;
    animation-timeline: view();
    animation-range-start: -400px;
    animation-range-end: 50vh;
  }

  @keyframes fade-in {
    to {
      scale: 1;
      opacity: 1;
    }
  }
}

/* footer */
.footer__row {
  background-color: #006921;
}

.footer__list a,
.footer__social-icon {
  transition: opacity 0.2s ease;
}

.footer__list a:hover,
.footer__social-icon:hover {
  opacity: 0.7;
}

/* ========================================
   Media
   ======================================== */

/* @media (max-width: 1440px) {
} */

@media (max-width: 1200px) {
  .header__hero-images {
    min-height: 540px;
    margin: 0;
    border-radius: 0;
  }

  .header__nav {
    top: 0;
    right: 0;
    left: 0;
    border-radius: 0;
  }

  .hero-bg-img {
    object-position: 76% 50%;
  }
}

@media (max-width: 992px) {
  .dropdown-menu {
    padding: 0 !important;
    box-shadow: none !important;
  }

  .nav-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--light-blue);
    border-radius: 0 !important;
  }

  .hero-bg-img {
    object-position: 56% 50%;
  }

  .travel-voucher {
    object-position: 60% 50%;
  }
}

@media (max-width: 768px) {
  .header__hero-images {
    min-height: 90vh;
    margin: 0;
    border-radius: 0;
  }

  .hero-content {
    position: relative;
    margin-top: clamp(2rem, 40vh, 50rem);
    text-align: center;
    justify-items: center;
  }

  .hero-bg-img {
    object-position: 40% 50%;
  }

  .promo__item-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 224px;
  }

  .card__pricing {
    box-shadow: 0 4px 32px #00000020;
  }

  .card:hover:hover(none) {
    box-shadow: 0 4px 32px #00000020;
  }

  .travel-voucher {
    background-attachment: fixed;
    object-position: 0% 50%;
  }

  .travel-bg::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    inset: 0;
    background-color: var(--light-blue);
  }

  .footer__social {
    align-items: flex-start !important;
  }

  .footer__metrik {
    justify-content: flex-start !important;
  }
	
  .footer__row {
    border-radius: 0 !important;
  }
}

@media (max-width: 576px) {
  .card__pricing {
    padding: 0.4rem;
    border: 0;
  }

.promo {
    position: relative;
  }

  .promo__scroll::before {
    position: absolute;
    width: 92px;
    height: 100%;
    top: 0;
    right: -4px;
    background: linear-gradient(to right, #ffffff00, #ffffff);
    content: "";
  }
}

/* ========================================
   прокрутка
   ======================================== */

/* body * {
  outline: 1px solid red;
} */

/* .pricing {
  position: relative;
  overflow: hidden;
}

.floating-bg {
  position: absolute;
  width: 0;
  height: 0;
  top: 0;
  left: 0;
  background: white;
  border-radius: 24px;
  box-shadow: 0 4px 32px #000000;
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.3s ease;
  z-index: 0;
  pointer-events: none;
}

.card__pricing {
  position: relative;
  background: white;
  transition: background 0.3s ease;
  z-index: 1;
}

.card__pricing:hover {
  background: transparent;
} */

/* ========================================
   кнопка анимация
   ======================================== */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(255, 255, 255, 50%),
    transparent
  );
  transition: left 0.5s ease-in-out;
  transform: skewX(-20deg);
  z-index: 0;
  content: "";
  pointer-events: none;
}

.btn:hover::before {
  left: 150%;
}

/* footer a */

footer a {
  text-decoration: none;
}
