/* ==========================================================
   СТРАНИЦА «ОБУЧАЮЩИМСЯ»
   Подключать после main_0_3.css
========================================================== */

.student-page {
    --student-blue: #012951;
    --student-blue-2: #0a3f71;
    --student-light-blue: #79d3f5;
    --student-orange: #ea6645;
    --student-text: #17212b;
    --student-muted: #687786;
    --student-border: #dce5ec;
    --student-surface: #f4f7fa;
    overflow: hidden;
}

.student-page,
.student-page * {
    box-sizing: border-box;
}

.student-page a {
    text-decoration: none;
}

/* ==========================================================
   ПЕРВЫЙ ЭКРАН
========================================================== */

.student-page #homepage-slider.student-hero {
    position: relative;
    width: 100%;
    margin: 0 0 28px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--student-blue);
    box-shadow: 0 10px 28px rgba(1, 41, 81, 0.14);
}

.student-page .student-hero .flexslider {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.student-page .student-hero .slides,
.student-page .student-hero .slide,
.student-page .student-hero .student-hero__figure,
.student-page .student-hero .slide-wrapper,
.student-page .student-hero .inner {
    width: 100%;
    min-height: 360px !important;
    height: 360px !important;
    margin: 0 !important;
}

.student-page .student-hero__figure {
    position: relative;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center 42%;
    background-size: cover;
}

.student-page .student-hero__figure::before {
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    width: 150px;
    height: 5px;
    content: "";
    background: var(--student-orange);
}

.student-page .student-hero__overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(1, 29, 56, 0.95) 0%,
        rgba(1, 42, 80, 0.80) 44%,
        rgba(1, 42, 80, 0.25) 100%
    );
}

.student-page .student-hero .slide-wrapper,
.student-page .student-hero .inner,
.student-page .student-hero .container {
    position: relative;
    z-index: 2;
}

.student-page .student-hero .inner {
    display: block !important;
    text-align: left !important;
}

.student-page .student-hero__content {
    max-width: 590px;
    padding-top: 82px;
}

.student-page .student-hero__label {
    display: block;
    margin-bottom: 12px;
    color: var(--student-light-blue);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700 !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.student-page .student-hero__title {
    display: block;
    max-width: 560px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #ffffff;
    font-size: 43px !important;
    line-height: 1.12;
    font-weight: 700 !important;
    letter-spacing: -0.025em;
    text-align: left !important;
    text-transform: none !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.student-page .student-hero__title::after {
    display: none !important;
}

.student-page .student-hero__line {
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 20px;
    background: var(--student-orange);
}

.student-page .student-hero img.hdn {
    display: none !important;
}

/* ==========================================================
   ПАМЯТКИ ПЕРВОКУРСНИКАМ
========================================================== */

.student-page .student-content-section {
    position: relative;
}

.student-page .student-guides-section {
    padding: 0 0 38px;
}

.student-page .student-guides {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.student-page .student-guide-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 17px;
    min-height: 108px;
    padding: 19px 48px 19px 19px;
    overflow: hidden;
    border: 1px solid var(--student-border);
    border-radius: 12px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
        url("/uploads/thumbs/fon_rr.webp");
    color: var(--student-text) !important;
    box-shadow: 0 6px 18px rgba(1, 41, 81, 0.07);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.student-page .student-guide-card::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    content: "";
    background: #1769aa;
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.student-page .student-guide-card__icon {
    flex: 0 0 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #edf5f9;
}

.student-page .student-guide-card__icon img {
    display: block;
    width: 43px;
    height: 43px;
    object-fit: contain;
}

.student-page .student-guide-card__content {
    display: block;
    flex: 1;
    min-width: 0;
}

.student-page .student-guide-card__label {
    display: block;
    margin-bottom: 5px;
    color: #1769aa;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700 !important;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.student-page .student-guide-card__title {
    display: block;
    color: #082d57;
    font-size: 13px;
    line-height: 1.42;
    font-weight: 700;
}

.student-page .student-guide-card__arrow {
    position: absolute;
    top: 50%;
    right: 18px;
    color: var(--student-orange);
    font-size: 21px;
    line-height: 1;
    transform: translateY(-50%);
    transition: transform 0.25s ease;
}

.student-page .student-guide-card:hover,
.student-page .student-guide-card:focus {
    border-color: #c5d6e2;
    color: var(--student-text) !important;
    box-shadow: 0 12px 26px rgba(1, 41, 81, 0.12);
    transform: translateY(-3px);
}

.student-page .student-guide-card:hover::before,
.student-page .student-guide-card:focus::before {
    transform: scaleY(1);
}

.student-page .student-guide-card:hover .student-guide-card__arrow,
.student-page .student-guide-card:focus .student-guide-card__arrow {
    transform: translate(4px, -50%);
}

/* ==========================================================
   ФОТОМОЗАИКА
========================================================== */

.student-page .student-mosaic-section {
    padding-bottom: 52px;
}

.student-page #news_filial.student-mosaic {
    margin: 0 !important;
}

.student-page .student-mosaic__grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.58fr) minmax(0, 0.95fr) !important;
    grid-template-rows: 500px !important;
    gap: 16px !important;
    width: 100%;
    height: auto !important;
    margin: 0 !important;
}

.student-page .student-mosaic__middle,
.student-page .student-mosaic__middle-grid,
.student-page .student-mosaic__small-grid,
.student-page .student-mosaic__right-grid {
    min-width: 0;
    min-height: 0;
}

.student-page .student-mosaic__middle-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 138px 228px 102px !important;
    gap: 16px !important;
    height: 100% !important;
}

.student-page .student-mosaic__small-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr) !important;
    grid-template-rows: 228px !important;
    gap: 16px !important;
    height: 100% !important;
}

.student-page .student-mosaic__right-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: 290px 194px !important;
    gap: 16px !important;
    height: 100% !important;
}

.student-page .student-tile {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 13px;
    background-color: var(--student-blue);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: #ffffff !important;
    box-shadow: 0 7px 20px rgba(1, 41, 81, 0.12);
    isolation: isolate;
    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.student-page .student-tile::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    background: linear-gradient(
        180deg,
        rgba(1, 32, 62, 0.03) 18%,
        rgba(1, 38, 73, 0.38) 56%,
        rgba(1, 35, 68, 0.96) 100%
    );
    transition: background 0.3s ease;
}

.student-page .student-tile::after {
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: "";
    background: var(--student-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.student-page .student-tile__content {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 21px 22px;
}

.student-page .student-tile__title {
    display: block;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 13px rgba(0, 0, 0, 0.28);
}

.student-page .student-tile__arrow {
    flex: 0 0 auto;
    color: var(--student-orange);
    font-size: 21px;
    line-height: 1;
    opacity: 0;
    transform: translateX(-5px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.student-page .student-tile--council .student-tile__title {
    font-size: 24px;
}

.student-page .student-tile--grants::before {
    background: linear-gradient(
        90deg,
        rgba(1, 38, 73, 0.94) 0%,
        rgba(1, 38, 73, 0.70) 48%,
        rgba(1, 38, 73, 0.20) 100%
    );
}

.student-page .student-tile:hover,
.student-page .student-tile:focus {
    color: #ffffff !important;
    box-shadow: 0 15px 32px rgba(1, 41, 81, 0.2);
    transform: translateY(-4px);
}

.student-page .student-tile:hover::before,
.student-page .student-tile:focus::before {
    background: linear-gradient(
        180deg,
        rgba(1, 32, 62, 0.01) 13%,
        rgba(1, 38, 73, 0.30) 50%,
        rgba(1, 35, 68, 0.98) 100%
    );
}

.student-page .student-tile:hover::after,
.student-page .student-tile:focus::after {
    transform: scaleX(1);
}

.student-page .student-tile:hover .student-tile__arrow,
.student-page .student-tile:focus .student-tile__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================
   ОБЩИЙ ЗАГОЛОВОК ТЁМНЫХ СЕКЦИЙ
========================================================== */

.student-page .student-section-heading {
    position: relative;
    z-index: 2;
    margin: 0 0 28px;
}

.student-page .student-section-heading__label {
    display: block;
    margin-bottom: 7px;
    color: var(--student-light-blue);
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.student-page .student-section-heading h2 {
    display: block;
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
    text-transform: none;
}

.student-page .student-section-heading h2::after {
    display: none;
}

.student-page .student-section-heading__line {
    display: block;
    width: 46px;
    height: 3px;
    margin-top: 14px;
    background: var(--student-orange);
}

/* ==========================================================
   СТАТИСТИКА
========================================================== */

.student-page .student-stats {
    position: relative;
    margin: 0;
    padding: 50px 0 56px;
    overflow: hidden;
    background: var(--student-blue);
}

.student-page .student-stats__background,
.student-page .student-stats__overlay {
    position: absolute;
    inset: 0;
}

.student-page .student-stats__background {
    z-index: 0;
    background-repeat: no-repeat;
    background-position: center 42%;
    background-size: cover;
}

.student-page .student-stats__overlay {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(1, 29, 56, 0.95), rgba(1, 43, 81, 0.84)),
        url("/uploads/thumbs/fon_rr.webp");
}

.student-page .student-stats .container {
    position: relative;
    z-index: 2;
}

.student-page .student-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.student-page .student-stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 175px;
    margin: 0;
    padding: 29px 34px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(5px);
}

.student-page .student-stat-card::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    content: "";
    background: var(--student-orange);
}

.student-page .student-stat-card__number {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 58px;
    line-height: 1;
    font-weight: 300 !important;
    letter-spacing: -0.04em;
}

.student-page .student-stat-card__title {
    display: block;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ==========================================================
   ВОЗМОЖНОСТИ ДЛЯ СТУДЕНТА
========================================================== */

.student-page .student-opportunities {
    position: relative;
    min-height: 410px;
    margin: 34px 0 50px;
    padding: 62px 0;
    overflow: hidden;
    background: var(--student-blue);
}

.student-page .student-opportunities__background,
.student-page .student-opportunities__overlay {
    position: absolute;
    inset: 0;
}

.student-page .student-opportunities__background {
    z-index: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.student-page .student-opportunities__overlay {
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(1, 29, 56, 0.97) 0%,
        rgba(1, 39, 75, 0.86) 50%,
        rgba(1, 39, 75, 0.34) 100%
    );
}

.student-page .student-opportunities .container {
    position: relative;
    z-index: 2;
}

.student-page .student-opportunities__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
    gap: 40px;
    align-items: center;
}

.student-page .student-opportunities__label {
    display: block;
    margin-bottom: 8px;
    color: var(--student-light-blue);
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.student-page .student-opportunities__content h2 {
    display: block;
    margin: 0;
    color: #ffffff;
    font-size: 31px;
    line-height: 1.25;
    font-weight: 700;
    text-transform: none;
}

.student-page .student-opportunities__content h2::after {
    display: none;
}

.student-page .student-opportunities__line {
    display: block;
    width: 46px;
    height: 3px;
    margin: 16px 0 18px;
    background: var(--student-orange);
}

.student-page .student-opportunities__content p {
    max-width: 570px;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 400;
}

.student-page .student-opportunities__button {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-top: 19px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.33);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.student-page .student-opportunities__button span {
    font-weight: 700 !important;
}

.student-page .student-opportunities__button span:last-child {
    color: var(--student-orange);
    font-size: 18px;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.student-page .student-opportunities__button:hover,
.student-page .student-opportunities__button:focus {
    border-color: var(--student-orange);
    background: var(--student-orange);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.student-page .student-opportunities__button:hover span:last-child,
.student-page .student-opportunities__button:focus span:last-child {
    color: #ffffff;
    transform: translateX(3px);
}

.student-page .student-opportunities__video {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 230px;
}

.student-page .student-video-play {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 102px;
    height: 102px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;
    background: rgba(1, 41, 81, 0.52);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.student-page .student-video-play::before {
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    content: "";
}

.student-page .student-video-play img {
    display: block;
    width: 70px;
    max-width: 70px;
    height: 70px;
    object-fit: contain;
}

.student-page .student-video-play:hover,
.student-page .student-video-play:focus {
    border-color: var(--student-orange);
    background: var(--student-orange);
    transform: scale(1.05);
}

/* ==========================================================
   ПЛАНШЕТЫ
========================================================== */

@media (max-width: 991px) {
    .student-page .student-hero .slides,
    .student-page .student-hero .slide,
    .student-page .student-hero .student-hero__figure,
    .student-page .student-hero .slide-wrapper,
    .student-page .student-hero .inner {
        min-height: 330px !important;
        height: 330px !important;
    }

    .student-page .student-hero__content {
        padding-top: 76px;
    }

    .student-page .student-hero__title {
        max-width: 500px;
        font-size: 37px !important;
    }

    .student-page .student-guide-card {
        min-height: 118px;
        padding: 18px 43px 18px 17px;
    }

    .student-page .student-mosaic__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr) !important;
        grid-template-rows: 420px 240px !important;
    }

    .student-page .student-mosaic__right-grid {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: 240px !important;
    }

    .student-page .student-mosaic__middle-grid {
        grid-template-rows: 112px 190px 86px !important;
    }

    .student-page .student-mosaic__small-grid {
        grid-template-rows: 190px !important;
    }

    .student-page .student-opportunities__grid {
        grid-template-columns: minmax(0, 1fr) 250px;
        gap: 25px;
    }

    .student-page .student-opportunities__content h2 {
        font-size: 27px;
    }
}

/* ==========================================================
   ТЕЛЕФОНЫ
========================================================== */

@media (max-width: 767px) {
    .student-page #homepage-slider.student-hero {
        margin-bottom: 22px;
        border-radius: 9px;
    }

    .student-page .student-hero .slides,
    .student-page .student-hero .slide,
    .student-page .student-hero .student-hero__figure,
    .student-page .student-hero .slide-wrapper,
    .student-page .student-hero .inner {
        min-height: 290px !important;
        height: 290px !important;
    }

    .student-page .student-hero__figure {
        background-position: 61% center;
    }

    .student-page .student-hero__figure::before {
        width: 76px;
        height: 4px;
    }

    .student-page .student-hero__content {
        max-width: 300px;
        padding: 62px 15px 0;
    }

    .student-page .student-hero__label {
        margin-bottom: 10px;
        font-size: 9px;
    }

    .student-page .student-hero__title {
        max-width: 285px;
        font-size: 29px !important;
        line-height: 1.16;
    }

    .student-page .student-hero__line {
        width: 40px;
        margin-top: 16px;
    }

    .student-page .student-guides-section {
        padding-bottom: 30px;
    }

    .student-page .student-guides {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .student-page .student-guide-card {
        min-height: 102px;
        padding: 15px 42px 15px 14px;
        border-radius: 10px;
    }

    .student-page .student-guide-card__icon {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
    }

    .student-page .student-guide-card__icon img {
        width: 39px;
        height: 39px;
    }

    .student-page .student-guide-card__title {
        font-size: 12px;
    }

    .student-page .student-mosaic-section {
        padding-bottom: 38px;
    }

    .student-page .student-mosaic__grid,
    .student-page .student-mosaic__middle-grid,
    .student-page .student-mosaic__small-grid,
    .student-page .student-mosaic__right-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: none !important;
        gap: 12px !important;
        height: auto !important;
    }

    .student-page .student-mosaic__right-grid {
        grid-column: auto;
    }

    .student-page .student-tile {
        min-height: 180px;
        border-radius: 10px;
    }

    .student-page .student-tile--council {
        min-height: 250px;
    }

    .student-page .student-tile__content {
        padding: 18px;
    }

    .student-page .student-tile__title,
    .student-page .student-tile--council .student-tile__title {
        font-size: 17px;
    }

    .student-page .student-tile__arrow {
        opacity: 1;
        transform: none;
    }

    .student-page .student-stats {
        padding: 39px 0 42px;
    }

    .student-page .student-section-heading {
        margin-bottom: 19px;
    }

    .student-page .student-section-heading h2 {
        font-size: 23px;
    }

    .student-page .student-stats__grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .student-page .student-stat-card {
        min-height: 140px;
        padding: 24px 28px;
        border-radius: 11px;
    }

    .student-page .student-stat-card__number {
        font-size: 47px;
    }

    .student-page .student-stat-card__title {
        font-size: 12px;
    }

    .student-page .student-opportunities {
        min-height: 0;
        margin: 28px 0 42px;
        padding: 46px 0 40px;
    }

    .student-page .student-opportunities__overlay {
        background: rgba(1, 33, 64, 0.90);
    }

    .student-page .student-opportunities__grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .student-page .student-opportunities__content {
        padding: 0 5px;
    }

    .student-page .student-opportunities__content h2 {
        font-size: 25px;
    }

    .student-page .student-opportunities__content p {
        font-size: 13px;
    }

    .student-page .student-opportunities__video {
        min-height: 170px;
    }

    .student-page .student-video-play {
        width: 86px;
        height: 86px;
    }

    .student-page .student-video-play img {
        width: 59px;
        max-width: 59px;
        height: 59px;
    }
}

/* ==========================================================
   СЕНСОРНЫЕ УСТРОЙСТВА И ДОСТУПНОСТЬ
========================================================== */

@media (hover: none) {
    .student-page .student-guide-card:hover,
    .student-page .student-tile:hover,
    .student-page .student-video-play:hover {
        transform: none;
    }

    .student-page .student-tile__arrow {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .student-page *,
    .student-page *::before,
    .student-page *::after {
        transition: none !important;
    }
}
/* ==========================================================
   ИСПРАВЛЕНИЕ ШИРИНЫ СТРАНИЦЫ И ПЕРВОГО ЭКРАНА
========================================================== */

/* Страница не должна выходить за границы родительской колонки */

.student-page {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/*
   На этой странице Bootstrap .container уже находится
   внутри основного контейнера сайта, поэтому фиксированная
   ширина 1170 px здесь не нужна.
*/

.student-page .container {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

/* Все крупные секции не выходят за ширину страницы */

.student-page .student-content-section,
.student-page .student-guides,
.student-page .student-mosaic,
.student-page .student-mosaic__grid,
.student-page .student-stats,
.student-page .student-opportunities {
    width: 100%;
    max-width: 100%;
}

/* ==========================================================
   ПЕРВЫЙ ЭКРАН – УБИРАЕМ СИНЮЮ ПУСТОТУ
========================================================== */

.student-page #homepage-slider.student-hero {
    width: 100% !important;
    height: 370px !important;
    min-height: 370px !important;
    max-height: 370px !important;
    margin: 0 0 28px !important;
    overflow: hidden !important;
    border-radius: 12px;
    background: #012951;
}

/*
   Используем ID, чтобы перебить старые правила:
   #homepage-slider .flexslider { height: 600px; }
*/

.student-page #homepage-slider.student-hero .flexslider,
.student-page #homepage-slider.student-hero .flex-viewport,
.student-page #homepage-slider.student-hero .slides,
.student-page #homepage-slider.student-hero .slide,
.student-page #homepage-slider.student-hero .student-hero__figure,
.student-page #homepage-slider.student-hero .slide-wrapper,
.student-page #homepage-slider.student-hero .inner {
    width: 100% !important;
    height: 400px !important;
    min-height: 370px !important;
    max-height: 400px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Старый CSS делал figure абсолютным и высотой 600 px */

.student-page #homepage-slider.student-hero
.student-hero__figure {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    overflow: hidden !important;
    background-position: center 43% !important;
    background-size: cover !important;
}

/* Контейнер текста */

.student-page #homepage-slider.student-hero
.student-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 47%;
    max-width: 560px;
    height: 370px;
    padding: 0 0 0 20px;
}

/* Заголовок немного компактнее */

.student-page #homepage-slider.student-hero
.student-hero__title {
    max-width: 510px;
    margin: 0 !important;
    font-size: 39px !important;
    line-height: 1.15 !important;
}

/* Затемнение делаем мягче */

.student-page #homepage-slider.student-hero
.student-hero__overlay {
    background: linear-gradient(
        90deg,
        rgba(1, 29, 56, 0.96) 0%,
        rgba(1, 42, 80, 0.82) 0%,
        rgba(1, 42, 80, 0.34) 0%,
        rgba(1, 42, 80, 0.12) 0%
    ) !important;
}

/* ==========================================================
   ПАМЯТКИ
========================================================== */

.student-page .student-guides-section {
    padding: 0 0 36px;
}

.student-page .student-guides {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.student-page .student-guide-card {
    width: 100%;
    min-width: 0;
    min-height: 104px;
    padding: 17px 44px 17px 17px;
}

/* Длинный текст не должен расширять карточку */

.student-page .student-guide-card__content,
.student-page .student-guide-card__title {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* ==========================================================
   ФОТОМОЗАИКА
========================================================== */

.student-page .student-mosaic__grid {
    grid-template-columns:
        minmax(0, 1.02fr)
        minmax(0, 1.55fr)
        minmax(0, 0.92fr) !important;

    width: 100% !important;
    max-width: 100% !important;
    gap: 14px !important;
}

.student-page .student-mosaic__grid > *,
.student-page .student-mosaic__middle,
.student-page .student-mosaic__middle-grid,
.student-page .student-mosaic__small-grid,
.student-page .student-mosaic__right-grid,
.student-page .student-tile {
    min-width: 0 !important;
    max-width: 100% !important;
}

/* ==========================================================
   ПЛАНШЕТ
========================================================== */

@media (max-width: 991px) {

    .student-page #homepage-slider.student-hero,
    .student-page #homepage-slider.student-hero .flexslider,
    .student-page #homepage-slider.student-hero .flex-viewport,
    .student-page #homepage-slider.student-hero .slides,
    .student-page #homepage-slider.student-hero .slide,
    .student-page #homepage-slider.student-hero .student-hero__figure,
    .student-page #homepage-slider.student-hero .slide-wrapper,
    .student-page #homepage-slider.student-hero .inner {
        height: 335px !important;
        min-height: 335px !important;
        max-height: 335px !important;
    }

    .student-page #homepage-slider.student-hero
    .student-hero__content {
        width: 56%;
        height: 335px;
        padding-left: 20px;
    }

    .student-page #homepage-slider.student-hero
    .student-hero__title {
        font-size: 34px !important;
    }

    .student-page .student-mosaic__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) !important;
        grid-template-rows: 430px auto !important;
    }

    .student-page .student-mosaic__right-grid {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: 210px !important;
    }
}

/* ==========================================================
   ТЕЛЕФОН
========================================================== */

@media (max-width: 767px) {

    .student-page #homepage-slider.student-hero,
    .student-page #homepage-slider.student-hero .flexslider,
    .student-page #homepage-slider.student-hero .flex-viewport,
    .student-page #homepage-slider.student-hero .slides,
    .student-page #homepage-slider.student-hero .slide,
    .student-page #homepage-slider.student-hero .student-hero__figure,
    .student-page #homepage-slider.student-hero .slide-wrapper,
    .student-page #homepage-slider.student-hero .inner {
        height: 285px !important;
        min-height: 285px !important;
        max-height: 285px !important;
    }

    .student-page #homepage-slider.student-hero {
        margin-bottom: 20px !important;
        border-radius: 9px;
    }

    .student-page #homepage-slider.student-hero
    .student-hero__figure {
        background-position: 62% center !important;
    }

    .student-page #homepage-slider.student-hero
    .student-hero__content {
        width: 70%;
        max-width: 290px;
        height: 285px;
        padding-left: 16px;
    }

    .student-page #homepage-slider.student-hero
    .student-hero__title {
        max-width: 275px;
        font-size: 28px !important;
        line-height: 1.17 !important;
    }

    .student-page .student-guides {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .student-page .student-guide-card {
        min-height: 94px;
        padding: 15px 40px 15px 14px;
    }

    .student-page .student-mosaic__grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: none !important;
        gap: 13px !important;
    }

    .student-page .student-mosaic__middle-grid,
    .student-page .student-mosaic__small-grid,
    .student-page .student-mosaic__right-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: none !important;
        gap: 13px !important;
    }

    .student-page .student-tile--council {
        min-height: 340px;
    }

    .student-page .student-tile--career,
    .student-page .student-tile--grants,
    .student-page .student-tile--schedule,
    .student-page .student-tile--sport {
        min-height: 190px;
    }

    .student-page .student-tile--library,
    .student-page .student-tile--news {
        min-height: 180px;
    }
}
/* ==========================================================
   Точное положение фотографий на мобильных устройствах
========================================================== */

@media screen and (max-width: 767px) {

    /* Главная фотография – показываем больше правой части */
    .student-page
    #homepage-slider.student-hero
    .student-hero__figure {
        background-position: 78% center !important;
    }

    /* Студсовет – поднимаем кадр, чтобы голова не обрезалась */
    .student-page
    .student-mosaic__grid
    .student-tile.student-tile--council {
        background-position: 50% 8% !important;
        background-size: cover !important;
    }
}
/* Верхняя фотография – правильное положение на телефоне */
@media screen and (max-width: 767px) {

    body .student-page
    #homepage-slider.student-hero
    figure.student-hero__figure[style] {
        background-position: 42% center !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
    }
}