/* ==========================================================
   MANTOR — approved company gallery concept
   Вынесено из /company/index.php
   ========================================================== */

.js-company-gallery-open {
    cursor: pointer;
}

.photo_item1.js-company-gallery-open {
    position: relative;
}

.js-company-gallery-open:focus-visible {
    outline: 3px solid #083672;
    outline-offset: 4px;
}

.company-gallery-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    color: #000;
}

.company-gallery-modal.is-active {
    display: block;
}

.company-gallery-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.company-gallery-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(860px, calc(100% - 48px));
    max-height: calc(100vh - 56px);
    margin: 28px auto;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
}

.company-gallery-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #083672;
    color: #fff;
    font-size: 28px;
    line-height: 34px;
    cursor: pointer;
}

.company-gallery-modal__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 62px 14px 24px;
    border-bottom: 1px solid rgba(8, 54, 114, 0.12);
}

.company-gallery-modal__subtitle {
    color: rgba(0, 0, 0, 0.35);
    font-size: 10px;
    line-height: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
}

.company-gallery-modal__title {
    color: #000;
    font-size: 28px;
    line-height: 34px;
    font-weight: 500;
}

.company-gallery-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.company-gallery-tabs__button {
    border: 0;
    border-radius: 5px;
    padding: 8px 16px;
    background: rgba(37, 40, 45, 0.08);
    color: rgba(0, 0, 0, 0.5);
    font-size: 13px;
    line-height: 17px;
    cursor: pointer;
}

.company-gallery-tabs__button.is-active {
    background: #083672;
    color: #ffffff;
}

.company-gallery-modal__body {
    padding: 18px 24px 24px;
    overflow-y: auto;
}

.company-gallery-panel[hidden],
.company-gallery-category-view[hidden],
.company-gallery-tiles[hidden] {
    display: none !important;
}

/* Первый экран поповера: компактные разделы Фото */
.company-gallery-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.company-gallery-category-card {
    position: relative;
    display: block;
    height: 132px;
    padding: 0;
    border: 0;
    background: rgba(37, 40, 45, 0.06);
    cursor: pointer;
    text-align: left;
    overflow: hidden;
    color: #fff;
}

.company-gallery-category-card__image {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: rgba(37, 40, 45, 0.08);
}

.company-gallery-category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.company-gallery-category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 15%, rgba(0, 0, 0, 0.66) 100%);
}

.company-gallery-category-card:hover .company-gallery-category-card__image img {
    transform: scale(1.035);
}

.company-gallery-category-card__content {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 2;
    display: block;
    min-width: 0;
}

.company-gallery-category-card__title {
    display: block;
    color: #fff;
    font-size: 18px;
    line-height: 23px;
    font-weight: 500;
    margin-bottom: 5px;
}

.company-gallery-category-card__description {
    display: none;
}

.company-gallery-category-card__count {
    display: inline-flex;
    width: fit-content;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    line-height: 14px;
    font-weight: 500;
}

/* Экран выбранного раздела: как на схеме — заголовок сверху и плитка фото */
.company-gallery-category-view__top {
    position: relative;
    margin-bottom: 18px;
}

.company-gallery-back {
    border: 0;
    border-radius: 5px;
    background: rgba(37, 40, 45, 0.08);
    color: rgba(0, 0, 0, 0.72);
    padding: 8px 12px;
    font-size: 13px;
    line-height: 17px;
    cursor: pointer;
    margin-bottom: 10px;
}

.company-gallery-category-view__title {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(8, 54, 114, 0.22);
    background: rgba(8, 54, 114, 0.04);
    color: #000;
    text-align: center;
    text-transform: uppercase;
    font-size: 22px;
    line-height: 28px;
    font-weight: 500;
    padding: 10px 16px;
}

.company-gallery-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.company-gallery-tile {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(37, 40, 45, 0.06);
    color: #fff;
    text-decoration: none !important;
}

.company-gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.company-gallery-tile:hover img {
    transform: scale(1.04);
}

.company-gallery-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.6) 100%);
    transition: opacity 0.2s ease;
}

.company-gallery-tile:hover::after {
    opacity: 1;
}

.company-gallery-tile span {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 8px;
    z-index: 2;
    color: #fff;
    font-size: 12px;
    line-height: 15px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.company-gallery-tile:hover span {
    opacity: 1;
}

.company-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.company-gallery-video-card {
    position: relative;
    display: block;
    background: rgba(37, 40, 45, 0.06);
    overflow: hidden;
    color: #000;
}

.company-gallery-video-card video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #000;
}

.company-gallery-video-card__title {
    padding: 12px 14px 14px;
    font-size: 15px;
    line-height: 20px;
    font-weight: 500;
    color: #000;
}

body.company-gallery-modal-open {
    overflow: hidden;
}

.fancybox__container {
    z-index: 2147483000 !important;
}

@media (max-width: 900px) {
    .company-gallery-modal__dialog {
        width: calc(100% - 24px);
        max-height: calc(100vh - 24px);
        margin: 12px auto;
    }

    .company-gallery-modal__header {
        display: block;
        padding: 22px 60px 16px 20px;
    }

    .company-gallery-modal__title {
        font-size: 26px;
        line-height: 32px;
        margin-bottom: 14px;
    }

    .company-gallery-tabs {
        width: 100%;
    }

    .company-gallery-tabs__button {
        flex: 1;
    }

    .company-gallery-modal__body {
        padding: 18px;
    }

    .company-gallery-categories,
    .company-gallery-grid {
        grid-template-columns: 1fr;
    }

    .company-gallery-category-card {
        height: 128px;
    }

    .company-gallery-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 560px) {
    .company-gallery-modal__close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 28px;
        line-height: 34px;
    }

    .company-gallery-modal__header {
        padding: 20px 58px 14px 16px;
    }

    .company-gallery-modal__body {
        padding: 16px;
    }

    .company-gallery-category-card {
        height: 116px;
    }

    .company-gallery-category-card__content {
        left: 14px;
        right: 14px;
        bottom: 12px;
    }

    .company-gallery-category-card__title {
        font-size: 16px;
        line-height: 21px;
    }

    .company-gallery-category-view__title {
        font-size: 18px;
        line-height: 24px;
        padding: 9px 12px;
    }

    .company-gallery-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}


/* ==========================================================
   FINAL GALLERY UI FIX:
   - первый поповер: крупные квадратные карточки-разделы;
   - второй поповер: отдельный экран категории поверх первого.
   ========================================================== */

.company-gallery-modal__dialog {
    width: min(980px, calc(100% - 48px)) !important;
}

.company-gallery-categories {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

.company-gallery-category-card {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 4px !important;
}

.company-gallery-category-card__content {
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
}

.company-gallery-category-card__title {
    font-size: 18px !important;
    line-height: 23px !important;
}

.company-gallery-submodal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000001;
    color: #000;
}

.company-gallery-submodal.is-active {
    display: block;
}

.company-gallery-submodal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
}

.company-gallery-submodal__dialog {
    position: relative;
    z-index: 2;
    width: min(1040px, calc(100% - 56px));
    max-height: calc(100vh - 56px);
    margin: 28px auto;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 28px 100px rgba(0, 0, 0, 0.52);
    display: flex;
    flex-direction: column;
}

.company-gallery-submodal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #083672;
    color: #fff;
    font-size: 28px;
    line-height: 34px;
    cursor: pointer;
}

.company-gallery-submodal__header {
    padding: 18px 62px 18px 24px;
    border-bottom: 1px solid rgba(8, 54, 114, 0.12);
}

.company-gallery-submodal__back {
    border: 0;
    border-radius: 5px;
    background: rgba(37, 40, 45, 0.08);
    color: rgba(0, 0, 0, 0.72);
    padding: 8px 12px;
    font-size: 13px;
    line-height: 17px;
    cursor: pointer;
    margin-bottom: 14px;
}

.company-gallery-submodal__subtitle {
    color: rgba(0, 0, 0, 0.35);
    font-size: 10px;
    line-height: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.company-gallery-submodal__title {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(8, 54, 114, 0.22);
    background: rgba(8, 54, 114, 0.04);
    color: #000;
    text-align: center;
    text-transform: uppercase;
    font-size: 24px;
    line-height: 30px;
    font-weight: 500;
    padding: 10px 16px;
}

.company-gallery-submodal__body {
    padding: 24px;
    overflow-y: auto;
}

.company-gallery-submodal .company-gallery-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.company-gallery-submodal .company-gallery-tile {
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(8, 54, 114, 0.16);
}

@media (max-width: 1100px) {
    .company-gallery-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    .company-gallery-modal__dialog,
    .company-gallery-submodal__dialog {
        width: calc(100% - 24px) !important;
        max-height: calc(100vh - 24px);
        margin: 12px auto;
    }

    .company-gallery-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    .company-gallery-submodal .company-gallery-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 560px) {
    .company-gallery-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .company-gallery-category-card__content {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
    }

    .company-gallery-category-card__title {
        font-size: 15px !important;
        line-height: 19px !important;
    }

    .company-gallery-category-card__count {
        font-size: 10px !important;
        line-height: 13px !important;
        padding: 3px 7px !important;
    }

    .company-gallery-submodal__header {
        padding: 18px 58px 16px 16px;
    }

    .company-gallery-submodal__body {
        padding: 16px;
    }

    .company-gallery-submodal__title {
        font-size: 18px;
        line-height: 24px;
        padding: 9px 12px;
    }

    .company-gallery-submodal .company-gallery-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}


/* ==========================================================
   RESTORE CURRENT GALLERY FLOW
   - вход в галерею только через кнопку на большой картинке;
   - белая стрелка на превью отключена;
   - первый поповер остаётся как в финальной компактной версии;
   - второй поповер показывает только выбранную категорию сеткой.
   ========================================================== */

.photo_item1 {
    position: relative !important;
}

.photo_item1 .photo_arrow {
    display: none !important;
}

.photo_item2,
.photo_item3,
.photo_item4 {
    cursor: default !important;
}

.photo_item2 a,
.photo_item3 a,
.photo_item4 a {
    pointer-events: none !important;
}

.company-gallery-open-button {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 5;
    border: 0;
    border-radius: 5px;
    background: #083672;
    color: #ffffff;
    padding: 11px 18px;
    font-family: inherit;
    font-size: 13px;
    line-height: 17px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.company-gallery-open-button:hover,
.company-gallery-open-button:focus-visible {
    background: #0a438d;
    transform: translateY(-1px);
    outline: none;
}

.company-gallery-modal__dialog {
    width: min(980px, calc(100% - 56px)) !important;
    max-height: calc(100vh - 64px) !important;
    margin: 32px auto !important;
}

.company-gallery-modal__body {
    padding: 20px 24px 24px !important;
}

.company-gallery-categories {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
}

.company-gallery-category-card {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    border-radius: 4px !important;
}

.company-gallery-grid--videos {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.company-gallery-submodal__dialog {
    width: min(1040px, calc(100% - 56px)) !important;
    max-height: calc(100vh - 56px) !important;
    margin: 28px auto !important;
}

.company-gallery-submodal__body {
    padding: 24px !important;
    overflow-y: auto !important;
}

.company-gallery-submodal .company-gallery-tiles[hidden] {
    display: none !important;
}

.company-gallery-submodal .company-gallery-tiles:not([hidden]) {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 22px !important;
    align-items: start !important;
    width: 100% !important;
}

.company-gallery-submodal .company-gallery-tile {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    aspect-ratio: 4 / 3 !important;
    overflow: hidden !important;
    border: 1px solid rgba(8, 54, 114, 0.16) !important;
    background: rgba(37, 40, 45, 0.06) !important;
}

.company-gallery-submodal .company-gallery-tile img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

@media (max-width: 1100px) {
    .company-gallery-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .company-gallery-submodal .company-gallery-tiles:not([hidden]) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
}

@media (max-width: 700px) {
    .company-gallery-open-button {
        right: 18px;
        bottom: 18px;
        padding: 10px 14px;
        font-size: 12px;
        line-height: 16px;
    }

    .company-gallery-modal__dialog,
    .company-gallery-submodal__dialog {
        width: calc(100% - 24px) !important;
        max-height: calc(100vh - 24px) !important;
        margin: 12px auto !important;
    }

    .company-gallery-categories,
    .company-gallery-grid--videos {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .company-gallery-submodal .company-gallery-tiles:not([hidden]) {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

    

/* ==========================================================
   MANTOR COMPANY MEDIA SHOWCASE — NEW APPROVED CONCEPT
   ========================================================== */

.company-media-showcase {
    max-width: 1380px;
    margin: 120px auto 110px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(280px, 0.42fr) minmax(520px, 1fr);
    gap: 56px;
    align-items: stretch;
    box-sizing: border-box;
    color: #071224;
}

.company-media-showcase * {
    box-sizing: border-box;
}

.company-media-showcase__intro {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 38px 0 0;
}

.company-media-showcase__label {
    color: #0a55cf;
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.company-media-showcase__line {
    width: 42px;
    height: 2px;
    background: #0a55cf;
    margin-bottom: 38px;
}

.company-media-showcase__title {
    margin: 0 0 32px;
    color: #071224;
    font-size: clamp(44px, 4vw, 72px);
    line-height: 0.98;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.company-media-showcase__text {
    color: rgba(7, 18, 36, 0.68);
    font-size: 18px;
    line-height: 1.55;
    font-weight: 400;
    margin-bottom: 34px;
    max-width: 440px;
}

.company-media-showcase__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 220px;
    min-height: 54px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #083672 0%, #0d63e5 100%);
    color: #ffffff;
    padding: 15px 28px;
    font-family: inherit;
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 18px 35px rgba(8, 54, 114, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.company-media-showcase__button:hover,
.company-media-showcase__button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(8, 54, 114, 0.28);
    filter: brightness(1.04);
    outline: none;
}

.company-media-showcase__stats {
    margin-top: auto;
    padding-top: 70px;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    align-items: start;
    position: relative;
    width: 100%;
    max-width: 430px;
}

.company-media-showcase__stats::before {
    content: "";
    position: absolute;
    top: 34px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(8, 54, 114, 0.16), rgba(8, 54, 114, 0));
}

.company-media-showcase__stats-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 99, 229, 0.08);
    color: #0d63e5;
    box-shadow: inset 0 0 0 1px rgba(13, 99, 229, 0.18);
}

.company-media-showcase__stats-number {
    color: #0d63e5;
    font-size: 40px;
    line-height: 42px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.04em;
}

.company-media-showcase__stats-text {
    color: rgba(7, 18, 36, 0.62);
    font-size: 16px;
    line-height: 1.35;
}

.company-media-showcase__content {
    min-width: 0;
    display: grid;
    grid-template-rows: minmax(310px, 420px) auto;
    gap: 26px;
}

.company-media-hero-card,
.company-media-category-card {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    padding: 0;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.company-media-hero-card {
    position: relative;
    display: block;
    width: 100%;
    min-height: 360px;
    overflow: hidden;
    border-radius: 16px;
    background: #061122;
    color: #ffffff;
    box-shadow: 0 24px 70px rgba(7, 18, 36, 0.18);
}

.company-media-hero-card img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
    filter: saturate(0.72) contrast(1.06) brightness(0.82);
    transform: scale(1.01);
    transition: transform 0.45s ease, filter 0.45s ease;
}

.company-media-hero-card:hover img,
.company-media-hero-card:focus-visible img {
    transform: scale(1.045);
    filter: saturate(0.82) contrast(1.08) brightness(0.88);
}

.company-media-hero-card__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 68% 46%, rgba(13, 99, 229, 0.18), rgba(13, 99, 229, 0) 28%),
        linear-gradient(90deg, rgba(3, 10, 23, 0.9) 0%, rgba(3, 10, 23, 0.58) 43%, rgba(3, 10, 23, 0.14) 100%),
        linear-gradient(180deg, rgba(3, 10, 23, 0.04) 0%, rgba(3, 10, 23, 0.78) 100%);
    pointer-events: none;
}

.company-media-hero-card__play {
    position: absolute;
    left: 55%;
    top: 45%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #071224;
    background: #ffffff;
    box-shadow: 0 0 0 24px rgba(255, 255, 255, 0.12), 0 20px 45px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.company-media-hero-card:hover .company-media-hero-card__play,
.company-media-hero-card:focus-visible .company-media-hero-card__play {
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.14), 0 24px 55px rgba(0, 0, 0, 0.3);
}

.company-media-hero-card__content {
    position: absolute;
    z-index: 4;
    left: 34px;
    bottom: 34px;
    width: min(380px, calc(100% - 68px));
    color: #ffffff;
    display: block;
}

.company-media-hero-card__kicker {
    display: block;
    color: #2c88ff;
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 14px;
}

.company-media-hero-card__title {
    display: block;
    color: #ffffff;
    font-size: clamp(30px, 2.7vw, 44px);
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
}

.company-media-hero-card__text {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.45;
    max-width: 320px;
}

.company-media-hero-card__dots {
    position: absolute;
    z-index: 4;
    right: 34px;
    bottom: 34px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.company-media-hero-card__dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
}

.company-media-hero-card__dots span.is-active {
    background: #0d63e5;
}

.company-media-showcase__lower {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(210px, 0.9fr);
    gap: 18px;
    align-items: stretch;
}

.company-media-category-card {
    position: relative;
    min-height: 230px;
    border-radius: 14px;
    overflow: hidden;
    background: #061122;
    color: #ffffff;
    box-shadow: 0 18px 45px rgba(7, 18, 36, 0.16);
}

.company-media-category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.72) contrast(1.04) brightness(0.7);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.company-media-category-card:hover img,
.company-media-category-card:focus-visible img {
    transform: scale(1.055);
    filter: saturate(0.86) contrast(1.06) brightness(0.78);
}

.company-media-category-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 10, 23, 0.1) 0%, rgba(3, 10, 23, 0.86) 100%);
    pointer-events: none;
}

.company-media-category-card__icon {
    position: absolute;
    left: 22px;
    top: 22px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(8, 54, 114, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
}

.company-media-category-card__title {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
    bottom: 72px;
    color: #ffffff;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 700;
}

.company-media-category-card__text {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 54px;
    bottom: 26px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    line-height: 1.35;
}

.company-media-category-card__arrow {
    position: absolute;
    z-index: 2;
    right: 22px;
    bottom: 26px;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.company-media-category-card:hover .company-media-category-card__arrow,
.company-media-category-card:focus-visible .company-media-category-card__arrow {
    transform: translateX(4px);
}

.company-media-showcase__promise {
    min-height: 230px;
    padding: 28px 18px 24px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    color: #071224;
    background: rgba(255, 255, 255, 0.68);
    border-radius: 14px;
    box-shadow: inset 3px 0 0 #0d63e5;
}

.company-media-showcase__promise-icon {
    color: #0d63e5;
    margin-bottom: 24px;
}

.company-media-showcase__promise-title {
    display: block;
    color: #071224;
    font-size: 19px;
    line-height: 1.28;
    font-weight: 700;
    margin-bottom: 12px;
}

.company-media-showcase__promise-text {
    display: block;
    color: rgba(7, 18, 36, 0.58);
    font-size: 16px;
    line-height: 1.35;
}

@media (max-width: 1280px) {
    .company-media-showcase {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .company-media-showcase__intro {
        padding-top: 0;
    }

    .company-media-showcase__stats {
        margin-top: 0;
        padding-top: 48px;
    }
}

@media (max-width: 980px) {
    .company-media-showcase {
        margin: 80px auto;
    }

    .company-media-showcase__content {
        grid-template-rows: auto auto;
    }

    .company-media-showcase__lower {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .company-media-showcase__promise {
        grid-column: span 2;
        min-height: 180px;
    }
}

@media (max-width: 640px) {
    .company-media-showcase {
        margin: 60px auto;
        padding: 0 16px;
        gap: 26px;
    }

    .company-media-showcase__title {
        font-size: 40px;
    }

    .company-media-showcase__text {
        font-size: 15px;
        line-height: 1.5;
    }

    .company-media-showcase__button {
        width: 100%;
    }

    .company-media-hero-card {
        min-height: 430px;
    }

    .company-media-hero-card img {
        min-height: 430px;
    }

    .company-media-hero-card__play {
        left: 50%;
        top: 38%;
        width: 70px;
        height: 70px;
    }

    .company-media-hero-card__content {
        left: 22px;
        right: 22px;
        bottom: 28px;
        width: auto;
    }

    .company-media-hero-card__dots {
        right: 22px;
        bottom: 18px;
    }

    .company-media-showcase__lower {
        grid-template-columns: 1fr;
    }

    .company-media-category-card,
    .company-media-showcase__promise {
        min-height: 220px;
    }

    .company-media-showcase__promise {
        grid-column: auto;
    }
}

/* ==========================================================
   GALLERY STYLE FIX 2026-06-26
   - убираем текстовые/emoji-иконки, из-за которых появлялся квадрат;
   - выравниваем правый медиаблок по сетке страницы без лишнего внутреннего смещения.
   ========================================================== */

.company-media-showcase {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.company-media-showcase__content {
    width: 100% !important;
    max-width: 100% !important;
    justify-self: stretch !important;
}

.company-media-category-card__icon {
    font-size: 0 !important;
}

.company-media-category-card__icon svg {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
}

@media (min-width: 1281px) {
    .company-media-showcase {
        grid-template-columns: minmax(320px, 0.38fr) minmax(0, 1fr) !important;
        gap: 48px !important;
    }
}

@media (max-width: 1280px) {
    .company-media-showcase {
        grid-template-columns: 1fr !important;
    }

    .company-media-showcase__content {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ==========================================================
   GALLERY ICON FIX 2026-06-26
   Ровная шестерёнка в карточке "Производство".
   ========================================================== */
.company-media-category-card__icon svg.company-media-category-card__gear-svg {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
    overflow: visible !important;
}


/* ==========================================================
   GALLERY CARD TEXT FIX 2026-06-26
   Исправление наложения заголовка и описания в карточках категорий.
   ========================================================== */
.company-media-category-card {
    text-align: left;
}

.company-media-category-card__title {
    right: 54px;
    bottom: 92px;
    max-width: calc(100% - 76px);
    margin: 0;
}

.company-media-category-card__text {
    right: 54px;
    bottom: 24px;
    max-width: calc(100% - 76px);
    min-height: 56px;
    margin: 0;
}

.company-media-category-card__arrow {
    right: 22px;
    bottom: 26px;
}

@media (max-width: 900px) {
    .company-media-category-card__title {
        bottom: 90px;
        font-size: 20px;
        line-height: 1.12;
    }

    .company-media-category-card__text {
        min-height: 58px;
        font-size: 13px;
        line-height: 1.35;
    }
}

@media (max-width: 560px) {
    .company-media-category-card__title {
        left: 18px;
        right: 50px;
        bottom: 88px;
        font-size: 19px;
        line-height: 1.1;
        max-width: calc(100% - 68px);
    }

    .company-media-category-card__text {
        left: 18px;
        right: 50px;
        bottom: 20px;
        min-height: 60px;
        max-width: calc(100% - 68px);
    }

    .company-media-category-card__arrow {
        right: 18px;
        bottom: 22px;
    }
}

/* ==========================================================
   GALLERY CARD TEXT FIX 2026-06-26
   Убирает наложение заголовка и описания в нижних карточках.
   Особенно для карточки "Сервис", где описание переносится на 3 строки.
   ========================================================== */
.company-media-category-card__title {
    bottom: 96px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
}

.company-media-category-card__text {
    bottom: 24px !important;
    right: 48px !important;
    line-height: 1.32 !important;
}

.company-media-category-card__arrow {
    bottom: 25px !important;
}

@media (max-width: 640px) {
    .company-media-category-card__title {
        bottom: 92px !important;
    }

    .company-media-category-card__text {
        bottom: 22px !important;
        right: 46px !important;
    }
}
