/* Сброс стандартных отступов и настройка box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: var(--font-body, 'Inter', system-ui, sans-serif);
    color: white;
    overflow-x: hidden;
    background-color: #000; /* Фон на случай проблем с видео */
}

/* Доступность и SEO: скрытый от экрана основной H1 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Фоновое видео (back.mp4) — на весь экран под контентом */
.site-atmosphere {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    /* Рендер фона ниже обычного потока страницы */
    transform: translateZ(0);
}
.site-atmosphere__video {
    position: absolute;
    left: 50%;
    top: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 1;
    filter: saturate(1) contrast(1.02);
    z-index: 0;
}
/* Лёгкая вуаль только для читаемости текста на «дымных» секциях */
.site-atmosphere__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.22) 100%);
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    .site-atmosphere {
        display: none;
    }
}

main {
    position: relative;
    z-index: 1;
    /* Контент всегда выше фонового video (иначе в ряде браузеров ролик «пробивается» поверх) */
    isolation: isolate;
}

/* Появление при скролле для основных секций; при уходе из вьюпорта сброс — можно снова проиграть при входе */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal-block.hero .hero__foreground,
    .scroll-reveal-block.about > .container,
    .scroll-reveal-block.works > .container,
    .scroll-reveal-block.production > .container,
    .scroll-reveal-block.benefits-contacts > .container,
    .scroll-reveal-block.contacts-contacts > .container {
        opacity: 0;
        transform: translate3d(0, 28px, 0);
        transition:
            opacity 1.05s cubic-bezier(0.16, 1, 0.3, 1),
            transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: opacity, transform;
    }
    .scroll-reveal-block.hero .hero__foreground {
        animation: none;
    }
    .scroll-reveal-block.hero:not(.is-scroll-reveal-visible).sr-enter-from-below .hero__foreground,
    .scroll-reveal-block.about:not(.is-scroll-reveal-visible).sr-enter-from-below > .container,
    .scroll-reveal-block.works:not(.is-scroll-reveal-visible).sr-enter-from-below > .container,
    .scroll-reveal-block.production:not(.is-scroll-reveal-visible).sr-enter-from-below > .container,
    .scroll-reveal-block.benefits-contacts:not(.is-scroll-reveal-visible).sr-enter-from-below > .container,
    .scroll-reveal-block.contacts-contacts:not(.is-scroll-reveal-visible).sr-enter-from-below > .container {
        transform: translate3d(0, 40px, 0);
    }
    .scroll-reveal-block.hero:not(.is-scroll-reveal-visible).sr-enter-from-above .hero__foreground,
    .scroll-reveal-block.about:not(.is-scroll-reveal-visible).sr-enter-from-above > .container,
    .scroll-reveal-block.works:not(.is-scroll-reveal-visible).sr-enter-from-above > .container,
    .scroll-reveal-block.production:not(.is-scroll-reveal-visible).sr-enter-from-above > .container,
    .scroll-reveal-block.benefits-contacts:not(.is-scroll-reveal-visible).sr-enter-from-above > .container,
    .scroll-reveal-block.contacts-contacts:not(.is-scroll-reveal-visible).sr-enter-from-above > .container {
        transform: translate3d(0, -32px, 0);
    }
    .scroll-reveal-block.hero.is-scroll-reveal-visible .hero__foreground,
    .scroll-reveal-block.about.is-scroll-reveal-visible > .container,
    .scroll-reveal-block.works.is-scroll-reveal-visible > .container,
    .scroll-reveal-block.production.is-scroll-reveal-visible > .container,
    .scroll-reveal-block.benefits-contacts.is-scroll-reveal-visible > .container,
    .scroll-reveal-block.contacts-contacts.is-scroll-reveal-visible > .container {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    .scroll-reveal-block.hero.scroll-reveal-snap .hero__foreground,
    .scroll-reveal-block.about.scroll-reveal-snap > .container,
    .scroll-reveal-block.works.scroll-reveal-snap > .container,
    .scroll-reveal-block.production.scroll-reveal-snap > .container,
    .scroll-reveal-block.benefits-contacts.scroll-reveal-snap > .container,
    .scroll-reveal-block.contacts-contacts.scroll-reveal-snap > .container {
        transition: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal-block.hero .hero__foreground,
    .scroll-reveal-block.about > .container,
    .scroll-reveal-block.works > .container,
    .scroll-reveal-block.production > .container,
    .scroll-reveal-block.benefits-contacts > .container,
    .scroll-reveal-block.contacts-contacts > .container {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* Секция «О себе» — плотный фон (чередование с секциями «над дымом») */
.about {
    /* Сверху сплошной #080808, чтобы не было «засвета» на стыке с hero; радиальный — ниже кромки */
    background:
        linear-gradient(180deg, #080808 0%, #080808 36px, rgba(8, 8, 8, 0) min(120px, 18%)),
        radial-gradient(ellipse 88% 50% at 50% 4%, rgba(48, 48, 56, 0.38) 0%, transparent 58%),
        #080808;
    color: #fff;
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 100px 1.5rem 6rem;
}
.about__header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.title-accent {
    display: block;
    color: #b7b7b7;
    font-size: 0.42em;
    letter-spacing: 0.22em;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.3em;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
}
.title-main {
    display: block;
    background: linear-gradient(90deg, #ffffff 0%, #f5f5f5 30%, #e0e0e0 60%, #aaaaaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.title-main-down {
    font-size: clamp(4rem, 7vw, 3.5rem);
    letter-spacing: 0.05em;
    margin-top: 10px;
    display: block;
    background: linear-gradient(90deg, #ffffff 0%, #f5f5f5 30%, #e0e0e0 60%, #aaaaaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.8;
    font-weight: 300;
    text-transform: none;
}
.title-subtitle {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    color: #888;
    text-transform: uppercase;
    font-weight: 300;
    margin-top: 1.5rem;
}
/* Карусель «О себе»: фото + текст, синхронная смена */
.about-rotator {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}
.about-rotator__viewport {
    position: relative;
    min-height: 0;
    touch-action: pan-y;
}

/* Скрытые краевые зоны: клик по краю переключает слайд; стрелка появляется при наведении на блок */
.about-rotator__hit {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 4;
    width: min(24%, 60px);
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.92);
    -webkit-tap-highlight-color: transparent;
}
.about-rotator__hit--prev {
    left: 0;
    border-radius: clamp(22px, 3.2vw, 30px) 0 0 clamp(22px, 3.2vw, 30px);
}
.about-rotator__hit--next {
    right: 0;
    border-radius: 0 clamp(22px, 3.2vw, 30px) clamp(22px, 3.2vw, 30px) 0;
}
.about-rotator__hit::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}
.about-rotator__hit::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(-50%) scale(0.9);
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
}
.about-rotator__hit--prev::after {
    left: 10%;
    transform: translateY(-50%) rotate(135deg);
}
.about-rotator__hit--next::after {
    right: 10%;
    transform: translateY(-50%) rotate(-45deg);
}
.about-rotator__hit--prev::before {
    left: calc(10% - 13px);
}
.about-rotator__hit--next::before {
    right: calc(10% - 13px);
}
@media (hover: hover) and (pointer: fine) {
    .about-rotator:hover .about-rotator__hit::after,
    .about-rotator__hit:hover::after,
    .about-rotator:hover .about-rotator__hit::before,
    .about-rotator__hit:hover::before {
        opacity: 0.42;
    }
    .about-rotator__hit:hover {
        background: transparent;
    }
    .about-rotator__hit:hover::before {
        opacity: 0.72;
        transform: translateY(-50%) scale(1);
    }
    .about-rotator__hit:hover::after {
        opacity: 0.9;
    }
}
.about-rotator__hit:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: -6px;
}
.about-rotator__hit:focus-visible::after {
    opacity: 0.55;
}
.about-rotator__hit:focus-visible::before {
    opacity: 0.6;
    transform: translateY(-50%) scale(1);
}
.about-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.985);
    transition:
        opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s linear 0.65s;
    pointer-events: none;
}
.about-panel.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition:
        opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0s linear 0s;
    pointer-events: auto;
    z-index: 1;
}
@media (prefers-reduced-motion: reduce) {
    .about-panel {
        transition: opacity 0.25s ease, visibility 0s linear 0.25s;
        transform: none;
    }
    .about-panel.is-active {
        transition: opacity 0.25s ease, visibility 0s linear 0s;
        transform: none;
    }
    .about-panel__photo img {
        transition: none;
        transform: scale(1) !important;
    }
}
/* Слайд: рамка только у фото — высота и ширина «карточки» = блоку картинки; текст сбоку без общей оболочки */
.about-panel__inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.about-panel__inner--reverse {
    flex-direction: row-reverse;
}
.about-panel__card {
    flex: 0 0 auto;
    width: min(44%, 400px);
    max-width: 100%;
    /* Стык с текстом: скругления только с внешней стороны (как одна плашка) */
    border-radius: clamp(16px, 2.4vw, 22px) 0 0 clamp(16px, 2.4vw, 22px);
    overflow: hidden;
    border: none;
    box-shadow: none;
    align-self: flex-start;
    position: relative;
    z-index: 2;
}
.about-panel__card::after {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    width: 34px;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(2, 2, 6, 0.62) 0%,
        rgba(5, 5, 10, 0.32) 48%,
        rgba(5, 5, 10, 0) 100%
    );
    pointer-events: none;
    z-index: 3;
    opacity: 0.9;
    transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-panel__inner--reverse .about-panel__card {
    border-radius: 0 clamp(16px, 2.4vw, 22px) clamp(16px, 2.4vw, 22px) 0;
}
.about-panel__inner--reverse .about-panel__card::after {
    right: auto;
    left: -1px;
    background: linear-gradient(
        to left,
        rgba(2, 2, 6, 0.62) 0%,
        rgba(5, 5, 10, 0.32) 48%,
        rgba(5, 5, 10, 0) 100%
    );
}
.about-panel__photo {
    margin: 0;
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    max-height: min(480px, 64vh);
    display: block;
    position: relative;
}
.about-panel__photo::before {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    width: clamp(26px, 3.1vw, 36px);
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.62) 0%,
        rgba(0, 0, 0, 0.34) 42%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
    z-index: 2;
}
.about-panel__inner--reverse .about-panel__photo::before {
    right: auto;
    left: -1px;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.62) 0%,
        rgba(0, 0, 0, 0.34) 42%,
        rgba(0, 0, 0, 0) 100%
    );
}
.about-panel__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform 0.75s cubic-bezier(0.33, 1, 0.68, 1);
}
.about-panel.is-active .about-panel__photo img {
    transform: scale(1);
}
.about-panel__text {
    flex: 1;
    min-width: 0;
    max-width: 34rem;
    /* Больше отступ у шва с фото — контент не прилипает к картинке */
    padding: clamp(1.05rem, 2.2vh, 1.45rem) clamp(0.85rem, 1.8vw, 1.25rem) clamp(0.65rem, 1.4vh, 1.05rem)
        clamp(1rem, 2.5vw, 1.5rem);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(0.38rem, 1.05vh, 0.8rem);
    align-self: stretch;
    position: relative;
    overflow: hidden;
    /* Текст справа от фото: линия только вокруг текста; сторона у картинки без границы */
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-left: none;
    border-radius: 0 clamp(16px, 2.4vw, 22px) clamp(16px, 2.4vw, 22px) 0;
    margin-left: -1px;
    background:
        radial-gradient(92% 78% at 82% 92%, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0) 64%),
        linear-gradient(158deg, rgba(8, 8, 10, 0.97) 0%, rgba(11, 11, 13, 0.94) 46%, rgba(15, 15, 17, 0.92) 100%);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.34),
        0 0 18px rgba(255, 255, 255, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.025),
        inset 0 20px 44px rgba(0, 0, 0, 0.44);
    transition:
        border-color 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-panel__text::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 68%);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}
.about-panel__text::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        96deg,
        rgba(236, 239, 245, 0.62) 0%,
        rgba(185, 189, 198, 0.4) 34%,
        rgba(78, 80, 86, 0.44) 70%,
        rgba(15, 15, 17, 0.86) 100%
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0.24;
    transform: translateZ(0);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 1;
    clip-path: inset(0 0 0 1px);
}
.about-panel.is-active .about-panel__text::after {
    opacity: 0.58;
}
.about-panel.is-active .about-panel__text {
    box-shadow:
        0 24px 58px rgba(0, 0, 0, 0.42),
        0 0 24px rgba(255, 255, 255, 0.11),
        inset 0 0 0 1px rgba(255, 255, 255, 0.038),
        inset 0 24px 52px rgba(0, 0, 0, 0.46);
}
.about-panel__inner--reverse .about-panel__text {
    padding: clamp(1.05rem, 2.2vh, 1.45rem) clamp(1rem, 2.5vw, 1.5rem) clamp(0.65rem, 1.4vh, 1.05rem)
        clamp(0.85rem, 1.8vw, 1.25rem);
    text-align: right;
    align-items: flex-end;
    /* Текст слева от фото: без границы у общего края с картинкой */
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-right: none;
    border-radius: clamp(16px, 2.4vw, 22px) 0 0 clamp(16px, 2.4vw, 22px);
    margin-left: 0;
    margin-right: -1px;
}
.about-panel__inner--reverse .about-panel__text::after {
    background: linear-gradient(
        -96deg,
        rgba(236, 239, 245, 0.62) 0%,
        rgba(185, 189, 198, 0.4) 34%,
        rgba(78, 80, 86, 0.44) 70%,
        rgba(15, 15, 17, 0.86) 100%
    );
    clip-path: inset(0 1px 0 0);
}
.about-panel__inner--reverse .about-panel__step,
.about-panel__inner--reverse .about-panel__title,
.about-panel__inner--reverse .about-panel__lead {
    text-align: right;
}
.about-panel__inner--reverse .about-panel__title::after {
    left: auto;
    right: 0;
}
.about-panel__step {
    display: block;
    font-family: var(--font-body, system-ui, sans-serif);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    color: rgba(255, 82, 82, 0.92);
    margin: 0 0 0.34rem;
    text-transform: uppercase;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: 2;
    line-height: 1;
    text-align: left;
}
.about-panel__title {
    position: relative;
    font-family: var(--font-heading, system-ui, sans-serif);
    font-size: clamp(1.45rem, 2.95vw, 2.05rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fafafa;
    margin: 0;
    line-height: 1.18;
    padding-bottom: 1rem;
    border-bottom: none;
    z-index: 1;
    max-width: 18ch;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}
.about-panel__title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    transform: none;
    width: min(100%, 420px);
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}
.about-panel__lead {
    font-family: var(--font-body, system-ui, sans-serif);
    font-size: clamp(1.06rem, 1.95vw, 1.24rem);
    line-height: 1.64;
    color: rgba(200, 200, 202, 0.94);
    font-weight: 400;
    margin: 0;
    max-width: 36ch;
    flex: none;
    display: block;
    margin-top: clamp(0.42rem, 1.1vh, 0.75rem);
    min-height: 0;
    position: relative;
    z-index: 1;
    text-align: left;
}
.about-rotator__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.about-rotator__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    opacity: 0.45;
    transition:
        width 0.35s cubic-bezier(0.33, 1, 0.68, 1),
        opacity 0.3s ease,
        background 0.3s ease,
        transform 0.25s ease;
}
.about-rotator__dot:hover {
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.38);
    transform: scale(1.08);
}
.about-rotator__dot.is-active {
    width: 30px;
    opacity: 1;
    background: #ff4d4d;
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.22);
    transform: scale(1);
}
.about-rotator.is-paused .about-panel__photo img {
    transform: scale(1);
}

@media (max-width: 900px) {
    .about-rotator__hit {
        width: min(18%, 100px);
    }
    .about-panel__inner,
    .about-panel__inner--reverse {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 0;
    }
    .about-panel__card,
    .about-panel__inner--reverse .about-panel__card {
        width: 100%;
        max-width: 480px;
        align-self: center;
        border-radius: clamp(16px, 2.4vw, 22px);
    }
    .about-panel__card::after,
    .about-panel__inner--reverse .about-panel__card::after {
        display: none;
    }
    .about-panel__photo {
        max-height: none;
        aspect-ratio: 16 / 10;
    }
    .about-panel__text {
        width: 100%;
        max-width: 36rem;
        padding: clamp(0.85rem, 3vw, 1.15rem) clamp(1rem, 4vw, 1.35rem);
        text-align: center;
        display: block;
        align-self: center;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: clamp(14px, 2.2vw, 18px);
        margin-left: 0;
        margin-right: 0;
    }
    .about-panel__text::before {
        border-radius: inherit;
    }
    .about-panel__inner--reverse .about-panel__text {
        padding: clamp(0.85rem, 3vw, 1.15rem) clamp(1rem, 4vw, 1.35rem);
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: clamp(14px, 2.2vw, 18px);
        margin-left: 0;
        margin-right: 0;
    }
    .about-panel__title {
        padding-bottom: 0.85rem;
    }
    .about-panel__step,
    .about-panel__inner--reverse .about-panel__step {
        position: static;
        top: auto;
        right: auto;
        left: auto;
        display: block;
        width: 100%;
        margin: 0 0 0.42rem;
        text-align: center;
        line-height: 1.1;
    }
    .about-panel__lead {
        margin-left: auto;
        margin-right: auto;
        flex: none;
        display: block;
        margin-top: 0.85rem;
        align-items: unset;
    }
}
@media (max-width: 768px) {
    .about { padding: 80px 1.5rem 4.5rem; }
    .about-rotator__viewport {
        min-height: 0;
    }
}
@media (max-width: 480px) {
    .about { padding: 60px 1.2rem 3.8rem; }
    .about-rotator__dots {
        margin-top: 1.5rem;
        gap: 10px;
    }
}

/* ===== ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ ЗАТЕМНЕНИЯ ===== */
.hero__overlay.active {
    background: rgba(0, 0, 0, 0.8);
    transition: background 0.8s ease;
}
.hero__blackout.active {
    background: #000;
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.65s ease-in-out;
}
/* ===== СКРЫТИЕ КОНТЕНТА ===== */
.hero__content.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
/* Reveal hero задаёт opacity:1 с более высокой специфичностью — при шоуриле hidden должен побеждать */
.scroll-reveal-block.hero .hero__content.hidden,
.scroll-reveal-block.hero.is-scroll-reveal-visible .hero__content.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}
/* ===== ГЕРОЙ-СЕКЦИЯ ===== */
.hero {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    overflow: hidden;
    box-sizing: border-box;
}
.hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center center;
    z-index: 1;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}
/* На весь кадр hero: центр — колонка с логотипом, скролл — у нижнего края (absolute внутри слоя, не fixed) */
.hero__foreground {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    pointer-events: none;
}
.hero__column {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* Шире колонки — иначе логотип упирается в max-width, даже при большом width у img */
    max-width: min(100vw, 1720px);
    padding: 20px 20px 70px;
    box-sizing: border-box;
    pointer-events: none;
}
.hero__foreground .hero__title-container,
.hero__foreground .hero__button-wrapper,
.hero__foreground .hero__button {
    pointer-events: auto;
}
.hero__column .hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    animation: fadeIn 1.5s ease-out;
    padding: 0;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.hero__title {
    font-size: clamp(3rem, 10vw, 7rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}
.hero__title-top, .hero__title-bottom {
    display: block;
}
.hero__title-top {
    margin-bottom: 0.1em;
}
.hero__button {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
}
.scroll-mouse {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInMouse 1.5s ease-out 0.5s both;
}
.hero__video.zoom {
    transform: translate(-50%, -50%) scale(1.1);
    transition: transform 1.5s ease;
}

/* Подсказка поворота экрана перед шоурилом (моб.) */
.rotate-hint {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translate(-50%, 16px);
    width: min(92vw, 380px);
    padding: 14px 14px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(8, 8, 8, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.26s ease, transform 0.26s ease;
}
.rotate-hint.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}
.rotate-hint__icon {
    font-size: 24px;
    line-height: 1;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}
.rotate-hint__text {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    line-height: 1.4;
    letter-spacing: 0.02em;
}
.rotate-hint__ok {
    margin-top: 10px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}
@media (min-width: 901px) {
    .rotate-hint {
        display: none;
    }
}
/* Мобильные: видео по центру + min-кроп — убирает «растягивание» и пустой кадр */
@media (max-width: 768px) {
    .hero__video {
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        width: auto;
        height: auto;
        min-width: 100%;
        min-height: 100%;
        max-width: none;
        transform: translate(-50%, -50%);
        object-fit: cover;
        object-position: center center;
        pointer-events: none;
    }
    .hero__video.zoom {
        transform: translate(-50%, -50%) scale(1.08);
    }
}
/* ===== КОНТЕЙНЕР ДЛЯ ЭЛЕМЕНТОВ УПРАВЛЕНИЯ ===== */
.video-controls-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.video-controls-container.visible {
    opacity: 1;
    visibility: visible;
}
.close-video-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    pointer-events: all;
    z-index: 101;
}
.close-video-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(90deg);
}
.video-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    pointer-events: all;
    z-index: 101;
}
.video-controls.visible {
    opacity: 1;
    visibility: visible;
}
.video-control-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    pointer-events: all;
}
.video-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}
.video-control-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
}
.scroll-hint {
    position: absolute;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%) translateY(10px);
    color: white;
    z-index: 4;
    opacity: 0;
    visibility: hidden;
    text-align: center;
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.scroll-hint.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.scroll-hint__mouse {
    width: 20px;
    height: 32px;
    border: 1.5px solid rgba(255, 255, 255, 0.88);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.32);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: center;
    padding-top: 5px;
    box-sizing: border-box;
}
.scroll-hint__wheel {
    width: 3px;
    height: 6px;
    border-radius: 999px;
    background: #fff;
    animation: scrollWheel 1.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.scroll-hint__label {
    font-size: 8px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
}
.scroll-hint__arrow {
    display: none;
    font-size: 13px;
    color: #fff;
}
.scroll-hint:not(.is-return-mode) .scroll-hint__arrow {
    display: none !important;
}
.scroll-hint.is-return-mode .scroll-hint__mouse {
    display: none;
}
.scroll-hint.is-return-mode .scroll-hint__label {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: none;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 14px;
    border-radius: 16px;
}
.scroll-hint.is-return-mode .scroll-hint__arrow {
    display: block;
    margin-top: -2px;
    animation: bounce 1.5s infinite;
}
@keyframes scrollWheel {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 0.95;
        transform: translateY(9px);
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}
.sound-indicator {
    position: absolute;
    top: 30px;
    left: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.sound-indicator.visible {
    opacity: 1;
    visibility: visible;
}

/* Модальное окно шоурила (мобильный): только видео + 3 кнопки */
.showreel-modal {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
        max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}
.showreel-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.showreel-modal__backdrop {
    position: absolute;
    inset: 0;
    background: #000;
    cursor: pointer;
}
.showreel-modal__frame {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.showreel-modal__video {
    width: 100%;
    max-height: min(88vh, 100dvh - 24px);
    height: auto;
    object-fit: contain;
    background: #000;
    display: block;
    pointer-events: none;
    -webkit-touch-callout: none;
}
.showreel-modal__toolbar {
    position: absolute;
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    z-index: 2;
}
.showreel-modal__btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.showreel-modal__btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.55);
}
.showreel-modal__btn:active {
    transform: scale(0.94);
}
.showreel-modal__btn--close {
    border-color: rgba(255, 255, 255, 0.45);
}
.showreel-modal__btn i {
    pointer-events: none;
}

/* work-card overlay */
.work-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0.6;
    z-index: 1;
    transition: opacity 0.3s ease;
}
.work-card:hover .work-card__overlay {
    opacity: 0.4;
}
.work-card__content {
    position: relative;
    z-index: 2;
}

/* Модальное окно портфолио */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.portfolio-modal.active {
    display: flex;
}
.portfolio-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}
.portfolio-modal__content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    background: #111;
    border-radius: 20px;
    overflow: hidden;
    z-index: 2;
    animation: modalAppear 0.4s ease;
}
@keyframes modalAppear {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.portfolio-modal__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}
.portfolio-modal__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}
.portfolio-modal__video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}
.portfolio-modal__video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.portfolio-modal__info {
    padding: 2.5rem;
}
.portfolio-modal__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.portfolio-modal__client {
    font-size: 1.3rem;
    color: #ccc;
    margin-bottom: 1.5rem;
    font-weight: 300;
}
.portfolio-modal__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    color: #fff;
}
.portfolio-modal__description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #aaa;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}
.portfolio-modal--showreel .portfolio-modal__info {
    display: block;
}
@media (max-width: 1200px) {
    .portfolio__layout { grid-template-columns: 1fr; gap: 3rem; }
    .portfolio__sidebar { position: static; }
    .portfolio__title { font-size: 3.5rem; }
}
@media (max-width: 768px) {
    .portfolio__grid { grid-template-columns: 1fr; }
    .project-card.large, .project-card.small, .project-card.large-bottom { height: 250px; }
    .project-card__title { font-size: 1.5rem; }
    .portfolio__stats { grid-template-columns: 1fr; gap: 1.5rem; }
    .portfolio-modal__content { border-radius: 10px; }
    .portfolio-modal__info { padding: 1.5rem; }
    .portfolio-modal__title { font-size: 2rem; }
}
@media (max-width: 480px) {
    .portfolio__title { font-size: 2.8rem; }
    .project-card { height: 200px; }
    .project-card__content { padding: 1.5rem; }
    .project-card__title { font-size: 1.3rem; }
    .portfolio-modal { padding: 1rem; }
}

/* ===== РАБОТЫ - ПРОСТО И КАК НА СКРИНШОТЕ ===== */
/* Фон прозрачный — видно site-atmosphere (дым) */
.works {
    position: relative;
    z-index: 1;
    background-color: transparent;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 72px);
    color: #fff;
    padding: 100px 0 60px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.works__header {
    text-align: center;
    margin-bottom: 50px;
}

/* Портфолио: плавное появление (transition на элементе всегда — и до, и после класса is-works-revealed) */
@media (prefers-reduced-motion: no-preference) {
    .works.works-scroll-reveal-on .works__header {
        transition:
            opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1),
            transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .works.works-scroll-reveal-on .works__header:not(.is-works-revealed) {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    .works.works-scroll-reveal-on .works__header.is-works-revealed {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    .works.works-scroll-reveal-on .works-grid .works-item {
        transition:
            opacity 1.05s cubic-bezier(0.16, 1, 0.3, 1),
            transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .works.works-scroll-reveal-on .works-grid .works-item:not(.is-works-revealed) {
        opacity: 0;
        transform: translate3d(0, 24px, 0);
    }
    .works.works-scroll-reveal-on .works-grid .works-item.is-works-revealed {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .works .works__header,
    .works .works-grid .works-item {
        opacity: 1;
        transform: none;
    }
}
.works__title {
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 10px;
}
.works-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.works-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.works-item.large {
    grid-column: span 2;
}
.works-item.small {
    grid-column: span 1;
}
.works-image {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.works-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.works-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}
.works-image:hover .works-overlay {
    background: rgba(0, 0, 0, 0.2);
}
.works-image::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}
.works-image:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.works-text {
    text-align: left;
}
.works-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
    line-height: 1.3;
}
.works-category {
    font-size: 0.85rem;
    color: #aaa;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 300;
}
@media (max-width: 992px) {
    .works__title { font-size: 3rem; }
    .works-grid { grid-template-columns: repeat(2, 1fr); }
    .works-item.large, .works-item.small { grid-column: span 1; }
    .works-name { font-size: 1.2rem; }
}
@media (max-width: 768px) {
    .works { padding: 80px 0 64px; }
    .works__title { font-size: 2.5rem; }
    .works__header { margin-bottom: 30px; }
    .works-grid { grid-template-columns: 1fr; gap: 20px; }
    .works-item { gap: 12px; }
    .works-name { font-size: 1.22rem; }
    .works-category { font-size: 0.92rem; }
}
@media (max-width: 480px) {
    .works { padding: 60px 0 52px; }
    .works__title { font-size: 2rem; }
    .works-grid { gap: 15px; }
    .works-item { gap: 10px; }
    .works-name { font-size: 1.12rem; }
    .works-category { font-size: 0.88rem; }
}

/* Десктоп: обёртка «невидима» для сетки — работы 4–8 остаются в одной mosaic-сетке */
.works-grid__mobile-more {
    display: contents;
}

/* Портфолио на телефоне: 3 работы + плавное раскрытие остальных */
.works-expand-btn {
    display: none;
}
@media (max-width: 768px) {
    .works-grid__mobile-more {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        grid-column: 1 / -1;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(-12px);
        margin-top: -20px;
        pointer-events: none;
        transition:
            max-height 0.7s cubic-bezier(0.33, 1, 0.68, 1),
            opacity 0.5s ease,
            transform 0.6s cubic-bezier(0.33, 1, 0.68, 1),
            margin-top 0.55s cubic-bezier(0.33, 1, 0.68, 1);
    }
    .works-grid--expanded .works-grid__mobile-more {
        max-height: min(5600px, 450vh);
        opacity: 1;
        transform: translateY(0);
        margin-top: 0;
        pointer-events: auto;
    }
    .works-expand-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.65rem;
        margin: 1.5rem auto 0.55rem;
        padding: 1rem 1.85rem;
        min-height: 52px;
        max-width: min(340px, calc(100% - 32px));
        width: auto;
        font-family: var(--font-body, 'Inter', system-ui, sans-serif);
        font-size: 0.9rem;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.96);
        background: linear-gradient(165deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
        border: 1px solid rgba(255, 255, 255, 0.28);
        border-radius: 999px;
        cursor: pointer;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transition:
            background 0.3s ease,
            border-color 0.3s ease,
            box-shadow 0.3s ease,
            transform 0.2s ease;
    }
    .works-expand-btn:hover {
        background: linear-gradient(165deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
        border-color: rgba(255, 255, 255, 0.42);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    }
    .works-expand-btn:active {
        transform: scale(0.98);
    }
    .works-expand-btn__chevron {
        font-size: 0.72rem;
        opacity: 0.9;
        transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
    }
    .works-expand-btn[aria-expanded="true"] .works-expand-btn__chevron {
        transform: rotate(180deg);
    }
}
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .works-grid__mobile-more {
        transition-duration: 0.01ms;
    }
    .works-expand-btn__chevron {
        transition-duration: 0.01ms;
    }
}

/* production (полностью последний вариант) — плотный фон */
.production {
    background: #0a0a0a;
    color: #fff;
    padding: 100px 0 80px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow:
        0 22px 52px -12px rgba(0, 0, 0, 0.62),
        inset 0 1px 0 rgba(255, 255, 255, 0.065);
}
.production__header {
    text-align: center;
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.production__header.animated {
    opacity: 1;
    transform: translateY(0);
}
.production__stages {
    max-width: 1400px;
    margin: 0 auto 80px;
    display: flex;
    flex-direction: column;
}
.production-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.production-stage.animated {
    opacity: 1;
    transform: translateY(0);
}
.stage-left .stage-content { order: 1; }
.stage-left .stage-media { order: 2; }
.stage-right .stage-content {
    order: 2;
    text-align: right;
}
.stage-right .stage-media { order: 1; }
.stage-content { padding: 40px; }
.stage-number {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    font-family: 'Arial Black', sans-serif;
    margin-bottom: 30px;
    display: inline-block;
}
.stage-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
}
.stage-line {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, #fff, #666);
    margin-bottom: 35px;
}
.stage-right .stage-line {
    background: linear-gradient(90deg, #666, #fff);
    margin-left: auto;
    margin-right: 0;
}
.stage-description {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #aaa;
    font-weight: 300;
    max-width: 500px;
}
.stage-right .stage-description {
    margin-left: auto;
    margin-right: 0;
}
.stage-media {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
/* Прозрачный слой поверх ролика — курсор не попадает в <video>, нет оверлея паузы/PiP Chrome */
.stage-media::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 9;
    pointer-events: auto;
    background: transparent;
    cursor: default;
}
.video-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    cursor: pointer;
    overflow: hidden;
    border-radius: 15px;
}
.video-preview__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
    transition: all 0.5s ease;
}
.video-preview:hover .video-preview__image {
    transform: scale(1.05);
    opacity: 0;
}
.video-preview__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: all 0.3s ease;
}
.video-preview:hover .video-preview__overlay {
    background: rgba(0, 0, 0, 0.7);
}
.play-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #000;
    transform: scale(1);
    transition: all 0.3s ease;
}
.video-preview:hover .play-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}
.hover-text {
    color: white;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.video-preview:hover .hover-text {
    transform: translateY(0);
    opacity: 1;
}
.preview-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1);
    transition: all 0.5s ease 0.2s;
    pointer-events: none;
    -webkit-user-select: none;
    user-select: none;
}
.video-preview:hover .preview-video {
    opacity: 1;
    transform: scale(1.05);
}
.stage-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.stage-divider.animated {
    opacity: 1;
}
.divider-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #666, transparent);
}
.divider-arrow {
    color: #666;
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}
.production__action {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}
.production__action.animated {
    opacity: 1;
    transform: translateY(0);
}
.production__button {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 20px 40px;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.production__button:hover {
    background: white;
    color: black;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}
.production__button-contacts {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 20px 80px;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: none;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
    .production__button-contacts:hover {
        background: white;
        color: black;
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
    }
}
.production__button-contacts:focus {
    outline: none;
}
.production__button-contacts:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
}
@media (hover: none), (pointer: coarse) {
    .production__button-contacts:active {
        background: white;
        color: black;
        box-shadow: 0 8px 22px rgba(255, 255, 255, 0.12);
        transform: translateY(0) scale(0.985);
    }
}
.button-text { align-items: center; font-weight: 600; }
.button-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.production__button:hover .button-arrow {
    transform: translateX(10px);
}
.production__decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease 1s;
}
/* В конце секций (кроме production — там отступ от кнопки уже задан) */
section:not(.production) .production__decoration {
    margin-top: clamp(2.25rem, 5vw, 3.75rem);
}
.production__decoration.animated {
    opacity: 0.3;
}
.production__decoration .line {
    width: 0;
    height: 1px;
    background: #666;
    transition: width 1s ease 1.2s;
}
.production__decoration.animated .line {
    width: 100px;
}
.production__decoration .circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #666;
    margin: 0 20px;
    transform: scale(0);
    transition: transform 0.5s ease 1.5s;
}
.production__decoration.animated .circle {
    transform: scale(1);
}
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.video-modal.active {
    display: flex;
}
.video-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}
.video-modal__content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    background: #111;
    border-radius: 20px;
    overflow: hidden;
    z-index: 2;
    animation: modalAppear 0.4s ease;
}
.video-modal__close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}
.video-modal__close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}
.video-modal__player {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}
.video-modal__player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* Адаптивность production (последняя) */
@media (max-width: 1200px) {
    .production__stages { max-width: 900px; gap: 50px; }
    .production-stage { gap: 40px; }
    .stage-title { font-size: 2.5rem; }
    .stage-description { font-size: 1.2rem; }
}
@media (max-width: 992px) {
    .production { padding: 100px 0 60px; }
    .production__header { margin-bottom: 60px; }
    .production__stages { gap: 40px; margin-bottom: 60px; }
    .production-stage { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .stage-left .stage-content, .stage-right .stage-content { order: 1; text-align: center; }
    .stage-left .stage-media, .stage-right .stage-media { order: 2; }
    .stage-content { padding: 0; }
    .stage-title { font-size: 2.2rem; }
    .stage-line { margin: 0 auto 25px; }
    .stage-description { margin: 0 auto; font-size: 1.1rem; }
    .stage-right .stage-line { margin: 0 auto 25px; }
    .stage-right .stage-description {
        margin: 0 auto;
        text-align: center;
    }
    .stage-number { font-size: 4rem; }
    .production__button { padding: 18px 35px; font-size: 1.1rem; }
}
@media (max-width: 768px) {
    .production { padding: 80px 0 40px; }
    .production > .container {
        padding-left: max(10px, env(safe-area-inset-left, 0px));
        padding-right: max(10px, env(safe-area-inset-right, 0px));
        max-width: none;
        width: 100%;
    }
    .production__stages {
        max-width: none;
        width: 100%;
    }
    .production__header { margin-bottom: 40px; }
    .production__stages { gap: 30px; margin-bottom: 40px; }
    .production-stage { gap: 30px; }
    .stage-title { font-size: 1.8rem; }
    .stage-description { font-size: 1rem; }
    .stage-number { font-size: 3rem; }
    .production__action { margin-bottom: 40px; }
    .production__button { padding: 16px 30px; font-size: 1rem; }
    .play-icon { width: 60px; height: 60px; font-size: 1.5rem; }
    .hover-text { font-size: 0.9rem; }
}
@media (max-width: 480px) {
    .production { padding: 60px 0 30px; }
    .production > .container {
        padding-left: max(8px, env(safe-area-inset-left, 0px));
        padding-right: max(8px, env(safe-area-inset-right, 0px));
    }
    .production__stages { gap: 20px; margin-bottom: 30px; }
    .production-stage { gap: 20px; }
    .stage-title { font-size: 1.5rem; }
    .stage-description { font-size: 0.9rem; }
    .stage-number { font-size: 2.5rem; }
    .production__button { padding: 14px 25px; font-size: 0.9rem; gap: 15px; }
    .play-icon { width: 50px; height: 50px; font-size: 1.2rem; }
    .hover-text { font-size: 0.8rem; }
}

/* ===== ПРОСТЫЕ ИЗМЕНЕНИЯ ДЛЯ АВТОВОСПРОИЗВЕДЕНИЯ ===== */
.preview-video {
    opacity: 1 !important;
    transform: scale(1) !important;
    display: block !important;
    pointer-events: none !important;
}
.video-preview__image,
.video-preview__overlay,
.play-icon,
.hover-text {
    display: none !important;
}
.video-overlay {
    position: absolute;
    bottom: 25px;
    right: 25px;
    z-index: 3;
    pointer-events: none;
}
.video-label {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.video-indicator {
    position: absolute;
    top: 25px;
    left: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.7);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    z-index: 3;
    pointer-events: none;
}
.video-indicator__dot {
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}
.video-indicator__text {
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 300;
}
.video-preview::before {
    content: attr(data-stage);
    position: absolute;
    bottom: 25px;
    left: 25px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
    font-family: 'Arial Black', sans-serif;
    z-index: 2;
    pointer-events: none;
}
.video-preview:hover .preview-video {
    transform: scale(1.03);
    transition: transform 0.5s ease;
}

/* ===== СЕКЦИЯ ПРЕИМУЩЕСТВ И КОНТАКТОВ ===== */
/* Прозрачный фон секции — дым между карточками; сами карточки непрозрачные */
.benefits-contacts {
    position: relative;
    z-index: 1;
    background-color: transparent;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 72px);
    color: #fff;
    padding: 100px 0 80px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.benefits__header {
    text-align: center;
    margin-bottom: -24px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.benefits__header.animated {
    opacity: 1;
    transform: translateY(0);
}
/* Масштаб как у «проекты / портфолио» (единый .section-title); на телефоне STORY + VERSE — две строки */
.benefits__header .section-title {
    max-width: 100%;
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
    box-sizing: border-box;
    margin-bottom: 0;
    line-height: 1;
}
.benefits__header .title-wrapper::after {
    display: none;
}
.benefits__header .title-accent {
    margin-bottom: 0;
    line-height: 1;
}
.benefits__header .benefits-title-main__row {
    display: inline;
}
@media (max-width: 768px) {
    .benefits__header .benefits-title-main__row {
        display: block;
    }
}
.benefits__title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 0.9;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.benefits__title-accent {
    display: block;
    color: #999;
    font-size: 0.4em;
    letter-spacing: 0.3em;
    font-weight: 300;
    margin-bottom: 0.2em;
}
.benefits__title-main {
    display: block;
    background: linear-gradient(90deg, #fff 50%, #666 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-title{
    margin-bottom: 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-bottom: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.benefit-item {
    text-align: center;
    padding: 40px 30px;
    border-radius: 15px;
    /* Плотная подложка: иначе сквозь стекло и backdrop-filter виден дым и он «лежит» на тексте */
    background: rgba(16, 16, 18, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    z-index: 1;
}
.benefit-item.animated {
    opacity: 1;
    transform: translateY(0);
}
.benefit-item:hover {
    background: rgba(26, 26, 30, 0.98);
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}
.benefit-icon {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}
.benefit-icon i {
    display: inline-block;
    transform-origin: center;
    will-change: transform, opacity;
}
.benefit-icon--gears {
    position: relative;
    width: 88px;
    height: 62px;
    margin: 0 auto 25px;
}
.benefit-icon--gears .benefit-gear {
    position: absolute;
    line-height: 1;
}
.benefit-icon--gears .gear--a {
    font-size: 2rem;
    left: 12px;
    top: 14px;
}
.benefit-icon--gears .gear--b {
    font-size: 1.35rem;
    left: 45px;
    top: 26px;
}
.benefit-icon--planet {
    perspective: 460px;
}
.benefit-earth {
    width: 58px;
    height: 58px;
    display: block;
    margin: 0 auto;
    color: rgba(240, 244, 255, 0.92);
    filter: none;
    transition: transform 0.28s ease, color 0.28s ease, filter 0.28s ease;
    transform-origin: 50% 50%;
}
.benefit-earth__stroke {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
}
.benefit-earth__stroke--circle {
    transition: opacity 0.25s ease;
}
.benefit-planet {
    position: relative;
    width: 58px;
    height: 58px;
    margin: 0 auto;
    display: block;
    transform-style: preserve-3d;
}
.benefit-planet__core {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.95) 0 9%, transparent 12%),
        radial-gradient(circle at 38% 34%, rgba(255, 255, 255, 0.34) 0 28%, rgba(255, 255, 255, 0.08) 38%, rgba(255, 255, 255, 0) 64%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.1));
    box-shadow:
        inset -8px -10px 18px rgba(0, 0, 0, 0.34),
        inset 6px 8px 14px rgba(255, 255, 255, 0.08),
        0 0 14px rgba(255, 255, 255, 0.18);
    transform-style: preserve-3d;
}
.benefit-planet__core::before,
.benefit-planet__core::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
}
.benefit-planet__core::before {
    background:
        radial-gradient(circle at 55% 30%, rgba(255, 255, 255, 0.24), transparent 44%),
        radial-gradient(circle at 35% 70%, rgba(0, 0, 0, 0.26), transparent 46%);
    transform: translateZ(2px);
}
.benefit-planet__core::after {
    background: radial-gradient(circle at 65% 32%, rgba(255, 255, 255, 0.34), transparent 26%);
    transform: translateZ(3px);
}
.benefit-planet__ring {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1.4px solid rgba(255, 255, 255, 0.55);
    transform-style: preserve-3d;
}
.benefit-planet__ring--a { transform: rotateY(0deg); }
.benefit-planet__ring--b { transform: rotateY(60deg); }
.benefit-planet__ring--c { transform: rotateY(120deg); }
.benefit-item:hover .benefit-icon {
    color: #ccc;
    transform: scale(1.1);
}

/* Иконки в "Основа": движение только при наведении/фокусе */
.benefit-item:hover .benefit-icon--gears .gear--a,
.benefit-item:focus-within .benefit-icon--gears .gear--a {
    animation: gearSpinMain 1.2s linear infinite;
}
.benefit-item:hover .benefit-icon--gears .gear--b,
.benefit-item:focus-within .benefit-icon--gears .gear--b {
    animation: gearSpinSecondary 1.2s linear infinite;
}
.benefit-item:hover .benefit-icon .fa-video,
.benefit-item:focus-within .benefit-icon .fa-video {
    animation: benefitVideoSwing 1.15s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.benefit-item:hover .benefit-icon .fa-sync-alt,
.benefit-item:focus-within .benefit-icon .fa-sync-alt {
    animation: benefitSyncTurn 1.45s linear infinite;
}
.benefit-item:hover .benefit-icon--planet .benefit-planet,
.benefit-item:focus-within .benefit-icon--planet .benefit-planet {
    animation: benefitPlanetRoll 2.9s linear infinite;
}
.benefit-item:hover .benefit-icon--planet .benefit-earth,
.benefit-item:focus-within .benefit-icon--planet .benefit-earth {
    color: #fff;
    filter: none;
}
.benefit-item:hover .benefit-icon--planet .benefit-earth__stroke,
.benefit-item:focus-within .benefit-icon--planet .benefit-earth__stroke {
    animation: benefitEarthDraw 0.7s ease both;
}
.benefit-item:hover .benefit-icon--planet .benefit-earth__stroke:nth-child(2),
.benefit-item:focus-within .benefit-icon--planet .benefit-earth__stroke:nth-child(2) {
    animation-delay: 0.08s;
}
.benefit-item:hover .benefit-icon--planet .benefit-earth__stroke:nth-child(3),
.benefit-item:focus-within .benefit-icon--planet .benefit-earth__stroke:nth-child(3) {
    animation-delay: 0.14s;
}
.benefit-item:hover .benefit-icon--planet .benefit-earth__stroke--circle,
.benefit-item:focus-within .benefit-icon--planet .benefit-earth__stroke--circle {
    animation-delay: 0.1s;
}
.benefit-item:hover .benefit-icon--planet .benefit-planet__ring--a,
.benefit-item:focus-within .benefit-icon--planet .benefit-planet__ring--a {
    animation: benefitPlanetRingA 2.1s linear infinite;
}
.benefit-item:hover .benefit-icon--planet .benefit-planet__ring--b,
.benefit-item:focus-within .benefit-icon--planet .benefit-planet__ring--b {
    animation: benefitPlanetRingB 2.7s linear infinite;
}
.benefit-item:hover .benefit-icon--planet .benefit-planet__ring--c,
.benefit-item:focus-within .benefit-icon--planet .benefit-planet__ring--c {
    animation: benefitPlanetRingC 3.3s linear infinite;
}
.benefit-item:hover .benefit-icon--planet .benefit-planet__core,
.benefit-item:focus-within .benefit-icon--planet .benefit-planet__core {
    animation: benefitPlanetCoreShift 3.3s ease-in-out infinite;
}

@keyframes gearSpinMain {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes gearSpinSecondary {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}
@keyframes benefitVideoSwing {
    0%, 100% {
        transform: rotate(0deg) translateY(0) scale(1);
        transform-origin: 38% 52%;
    }
    35% {
        transform: rotate(-9deg) translateY(-1px) scale(1.04);
        transform-origin: 38% 52%;
    }
    62% {
        transform: rotate(7deg) translateY(0) scale(1.02);
        transform-origin: 38% 52%;
    }
}
@keyframes benefitSyncTurn {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes benefitPlanetRoll {
    0% {
        transform: rotateX(20deg) rotateZ(-12deg) rotateY(0deg) scale(1);
    }
    50% {
        transform: rotateX(12deg) rotateZ(-8deg) rotateY(180deg) scale(0.985);
    }
    100% {
        transform: rotateX(20deg) rotateZ(-12deg) rotateY(360deg) scale(1);
    }
}
@keyframes benefitPlanetRingA {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    100% { transform: rotateY(360deg) rotateX(0deg); }
}
@keyframes benefitPlanetRingB {
    0% { transform: rotateY(60deg) rotateX(0deg); }
    100% { transform: rotateY(60deg) rotateX(360deg); }
}
@keyframes benefitPlanetRingC {
    0% { transform: rotateY(120deg) rotateZ(0deg); }
    100% { transform: rotateY(120deg) rotateZ(360deg); }
}
@keyframes benefitPlanetCoreShift {
    0%, 100% { filter: brightness(1) saturate(1); }
    50% { filter: brightness(1.08) saturate(1.08); }
}

@keyframes benefitEarthDraw {
    from {
        stroke-dashoffset: 1;
        opacity: 0;
    }
    to {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .benefit-item:hover .benefit-icon i,
    .benefit-item:focus-within .benefit-icon i,
    .benefit-item:hover .benefit-icon--planet .benefit-planet,
    .benefit-item:focus-within .benefit-icon--planet .benefit-planet,
    .benefit-item:hover .benefit-icon--planet .benefit-earth,
    .benefit-item:focus-within .benefit-icon--planet .benefit-earth {
        animation: none !important;
    }
}
.benefit-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.benefit-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #aaa;
    font-weight: 300;
}
.benefits__divider {
    margin: 80px 0;
    text-align: center;
}
.divider-line {
    width: 100%;
    max-width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #666, transparent);
    margin: 0 auto;
}
.contact-section {
    max-width: 800px;
    margin: 0 auto;
}
.contact__header {
    text-align: center;
    margin-bottom: 60px;
}
.contact__title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #fff;
}
.contact__subtitle {
    font-size: 1.2rem;
    color: #aaa;
    letter-spacing: 0.05em;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 50px;
}
.form-group {
    margin-bottom: 30px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Arial', sans-serif;
    transition: all 0.3s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 18px 40px;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}
.contact-button:hover {
    background: white;
    color: black;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}
@media (max-width: 992px) {
    .benefits-grid { grid-template-columns: 1fr; gap: 30px; }
    .benefit-item { padding: 30px 25px; }
    .contact__title { font-size: 2.5rem; }
    .contact-form { padding: 40px 30px; }
}
@media (max-width: 768px) {
    .benefits-contacts { padding: 80px 0 72px; }
    .benefits__header { margin-bottom: 50px; }
    .benefits-grid { margin-bottom: 40px; }
    .benefits__title { font-size: clamp(2.5rem, 12vw, 5rem); }
    .benefit-title { font-size: 1.58rem; line-height: 1.26; }
    .benefit-description { font-size: 1.22rem; line-height: 1.62; color: #c4c4c4; font-weight: 400; }
    .contact__title { font-size: 2rem; }
    .contact__subtitle { font-size: 1rem; padding: 0 15px; }
    .form-group input, .form-group textarea { padding: 15px; font-size: 1rem; }
    .contact-button { padding: 15px 30px; font-size: 1rem; }
    .benefits__divider { margin: 50px 0; }
}
@media (max-width: 480px) {
    .benefits-contacts { padding: 60px 0 52px; }
    .benefits-grid { margin-bottom: 28px; }
    .benefit-item { padding: 25px 20px; }
    .benefit-icon { font-size: 2.5rem; }
    .benefit-title { font-size: 1.44rem; line-height: 1.28; }
    .benefit-description { font-size: 1.12rem; line-height: 1.68; color: #c2c2c2; font-weight: 400; }
    .contact-form { padding: 30px 20px; }
    .contact__title { font-size: 1.8rem; }
    .contact__subtitle { font-size: 0.9rem; }
}

/* ===== УПРОЩЕННАЯ КОНТАКТНАЯ СЕКЦИЯ С КНОПКОЙ ===== */
.contact-simple {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px 60px;
}
.contact-simple__header {
    margin-bottom: 50px;
    margin-top: 0;
}
.contact-simple__title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.1;
}
.contact-simple__subtitle {
    font-size: 1.3rem;
    color: #afaeae;
    letter-spacing: 0.05em;
    line-height: 1.5;
    margin: 0 auto;
    font-weight: 300;
}
.contact-simple__subtitle_bk {
    font-size: 1.3rem;
    color: #474747;
    letter-spacing: 0.05em;
    line-height: 1.5;
    margin: 0.55rem auto 0;
    font-weight: 300;
}
.contact-simple__action {
    margin: 40px 0 60px;
}
.contact-simple__button {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    background: transparent;
    color: white;
    border: 3px solid white;
    padding: 25px 60px;
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 700;
    min-width: 300px;
}
.contact-simple__button:hover {
    background: white;
    color: black;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
    border-color: #fff;
}
.contact-button__arrow {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
    font-weight: 300;
}
.contact-simple__button:hover .contact-button__arrow {
    transform: translateX(15px);
}
.contact-simple__button:active {
    transform: translateY(-2px);
}
.contact-simple__footer {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
    font-style: italic;
    font-weight: 300;
}
@media (max-width: 992px) {
    .contact-simple__title { font-size: 2.8rem; }
    .contact-simple__subtitle { font-size: 1.1rem; }
    .contact-simple__button { padding: 22px 50px; font-size: 1.3rem; min-width: 250px; }
}
@media (max-width: 768px) {
    .contact-simple { padding: 40px 15px; }
    .contact-simple__title { font-size: 2.2rem; }
    .contact-simple__subtitle { font-size: 1rem; }
    .contact-simple__button { padding: 20px 40px; font-size: 1.2rem; min-width: 200px; gap: 20px; }
    .contact-button__arrow { font-size: 1.5rem; }
}
@media (max-width: 480px) {
    .contact-simple__title { font-size: 1.8rem; }
    .contact-simple__subtitle { font-size: 0.9rem; }
    .contact-simple__button { padding: 18px 35px; font-size: 1.1rem; min-width: 180px; gap: 15px; }
    .contact-button__arrow { font-size: 1.3rem; }
    .footer-text { font-size: 1rem; }
}

/* ===== ФУТЕР ===== */
.footer {
    background: #0a0a0a;
    color: #fff;
    padding: 80px 0 30px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer__top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}
.footer__logo {
    display: flex;
    flex-direction: column;
}
.logo-text {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.logo-top {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.1;
}
.logo-bottom {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #aaa;
    margin-top: 5px;
}
.logo-subtitle {
    font-size: 0.9rem;
    color: #666;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-top: 10px;
}
.menu-title,
.services-title,
.contacts-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}
.menu-title::after,
.services-title::after,
.contacts-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #fff, #666);
}
.menu-list,
.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.menu-list li,
.services-list li {
    margin-bottom: 12px;
}
.menu-link,
.services-link {
    color: #aaa;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}
.menu-link:hover,
.services-link:hover {
    color: #fff;
    padding-left: 8px;
}
.menu-link::before,
.services-link::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}
.menu-link:hover::before,
.services-link:hover::before {
    opacity: 1;
    left: -8px;
}
.contacts-info {
    margin-bottom: 30px;
}
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.contact-icon {
    width: 20px;
    font-size: 0.9rem;
    color: #666;
    margin-right: 12px;
}
.contact-text {
    color: #aaa;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}
.footer__social {
    display: flex;
    gap: 15px;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #aaa;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}
.footer__divider {
    margin: 40px 0;
}
.divider-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}
.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
}
.footer__copyright {
    font-size: 0.85rem;
    color: #666;
    font-weight: 300;
    letter-spacing: 0.05em;
}
.footer__links {
    display: flex;
    gap: 30px;
}
.footer-link {
    color: #888;
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 300;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}
.footer-link:hover {
    color: #fff;
}
.footer__scroll-top {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #aaa;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.footer__scroll-top:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.footer:hover::before {
    opacity: 1;
}
@media (max-width: 1024px) {
    .footer__top { grid-template-columns: repeat(2, 1fr); gap: 50px; }
    .footer__bottom { flex-direction: column; gap: 25px; text-align: center; }
    .footer__links { order: 2; }
    .footer__copyright { order: 1; }
    .footer__scroll-top { order: 3; margin-top: 10px; }
}
@media (max-width: 768px) {
    .footer { padding: 60px 0 25px; }
    .footer__top { grid-template-columns: 1fr; gap: 40px; }
    .footer__bottom { padding-top: 25px; }
    .footer__links { flex-direction: column; gap: 15px; }
    .logo-top { font-size: 1.6rem; }
    .logo-bottom { font-size: 1.1rem; }
}
@media (max-width: 480px) {
    .footer { padding: 50px 0 20px; }
    .footer__container { padding: 0 15px; }
    .logo-top { font-size: 1.4rem; }
    .logo-bottom { font-size: 1rem; }
    .menu-title, .services-title, .contacts-title { font-size: 1rem; margin-bottom: 20px; }
    .menu-link, .services-link, .contact-text { font-size: 0.9rem; }
    .social-link { width: 38px; height: 38px; font-size: 1rem; }
    .footer__copyright { font-size: 0.8rem; }
    .footer-link { font-size: 0.8rem; }
}

/* ===== ОБНОВЛЕННЫЙ ГЛАВНЫЙ ЗАГОЛОВОК ===== */
.hero__title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0.65rem;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}
.hero__title-container::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(82vw, 920px);
    height: clamp(88px, 13vw, 160px);
    transform: translate(-50%, -45%);
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.08) 38%,
        rgba(255, 255, 255, 0) 72%
    );
    filter: blur(16px);
    opacity: 0.42;
    z-index: 1;
    pointer-events: none;
}
/* Логотип вместо текста STORYVERSE — то же место в колонке, что у заголовка */
.hero__title-logo {
    display: block;
    /* Ширина логотипа-картинки: увеличивай min(…) — первое число = доля экрана, второе = потолок в px */
    width: min(88vw, 1620px);
    max-width: 100%;
    height: auto;
    margin: 36px auto 0.2rem;
    object-fit: contain;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 0.92s ease-out 0.68s forwards;
    filter:
        drop-shadow(0 0 18px rgba(255, 255, 255, 0.4))
        drop-shadow(0 0 46px rgba(255, 255, 255, 0.14))
        drop-shadow(0 0 74px rgba(255, 255, 255, 0.08))
        drop-shadow(0 6px 28px rgba(0, 0, 0, 0.75));
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}
.hero__title-sub::before {
    display: none;
}
/* PRODUCTION — меньше, но заметно (≈40–48% от героя по шкале) */
.hero__title-sub {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    font-family: var(--font-hero-badge, var(--font-heading, system-ui, sans-serif));
    font-size: clamp(1.4rem, 4.6vw, 3.15rem);
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.15;
    margin: 0.35rem 0 0;
    padding: 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 255, 255, 0.08);
    background: none;
    border: none;
    backdrop-filter: none;
    display: block;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 0.82s ease-out 0.92s forwards;
}
.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
    transition: opacity 1s ease;
}
.hero__blackout {
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease-in-out;
}
.hero__button {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 1.1rem 2.8rem;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        color 0.25s ease,
        transform 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto;
    font-weight: 600;
    position: relative;
    z-index: 3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.12s forwards;
}
.hero__button:hover {
    background: rgba(255, 255, 255, 0.32);
    border-color: rgba(255, 255, 255, 0.95);
    color: #fff;
    box-shadow:
        0 0 28px rgba(255, 255, 255, 0.45),
        0 0 64px rgba(255, 255, 255, 0.12),
        0 8px 28px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}
.hero__button:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 0.5),
        0 0 32px rgba(255, 255, 255, 0.4);
}
.hero__button i {
    font-size: 1.2em;
}

/* Full HD (1920x1080): слегка компактнее hero, без влияния на 2K/4K */
@media (min-width: 1860px) and (max-width: 1920px) and (min-height: 900px) and (max-height: 1080px) {
    .hero__column {
        padding-top: 12px;
        padding-bottom: 48px;
    }
    .hero__title-logo {
        width: min(76vw, 1360px);
        margin-bottom: 0.1rem;
    }
    .hero__title-sub {
        font-size: clamp(1.12rem, 2.35vw, 2rem);
        letter-spacing: 0.2em;
        margin-top: 0.2rem;
    }
    .hero__button-wrapper {
        margin-top: -0.35rem;
        transform: translateY(-8px);
    }
    .hero__button {
        padding: 0.95rem 2.25rem;
        font-size: 0.98rem;
    }
}

@media (max-width: 1200px) {
    .hero__title-logo { width: min(90vw, 1240px); }
    .hero__title-sub { font-size: clamp(1.28rem, 4.2vw, 2.75rem); letter-spacing: 0.24em; margin-top: 0.3rem; }
}
@media (max-width: 992px) {
    .hero__title-logo { width: min(92vw, 1020px); margin-bottom: 0.25rem; }
    .hero__title-sub { font-size: clamp(1.15rem, 3.9vw, 2.35rem); letter-spacing: 0.22em; margin-top: 0.28rem; }
    .hero__button { padding: 1rem 2.3rem; font-size: 1rem; }
}
@media (max-width: 768px) {
    /* Больше места под логотип: уже боковые отступы + на всю ширину колонки */
    .hero__column {
        padding: 20px 12px 68px;
    }
    .hero__content {
        align-items: stretch;
    }
    .hero__title-container {
        margin-bottom: 0.6rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .hero__title-logo {
        width: 100%;
        max-width: 100%;
        margin-bottom: 0.2rem;
    }
    .hero__title-sub { font-size: clamp(1.02rem, 3.6vw, 1.85rem); letter-spacing: 0.2em; margin-top: 0.25rem; }
    .hero__button { padding: 0.9rem 2rem; font-size: 0.95rem; }
}
@media (max-width: 480px) {
    .hero__column {
        padding: 18px 8px 62px;
    }
    .hero__title-logo {
        width: 100%;
        max-width: 100%;
    }
    .hero__title-sub { font-size: clamp(0.92rem, 3.4vw, 1.42rem); letter-spacing: 0.18em; margin-top: 0.2rem; }
    .hero__button { padding: 0.8rem 1.8rem; font-size: 0.9rem; gap: 8px; }
}
.hero__content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}
.hero__title-logo,
.hero__title-sub,
.hero__button {
    position: relative;
    z-index: 4;
}

/* ===== ЕДИНЫЙ СТИЛЬ ДЛЯ ВСЕХ ЗАГОЛОВКОВ СЕКЦИЙ ===== */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 0.9;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-align: center;
}
.title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.title-main {
    display: block;
    background: linear-gradient(90deg, #ffffff 0%, #f5f5f5 30%, #e0e0e0 60%, #aaaaaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}
.title-subtitle {
    font-family: var(--font-accent);
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    color: #888;
    text-transform: uppercase;
    font-weight: 300;
    margin-top: 1.5rem;
}
.title-wrapper::after {
    content: '';
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #666, transparent);
    margin-top: 1.5rem;
    display: block;
}

/* Приоритеты и портфолио: на телефоне чуть компактнее, чтобы длинные слова не упирались в края */
@media (max-width: 768px) {
    .about__header .section-title,
    .works__header .section-title, .title-main, .contact-title {
        font-size: clamp(2.28rem, 7.35vw, 4.55rem);
        letter-spacing: 0.034em;
        padding-inline: clamp(6px, 2.4vw, 16px);
        box-sizing: border-box;
    }
}
@media (max-width: 480px) {
    .about__header .section-title,
    .works__header .section-title, .contact-title {
        font-size: clamp(2.72rem, 6.5vw, 5.85rem);
        letter-spacing: 0.028em;
        padding-inline: clamp(4px, 2vw, 12px);
    }
}

/* ===== Главный заголовок (шрифты из font-themes.css) ===== */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@100..900&family=Lobster+Two:ital,wght@0,400;0,700;1,400;1,700&family=Oswald:wght@200..700&family=Roboto:wght@300;400;500;700;900&family=Rosarivo&display=swap');
.hero__title-wrapper {
    opacity: 0;
    transform: translateY(40px);
    animation: heroTitleAppear 1.5s ease-out 0.3s forwards;
}
.hero__title-accent {
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}
@keyframes heroTitleAppear {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(var(--start-y, 20px)); }
    to { opacity: 1; transform: translateY(0); }
}

/* mobile-scroll-top */
.mobile-scroll-top {
    display: none;
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 54px;
    height: 54px;
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.08), inset 0 -1px 1px rgba(0, 0, 0, 0.5);
    padding: 0;
    margin: 0;
}
.mobile-scroll-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
}
.mobile-scroll-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mobile-scroll-top:hover {
    background: rgba(15, 15, 15, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.12), inset 0 -1px 1px rgba(0, 0, 0, 0.4);
}
@media (max-width: 768px) {
    .mobile-scroll-top { display: flex; align-items: center; justify-content: center; }
}

/* дополнительные медиа для hero button */
@media (max-width: 768px) {
    .hero__button {
        transform: scale(0.85);
        transform-origin: center;
    }
    .hero__button:hover {
        transform: scale(0.85) translateY(-2px);
    }
}
@media (max-width: 480px) {
    .hero__button { transform: scale(0.75); }
    .hero__button:hover { transform: scale(0.75) translateY(-2px); }
}
@media (max-width: 360px) {
    .hero__button { transform: scale(0.65); }
    .hero__button:hover { transform: scale(0.65) translateY(-2px); }
    .hero__column {
        padding: 16px 8px 56px;
    }
}

/* contact-simple с фото */
.contact-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    background-color: transparent;
    position: relative;
}
.contact-simple__header {
    text-align: center;
    margin-top: 28px;
    margin-bottom: 20px;
}
.contact-simple__photo-circle {
    margin: 20px 0 70px;
}
.photo-circle {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.photo-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}
.photo-circle__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.contact-simple__social {
    display: flex;
    flex-direction: row;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 5px 0 5px;
}
.contact-simple__social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 40px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}
.contact-simple__email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 30px;
    background-color: #f5f5f5;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: auto;
    min-width: 280px;
}
.contact-simple__email:hover {
    background-color: #e8e8e8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.email-icon {
    font-size: 20px;
    color: #1d5470;
}
.email-link {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}
.email-link:hover {
    color: #1d5470;
}
@media (max-width: 768px) {
    .contact-simple__title { font-size: 28px; }
    .contact-simple__subtitle { font-size: 16px; }
    .photo-circle { width: 160px; height: 160px; }
    .contact-simple__social { gap: 20px; }
    .contact-simple__social .social-link { width: 50px; height: 50px; font-size: 24px; }
    .contact-simple__email { padding: 12px 25px; }
    .email-link { font-size: 14px; }
}
@media (max-width: 480px) {
    .photo-circle { width: 140px; height: 140px; border-width: 3px; }
    .contact-simple__social { gap: 15px; }
    .contact-simple__social .social-link { width: 45px; height: 45px; font-size: 22px; }
    .contact-simple__email { padding: 10px 20px; }
}

/* photo-with-icons + side-icon */
.photo-with-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    margin: 30px auto;
    padding: 20px;
    flex-wrap: wrap;
    position: relative;
}
.icon-column {
    display: flex;
    flex-direction: column;
    gap: 125px;
    min-width: 80px;
}
.photo-circle {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    z-index: 2;
}
.side-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    text-decoration: none;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
    will-change: transform;
    position: relative;
    z-index: 3;
}
.side-icon:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.05);
    border-width: 2.5px;
}
.side-icon--telegram:hover { color: #0088cc; border-color: #0088cc; box-shadow: 0 8px 20px rgba(0, 136, 204, 0.3), 0 0 0 3px rgba(0, 136, 204, 0.2), 0 0 30px rgba(0, 136, 204, 0.4); }
.side-icon--instagram:hover { color: #d62976; border-color: #d62976; box-shadow: 0 8px 20px rgba(214, 41, 118, 0.3), 0 0 0 3px rgba(214, 41, 118, 0.2), 0 0 30px rgba(214, 41, 118, 0.4); }
.side-icon--youtube:hover { color: #ff0000; border-color: #ff0000; box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3), 0 0 0 3px rgba(255, 0, 0, 0.2), 0 0 30px rgba(255, 0, 0, 0.4); }
.side-icon--vk:hover { color: #4c75a3; border-color: #4c75a3; box-shadow: 0 8px 20px rgba(76, 117, 163, 0.3), 0 0 0 3px rgba(76, 117, 163, 0.2), 0 0 30px rgba(76, 117, 163, 0.4); }
@media (max-width: 992px) {
    .photo-with-icons { gap: 60px; }
    .photo-circle { width: 220px; height: 220px; }
    .side-icon { width: 60px; height: 60px; font-size: 28px; }
}
@media (max-width: 768px) {
    .photo-with-icons { gap: 40px; }
    .photo-circle { width: 160px; height: 160px; }
    .side-icon { width: 50px; height: 50px; font-size: 24px; }
}
@media (max-width: 480px) {
    /* Иконки слева/справа от фото, как на десктопе (не столбиком) */
    .photo-with-icons {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: clamp(16px, 4.8vw, 26px);
        margin: 24px auto;
        padding: 12px 4px;
    }
    .icon-column {
        flex-direction: column;
        gap: clamp(26px, 9vw, 42px);
        min-width: 0;
    }
    .photo-circle { width: 140px; height: 140px; }
    .side-icon { width: 45px; height: 45px; font-size: 22px; }
    .contact-simple__subtitle_bk {
        margin-top: 0.9rem;
    }
}

/* ===== КОМПАКТНЫЙ ФУТЕР С ВИДЕО ===== */
.footer-compact {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    color: #fff;
}
.footer-compact__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}
.footer-compact__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
}
.footer-compact__content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}
.footer-compact__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.footer-compact__logo {
    margin-bottom: 40px;
}
.footer-compact__logo-top {
    font-family: var(--font-heading, 'Inter', sans-serif);
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}
.footer-compact__logo-bottom {
    font-family: var(--font-heading, 'Inter', sans-serif);
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}
.footer-compact__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
}
.footer-compact__copyright {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
.footer-compact__links {
    display: flex;
    gap: 30px;
}
.footer-compact__link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid transparent;
    padding-bottom: 3px;
}
.footer-compact__link:hover {
    color: #fff;
    border-bottom-color: #fff;
}
@media (max-width: 992px) {
    .footer-compact { height: 350px; }
    .footer-compact__logo-top { font-size: 3rem; }
    .footer-compact__logo-bottom { font-size: 1.8rem; }
    .footer-compact__row { padding-top: 25px; }
}
@media (max-width: 768px) {
    .footer-compact { height: 400px; }
    .footer-compact__logo { margin-bottom: 30px; }
    .footer-compact__logo-top { font-size: 2.5rem; letter-spacing: 0.1em; }
    .footer-compact__logo-bottom { font-size: 1.5rem; letter-spacing: 0.2em; }
    .footer-compact__row { flex-direction: column; justify-content: center; text-align: center; gap: 15px; padding-top: 20px; }
    .footer-compact__copyright { font-size: 0.9rem; order: 2; }
    .footer-compact__links { order: 1; flex-direction: column; gap: 10px; align-items: center; }
    .footer-compact__link { font-size: 0.85rem; padding: 5px 0; }
}
@media (max-width: 480px) {
    .footer-compact { height: 380px; }
    .footer-compact__logo-top { font-size: 2rem; }
    .footer-compact__logo-bottom { font-size: 1.2rem; letter-spacing: 0.15em; }
    .footer-compact__copyright { font-size: 0.8rem; }
    .footer-compact__link { font-size: 0.8rem; }
}
@media (max-width: 360px) {
    .footer-compact { height: 350px; }
    .footer-compact__logo-top { font-size: 1.8rem; }
    .footer-compact__logo-bottom { font-size: 1rem; }
}

/* keyframes (только последние версии) */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}
@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(5px); }
}


/* ─── FOOTER TAPE ──────────────────────────────────────────────── */

.footer-compact {
    position: relative;
    overflow: hidden;
    min-height: 380px;          /* или больше, если хочешь крупнее */
    background: transparent;
    color: #aaa;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem 1.5rem 2rem;
}

.footer-tape-wrapper {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.footer-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.45;              /* регулируй 0.3–0.6 */
    filter: brightness(0.7) contrast(1.1) grayscale(0.4);
}

.footer-tape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-2.5deg);  /* лёгкий наклон */
    width: 240%;                /* подбери под размер своей ленты: 180–320% */
    max-width: none;
    opacity: 0.82;
    filter: drop-shadow(0 8px 20px #000c);
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Контент поверх ленты */
.footer-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.footer-copyright {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #fff;
}

/* Адаптив — уменьшаем масштаб ленты на мобильных */
@media (max-width: 768px) {
    .footer-tape {
        width: 280%;
        transform: translate(-50%, -50%) rotate(-1.8deg);
    }
    
    .footer-compact {
        min-height: 320px;
    }
}

@media (max-width: 480px) {
    .footer-tape {
        width: 320%;
        opacity: 0.75;
    }
}

.footer-compact {
    position: relative;
    height: 420px;                  /* или 380–480px — подбери под свою bg-картинку */
    overflow: hidden;
    background: transparent;
    color: #ccc;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2.5rem;
}

.footer-tape-scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.scene-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;    /* смещение вверх, чтобы стол был виден лучше */
    opacity: 0.65;                  /* было слишком темно — поднимаем */
    filter: brightness(0.85) contrast(1.05) saturate(0.92);
}

.scene-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 40%,
        rgba(0,0,0,0.4) 65%,
        rgba(0,0,0,0.85) 100%
    );
    z-index: 1;
}

.scene-tape {
    position: absolute;
    bottom: 18%;                    /* лежит на "столе", а не по центру */
    left: 50%;
    transform: translateX(-50%) rotate(0deg);  /* без наклона */
    width: 110%;                    /* !!! КЛЮЧЕВОЕ ИЗМЕНЕНИЕ — гораздо меньше */
    max-width: none;
    opacity: 0.88;
    filter: 
        brightness(1.08) 
        contrast(1.18) 
        drop-shadow(0 6px 18px rgba(0,0,0,0.7));
    z-index: 2;
}

/* Контент */
.footer-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
}

.footer-copyright {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
    opacity: 0.9;
}

.footer-email {
    font-size: 0.95rem;
    opacity: 0.75;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .footer-compact {
        height: 360px;
    }
    .scene-tape {
        width: 140%;
        bottom: 15%;
        transform: translateX(-50%) rotate(0deg);
    }
}

@media (max-width: 480px) {
    .scene-tape {
        width: 160%;
        bottom: 12%;
    }
    .footer-copyright {
        font-size: 0.9rem;
    }
}

.footer-compact {
    position: relative;
    height: 520px;                  /* увеличиваем блок */
    min-height: 440px;
    overflow: hidden;
    background: transparent;
    color: #ddd;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 3rem;
}

.footer-tape-scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.scene-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;     /* чуть выше центра — стол лучше виден */
    opacity: 0.52;                   /* фон должен не мешать ленте */
    filter: brightness(0.88) contrast(1.06) saturate(0.94);
    user-select: none;
    -webkit-user-drag: none;
}

.scene-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 40%,
        rgba(0,0,0,0.33) 60%,
        rgba(0,0,0,0.78) 100%
    );
    z-index: 1;
}

.scene-tape {
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%) rotate(0deg);  /* без наклона */
    height: 220%; /* оставляем видимую границу сверху/снизу */
    bottom: auto;
    width: auto;                     /* сохраняем пропорции картинки */
    max-width: none;
    opacity: 1;
    filter: 
        brightness(1.08)
        contrast(1.14)
        drop-shadow(0 10px 26px rgba(0,0,0,0.7));
    z-index: 3;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Контент */
.footer-compact .footer-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px; /* строго ниже ленты */
    z-index: 4;
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    text-align: left;
}

.footer-compact__bottom-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* чуть в сторону от центра */
}

.footer-compact .footer-copyright {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    margin: 0; /* чтобы оказаться в самом низу блока */
    opacity: 0.92;
}

.footer-compact .footer-email {
    font-size: 1rem;
    opacity: 0.78;
    letter-spacing: 0.3px;
    margin: 0 0 10px 0;
}

.footer-compact__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    z-index: 5;
}
.footer-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 14px;
}
.footer-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    font-size: 1.05rem;
    text-decoration: none;
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}
.footer-social__link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.07);
}
.footer-compact .footer__links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.footer-compact .footer-link {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    font-weight: 400;
    border-bottom: 1px solid transparent;
    padding-bottom: 3px;
}

.footer-compact .footer-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* ────────────────────────────────────────────────
   Адаптив
───────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .footer-compact {
        height: 460px;
    }
    .scene-tape {
        height: 212%;
        bottom: auto;
        width: auto;
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@media (max-width: 768px) {
    .footer-compact {
        height: 420px;
        padding-bottom: 2.5rem;
    }
    .scene-bg {
        object-position: center 35%;
    }
    .scene-tape {
        height: 216%;
        bottom: auto;
        width: auto;
        transform: translate(-50%, -50%) rotate(0deg);
    }
    .footer-compact .footer-copyright {
        font-size: 0.98rem;
    }
}

@media (max-width: 480px) {
    .footer-compact {
        height: 380px;
    }
    .scene-tape {
        height: 220%;
        bottom: auto;
        width: auto;
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

@media (max-width: 768px) {
    .footer-compact .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 22px;
        bottom: 10px;
    }

    .footer-compact__bottom-left {
        align-items: center;
    }

    .footer-compact .footer-compact__aside {
        align-items: center;
    }
    .footer-compact .footer-social {
        justify-content: center;
    }
    .footer-compact .footer__links {
        align-items: center;
        gap: 10px;
    }
}

.contacts-contacts {
    background: #0a0a0a;
    color: #fff;
    padding: 0 0 80px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow:
        0 22px 52px -12px rgba(0, 0, 0, 0.62),
        inset 0 1px 0 rgba(255, 255, 255, 0.065);
}
/* Появление при скролле — как у production__header / benefits__header */
.contacts-contacts .contact-simple__header,
.contacts-contacts .photo-with-icons {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.contacts-contacts .production__button-contacts {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease,
        background 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}
.contacts-contacts .contact-simple__header.animated,
.contacts-contacts .photo-with-icons.animated,
.contacts-contacts .production__button-contacts.animated {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .contacts-contacts .contact-simple__header,
    .contacts-contacts .photo-with-icons,
    .contacts-contacts .production__button-contacts {
        opacity: 1;
        transform: none;
    }
}
@media (max-width: 768px) {
    .contacts-contacts {
        padding: 44px 0 56px;
    }
    .contacts-contacts .contact-simple {
        padding-top: 10px;
        padding-bottom: 28px;
    }
    .contacts-contacts .contact-simple__header {
        margin-top: 0;
        margin-bottom: 14px;
    }
}
@media (max-width: 480px) {
    .contacts-contacts {
        padding: 36px 0 40px;
    }
    .contacts-contacts .contact-simple {
        padding-top: 4px;
        padding-bottom: 18px;
    }
    .contacts-contacts .contact-simple__header {
        margin-top: 0;
        margin-bottom: 12px;
    }
}

/* Кнопка в потоке под логотипом (раньше absolute + fixed скролл давали рассинхрон на моб.) */
.hero__button-wrapper {
    position: relative;
    bottom: auto;
    left: auto;
    transform: translateY(-46px);
    z-index: 4;
    margin-top: -1.2rem;
}

@media (max-width: 768px) {
    .hero__button-wrapper {
        transform: translateY(20px);
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .hero__button-wrapper {
        transform: translateY(30px);
    }
}

/* Дополнительная фиксация центрирования главной надписи/кнопки */
.hero__column {
    align-items: center;
    justify-content: center;
}
.hero__column .hero__content {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    align-items: center;
}

/* Подсказка SCROLL: плавное исчезновение без рывков visibility */
.scroll-hint {
    transition:
        opacity 0.45s ease,
        transform 0.45s ease,
        visibility 0s linear 0.45s;
}
.scroll-hint.visible {
    transition-delay: 0s;
}

/* Убираем засвет за заголовком «о работе / ключевые ориентиры» */
.about {
    background: linear-gradient(180deg, #080808 0%, #080808 100%);
}
.about .title-accent,
.production .title-accent {
    text-shadow: none;
}

/* Синхронизируем скорость появления первых scroll-reveal блоков */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal-block.hero .hero__foreground,
    .scroll-reveal-block.about > .container {
        transition:
            opacity 1.35s cubic-bezier(0.16, 1, 0.3, 1),
            transform 1.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Более длительное появление заголовка «ПОРТФОЛИО» */
    .works.works-scroll-reveal-on .works__header {
        transition:
            opacity 1.15s cubic-bezier(0.16, 1, 0.3, 1),
            transform 1.15s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* «Ключевые ориентиры»: поэтапное появление строк заголовка */
    .about .about__header .section-title > span {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
        transition:
            opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
            transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
        will-change: opacity, transform;
    }
    .about.is-scroll-reveal-visible .about__header .section-title > span {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    .about.is-scroll-reveal-visible .about__header .section-title > .title-accent {
        transition-delay: 0.08s;
    }
    .about.is-scroll-reveal-visible .about__header .section-title > .title-main:nth-of-type(2) {
        transition-delay: 0.24s;
    }
    .about.is-scroll-reveal-visible .about__header .section-title > .title-main:nth-of-type(3) {
        transition-delay: 0.4s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .about .about__header .section-title > span {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Лого в блоке «Основа» вместо текста STORY/VERSE */
.benefits-title-main--logo {
    background: none;
    color: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 0;
    font-size: 0;
    margin: 0;
    transform: none;
    margin-top: -156px;
}
.benefits-title-logo {
    display: block;
    width: min(74vw, 780px);
    max-width: 100%;
    height: auto;
    margin: -20px auto -104px;
    object-fit: contain;
    transform: scaleY(0.95);
    transform-origin: center center;
}

/* Убираем рамку/тень у мини-видео в этапах */
.production .stage-media,
.production .video-preview {
    border: none;
    box-shadow: none;
}

.container {
    max-width: 1400px;          
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══ Футер: видео-фон + UI как в референсе ═══ */
.footer-compact.footer-tape-layout {
    position: relative;
    isolation: isolate;
    min-height: clamp(380px, 50vh, 560px);
    padding: clamp(42px, 7vh, 74px) 0 clamp(66px, 9vh, 98px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: #020203;
}

.footer-compact.footer-tape-layout .footer-video-layer {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.footer-compact.footer-tape-layout .footer-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.04) brightness(0.54);
    transform: scale(1.01);
}

.footer-compact.footer-tape-layout .footer-video-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(92% 78% at 50% 68%, rgba(62, 67, 90, 0.2) 0%, rgba(10, 11, 16, 0.72) 62%, rgba(3, 3, 4, 0.9) 100%),
        linear-gradient(180deg, rgba(2, 2, 3, 0) 0%, rgba(2, 2, 3, 0.16) 32%, rgba(2, 2, 3, 0.58) 68%, rgba(2, 2, 3, 0.88) 100%);
}

.footer-compact.footer-tape-layout .footer-creator {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(0.22rem, 0.9vh, 0.72rem);
    width: min(95vw, 920px);
    padding: 0 clamp(10px, 2.6vw, 20px);
    transform: translateY(-76px);
}

.footer-compact.footer-tape-layout .footer-creator__title {
    display: none;
}

.footer-compact.footer-tape-layout .footer-creator__title-logo-mobile {
    display: block;
    width: min(92vw, 850px);
    height: auto;
    margin: 0 auto -150px;
    filter: none;
}

@media (min-width: 769px) {
    .footer-compact.footer-tape-layout .footer-creator__title-logo-mobile {
        margin: 0 auto -122px;
    }
}

.footer-compact.footer-tape-layout .footer-creator__sub {
    margin: 0 0 clamp(0.45rem, 1.2vh, 0.8rem);
    font-size: clamp(0.86rem, 1.8vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(223, 226, 236, 0.78);
}

.footer-compact.footer-tape-layout .footer-creator__toolkit {
    width: min(88vw, 500px);
    min-height: 50px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
    color: rgba(245, 247, 253, 0.95);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 14px rgba(255, 255, 255, 0.16);
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.footer-compact.footer-tape-layout .footer-creator__icon-slot {
    width: 52px;
    height: 44px;
    border-radius: 5px;
    border: none;
    background: transparent;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(236, 241, 255, 0.92);
}

.footer-compact.footer-tape-layout .footer-creator__icon {
    width: 28px;
    height: 28px;
    display: block;
}

.footer-compact.footer-tape-layout .footer-creator__icon--zap {
    animation: footerZapPulse 2.1s ease-in-out infinite;
}

.footer-compact.footer-tape-layout .footer-creator__icon--download {
    animation: footerDownloadBob 1.9s ease-in-out infinite;
}

.footer-compact.footer-tape-layout .footer-creator__toolkit-text {
    position: relative;
    font-size: clamp(0.7rem, 1.28vw, 0.82rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.footer-compact.footer-tape-layout .footer-creator__toolkit-text::after {
    content: attr(data-hover-text);
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    color: #ffd7dc;
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(255, 58, 77, 0.55);
    transition: opacity 0.2s ease;
}

.footer-compact.footer-tape-layout .footer-creator__toolkit:hover {
    border-color: rgba(255, 70, 96, 0.92);
    background: linear-gradient(180deg, rgba(255, 65, 92, 0.26) 0%, rgba(135, 22, 40, 0.2) 100%);
    color: #ffe8ec;
    box-shadow:
        inset 0 0 0 1px rgba(255, 116, 136, 0.3),
        0 0 14px rgba(255, 55, 86, 0.45),
        0 0 28px rgba(255, 34, 70, 0.35);
}

.footer-compact.footer-tape-layout .footer-creator__toolkit:hover .footer-creator__icon-slot {
    color: #ffd4dc;
    text-shadow: 0 0 10px rgba(255, 63, 93, 0.7);
}

.footer-compact.footer-tape-layout .footer-creator__toolkit:hover .footer-creator__toolkit-text {
    color: transparent;
    text-shadow: none;
}

.footer-compact.footer-tape-layout .footer-creator__toolkit:hover .footer-creator__toolkit-text::after {
    opacity: 1;
}

@keyframes footerZapPulse {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    45% { opacity: 1; transform: scale(1.08); }
}

@keyframes footerDownloadBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(1.5px); }
}

.footer-compact.footer-tape-layout .footer-creator__portal {
    margin-top: clamp(0.7rem, 1.6vh, 1rem);
    border: none;
    background: transparent;
    color: rgba(232, 236, 247, 0.93);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.22rem;
    padding: 4px 10px;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer-compact.footer-tape-layout .footer-creator__portal-icon {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 4px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.footer-compact.footer-tape-layout .footer-creator__portal-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("images/newwindow.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 32px 32px;
    filter: brightness(0) invert(1);
    opacity: 0.96;
    transform: scale(1);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-compact.footer-tape-layout .footer-creator__portal-icon::after {
    content: "!";
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 88, 104, 0.96);
    text-shadow: 0 0 10px rgba(255, 58, 77, 0.6);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-compact.footer-tape-layout .footer-creator__portal-text {
    position: relative;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.footer-compact.footer-tape-layout .footer-creator__portal-text::after {
    content: attr(data-hover-text);
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    color: #ffd8de;
    text-shadow: 0 0 8px rgba(255, 55, 86, 0.6);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.footer-compact.footer-tape-layout .footer-creator__portal:hover {
    color: #ffd8de;
    text-shadow:
        0 0 10px rgba(255, 52, 84, 0.6),
        0 0 20px rgba(255, 32, 68, 0.45);
}

.footer-compact.footer-tape-layout .footer-creator__portal:hover .footer-creator__portal-icon,
.footer-compact.footer-tape-layout .footer-creator__portal:focus-visible .footer-creator__portal-icon {
    box-shadow:
        0 0 12px rgba(255, 68, 100, 0.55),
        0 0 24px rgba(255, 32, 68, 0.38);
}

.footer-compact.footer-tape-layout .footer-creator__portal:hover .footer-creator__portal-icon::before,
.footer-compact.footer-tape-layout .footer-creator__portal:focus-visible .footer-creator__portal-icon::before {
    opacity: 0;
    transform: scale(0.72);
}

.footer-compact.footer-tape-layout .footer-creator__portal:hover .footer-creator__portal-icon::after,
.footer-compact.footer-tape-layout .footer-creator__portal:focus-visible .footer-creator__portal-icon::after {
    opacity: 1;
    transform: scale(1);
}

.footer-compact.footer-tape-layout .footer-creator__portal:hover .footer-creator__portal-text {
    color: transparent;
    text-shadow: none;
}

.footer-compact.footer-tape-layout .footer-creator__portal:hover .footer-creator__portal-text::after {
    opacity: 1;
}

.footer-compact.footer-tape-layout .footer-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    z-index: 10;
    width: 100%;
    padding: 0 clamp(14px, 3vw, 30px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}

.footer-compact.footer-tape-layout .footer-copyright {
    font-size: clamp(0.74rem, 1.25vw, 0.9rem);
    letter-spacing: 0.05em;
    color: rgba(204, 209, 223, 0.42);
    text-align: center;
}

.footer-compact.footer-tape-layout .footer-legal-link {
    font-size: clamp(0.76rem, 1.3vw, 0.92rem);
    letter-spacing: 0.035em;
    color: rgba(220, 225, 240, 0.72);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-compact.footer-tape-layout .footer-legal-link:hover {
    color: rgba(248, 250, 255, 0.95);
}

.footer-compact.footer-tape-layout .footer-legal-link--left {
    justify-self: start;
    text-align: left;
}

.footer-compact.footer-tape-layout .footer-legal-link--right {
    justify-self: end;
    text-align: right;
}

@media (max-width: 768px) {
    .benefits__header {
        margin-bottom: -38px;
    }

    .benefits__header .section-title {
        margin-bottom: 64px;
        line-height: 0.88;
    }

    .benefits__header .title-accent {
        margin-bottom: -0.2em;
    }

    .benefits-title-main--logo {
        transform: none;
        margin-top: -60px;
    }

    .benefits-title-logo {
        width: min(88vw, 620px);
        margin: -10px auto -58px;
    }

    .footer-compact.footer-tape-layout .footer-content {
        bottom: 10px;
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .footer-compact.footer-tape-layout {
        min-height: clamp(390px, 62vh, 500px);
        padding: 20px 0 78px;
    }

    .footer-compact.footer-tape-layout .footer-creator {
        gap: 0.28rem;
        padding-bottom: 22px;
        transform: translateY(-38px);
    }

    .footer-compact.footer-tape-layout .footer-creator__title {
        display: none;
    }

    .footer-compact.footer-tape-layout .footer-creator__title-logo-mobile {
        display: block;
        width: min(92vw, 560px);
        margin: 16px auto -48px;
    }

    .footer-compact.footer-tape-layout .footer-creator__sub {
        margin: 0.5rem 0 0.45rem;
    }

    .footer-compact.footer-tape-layout .footer-creator__portal {
        margin-top: 0.38rem;
    }

    .footer-compact.footer-tape-layout .footer-creator__toolkit {
        min-height: 58px;
        padding: 0 10px;
    }

    .footer-compact.footer-tape-layout .footer-creator__toolkit-text {
        font-size: 0.62rem;
        letter-spacing: 0.06em;
    }

    .footer-compact.footer-tape-layout .footer-creator__icon-slot {
        width: 44px;
        height: 36px;
    }

    .footer-compact.footer-tape-layout .footer-content {
        grid-template-columns: 1fr;
        gap: 2px;
        bottom: 16px;
    }

    .footer-compact.footer-tape-layout .footer-legal-link--left {
        order: 1;
    }

    .footer-compact.footer-tape-layout .footer-legal-link--right {
        order: 2;
    }

    .footer-compact.footer-tape-layout .footer-copyright {
        order: 3;
        margin-top: 4px;
        font-size: 0.82rem;
        color: rgba(214, 220, 236, 0.62);
    }

    .footer-compact.footer-tape-layout .footer-legal-link {
        font-size: 0.92rem;
        color: rgba(228, 233, 246, 0.86);
    }

    .footer-compact.footer-tape-layout .footer-legal-link--left,
    .footer-compact.footer-tape-layout .footer-legal-link--right,
    .footer-compact.footer-tape-layout .footer-copyright {
        justify-self: center;
        text-align: center;
    }
}

/* Единый вертикальный ритм: расстояние от категории/заголовка до контента секции */
:root {
    --section-heading-gap: 90px;
}

.about .about__header,
.works .works__header,
.benefits-contacts .benefits__header,
.contacts-contacts .contact-simple > .contact-simple__header:first-child {
    margin-bottom: var(--section-heading-gap) !important;
}

/* Основа: заголовок выше по высоте из-за логотипа, поэтому зазор до карточек уменьшаем */
.benefits-contacts .benefits__header {
    margin-bottom: calc(var(--section-heading-gap) - 50px) !important;
}

/* Контакты: равняем внутренний зазор "заголовок -> подзаголовок" под ритм остальных секций */
.contacts-contacts .contact-simple > .contact-simple__header:first-child .section-title {
    margin-bottom: 5.9rem;
}

/* Production визуально требует чуть меньшего зазора, чтобы попасть в общий ритм */
.production .production__header {
    margin-bottom: calc(var(--section-heading-gap) - 26px) !important;
}

@media (max-width: 768px) {
    :root {
        --section-heading-gap: clamp(22px, 5.4vw, 34px);
    }

    .contacts-contacts .contact-simple > .contact-simple__header:first-child .section-title {
        margin-bottom: 2.1rem;
    }
}

/* Декоративные маленькие "черточки" по сайту отключены */
.title-wrapper::after,
.divider-line,
.about-panel__title::after,
.production__decoration {
    display: none !important;
}

/* Возвращаем разделительную линию только в карточках "Ключевые ориентиры" */
.about-panel__title::after {
    display: block !important;
}

/* ===== ABOUT concept card ===== */
.about-rotator.about-rotator--concept {
    --about-card-radius: 18px;
}

.about-rotator.about-rotator--concept .about-rotator__viewport {
    min-height: clamp(370px, 52vw, 500px);
}

.about-rotator.about-rotator--concept .about-panel__inner,
.about-rotator.about-rotator--concept .about-panel__inner--reverse {
    display: block;
}

.about-rotator.about-rotator--concept .about-panel__card {
    position: relative;
    border-radius: var(--about-card-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #08090d;
    width: min(100%, 980px);
    margin: 0 auto;
    min-height: clamp(350px, 48vw, 460px);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04),
        0 12px 36px rgba(0, 0, 0, 0.45);
}

.about-rotator.about-rotator--concept .about-panel__card::after,
.about-rotator.about-rotator--concept .about-panel__inner--reverse .about-panel__card::after {
    display: none !important;
}

.about-rotator.about-rotator--concept .about-panel__card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(220px circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(170, 192, 255, 0.08), transparent 62%);
    opacity: 0;
    transition: opacity 0.24s ease;
    pointer-events: none;
    z-index: 2;
}

.about-rotator.about-rotator--concept .about-panel__card:hover::before {
    opacity: 0.55;
}

.about-rotator.about-rotator--concept .about-panel__photo {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.about-rotator.about-rotator--concept .about-panel__photo::before,
.about-rotator.about-rotator--concept .about-panel__inner--reverse .about-panel__photo::before {
    display: none !important;
}

.about-rotator.about-rotator--concept .about-panel__photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 7, 10, 0.42) 0%, rgba(6, 7, 10, 0.56) 48%, rgba(6, 7, 10, 0.68) 100%),
        radial-gradient(78% 76% at 50% 40%, rgba(26, 34, 60, 0.1) 0%, rgba(5, 6, 9, 0.4) 100%);
    z-index: 1;
}

.about-rotator.about-rotator--concept .about-panel__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 44%;
    transform: scale(1.1);
    filter: grayscale(1) saturate(0) brightness(0.38) blur(2px);
    transition: filter 0.45s ease;
}

/* Тач / устройства без «наведения»: цвет после смены слайда (is-photo-ready в script.js) */
@media (hover: none), (pointer: coarse) {
    .about-rotator.about-rotator--concept .about-panel.is-active.is-photo-ready .about-panel__card .about-panel__photo img {
        filter: grayscale(0) saturate(0.95) brightness(0.42) blur(1.6px) !important;
    }
}

/* Постоянно ч/б, при наведении «оживает» и раскрашивается */
@media (hover: hover) and (pointer: fine) {
    .about-rotator.about-rotator--concept .about-panel.is-active .about-panel__card .about-panel__photo img {
        filter: grayscale(1) saturate(0) brightness(0.38) blur(2px) !important;
        transition: filter 0.45s ease;
    }

    .about-rotator.about-rotator--concept .about-panel.is-active .about-panel__card:hover .about-panel__photo img,
    .about-rotator.about-rotator--concept .about-panel.is-active .about-panel__card:focus-within .about-panel__photo img {
        filter: grayscale(0) saturate(0.95) brightness(0.42) blur(1.6px) !important;
    }
}

.about-rotator.about-rotator--concept .about-panel__overlay {
    position: relative;
    z-index: 3;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: clamp(70px, 9.2vw, 96px) clamp(18px, 4.4vw, 52px) clamp(24px, 3.2vw, 34px);
}

.about-rotator.about-rotator--concept .about-panel__step {
    position: absolute;
    top: clamp(14px, 2.3vw, 22px);
    right: clamp(14px, 2.4vw, 24px);
    margin: 0;
    font-size: clamp(0.68rem, 1.05vw, 0.82rem);
    letter-spacing: 0.18em;
    color: #ff3a3a;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.45);
}

.about-rotator.about-rotator--concept .about-panel__title {
    margin: 0;
    max-width: 24ch;
    font-size: clamp(1.6rem, 3vw, 2.8rem);
    letter-spacing: 0;
    line-height: 1.04;
    text-transform: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.38);
    min-height: 2.2em;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.about-rotator.about-rotator--concept .about-panel__title::after {
    display: none !important;
}

.about-rotator.about-rotator--concept .about-panel__divider {
    display: block;
    width: min(100%, 620px);
    height: 1px;
    margin: 12px 0 16px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 18%, rgba(255, 255, 255, 0.35) 82%, transparent 100%);
}

.about-rotator.about-rotator--concept .about-panel__lead {
    margin: 0;
    max-width: 66ch;
    font-size: clamp(1.38rem, 2.07vw, 1.2rem);
    line-height: 1.65;
    letter-spacing: 0.012em;
    color: rgba(231, 236, 250, 0.9);
    text-align: center;
    text-shadow: 0 2px 8px rgba(4, 6, 12, 0.42);
    text-wrap: balance;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

@media (max-width: 768px) {
    .about-rotator.about-rotator--concept .about-rotator__viewport {
        min-height: min(92vw, 438px);
    }

    .about-rotator.about-rotator--concept .about-panel__card {
        height: min(92vw, 438px);
        min-height: min(92vw, 438px);
        max-height: min(92vw, 438px);
        border-radius: 14px;
    }

    .about-rotator.about-rotator--concept .about-panel__photo {
        background: #05060a;
    }

    .about-rotator.about-rotator--concept .about-panel__photo img {
        object-fit: cover;
        object-position: center 42%;
        transform: none;
        filter: grayscale(1) saturate(0) brightness(0.38) blur(2px);
        transition-duration: 0.42s;
    }

    .about-rotator.about-rotator--concept .about-panel__overlay {
        min-height: 100%;
        height: 100%;
        box-sizing: border-box;
        padding: 64px 16px 28px;
        justify-content: flex-start;
        --about-card-text-lift: clamp(15px, 4.2vw, 17px);
        transform: translateY(calc(-1 * var(--about-card-text-lift)));
    }

    .about-rotator.about-rotator--concept .about-panel__step {
        left: 50%;
        right: auto;
        top: 12px;
        transform: translate(-50%, var(--about-card-text-lift));
        width: auto;
        display: inline-block;
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        color: #ff2b2b;
        text-shadow:
            0 0 1px rgba(0, 0, 0, 0.5),
            0 0 12px rgba(255, 32, 32, 0.65);
    }

    .about-rotator.about-rotator--concept .about-panel__title {
        font-size: 1.9rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        margin-top: auto;
        min-height: 2.35em;
    }

    .about-rotator.about-rotator--concept .about-panel__lead {
        font-size: 0.95rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        min-height: 7.5em;
        flex: 0 1 auto;
    }

    .about-rotator.about-rotator--concept .about-panel__overlay .about-panel__divider {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .about-rotator.about-rotator--concept .about-rotator__viewport {
        min-height: min(94vw, 418px);
    }

    .about-rotator.about-rotator--concept .about-panel__card {
        height: min(94vw, 418px);
        min-height: min(94vw, 418px);
        max-height: min(94vw, 418px);
    }
}

