

@import url("../twentytwentyfour/style.css");

body {
    margin: 0;
}

.bg-primary {
    background-color: var(--color-primary, #64BDE1);
}

.text-primary {
    color: var(--color-primary, #64BDE1);
}

.tp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-height: 40px;
    padding: 0 80px;
    border-radius: 20px;
    border: 1px solid transparent;
    font-size: inherit; 
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 200ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.tp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.tp-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.tp-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary, #3b82f6) 35%, white);
}

.tp-btn--dark {
    background-color: #000000;
    color: #ffffff;
}

.tp-btn--primary {
    background-color: var(--color-primary, #3b82f6);
    color: #ffffff;
}

.tp-btn--outline {
    background-color: transparent;
    border-color: var(--color-primary, #3b82f6);
    color: #000000;
}

.tp-btn--outline-light {
    background-color: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

.tp-btn--white {
    background-color: #ffffff;
    color: #000000;
}

.nav-link,
.nav-link:visited {
    color: #000000;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--color-primary, #64BDE1);
}


.tp-hero-title {
    color: #ffffff;
}

.tp-hero-subtitle {
    color: #ffffff;
}

.footer-link,
.footer-link:visited {
    color: #ffffff;
    text-decoration: none;
    transition: color 200ms ease, opacity 200ms ease;
}

.footer-link:hover {
    color: var(--color-primary, #64BDE1);
}

/* Фиксируем размер карточек статистики */
.tp-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    background-color: var(--color-primary, #64BDE1);
    box-shadow: 0 0px 4px rgba(0, 0, 0, 0.25);
    padding: 16px;
    text-align: center;
    overflow: hidden;
    /* Убираем min-width и max-width — сетка сама управляет размером */
}

/* Чтобы текст в карточках не ломал размер */
.tp-stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    word-break: break-word;
}

.tp-stat-card .stat-label {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #ffffff;
    line-height: 1.3;
    word-break: break-word;
    max-width: 100%;
}

/* Для больших экранов увеличиваем цифры */
@media (min-width: 768px) {
    .tp-stat-card .stat-number {
        font-size: 3.5rem;
    }
    .tp-stat-card .stat-label {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .tp-stat-card .stat-number {
        font-size: 4rem;
    }
    .tp-stat-card .stat-label {
        font-size: 1.125rem;
    }
}

/* Адаптация для мобильных устройств */
@media (max-width: 640px) {
    .tp-stat-card {
        padding: 12px;
        min-height: 140px; /* минимальная высота для очень маленьких экранов */
    }
    
    .tp-stat-card .stat-number {
        font-size: 2rem;
    }
    
    .tp-stat-card .stat-label {
        font-size: 0.75rem;
        margin-top: 8px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 400px) {
    .tp-stat-card {
        padding: 8px;
        min-height: 100px;
    }
    
    .tp-stat-card .stat-number {
        font-size: 1.5rem;
    }
    
    .tp-stat-card .stat-label {
        font-size: 0.65rem;
        margin-top: 4px;
    }
}

/* @media (min-width: 640px) {
    .tp-stat-card {
        max-width: 220px;
        height: 220px;
    }
}

@media (min-width: 1024px) {
    .tp-stat-card {
        max-width: 290px;
        height: 290px;
    }
} */

.tp-faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0px 40px;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: #000000;
    transition: color 200ms ease;
    font-size: 1.25rem;
    font-weight: 400;
}

.tp-faq-item:hover .tp-faq-trigger {
    color: var(--color-primary, #64BDE1);
}

/* Для мобильных устройств */
@media (max-width: 640px) {
    .tp-faq-trigger {
        font-size: 1.125rem; /* 18px - чуть меньше на мобилках, но всё равно больше стандартного */
        padding: 0 20px; /* уменьшаем отступы на мобилках */
    }
    
    .tp-faq-content-inner {
        padding: 0 20px 20px 20px;
    }
}

.tp-faq-item {
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
    transition: background-color 200ms ease;
    box-shadow: 0 0px 4px rgba(0, 0, 0, 0.25);
}

.tp-faq-item:hover {
    background-color: rgba(100, 189, 225, 0.08);
}

.tp-faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transform: rotate(180deg);
    transition: transform 200ms ease;
}

.tp-faq-icon.is-open {
    transform: rotate(0deg);
}

.tp-faq-content {
    background: #ffffff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 280ms ease;
}

.tp-faq-content-inner {
    padding: 0 40px 20px 40px;
}

.tp-direction-card {
    box-shadow: 0 0px 4px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.tp-direction-card:hover {
    transform: translateY(-3px);
    background-color: rgba(100, 189, 225, 0.06);
}

.team-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: relative !important;
    margin-top: 5rem !important;
}

.team-pagination .swiper-pagination-bullet {
    background: #cbd5e1 !important;
    opacity: 1 !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.team-pagination .swiper-pagination-bullet-active {
    background: var(--color-primary, #64BDE1) !important;
    width: 24px !important;
    border-radius: 20px !important;
}

.team-swiper-button-prev,
.team-swiper-button-next {
    width: 40px !important;
    height: 40px !important;
    background: transparent !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.team-swiper-button-prev:hover,
.team-swiper-button-next:hover {
    opacity: 1 !important;
}

.team-swiper-button-prev::after,
.team-swiper-button-next::after {
    font-size: 18px !important;
    font-weight: bold !important;
    color: var(--color-primary, #64BDE1) !important;
    opacity: 0.5 !important;
}

.team-swiper-button-prev:hover::after,
.team-swiper-button-next:hover::after {
    opacity: 1 !important;
}


.team-pagination .swiper-pagination-bullet {
    background: #cbd5e1 !important;
    opacity: 1 !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
}

.team-pagination .swiper-pagination-bullet-active {
    background: var(--color-primary, #64BDE1) !important;
    width: 24px !important;
    border-radius: 20px !important;
}

.teamSwiper {
    overflow: hidden !important;
    padding: 20px !important; 
}

.teamSwiper .swiper-slide {
    height: auto !important;
}


.team-swiper-button-prev {
    left: -20px !important;
    right: auto !important;
}

.team-swiper-button-next {
    right: -20px !important;
    left: auto !important;
}

.team-swiper-button-prev,
.team-swiper-button-next {
    width: 40px !important;
    height: 40px !important;
    background: transparent !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    position: absolute !important;
    top: 45% !important;
    transform: translateY(-50%) !important;
    z-index: 20 !important;
}

.team-swiper-button-prev::after,
.team-swiper-button-next::after {
    font-size: 24px !important;
    font-weight: bold !important;
    color: var(--color-primary, #64BDE1) !important;
    opacity: 0.5 !important;
}

.team-swiper-button-prev:hover::after,
.team-swiper-button-next:hover::after {
    opacity: 1 !important;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}


.gallery-slide {
    display: none;
}
.gallery-slide:first-child {
    display: block;
}


.bvi-shortcode a {
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
}
.bvi-shortcode a svg {
    width: 16px !important;
    height: 16px !important;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prose p {
    margin-bottom: 1em;
    line-height: 1.6;
}

.prose strong,
.prose b {
    font-weight: 700;
}

.prose ul,
.prose ol {
    margin: 1em 0;
    padding-left: 1.5em;
}

.prose li {
    margin-bottom: 0.5em;
}

    
.mobile-faq-icon {
    transition: transform 0.3s ease;
}
    
/* .rotate-180 {
    transform: rotate(180deg) !important;
} */

@layer base {
  h1 {
    font-size: var(--font-size-h1);
    line-height: var(--line-height-h1);
    font-weight: 700;
  }
  h2 {
    font-size: var(--font-size-h2);
    line-height: var(--line-height-h2);
    font-weight: 300;
  }
  h3 {
    font-size: var(--font-size-h3);
    line-height: var(--line-height-h3);
    font-weight: 600;
  }
}

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


/* ==================== SVG ИКОНКИ ==================== */

/* Базовый размер и цвет для всех SVG в карточках направлений */
.tp-direction-card svg {
    width: 80px !important;
    height: 80px !important;
    color: var(--color-primary) !important; 
    fill: currentColor !important;
}

.cards-with-icon-icon {
    color: #ffffff;
}

.cards-with-icon-icon svg,
.cards-with-icon-icon svg * {
    fill: currentColor !important;
    stroke: none !important;
}

/* На планшетах - чуть крупнее */
@media (min-width: 768px) {
    .tp-direction-card svg {
        width: 90px !important;
        height: 90px !important;
    }
}

/* На десктопе - ещё крупнее */
@media (min-width: 1024px) {
    .tp-direction-card svg {
        width: 90px !important;
        height: 90px !important;
    }
}

/* Принудительно перекрашиваем все внутренние элементы SVG */
.tp-direction-card svg,
.tp-direction-card svg path,
.tp-direction-card svg circle,
.tp-direction-card svg rect,
.tp-direction-card svg polygon,
.tp-direction-card svg g,
.tp-direction-card svg * {
    fill: currentColor !important;
    stroke: none !important;
}

/* Убираем любые эффекты при наведении (иконки не меняются) */
.tp-direction-card:hover svg,
.tp-direction-card:hover svg path,
.tp-direction-card:hover svg circle,
.tp-direction-card:hover svg rect,
.tp-direction-card:hover svg polygon,
.tp-direction-card:hover svg g,
.tp-direction-card:hover svg * {
    fill: currentColor !important;
}

/* ==================== ЛОГОТИПЫ ПАРТНЁРОВ ==================== */

/* Контейнер с логотипами - всегда в одну строку */
.partners-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.partners-logos img {
    flex-shrink: 1;
    flex-grow: 0;
    min-width: 60px;
    height: 60px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 640px) {
    .partners-logos {
        gap: 1rem;
    }
    .partners-logos img {
        height: 40px;
        min-width: 40px;
    }
}

@media (max-width: 480px) {
    .partners-logos {
        gap: 0.75rem;
    }
    .partners-logos img {
        height: 30px;
        min-width: 30px;
    }
}
/* Фильтры на странице мероприятий (template-parts/event-section.php): кнопки сайта .tp-btn в одну строку */
#event-section {
    padding-top: 0; /* от заголовка до кнопок остаётся только его mb-10 (40px) */
}

.tp-event-filters {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px; /* от кнопок до карточек */
}

.tp-event-filters .tp-btn {
    flex-shrink: 0;
    padding: 0 32px; /* у .tp-btn 80px — пять кнопок в ряд не влезут */
}

.tp-filter-year {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 48px !important;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364BDE1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 20px center;
    font-family: inherit;
}

/* На компьютере кнопки равномерно занимают всю ширину контейнера */
@media (min-width: 1024px) {
    .tp-event-filters {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
    }
    .tp-event-filters .tp-btn {
        min-width: 0;
        padding: 0 16px;
    }
    .tp-event-filters .tp-filter-year {
        text-align: center;
        text-align-last: center;
    }
}

/* Отступы карточек: между рядами и от последнего ряда до футера */
#event-section [data-event-grid] {
    row-gap: 40px;
    margin-bottom: 32px;
}

@media (max-width: 767px) {
    #event-section [data-event-grid] {
        row-gap: 24px;
    }
}

/* На узких экранах строка не переносится, а листается вбок */
@media (max-width: 767px) {
    .tp-event-filters {
        justify-content: flex-start;
        gap: 8px;
        margin-left: -24px;
        margin-right: -24px;
        padding: 6px 24px 10px; /* место под тень/подъём при наведении */
        overflow-x: auto;
        scrollbar-width: none;
    }
    .tp-event-filters::-webkit-scrollbar {
        display: none;
    }
    .tp-event-filters .tp-btn {
        padding: 0 20px;
    }
}

.tp-event-empty {
    padding: 48px 0;
    color: rgba(0, 0, 0, 0.6);
    text-align: center;
}

/* Видео из шорткода [vk_video] (плагин RUS Video Embeds): плагин задаёт iframe height:auto + aspect-ratio,
   а Safari/iOS это не поддерживает и рисует iframe высотой 150px. Растягиваем на всю рамку 16:9 плагина. */
.rve-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

/* «Как добраться» (template-parts/how-to-get.php): карта слева, адрес справа */
.tp-how-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.tp-how-map {
    min-height: 450px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}

.tp-how-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: 0;
}

.tp-how-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 8px 0 8px 16px;
}

.tp-how-link {
    display: inline-block;
    text-decoration: none;
    transition: color 200ms ease;
}

.tp-how-link:hover {
    color: var(--color-primary, #64BDE1);
}

.tp-how-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.tp-how-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--color-primary, #64BDE1);
    color: #ffffff;
}

.tp-how-icon {
    width: 24px;
    height: 24px;
}

.tp-how-label {
    margin: 0 0 4px;
    color: rgba(0, 0, 0, 0.55);
}

.tp-how-text {
    margin: 0;
    color: #000000;
}

@media (max-width: 1023px) {
    .tp-how-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .tp-how-map,
    .tp-how-map iframe {
        min-height: 380px;
    }
    .tp-how-info {
        padding: 8px 0 0;
        gap: 20px;
    }
}

/* Картинки в тексте из редактора (старый шаблон мероприятий/проектов, страницы) не шире колонки:
   в редакторе им бывает задана ширина в пикселях (например, width: 1234px у логотипов организаторов) */
main .prose img,
main .wp-block-image img {
    max-width: 100%;
    height: auto !important;
}

main .prose iframe {
    max-width: 100%;
}
