/* ================================================================
   VF-CUSTOM.CSS — Витебская областная филармония
   Аккуратные круглые кнопки, без переделки структуры
   ================================================================ */

:root {
    --vf-primary: #5B2D8E;
    --vf-primary-light: #7B45B5;
    --vf-secondary: #4A6BC8;
    --vf-accent: #8E5FD4;
    --vf-accent-light: #B48AEF;
    --vf-gradient: linear-gradient(135deg, #7B45B5 0%, #4A6BC8 100%);
    --vf-gradient-hover: linear-gradient(135deg, #8E5FD4 0%, #5A7ED8 100%);
    --vf-shadow: 0 4px 14px rgba(91, 45, 142, 0.35);
    --vf-shadow-hover: 0 8px 22px rgba(91, 45, 142, 0.5);
    --vf-transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ================================================================
   1. КНОПКА "КУПИТЬ БИЛЕТ ОНЛАЙН" + её контейнер
   ================================================================ */

/* Убираем фон у контейнера кнопки (был прямоугольный) */
.afisha-bilet {
    background: transparent !important;
    padding: 12px !important;
    text-align: center;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    overflow: hidden;
}

/* Сама кнопка */
.afisha-bilet a {
    display: inline-block !important;
    background: var(--vf-gradient) !important;
    color: #ffffff !important;
    padding: 12px 28px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 12.5px !important;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    text-decoration: none !important;
    transition: var(--vf-transition) !important;
    border: none !important;
    box-shadow: var(--vf-shadow);
    position: relative;
    overflow: hidden;
}

.afisha-bilet a:hover {
    background: var(--vf-gradient-hover) !important;
    transform: translateY(-3px);
    box-shadow: var(--vf-shadow-hover);
    color: #ffffff !important;
}

.afisha-bilet a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.afisha-bilet a:hover::before {
    left: 100%;
}

/* ================================================================
   2. КНОПКА "СМОТРЕТЬ ВСЕ КОНЦЕРТЫ"
   ================================================================ */
.all-consert {
    text-align: center;
    margin: 40px 0 20px;
}

.all-consert a {
    display: inline-block;
    background: transparent;
    color: var(--vf-primary) !important;
    padding: 13px 40px;
    border: 2px solid var(--vf-primary);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12.5px;
    transition: var(--vf-transition);
    text-decoration: none !important;
}

.all-consert a:hover {
    background: var(--vf-gradient);
    color: #ffffff !important;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--vf-shadow);
}

/* ================================================================
   3. КНОПКА "НАВЕРХ"
   ================================================================ */
#toTop {
    background: var(--vf-gradient) !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: var(--vf-shadow);
    transition: var(--vf-transition);
    border: none !important;
    cursor: pointer;
    right: 25px !important;
    bottom: 25px !important;
    font-size: 0 !important; /* скрываем текст, если он есть */
}

#toTop:hover {
    background: var(--vf-gradient-hover) !important;
    transform: translateY(-4px);
    box-shadow: var(--vf-shadow-hover);
}

#toTop::before {
    content: "↑";
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    color: #ffffff;
    transform: translateY(-1px);
}

#toTop i {
    display: none !important;
}

/* ================================================================
   4. ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ RU / BE
   ================================================================ */
.language-switcher-language-url ul.links {
    display: inline-flex;
    gap: 3px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    list-style: none;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.language-switcher-language-url ul.links li {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

.language-switcher-language-url ul.links li a {
    display: inline-block;
    padding: 4px 12px !important;
    border-radius: 50px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
    text-decoration: none !important;
    transition: var(--vf-transition);
}

.language-switcher-language-url ul.links li a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.language-switcher-language-url ul.links li a.is-active {
    background: var(--vf-gradient) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(91, 45, 142, 0.35);
}

/* ================================================================
   5. КНОПКА "ВЕРСИЯ ДЛЯ СЛАБОВИДЯЩИХ"
   ================================================================ */
.vi-special-block-image {
    border-radius: 50px !important;
    transition: var(--vf-transition) !important;
}

.vi-special-block-image:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ================================================================
   6. МЕЛКИЕ ШТРИХИ ОФОРМЛЕНИЯ
   ================================================================ */

/* Дата концерта — фиолетовым */
.data-afisha {
    color: var(--vf-primary) !important;
    font-weight: 700 !important;
}

/* Бейдж "Славянский базар" */
.primechanie:not(:empty) {
    display: inline-block;
    background: var(--vf-gradient);
    color: #ffffff !important;
    padding: 3px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    box-shadow: 0 2px 6px rgba(91, 45, 142, 0.25);
}

/* Hover на заголовках афиши */
.afisha-content-title-3 h2.afisha a {
    transition: var(--vf-transition);
}

.afisha-content-title-3 h2.afisha a:hover {
    color: var(--vf-primary) !important;
}

/* Hover на новостях / фото / видео */
h4.field-content.news a,
h3.field-content.news a {
    transition: var(--vf-transition);
}

h4.field-content.news a:hover,
h3.field-content.news a:hover {
    color: var(--vf-primary) !important;
}

/* Точки навигации слайдера */
.flex-control-paging li a {
    transition: var(--vf-transition);
}

.flex-control-paging li a.flex-active {
    background: var(--vf-accent) !important;
    transform: scale(1.2);
}

/* Красивое выделение текста */
::selection {
    background: var(--vf-accent);
    color: #ffffff;
}

::-moz-selection {
    background: var(--vf-accent);
    color: #ffffff;
}

/* ================================================================
   7. СКРУГЛЕНИЯ ИЗОБРАЖЕНИЙ И КАРТОЧЕК
   ================================================================ */

/* ---------- Карточки афиши (главная страница) ---------- */
.afisha-content-block {
    border-radius: 16px;
    overflow: hidden;
    transition: var(--vf-transition);
}

.afisha-content-block img,
.afisha-content-block .image-style-afisha-title {
    border-radius: 0;
    display: block;
    width: 100%;
    transition: transform 0.5s ease;
}

.afisha-content-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(91, 45, 142, 0.18);
}

.afisha-content-block:hover img {
    transform: scale(1.03);
}

/* Обёртка ссылки с картинкой */
.afisha-content-block a.image-popup,
.afisha-content-block a.overlayed {
    display: block;
    overflow: hidden;
    position: relative;
}

/* Overlay при наведении */
.afisha-content-block .overlay {
    background: linear-gradient(180deg, transparent 55%, rgba(91, 45, 142, 0.5) 100%) !important;
    transition: var(--vf-transition) !important;
}

/* ---------- Картинки в новостях, фото, видео ---------- */
.views-field-field-image-news .field-content,
.views-field-field-foto .field-content,
.views-field-field-video-embed .field-content {
    overflow: hidden;
    border-radius: 14px;
    display: block;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: var(--vf-transition);
}

.views-field-field-image-news .field-content:hover,
.views-field-field-foto .field-content:hover,
.views-field-field-video-embed .field-content:hover {
    box-shadow: 0 10px 26px rgba(91, 45, 142, 0.2);
    transform: translateY(-3px);
}

.views-field-field-image-news img,
.views-field-field-foto img,
.views-field-field-video-embed img {
    display: block;
    width: 100%;
    transition: transform 0.5s ease;
}

.views-field-field-image-news a:hover img,
.views-field-field-foto a:hover img,
.views-field-field-video-embed a:hover img {
    transform: scale(1.05);
}

/* ---------- Картинки в блоке "Проекты" ---------- */
#postcontent .col-md-3 img {
    border-radius: 14px;
    transition: var(--vf-transition);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    display: block;
    width: 100%;
}

#postcontent .col-md-3 p {
    overflow: hidden;
    border-radius: 14px;
    margin-bottom: 12px;
}

#postcontent .col-md-3:hover img {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(91, 45, 142, 0.2);
}

/* ---------- Слайдер главной страницы ---------- */
.flexslider {
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.flexslider .slides img {
    border-radius: 0;
}

/* ---------- Аватары и мелкие превью ---------- */
.field--type-image img,
img.image-style-medium,
img.image-style-thumbnail {
    border-radius: 10px;
}

/* ---------- Плавное появление всех картинок ---------- */
img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ================================================================
   8. СТРУКТУРА КАРТОЧКИ АФИШИ — фиксированные пропорции
   ================================================================ */

/* Общая карточка */
.afisha-content-block {
    background: #ffffff !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid #eae6f0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--vf-transition);
}

.afisha-content-block:hover {
    box-shadow: 0 14px 32px rgba(91, 45, 142, 0.2);
    border-color: rgba(142, 95, 212, 0.3);
    transform: translateY(-4px);
}

/* Верхний блок с информацией (дата, зал, бейдж) — фиксированная высота */
.afisha-content-description {
    background: transparent !important;
    padding: 14px 18px 8px !important;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 3px;
}

/* Дата */
.data-afisha {
    color: var(--vf-primary) !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    background: transparent !important;
    display: block;
    line-height: 1.3;
    margin: 0;
}

/* Зал */
.zal {
    color: #666 !important;
    font-size: 12px !important;
    background: transparent !important;
    display: block;
    line-height: 1.3;
    margin: 0;
}

/* Заголовок карточки — фиксированная высота с обрезкой длинных */
.afisha-content-title-3 {
    background: transparent !important;
    padding: 10px 18px !important;
    min-height: 72px;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
}

.afisha-content-title-3 h2.afisha {
    margin: 0;
    line-height: 1.35;
    width: 100%;
}

.afisha-content-title-3 h2.afisha a {
    color: #1a1a2e !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: var(--vf-transition);
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    hyphens: manual;
}

.afisha-content-title-3 h2.afisha a:hover {
    color: var(--vf-primary) !important;
}

/* Обёртка картинки — фиксированный aspect-ratio */
.afisha-content-block a.image-popup,
.afisha-content-block a.overlayed {
    display: block;
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 7;
    background: #f5f3f8;
}

.afisha-content-block a.image-popup img,
.afisha-content-block a.overlayed img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
}

/* Overlay */
.afisha-content-block .overlay {
    background: linear-gradient(180deg, transparent 55%, rgba(91, 45, 142, 0.5) 100%) !important;
}

/* ================================================================
   9. КНОПКА "КУПИТЬ БИЛЕТ" — прижата к низу
   ================================================================ */

/* Контейнер кнопки — прижимается к низу карточки */
.grid__content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.grid__content > div:last-child,
.views-field-field-link-buy {
    margin-top: auto;
}

.afisha-bilet {
    background: transparent !important;
    padding: 14px !important;
    text-align: center;
    margin-top: auto;
}

/* ================================================================
   10. ТОЧЕЧНАЯ ЗАМЕНА КОРИЧНЕВЫХ ССЫЛОК НА РОЗОВЫЕ
   Красим только контентные области, не трогая меню/футер/кнопки
   ================================================================ */

:root {
    --vf-pink:       #e91e8c;
    --vf-pink-hover: #ff4db3;
}

/* --- Розовые ТОЛЬКО внутри контента статей и текстовых блоков --- */
html body .field--type-text-with-summary a,
html body .field--type-text-with-summary a:link,
html body .field--type-text-with-summary a:visited,
html body .field--name-body a,
html body .field--name-body a:link,
html body .field--name-body a:visited,
html body .text-formatted a,
html body .text-formatted a:link,
html body .text-formatted a:visited,
html body .node__content a,
html body .node__content a:link,
html body .node__content a:visited {
    color: var(--vf-pink) !important;
}

html body .field--type-text-with-summary a:hover,
html body .field--name-body a:hover,
html body .text-formatted a:hover,
html body .node__content a:hover {
    color: var(--vf-pink-hover) !important;
}

/* --- Исключаем от розового: картинки-ссылки и кнопки внутри контента --- */
html body .field--name-body a img,
html body .text-formatted a img {
    color: inherit !important;
}

/* ================================================================
   11. БЛОК "ПРОЕКТЫ" — белые ссылки и заголовки
   (перебивает розовый из блока №10)
   ================================================================ */

/* Заголовок "ПРОЕКТЫ" (h1 с ссылкой .white) */
html body #postcontent h1.title a,
html body #postcontent h1.title a:link,
html body #postcontent h1.title a:visited,
html body #postcontent h1.title a.white {
    color: #ffffff !important;
}

html body #postcontent h1.title a:hover {
    color: var(--vf-accent-light) !important;
}

/* Заголовки-ссылки под картинками проектов (h4.news) */
html body #postcontent h4.news a,
html body #postcontent h4.news a:link,
html body #postcontent h4.news a:visited,
html body #postcontent .col-md-3 h4 a,
html body #postcontent .col-md-3 h4 a:link,
html body #postcontent .col-md-3 h4 a:visited {
    color: #ffffff !important;
    font-weight: 600;
    transition: var(--vf-transition);
}

html body #postcontent h4.news a:hover,
html body #postcontent .col-md-3 h4 a:hover {
    color: var(--vf-accent-light) !important;
}

/* Обёртка картинок-ссылок — тоже белым (на случай если "просвечивает") */
html body #postcontent .col-md-3 p a,
html body #postcontent .col-md-3 p a:link,
html body #postcontent .col-md-3 p a:visited {
    color: #ffffff !important;
}

/* Убираем подчёркивание при hover, если было */
html body #postcontent a:hover {
    text-decoration: none !important;
}

/* ================================================================
   12. ИКОНКИ СОЦСЕТЕЙ В ФУТЕРЕ
   Убираем всё лишнее — оставляем оригинальные цвета
   ================================================================ */

/* Сбрасываем всё что могло сломать иконки */
html body #block-socialnyemedia p a img,
html body #block-socialnyemedia img.align-right {
    opacity: 1 !important;
    filter: none !important;
    transition: transform 0.3s ease, filter 0.3s ease !important;
    cursor: pointer;
}

/* Красивый эффект при наведении */
html body #block-socialnyemedia p a:hover img,
html body #block-socialnyemedia a:hover img.align-right {
    transform: scale(1.2) translateY(-3px);
    filter: drop-shadow(0 4px 10px rgba(233, 30, 140, 0.6)) !important;
}

/* ================================================================
   13. ПОИСК В ШАПКЕ — современный круглый вид (исправленная версия)
   ================================================================ */

/* Убираем ПАРАЗИТНЫЙ псевдоэлемент серого прямоугольника */
html body #block-newsplus-lite-search .form-actions::after,
html body #block-newsplus-lite-search .form-actions::before,
html body .block-search .form-actions::after,
html body .block-search .form-actions::before {
    display: none !important;
    content: none !important;
    background: transparent !important;
}

/* Контейнер поиска — центрируем */
html body #block-newsplus-lite-search {
    max-width: 500px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Форма — flex-контейнер */
html body #block-newsplus-lite-search form,
html body #block-newsplus-lite-search form.search-block-form {
    display: flex !important;
    align-items: center;
    gap: 10px;
    position: relative;
    width: 100%;
}

/* Обёртка инпута — растягивается */
html body #block-newsplus-lite-search .js-form-item,
html body #block-newsplus-lite-search .form-item {
    flex: 1 1 auto;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* Само поле ввода */
html body #block-newsplus-lite-search input.form-search,
html body #block-newsplus-lite-search input[type="search"] {
    width: 100% !important;
    height: 48px !important;
    padding: 0 24px !important;
    border-radius: 50px !important;
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    line-height: 1 !important;
    outline: none !important;
    transition: var(--vf-transition) !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    box-sizing: border-box !important;
}

html body #block-newsplus-lite-search input.form-search::placeholder,
html body #block-newsplus-lite-search input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

html body #block-newsplus-lite-search input.form-search:focus,
html body #block-newsplus-lite-search input[type="search"]:focus {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: var(--vf-accent-light) !important;
    box-shadow: 0 0 0 4px rgba(180, 138, 239, 0.2) !important;
    color: #ffffff !important;
}

/* Контейнер кнопки — убираем ЛЮБОЕ абсолютное позиционирование */
html body #block-newsplus-lite-search .form-actions,
html body #block-newsplus-lite-search #edit-actions,
html body #block-newsplus-lite-search .form-wrapper {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    display: flex !important;
    align-items: center;
}

/* Кнопка поиска — круглая с градиентом и SVG-лупой */
html body #block-newsplus-lite-search input.search-form__submit,
html body #block-newsplus-lite-search input[type="submit"] {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    border: none !important;
    cursor: pointer;
    font-size: 0 !important;
    color: transparent !important;
    text-indent: -9999px;
    box-shadow: var(--vf-shadow);
    transition: var(--vf-transition) !important;
    position: relative !important;
    z-index: 2;
    -webkit-appearance: none !important;
    appearance: none !important;

    /* Градиент + иконка лупы через SVG */
    background:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") center center / 22px 22px no-repeat,
        linear-gradient(135deg, #7B45B5 0%, #4A6BC8 100%) !important;
}

html body #block-newsplus-lite-search input.search-form__submit:hover,
html body #block-newsplus-lite-search input[type="submit"]:hover {
    transform: translateY(-2px) rotate(-6deg);
    box-shadow: var(--vf-shadow-hover);
    background:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") center center / 22px 22px no-repeat,
        linear-gradient(135deg, #8E5FD4 0%, #5A7ED8 100%) !important;
}

/* ================================================================
   14. КНОПКА "КУПИТЬ БИЛЕТ ОНЛАЙН" на странице концерта
   Стилизуем как круглую кнопку с главной
   ================================================================ */

/* Убираем прямоугольный фон-контейнер */
html body .field--name-field-bilet-onlayn {
    background: transparent !important;
    padding: 20px 0 !important;
    text-align: center !important;
    font-size: inherit !important;
    text-transform: none !important;
    margin: 20px 0 !important;
}

/* Сама ссылка внутри — превращаем в круглую кнопку */
html body .field--name-field-bilet-onlayn a,
html body .field--name-field-bilet-onlayn a:link,
html body .field--name-field-bilet-onlayn a:visited {
    display: inline-block !important;
    background: var(--vf-gradient) !important;
    color: #ffffff !important;
    padding: 16px 40px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    text-decoration: none !important;
    transition: var(--vf-transition) !important;
    border: none !important;
    box-shadow: var(--vf-shadow) !important;
    position: relative;
    overflow: hidden;
}

/* Эффект при наведении — светлее + подъём */
html body .field--name-field-bilet-onlayn a:hover {
    background: var(--vf-gradient-hover) !important;
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: var(--vf-shadow-hover) !important;
    text-decoration: none !important;
}

/* Красивый блик при наведении */
html body .field--name-field-bilet-onlayn a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

html body .field--name-field-bilet-onlayn a:hover::before {
    left: 100%;
}

/* Если внутри поля текст без ссылки — тоже красиво оформляем */
html body .field--name-field-bilet-onlayn .field__item {
    display: inline-block !important;
    background: transparent !important;
}

/* Отступы сверху/снизу сделать минимальными */
html body .field--name-field-bilet-onlayn {
    background: transparent !important;
    padding: 0px 0 !important;
    margin: 0px 0 !important;
    text-align: center !important;
    font-size: inherit !important;
    text-transform: none !important;
}

/* ================================================================
   15. НАЗВАНИЕ КОНЦЕРТА НА СТРАНИЦЕ "АФИША" (список)
   Компактный блок с обрезкой длинных названий
   ================================================================ */

/* Убираем table-cell и большую высоту у h2.afisha */
html body h2.afisha {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 5px 6px !important;
    margin: 0 !important;
    font-size: 12.5px !important;
    line-height: 0.35 !important;
    text-transform: uppercase;
    font-weight: 700 !important;
    text-align: center;
    background: #ffffff;
    vertical-align: baseline !important;
    box-sizing: border-box;
}

/* Ссылка внутри — обрезка длинных названий на 2 строки */
html body h2.afisha a,
html body h2.afisha a:link,
html body h2.afisha a:visited {
    color: #1a1a2e !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    text-decoration: none !important;
    transition: var(--vf-transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;   /* 2 строки — если хочется 3, замените на 3 */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    hyphens: auto;
    min-height: 34px;         /* фиксирует высоту, чтобы карточки были одинаковыми */
    text-align: center;
}

html body h2.afisha a:hover {
    color: var(--vf-primary) !important;
}