.news-detail {
    background: #ffffff;
    padding: 32px 0 64px;
    font-family: Manrope, Arial, sans-serif;
}

.news-detail__container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.pc-back {
    display: inline-flex;
    align-items: center;
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 1.4;
    color: #1BAD96;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.pc-back:hover {
    color: #12806f;
}

.news-detail__card {
    background: #ffffff;
    overflow: visible;
}

.news-detail__title {
    max-width: 980px;
    margin: 0 0 24px;
    padding: 0;
    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;
    color: #111111;
    letter-spacing: -0.02em;
}

.news-detail__hero {
    width: 100%;
    height: 380px;
    margin: 0 0 34px;
    background: #f3f4f5;
    position: relative;
    cursor: zoom-in;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-detail__hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.news-detail__hero::after {
    content: "Click to open full image";
    position: absolute;
    left: 16px;
    bottom: 16px;
    padding: 7px 12px;
    font-size: 13px;
    line-height: 1.2;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 999px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.news-detail__hero:hover::after {
    opacity: 1;
}

.news-detail__content {
    max-width: 860px;
    margin: 0 auto;
    padding: 0;
    font-size: 18px;
    line-height: 1.75;
    color: #242424;
}

.news-detail__content p {
    margin: 0 0 18px;
}

.news-detail__content h2,
.news-detail__content h3 {
    margin: 34px 0 16px;
    color: #111111;
    line-height: 1.25;
    font-weight: 700;
}

.news-detail__content h2 {
    font-size: 28px;
}

.news-detail__content h3 {
    font-size: 23px;
}

.news-detail__content a {
    color: #1BAD96;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-detail__content ul,
.news-detail__content ol {
    margin: 0 0 20px 22px;
    padding: 0;
}

.news-detail__content li {
    margin-bottom: 8px;
}

.gallerych {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 34px 0;
}

.gallerych__item {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #f5f6f7;
    overflow: hidden;
    cursor: zoom-in;
}

.gallerych__frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f2f2f2;
}

.gallerych__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.gallerych__item:hover img {
    transform: scale(1.04);
}

.gallerych__caption {
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #555555;
}

.news-video {
    margin: 28px 0;
    overflow: hidden;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.news-video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pc-block {
    margin: 64px 0 0;
}

.pc-block--gray {
    background: #ffffff;
    padding: 0;
    border-radius: 0;
}

.pc-title {
    margin: 0 0 28px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    color: #111111;
}

.pc-title--short {
    position: relative;
    padding-left: 18px;
}

.pc-title--short::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 5px;
    height: 32px;
    background: #1BAD96;
    transform: translateY(-50%);
}

.niime-news__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.niime-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.niime-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.niime-card__link {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
}

.niime-card__imgwrap {
    width: 100%;
    height: 190px;
    background: #f2f3f4;
    overflow: hidden;
}

.niime-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.niime-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
    min-height: 220px;
    background: #ffffff;
}

.niime-card__title {
    margin: 0 0 12px;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;
    color: #111111;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.niime-card__text {
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #444444;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.niime-card__date {
    margin-top: auto;
    font-size: 13px;
    line-height: 1.4;
    color: #999999;
    font-weight: 600;
}

.pc-more {
    margin-top: 32px;
    text-align: center;
}

.pc-btnlink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 46px;
    padding: 0 28px;
    border: 1px solid #1BAD96;
    background: #ffffff;
    color: #1BAD96;
    text-decoration: none;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pc-btnlink:hover {
    background: #1BAD96;
    color: #ffffff;
    transform: translateY(-2px);
}

.news-img-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 28px 0;
}

.news-img-mini {
    flex: 1 1 280px;
    max-width: 100%;
    cursor: zoom-in;
    position: relative;
}

.news-img-mini img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    border: 1px solid #eeeeee;
}

.news-img-mini:hover img {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.10);
}

.news-img-mini span {
    display: block;
    margin-top: 9px;
    font-size: 14px;
    line-height: 1.45;
    color: #666666;
}

.news-img-mini--right {
    float: right;
    max-width: 520px;
    margin-left: 28px;
    margin-bottom: 18px;
}

.news-img-mini--left {
    float: left;
    max-width: 520px;
    margin-right: 28px;
    margin-bottom: 18px;
}

/*лайтбокс*/

/* ========== ЛАЙТБОКС ГАЛЕРЕИ ========== */

#js-lightboxch {
    position: fixed;
    inset: 0;
    z-index: 2147483647;

    display: none;
    align-items: center;
    justify-content: center;

    width: 100vw;
    height: 100vh;
    height: 100dvh;

    padding: 76px 82px 58px;
    overflow: hidden;

    background: #000000;
    isolation: isolate;

    pointer-events: auto;
    cursor: zoom-out;
}

#js-lightboxch.is-open {
    display: flex !important;
}

/* Внутренняя область с картинкой */
#js-lightboxch .lightboxch__dialog {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    max-width: 1440px;
    margin: 0 auto;

    cursor: default;
}

/* Открытая картинка */
#js-lightboxch .lightboxch__img {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;

    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

/* Общие стили кнопок */
#js-lightboxch .lightboxch__close,
#js-lightboxch .lightboxch__prev,
#js-lightboxch .lightboxch__next {
    position: fixed;
    z-index: 3;

    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);

    cursor: pointer;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;

    transition: background 0.2s ease, transform 0.2s ease;
}

#js-lightboxch .lightboxch__close:hover,
#js-lightboxch .lightboxch__prev:hover,
#js-lightboxch .lightboxch__next:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.06);
}

#js-lightboxch .lightboxch__close {
    top: 18px;
    right: 18px;

    font-size: 0;
}

#js-lightboxch .lightboxch__close::before {
    content: "×";
    font-family: Arial, sans-serif;
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
}

#js-lightboxch .lightboxch__prev,
#js-lightboxch .lightboxch__next {
    top: 50%;

    font-family: Arial, sans-serif;
    font-size: 36px;
    font-weight: 300;
    line-height: 1;

    transform: translateY(-50%);
}

#js-lightboxch .lightboxch__prev:hover,
#js-lightboxch .lightboxch__next:hover {
    transform: translateY(-50%) scale(1.06);
}

#js-lightboxch .lightboxch__prev {
    left: 18px;
}

#js-lightboxch .lightboxch__next {
    right: 18px;
}

#js-lightboxch .lightboxch__counter {
    position: fixed;
    z-index: 3;
    bottom: 18px;
    left: 50%;

    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1;
    opacity: 0.85;

    transform: translateX(-50%);
    pointer-events: none;
}

@media (max-width: 900px) {
    #js-lightboxch {
        padding: 70px 58px 54px;
    }

    #js-lightboxch .lightboxch__close {
        top: 12px;
        right: 12px;
    }

    #js-lightboxch .lightboxch__prev {
        left: 10px;
    }

    #js-lightboxch .lightboxch__next {
        right: 10px;
    }
}

@media (max-width: 600px) {
    #js-lightboxch {
        padding: 68px 12px 50px;
    }

    #js-lightboxch .lightboxch__close,
    #js-lightboxch .lightboxch__prev,
    #js-lightboxch .lightboxch__next {
        width: 42px;
        height: 42px;
    }

    #js-lightboxch .lightboxch__close::before {
        font-size: 30px;
    }

    #js-lightboxch .lightboxch__prev,
    #js-lightboxch .lightboxch__next {
        font-size: 30px;
    }

    #js-lightboxch .lightboxch__counter {
        bottom: 14px;
        font-size: 13px;
    }
}

@media (max-width: 1200px) {
    .news-detail__container {
        max-width: 1000px;
    }

    .news-detail__title {
        font-size: 36px;
    }

    .news-detail__hero {
        height: 340px;
    }
}

@media (max-width: 900px) {
    .news-detail {
        padding: 24px 0 48px;
    }

    .news-detail__container {
        padding: 0 18px;
    }

    .news-detail__title {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .news-detail__hero {
        height: 300px;
        margin-bottom: 28px;
    }

    .news-detail__content {
        font-size: 17px;
        line-height: 1.65;
    }

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

    .niime-news__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


}

@media (max-width: 600px) {
    .news-detail {
        padding: 18px 0 40px;
    }

    .news-detail__container {
        padding: 0 14px;
    }

    .pc-back {
        margin-bottom: 18px;
        font-size: 14px;
    }

    .news-detail__title {
        font-size: 25px;
        line-height: 1.2;
    }

    .news-detail__hero {
        height: 230px;
    }

    .news-detail__hero::after {
        display: none;
    }

    .news-detail__content {
        font-size: 16px;
        line-height: 1.6;
    }

    .gallerych {
        grid-template-columns: 1fr;
    }

    .gallerych__frame {
        aspect-ratio: 16 / 10;
    }

    .niime-news__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .niime-card__imgwrap {
        height: 190px;
    }

    .niime-card__body {
        min-height: auto;
    }

    .news-img-mini--right,
    .news-img-mini--left {
        float: none;
        max-width: 100%;
        margin: 24px 0;
    }

    .news-img-mini img {
        height: auto;
    }

    .pc-title {
        font-size: 25px;
    }

    .pc-btnlink {
        width: 100%;
    }
}