/* Блок страницы новости (BEM: info-news) */
:root {
    --color-brand: #aa182c;
    --color-brand-alt: #aa1d37;
    --color-muted: #b0b0b0;
    --color-tab-border: #616161;
    --font: "PT Sans", "Circe", system-ui, -apple-system, sans-serif;
    --content-pad: clamp(24px, 6.8vw, 130px);
    --content-max: 1710px;
}



/* Ряд логотипов: координаты в Figma от кадра 1920px — выравнивание по вьюпорту */
.logos-row {
    margin-top: 24px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
}

.logos-row__track {
    position: relative;
    height: 81px;
    width: min(1920px, 100%);
    margin: 0 auto;
}

.logos-row__mosbuild,
.logos-row__crona {
    position: absolute;
    top: 0;
    display: block;
    object-fit: contain;
    object-position: left center;
    height: 81px;
    width: auto;
    max-width: none;
}

/* Центр блока MosBuild: 50% − 327.5px от левого края кадра 1920 (экспорт Figma) */
.logos-row__mosbuild {
    left: calc(50% - 527px);
    width: 399px;
}

/* Второй логотип: inset в Figma — left 52.14%, right 22.55% → ширина 25.31% кадра */
.logos-row__crona {
    left: 52.14%;
    max-width: 486px;
    min-width: 0;
}

@media (max-width: 1200px) {
    .logos-row {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .logos-row__track {
        width: 100%;
        height: auto;
        min-height: 81px;
        padding-bottom: 8px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .logos-row__mosbuild,
    .logos-row__crona {
        position: static;
        width: min(399px, 85vw);
        max-width: 100%;
        height: auto;
        max-height: 81px;
    }

    .logos-row__crona {
        margin-top: 16px;
        width: min(486px, 90vw);
    }
}

/* Центральный заголовок и лид */
.info-news__hero-title {
    margin: 48px auto 0;


    text-align: center;
    font-size: clamp(24px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-brand);
}

.info-news__lead {
    margin: 32px auto 0;
    padding: 0 var(--content-pad);
    text-align: center;
    font-size: 18px;
}

/* Видео / герой */
.media-block {
    position: relative;
    margin-top: 48px;
    width: 100%;
    min-height: min(550px, 70vw);
}

.media-block__image-wrap {

}

.media-block__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-block__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    pointer-events: none;
}

.media-block__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    line-height: 0;
}

.media-block__play:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}
.info-news__media.media-block {

}
/* Цитата: красная заливка только под строками текста (как маркер), не на всю ширину */
.callout-bar {
    background: transparent;
    padding: 24px var(--content-pad);
    display: flex;
    justify-content: center;
    padding-bottom: 10px;
}

.callout-bar__inner {
    margin: 0;
    max-width: 1174px;
    text-align: center;
}

.callout-bar__text {
    display: inline;
    background: var(--color-brand);
    color: #fff;
    padding: 0.12em 1em;
    font-size: clamp(18px, 2vw, 32px);
    font-weight: 700;
    line-height: 2;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Три колонки продуктов */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 32px;
    margin-top: 64px;
    align-items: start;
}

@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card__media {
    position: relative;
}

.product-card__pic {
    position: relative;
    overflow: hidden;
    aspect-ratio: 523 / 327;
    max-height: 327px;
}

/* Кадр 523×327 как в Figma: 2320:5161, 2320:5162 — не просто cover, а те же % смещения */
.product-card__pic--p1 > img,
.product-card__pic--p2 > img {
    position: absolute;
    max-width: none;
    object-fit: cover;
}

.product-card__pic--p1 > img {
    width: 101%;
    height: 107.71%;
    left: -0.48%;
    top: -4.34%;
}

.product-card__pic--p2 > img {
    width: 101.22%;
    height: 115.59%;
    left: -1.22%;
    top: -13.06%;
}

/* Третья карточка: два слоя в макете (node 2320:5163) — свои overflow + позиции картинок */
.product-card__blend-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.product-card__blend-layer--under {
    z-index: 0;
}

.product-card__blend-layer--over {
    z-index: 1;
}

/* Нижний слой: imgImage1 — h 120.97%, top -2.44%, w 100% */
.product-card__pic--blend .product-card__img-base {
    position: absolute;
    left: 0;
    top: -2.44%;
    width: 100%;
    height: 120.97%;
    max-width: none;
    object-fit: cover;
}

/* Верхний слой: imgImage2 — w 146.81%, h 166.93%, left -28.37%, top -19.59% */
.product-card__pic--blend .product-card__img-top {
    position: absolute;
    left: -28.37%;
    top: -19.59%;
    width: 146.81%;
    height: 166.93%;
    max-width: none;
    object-fit: cover;
}

/* Цифры: позиции от макета 1920px (фото 523×327), числа 200px, не по центру кадра */
.product-card__num {
    position: absolute;
    top: 57.8%;
    z-index: 2;
    font-size: clamp(80px, 12vw, 200px);
    font-weight: 700;
    line-height: 0.5;
    color: #fff;
    pointer-events: none;
    transform: translateY(-0.12em);
}

/* Левый край цифры относительно левого края фото: (left_цифры − left_фото) / 523 */
.product-card__num--1 {
    left: calc(459 / 523 * 100%);
}

.product-card__num--2 {
    left: calc(418 / 523 * 100%);
}

.product-card__num--3 {
    left: calc(419 / 523 * 100%);
}

.product-card__num--overlay {
    mix-blend-mode: overlay;
}

.product-card__num--soft {
    mix-blend-mode: overlay;
}

.product-card__num--soft-light {
    mix-blend-mode: soft-light;
}

.product-card__line {
    margin-top: 16px;
    line-height: 0;
}

/* Боковые: w 523px как у фото, по левому краю колонки (Figma 2320:5174, 2320:5175) */
.product-card__line--left,
.product-card__line--right {
    width: 523px;
    max-width: 100%;
}

/* Центральная: 523px по центру всего вьюпорта, не по центру ячейки grid (2320:5176) */
.product-card__line--center {

    display: flex;
    justify-content: center;
}

.product-card__line img {
    width: 100%;
    max-width: 523px;
    height: auto;
    display: block;
}



@media (max-width: 1024px) {
    .product-card__line--center {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        justify-content: flex-start;
    }

    .product-card__line--center img {
        width: 100%;
        max-width: 523px;
    }
}

.product-card__title {
    margin: 16px 0 0;
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 700;
    line-height: 1.25;
}

.product-card__desc {
    margin: 8px 0 0;
    font-size: 18px;
}

/* Текст под продуктами */
.text-block {
    margin-top: 56px;
    max-width: 1341px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 18px;
}

.text-block p {
    margin: 0 0 1em;
}

.text-block p:last-child {
    margin-bottom: 0;
}

/* Галерея-карусель: первый слайд — мозаика, далее — крупные кадры тех же фото */
.gallery-mosaic {
    --gallery-slides: 1;
    --gallery-index: 0;
    margin-top: 48px;
}

.gallery-mosaic__viewport {
    overflow: hidden;
    width: 100%;
}

.gallery-mosaic__track {
    display: flex;
    width: calc(var(--gallery-slides) * 100%);
    transform: translateX(calc(-100% * var(--gallery-index) / var(--gallery-slides)));
    transition: transform 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
    .gallery-mosaic__track {
        transition: none;
    }
}

.gallery-mosaic__slide {
    flex: 0 0 calc(100% / var(--gallery-slides));
    min-width: 0;
    box-sizing: border-box;
}

.gallery-mosaic__slide--solo figure {
    margin: 0;
    height: min(70vh, 560px);
}

.gallery-mosaic__slide--solo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-mosaic__grid {
    display: grid;
    grid-template-columns: minmax(0, 437fr) minmax(0, 304fr) minmax(0, 438fr) minmax(0, 304fr) minmax(0, 437fr);
    grid-template-rows: minmax(140px, auto) minmax(140px, auto);
    gap: 0;
    width: 100%;
}

.gallery-mosaic__cell {
    overflow: hidden;
    position: relative;
}

.gallery-mosaic__cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-mosaic__cell--c1r1 {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 437 / 232;
}

.gallery-mosaic__cell--c1r2 {
    grid-column: 1;
    grid-row: 2;
    aspect-ratio: 437 / 234;
}

.gallery-mosaic__cell--mid-left {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-height: 200px;
}

.gallery-mosaic__cell--center {
    grid-column: 3;
    grid-row: 1 / span 2;
    min-height: 200px;
}

.gallery-mosaic__cell--mid-right {
    grid-column: 4;
    grid-row: 1 / span 2;
    min-height: 200px;
}

.gallery-mosaic__cell--c5r1 {
    grid-column: 5;
    grid-row: 1;
    aspect-ratio: 437 / 232;
}

.gallery-mosaic__cell--c5r2 {
    grid-column: 5;
    grid-row: 2;
    aspect-ratio: 437 / 234;
}

@media (max-width: 900px) {
    .gallery-mosaic__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .gallery-mosaic__cell--c1r1,
    .gallery-mosaic__cell--c1r2,
    .gallery-mosaic__cell--mid-left,
    .gallery-mosaic__cell--center,
    .gallery-mosaic__cell--mid-right,
    .gallery-mosaic__cell--c5r1,
    .gallery-mosaic__cell--c5r2 {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: unset;
        min-height: 180px;
    }
}

/* Навигация галереи: Figma 2320:5184 — w 93px, центр кадра, Frame 37 (gallery-arrows.svg) */
.info-news__gallery-nav.gallery-mosaic__nav {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.gallery-mosaic__nav-inner {
    position: relative;
    width: 93px;
    max-width: 100%;
    transform: translateX(0.5px);
    padding: 6px 0;
    box-sizing: content-box;
}

.gallery-mosaic__nav-figure {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
}

.gallery-mosaic__nav-actions {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    height: 44px;
    align-items: stretch;
}

.gallery-mosaic__btn {
    flex: 1 1 50%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: transparent;
}

.gallery-mosaic__btn:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Нижний баннер: Figma 2320:5022 + 2320:5171 — фото с наклоном 5.91°, заголовок чёрный 32px / 50px по центру */
.closing-banner {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px var(--content-pad);
    overflow: hidden;
}
.article__cover-wrap {
    position: relative;
    margin-bottom: 32px;
    overflow: hidden;
    margin-left: -30px;
    margin-right: -30px;
    margin-top: -343px;
    max-height: 670px;
    margin-bottom: -80px;
}
.info-news__gallery.gallery-mosaic {
    margin-left: -30px;
    margin-right: -30px;
}
.closing-banner__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.closing-banner__bg img {
    width: min(2100px, 165%);
    max-width: none;
    height: 118%;
    min-height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transform: rotate(5.91deg) scale(1.02);
}

.closing-banner__title {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    width: fit-content;
    max-width: 100%;
    font-size: clamp(22px, 3.2vw, 32px);
    font-weight: 700;
    line-height: 50px;
    text-align: center;
    color: #000;
    white-space: nowrap;
    transform: translateX(0.5px);
}

@media (max-width: 1550px) {
    .article__cover-wrap {
        position: relative;
        margin-bottom: 32px;
        overflow: hidden;
        margin-left: -30px;
        margin-right: -30px;
        margin-top: -200px;
        max-height: 470px;
        margin-bottom: -80px;
    }
}
@media (max-width: 1024px) {
    .article__cover-wrap {
        position: relative;
        margin-bottom: 32px;
        overflow: hidden;
        margin-left: -30px;
        margin-right: -30px;
        margin-top: -100px;
        max-height: 270px;
        margin-bottom: -80px;
    }
    .info-news__lead {

        padding: 0;

    }
    .callout-bar {

        padding: 0;

    }
    .product-card__pic--p1 > img {
        width: 100%;
        height: auto;
        left: 0;
        top: 0;
        position: relative;
    }
    callout-bar__text {

        line-height: initial;

    }
}
p.callout-bar__inner {
    margin-top: 50px;
}
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: 48% 48%;
    }

    .product-card__pic--p2 > img {
        width: 100%;
        height: auto;
        left: 0;
        position: relative;
        top: 0;
    }
    .product-card__blend-layer {
        position: relative;

    }
}
@media (max-width: 768px) {
    .products-grid {
        display: flex;
        flex-direction: column;
    }
    .product-card__pic {
        position: relative;
        overflow: hidden;
        aspect-ratio: inherit;
        max-height: initial;
    }
    .product-card__line--left, .product-card__line--right {
        width: 100%;
        max-width: 100%;
    }
}
@media (max-width: 640px) {
    .closing-banner__title {
        white-space: normal;
        line-height: 1.3;
    }
}
