/*!
Theme Name: zvezda
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: zvezda
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

zvezda is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/
body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    background-image: url(img/bg.jpg);
    background-size: cover;
    background-attachment: fixed;
}

main .container {
    background-color: #fff;
    position: relative !important;
}

main .container::before,
main .container::after {
    content: '' !important;
    position: absolute !important;
    top: 10px !important; /* Отступ сверху */
    bottom: 10px !important; /* Отступ снизу */
    width: 15px !important;
    pointer-events: none !important;
    z-index: -1 !important;
    filter: blur(5px) !important; /* Добавляем размытие */
}

main .container::before {
    left: -12px !important;
    background: linear-gradient(to left, 
        rgba(0, 0, 0, 0.15) 0%, 
        rgba(0, 0, 0, 0.1) 50%, 
        transparent 100%) !important;
}

main .container::after {
    right: -12px !important;
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0.15) 0%, 
        rgba(0, 0, 0, 0.1) 50%, 
        transparent 100%) !important;
}

@media (max-width: 991px) {
  main{
    padding-left: 5%;
    padding-right: 5%;
  }
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.btn-danger {
    background-color: #ff746a;
    border-color: #ff746a;
    border-radius: 5px;
    font-weight: 600;
    letter-spacing: 0.03em;

}

.btn-danger:hover {
    background-color: #ff3627;
    border-color: #ff3627;
}

.header__logo-img{
    width: 350px;
}


 @media (max-width: 575px) {
    .header__logo-img{
        width: 200px;
    }
  
}

/* Стили для кастомного бургера */
.custom-toggler {
    border: none;
    background: transparent;
    padding: 10px;
    width: 40px;
    height: 40px;
    position: relative;
    transition: all 0.3s ease;
    z-index: 1060;
    /* Высокий z-index для кнопки */
}

.custom-toggler:focus {
    outline: none;
    box-shadow: none;
}

.custom-toggler-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    position: relative;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.custom-toggler-icon::before,
.custom-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #333;
    left: 0;
    transition: all 0.3s ease;
}

.custom-toggler-icon::before {
    top: -8px;
}

.custom-toggler-icon::after {
    top: 8px;
}

/* Анимация в крестик при открытии */
.custom-toggler:not(.collapsed) .custom-toggler-icon {
    background-color: transparent;
}

.custom-toggler:not(.collapsed) .custom-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.custom-toggler:not(.collapsed) .custom-toggler-icon::after {
    transform: rotate(-45deg);
    top: 0;
}


/* Стили для мобильного меню - ПОВЕРХ КОНТЕНТА */
@media (max-width: 991.98px) {
    .navbar {
        position: relative;
    }

    #navbarNav {
        position: absolute !important;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1050;
        background-color: #fff;
        border-radius: 8px;
        padding: 20px;
        margin-top: 10px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0, 0, 0, 0.1);
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar-nav {
        width: 100%;
    }

    .nav-item {
        margin-bottom: 10px !important;
    }

    .nav-link {
        font-size: 18px !important;
        font-weight: 500;
        padding: 14px 20px !important;
        border-radius: 8px;
        transition: all 0.2s ease;
        text-align: center;
        display: block;
    }

    .nav-link:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .nav-link.active {
        background-color: #ff746a;
        color: white !important;
    }

    /* Стили для dropdown на мобильных */
    .dropdown-toggle::after {
        margin-left: 8px;
        vertical-align: middle;
    }

    .dropdown-menu {
        border: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.03);
        margin: 10px 0;
        padding: 0;
        text-align: center;
        position: static !important;
        transform: none !important;
        float: none;
        width: 100%;
    }

    .dropdown-item {
        font-size: 16px;
        padding: 12px 15px;
        border-radius: 6px;
        text-align: center;
    }

    .dropdown-item:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .dropdown-divider {
        margin: 8px 15px;
    }

}

/* Стили для десктопного меню */
@media (min-width: 992px) {
    .nav-link {
        font-size: 16px;
        padding: 8px 15px !important;
        margin: 0 5px;
    }

    .dropdown-menu {
        border-radius: 8px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .dropdown-item {
        padding: 8px 16px;
        font-size: 16px;
    }

    .nav-link.active {
        color: #ff746a !important;
        background-color: transparent;
        position: relative;
    }

    .nav-link.active::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 15px;
        right: 15px;
        height: 2px;
        background-color: #ff746a;
    }
}


/* ----------------------------------- ОСНОВНЫЕ СТИЛ САЙТА -----------------------------------*/

.stats__container {
    padding-bottom: 20px;
}

.stats__fact-title {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: #818181;
}

.stats__fact-value {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.01em;
    color: #282828;
}

.section__title {
    font-weight: 700;
    font-size: 36px;
    letter-spacing: 0.01em;
    color: #282828;
    padding-top: 40px;
    padding-bottom: 10px;
}


.news__title {
    font-weight: 700;
    font-size: 36px;
    letter-spacing: 0.01em;
    color: #282828;
}


.news__header {
    padding-top: 40px;
    padding-bottom: 10px;
}

.news__link {
    font-weight: 500;
    font-size: 20px;
    color: #1e201f;
    text-decoration: none;
}

.news__data {
    font-weight: 500;
    font-size: 20px;
    line-height: 150%;
    text-align: right;
    color: #c4c4c4;
}

.news__image {
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
}

.news__image-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    transition: transform 0.4s ease-out;
}

.news__image:hover .news__image-img {
    transform: scale(1.05);
}

.news__link-expert_item{
    line-height: 1;
    padding-top: 10px;
}

.news__link-expert {
    font-weight: 400;
    font-size: 12px;
    line-height: 133%;
    color: #86837f;
    text-decoration: none;
}

.partners__container{
    padding-bottom: 40px;
}


.footer__container{
	background-color: #333;
	color: #fff;
}


/* md-размер (<=991px) */
@media (max-width: 991px) {
  .section__title,
  .news__title {
    font-size: 32px;
    padding-top: 32px;
    padding-bottom: 8px;
  }

  .stats__fact-value {
    font-size: 20px;
  }

  .news__link {
    font-size: 18px;
  }

  .news__data {
    font-size: 18px;
  }
}

/* xs-размер (<=575px) */
@media (max-width: 575px) {
  .section__title,
  .news__title {
    font-size: 24px;
    padding-top: 24px;
    padding-bottom: 6px;
  }

  .stats__fact-value {
    font-size: 18px;
  }

  .news__link {
    font-size: 16px;
  }

  .news__data {
    font-size: 14px;
    text-align: left;
  }

  .news__header {
    padding-top: 24px;
    padding-bottom: 6px;
  }

  .stats__container {
    padding-bottom: 16px;
  }

  .news__link-expert {
    font-size: 11px;
  }
}



/* ----------------------------------- СЛАЙДЕРЫ -----------------------------------*/

.mainSwiper {
    overflow: hidden;
    border-radius: 8px;
}

.swiper-navigation-container {
    z-index: 10;
}

.swiper-button-prev-custom,
.swiper-button-next-custom {
    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: static;
}

.swiper-button-prev-custom:hover,
.swiper-button-next-custom:hover {
    background-color: #f8f9fa !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15) !important;
}

.swiper-button-prev-custom:active,
.swiper-button-next-custom:active {
    transform: translateY(0) scale(0.98);
}

.swiper-button-prev-custom i,
.swiper-button-next-custom i {
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.swiper-button-prev-custom:hover i,
.swiper-button-next-custom:hover i {
    color: #ff746a;
}

/* Стили для пагинации (опционально) */
.swiper-pagination {
    position: absolute;
    bottom: 1rem !important;
    left: 50% !important;
    transform: translateX(-50%);
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #ff746a !important;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background-color: #fff;
    opacity: 1;
    transform: scale(1.2);
}




/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {

    .swiper-button-prev-custom,
    .swiper-button-next-custom {
        width: 44px;
        height: 44px;
    }

    .swiper-button-prev-custom i,
    .swiper-button-next-custom i {
        font-size: 1.3rem;
    }

    .swiper-navigation-container {
        margin-bottom: 1rem !important;
        margin-right: 1rem !important;
    }

    .swiper-pagination {
        bottom: 0.75rem !important;
    }
}

@media (max-width: 576px) {

    .swiper-button-prev-custom,
    .swiper-button-next-custom {
        width: 40px;
        height: 40px;
    }

    .swiper-button-prev-custom i,
    .swiper-button-next-custom i {
        font-size: 1.2rem;
    }

    .swiper-navigation-container {
        margin-bottom: 0.75rem !important;
        margin-right: 0.75rem !important;
    }
}

/* Темная тема для кнопок на темных слайдах */
.swiper-button-prev-custom.dark,
.swiper-button-next-custom.dark {
    background-color: rgba(255, 255, 255, 0.9);
}

.swiper-button-prev-custom.dark i,
.swiper-button-next-custom.dark i {
    color: #212529;
}

.swiper-button-prev-custom.dark:hover {
    background-color: #fff !important;
}





/*========================================= events =========================================*/

.events__slide img{
      border-radius: 8px;
}

/*========================================= calenda =========================================*/

/* Контейнер Swiper календаря */
.calendarSwiper {
    width: 100%;
    height: 180px;
    padding: 20px 0 40px 0;
    position: relative;
}

/* Слайд календаря */
.calendarSwiper .swiper-slide {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    opacity: 0.7;
    transform: scale(0.95);
}

.calendarSwiper .swiper-slide-active {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #ff746a;
    color: white;
    opacity: 1;
}

.calendarSwiper .swiper-slide-active .calendar-date {
    color: white !important;
}

.calendarSwiper .swiper-slide-active .calendar-day {
    color: rgba(255, 255, 255, 0.9);
}

.calendarSwiper .swiper-slide-active .calendar-month {
    color: rgba(255, 255, 255, 0.9);
}

/* Карточка даты */
.calendar-card {
    text-align: center;
    padding: 20px 15px;
    width: 100%;
}

.calendar-date {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
}

.calendar-month {
    font-size: 1.1rem;
    color: #7f8c8d;
    text-transform: lowercase;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

.calendar-day {
    font-size: 0.95rem;
    color: #95a5a6;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

/* Выходные дни */
.vikhod {
    color: #e74c3c !important;
}

.calendarSwiper .swiper-slide-active .vikhod {
    color: #ffcccb !important;
}

/* Метка выходного дня */
.weekend {
    position: relative;
}

.weekend::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: #e74c3c;
    border-radius: 50%;
}

/* Навигация для календаря */
.calendarSwiper .swiper-navigation-container {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 10;
    pointer-events: none;
}

.calendarSwiper .swiper-button-prev-custom,
.calendarSwiper .swiper-button-next-custom {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.calendarSwiper .swiper-button-prev-custom:hover,
.calendarSwiper .swiper-button-next-custom:hover {
    background: #f8f9fa;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.calendarSwiper .swiper-button-prev-custom i,
.calendarSwiper .swiper-button-next-custom i {
    font-size: 1.2rem;
    color: #2c3e50;
}

/* Стиль для сегодняшней даты */
.today-highlight {
    border: 2px solid #3498db;
}

/* Адаптивность */
@media (max-width: 576px) {
    .calendarSwiper {
        height: 160px;
    }

    .calendarSwiper .swiper-slide {
        height: 120px;
    }

    .calendar-date {
        font-size: 2rem;
    }

    .calendar-month {
        font-size: 0.9rem;
    }

    .calendar-day {
        font-size: 0.8rem;
    }

    .calendarSwiper .swiper-button-prev-custom,
    .calendarSwiper .swiper-button-next-custom {
        width: 36px;
        height: 36px;
    }

    .calendar-header {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .current-month-year {
        font-size: 1rem;
        margin-bottom: 15px;
    }
}

@media (min-width: 1400px) {
    .calendarSwiper {
        height: 200px;
    }

    .calendarSwiper .swiper-slide {
        height: 160px;
    }

    .calendar-date {
        font-size: 3rem;
    }

    .calendar-month {
        font-size: 1.2rem;
    }

    .calendar-day {
        font-size: 1.1rem;
    }
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/* Базовые стили для изображения слайдера */
.slider__slide-img {
    width: 100%; /* Гарантируем ширину, чтобы aspect-ratio работал корректно */
    height: auto; /* Высота подстраивается автоматически */
    display: block;
    object-fit: cover;
    aspect-ratio: 1 / 1; /* Квадрат по умолчанию (для мобильных) */
}

/* Стили для десктопов (экраны шире 992px) */
@media (min-width: 992px) {
    .slider__slide-img {
        aspect-ratio: auto; /* Отключаем соотношение сторон */
        height: 400px;      /* Фиксированная высота */
        object-fit: cover;  /* Обрезка, чтобы заполнить область */
    }
}