.navbar {
  --bs-navbar-active-color: var(--primary-color);
}

.dropdown-item.active,
.dropdown-item:active {
  background: linear-gradient(45deg, var(--primary-color), var(--warning-color));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

a {
  color: #000;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", serif;
  font-weight: 700;
}

body {
  font-family: "Montserrat", serif;
  font-weight: 400;
  background: var(--neutral-light);
  color: var(--neutral-dark);
  width: 100%;
}

.navbar {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar:not(.scrolled):not(.inner__top) {
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled,
.navbar.inner__top {
  background: white;
  padding: 0px 0;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.6);
  /* Тень снизу */
}

.navbar .nav-link {
  color: var(--text-primary);
  font-size: 1rem;
  transition: color 0.3s;
}

.navbar .nav-item {
  margin: 0px 3px;
  position: relative;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
  color: #fff;
}

.offcanvas .navbar-nav .nav-link.active,
.offcanvas .navbar-nav .nav-link.show {
  color: #000;
}

.navbar .nav-item .nav-link::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--warning-color));
  transition: transform 0.4s ease;
}

.navbar .nav-item .nav-link:hover::before,
.navbar .nav-item .nav-link.active::before {
  transform: translateX(-50%) scaleX(1);
}

.navbar.scrolled .nav-item .nav-link::before,
.navbar.inner__top .nav-item .nav-link::before {
  background-color: #0055A5;
}


.navbar.scrolled .nav-link,
.navbar.inner__top .nav-link {
  color: black;
}

.navbar-brand img {
  height: 100px;
  transition: opacity 0.3s, height 0.3s;
}

.navbar.scrolled .navbar-brand img,
.navbar.inner__top .navbar-brand img {
  height: 80px;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.language-menu {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #fff;
  position: relative;
  /* Добавляем позиционирование */
}

/* Специальные правила для выпадающего меню языков */
.language-menu .dropdown-menu {
  left: auto;
  /* Отменяем левое выравнивание */
  right: 0;
  /* Выравниваем по правому краю */
  min-width: 120px;
  /* Минимальная ширина */
  transform-origin: top right;
  /* Точка трансформации в правом верхнем углу */
  margin-top: 0.5rem !important;
  /* Отступ от кнопки */
}

.language-menu a {
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
  margin-top: 3px;
}

.language-menu button {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.navbar.inner__top:not(.scrolled) .language-menu button,
.navbar.inner__top .language-menu button {
  color: #333 !important;
  text-shadow: none;
}

.navbar.scrolled .language-menu button {
  color: #333;
  text-shadow: none;
}

.dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  max-width: 100vw;
  /* Не шире экрана */
  width: max-content;
  /* Ширина по содержимому */
  position: absolute;
  right: auto;
  /* Сброс правого выравнивания */
  left: 0;
  /* Выравнивание по левому краю родителя */
}

.dropdown-menu .dropdown-item {
  color: var(--neutral-dark);
  padding: 8px 16px;
  font-weight: 500;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease, padding 0.3s ease, background-color 0.3s ease;
  background: transparent;
}

.dropdown-menu .dropdown-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--warning-color));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.dropdown-menu .dropdown-item:hover {
  padding-left: 20px;
  color: var(--neutral-dark);
}

.dropdown-menu .dropdown-item:hover::before {
  opacity: 0.1;
}

/* Стили для пагинации */
.pagination {
  gap: 5px;
}

.pagination .page-item .page-link {
  border: none;
  background: transparent;
  color: var(--neutral-dark);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.pagination .page-item .page-link:hover {
  background: linear-gradient(45deg, var(--primary-color), var(--warning-color));
  color: var(--neutral-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 159, 67, 0.2);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(45deg, var(--primary-color), var(--warning-color));
  border: none;
  color: var(--neutral-dark);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 159, 67, 0.2);
}

.pagination .page-item.disabled .page-link {
  background: transparent;
  color: var(--neutral-medium);
  opacity: 0.5;
}

.menu-toggle {
  cursor: pointer;
  font-size: 2rem;
  color: white;
}

.navbar.scrolled .menu-toggle,
.navbar.inner__top .menu-toggle {
  color: black;
}

.socials li {
  display: inline-block;
}

.social-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #333;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(30, 61, 89, 0);
}

.head-nav:not(.inner__top):not(.scrolled) .social-circle {
  color: white;
  border-color: white;
  border-width: 2px;
}

.head-nav.scrolled .social-circle {
  color: #333;
  border-color: #333;
  border-width: 2px;
}

.social-circle:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--warning-color));
  color: var(--neutral-dark);
  text-decoration: none;
  box-shadow: 0 0 15px rgba(255, 159, 67, 0.3);
  transform: translateY(-3px);
  border-color: transparent;
}

.scrolled .social-circle,
.inner__top .social-circle {
  color: #333;

}

.offcanvas-header {
  position: relative;
}

.offcanvas-header .btn-close {
  position: absolute;
  top: 30px;
  right: 30px;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-slider .item {
  position: relative;
}

.hero-slider .item img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateX(500px);
  transition: opacity 1s, transform 1s;
}

.active .hero-overlay {
  opacity: 1;
  transform: translateY(0);
}

.hero-slider .item {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  /* Уберите возможные прокрутки */
}

.hero-slider .item video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.navbar-brand {
  width: 100px;
  /* Ширина фона */
  height: 100px;
  /* Высота фона */
  background-color: white;
  /* Белый цвет фона */
  border-radius: 50%;
  /* Делаем его круглым */
  display: flex;
  /* Чтобы логотип внутри был по центру */
  align-items: center;
  justify-content: center;
}

.logo {
  display: block;
  width: 100px;
  height: 100px;
  content: "";
  position: relative;
  background-color: #003C57;
  -webkit-mask-image: url("../images/logo-kz.svg");
  mask-image: url("../images/logo-kz.svg");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: transform 0.3s ease, filter 0.3s ease, background-color 0.3s ease;
}

.navbar-brand:hover .logo {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Это цвет фона - белый круг */
  background-color: #003C57;
  /* Делаем фон круглым */
  border-radius: 50%;
  /* Это самое главное: помещаем фон ПОД основной контент (синий логотип) */
  z-index: -1;
}

.head-nav .logo {
  background-color: #003C57;
}

.offcanvas-header .logo,
.head-nav .logo.blue,
.inner__top .logo {
  background-color: #003f73;
}

/*********************/
.blog-grid {
  margin-top: 15px;
  margin-bottom: 15px;
}

.blog-grid .blog-img {
  position: relative;
  border-radius: 5px;
  overflow: visible;
  height: 450px;
  /* Фиксированная высота блока */
}

.blog-grid .blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Обрезает лишнее и сохраняет пропорции */
  object-position: center;
  transition: transform 0.3s ease;
}

.blog-grid .blog-img .date {
  position: absolute;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 8px 15px;
  left: 0;
  top: 10px;
  font-size: 14px;
  border-radius: 0 4px 4px 0;
}

.blog-grid .blog-info {
  box-shadow: 0 15px 35px rgba(255, 159, 67, 0.1);
  border-radius: 0;
  background: var(--bg-primary);
  padding: 25px;
  margin: 0;
  position: relative;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.blog-grid .blog-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: -4px;
  height: 0;
  width: 4px;
  background: var(--warning-color);
  transition: height 0.3s ease;
}

.blog-grid:hover .blog-info {
  /*transform: translateY(-5px);*/
  box-shadow: 0 20px 40px rgba(255, 159, 67, 0.15);
}

.blog-grid:hover .blog-info::before {
  height: 100%;
}

.blog-grid .blog-info h5 {
  font-size: 14px;
  font-weight: 500;
  height: 65px;
  overflow: hidden;
}

.blog-grid .blog-info h5 a {
  color: var(--neutral-dark);
  transition: all 0.3s ease;
}

.blog-grid .blog-info h5 a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 15px rgba(255, 159, 67, 0.2);
}

.blog-grid .blog-info p {
  margin: 0;
  color: var(--neutral-medium);
}

.blog-grid .blog-info .btn-bar {
  margin-top: 20px;
}

.px-btn-arrow {
  padding: 0 50px 0 0;
  font-size: 14px;
  line-height: 20px;
  position: relative;
  display: inline-block;
  color: var(--primary-color);
  -moz-transition: ease all 0.3s;
  -o-transition: ease all 0.3s;
  -webkit-transition: ease all 0.3s;
  transition: ease all 0.3s;
}

.px-btn-arrow .arrow {
  width: 13px;
  height: 2px;
  background: currentColor;
  display: inline-block;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  right: 25px;
  -moz-transition: ease right 0.3s;
  -o-transition: ease right 0.3s;
  -webkit-transition: ease right 0.3s;
  transition: ease right 0.3s;
}

.px-btn-arrow .arrow:after {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  display: inline-block;
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.px-btn-arrow:hover .arrow {
  right: 15px;
  /* Двигаем стрелку вправо */
}

/*****************************/
/*.home-blog {
    padding-top: 50px;
    padding-bottom: 30px;
}*/
@media (min-width: 992px) {
  .home-blog {
    padding-top: 50px;
    padding-bottom: 30px;
  }
}

.home-blog .section-title {
  padding-bottom: 15px;
}

.home-blog .media {
  margin-top: 50px;
  box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.35);
  -webkit-box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.35);
  -moz-box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px) {
  .home-blog .media {
    margin-top: 30px;
  }
}

.bg-sand {
  background-color: #f5f5f6;
}

.media.blog-media {
  margin-top: 30px;
  position: relative;
  display: block;
}

@media (min-width: 992px) {
  .media.blog-media {
    display: table;
  }
}

.media.blog-media .circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  position: absolute;
  padding: 0;
  top: 20px;
  left: 20px;
  text-align: center;
  box-shadow: none;
  transform: translateX(0);
  color: #fff;
  transition: background-color 0.3s ease;
}

.media.blog-media .circle .day {
  color: #fff;
  transition: color 0.25s ease;
  font-weight: 500;
  font-size: 28px;
  line-height: 1;
  margin-top: 12px;
}

.media.blog-media .circle .month {
  text-transform: uppercase;
  font-size: 14px;
}

.media.blog-media>a {
  position: relative;
  display: block;
}

@media (min-width: 992px) {
  .media.blog-media>a {
    display: table-cell;
    vertical-align: top;
    min-width: 200px;
  }
}

@media (min-width: 1200px) {
  .media.blog-media>a {
    min-width: 230px;
  }
}

.media-body .date {
  margin-bottom: 15px;
}

.media.blog-media>a:before {
  position: absolute;
  content: "";
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  opacity: 0;
  transform: scale(0);
  transition: transform 0.3s ease, opacity 0.3s;
  background: rgba(0, 0, 0, 0.5);
}

.media.blog-media>a img {
  width: 100%;
}

.media.blog-media:hover>a:before {
  opacity: 1;
  transform: scale(1);
}

.media.blog-media:hover .circle {
  background-color: rgba(255, 255, 255, 0.9);
}

.media.blog-media:hover .circle .day,
.media.blog-media:hover .circle .month {
  color: #222;
}

.media.blog-media:hover .media-body h5 {
  color: #0055a5;
}

.media.blog-media:hover .media-body a.post-link {
  color: #0055a5;
  text-decoration: none;
}

.media.blog-media .media-body {
  border: 1px solid #efeff3;
  padding: 30px 30px 10px;
  font-size: 14px;
  background: #fff;
  border-top: none;
}

@media (min-width: 992px) {
  .media.blog-media .media-body {
    padding: 15px 20px 10px;
    border-top: 1px solid #efeff3;
    border-left: none;
    display: table-cell;
    vertical-align: top;
  }
}

@media (min-width: 1200px) {
  .media.blog-media .media-body {
    padding: 30px 20px 10px;
  }
}

.media.blog-media .media-body h5 {
  transition: color 0.3s ease;
  margin-bottom: 15px;
}

@media (min-width: 992px) {
  .media.blog-media .media-body h5 {
    font-size: 15px;
  }
}

@media (min-width: 1200px) {
  .media.blog-media .media-body h5 {
    margin-bottom: 15px;
    font-size: 18px;
  }
}

.media.blog-media .media-body a.post-link {
  display: block;
  color: #222;
  font-size: 11px;
  padding: 23px 0;
  text-transform: uppercase;
  font-weight: 400;
}

@media (min-width: 992px) {
  .media.blog-media .media-body a.post-link {
    padding: 7px 0;
  }
}

@media (min-width: 1200px) {
  .media.blog-media .media-body a.post-link {
    padding: 23px 0;
  }
}

.media.blog-media .media-body ul {
  position: relative;
  padding: 10px 0 0;
}

.media.blog-media .media-body ul li {
  display: inline-block;
  width: 49%;
  position: relative;
}

.media.blog-media .media-body ul li:before {
  position: absolute;
  content: "";
  top: 5px;
  left: 0;
  width: 1px;
  height: 14px;
  background: #eeeef2;
}

.media.blog-media .media-body ul li:first-child:before {
  visibility: hidden;
}

.media.blog-media .media-body ul:before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #eeeef2;
}

.all-show {
  font-size: 1.2rem;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 30px;
  background: linear-gradient(45deg, var(--primary-color), var(--warning-color));
  background-size: 175% 175%;
  color: var(--neutral-dark);
  border: none;
  font-weight: bold;
  text-transform: uppercase;
  padding: 15px 40px;
  box-shadow:
    0 4px 15px rgba(255, 159, 67, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

/* Анимация градиента и эффекты */
.all-show:hover {
  background-position: right center;
  transform: translateY(-3px) scale(1.02);
  color: var(--neutral-dark);
  box-shadow:
    0 8px 25px rgba(255, 159, 67, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

/* Эффект свечения */
.all-show::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--warning-color), var(--primary-color));
  z-index: -1;
  opacity: 0;
  border-radius: 13px;
  filter: blur(8px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.all-show::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      transparent,
      rgba(255, 255, 255, 0.5),
      transparent);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}

.all-show:hover::before {
  opacity: 1;
}

.all-show:hover::after {
  transform: translateX(100%);
}

.afisha-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  height: 400px;
  /* Фиксированная высота блока */
}

.afisha-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Обрезает лишнее и сохраняет пропорции */
  object-position: center;
  transition: transform 0.3s ease;
}

.afisha-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(255, 159, 67, 0.5),
      rgba(45, 52, 54, 0.7));
  opacity: 0;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.afisha-content {
  color: white;
  transform: translateY(20px);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.afisha-item:hover .afisha-overlay {
  opacity: 1;
}

.afisha-item:hover .afisha-content {
  transform: translateY(0);
  opacity: 1;
}

.afisha-title {
  font-size: 1.2rem;
  font-weight: bold;
}

.afisha-name {
  font-size: 1.4rem;
  font-weight: bold;
}

.afisha-actions {
  margin-top: 10px;
}

.afisha-actions .btn {
  margin: 5px;
}

.owl-nav {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  width: 110%;
  left: -5%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Стрелки */
.owl-nav button {
  color: black !important;
  font-size: 24px !important;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
}

/*.owl-nav button.owl-prev {
  position: absolute;
  left: -15px;
}*/

/*.owl-nav button.owl-next {
  position: absolute;
  right: -15px;
}*/

/* Анимация при наведении */
.owl-nav button:hover {
  color: #0055a5 !important;
  transform: scale(1.1);
}

.white {
  background: white !important;
}

.bg-blue {
  background: linear-gradient(45deg, var(--primary-color), var(--warning-color));
  position: relative;
  overflow: hidden;
}

.bg-blue::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1;
}

.bg-blue * {
  position: relative;
  z-index: 2;
}

.our-team {
  text-align: center;
}

.our-team .team_img {
  position: relative;
  overflow: hidden;
}

.our-team .team_img:after {
  content: "";
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  position: absolute;
  bottom: -100%;
  left: 0;
  transition: all 0.3s ease 0s;
}

.our-team:hover .team_img:after {
  bottom: 0;
}

.our-team img {
  width: 100%;
  height: auto;
}

.our-team .social {
  padding: 0 0 18px 0;
  margin: 0;
  list-style: none;
  position: absolute;
  top: -100%;
  right: 10px;
  background: var(--primary-color);
  border-radius: 0 0 20px 20px;
  z-index: 1;
  transition: all 0.3s ease 0s;
  box-shadow: 0 4px 15px rgba(30, 61, 89, 0.2);
}

.our-team:hover .social {
  top: 0;
}

.our-team .social li a {
  display: block;
  padding: 15px;
  font-size: 15px;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.our-team:hover .social li a:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

.our-team .team-content {
  padding: 20px 0;
  background: #fff;
}

.our-team .title {
  font-size: 18px;
  font-weight: bold;
  color: var(--neutral-dark);
  text-transform: capitalize;
  margin: 0 0 20px;
  position: relative;
}

.our-team .title:before {
  content: "";
  width: 25px;
  height: 1px;
  background: var(--primary-color);
  position: absolute;
  bottom: -10px;
  right: 50%;
  margin-right: 9px;
  transition-duration: 0.25s;
}

.our-team .title:after {
  content: "";
  width: 25px;
  height: 1px;
  background: var(--primary-color);
  position: absolute;
  bottom: -10px;
  left: 50%;
  margin-left: 9px;
  transition-duration: 0.25s;
}

.our-team:hover .title:before,
.our-team:hover .title:after {
  width: 50px;
}

.our-team .post {
  display: inline-block;
  font-size: 15px;
  color: #f76c5e;
  text-transform: capitalize;
}

.our-team .post:before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0055a5;
  margin: 0 auto;
  position: relative;
  top: -13px;
}

@media only screen and (max-width: 990px) {
  .our-team {
    margin-bottom: 30px;
  }
}

.team-member {
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

.team-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-member:hover .team-image img {
  transform: scale(1.1);
}

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.team-member:hover .team-overlay {
  opacity: 1;
  transform: translateY(0);
}

.team-overlay h4 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.team-overlay p {
  font-size: 1rem;
  margin-bottom: 10px;
}

.social-links a {
  color: white;
  font-size: 1.2rem;
  margin: 0 10px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: #0055a5;
  transform: scale(1.2);
}

.more-link {
  color: #000;
  font-size: 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
}

.more-link .arrow {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

/* При наведении стрелка двигается вправо */
.more-link:hover .arrow {
  transform: translateX(5px);
}

/* При наведении меняем цвет */
.more-link:hover {
  color: var(--primary-color);
  text-shadow: 0 0 15px rgba(255, 159, 67, 0.2);
}

.partner-item {
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin: 10px;
}

.partner-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.partner-item img {
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.partners-slider {
  padding: 0 30px;
  margin: 0 -10px;
}

.partners-slider .owl-stage {
  display: flex;
  align-items: center;
}

.partners-slider .owl-item {
  display: flex;
  justify-content: center;
}

.partners-slider .owl-nav {
  display: block !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  left: 0;
  pointer-events: none;
}

.partners-slider .owl-nav button {
  position: absolute;
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white !important;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.partners-slider .owl-nav button:hover {
  background: var(--primary-color) !important;
  color: white !important;
  transform: scale(1.1);
}

.partners-slider .owl-nav .owl-prev {
  left: -20px;
}

.partners-slider .owl-nav .owl-next {
  right: -20px;
}

.footer {
  background: linear-gradient(180deg,
      rgba(45, 52, 54, 0.97) 0%,
      rgba(45, 52, 54, 0.99) 100%);
  position: relative;
  color: var(--neutral-light);
  padding: 60px 0;
  font-family: "Montserrat", serif;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg,
      rgba(255, 159, 67, 0.1) 0%,
      rgba(45, 52, 54, 0.95) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer>* {
  position: relative;
  z-index: 1;
}

.footer a {
  color: var(--neutral-light);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.footer a:hover {
  color: var(--warning-color);
  text-shadow: 0 0 10px rgba(255, 193, 59, 0.3);
}

.footer a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.footer h5 {
  font-weight: bold;
  margin-bottom: 20px;
  color: #fff;
  /* Золотистый акцент для заголовков */
}

.footer .socials a {
  font-size: 1.5rem;
  margin: 0 10px;
  color: #d1d1d1;
  transition: color 0.3s ease;
}

.footer .socials a:hover {
  color: var(--warning-color);
  transform: scale(1.1);
}

.footer .social-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #333;
  transition: background 0.3s ease;
}

.footer .social-circle:hover {
  background: #fff;
  color: #0d0d0d;
}

.footer .list-unstyled li {
  margin-bottom: 10px;
}

.footer .border-top {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.footer-logo {
  max-width: 130px;
  margin-bottom: 20px;
  /* filter: brightness(0) invert(1);  */
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Два столбца через grid */
  gap: 5px;
  /* Отступ между столбцами */
  list-style: none;
  padding: 0;
}

.footer-nav .nav-item {
  margin-bottom: 3px;
}

.footer-nav .nav-link {
  color: #d1d1d1;
  padding: 5px 0;
  display: block;
}

.footer-nav .nav-link:hover {
  color: #fff;
}

.slider-text {
  text-align: justify;
}

/* Определение глобальных переменных с цветами */
:root {
  /* Основные цвета */
  --primary-color: #FF9F43;
  /* Теплый оранжевый */
  --secondary-color: #FFBE76;
  /* Светлый оранжевый */
  --accent-color: #FFC13B;
  /* Золотой */

  /* Нейтральные цвета */
  --neutral-dark: #2D3436;
  /* Тёмно-серый */
  --neutral-medium: #636E72;
  /* Средний серый */
  --neutral-light: #FFF9F0;
  /* Теплый светлый */

  /* Дополнительные цвета */
  --success-color: #4CAF50;
  /* Свежий зеленый */
  --info-color: #FF9F43;
  /* Теплый оранжевый */
  --warning-color: #FFC13B;
  /* Золотой */

  /* Цвета фона */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-dark: #2C3E50;

  /* Цвета текста */
  --text-primary: #2C3E50;
  --text-secondary: #7F8C8D;
  --text-light: #FFFFFF;
}

/* .slider__content {
  max-width: 800px;
} */

@media (max-width: 575.98px) {
  .slider__content h2 {
    font-size: 18px;
  }

  .slider-text {
    font-size: 14px;
  }
}

/* Основной стиль кнопки */
.btn-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: #0055A5;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin-right: 15px;
  z-index: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 4px 15px -3px rgba(0, 85, 165, 0.1),
    0 2px 8px -2px rgba(0, 85, 165, 0.05),
    inset 0 0 0 1px rgba(0, 85, 165, 0.2);
}

/* Градиентная подсветка */
.btn-custom::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -2;
  background: linear-gradient(135deg,
      #0055A5,
      #0088ff,
      #66b3ff,
      #0055A5);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  filter: blur(4px);
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Фоновый эффект */
.btn-custom::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0055A5, #0088ff);
  z-index: -1;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%
  }

  50% {
    background-position: 100% 50%
  }

  100% {
    background-position: 0% 50%
  }
}

/* Эффект при наведении */
.btn-custom:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 8px 25px -5px rgba(0, 85, 165, 0.2),
    0 5px 12px -3px rgba(0, 85, 165, 0.15);
}

.btn-custom:hover::before {
  opacity: 1;
}

.btn-custom:hover::after {
  opacity: 1;
}

/* Эффект при нажатии */
.btn-custom:active {
  transform: translateY(0) scale(0.98);
  box-shadow:
    0 4px 15px -3px rgba(0, 85, 165, 0.15),
    0 2px 8px -2px rgba(0, 85, 165, 0.1);
}

/* Стили для тёмной версии */
.btn-custom.btn-dark {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  box-shadow:
    0 4px 15px -3px rgba(0, 0, 0, 0.2),
    0 2px 8px -2px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Линия анимируется */
.btn-custom:hover::after {
  width: 100%;
}

.btn-custom.btn-dark {
  color: #000;
  border-bottom: 2px solid #000000;
}

.btn-custom.btn-dark:hover {
  color: #1e1e1e;
  border-color: #1e1e1e;
}

.btn-custom.btn-dark::after {
  background: #1e1e1e;
}

.subheader {
  border-bottom: 1px solid #b8b8b8;
}

.header__afisha .more-link {
  margin-left: 15px;
  margin-top: -3px;
}

.header__afisha h4 {
  font-size: 1rem;
}

.h4,
h4 {
  font-size: 1.4rem;
}

.hero-slider .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
  z-index: 10;
  pointer-events: none;
  /* разрешим клики только по кнопкам */
}

.hero-slider .owl-nav button.owl-prev,
.hero-slider .owl-nav button.owl-next {
  pointer-events: all;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 20px;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.hero-slider .owl-nav button.owl-prev:hover,
.hero-slider .owl-nav button.owl-next:hover {
  background-color: #fff;
  transform: scale(1.1);
}

.hero-slider .owl-nav button span {
  font-size: 28px;
  line-height: 1;
}

.hero-slider .owl-nav button.owl-prev {
  left: 15px;
}

.hero-slider .owl-nav button.owl-next {
  right: 15px;
}

/* Главная кнопка для призывов к действию */
.btn-theater {
  background: linear-gradient(135deg, var(--primary-color), var(--warning-color));
  color: var(--neutral-dark);
  padding: 14px 32px;
  font-size: 1.1rem;
  border-radius: 12px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(255, 159, 67, 0.2),
    0 2px 8px rgba(255, 159, 67, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.btn-theater:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
  z-index: -1;
}

.btn-theater:hover {
  background: linear-gradient(135deg, var(--info-color), var(--primary-color));
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(30, 61, 89, 0.25),
    0 4px 12px rgba(30, 61, 89, 0.15);
}

.btn-theater:hover:before {
  left: 100%;
}

.btn-warning {
  background: linear-gradient(135deg, var(--accent-color), var(--warning-color));
  color: var(--neutral-dark);
}

/* Вторичная кнопка для информационных секций */
.btn-blue {
  background: linear-gradient(45deg, var(--info-color), var(--primary-color));
  color: var(--text-light);
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  box-shadow:
    0 4px 15px rgba(23, 162, 184, 0.2),
    0 2px 8px rgba(23, 162, 184, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.btn-blue:after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-blue:hover {
  background: linear-gradient(45deg, var(--primary-color), var(--warning-color));
  color: var(--neutral-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 6px 20px rgba(255, 159, 67, 0.25),
    0 4px 10px rgba(255, 159, 67, 0.15);
}

.btn-blue:hover:after {
  opacity: 1;
}







#sync1 {
  .item {
    background: #fff;
    /*padding: 80px 0px;*/
    height: 400px;
    display: flex;
    margin: 5px;
    color: #FFF;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    text-align: center;
  }

  .owl-nav {
    width: 100%;
    left: 0;
  }

  .owl-nav button.owl-prev,
  .owl-nav button.owl-next {
    pointer-events: all;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    position: relative;
  }

  .owl-nav button.owl-prev:hover,
  .owl-nav button.owl-next:hover {
    background-color: #fff;
    transform: scale(1.1);
  }

  .owl-nav button.owl-prev {
    left: 15px;
  }

  .owl-nav button.owl-next {
    right: 15px;
  }

}

#sync2 {
  .item {
    background: #fff;
    padding: 10px 0px;
    margin: 5px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    text-align: center;
    cursor: pointer;

  }

  .owl-item.current img {
    opacity: 1;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 159, 67, 0.3);
  }

  .item img {
    height: 100%;
    width: auto;
    object-fit: contain;
    max-width: 100%;
    display: block;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
  }
}

#sync1 .item img,
#sync2 .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.owl-theme .owl-nav {
  margin-top: 0;
}

@media (max-width: 767px) {
  #sync1 .item {
    height: 250px;
  }

  #sync2 .item {
    height: 70px;
  }


}

#sync2 .item img:hover {
  transform: scale(1.05);
}

@media (min-width: 998px) and (max-width: 1440px) {

  .logo,
  .footer-logo {
    width: 100px;
  }
}

@media (min-width: 992px) {
  .navbar {
    padding: 15px 0;
  }

  .navbar.scrolled {
    padding: 10px 0;
  }

  .nav-link {
    margin: 0 12px;
  }
}

/* Обновленные стили навигации */
.navbar .nav-link:hover,
.navbar .nav-link.active,
.navbar.scrolled .nav-link:hover,
.navbar.inner__top .nav-link:hover {
  color: var(--primary-color) !important;
  text-shadow: 0 0 10px rgba(255, 159, 67, 0.2);
}

.navbar .nav-item .nav-link::before {
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent) !important;
}

@media (min-width: 998px) and (max-width: 1200px) {
  .navbar .nav-link {
    font-size: 0.7rem;
  }

  .socials {
    display: none !important;
  }
}

/***inner***/

.navbar.inner__top {
  position: relative;
  padding: 0px 0;
  background: #fff;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.6);
  width: 100%;
  top: 0;
  z-index: 1000;
}



.page-title {
  position: relative;
  background: url('https://mambetov-theatre.kz/images/slider/IMG_5115.jpg') center center / cover no-repeat;
  min-height: 250px;
  display: flex;
  align-items: center;
  color: #fff;
}

.page-title__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.page-title .container {
  z-index: 2;
}

.page-title__heading {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-title__subheading {
  font-size: 1.25rem;
  font-weight: 300;
}

.blog-detail.blog-grid .blog-img {
  height: auto;
}

.blog-detail.blog-grid .blog-info {
  padding: 50px;
  text-align: justify;
}

/* .blog-detail.blog-grid .blog-info p {
  margin-bottom: 15px !important;
  text-align: justify !important;
  text-indent: 2rem !important;
  line-height:normal !important;
  font-family: "Montserrat", serif !important;
  font-size:1rem !important;
} */

.blog-detail.blog-grid .blog-info * {
  font-family: "Montserrat", serif !important;
  font-size: 1rem !important;
}

.blog-detail.blog-grid .blog-info img {
  max-width: 100%;
  height: auto;
}


.actor-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.actor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.actor-image {
  position: relative;
  width: 100%;
  padding-bottom: 130%;
  /* Увеличиваем высоту фото */
  overflow: hidden;
}

.actor-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.actor-card:hover .actor-image img {
  transform: scale(1.1);
}

.actor-info {
  padding: 15px;
  text-align: center;
}

.actor-name {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--neutral-dark);
}

.actor-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  padding: 5px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
  background: rgba(255, 159, 67, 0.1);
}

.actor-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Стили для карточек спектаклей */
.performance-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.performance-card .performance-image {
  position: relative;
  width: 100%;
  padding-bottom: 140%;
  overflow: hidden;
  border-radius: 10px;
}

.performance-card .performance-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.performance-card:hover .performance-image img {
  transform: scale(1.1);
}

.performance-info {
  padding: 15px;
  text-align: center;
}

.performance-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.performance-title a {
  color: var(--neutral-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}

.performance-title a:hover {
  color: var(--primary-color);
}

.performance-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.performance-image {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  overflow: hidden;
}

.performance-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.performance-card:hover .performance-image img {
  transform: scale(1.1);
}

.performance-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.performance-card:hover .performance-overlay {
  opacity: 1;
}

.performance-content {
  color: white;
  text-align: center;
}

.performance-age {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-color);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
}

.performance-title {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: white;
}

.performance-author {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.performance-duration {
  font-size: 0.9rem;
  color: #ddd;
}

.performance-info {
  padding: 20px;
}

.performance-info .performance-title {
  font-size: 1.2rem;
  color: var(--neutral-dark);
  margin-bottom: 10px;
}

.performance-description {
  font-size: 0.9rem;
  color: var(--neutral-medium);
  margin: 0;
}

.performance-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.performance-actions .btn {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* Стили для детальной страницы актера */
.actor-detail-image {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.actor-detail-image:hover {
  transform: translateY(-5px);
}

.actor-detail-image img {
  width: 100%;
  height: auto;
}

.actor-detail-info {
  padding: 20px;
}

.actor-bio {
  font-size: 1.1rem;
  line-height: 1.6;
}

.actor-bio h3 {
  color: var(--primary-color);
  margin-top: 2rem;
}

.actor-bio ul {
  padding-left: 1.2rem;
}

.actor-bio ul li {
  margin-bottom: 0.5rem;
}

@media (max-width: 991px) {
  .language-menu .dropdown-menu {
    position: fixed !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    border-radius: 1rem 1rem 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
  }

  .language-menu .dropdown-menu.show {
    transform: translateY(0);
  }

  .page-title {
    min-height: 180px;
    padding: 1.5rem 1rem;
  }

  .page-title__heading {
    font-size: 1.5rem;
  }

  .blog-detail.blog-grid .blog-info {
    padding: 15px;
    margin: 0;
    font-size: 0.9rem;
  }

  .blog-grid .blog-info h5 {
    height: auto;
  }
}

.head-nav:not(.scrolled):not(.inner__top) {
  background-color: transparent;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* --- 2. Ссылки основного меню --- */
.navbar .nav-link {
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

/* Улучшенная анимация подчеркивания */
.navbar .nav-item .nav-link::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0055A5, transparent);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.navbar .nav-item:hover .nav-link::before,
.navbar .nav-item .nav-link.active::before {
  transform: translateX(-50%) scaleX(1);
}

.navbar.scrolled .nav-item .nav-link::before,
.navbar.inner__top .nav-item .nav-link::before {
  background-color: #0055A5;
}

/* Цвет текста ссылок и их тень для читаемости */
.head-nav:not(.scrolled) .nav-link,
.head-nav:not(.scrolled) .language-menu button {
  color: white;
}

.head-nav.scrolled .nav-link,
.head-nav.inner__top .nav-link {
  color: #333;
  /* Сделаем текст чуть мягче, чем чисто черный */
}

.head-nav.scrolled .nav-link:hover,
.head-nav.inner__top .nav-link:hover,
.head-nav.scrolled .nav-link.active,
.head-nav.inner__top .nav-link.active {
  color: #0055A5;
  /* Акцентный цвет при наведении/активности */
}


/* --- 3. Выпадающие меню с поочередной анимацией --- */
.navbar .dropdown-menu {
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-top: 0.75rem !important;
  padding: 0.5rem 0;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);

  opacity: 0;
  visibility: hidden;
  transform-origin: top;
  animation: dropdownAnimation 0.3s ease forwards;
  display: block;
  pointer-events: none;
  z-index: 1000;
  position: absolute;
}

.navbar.inner__top .dropdown-menu {
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@keyframes dropdownAnimation {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

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

.navbar .dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Анимация для каждого пункта по-отдельности */
.navbar .dropdown-menu .dropdown-item {
  font-weight: 500;
  padding: 0.7rem 1.25rem;
  opacity: 0;
  transform: translateX(15px);
  transition: all 0.3s ease;
}

.navbar .dropdown-menu.show .dropdown-item {
  opacity: 1;
  transform: translateX(0);
}

/* Задержка анимации для каждого элемента */
.navbar .dropdown-menu.show .dropdown-item:nth-child(1) {
  transition-delay: 0.05s;
}

.navbar .dropdown-menu.show .dropdown-item:nth-child(2) {
  transition-delay: 0.1s;
}

.navbar .dropdown-menu.show .dropdown-item:nth-child(3) {
  transition-delay: 0.15s;
}

.navbar .dropdown-menu.show .dropdown-item:nth-child(4) {
  transition-delay: 0.2s;
}

.navbar .dropdown-menu.show .dropdown-item:nth-child(5) {
  transition-delay: 0.25s;
}

/* ... можно продолжить для большего кол-ва пунктов */

.navbar .dropdown-item:hover {
  background-color: #f1f5f9;
  /* color: #0055a5; */
  transform: translateX(5px) !important;
  /* Небольшой сдвиг при наведении */
}

/* --- 4. Иконки социальных сетей --- */
.head-nav:not(.scrolled) .social-circle {
  background-color: transparent;
  border: 1.5px solid #fff;
  /* color: #fff; */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.head-nav:not(.scrolled) .social-circle:hover {
  background-color: #fff;
  /* color: #0055a5; */
  transform: scale(1.1) translateY(-2px);
}

.scrolled .social-circle:hover,
.inner__top .social-circle:hover {
  background-color: #0055a5;
  color: #fff;
  transform: scale(1.1) translateY(-2px);
}

/* --- 5. Преображение мобильного меню (Offcanvas) --- */
.offcanvas.offcanvas-end {
  border-left: none;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
}

.offcanvas-body .navbar-nav {
  margin-top: 1.5rem;
}

/* Разделители между пунктами */
.offcanvas .nav-item {
  border-bottom: 1px solid #e9ecef;
  transform: translateX(-30px);
  opacity: 0;
  transition: all 0.4s ease;
}

.offcanvas.show .nav-item {
  transform: translateX(0);
  opacity: 1;
}

/* Задержка для анимации пунктов в мобильном меню */
.offcanvas.show .nav-item:nth-child(1) {
  transition-delay: 0.1s;
}

.offcanvas.show .nav-item:nth-child(2) {
  transition-delay: 0.15s;
}

.offcanvas.show .nav-item:nth-child(3) {
  transition-delay: 0.2s;
}

.offcanvas.show .nav-item:nth-child(4) {
  transition-delay: 0.25s;
}

.offcanvas.show .nav-item:nth-child(5) {
  transition-delay: 0.3s;
}

.offcanvas.show .nav-item:nth-child(6) {
  transition-delay: 0.35s;
}

.offcanvas.show .nav-item:nth-child(7) {
  transition-delay: 0.4s;
}


.offcanvas .nav-item:last-child {
  border-bottom: none;
}

.offcanvas .nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 1rem;
  border-radius: 0;
  transition: color 0.2s ease, background-color 0.2s ease;
  color: #333;
}

.offcanvas .nav-link:hover {
  background-color: #f8f9fa;
  color: #0055a5;
}

.offcanvas .navbar-nav .nav-link.active {
  color: #0055a5;
  background-color: #eef4fb;
}

.offcanvas .dropdown-menu {
  /* ГЛАВНОЕ ИЗМЕНЕНИЕ: заставляем меню быть частью потока, а не всплывать */
  position: static !important;

  /* Сбрасываем стили, которые нужны только для всплывающего меню */
  box-shadow: none;
  transform: none !important;
  animation: none;
  opacity: 1 !important;
  visibility: visible !important;

  /* Стили для красоты */
  background-color: #f8f9fa;
  border-radius: 0;
  border-top: 1px solid #e9ecef;
  /* Добавим разделитель сверху */
  margin: 0.5rem 0 0 0 !important;
  /* Небольшой отступ */
  padding: 0;
  width: 100%;
  /* Занимает всю ширину родителя */
}

.offcanvas .dropdown-item {
  padding-left: 2rem;
  /* Увеличим отступ для дочерних пунктов */
}

/*
 * Стили для выравнивания высоты карточек ТОЛЬКО в архивах "людей"
 * ----------------------------------------------------------------*/

/* 1. Группируем селекторы для всех четырех архивов */
body.post-type-archive-rukovodstvo .blog-grid .blog-img,
body.post-type-archive-artistic-council .blog-grid .blog-img,
body.post-type-archive-creative-team .blog-grid .blog-img,
body.post-type-archive-staging-team .blog-grid .blog-img {
  height: 450px;
  /* <-- ВЫСОТА, КОТОРУЮ МОЖНО МЕНЯТЬ */
  overflow: hidden;
  display: block;
  position: relative;
  background-color: #f0f0f0;
}

/* 2. Применяем стили к изображениям внутри этих архивов */
body.post-type-archive-rukovodstvo .blog-grid .blog-img img,
body.post-type-archive-artistic-council .blog-grid .blog-img img,
body.post-type-archive-creative-team .blog-grid .blog-img img,
body.post-type-archive-staging-team .blog-grid .blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Сохраняем пропорции, обрезая лишнее */
  object-position: center top;
  /* Стараемся не обрезать головы */
  transition: transform 0.3s ease-in-out;
}

/* 3. Эффект приближения при наведении (тоже только для этих архивов) */
body.post-type-archive-rukovodstvo .blog-grid:hover .blog-img img,
body.post-type-archive-artistic-council .blog-grid:hover .blog-img img,
body.post-type-archive-creative-team .blog-grid:hover .blog-img img,
body.post-type-archive-staging-team .blog-grid:hover .blog-img img {
  transform: scale(1.05);
}

.repertyar-item {
  /* Добавляем отступ снизу для каждого элемента */
  margin-bottom: 30px;

  /* Добавляем внутренний отступ снизу */
  padding-bottom: 30px;

  /* Добавляем серую разделительную линию под каждым элементом */
  border-bottom: 1px solid #eeeeee;
}

/* Убираем отступ и линию у самого последнего элемента, чтобы было красиво */
.repertyar-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.rep-img img {
  /* Чтобы картинка не вылезала за пределы своего блока */
  max-width: 100%;
  height: auto;
}

/* Сетка для видео */
.video-grid {
  display: grid;
  /* Создаем 2 колонки */
  grid-template-columns: repeat(2, 1fr);
  /* Отступы между элементами */
  gap: 30px;
}

/* Стили для ссылки, чтобы убрать подчеркивание */
.video-item-link {
  text-decoration: none;
  color: inherit;
  /* Наследуем цвет текста */
  display: block;
  /* Чтобы ссылка занимала весь блок */
  position: relative;
  /* Важно для позиционирования заголовка */
  overflow: hidden;
  /* Скрываем все, что выходит за рамки */
}

.video-item-link:hover {
  color: inherit;
  /* Чтобы цвет не менялся при наведении */
}

/* Блок с изображением */
.video-item__image img {
  width: 100%;
  height: auto;
  display: block;
  /* Убирает лишний отступ под картинкой */
}

/* Синий блок с заголовком */
.video-item__title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1a237e;
  /* Темно-синий цвет, подберите свой */
  color: white;
  padding: 15px 20px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.video-item__title h5 {
  margin: 0;
  font-size: 18px;
}

/* Эффект при наведении */
.video-item-link:hover .video-item__title {
  background-color: #283593;
  /* Чуть светлее синий */
}


/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .video-grid {
    /* На маленьких экранах будет 1 колонка */
    grid-template-columns: 1fr;
  }
}

.post-type-archive-staff .blog-img,
.tax-department .blog-img {
  height: 400px;
}