.media__content {
    margin-top: 40px;
}

.media__video {
    width: 100%;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
}

.media__video-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #131313a1;
    z-index: 2;
}

.media__video-btn {
    cursor: pointer;
    transition: all 0.2s ease;
}

.media__video-btn {
    object-fit: contain;
}

.media__video-btn:hover {
    opacity: 0.8;
}

.media__list-item .media__video-btn {
    width: 33px;
    height: 40px;
}

.media__video.free .plyr__controls,
.media__video.free .plyr--full-ui.plyr--video .plyr__control--overlaid {
    display: none;
}

.media__list {
    margin-top: 4px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.media__main {
    width: 100%;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.media__list-item {
    width: calc(100% / 3 - (48px / 3));
    aspect-ratio: 16/16;
    cursor: pointer;
}

.media-page {
    margin-top: 40px;
}

@media (max-width: 980px) {
    .media__list {
        gap: 12px;
    }
    .media__list-item {
        width: calc(100% / 2 - (24px / 2));
    }
}

@media (max-width: 640px) {
    .media__list-item {
        width: 100%;
    }
    .media__video-btn {
        width: 50px;
        height: 50px;
    }
    .media__video-btn img {
        object-fit: contain;
    }
    .media__main {
        aspect-ratio: 16/16;
    }
}

/* Стили для аккредитации СМИ */
.media__accreditation-btn-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.media__accreditation-modal .modal__content {
    padding: 20px;
}

.media__accreditation-btn-bg {
    background: linear-gradient(90deg, #6C471B 0%, #D89731 50%, #E1D29B 100%);
    padding: 2px;
    transition: all 0.3s ease;
}

.media__accreditation-btn {
    padding: 16px 32px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffcb3c;
    cursor: pointer;
    background: #000;
    text-align: center;
    display: inline-block;
}

.media__accreditation-btn-bg:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.media__accreditation-form-wrapper {
    width: 100%;
}

.media__accreditation-title {
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 24px;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 8px;
}

.media__accreditation-subtitle {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #fff;
    margin-bottom: 24px;
}

.media__accreditation-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.media__accreditation-form-item {
    width: 100%;
}

.media__accreditation-form-item.fullwidth {
    width: 100%;
}

.media__accreditation-form-group-title {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 18px;
    line-height: 112%;
    color: #a4a4a4;
    margin-top: 10px;
    margin-bottom: -10px;
}

/* Пресс-группа */
.media__press-group {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 0px;
}

.media__press-group-member {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.media__press-group-member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.media__press-group-member-title {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    color: #fff;
}

.media__press-group-member-remove {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-family: var(--font-family);
    font-weight: 300;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.media__press-group-member-remove:hover {
    background: rgba(255, 77, 77, 0.2);
    border-color: rgba(255, 77, 77, 0.5);
    color: #ff4d4d;
}

.media__press-group-form-item {
    width: 100%;
}

.media__press-group-add-btn-wrapper {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.media__press-group-add-btn {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-family: var(--font-family);
    font-weight: 300;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.media__press-group-add-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.media__press-group-add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Кнопка отправки */
.media__accreditation-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

/* Сообщение об успехе */
.media__accreditation-success {
    text-align: center;
    padding: 40px 20px;
}

.media__accreditation-submit-btn {
    height: 60px;
    font-size: 22px;
}

.media__accreditation-submit-btn .button-inner {
    padding: 0 20px;
}

.media__accreditation-success-title {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 28px;
    color: #fff;
    margin-bottom: 16px;
}

.media__accreditation-success-text {
    font-family: var(--font-family);
    font-weight: 300;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    line-height: 1.6;
}

.media__accreditation-success-actions {
    display: flex;
    justify-content: center;
}

.media__accreditation-close-btn {
    border: 1px solid #a9a9a9;
    padding: 0px 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--second-family);
    font-weight: 700;
    font-size: 16px;
    line-height: 125%;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    background: none;
    transition: all 0.3s ease;
}

.media__accreditation-close-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

#media-captcha-container + .input__error {
    margin-top: 12px;
}

@media (max-width: 768px) {
    .media__accreditation-title {
        font-size: 24px;
    }
    
    .media__press-group-member {
        padding: 16px;
    }
    
    .media__accreditation-submit-btn {
        width: 100%;
    }
    
    .media__accreditation-close-btn {
        width: 100%;
    }
}

.sm__content {
    margin-top: 40px;
    font-family: var(--font-family);
    font-weight: 300;
    font-size: 16px;
    line-height: 150%;
    color: rgba(255, 255, 255, 0.8);
    /* max-width: 800px; */
    margin: 0 auto;
}

.sm__content p + p {
    margin-top: 15px;
}

.sm__content h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 20px;
    margin-top: 30px
}

.media__accreditation-btn-wrapper {
    justify-content: flex-start !important;
}

.sm__content{
    margin-top: 60px;
}

.sm__content p a {
    color: inherit;
    text-decoration: underline;
    display: inline;
    transition: all 200ms;
}

.sm__content p a:hover {
    opacity: 0.8;
}

@media screen and (max-width: 640px) {
    .media__accreditation-btn {
        font-size: 14px;
    }
}

.media_modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    width: 100%;
    height: 100%;
    display: none;
    background: #000000bd;
    padding: 16px;
}

.media_modal_wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.media_modal_content {
    width: 100%;
    height: 90%;
    max-width: 1000px;
    position: relative;
    user-select: none;
}
.media_modal_content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.media_modal_controls_btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 3;
    width: 40px;
    height: 40px;
    background: #0000008f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: all 0.3s ease;
}

.media_modal_controls_btn.prev {
    left: 10px;
}

.media_modal_controls_btn.next {
    left: auto;
    right: 10px;
    transform: rotate(180deg) translateY(50%);
}


.media_modal_close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #0000008f;
    border-radius: 50%;
    padding: 5px;
    transition: all 0.3s ease;
}
.media_modal_close:hover {
    opacity: 0.8;
    transform: translateY(0.5px);
}

.media_modal_download {
    position: absolute;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #0000008f;
    border-radius: 50%;
    padding: 10px;
    transition: all 0.3s ease;
}
.media_modal_download:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

@media screen and (max-width: 640px) {
    .media_modal_controls_btn {
        width: 35px;
        height: 35px;
    }
    .media_modal_controls_btn.next {
        right: 7px;
    }
    .media_modal_controls_btn.prev {
        left: 7px;
    }
}