/* ===== REDESIGN PAGE STYLES ===== */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Martian+Mono:wght@700&display=swap');

@font-face {
    font-family: 'Jeko';
    src: url('/static/core/fonts/Jeko-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Jeko';
    src: url('/static/core/fonts/Jeko-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Jeko';
    src: url('/static/core/fonts/Jeko-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Jeko';
    src: url('/static/core/fonts/Jeko-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --rd-purple: #9733FF;
    --rd-purple-dark: #5b1f99;
    --rd-purple-light: #C29BFF;
    --rd-lime: #C8FF00;
    --rd-dark: #19191C;
    --rd-light: #F5F7F9;
    --rd-font-display: 'Jeko', sans-serif;
    --rd-font-mono: 'Martian Mono', monospace;
}

/* --- Reset for redesign page --- */
html:has(.redesign-page) {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.redesign-page {
    font-family: var(--rd-font-display);
    color: var(--rd-light);
    background-color: var(--rd-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    width: 100%;
    min-width: 0;
}

.redesign-page *,
.redesign-page *::before,
.redesign-page *::after {
    box-sizing: border-box;
}

.redesign-page a {
    text-decoration: none;
    color: inherit;
}

.redesign-page a:hover {
    opacity: 1;
}

.redesign-page img {
    height: auto;
}

/* --- Container --- */
.rd-container {
    max-width: 1232px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* --- Section base --- */
.rd-section {
    position: relative;
    overflow: hidden;
}

/* ===================== */
/* --- HEADER ---        */
/* ===================== */
.rd-header {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1232px;
    z-index: 100;
    background: var(--rd-light);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rd-header__logo img {
    width: 163.5px;
    height: 32px;
}

.rd-header__nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.rd-header__links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rd-header__links li {
    display: contents;
}

.rd-header__links a {
    font-family: var(--rd-font-mono);
    font-weight: 700;
    font-size: 16px;
    line-height: normal;
    text-transform: uppercase;
    color: var(--rd-dark);
    font-variation-settings: 'wdth' 100;
    transition: color 0.35s;
}

.rd-header__links a:hover {
    color: var(--rd-purple);
    text-decoration: underline;
}

.rd-header__buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rd-btn {
    font-family: var(--rd-font-mono);
    font-weight: 700;
    font-size: 16px;
    line-height: normal;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 40px;
    padding: 17px 32px 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.35s, color 0.35s, border-color 0.35s;
    white-space: nowrap;
    font-variation-settings: 'wdth' 100;
}

.redesign-page .rd-btn--lime {
    background: var(--rd-lime);
    color: var(--rd-dark);
    border-color: var(--rd-dark);
}

.redesign-page .rd-btn--lime:hover {
    background: var(--rd-dark);
    color: var(--rd-lime);
    border-color: var(--rd-lime);
}

.redesign-page .rd-btn--purple {
    background: var(--rd-purple);
    color: var(--rd-light);
}

.redesign-page .rd-btn--purple:hover {
    background: var(--rd-lime);
    color: var(--rd-purple);
    border-color: var(--rd-purple);
}

.rd-btn--dark {
    background: var(--rd-dark);
    color: var(--rd-lime);
    border: 1px solid var(--rd-lime);
}

.rd-btn--full {
    width: 100%;
}

/* ===================== */
/* --- HERO SECTION ---  */
/* ===================== */
.rd-hero {
    position: relative;
    aspect-ratio: 1600 / 1087;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    background: var(--rd-dark);
    padding-top: 28%;
    padding-bottom: 5%;
}

.rd-hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.rd-hero-slider__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center top;
    visibility: hidden;
    z-index: 0;
}

.rd-hero-slider__slide--active {
    visibility: visible;
    z-index: 1;
}

.rd-hero__title {
    position: relative;
    z-index: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 23px;
}

.rd-hero__title-logo {
    width: 490px;
    height: 88px !important;
    max-width: 80%;
}

.rd-hero__subtitle {
    position: relative;
    width: 100vw;
    height: 70px;
    overflow: hidden;
}

.rd-hero__title-text,
.rd-hero__subtitle > p {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, 100%);
    opacity: 0;
    font-weight: 700;
    font-size: 58px;
    text-transform: uppercase;
    color: var(--rd-dark);
    margin: 0;
    white-space: nowrap;
    transition: transform 0.8s cubic-bezier(.4, 0, .2, 1), opacity 0.8s ease;
}

.rd-hero__title-text--active,
.rd-hero__subtitle > p.rd-hero__title-text--active {
    transform: translate(-50%, 0);
    opacity: 1;
}

.rd-hero__title-text--exit,
.rd-hero__subtitle > p.rd-hero__title-text--exit {
    transform: translate(-50%, -100%);
    opacity: 0;
}

/* Первый текст активируется через JS при инициализации */

/* ===================== */
/* --- TICKER/MARQUEE -- */
/* ===================== */
.rd-ticker-wrap {
    position: relative;
    z-index: 5;
    width: 100%;
}

.rd-ticker {
    background: rgba(245, 247, 249, 0.75);
    padding: 18px 0;
    margin: 0 -5%;
    transform: rotate(-4.64deg);
}

.rd-ticker__track {
    display: flex;
    gap: 32px;
    animation: ticker-scroll 30s linear infinite;
    width: max-content;
    align-items: center;
}

.rd-ticker__item {
    font-family: var(--rd-font-display);
    font-weight: 700;
    font-size: 30px;
    text-transform: uppercase;
    color: var(--rd-purple);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 32px;
}

.rd-ticker__item::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rd-dark);
    flex-shrink: 0;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===================== */
/* --- SECTION TITLE --- */
/* ===================== */
.rd-section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 60px;
    padding-top: 96px;
    position: relative;
}

.rd-section-title__text {
    font-family: var(--rd-font-mono);
    font-weight: 700;
    font-size: 80px;
    text-transform: uppercase;
    margin: 0;
    color: var(--rd-light);
    line-height: 1;
    position: relative;
    z-index: 1;
}

/* Контейнер с эффектом переплетения кольца и текста */
.rd-section-title--weave {
    position: relative;
    width: 337px;
    height: 64px;
}

.rd-section-title--weave .rd-section-title__text-back,
.rd-section-title--weave .rd-section-title__text-front {
    position: absolute;
    top: 0;
    left: 0;
    font-family: var(--rd-font-mono);
    font-weight: 700;
    font-size: 80px;
    text-transform: uppercase;
    margin: 0;
    color: var(--rd-light);
    line-height: 0.8;
    height: 64px;
    overflow: hidden;
    white-space: nowrap;
}

/* Задний слой — правая часть текста (под кольцом) */
.rd-section-title--weave .rd-section-title__text-back {
    z-index: 1;
    clip-path: inset(0 0 0 166px);
}

/* Передний слой — левая часть текста (над кольцом) */
.rd-section-title--weave .rd-section-title__text-front {
    z-index: 3;
    clip-path: inset(0 171px 0 0);
}

/* Кольцо — между слоями */
.rd-section-title__ring {
    position: absolute;
    width: 250px;
    height: auto;
    top: -50px;
    left: 53px;
    z-index: 2;
    pointer-events: none;
}

.rd-section-title__star {
    position: absolute;
    width: 262px;
    height: 223px;
    max-width: none;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
}

.rd-section-title__subtitle {
    font-weight: 400;
    font-size: 18px;
    color: var(--rd-light);
    text-align: center;
    margin-bottom: 8px;
}

/* ===================== */
/* --- SERVICES ---      */
/* ===================== */
.rd-services {
    background: var(--rd-dark);
    padding-bottom: 120px;
    position: relative;
    overflow: hidden;
}

.rd-services .rd-section-title {
    margin-bottom: 153px;
}

.rd-services__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: url('img/redesign/bg/rd-services__bg.webp') no-repeat center top / 100% auto;
}

.rd-services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.rd-service-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--rd-purple) 0%, var(--rd-purple-dark) 100%);
    min-height: 262px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.rd-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(151, 51, 255, 0.3);
}

.rd-service-card__ellipses {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background: url('img/redesign/card-ellipses.svg') no-repeat center / 100% 100%;
}

.rd-service-card__name {
    font-weight: 600;
    font-size: 29px;
    line-height: 1;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.rd-service-card__link {
    font-weight: 500;
    font-size: 16px;
    color: var(--rd-light);
    position: relative;
    z-index: 1;
    opacity: 0.8;
}

.rd-service-card--cta {
    background: var(--rd-dark);
    border: 1px solid var(--rd-lime);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rd-service-card--cta .rd-service-card__name {
    font-family: var(--rd-font-mono);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    color: var(--rd-lime);
    text-align: center;
    margin-bottom: 0;
}

/* ===================== */
/* --- CASES ---         */
/* ===================== */
.rd-cases {
    background: var(--rd-dark);
    padding-top: 96px;
    padding-bottom: 120px;
}

.rd-cases .rd-section-title {
    padding-top: 0;
    margin-bottom: 153px;
}

.rd-cases .rd-section-title__star {
    top: -66px;
}

.rd-cases__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: url('img/redesign/bg/cases-bg.webp') no-repeat center top / 100% auto;
}

.rd-case-card {
    display: flex;
    background: var(--rd-light);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 16px;
    min-height: 300px;
    transition: transform 0.3s;
}

.rd-case-card:hover {
    transform: translateY(-4px);
}

.rd-case-card__image {
    width: 504px;
    flex-shrink: 0;
}

.rd-case-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rd-case-card__content {
    flex: 1;
    padding: 40px 80px 40px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--rd-dark);
}

.rd-case-card__title {
    font-weight: 700;
    font-size: 26px;
    margin-bottom: 20px;
    color: var(--rd-dark);
}

.rd-case-card__desc {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5;
    color: var(--rd-dark);
    margin-bottom: 24px;
}

.redesign-page .rd-case-card__link {
    font-weight: 500;
    font-size: 16px;
    color: var(--rd-purple);
}

.rd-cases__more {
    text-align: center;
    margin-top: 32px;
}

/* ===================== */
/* --- REELS ---         */
/* ===================== */
.rd-reels {
    background: var(--rd-dark) url('img/redesign/bg/rd-reels__bg.webp') no-repeat center center / 90% 100%;
    padding-bottom: 120px;
}

.rd-reels__title {
    margin-bottom: 56px;
}

.rd-reels .rd-section-title__star {
    width: 204px;
    height: 218px;
    top: 20px;
}

.rd-reels__slider-wrap {
    position: relative;
}

.rd-reels-swiper {
    overflow: hidden;
}

.rd-reel-card {
    width: 100%;
    height: 526px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: #2a2a2e;
}

.rd-reel-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rd-reel-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: var(--rd-purple);
    border: 1px solid var(--rd-purple-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    cursor: pointer;
    transition: transform 0.2s;
    padding: 0;
}

.rd-reel-card__play:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.rd-reel-card__play svg {
    width: 16px;
    height: 20px;
    flex-shrink: 0;
}

/* Arrow navigation */
.rd-reels__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: none;
    padding: 0;
    cursor: pointer;
    z-index: 2;
    transition: none;
}

.rd-reels__arrow svg {
    display: block;
    width: 48px;
    height: 48px;
}

.rd-reels__arrow-bg {
    fill: white;
    transition: fill 0.25s;
}

.rd-reels__arrow-icon {
    stroke: var(--rd-dark);
    transition: stroke 0.25s;
}

.rd-reels__arrow:hover .rd-reels__arrow-bg {
    fill: var(--rd-purple);
}

.rd-reels__arrow:hover .rd-reels__arrow-icon {
    stroke: var(--rd-light);
}

.rd-reels__arrow--prev {
    left: -72px;
}

.rd-reels__arrow--next {
    right: -72px;
}

.rd-reels__arrow.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* Pagination */
.rd-reels__pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 40px;
}

.rd-reels__pagination .swiper-pagination-bullet {
    width: 40px;
    height: 4px;
    border-radius: 4px;
    background: var(--rd-light);
    opacity: 1;
    margin: 0;
}

.rd-reels__pagination .swiper-pagination-bullet-active {
    background: var(--rd-purple);
}

/* ===================== */
/* --- PARTNERS ---      */
/* ===================== */
.rd-partners {
    background: var(--rd-dark) url('img/redesign/bg/rd-partners__bg.webp') no-repeat center top / 100% auto;
    padding-top: 96px;
    padding-bottom: 120px;
}

.rd-partners__title {
    flex-direction: column;
    padding-top: 0;
    margin-bottom: 48px;
}

.rd-partners__title .rd-section-title__subtitle {
    font-family: var(--rd-font-mono);
    font-weight: 700;
    font-size: 28px;
    text-transform: uppercase;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.rd-partners .rd-section-title__star {
    width: 251px;
    height: 206px;
    top: -50px;
}

.rd-partners__grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rd-partners__row {
    display: flex;
    gap: 16px;
}

.rd-partner-card {
    background: var(--rd-light);
    border-radius: 16px;
    height: 150px;
    width: 192px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.rd-partner-card--wide {
    width: 400px;
}

.rd-partner-card img {
    max-width: 100%;
    max-height: 90%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 1s;
}

.rd-partner-card:hover img {
    filter: none;
}

/* Специальное правило для 4-го логотипа (герб) с blend mode */
.rd-partners__row:first-child .rd-partner-card:nth-child(4) img {
    max-width: 100%;
    max-height: 100%;
    mix-blend-mode: darken;
}

/* Composite logos (multi-part SVGs) */
.rd-partner-logo-composite {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rd-partner-logo-composite img {
    max-width: none;
    filter: grayscale(100%);
    transition: all 1s;
}

.rd-partner-card:hover .rd-partner-logo-composite img {
    filter: none;
}

/* Минкультуры: герб внизу + текст вверху */
.rd-partner-logo-composite--minkult {
    width: 91px;
    height: 112px;
}

.rd-partner-logo-composite--minkult .rd-partner-logo-composite__top {
    position: absolute;
    top: 0;
    left: 22.21%;
    width: 55.58%;
    height: auto;
}

.rd-partner-logo-composite--minkult .rd-partner-logo-composite__bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
}

/* Ареал: left icon + right text */
.rd-partner-logo-composite--areal {
    width: 137px;
    height: 38px;
}

.rd-partner-logo-composite--areal .rd-partner-logo-composite__left {
    position: absolute;
    top: 0;
    left: 0;
    width: 34px;
    height: auto;
}

.rd-partner-logo-composite--areal .rd-partner-logo-composite__right {
    position: absolute;
    top: 19%;
    left: 35%;
    width: 89px;
    height: auto;
}

/* ===================== */
/* --- CONTACTS ---      */
/* ===================== */
.rd-contacts {
    background: var(--rd-dark) url('img/redesign/bg/rd-contacts__bg.webp') no-repeat center top / 100% auto;
    padding-bottom: 120px;
}

.rd-contacts .rd-section-title {
    margin-bottom: 119px;
}

/* Weave: "КОНТАКТЫ" — ring flipped horizontally */
.rd-contacts__weave {
    width: 443px;
    height: 64px;
}

.rd-contacts__weave .rd-section-title__text-back {
    clip-path: inset(0 0 0 216px);
}

.rd-contacts__weave .rd-section-title__text-front {
    clip-path: inset(0 227px 0 0);
}

.rd-contacts__weave .rd-section-title__ring {
    width: 250px;
    top: -50px;
    left: 69px;
    transform: scaleX(-1);
}

.rd-contacts__card {
    background: var(--rd-light);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    height: 480px;
}

.rd-contacts__info {
    flex: 1;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--rd-dark);
}

.rd-contacts__address {
    font-weight: 700;
    font-size: 24px;
    color: var(--rd-dark);
    margin-bottom: 16px;
}

.rd-contacts__schedule {
    font-weight: 400;
    font-size: 16px;
    color: var(--rd-dark);
    margin-bottom: 32px;
}

.redesign-page .rd-contacts__email {
    font-weight: 700;
    font-size: 24px;
    color: var(--rd-purple);
    display: block;
    margin-bottom: 16px;
}

.redesign-page .rd-contacts__phone {
    font-weight: 700;
    font-size: 24px;
    color: var(--rd-purple);
    display: block;
}

.rd-contacts__socials {
    display: flex;
    gap: 8px;
}

.rd-contacts__social {
    width: 44px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rd-contacts__social img {
    width: 100%;
    height: 100%;
}

.rd-contacts__map {
    width: 711px;
    flex-shrink: 0;
    position: relative;
}

.rd-contacts__map > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.rd-contacts__pin {
    position: absolute;
    width: 53px;
    height: 73px;
    left: 314px;
    top: 195px;
    z-index: 2;
}

.rd-contacts__pin-shape {
    width: 100%;
    height: 100%;
}

.rd-contacts__pin-logo {
    position: absolute;
    left: 20.75%;
    right: 20.75%;
    top: 10px;
    width: auto;
    height: auto;
    max-width: 58.5%;
}

/* ===================== */
/* --- CTA FORM ---      */
/* ===================== */
.rd-cta {
    background: var(--rd-dark) url('img/redesign/bg/rd-cta__bg.webp') no-repeat center top / 100% auto;
    padding: 96px 0 128px;
    min-height: 810px;
    position: relative;
}

.rd-cta__cosmonaut {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 896px;
    height: 522px;
    object-fit: contain;
    object-position: left bottom;
    pointer-events: none;
    z-index: 1;
}

.rd-cta .rd-container {
    z-index: 2;
}

.rd-cta__inner {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.rd-cta__left {
    flex: 1;
}

.rd-cta__heading {
    font-family: var(--rd-font-mono);
    font-weight: 700;
    font-size: 35px;
    line-height: 1.5;
    text-transform: uppercase;
    margin-bottom: 24px;
    max-width: 787px;
}

.rd-cta__subheading {
    font-weight: 500;
    font-size: 25px;
    line-height: 1.5;
}

.rd-cta__form {
    width: 504px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rd-cta__fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rd-form-field {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-bottom: 1px solid var(--rd-light);
    height: 53px;
    padding: 0 20px;
    font-family: var(--rd-font-display);
    font-weight: 500;
    font-size: 16px;
    color: var(--rd-light);
    width: 100%;
    outline: none;
    transition: border-color 0.2s;
}

.rd-form-field::placeholder {
    color: var(--rd-light);
    opacity: 0.5;
}

.rd-form-field:focus {
    border-bottom-color: var(--rd-lime);
}

.rd-form-field--textarea {
    height: 117px;
    min-height: 117px;
    padding: 20px;
    resize: vertical;
}

.rd-form-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
}

.rd-form-checkbox input {
    display: none;
}

.rd-form-checkbox__box {
    width: 20px;
    height: 20px;
    border: 2px solid var(--rd-light);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.rd-form-checkbox input:checked + .rd-form-checkbox__box {
    background: var(--rd-lime);
    border-color: var(--rd-lime);
}

.rd-form-checkbox input:checked + .rd-form-checkbox__box::after {
    content: '\2713';
    position: absolute;
    top: -2px;
    left: 2px;
    color: var(--rd-dark);
    font-size: 14px;
    font-weight: 700;
}

.rd-form-checkbox__text a {
    color: var(--rd-lime);
    text-decoration: underline;
}

/* ===================== */
/* --- FOOTER ---        */
/* ===================== */
.rd-footer {
    background: var(--rd-purple);
    padding: 30px 0;
}

.rd-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rd-footer__logo img {
    aspect-ratio: 400/78;
    width: 400px;
    max-width: 50vw;
    height: auto;
    max-height: 78px;
}

.rd-footer__links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.rd-footer__link {
    font-weight: 700;
    font-size: 16px;
    color: var(--rd-light);
}

.rd-footer__copy {
    font-weight: 400;
    font-size: 14px;
    color: var(--rd-light);
    text-align: right;
    margin-top: 8px;
}

/* ===================== */
/* --- SIDE NAV ---      */
/* ===================== */
.rd-side-nav {
    position: fixed;
    right: 24px;
    bottom: 40px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rd-side-nav__item {
    width: 44px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: transform 0.2s;
}

.rd-side-nav__item:hover {
    opacity: 1;
    transform: scale(1.1);
}

.rd-side-nav__item img {
    width: 100%;
    height: 100%;
}


/* ===================== */
/* --- STARS BG ---      */
/* ===================== */
.rd-stars-bg {
    position: absolute;
    inset: 0;
    background-image: url('img/redesign/stars.png');
    background-repeat: repeat;
    background-size: 1600px auto;
    opacity: 0.5;
    pointer-events: none;
}

/* ===================== */
/* --- RESPONSIVE ---    */
/* ===================== */
@media (max-width: 1200px) {
    .rd-services__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .rd-partners__row {
        flex-wrap: wrap;
    }

    .rd-partner-card {
        flex: 1 1 auto;
        min-width: 140px;
    }

    .rd-partner-card--wide {
        width: auto;
        flex: 2 1 auto;
    }
}

/* --- Burger Menu --- */
.rd-burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 101;
}

.rd-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--rd-dark);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.rd-burger.is-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.rd-burger.is-open span:nth-child(2) {
    opacity: 0;
}

.rd-burger.is-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.rd-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
}

.rd-mobile-menu.is-open {
    display: block;
}

.rd-mobile-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.rd-mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--rd-light);
    padding: 24px;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s;
    overflow-y: auto;
}

.rd-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
}

.rd-mobile-menu__logo img {
    width: 163.5px;
    height: 32px;
}

.rd-mobile-menu__close {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rd-dark) !important;
}

.rd-mobile-menu__close:hover {
    opacity: 0.6;
}

.rd-mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
    flex-shrink: 0;
}

.rd-mobile-menu__link {
    font-family: var(--rd-font-mono);
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    color: var(--rd-dark) !important;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
}

.rd-mobile-menu__link:hover {
    color: var(--rd-purple) !important;
}

.rd-mobile-menu__buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* --- Service Modal --- */
.rd-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.rd-modal.is-open {
    display: flex;
}

.rd-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.rd-modal__card {
    position: relative;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-gutter: stable;
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    z-index: 1;
}

.rd-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 2;
}

.rd-modal__close svg {
    width: 18px;
    height: 18px;
}

.rd-modal__close:hover {
    opacity: 0.6;
}

.rd-modal__image {
    width: 100%;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--rd-purple) 0%, var(--rd-purple-dark) 100%);
    position: relative;
}

.rd-modal__image .rd-service-card__ellipses {
    position: absolute;
    inset: 0;
}

.rd-modal__body {
    padding: 32px 0 40px;
}

.rd-modal__title {
    font-family: var(--rd-font-display);
    font-weight: 700;
    font-size: 26px;
    line-height: 1.3;
    color: var(--rd-dark);
    margin-bottom: 24px;
}

.rd-modal__desc {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: var(--rd-font-display);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.6;
    color: var(--rd-dark);
}

.rd-modal__desc p {
    margin: 0;
}

.rd-modal__badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rd-modal__price {
    width: 100%;
    background: var(--rd-purple);
    border-radius: 16px;
    padding: 16px;
    text-align: right;
    font-family: var(--rd-font-display);
    font-weight: 700;
    font-size: 32px;
    color: var(--rd-light);
    box-sizing: border-box;
}

.rd-modal__buttons {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.rd-modal__buttons .rd-btn--outline-purple {
    flex: 1 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 17px 22px 18px;
    border-radius: 40px;
    border: 1px solid var(--rd-purple);
    background: transparent;
    font-family: var(--rd-font-mono);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--rd-purple);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.rd-modal__buttons .rd-btn--outline-purple:hover {
    background: var(--rd-purple);
    color: #fff;
}

.rd-modal__buttons .rd-btn--lime-modal {
    white-space: nowrap;
    flex: 1 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 17px 32px 18px;
    border-radius: 40px;
    border: 1px solid var(--rd-dark);
    background: var(--rd-lime);
    font-family: var(--rd-font-mono);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    color: var(--rd-dark);
    text-decoration: none;
    transition: opacity 0.2s;
}

.rd-modal__buttons .rd-btn--lime-modal:hover {
    opacity: 0.85;
}

@media (max-width: 1366px) {
    .rd-burger {
        display: flex;
    }

    .rd-header__links {
        display: none;
    }

    .rd-header__buttons {
        display: none;
    }

    .rd-btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    .rd-hero {
        aspect-ratio: auto;
        min-height: 600px;
        padding-top: 20%;
        padding-bottom: 8%;
        overflow-x: hidden;
        overflow-y: visible;
        width: 100%;
        max-width: 100vw;
    }

    .rd-hero-slider {
        width: 100%;
    }

    .rd-hero-slider__slide {
        object-position: center center;
        width: 100%;
    }

    .rd-hero__title {
        width: 100vw;
    }

    .rd-hero__title-logo {
        width: 380px;
    }

    .rd-hero__title-text,
    .rd-hero__subtitle > p {
        font-size: 32px;
    }

    .rd-hero__subtitle {
        height: 45px;
        width: 100%;
        max-width: 100%;
    }

    .rd-ticker {
        padding: 20px 0;
    }

    .rd-ticker__item {
        font-size: 24px;
    }

    .rd-services {
        overflow: visible;
    }

    .rd-services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rd-case-card {
        flex-direction: column;
        height: auto;
    }

    .rd-case-card__image {
        width: 100%;
        min-width: auto;
        height: 650px;
    }

    .rd-case-card__content {
        padding: 32px 24px;
    }

    .rd-case-card__title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .rd-case-card__desc {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .rd-cta {
        min-height: auto;
    }

    .rd-cta__cosmonaut {
        display: none;
    }

    .rd-cta__inner {
        flex-direction: column;
    }

    .rd-cta__form {
        width: 100%;
    }

    .rd-contacts__card {
        flex-direction: column;
        height: auto;
    }

    .rd-contacts__info {
        padding: 32px 24px;
    }

    .redesign-page .rd-contacts__phone {
        margin-bottom: 24px;
    }

    .rd-contacts__map {
        width: 100%;
        height: 300px;
    }

    .rd-reels__arrow--prev {
        left: -56px;
    }

    .rd-reels__arrow--next {
        right: -56px;
    }
}

@media (max-width: 768px) {
    .rd-services {
        overflow: visible;
    }

    .rd-services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rd-service-card {
        min-height: 200px;
    }

    .rd-reels__arrow {
        display: none;
    }

    .rd-footer__inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .rd-footer__links {
        align-items: center;
    }

    .rd-footer__copy {
        text-align: center;
    }

    .rd-side-nav {
        display: none;
    }

    .rd-modal__card {
        width: calc(100% - 32px);
        padding: 32px;
        max-height: 85vh;
    }

    .rd-modal__image {
        height: 200px;
    }

    .rd-modal__body {
        padding: 24px 0 32px;
    }

    .rd-modal__title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .rd-modal__desc {
        font-size: 15px;
        gap: 14px;
    }

    .rd-modal__price {
        font-size: 26px;
        padding: 14px;
    }

    .rd-modal__buttons {
        margin-top: 14px;
        gap: 12px;
    }

    .rd-modal__buttons .rd-btn--outline-purple,
    .rd-modal__buttons .rd-btn--lime-modal {
        font-size: 13px;
        padding: 14px 20px;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .rd-header {
        padding: 8px 12px;
        width: calc(100% - 24px);
    }

    .rd-mobile-menu__panel {
        max-width: 100%;
        padding: 20px;
    }

    .rd-mobile-menu__header {
        margin-bottom: 32px;
    }

    .rd-mobile-menu__link {
        font-size: 18px;
    }

    .rd-hero {
        aspect-ratio: auto;
        height: auto;
        min-height: 100vh;
        padding: 80px 16px 80px;
        gap: 100px;
        overflow: hidden;
        width: 100%;
        max-width: 100vw;
        justify-content: space-between;
    }

    .rd-hero__title {
        margin-top: auto;
    }

    .rd-hero-slider {
        width: 100vw;
        height: 100%;
        left: 50%;
        transform: translateX(-50%);
    }

    .rd-hero-slider__slide {
        object-position: center center;
        width: 100%;
        height: 100% !important;
    }

    .rd-hero__title {
        gap: 16px;
    }

    .rd-hero__title-logo {
        width: 280px;
        height: 65px !important;
    }

    .rd-hero__title-text,
    .rd-hero__subtitle > p {
        font-size: 20px;
    }

    .rd-hero__subtitle {
        height: 30px;
        width: 100%;
        max-width: 100%;
    }

    .rd-ticker {
        padding: 16px 0;
        margin: 0 -10%;
    }

    .rd-ticker__item {
        font-size: 18px;
        gap: 20px;
    }

    .rd-ticker__item::after {
        width: 6px;
        height: 6px;
    }

    .rd-ticker__track {
        gap: 20px;
    }

    .rd-services__grid {
        grid-template-columns: 1fr;
    }

    .rd-section-title {
        padding-top: 48px;
        margin-bottom: 32px;
    }

    .rd-section-title__text {
        font-size: 56px;
    }

    .rd-section-title--weave .rd-section-title__text-back,
    .rd-section-title--weave .rd-section-title__text-front {
        font-size: 56px;
        height: 45px;
    }

    .rd-section-title--weave .rd-section-title__text-back {
        clip-path: inset(0 0 0 116px);
    }

    .rd-section-title--weave .rd-section-title__text-front {
        clip-path: inset(0 120px 0 0);
    }

    .rd-section-title--weave .rd-section-title__ring {
        width: 175px;
        top: -35px;
    }

    .rd-contacts__weave .rd-section-title__text-back,
    .rd-contacts__weave .rd-section-title__text-front {
        height: 45px;
    }

    .rd-contacts__weave .rd-section-title__text-back {
        clip-path: inset(0 0 0 151px);
    }

    .rd-contacts__weave .rd-section-title__text-front {
        clip-path: inset(0 159px 0 0);
    }

    .rd-contacts__weave .rd-section-title__ring {
        width: 175px;
        top: -35px;
    }

    .rd-case-card__image {
        height: 200px;
    }

    .rd-case-card__content {
        padding: 24px 20px;
    }

    .rd-case-card__title {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .rd-case-card__desc {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .rd-partners__title {
        text-align: center;
    }

    .rd-partners__title .rd-section-title__text {
        text-align: center;
    }

    .rd-partners__title .rd-section-title__subtitle {
        text-align: center;
    }

    .rd-contacts__info {
        padding: 24px 20px;
    }

    .rd-contacts__address {
        font-size: 20px;
    }

    .redesign-page .rd-contacts__email,
    .redesign-page .rd-contacts__phone {
        font-size: 20px;
    }

    .redesign-page .rd-contacts__phone {
        margin-bottom: 20px;
    }

    .rd-contacts__map {
        height: 250px;
    }

    .rd-modal__card {
        padding: 32px;
        border-radius: 16px;
        max-height: 90vh;
    }

    .rd-modal__image {
        height: 160px;
    }

    .rd-modal__body {
        padding: 20px 0 24px;
    }

    .rd-modal__title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .rd-modal__desc {
        font-size: 14px;
        gap: 12px;
    }

    .rd-modal__price {
        font-size: 22px;
        padding: 12px;
    }

    .rd-modal__buttons {
        flex-direction: column;
        margin-top: 12px;
        gap: 10px;
    }

    .rd-modal__buttons .rd-btn--outline-purple,
    .rd-modal__buttons .rd-btn--lime-modal {
        font-size: 12px;
        padding: 12px 16px;
        white-space: nowrap;
        width: 100%;
    }
}

/* ===== CMS PLUGIN FIXES FOR HERO SLIDER ===== */


/* Применяем оригинальные стили .rd-hero-slider__slide ко всем img */
.rd-hero-slider img,
.rd-hero-slider .rd-hero-slider__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center top;
    visibility: hidden;
    z-index: 0;
}

/* Первое изображение активно по умолчанию */
.rd-hero-slider img:first-of-type,
.rd-hero-slider .rd-hero-slider__slide:first-of-type {
    visibility: visible;
    z-index: 1;
}

/* Активный слайд - просто как в оригинале */
.rd-hero-slider img.rd-hero-slider__slide--active,
.rd-hero-slider .rd-hero-slider__slide.rd-hero-slider__slide--active {
    visibility: visible;
    z-index: 1;
}

/* ===================== */
/* --- COOKIE CONSENT -- */
/* ===================== */
.rd-cookie {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    background: #fff;
    border: 1px solid #000;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 395px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: rd-cookie-slide-in 0.4s ease-out;
}

.rd-cookie.is-hidden {
    display: none;
}

.rd-cookie__text {
    font-family: var(--rd-font-display);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    color: var(--rd-dark);
}

.rd-cookie__text p {
    margin: 0;
}

.redesign-page .rd-cookie__link {
    color: var(--rd-dark);
    text-decoration: underline;
    text-decoration-skip-ink: none;
}

.redesign-page .rd-cookie__link:hover {
    color: var(--rd-purple);
}

.rd-cookie__btn {
    font-family: var(--rd-font-mono);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    color: var(--rd-dark);
    background: var(--rd-lime);
    border: 1px solid var(--rd-dark);
    border-radius: 40px;
    padding: 17px 32px 18px;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.3s, color 0.3s;
    font-variation-settings: 'wdth' 100;
}

.rd-cookie__btn:hover {
    background: var(--rd-dark);
    color: var(--rd-lime);
}

@keyframes rd-cookie-slide-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    .rd-cookie {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
}

/* CMS тексты используют оригинальные стили .rd-hero__title-text выше (строки 281-304) */
@media (max-width: 577px) {
    .rd-section-title--weave {
        width: 235px;
    }

    .rd-section-title--weave.rd-contacts__weave {
        width: 313px;
    }
}