/* Главная страница: правки адаптива поверх resources/css/custom/slider.css. */

/* «Подробнее» в слайдере — ссылка, а не <button> внутри <a>. */
#unique-hero-slider a.slide-button {
    display: inline-block;
    align-self: flex-start;
    text-decoration: none;
}

#unique-hero-slider .slide-poster-link {
    display: none;
}

@media (max-width: 1024px) {
    #unique-hero-slider a.slide-button {
        align-self: center;
    }

    /* Постер «Закон и Порядок» — картинка с текстом и QR-кодом. Под затемнением
       он превращался в нечитаемый фон, поэтому на узких экранах показываем его целиком. */
    #unique-hero-slider .slide--poster .slide-inner {
        background-image: none !important;
        background-color: #324266;
    }

    #unique-hero-slider .slide--poster .slide-inner::before {
        display: none;
    }

    #unique-hero-slider .slide--poster .slide-content {
        position: absolute !important;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    #unique-hero-slider .slide--poster .slide-image-box {
        display: block !important;
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
        bottom: 2.25rem;
        left: 0.75rem;
        margin: 0;
        aspect-ratio: auto;
        background-size: contain !important;
        background-color: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    #unique-hero-slider .slide--poster .slide-poster-link {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 15;
    }
}

/* Длинные подписи вроде «Высшие/Исследовательские школы» не вылезают из плашки. */
.quick-links-grid a > i {
    flex-shrink: 0;
}

.quick-links-grid a > span {
    min-width: 0;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

@media (max-width: 767px) {
    .quick-links-grid a {
        min-height: 2.25rem;
    }
}
