/* =========================================================
   HOME PAGE — CLEAN ARCHITECTURE

   Desktop >= 1024px:
   - one fixed 1920px composition, scaled by adaptive-normalize.css;
   - no structural desktop media queries;
   - full-bleed rows use a logical edge offset instead of 100vw.

   Tablet 768–1023px:
   - compact layout without global scale.

   Mobile <= 767px:
   - one Pixso-based mobile layer.
   ========================================================= */

:root {
    --home-content-width: 1440px;
    --home-edge-offset: max(240px, calc((100vw - var(--home-content-width)) / 2));
}

/* =========================================
   HOME PAGE: BASE DESKTOP
   Assets:
   /images/hero-title.svg
   /images/hero-decor.svg
   ========================================= */

.home-hero,
.home-hero *,
.home-hero *::before,
.home-hero *::after {
    box-sizing: border-box;
}

.home-hero {
    position: relative;

    width: 100%;
    height: 920px;
    min-height: 920px;

    overflow: hidden;
    background-color: #1c2331;
    color: #ffffff;
    isolation: isolate;
}

.home-hero.full-bleed {
    position: relative;
    left: auto;
    right: auto;

    width: 100%;
    max-width: none;

    margin-left: 0;
    margin-right: 0;

    background-color: #1c2331;
}

.home-hero__container {
    position: relative;

    width: min(1440px, calc(100% - 48px));
    height: 920px;
    margin: 0 auto;
    overflow: visible;
}

/* =========================================
   LEFT TITLE BLOCK
   Pixso:
   frame 1920x920
   title group x: 240, y: 255, w: 585, h: 288
   inside 1440 container:
   x: 0, y: 255
   ========================================= */

.home-hero__content {
    position: absolute;
    left: 0;
    top: 255px;
    z-index: 5;

    width: 585px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 60px;
}

.home-hero__title-image {
    display: block;

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

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

    animation: homeHeroFadeUp 0.75s ease both;
}

.home-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 230px;
    min-height: 51px;
    padding: 12px 32px;

    border: 0;
    border-radius: 10px;
    background-color: #d2232a;
    color: #ffffff;

    font-family: var(--font-main);
    font-size: 15px;
    font-style: normal;
    font-weight: 900;
    line-height: 27px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;

    animation: homeHeroFadeUp 0.75s ease 0.16s both;
}

.home-hero__button:visited {
    color: #ffffff;
}

.home-hero__button:hover {
    background-color: #b91f26;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(210, 35, 42, 0.22);
}

/* =========================================
   GRID LINES WITH GAP AROUND SQUARE
   Pixso:
   vertical x: 959 full page => 719 in container
   horizontal y: 455
   ========================================= */

.home-hero__grid {
    position: absolute;
    inset: 0;
    z-index: 2;

    pointer-events: none;

    --grid-color: rgba(255, 255, 255, 0.18);
    --grid-x: 719px;
    --grid-y: 455px;
    --grid-dot-size: 10px;
    --grid-gap: 12px;
}

.home-hero__grid-line {
    position: absolute;
    display: block;
    background: none;
}

.home-hero__grid-line--vertical {
    top: 0;
    bottom: 0;
    left: var(--grid-x);

    width: 1px;
}

.home-hero__grid-line--vertical::before,
.home-hero__grid-line--vertical::after {
    content: "";

    position: absolute;
    left: 0;

    width: 1px;

    background-color: var(--grid-color);
}

.home-hero__grid-line--vertical::before {
    top: 0;
    height: calc(var(--grid-y) - (var(--grid-dot-size) / 2) - var(--grid-gap));
}

.home-hero__grid-line--vertical::after {
    top: calc(var(--grid-y) + (var(--grid-dot-size) / 2) + var(--grid-gap));
    bottom: 0;
}

.home-hero__grid-line--horizontal {
    top: var(--grid-y);
    left: var(--grid-x);
    right: 0;

    height: 1px;
}

.home-hero__grid-line--horizontal::after {
    content: "";

    position: absolute;
    top: 0;
    left: calc((var(--grid-dot-size) / 2) + var(--grid-gap));
    right: 0;

    height: 1px;

    background-color: var(--grid-color);
}

.home-hero__grid-dot {
    position: absolute;
    top: calc(var(--grid-y) - (var(--grid-dot-size) / 2));
    left: calc(var(--grid-x) - (var(--grid-dot-size) / 2));

    width: var(--grid-dot-size);
    height: var(--grid-dot-size);

    background-color: rgba(255, 255, 255, 0.58);
}

/* =========================================
   RIGHT DECOR
   Pixso:
   asset: 481x1171
   full page x: 1439, y: -113
   inside 1440 container:
   x: 1199, y: -113
   ========================================= */

.home-hero__decor {
    position: absolute;
    left: 1199px;
    top: -113px;
    z-index: 1;

    width: 481px;
    height: 1171px;

    overflow: hidden;
    pointer-events: none;

    animation: homeHeroDecorIn 0.9s ease 0.1s both;
}

.home-hero__decor img {
    display: block;

    width: 481px;
    height: 1171px;

    object-fit: contain;
    user-select: none;

    /*
       Скрывает короткие обрезанные белые фрагменты
       на левом краю SVG-декора.
    */
    clip-path: inset(0 0 0 28px);
}

/* =========================================
   BANNER SLIDER
   Pixso:
   full page x: 991, y: 490
   inside 1440 container:
   x: 751, y: 490
   size: 690x325
   ========================================= */

.home-hero__banner {
    position: absolute;
    left: 751px;
    top: 490px;
    z-index: 6;

    width: 690px;
    height: 325px;

    overflow: hidden;

    border-radius: 22px;
    background-color: #ffffff;
    color: #1c2331;

    animation: homeHeroBannerIn 0.75s ease 0.22s both;
}

.home-hero__slides {
    position: relative;

    width: 100%;
    height: 100%;
}

.home-hero__slide {
    position: absolute;
    inset: 0;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 241px;

    background-color: #ffffff;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.28s ease,
        visibility 0.28s ease;
}

.home-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.home-hero__slide-content {
    position: relative;
    z-index: 2;

    padding: 44px 34px 74px 42px;
    background-color: #ffffff;
}

.home-hero__slide.is-active .home-hero__slide-content {
    animation: homeHeroSlideText 0.42s ease both;
}

.home-hero__slide-content h2 {
    margin: 0 0 10px;

    color: #1c2331;
    font-family: var(--font-accent);
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 38px;
    letter-spacing: -0.01em;
    text-transform: uppercase;
}

.home-hero__slide-content p {
    width: 360px;
    max-width: 100%;
    margin: 0;

    color: rgba(28, 35, 49, 0.82);
    font-family: var(--font-main);
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: 26px;
}

.home-hero__slide-picture {
    width: 241px;
    height: 325px;

    overflow: hidden;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: transparent;
}

.home-hero__slide-picture img,
.home-hero__slide-picture picture,
.home-hero__slide-picture picture img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center;
}

.home-hero__slide.is-active .home-hero__slide-picture {
    animation: homeHeroSlideImage 0.5s ease both;
}

/* =========================================
   SLIDER PROGRESS
   ========================================= */

.home-hero__slider-nav {
    position: absolute;
    left: 42px;
    right: 284px;
    bottom: 30px;
    z-index: 7;

    display: flex;
    align-items: center;
    gap: 28px;
}

.home-hero__slider-number {
    flex: 0 0 auto;

    color: #1c2331;
    font-family: var(--font-main);
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 27px;
}

.home-hero__slider-progress {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
}

.home-hero__slider-dot {
    position: relative;

    display: block;
    flex: 1 1 0;

    height: 5px;
    padding: 0;

    overflow: hidden;

    border: 0;
    border-radius: 50px;
    background-color: #e7e7e7;

    cursor: pointer;
}

.home-hero__slider-dot::before {
    content: "";

    position: absolute;
    inset: 0;

    display: block;

    border-radius: inherit;
    background-color: #d2232a;

    transform: scaleX(0);
    transform-origin: left center;
}

.home-hero__slider-dot.is-active::before {
    animation: homeHeroProgress 5s linear forwards;
}

.home-hero.is-paused .home-hero__slider-dot.is-active::before {
    animation-play-state: paused;
}

.home-hero__slider-dot:focus-visible,
.home-hero__button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes homeHeroProgress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes homeHeroFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes homeHeroDecorIn {
    from {
        opacity: 0;
        transform: translateX(36px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes homeHeroBannerIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes homeHeroSlideText {
    from {
        opacity: 0;
        transform: translateX(14px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes homeHeroSlideImage {
    from {
        opacity: 0;
        transform: scale(1.035);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


@media (max-width: 1023px) {
    .home-hero {
        height: auto;
        min-height: 0;
    }

    .home-hero__container {
        height: auto;
        min-height: 0;
        padding-top: 72px;
        padding-bottom: 64px;
    }

    .home-hero__content {
        position: relative;
        left: auto;
        top: auto;

        width: 100%;
        gap: 38px;
    }

    .home-hero__title-image {
        width: min(585px, 100%);
    }

    .home-hero__grid {
        display: none;
    }

    .home-hero__decor {
        top: 0;
        right: -280px;
        left: auto;

        width: 481px;
        height: 620px;

        opacity: 0.78;
        overflow: hidden;
    }

    .home-hero__decor img {
        width: 481px;
        height: 1171px;
        clip-path: inset(0 0 0 28px);
    }

    .home-hero__banner {
        position: relative;
        left: auto;
        right: auto;
        top: auto;

        width: 100%;
        max-width: 690px;
        height: 325px;
        margin-top: 54px;
    }

    .home-hero__slide {
        grid-template-columns: minmax(0, 1fr) 241px;
    }

    .home-hero__slide-picture {
        width: 241px;
        height: 325px;

        background-size: cover;
        background-position: center;
    }

    .home-hero__slider-nav {
        left: 42px;
        right: 284px;
        bottom: 30px;
    }
}


/* =========================================
   REDUCED MOTION
   ========================================= */


/* =========================================
   HOME PAGE: ABOUT BLOCK
   ========================================= */

.home-about,
.home-about *,
.home-about *::before,
.home-about *::after {
    box-sizing: border-box;
}

.home-about {
    position: relative;

    width: 100%;
    min-height: 570px;

    overflow: hidden;
    background-color: #ffffff;
    color: #1c2331;
}

.home-about.full-bleed {
    position: relative;
    left: auto;
    right: auto;

    width: 100%;
    max-width: none;

    margin-left: 0;
    margin-right: 0;
}

.home-about__container {
    position: relative;

    width: min(1440px, calc(100% - 48px));
    min-height: 570px;
    margin: 0 auto;
    padding: 92px 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* Заголовок — отдельный центрированный объект, как в макете */
.home-about__title {
    width: 100%;
    max-width: none;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    color: #1c2331;

    font-family: var(--font-accent);
    font-size: 52px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: 0.004em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;

    -webkit-text-stroke: 0;
    text-shadow: none;
}

.home-about__title span,
.home-about__title-red,
.home-about__title-text {
    display: inline-block;

    font-family: inherit;
    font-size: inherit;
    font-style: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: inherit;

    -webkit-text-stroke: inherit;
    text-shadow: inherit;
}

.home-about__title-red {
    color: #d2232a;
}

.home-about__title-text {
    color: #1c2331;
}

/* Текст — отдельная центрированная колонка, не привязанная к заголовку */
.home-about__text {
    width: 874px;
    max-width: 100%;
    margin: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;

    color: #1c2331;

    font-family: var(--font-main);
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
}

.home-about__text p {
    margin: 0;
    padding: 0;
    text-indent: 0;
}

.home-about__text br {
    display: none;
}

.home-about__text-spaced {
    padding-top: 26px;
    margin-bottom: 8px;
}

/* Ссылка */
.home-about__link {
    position: relative;

    width: fit-content;
    margin: 0 auto;
    padding: 8px 28px 8px 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    color: #d2232a;

    font-family: var(--font-main);
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    line-height: 26px;
    text-decoration: none;

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

.home-about__link::after {
    content: "";

    position: absolute;
    right: 0;
    top: 50%;

    width: 13px;
    height: 8px;

    background-color: currentColor;

    transform: translateY(-50%);

    clip-path: polygon(
        0 43%,
        76% 43%,
        55% 0,
        100% 50%,
        55% 100%,
        76% 57%,
        0 57%
    );
}

.home-about__link span {
    display: none;
}

.home-about__link:visited {
    color: #d2232a;
}

.home-about__link:hover {
    color: #b91f26;
    transform: translateY(-2px);
}

/* Человечек */
.home-about__figure {
    position: absolute;
    right: 40px;
    top: 271px;
    z-index: 1;

    display: block;

    width: 108px;
    height: auto;

    user-select: none;
    pointer-events: none;
}

/* Лёгкое появление */
.home-about__title,
.home-about__text,
.home-about__link,
.home-about__figure {
    animation: homeAboutFadeUp 0.7s ease both;
}

.home-about__text {
    animation-delay: 0.08s;
}

.home-about__link {
    animation-delay: 0.16s;
}

.home-about__figure {
    animation-delay: 0.22s;
}

@keyframes homeAboutFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 1023px) {
    .home-about {
        min-height: auto;
    }

    .home-about__container {
        min-height: auto;
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .home-about__title {
        max-width: 874px;

        flex-wrap: wrap;
        gap: 6px 10px;

        font-size: 42px;
        line-height: 1.08;
        white-space: normal;
    }

    .home-about__text {
        width: min(874px, calc(100% - 120px));
    }

    .home-about__figure {
        right: 0;
        top: auto;
        bottom: 56px;

        width: 84px;
        opacity: 0.9;
    }
}


/* =========================================
   HOME PAGE: TRACKS BLOCK
   Pixso:
   block: 1920 x 511
   padding: 80px 240px
   title: 52 / 64
   cards: 465px, gap 20px
   ========================================= */

.home-tracks,
.home-tracks *,
.home-tracks *::before,
.home-tracks *::after {
    box-sizing: border-box;
}

.home-tracks {
    position: relative;

    width: 100%;
    height: 511px;
    min-height: 511px;

    overflow: hidden;
    background-color: #f4f2ef;
    color: #1c2331;
}

.home-tracks.full-bleed {
    position: relative;
    left: auto;
    right: auto;

    width: 100%;
    max-width: none;

    margin-left: 0;
    margin-right: 0;
}

.home-tracks__container {
    position: relative;

    width: min(1440px, calc(100% - 48px));
    height: 511px;
    min-height: 511px;
    margin: 0 auto;
    padding: 80px 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 42px;
}

.home-tracks__title {
    margin: 0;

    color: #1c2331;

    font-family: var(--font-accent);
    font-size: 52px;
    font-style: normal;
    font-weight: 400;
    line-height: 64px;
    letter-spacing: 0;
    text-align: left;
    text-transform: uppercase;

    -webkit-text-stroke: 0;
    text-shadow: none;
}


.home-tracks__viewport,
.home-tracks__viewport * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.home-tracks__viewport {
    cursor: grab;
}

.home-tracks__viewport.is-dragging {
    cursor: grabbing;
}

.home-tracks__card,
.home-tracks__card * {
    -webkit-user-drag: none;
    user-drag: none;
}

/*
   Важно:
   viewport стартует по контейнеру 1440,
   но вправо продолжается до края окна.
   Поэтому 4-я карточка уходит за видимую область,
   как в макете.
*/
.home-tracks__viewport {
    position: relative;

    width: calc(100% + var(--home-edge-offset));
    margin-right: calc(0px - var(--home-edge-offset));

    overflow-x: auto;
    overflow-y: hidden;

    cursor: grab;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.home-tracks__viewport::-webkit-scrollbar {
    display: none;
}

.home-tracks__viewport.is-dragging {
    cursor: grabbing;
}

.home-tracks__track {
    width: max-content;

    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

.home-tracks__card {
    position: relative;
    flex: 0 0 465px;

    width: 465px;
    height: 243px;
    padding: 40px 36px 30px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;

    overflow: hidden;

    border-radius: 22px;
    text-decoration: none;
    mix-blend-mode: normal;

    transition: transform 0.2s ease;
}

.home-tracks__card--light {
    background-color: #ffffff;
    color: #1c2331;
}

.home-tracks__card--red {
    height: 245px;

    background-color: #d2232a;
    color: #ffffff;
}

.home-tracks__card--dark {
    height: 245px;
    padding: 46px 37px 30px;

    background-color: #1c2331;
    color: #ffffff;
}

.home-tracks__card-title {
    width: 374px;
    max-width: 100%;
    margin: 0;

    color: currentColor;

    font-family: var(--font-accent);
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: 38px;
    letter-spacing: 0;
    text-align: left;
    text-transform: uppercase;

    -webkit-text-stroke: 0;
    text-shadow: none;
}

.home-tracks__card-link {
    position: relative;

    align-self: flex-end;

    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    min-height: 42px;
    padding: 8px 23px 8px 0;

    color: currentColor;

    font-family: var(--font-main);
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: 26px;
    text-decoration: none;
    white-space: nowrap;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;

    user-select: none;
    pointer-events: auto;
    cursor: pointer;
    z-index: 2;
    touch-action: manipulation;
}

.home-tracks__card-link::after {
    content: none;
    display: none;
}

/* Единая SVG-стрелка для ссылок Главной. */
.home-link-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    color: currentColor;
    line-height: 0;
    pointer-events: none;
}

.home-link-arrow__svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.home-tracks__card-link .home-link-arrow {
    flex-basis: 14px;
    width: 14px;
    height: 14px;
}

.home-tracks__card-link:visited {
    color: currentColor;
}

.home-tracks__card-link:hover {
    transform: translateX(3px);
}

.home-tracks__card:hover {
    transform: translateY(-4px);
}


/* Полноширинная линия в логических координатах макета */
.home-tracks__line {
    position: absolute;
    left: calc(0px - var(--home-edge-offset));
    bottom: 8px;

    width: calc(100% + var(--home-edge-offset) + var(--home-edge-offset));
    height: 4px;

    background-color: #e7e7e7;
}

.home-tracks__line::before {
    content: "";

    position: absolute;
    left: 0;
    top: 0;

    width: 619px;
    height: 4px;

    background-color: #d2232a;
}


@media (max-width: 1023px) {
    .home-tracks {
        height: auto;
        min-height: 0;
    }

    .home-tracks__container {
        height: auto;
        min-height: 0;
        padding-top: 72px;
        padding-bottom: 72px;
        gap: 32px;
    }

    .home-tracks__title {
        font-size: 42px;
        line-height: 52px;
    }

    .home-tracks__card {
        flex-basis: 320px;

        width: 320px;
        height: 174px;
        padding: 28px 24px 22px;

        border-radius: 16px;
    }

    .home-tracks__card--red,
    .home-tracks__card--dark {
        height: 176px;
    }

    .home-tracks__card--dark {
        padding: 32px 25px 22px;
    }

    .home-tracks__card-title {
        width: 260px;

        font-size: 23px;
        line-height: 30px;
    }

    .home-tracks__line::before {
        width: 360px;
    }
}


/* =========================================
   HOME PAGE: PARTNERS / MEMBERS BLOCK
   ========================================= */

.home-partners,
.home-partners *,
.home-partners *::before,
.home-partners *::after {
    box-sizing: border-box;
}

.home-partners {
    position: relative;

    width: 100%;
    min-height: 868px;

    overflow: hidden;
    background-color: #ffffff;
    color: #1c2331;
}

.home-partners.full-bleed {
    position: relative;
    left: auto;
    right: auto;

    width: 100%;
    max-width: none;

    margin-left: 0;
    margin-right: 0;
}

.home-partners__container {
    position: relative;

    width: min(1440px, calc(100% - 48px));
    min-height: 868px;
    margin: 0 auto;
    padding: 100px 0 96px;
}

.home-partners__title {
    margin: 0 0 40px;

    color: #1c2331;

    font-family: var(--font-accent);
    font-size: 52px;
    font-style: normal;
    font-weight: 400;
    line-height: 64px;
    letter-spacing: 0;
    text-align: left;
    text-transform: uppercase;

    -webkit-text-stroke: 0;
    text-shadow: none;
}

.home-partners__groups {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.home-partners__group {
    position: relative;
}

.home-partners__group-head {
    margin-bottom: 38px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.home-partners__subtitle {
    margin: 0;

    color: #d2232a;

    font-family: var(--font-accent);
    font-size: 36px;
    font-style: normal;
    font-weight: 400;
    line-height: 45px;
    letter-spacing: 0;
    text-align: left;
    text-transform: uppercase;

    -webkit-text-stroke: 0;
    text-shadow: none;
}

.home-partners__subtitle-line {
    display: block;

    width: 70px;
    height: 4px;

    border-radius: 0;
    background-color: #d2232a;
}

/* Ряд логотипов выходит на всю логическую ширину макета,
   а заголовки остаются внутри контейнера 1440px. */
.home-partners__slider {
    position: relative;

    width: calc(100% + var(--home-edge-offset) + var(--home-edge-offset));
    height: 153px;

    margin-left: calc(0px - var(--home-edge-offset));
    margin-right: calc(0px - var(--home-edge-offset));

    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.home-partners__slider::-webkit-scrollbar {
    display: none;
}

.home-partners__slider.is-dragging {
    cursor: grabbing;
}

.home-partners__track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;

    width: max-content;
    min-width: max-content;
    height: 153px;

    transform: none;
    animation: none;
    will-change: auto;
}

.home-partners__sequence {
    flex: 0 0 auto;

    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 20px;

    padding-right: 20px;
}

.home-partners__card {
    position: relative;
    flex: 0 0 288px;

    width: 288px;
    height: 153px;
    padding: 0;

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

    overflow: hidden;

    border: 1px solid #d2d2d2;
    border-radius: 22px;
    background-color: #ffffff;
    color: inherit;
    text-decoration: none;
}

.home-partners__logo {
    display: block;

    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    max-width: 82%;
    max-height: 64%;
    margin: 0;
    padding: 0;

    object-fit: contain;
    object-position: center;
    filter: grayscale(1);
    opacity: 0.55;

    transition:
        filter 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.home-partners__card:hover .home-partners__logo {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.03);
}

.home-partners__logo-placeholder {
    display: block;

    color: #c7c7c7;

    font-family: var(--font-main);
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}


@media (max-width: 1023px) {
    .home-partners {
        min-height: auto;
    }

    .home-partners__container {
        min-height: auto;
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .home-partners__title {
        font-size: 42px;
        line-height: 52px;
    }

    .home-partners__groups {
        gap: 48px;
    }

    .home-partners__group-head {
        margin-bottom: 32px;
    }

    .home-partners__slider,
    .home-partners__track {
        height: 132px;
    }


    .home-partners__sequence {
        gap: 16px;
        padding-right: 16px;
    }

    .home-partners__card {
        flex-basis: 250px;

        width: 250px;
        height: 132px;

        border-radius: 18px;
    }
}


/* =========================================
   HOME PAGE: EVENTS BLOCK
   ========================================= */

.home-events,
.home-events *,
.home-events *::before,
.home-events *::after {
    box-sizing: border-box;
}

.home-events {
    position: relative;

    width: 100%;
    min-height: 958px;

    overflow: hidden;
    background-color: #1c2331;
    color: #ffffff;
}

.home-events.full-bleed {
    position: relative;
    left: auto;
    right: auto;

    width: 100%;
    max-width: none;

    margin-left: 0;
    margin-right: 0;
}

.home-events__container {
    position: relative;

    width: 1440px;
    max-width: calc(100% - 96px);
    min-height: 958px;
    margin: 0 auto;
    padding: 102px 0 96px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
}

.home-events__title {
    margin: 0;

    color: #ffffff;

    font-family: var(--font-accent);
    font-size: 52px;
    font-style: normal;
    font-weight: 400;
    line-height: 64px;
    letter-spacing: 0;
    text-align: left;
    text-transform: uppercase;

    -webkit-text-stroke: 0;
    text-shadow: none;
}

.home-events__grid {
    width: 100%;

    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.home-events__card {
    position: relative;

    flex: 0 0 calc((100% - 20px) / 2);

    width: calc((100% - 20px) / 2);
    height: 281px;
    min-height: 281px;
    padding: 42px 48px 42px 40px;

    overflow: hidden;

    border-radius: 22px;
    color: #ffffff;
}

.home-events__card--dark {
    background-color: #252e3f;
}

.home-events__card--red {
    background-color: #d2232a;
}

/* Декор: ровно 3 мягких кольца через radial-gradient */
.home-events__card::after {
    content: "";

    position: absolute;
    right: -208px;
    top: 50px;
    z-index: 1;

    width: 414px;
    height: 414px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.10) 0 58px,
            rgba(255, 255, 255, 0.075) 59px 118px,
            rgba(255, 255, 255, 0.05) 119px 176px,
            rgba(255, 255, 255, 0.025) 177px 236px,
            transparent 237px
        );

    pointer-events: none;
}

.home-events__card--red::after {
    background:
        radial-gradient(
            circle at center,
            rgba(255, 255, 255, 0.16) 0 58px,
            rgba(255, 255, 255, 0.11) 59px 118px,
            rgba(255, 255, 255, 0.075) 119px 176px,
            rgba(255, 255, 255, 0.035) 177px 236px,
            transparent 237px
        );
}

.home-events__content {
    position: relative;
    z-index: 2;

    width: 447px;
    max-width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
}

.home-events__date {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 14px;

    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);

    color: #ffffff;

    font-family: var(--font-main);
    font-size: 17px;
    font-style: normal;
    font-weight: 700;
    line-height: 27px;
    white-space: nowrap;
}

.home-events__text {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.home-events__card-title {
    margin: 0;

    color: #ffffff;

    font-family: var(--font-accent);
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 38px;
    letter-spacing: -0.01em;
    text-align: left;
    text-transform: uppercase;

    -webkit-text-stroke: 0;
    text-shadow: none;
}

.home-events__text p {
    width: 100%;
    margin: 0;

    color: rgba(255, 255, 255, 0.8);

    font-family: var(--font-main);
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
}

.home-events__link {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;

    padding: 8px 23px 8px 0;

    color: #ffffff;

    font-family: var(--font-main);
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: 26px;
    text-decoration: none;

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

.home-events__link::after {
    content: "";

    position: absolute;
    right: 0;
    top: 50%;

    width: 12.6px;
    height: 8px;

    background-color: currentColor;
    transform: translateY(-50%);

    clip-path: polygon(
        0 43%,
        76% 43%,
        55% 0,
        100% 50%,
        55% 100%,
        76% 57%,
        0 57%
    );
}

.home-events__link:visited {
    color: #ffffff;
}

.home-events__link:hover {
    opacity: 0.82;
    transform: translateX(3px);
}

/* лёгкая анимация */
.home-events__title,
.home-events__card,
.home-events__link {
    animation: homeEventsFadeUp 0.7s ease both;
}

.home-events__card:nth-child(1) {
    animation-delay: 0.04s;
}

.home-events__card:nth-child(2) {
    animation-delay: 0.08s;
}

.home-events__card:nth-child(3) {
    animation-delay: 0.12s;
}

.home-events__card:nth-child(4) {
    animation-delay: 0.16s;
}

.home-events__link {
    animation-delay: 0.2s;
}

@keyframes homeEventsFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================
   HOME PAGE: NEWS BLOCK
   ========================================= */

.home-news,
.home-news *,
.home-news *::before,
.home-news *::after {
    box-sizing: border-box;
}

.home-news {
    position: relative;
    width: 100%;
    min-height: 785px;
    overflow: hidden;
    background: #ffffff;
    color: #1c2331;
}

.home-news.full-bleed {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.home-news__container {
    width: 1440px;
    max-width: calc(100% - 96px);
    min-height: 785px;
    margin: 0 auto;
    padding: 92px 0 78px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
}

.home-news__title {
    margin: 0;

    color: #1c2331;

    font-family: var(--font-accent);
    font-size: 52px;
    font-weight: 400;
    line-height: 64px;
    text-transform: uppercase;

    -webkit-text-stroke: 0;
    text-shadow: none;
}

.home-news__grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.home-news__card {
    position: relative;

    width: 100%;
    min-height: 422px;

    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-news__image-link {
    position: relative;

    display: block;
    width: 100%;
    height: 200px;

    overflow: hidden;
    border-radius: 20px;
    background: #f4f2ef;
}

.home-news__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.home-news__card:hover .home-news__image {
    transform: scale(1.04);
}

.home-news__external {
    position: absolute;
    right: 19px;
    top: 20px;

    width: 34px;
    height: 34px;

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

    border-radius: 50%;
    background: #d2232a;
}

.home-news__external::before {
    content: "↗";

    color: #ffffff;

    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.home-news__body {
    width: 100%;
    padding-right: 32px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.home-news__card-title {
    margin: 0;

    color: #1c2331;

    font-family: var(--font-accent);
    font-size: 30px;
    font-weight: 400;
    line-height: 38px;
    text-transform: uppercase;

    -webkit-text-stroke: 0;
    text-shadow: none;
}

.home-news__text {
    margin: 0;

    color: rgba(28, 35, 49, 0.7);

    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
}

.home-news__link {
    position: relative;

    display: inline-flex;
    align-items: center;

    padding: 8px 23px 8px 0;

    color: #d2232a;

    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 600;
    line-height: 26px;
    text-decoration: none;
}

.home-news__link::after {
    content: "";

    position: absolute;
    right: 0;
    top: 50%;

    width: 12.6px;
    height: 8px;

    background: currentColor;
    transform: translateY(-50%);

    clip-path: polygon(0 43%, 76% 43%, 55% 0, 100% 50%, 55% 100%, 76% 57%, 0 57%);
}

.home-news__button {
    min-height: 65px;
    padding: 8px 48px;

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

    border-radius: 12px;
    background: #d2232a;
    color: #ffffff;

    font-family: var(--font-main);
    font-size: 17px;
    font-weight: 900;
    line-height: 27px;
    text-decoration: none;

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

.home-news__button:hover {
    transform: translateY(-2px);
    background: #b91f26;
}

/* =========================================
   HOME MEDIA
   ========================================= */

.home-media {
    background: #efeded;
    padding: 78px 0 120px;
    overflow: hidden;
}

.home-media__container {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    column-gap: 140px;
    align-items: start;
}

.home-media__aside {
    padding-top: 12px;
}

.home-media__title {
    margin: 0;
    color: #1c2331;
    font-family: var(--font-accent);
    font-size: 64px;
    line-height: 0.95;
    font-weight: 500;
    text-transform: uppercase;
}

.home-media__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    min-height: 64px;
    margin-top: 48px;
    padding: 0 28px;
    border-radius: 14px;
    background: #e31f26;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.home-media__button:hover {
    background: #c81a20;
    transform: translateY(-1px);
}

.home-media__figure {
    width: 173px;
    margin-top: 56px;
}

.home-media__figure img {
    display: block;
    width: 100%;
    height: auto;
}

.home-media__content {
    min-width: 0;
}

.home-media__list {
    width: 100%;
}

.home-media__item {
    border-bottom: 1px solid #cfcfcf;
}

.home-media__item:first-child {
    border-top: 0;
}

.home-media__item.is-open {
    background: #e4e4e4;
    border-bottom-color: transparent;
    border-radius: 24px;
    margin-bottom: 18px;
    overflow: hidden;
}

.home-media__toggle {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
    column-gap: 20px;
    align-items: start;
    padding: 26px 26px 24px 26px;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
}

.home-media__item:not(.is-open) .home-media__toggle {
    padding: 22px 26px 22px 26px;
}

.home-media__heading {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0;
}

.home-media__source,
.home-media__headline {
    font-family: var(--font-accent);
    font-style: normal;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.03;
    letter-spacing: 0;
}

.home-media__source {
    color: #e31f26;
    font-size: 28px;
    margin-right: 6px;
}

.home-media__headline {
    color: #1c2331;
    font-size: 28px;
}

.home-media__arrow {
    width: 36px;
    height: 36px;
    position: relative;
    flex-shrink: 0;
}


.home-media__body {
    display: none;
    padding: 0 26px 24px 26px;
}

.home-media__item.is-open .home-media__body {
    display: block;
}

.home-media__lead {
    max-width: 860px;
    margin: 0;
    color: #4d5565;
    font-family: var(--font-main);
    font-size: 18px;
    line-height: 1.5;
    font-weight: 400;
}

.home-media__readmore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: #e31f26;
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
}

.home-media__readmore .home-link-arrow {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
    transform: none;
}

.home-media__readmore:hover {
    text-decoration: underline;
}

/* hover */
.home-media__item:not(.is-open):hover .home-media__headline,
.home-media__item:not(.is-open):hover .home-media__source {
    opacity: 0.9;
}


/* responsive */


/* =========================================
   SHARED HOME BEHAVIOR
   ========================================= */

.home-hero__slide-content,
.home-events__card,
.home-events__content,
.home-events__text,
.home-news__card,
.home-news__body,
.home-media__item,
.home-media__heading {
    min-width: 0;
}

.home-hero__slide-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-hero__slide-content h2,
.home-hero__slide-content p,
.home-events__card-title,
.home-events__text p,
.home-news__card-title,
.home-news__text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.home-hero__slide-content h2,
.home-news__card-title,
.home-events__text p,
.home-news__text {
    -webkit-line-clamp: 3;
}

.home-hero__slide-content p {
    -webkit-line-clamp: 4;
}

.home-events__card-title {
    -webkit-line-clamp: 2;
}

.home-events__content {
    max-width: 430px;
}

.home-hero__slide-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: #d2232a;
    font-family: var(--font-main);
    font-size: 15px;
    line-height: 1.2;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.home-hero__slide-link span {
    display: inline-block;
    transform: translateY(-1px);
    transition: transform 0.25s ease;
}

.home-hero__slide-link:hover {
    color: #e52a31;
    transform: translateX(2px);
}

.home-hero__slide-link:hover span {
    transform: translate(4px, -1px);
}

.home-partners__card--link {
    cursor: pointer;
    pointer-events: auto;
}

.home-partners__card--link:focus-visible {
    outline: 2px solid #d2232a;
    outline-offset: 4px;
}

.home-partners__go {
    display: none;
}

.home-tracks__card::before,
.home-tracks__card::after {
    display: none;
    content: none;
}

/* SVG arrows from page markup. */
.home-news__external::before,
.home-news__external::after,
.home-media__arrow::before,
.home-media__arrow::after,
.home-media__toggle::before,
.home-media__toggle::after {
    content: none;
    display: none;
}

.home-news__external img {
    display: block;
    width: 18px;
    height: 18px;
}

.home-media__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin: 0;
    justify-self: end;
    overflow: hidden;
    color: #1c2331;
    line-height: 0;
    pointer-events: none;
}

.home-media__arrow-icon {
    display: block;
    width: 20px;
    height: 20px;
    max-width: none;
    flex: 0 0 auto;
    color: currentColor;
    overflow: visible;
    pointer-events: none;
}

.home-media__arrow-icon--closed {
    display: block;
}

.home-media__arrow-icon--open {
    display: none;
}

.home-media__item.is-open .home-media__arrow-icon--closed {
    display: none;
}

.home-media__item.is-open .home-media__arrow-icon--open,
.home-media__item.active .home-media__arrow-icon--open,
.home-media__item.open .home-media__arrow-icon--open,
.home-media__item._active .home-media__arrow-icon--open {
    display: block;
}

.home-media__item.active .home-media__arrow-icon--closed,
.home-media__item.open .home-media__arrow-icon--closed,
.home-media__item._active .home-media__arrow-icon--closed {
    display: none;
}


/* =========================================
   TABLET / MOBILE STRUCTURE: <= 1023px
   ========================================= */

@media (max-width: 1023px) {
    :root {
        --home-edge-offset: 24px;
    }

    .home-events,
    .home-news {
        min-height: auto;
    }

    .home-events__container,
    .home-news__container {
        width: calc(100% - 48px);
        max-width: none;
        min-height: auto;
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .home-events__grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .home-events__grid::-webkit-scrollbar {
        display: none;
    }

    .home-events__card {
        flex: 0 0 min(680px, calc(100vw - 72px));
        width: min(680px, calc(100vw - 72px));
    }

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

    .home-media__container {
        grid-template-columns: 1fr;
        row-gap: 48px;
    }

    .home-media__aside {
        padding-top: 0;
    }

    .home-media__figure {
        margin-top: 32px;
    }
}


/* =========================================
   MOBILE PIXSO: <= 767px
   ========================================= */

@media (max-width: 767px) {
    :root {
        --m-container: min(320px, calc(100vw - 40px));
        --home-edge-offset: calc((100vw - var(--m-container)) / 2);
        --m-red: #d2232a;
        --m-dark: #1c2331;
        --m-card-dark: #252e3f;
        --m-beige: #f4f2ef;
        --m-gray: #e7e7e7;
        --m-border: #dbdbdb;
        --m-gutter: 20px;
        --m-radius: 16px;
        --m-ease: cubic-bezier(0.22, 1, 0.36, 1);
    }

    /* =====================================================
       НАЧАЛО: общие размеры секций
       ===================================================== */

    .home-hero,
    .home-about,
    .home-tracks,
    .home-partners,
    .home-events,
    .home-news,
    .home-media {
        width: 100%;
        max-width: none;
        overflow: hidden;
    }

    /* =====================================================
       НАЧАЛО: общий контейнер 320px как в Pixso
       ===================================================== */

    .home-hero__container,
    .home-about__container,
    .home-tracks__container,
    .home-partners__container,
    .home-events__container,
    .home-news__container,
    .home-media__container {
        width: var(--m-container);
        max-width: none;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        padding-right: 0;
    }

    /* =====================================================
       НАЧАЛО: HERO / первый экран
       Макет: тёмный блок 620px, контент 320px
       ===================================================== */

    .home-hero {
        height: 610px;
        min-height: 610px;
        background: var(--m-dark);
        color: #ffffff;
        position: relative;
    }

    .home-hero__container {
        position: relative;
        height: 610px;
        min-height: 610px;
        padding-top: 0;
        padding-bottom: 0;
    }

    /* Логотип НАЭКК + кнопка вступления */
    .home-hero__content {
        position: absolute;
        left: 0;
        top: 62px;
        z-index: 5;
        width: 320px;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        margin: 0;
        padding: 0;
    }

    /* Большой логотип в hero */
    .home-hero__title-image,
    .home-hero__content > img,
    .home-hero__content picture,
    .home-hero__content picture img,
    .home-hero__content svg {
        display: block;
        width: 262px;
        max-width: 262px;
        height: auto;
        margin: 0;
    }

    /* Кнопка "Вступить в ассоциацию" */
    .home-hero__button {
        width: auto;
        min-width: 0;
        max-width: none;
        height: 41px;
        min-height: 41px;
        padding: 10px 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        background: var(--m-red);
        color: #ffffff;
        font-size: 13px;
        line-height: 21px;
        font-weight: 800;
        text-align: center;
        white-space: nowrap;
        transition: transform 0.35s var(--m-ease), background-color 0.35s var(--m-ease), opacity 0.35s var(--m-ease);
    }

    .home-hero__button:active {
        transform: scale(0.98);
    }

    /* Скрываем десктопную сетку hero */
    .home-hero__grid {
        display: none;
    }

    /* Декор/спирали/красный фон под карточкой */
    .home-hero__decor {
        display: block;
        position: absolute;
        left: calc((100vw - var(--m-container)) / -2);
        top: 213px;
        right: auto;
        bottom: auto;
        z-index: 1;
        width: 100vw;
        height: calc(100vw * 1171 / 481);
        min-height: 879px;
        opacity: 1;
        overflow: hidden;
        pointer-events: none;
        transform: none;
        animation: none;
    }

    .home-hero__decor img,
    .home-hero__decor svg {
        display: block;
        width: 100%;
        height: auto;
        min-height: 879px;
        max-width: none;
        object-fit: cover;
        object-position: left top;
        clip-path: none;
        opacity: 1;
    }

    /* Белая рекламная карточка в hero */
    .home-hero__banner {
        position: absolute;
        left: 0;
        top: 305px;
        right: auto;
        bottom: auto;
        z-index: 6;
        width: 320px;
        max-width: 100%;
        height: 260px;
        min-height: 260px;
        margin: 0;
        border-radius: 16px;
        background: #ffffff;
        color: var(--m-dark);
        overflow: hidden;
        box-shadow: none;
    }

    /* Слайдер внутри hero */
    .home-hero__slides {
        width: 100%;
        height: 260px;
        min-height: 260px;
        overflow: hidden;
    }

    .home-hero__slide {
        width: 100%;
        height: 260px;
        min-height: 260px;
        display: block;
        grid-template-columns: none;
        grid-template-rows: none;
        transition: opacity 0.55s var(--m-ease), transform 0.55s var(--m-ease);
    }

    .home-hero__slide-content {
        width: 100%;
        height: 260px;
        min-height: 260px;
        padding: 24px 24px 56px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .home-hero__slide-content h2 {
        width: 100%;
        margin: 0 0 5px;
        color: var(--m-dark);
        font-size: 24px;
        line-height: 29px;
        font-weight: 400;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .home-hero__slide-content p {
        width: 100%;
        margin: 0;
        color: var(--m-dark);
        font-size: 12px;
        line-height: 21px;
        font-weight: 400;
        opacity: 0.8;
    }

    /* В мобильном макете картинки внутри слайда нет */
    .home-hero__slide-picture {
        display: none;
    }

    /* Навигация слайдера hero */
    .home-hero__slider-nav {
        position: absolute;
        left: 24px;
        right: 24px;
        bottom: 20px;
        z-index: 7;
        display: block;
        width: auto;
        margin: 0;
        padding: 0;
    }

    .home-hero__slider-number {
        display: none;
    }

    .home-hero__slider-progress {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .home-hero__slider-dot {
        flex: 1 1 0;
        width: auto;
        height: 3px;
        border-radius: 50px;
        background: var(--m-gray);
        opacity: 1;
        transition: background-color 0.35s var(--m-ease), transform 0.35s var(--m-ease);
    }

    .home-hero__slider-dot.is-active,
    .home-hero__slider-dot.active,
    .home-hero__slider-dot.swiper-pagination-bullet-active {
        background: var(--m-red);
    }

    /* =====================================================
       КОНЕЦ: HERO
       ===================================================== */


    /* =====================================================
       НАЧАЛО: ABOUT / НАЭКК профессиональный стандарт
       ===================================================== */

    .home-about {
        min-height: 0;
        background: #ffffff;
    }

    .home-about__container {
        min-height: 0;
        padding-top: 40px;
        padding-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 17px;
    }

    .home-about__title {
        width: 100%;
        max-width: 100%;
        margin: 0;
        display: block;
        color: var(--m-dark);
        font-size: 34px;
        line-height: 35px;
        font-weight: 400;
        letter-spacing: 0;
        text-align: left;
        text-transform: uppercase;
        white-space: normal;
    }

    .home-about__title span,
    .home-about__title-red,
    .home-about__title-text {
        display: inline;
    }

    .home-about__title-red {
        color: var(--m-red);
    }

    .home-about__text {
        width: 100%;
        max-width: 100%;
        margin: 0;
        color: var(--m-dark);
        font-size: 12px;
        line-height: 21px;
        font-weight: 400;
    }

    .home-about__text p {
        margin: 0;
    }

    .home-about__text-spaced {
        padding-top: 16px;
        margin-bottom: 0;
    }

    .home-about__link {
        margin: 0;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: var(--m-red);
        font-size: 13px;
        line-height: 21px;
        font-weight: 800;
        text-decoration: none;
        transition: gap 0.35s var(--m-ease), opacity 0.35s var(--m-ease);
    }

    /* Скрываем десктопную фигуру/картинку about */
    .home-about__figure {
        display: none;
    }

    /* =====================================================
       КОНЕЦ: ABOUT
       ===================================================== */


    /* =====================================================
       НАЧАЛО: TRACKS / Треки НАЭКК
       Макет: бежевый фон, горизонтальный скролл карточек
       ===================================================== */

    .home-tracks {
        height: auto;
        min-height: 0;
        background: var(--m-beige);
    }

    .home-tracks__container {
        height: auto;
        min-height: 0;
        padding-top: 36px;
        padding-bottom: 28px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .home-tracks__title {
        margin: 0;
        color: var(--m-dark);
        font-size: 34px;
        line-height: 35px;
        font-weight: 400;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    /* Область горизонтального скролла */
    .home-tracks__viewport {
        width: calc(100% + var(--home-edge-offset));
        max-width: none;
        margin-left: 0;
        margin-right: calc(0px - var(--home-edge-offset));
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .home-tracks__viewport::-webkit-scrollbar {
        display: none;
    }

    .home-tracks__track {
        width: max-content;
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        padding: 0;
    }

    /* Карточка трека */
    .home-tracks__card {
        flex: 0 0 300px;
        width: 300px;
        height: 168px;
        min-height: 168px;
        padding: 28px 22px;
        border-radius: 14px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        scroll-snap-align: start;
        box-shadow: none;
        transition: transform 0.45s var(--m-ease), background-color 0.45s var(--m-ease);
    }

    .home-tracks__card-title {
        width: 236px;
        max-width: 100%;
        margin: 0;
        font-size: 20px;
        line-height: 25px;
        font-weight: 400;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .home-tracks__card-link {
        min-height: 22px;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-size: 11px;
        line-height: 16px;
        font-weight: 500;
        text-decoration: none;
    }

    .home-tracks__line {
        height: 3px;
        bottom: 0;
    }

    .home-tracks__line::before {
        width: 180px;
        height: 3px;
        border-radius: 50px;
    }

    /* =====================================================
       КОНЕЦ: TRACKS
       ===================================================== */


    /* =====================================================
       НАЧАЛО: PARTNERS / Члены ассоциации и партнёры
       Макет: логотипы 160x86
       ===================================================== */

    .home-partners {
        min-height: 0;
        background: #ffffff;
    }

    .home-partners__container {
        min-height: 0;
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .home-partners__title {
        width: 100%;
        margin: 0 0 24px;
        color: var(--m-dark);
        font-size: 34px;
        line-height: 35px;
        font-weight: 400;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .home-partners__groups {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .home-partners__group-head {
        margin: 0 0 20px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .home-partners__subtitle {
        margin: 0;
        color: var(--m-red);
        font-size: 26px;
        line-height: 33px;
        font-weight: 400;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .home-partners__subtitle-line {
        display: block;
        width: 60px;
        height: 2px;
        border-radius: 10px;
        background: var(--m-red);
    }

    /* Горизонтальная drag-лента логотипов */
    .home-partners__slider {
        width: calc(100% + var(--home-edge-offset) + var(--home-edge-offset));
        height: 86px;
        margin-left: calc(0px - var(--home-edge-offset));
        margin-right: calc(0px - var(--home-edge-offset));
        overflow-x: auto;
        overflow-y: hidden;
    }

    .home-partners__track {
        height: 86px;
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        animation: none;
        transform: none;
        will-change: auto;
    }


    .home-partners__sequence {
        height: 86px;
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        padding-right: 12px;
    }

    .home-partners__card {
        flex: 0 0 160px;
        width: 160px;
        height: 86px;
        border-radius: 16px;
        border: 1px solid #d2d2d2;
        background: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .home-partners__card .home-partners__logo,
    .home-partners__card img.home-partners__logo {
        width: auto;
        height: auto;
        min-width: 0;
        min-height: 0;
        max-width: 78%;
        max-height: 58%;
        object-fit: contain;
        object-position: center;
        pointer-events: none;
        user-select: none;
    }

    .home-partners__logo-placeholder {
        color: rgba(28, 35, 49, 0.25);
        font-size: 20px;
        line-height: 24px;
        font-weight: 400;
    }

    /* =====================================================
       КОНЕЦ: PARTNERS
       ===================================================== */


    /* =====================================================
       НАЧАЛО: EVENTS / Ближайшие события
       Макет: тёмный фон, карточки 320x242 в скролле
       ===================================================== */

    .home-events {
        min-height: 0;
        background: var(--m-dark);
    }

    .home-events__container {
        min-height: 0;
        padding-top: 40px;
        padding-bottom: 32px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .home-events__title {
        margin: 0;
        color: #ffffff;
        font-size: 34px;
        line-height: 35px;
        font-weight: 400;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    /* Горизонтальный скролл карточек событий */
    .home-events__grid {
        width: calc(100% + var(--home-edge-offset));
        max-width: none;
        margin-left: 0;
        margin-right: calc(0px - var(--home-edge-offset));
        display: flex;
        flex-wrap: nowrap;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .home-events__grid::-webkit-scrollbar {
        display: none;
    }

    /* Карточка события */
    .home-events__card {
        position: relative;
        flex: 0 0 320px;
        width: 320px;
        height: 242px;
        min-height: 242px;
        padding: 22px 22px 24px;
        border-radius: 14px;
        background: var(--m-card-dark);
        overflow: hidden;
        scroll-snap-align: start;
        box-shadow: none;
    }

    .home-events__content {
        position: relative;
        z-index: 2;
        width: 210px;
        max-width: 210px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .home-events__date {
        padding: 7px 14px;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
        font-size: 12px;
        line-height: 18px;
        font-weight: 700;
    }

    .home-events__text {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .home-events__card-title {
        margin: 0;
        color: #ffffff;
        font-size: 20px;
        line-height: 25px;
        font-weight: 400;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .home-events__text p {
        margin: 0;
        color: rgba(255, 255, 255, 0.8);
        font-size: 11px;
        line-height: 16px;
        font-weight: 500;
    }

    /* Декоративный круг/паттерн внутри карточки события */
    .home-events__card::after {
        content: "";
        position: absolute;
        right: -125px;
        top: 78px;
        width: 291px;
        height: 291px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 1;
        pointer-events: none;
    }

    .home-events__link {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: #ffffff;
        font-size: 13px;
        line-height: 21px;
        font-weight: 800;
        text-decoration: none;
        transition: gap 0.35s var(--m-ease), opacity 0.35s var(--m-ease);
    }

    /* =====================================================
       КОНЕЦ: EVENTS
       ===================================================== */


    /* =====================================================
       НАЧАЛО: NEWS / Новости НАЭКК
       Макет: карточки в одну колонку, картинка 200px
       ===================================================== */

    .home-news {
        min-height: 0;
        background: #ffffff;
    }

    .home-news__container {
        min-height: 0;
        padding-top: 37px;
        padding-bottom: 36px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .home-news__title {
        margin: 0;
        color: var(--m-dark);
        font-size: 34px;
        line-height: 35px;
        font-weight: 400;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .home-news__grid {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 21px;
    }

    /* Карточка новости */
    .home-news__card {
        position: relative;
        width: 100%;
        min-height: 405px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        background: #ffffff;
        box-shadow: none;
        overflow: visible;
    }

    /* Картинка новости */
    .home-news__image-link {
        position: relative;
        width: 100%;
        height: 200px;
        min-height: 200px;
        display: block;
        border-radius: 16px;
        overflow: hidden;
    }

    .home-news__image-link img,
    .home-news__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    /* Красная круглая кнопка поверх картинки */
    .home-news__external {
        position: absolute;
        right: 15px;
        top: 15px;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: var(--m-red);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .home-news__external::before {
        font-size: 16px;
        line-height: 16px;
    }

    .home-news__body {
        width: 100%;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .home-news__card-title {
        width: 100%;
        margin: 0;
        color: var(--m-dark);
        font-size: 24px;
        line-height: 29px;
        font-weight: 400;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .home-news__text {
        margin: 0;
        color: rgba(28, 35, 49, 0.7);
        font-size: 12px;
        line-height: 21px;
        font-weight: 400;
    }

    .home-news__link {
        margin-top: 0;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: var(--m-red);
        font-size: 13px;
        line-height: 21px;
        font-weight: 800;
        text-decoration: none;
        transition: gap 0.35s var(--m-ease), opacity 0.35s var(--m-ease);
    }

    /* Кнопка "Все новости" */
    .home-news__button,
    .home-media__button {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: 41px;
        min-height: 41px;
        margin: 0;
        padding: 10px 30px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        background: var(--m-red);
        color: #ffffff;
        font-size: 13px;
        line-height: 21px;
        font-weight: 800;
        text-align: center;
        text-decoration: none;
        white-space: nowrap;
        transition: transform 0.35s var(--m-ease), background-color 0.35s var(--m-ease), opacity 0.35s var(--m-ease);
    }

    .home-news__button:active,
    .home-media__button:active {
        transform: scale(0.98);
    }

    /* =====================================================
       КОНЕЦ: NEWS
       ===================================================== */


    /* =====================================================
       НАЧАЛО: MEDIA / СМИ о нас
       Макет: список, плавное раскрытие пунктов
       ===================================================== */

    .home-media {
        min-height: 0;
        padding: 0;
        background: var(--m-beige);
    }

    .home-media__container {
        padding-top: 34px;
        padding-bottom: 36px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* aside превращаем в contents, чтобы заголовок и кнопка встали по макету */
    .home-media__aside {
        display: contents;
    }

    .home-media__title {
        order: 1;
        margin: 0;
        color: var(--m-dark);
        font-size: 34px;
        line-height: 35px;
        font-weight: 400;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .home-media__content {
        order: 2;
        width: 100%;
        min-width: 0;
    }

    /* Кнопка "Все статьи о нас" */
    .home-media__button {
        order: 3;
    }

    /* Скрываем десктопную декоративную фигуру */
    .home-media__figure {
        display: none;
    }

    .home-media__list {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Пункт списка СМИ */
    .home-media__item {
        width: 100%;
        margin: 0;
        border-radius: 0;
        background: transparent;
        border: 0;
        overflow: visible;
        transition: background-color 0.45s var(--m-ease), border-color 0.45s var(--m-ease), opacity 0.45s var(--m-ease);
    }

    .home-media__item:not(:first-child) {
        border-top: 1px solid var(--m-border);
    }

    .home-media__item.is-open,
    .home-media__item.active,
    .home-media__item.open,
    .home-media__item._active {
        background: transparent;
        border-radius: 0;
    }

    /* Верхняя кликабельная часть пункта СМИ */
    .home-media__toggle,
    .home-media__item:not(.is-open) .home-media__toggle,
    .home-media__item.is-open .home-media__toggle,
    .home-media__item.active .home-media__toggle,
    .home-media__item.open .home-media__toggle,
    .home-media__item._active .home-media__toggle {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 0;
        padding: 20px 0 14px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 24px;
        column-gap: 12px;
        align-items: center;
        background: transparent;
        border: 0;
        cursor: pointer;
        transition: padding 0.45s var(--m-ease), opacity 0.35s var(--m-ease);
    }

    .home-media__heading {
        display: block;
        min-width: 0;
    }

    .home-media__source,
    .home-media__headline {
        font-size: 20px;
        line-height: 25px;
        font-weight: 400;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .home-media__source {
        margin-right: 4px;
        color: var(--m-red);
    }

    .home-media__headline {
        color: var(--m-dark);
    }

    /* Стрелка справа у пункта СМИ */
    .home-media__arrow {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        justify-self: end;
        position: relative;
        overflow: hidden;
        color: var(--m-dark);
        line-height: 0;
        pointer-events: none;
        transition: transform 0.45s var(--m-ease), opacity 0.35s var(--m-ease);
    }

    .home-media__arrow::before,
    .home-media__arrow::after {
        content: none;
        display: none;
    }

    .home-media__arrow-icon {
        width: 18px;
        height: 18px;
        max-width: none;
        overflow: visible;
    }


    .home-media__item.is-open .home-media__arrow,
    .home-media__item.active .home-media__arrow,
    .home-media__item.open .home-media__arrow,
    .home-media__item._active .home-media__arrow {
        transform: rotate(0deg);
    }

    /* Плавно раскрывающаяся часть пункта СМИ */
    .home-media__body {
        display: block;
        width: 100%;
        max-width: 100%;
        max-height: 0;
        padding: 0;
        margin: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-6px);
        transition:
            max-height 0.62s var(--m-ease),
            opacity 0.38s ease,
            transform 0.5s var(--m-ease),
            padding 0.5s var(--m-ease);
        will-change: max-height, opacity, transform;
    }

    .home-media__item.is-open .home-media__body,
    .home-media__item.active .home-media__body,
    .home-media__item.open .home-media__body,
    .home-media__item._active .home-media__body {
        max-height: 720px;
        padding: 0 0 18px;
        opacity: 1;
        transform: translateY(0);
    }

    .home-media__lead,
    .home-media__text {
        max-width: 100%;
        margin: 0;
        color: var(--m-dark);
        font-size: 12px;
        line-height: 21px;
        font-weight: 400;
        opacity: 0.8;
    }

    .home-media__readmore,
    .home-media__read-more {
        margin-top: 10px;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: var(--m-red);
        font-size: 13px;
        line-height: 21px;
        font-weight: 800;
        text-decoration: none;
        transition: gap 0.35s var(--m-ease), opacity 0.35s var(--m-ease);
    }

    .home-media__readmore .home-link-arrow,
    .home-media__read-more .home-link-arrow {
        flex-basis: 16px;
        width: 16px;
        height: 16px;
        margin: 0;
        transform: none;
    }

    /* =====================================================
       КОНЕЦ: MEDIA
       ===================================================== */


    /* =====================================================
       НАЧАЛО: общие состояния ссылок и кнопок
       ===================================================== */

    .home-about__link:active,
    .home-events__link:active,
    .home-news__link:active,
    .home-media__readmore:active,
    .home-media__read-more:active {
        opacity: 0.75;
    }

    /* =====================================================
       КОНЕЦ: общие состояния ссылок и кнопок
       ===================================================== */


    .home-hero__slide-link {
        margin-top: 14px;
        font-size: 14px;
        gap: 8px;
    }

}


@media (max-width: 359px) {
    :root {
        --m-container: calc(100vw - 32px);
        --m-gutter: 16px;
        --home-edge-offset: 16px;
    }

    .home-hero__content,
    .home-hero__banner {
        width: 100%;
    }

    .home-hero__decor {
        left: calc((100vw - var(--m-container)) / -2);
    }

    .home-events__card {
        flex-basis: var(--m-container);
        width: var(--m-container);
    }

    .home-tracks__card {
        flex-basis: min(300px, var(--m-container));
        width: min(300px, var(--m-container));
    }
}

/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {
    .home-hero *,
    .home-about *,
    .home-tracks *,
    .home-partners *,
    .home-events *,
    .home-news *,
    .home-media * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* HERO DECOR — немного поднимаем фон на desktop */
@media (min-width: 1024px) {
    .home-hero__decor {
        top: -145px;
    }
}


.home-media {
    scroll-margin-top: 110px;
}

@media (max-width: 1023px) {
    .home-media {
        scroll-margin-top: 80px;
    }
}

/* Главная: сохраняем цвет событий на мобильной версии */
@media (max-width: 767px) {
    .home-events__card--red {
        background-color: #d2232a;
    }

    .home-events__card--dark {
        background-color: #252e3f;
    }
}