/* Общие стили для корневого элемента (если есть) */
.front-materials-view {
    position: relative;
    /* Возможно, потребуется overflow: hidden;, если дочерние view выходят за его пределы при анимации */
    /* overflow: hidden; */
}

.front-materials-sections {
    /* Этот контейнер может не требовать 100vh, если view позиционируются абсолютно */
    /* height: 100vh; */
    position: relative;
    /* Для корректного позиционирования дочерних absolute элементов */
    width: 100vw;
    height: 100vh;
    /* Оставляем, если это основной контейнер на весь экран */
    overflow: hidden;
    /* Важно, чтобы уезжающие вниз блоки обрезались */
}

.front-materials-button {
    margin: 60px 0 30px 80px;
    text-align: left;
    position: relative;
    /* Чтобы кнопка была поверх view, если они перекрывают */
    z-index: 10;
    /* Выше чем view */
}

.front-materials-new-button {
    display: inline-block;
    padding: 26px 80px;
    background: #11b0cc;
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 2.2vw;
    letter-spacing: 1px;
    border: none;
    border-radius: 20px;
    box-shadow: none;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.18s, color 0.18s;
}

.front-materials-new-button:hover,
.front-materials-new-button:focus {
    background: #1198b6;
    color: #e6f3fe;
}











/* === Стили для Секции Документов === */
.front-documents-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
    font-family: inherit;
    z-index: 3;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out, visibility 0.6s;
}

.front-documents-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: left top;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.front-documents-bump-label {
    position: absolute;
    top: clamp(15px, 1.2vw, 30px);
    right: clamp(20px, 1.8vw, 45px);
    z-index: 5;
    color: var(--docs-title-color);
    font-size: clamp(17px, 2.6vw, 40px);
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    gap: clamp(8px, 0.8vw, 15px);
    user-select: none;
    transition: font-size 0.3s, opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.front-documents-bump-icon {
    width: clamp(20px, 2vw, 38px);
    height: auto;
    filter: invert(1) grayscale(1) brightness(2);
    pointer-events: none;
}

.front-documents-title {
    position: absolute;
    left: 5vw;
    top: 6vw;
    z-index: 2;
    font-size: clamp(18px, 2.7vw, 44px);
    font-weight: 700;
    color: var(--docs-title-color);
    letter-spacing: 1px;
    text-align: left;
    max-width: 65vw;
    text-transform: uppercase;
    line-height: 1.2;
    transition: font-size 0.3s;
}

.front-documents-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    max-width: 1700px;
    margin: calc(13vw + 20px) auto 0 auto;
    gap: 3vw;
    padding-bottom: 2vw;
}

.front-documents-man-wrap {
    align-items: stretch;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    min-width: 36vw;
    max-width: 39vw;
    height: 30vw;
}

.front-documents-man-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.front-documents-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4vw;
    width: 49vw;
    padding-top: 1vw;
}

.front-documents-item {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2vw, 30px);
    font-size: clamp(17px, 2vw, 33px);
    font-weight: 700;
    color: var(--docs-title-color);
    width: 100%;
    border-radius: 999px;
    min-height: clamp(36px, 4vw, 72px);
    margin: 0;
    padding-left: 0;
    transition: font-size .2s;
}


.front-documents-label {
    display: flex;
    align-items: center;
    gap: 1vw;
    font-size: inherit;
    font-weight: 700;
    color: var(--docs-title-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-grow: 1;
}

.front-documents-svg-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.front-documents-docsvg {
    width: clamp(18px, 2vw, 42px);
    height: auto;
    display: block;
}

.front-documents-btn {
    font-size: clamp(13px, 1.5vw, 24px);
    background: var(--docs-btn-bg);
    color: var(--docs-btn-color);
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    transition: background 0.15s, color 0.15s;
    padding: clamp(4px, 0.5vw, 10px) clamp(80px, 5vw, 105px);
    box-shadow: none;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
}

.front-documents-btn:hover {
    background: #e6f3fe;
    color: #2674b6;
}












/* === Стили для Секции Фото === */
.front-photos-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
    font-family: inherit;
    z-index: 2;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out, visibility 0.6s;
}

.front-photos-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: left top;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.front-photos-bump-label {
    position: absolute;
    top: 1.2vw;
    right: 3vw;
    z-index: 5;
    color: #fff;
    font-size: clamp(17px, 2.2vw, 40px);
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    gap: 0.6vw;
    user-select: none;
    transition: font-size 0.3s, opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.front-photos-bump-icon {
    margin-left: 0.9vw;
    width: clamp(20px, 2vw, 38px);
    height: auto;
    filter: invert(1) grayscale(1) brightness(2);
    pointer-events: none;
}

/* --- ИЗМЕНЕНО (1) --- */
.front-photos-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1920px;
    /* Увеличена максимальная ширина для больших экранов */
    margin: 7vw auto 0 auto;
    gap: 0.5vw;
    padding-bottom: 4vw;
}

/* --- ИЗМЕНЕНО (2) --- */
.front-photos-top-btn {
    width: 94%;
    /* Увеличена ширина контейнера кнопки */
    margin: 0 auto 1vw auto;
}

.front-photos-new-button {
    width: 100%;
    padding: 10px 0;
    background: #fff;
    color: #0B2C5D;
    font-family: inherit;
    font-weight: 700;
    font-size: clamp(18px, 2vw, 38px);
    border: none;
    border-radius: 26px;
    box-shadow: none;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.4px;
    text-align: center;
    display: block;
    transition: background .18s, color .18s;
}

.front-photos-new-button:hover,
.front-photos-new-button:focus {
    background: #1198b6;
    color: #e6f3fe;
}

/* --- ИЗМЕНЕНО (3) --- */
.front-photos-swiper-container {
    width: 98%;
    /* Увеличена ширина контейнера слайдера */
    margin: 0 auto;
}

/* ----- swiper базовый ----- */
.custom-photo-swiper {
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    box-sizing: border-box;
    min-width: 400px;
    position: relative;
    z-index: 2;
}

.custom-photo-swiper-wrapper {
    align-items: stretch;
}

.custom-photo-swiper-slide {
    background: #fff;
    border-radius: 2vw;
    overflow: hidden;
    box-shadow: 0 0 18px rgba(40, 170, 200, .12);
    display: flex;
    align-items: stretch;
    justify-content: center;
    aspect-ratio: 4/3;
    height: auto;
    min-width: 0;
    min-height: 0;
}

.custom-photo-swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}







/* === Стили для Секции Видео === */
.front-videos-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
    font-family: inherit;
    z-index: 1;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out, visibility 0.6s;
}

.front-videos-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: left top;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.front-videos-bump-label {
    position: absolute;
    top: 1.2vw;
    right: 3vw;
    z-index: 5;
    color: #fff;
    font-size: clamp(17px, 2.2vw, 40px);
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    gap: 0.6vw;
    user-select: none;
    transition: font-size 0.3s, opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.front-videos-bump-icon {
    margin-left: 0.9vw;
    width: clamp(20px, 2vw, 38px);
    height: auto;
    filter: invert(1) grayscale(1) brightness(2);
    pointer-events: none;
}

/* --- ИЗМЕНЕНО (1) --- */
.front-videos-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1920px;
    /* Увеличена максимальная ширина всего блока */
    margin: 7vw auto 0 auto;
    gap: 0.5vw;
    padding-bottom: 4vw;
}

.front-videos-title {
    width: 96%;
    font-size: clamp(18px, 2.5vw, 40px);
    font-weight: 750;
    margin-bottom: 2.2vw;
    color: #fff;
    letter-spacing: 0.8px;
    text-align: left;
    text-transform: uppercase;
    padding: 0 0 0 2vw;
    box-sizing: border-box;
}

.front-videos-content-block {
    background: transparent;
    width: 98%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5vw;
}

.front-videos-flex-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    gap: 2vw;
    background: transparent;
    flex-wrap: wrap;
}

.front-videos-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: transparent;
    max-width: 40vw;
    min-width: 300px;
    width: 100%;
    padding: 2.3vw 2vw;
    box-sizing: border-box;
}

.front-videos-content-text {
    color: #fff;
    font-size: clamp(16px, 1.6vw, 27px);
    font-weight: 400;
    line-height: 1.25;
    text-align: left;
    white-space: pre-line;
}

.front-videos-video-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    max-width: 800px;
    min-width: 300px;
    padding: 1vw 1vw 1vw 0;
    box-sizing: border-box;
}

.front-videos-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 200px;
    max-width: 720px;
    background: #fff;
    border-radius: 1.5vw;
    overflow: hidden;
    box-shadow: 0 0 24px rgba(18, 105, 122, 0.07), 0 2px 24px rgba(18, 178, 226, 0.09);
    display: flex;
    align-items: center;
    justify-content: center;
}

.front-videos-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #fff;
}

.front-videos-video.no-video {
    color: #b6bbc2;
    font-size: 1.25em;
    justify-content: center;
    align-items: center;
    background: #f2f6fa;
    height: 200px;
    aspect-ratio: auto;
}

/* --- ИЗМЕНЕНО (2) --- */
.front-videos-top-btn {
    width: 94%;
    /* Увеличена ширина контейнера кнопки */
    margin-top: 1vw;
    position: relative;
    z-index: 2;
}

.front-videos-new-button {
    width: 100%;
    padding: 10px 0;
    background: #fff;
    color: #0B2C5D;
    font-family: inherit;
    font-weight: 700;
    font-size: clamp(18px, 2vw, 38px);
    border: none;
    border-radius: 26px;
    box-shadow: none;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.4px;
    text-align: center;
    display: block;
    transition: background .18s, color .18s;
}

.front-videos-new-button:hover,
.front-videos-new-button:focus {
    background: #1198b6;
    color: #e6f3fe;
}


/* === Общие классы для анимации стека (Добавленные) === */

/* Общий класс для всех View (добавляется через JS, но можно и вручную в HTML) */
.front-section-view {
    /* Стили уже применены к конкретным .front-*-view */
}

/* Класс для скрытого состояния View */
.front-section-view.is-hidden {
    transform: translateY(100vh);
    /* Сдвигаем вниз на всю высоту экрана */
    opacity: 0;
    visibility: hidden;
    /* Скрываем полностью */
    pointer-events: none;
    /* Отключаем взаимодействие с уехавшим блоком */
}

/* Общий класс для всех Label (добавляется через JS, но можно и вручную в HTML) */
.front-section-label {
    /* Стили уже применены к конкретным .front-*-bump-label */
    /* Добавим небольшую анимацию нажатия */
    transition: transform 0.1s ease, opacity 0.3s ease, visibility 0.3s ease, font-size 0.3s;
    /* Добавили transform */
}

.front-section-label:active {
    transform: scale(0.95);
    /* Легкое уменьшение при клике */
}


/* Класс для скрытого состояния Label */
.front-section-label.label-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}