:root {
    --color-dark: #00091a;
    --color-pink: #f569aa;
    --color-gray: #aab0bd;
    --color-bg-input: #f5f6f7;
    --grid-gap: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Manrope", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fff;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

/* Сетка и контейнер */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 120px;
    max-width: 100%;
}

@media (min-width: 1600px) {
    .container {
        max-width: 1680px;
        padding: 0 40px;
    }
}

/* Хедер */
.header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 240px);
    max-width: 1440px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    opacity: 0;
    animation: fadeIn 1s forwards 0s;
}

@media (min-width: 1600px) {
    .header {
        width: calc(100% - 80px);
    }
}

.header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 101;
    text-decoration: none;
}

.icon-logo {
    width: 140px;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

.icon-swap {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
}

.icon-badge {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
}

.icon-social {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

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

/* Эффект ссылок и кнопок Awwwards */
.mask-link {
    position: relative;
    overflow: hidden;
    height: 24px;
    line-height: 24px;
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 600;
    font-size: 16px;
}

.mask-link .text-primary,
.mask-link .text-secondary {
    transition:
        transform 0.5s cubic-bezier(0.76, 0, 0.24, 1),
        opacity 0.5s;
    display: block;
    height: 24px;
    line-height: 24px;
}

.mask-link .text-secondary {
    position: absolute;
    top: 100%;
    left: 0;
    color: var(--color-pink);
}

.mask-link:hover .text-primary {
    transform: translateY(-100%) scale(0.9);
    opacity: 0;
}

.mask-link:hover .text-secondary {
    transform: translateY(-100%);
}

/* Кнопка в хедере */
.btn-dark {
    background: var(--color-dark);
    border-radius: 100px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    text-decoration: none;
}

.btn-dark .mask-link {
    color: #fff;
}

.btn-dark .mask-link .text-secondary {
    color: var(--color-pink);
}

/* Гамбургер меню */
.hamburger {
    display: none;
    position: relative;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
    flex-shrink: 0;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2.5px;
    border-radius: 2px;
    background-color: var(--color-dark);
    transition:
        transform 0.3s cubic-bezier(0.76, 0, 0.24, 1),
        opacity 0.3s,
        top 0.3s cubic-bezier(0.76, 0, 0.24, 1),
        bottom 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}

.hamburger span:nth-child(1) {
    top: 0;
}
.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}
.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.open span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
}
.hamburger.open span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* Мобильное полноэкранное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu h4 {
    font-size: 32px;
    font-weight: 500;
}

.mobile-menu h4 a {
    text-decoration: none;
    color: var(--color-dark);
}

/* Первый экран */
.hero {
    height: 100vh;
    padding-top: 140px; /* Отступ под хедер */
    padding-bottom: 10px; /* Фикс: ровно 10px от низа экрана */
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
}

.hero .container {
    height: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: var(--grid-gap);
    width: 100%;
    height: 100%;
    align-items: stretch;
}

.hero-left {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Фикс: распределяет контент, толкая инпут вниз */
    height: 100%;
    z-index: 2;
}

/* Построчные анимации текста */
.line-mask {
    overflow: hidden;
    display: block;
}

.line-mask > span,
.line-mask > div {
    display: inline-block;
    transform: translateY(100%);
    animation: revealText 1.2s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.hero-title {
    color: var(--color-dark);
    font-size: 64px;
    font-weight: 400;
    line-height: 1.1;
}

.title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.icon-inline {
    padding: 20px;
    background: var(--color-dark);
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-inline div {
    width: 32px;
    height: 32px;
    background: #ff0000;
}

.hero-desc {
    color: var(--color-gray);
    font-size: 16px;
    line-height: 1.2;
    max-width: 438px;
    margin-bottom: auto; /* Позволяет описанию держаться ближе к заголовку */
    padding-top: 24px;
}

/* Инпут и кнопка */
.input-group {
    max-width: 438px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.input-label {
    color: var(--color-dark);
    font-size: 16px;
    margin-bottom: 8px;
}

.input-wrapper {
    background: var(--color-bg-input);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.real-input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 24px;
    font-weight: 500;
    color: var(--color-dark);
    width: calc(100% - 40px);
}

.real-input::placeholder {
    color: var(--color-gray);
}

/* Кнопка отправки внутри маски */
.arrow-btn-mask {
    width: 24px;
    height: 24px;
    position: relative;
    overflow: hidden;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.icon-box {
    position: absolute;
    top: 0;
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.primary-icon {
    left: 0;
}
.secondary-icon {
    left: -100%;
}

.arrow-btn-mask:hover .primary-icon {
    transform: translateX(100%);
}
.arrow-btn-mask:hover .secondary-icon {
    transform: translateX(100%);
}

/* Правый медиа-блок */
.hero-right-container {
    position: absolute;
    top: 10px;
    bottom: 10px;
    right: 10px;
    left: calc(50% - (var(--grid-gap) / 2));
    z-index: 1;
}

.hero-right {
    width: 100%;
    height: 100%;
    background-image: url("/assets/img/img_01.png");
    background-size: cover;
    background-position: center;
    border-radius: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(200px) scale(0.6);
    animation: imageReveal 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.badge {
    padding: 24px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-icon {
    width: 24px;
    height: 24px;
}

.badge-text {
    color: var(--color-dark);
    font-size: 16px;
    font-weight: 600;
}

/* Анимации */
@keyframes revealText {
    to {
        transform: translateY(0);
    }
}
@keyframes imageReveal {
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Очередь анимаций появления */
.header {
    animation-delay: 0s;
}
.hero-title .delay-1 {
    animation-delay: 0.3s;
}
.hero-title .delay-2 {
    animation-delay: 0.5s;
}
.hero-title .delay-3 {
    animation-delay: 0.7s;
}
.hero-right {
    animation-delay: 1s;
}
.hero-desc > span {
    animation-delay: 1.4s;
}
.input-group > div {
    animation-delay: 1.7s;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    .header {
        width: calc(100% - 80px);
    }
    .hero-title {
        font-size: 48px;
    }
    .icon-logo {
        width: 120px;
    }
}

@media (max-width: 720px) {
    .hero {
        height: auto;
        padding: 140px 0 40px;
        overflow: visible;
        display: block;
    }
    .hero .container,
    .hero-grid {
        height: auto;
    }
    .container {
        padding: 0 20px;
    }

    .header {
        width: calc(100% - 40px);
        left: 20px;
        transform: none;
        top: 12px;
        padding: 16px 20px;
    }

    .nav {
        display: none;
    }
    .hamburger {
        display: flex;
    }

    .icon-logo {
        width: 110px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-left {
        grid-column: span 1;
        gap: 30px;
        height: auto;
        justify-content: flex-start;
    }

    .hero-desc {
        font-size: 12px;
        max-width: 100%;
        padding-top: 0;
    }
    .input-group {
        max-width: 100%;
    }

    .hero-right-container {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        width: 100%;
        height: 450px;
    }
    .hero-right {
        transform: translateY(50px) scale(0.9);
    }
}

@media (max-width: 450px) {
    .hero-title {
        font-size: 36px;
    }
    .icon-logo {
        width: 100px;
    }
    .icon-inline {
        padding: 12px;
    }
    .icon-inline div {
        width: 24px;
        height: 24px;
    }
    .icon-swap {
        width: 24px;
        height: 24px;
    }
    .icon-badge {
        width: 20px;
        height: 20px;
    }
    .icon-box {
        width: 20px;
        height: 20px;
    }
    .arrow-btn-mask {
        width: 20px;
        height: 20px;
    }
    .hero-right-container {
        height: 380px;
    }
    .hero-right {
        border-radius: 30px;
    }
    .real-input {
        font-size: 18px;
    }
    .input-wrapper {
        padding: 16px;
    }
}

@media (max-width: 320px) {
    .hero-title {
        font-size: 28px;
    }
}

/* --- Обновленная секция "О нас" с горизонтальным скроллом --- */
.about-section {
    height: 250vh; /* Высота задает длительность фиксации экрана при скролле */
    position: relative;
    background: #fff;
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.about-grid {
    position: relative;
    display: flex;
    align-items: stretch; /* Растягивает правый блок по высоте левого */
    width: 100%;
    gap: 20px;
}

.about-left {
    width: 50%; /* Занимает ровно половину сетки */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
}

.about-title {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-dark);
}

.about-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: 100%;
}

.about-column-sub {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Заглушки под будущие иконки */
.card-icon-wrapper {
    width: 32px; /* Редактируй базовый размер тут */
    height: 32px;
    display: none; /* Пока скрыты, при добавлении svg переключишь на flex/block */
    margin-bottom: 8px;
}

/* Карточки */
.about-card {
    background: var(--color-bg-input);
    border-radius: 32px;
    padding: 24px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    clip-path: inset(0 100% 100% 0);
}

.card-content {
    opacity: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-title {
    font-size: 24px;
    font-weight: 500;
    color: var(--color-dark);
    line-height: 1.1;
}

.card-desc {
    font-size: 16px;
    color: var(--color-gray);
    line-height: 1.3;
}

/* Теги */
.about-tags {
    display: flex;
    gap: 4px;
}

.tag-item {
    background: var(--color-bg-input);
    border-radius: 12px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    clip-path: inset(0 100% 100% 0);
}

.tag-item span {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-dark);
    opacity: 0;
}

/* Правый блок: Пробивает сетку до правого края экрана */
.about-right {
    position: absolute;
    left: calc(
        50% + 10px
    ); /* Начинается ровно со второй половины сетки + гэп */
    right: calc((100vw - 100%) / -2); /* Фикс: уходит за правый край экрана */
    height: 100%; /* 100% высоты от .about-grid (левого контейнера) */
    overflow: hidden;
}

.media-track {
    display: flex;
    gap: 4px;
    height: 100%;
    width: max-content;
    will-change: transform;
}

.media-holder {
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 24px;
    opacity: 0;
    transform: scale(0.6);
    transition:
        transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 1s ease;
}

/* --- CSS Триггеры анимации при появлении --- */
.about-section.active .about-title .anim-delay-1 {
    animation: revealText 1.2s cubic-bezier(0.76, 0, 0.24, 1) forwards 0.1s;
}
.about-section.active .about-title .anim-delay-2 {
    animation: revealText 1.2s cubic-bezier(0.76, 0, 0.24, 1) forwards 0.3s;
}

.about-section.active .anim-box-1 {
    animation: growBox 1s cubic-bezier(0.76, 0, 0.24, 1) forwards 0.4s;
}
.about-section.active .anim-box-2 {
    animation: growBox 1s cubic-bezier(0.76, 0, 0.24, 1) forwards 0.6s;
}

.about-section.active .anim-box-1 .card-content {
    animation: fadeIn 0.5s ease forwards 1.1s;
}
.about-section.active .anim-box-2 .card-content {
    animation: fadeIn 0.5s ease forwards 1.3s;
}

.about-section.active .anim-tag-1 {
    animation: growBox 0.6s cubic-bezier(0.76, 0, 0.24, 1) forwards 1.2s;
}
.about-section.active .anim-tag-1 span {
    animation: fadeIn 0.4s ease forwards 1.5s;
}
.about-section.active .anim-tag-2 {
    animation: growBox 0.6s cubic-bezier(0.76, 0, 0.24, 1) forwards 1.3s;
}
.about-section.active .anim-tag-2 span {
    animation: fadeIn 0.4s ease forwards 1.6s;
}

/* Анимация проявления видео объектов */
.about-section.active .media-holder {
    opacity: 1;
    transform: scale(1);
}
.about-section.active .anim-media-1 {
    transition-delay: 0.5s;
}
.about-section.active .anim-media-2 {
    transition-delay: 0.6s;
}
.about-section.active .anim-media-3 {
    transition-delay: 0.7s;
}
.about-section.active .anim-media-4 {
    transition-delay: 0.8s;
}
.about-section.active .anim-media-5 {
    transition-delay: 0.9s;
}

@keyframes growBox {
    0% {
        clip-path: inset(0 100% 100% 0);
    }
    45% {
        clip-path: inset(0 0 100% 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}

/* --- Адаптив для 2 экрана --- */
@media (max-width: 992px) {
    .about-grid {
        flex-direction: column;
        align-items: stretch;
    }
    .about-left {
        width: 100%;
    }
    .about-right {
        position: relative;
        left: 0;
        right: auto;
        width: calc(100% + 80px); /* Вынос за края при тач-адаптиве */
        margin-left: -40px;
        height: 65vh; /* Фикс: Занимает большую часть экрана (60-70vh) */
        overflow-x: auto;
        padding: 0 40px;
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
    }
    .about-right::-webkit-scrollbar {
        display: none; /* Прячем дефолтный бар на мобилках */
    }
    .media-track {
        transform: none !important; /* Отключаем JS скролл на мобильных устройствах */
    }
}

@media (max-width: 720px) {
    .about-section {
        height: auto !important; /* Убираем жесткий десктопный скролл-трек */
    }
    .sticky-wrapper {
        position: relative;
        height: auto;
        display: block;
    }
    .about-blocks {
        grid-template-columns: 1fr;
    }
    .about-right {
        width: calc(100% + 40px);
        margin-left: -20px;
        padding: 0 20px;
        margin-top: 32px;
    }
    /* Кусочек для редактирования размеров будущих иконок на мобилках: */
    .card-icon-wrapper {
        width: 24px;
        height: 24px;
    }
}

/* --- Секция "О платформе" --- */
.platform-section {
    padding: 120px 0;
    background: #fff;
}

.platform-title {
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-dark);
    margin-bottom: 40px;
}

.platform-grid-wrapper {
    display: grid;
    grid-template-columns: 4fr 8fr; /* Сетка 4 колонки слева, 8 справа */
    gap: 40px;
}

/* Левая навигация */
.platform-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    position: relative;
    padding: 20px;
    border-radius: 24px;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.3s ease;
}

.nav-item .mask-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gray);
    position: relative;
    z-index: 2;
}

.nav-item.active .mask-link {
    color: var(--color-dark);
}

.nav-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    z-index: 1;
    border-radius: 24px;
}

.nav-item.active .nav-progress {
    background: var(--color-bg-input); /* Темный оттенок заполнения */
    animation: progressFill 5s linear forwards;
}

@keyframes progressFill {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

/* --- Новая Flexbox Bento-сетка --- */
.platform-bento {
    height: 400px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.bento-row {
    display: flex;
    gap: 4px;
    width: 100%;
    transition: height 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

.bento-block {
    position: relative;
    background: #f5f6f7;
    border-radius: 32px;
    overflow: hidden;
    /* Плавное изменение ширины */
    transition:
        flex-grow 0.6s cubic-bezier(0.76, 0, 0.24, 1),
        flex-basis 0.6s cubic-bezier(0.76, 0, 0.24, 1),
        background 0.6s ease;
}

/* --- Логика переключения состояний через Flex --- */

/* Состояние 1: Активен 1 (Ряд 1 высокий, Блок 1 широкий) */
.platform-bento.state-1 .bento-row:nth-child(1) {
    height: calc(100% - 32px - 4px);
}
.platform-bento.state-1 .bento-row:nth-child(2) {
    height: 32px;
}
.platform-bento.state-1 [data-block="1"] {
    flex-grow: 1;
    flex-basis: 0%;
}
.platform-bento.state-1 [data-block="2"] {
    flex-grow: 0;
    flex-basis: 32px;
}
.platform-bento.state-1 [data-block="3"] {
    flex-grow: 1;
    flex-basis: 0%;
}
.platform-bento.state-1 [data-block="4"] {
    flex-grow: 0;
    flex-basis: 32px;
}

/* Состояние 2: Активен 2 (Ряд 1 высокий, Блок 2 широкий) */
.platform-bento.state-2 .bento-row:nth-child(1) {
    height: calc(100% - 32px - 4px);
}
.platform-bento.state-2 .bento-row:nth-child(2) {
    height: 32px;
}
.platform-bento.state-2 [data-block="1"] {
    flex-grow: 0;
    flex-basis: 32px;
}
.platform-bento.state-2 [data-block="2"] {
    flex-grow: 1;
    flex-basis: 0%;
}
.platform-bento.state-2 [data-block="3"] {
    flex-grow: 0;
    flex-basis: 32px;
}
.platform-bento.state-2 [data-block="4"] {
    flex-grow: 1;
    flex-basis: 0%;
}

/* Состояние 3: Активен 3 (Ряд 2 высокий, Блок 3 широкий) */
.platform-bento.state-3 .bento-row:nth-child(1) {
    height: 32px;
}
.platform-bento.state-3 .bento-row:nth-child(2) {
    height: calc(100% - 32px - 4px);
}
.platform-bento.state-3 [data-block="1"] {
    flex-grow: 1;
    flex-basis: 0%;
}
.platform-bento.state-3 [data-block="2"] {
    flex-grow: 0;
    flex-basis: 32px;
}
.platform-bento.state-3 [data-block="3"] {
    flex-grow: 1;
    flex-basis: 0%;
}
.platform-bento.state-3 [data-block="4"] {
    flex-grow: 0;
    flex-basis: 32px;
}

/* Состояние 4: Активен 4 (Ряд 2 высокий, Блок 4 широкий) */
.platform-bento.state-4 .bento-row:nth-child(1) {
    height: 32px;
}
.platform-bento.state-4 .bento-row:nth-child(2) {
    height: calc(100% - 32px - 4px);
}
.platform-bento.state-4 [data-block="1"] {
    flex-grow: 0;
    flex-basis: 32px;
}
.platform-bento.state-4 [data-block="2"] {
    flex-grow: 1;
    flex-basis: 0%;
}
.platform-bento.state-4 [data-block="3"] {
    flex-grow: 0;
    flex-basis: 32px;
}
.platform-bento.state-4 [data-block="4"] {
    flex-grow: 1;
    flex-basis: 0%;
}

/* --- Текст, Mesh и Адаптив остаются прежними --- */
.bento-content {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    bottom: 24px;
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.bento-block.active .bento-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.35s;
}

.mesh-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-color: #f689ee;
    background-image:
        radial-gradient(circle at 0% 0%, #fb91ce 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, #fa81b9 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, #fa469d 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, #f689ee 0%, transparent 50%);
    background-size: 200% 200%;
    animation: meshFlow 8s infinite alternate ease-in-out;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.bento-block.active .mesh-bg {
    opacity: 1;
}

@keyframes meshFlow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

@media (max-width: 992px) {
    .platform-grid-wrapper {
        grid-template-columns: 1fr;
    }
    .platform-bento {
        height: 500px;
    }
}
@media (max-width: 540px) {
    .platform-bento {
        height: 400px;
    }
    .bento-content {
        font-size: 18px;
        top: 16px;
        left: 16px;
        right: 16px;
    }
}

/* --- Секция CTA --- */
.cta-section {
    padding: 140px 0;
    background: #fff;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: var(--grid-gap);
    width: 100%;
}

.cta-title {
    grid-column: span 8;
    color: var(--color-dark);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 40px; /* Эквивалент gap: 140px между заголовком и контентом */
}

.cta-content {
    grid-column: span 4; /* Контент занимает 4 колонки из 8 (590px из 1200px) */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cta-desc {
    color: var(--color-gray);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.1;
}

/* Исходное состояние анимаций скролла */
.cta-section .line-mask > span,
.cta-section .line-mask > div {
    display: inline-block;
    transform: translateY(100%);
}

/* Триггер запуска анимации при скролле */
.cta-section.active .line-mask > span,
.cta-section.active .line-mask > div {
    animation: revealText 1.2s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

/* Очередь появления */
.cta-section.active .cta-delay-1 {
    animation-delay: 0.1s;
}
.cta-section.active .cta-delay-2 {
    animation-delay: 0.25s;
}
.cta-section.active .cta-delay-3 {
    animation-delay: 0.4s;
}
.cta-section.active .cta-delay-4 {
    animation-delay: 0.55s;
}

/* Адаптив */
@media (max-width: 992px) {
    .cta-content {
        grid-column: span 6;
    }
}

@media (max-width: 720px) {
    .cta-section {
        padding: 80px 0;
    }
    .cta-title {
        font-size: 36px;
        margin-bottom: 40px;
    }
    .cta-content {
        grid-column: span 8;
        width: 100%;
    }
    .cta-desc {
        font-size: 18px;
    }
}

/* --- Классический Футер со сдвигом снизу --- */
.main-footer {
    width: 100%;
    background: #00091a;
    padding: 60px 0 40px 0;
    overflow: hidden;
    color: #666d7c;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 80px; /* Фиксированный отступ между верхом и низом */
}

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

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.footer-heading {
    color: #fff;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 4px;
}

.footer-info {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.1;
    color: #666d7c;
}

.footer-socials {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
}

/* Интеграция эффекта прокрутки ссылок для темного фона */
.main-footer .mask-link {
    color: #666d7c;
}

.main-footer .mask-link .text-secondary {
    color: #fff; /* Эффект скролла в белый цвет при ховере */
}

/* Адаптивная верстка */
/* Toast-уведомления */
.toast-container {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    pointer-events: none;
}

.toast {
    padding: 16px 24px;
    background: var(--color-pink);
    border-radius: 100px;
    outline: 10px solid rgba(245, 105, 170, 0.26);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
    max-width: calc(100vw - 40px);
    text-align: center;
    opacity: 0;
    transform: translateY(16px);
    animation: toastIn 0.45s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.toast.toast-out {
    animation: toastOut 0.35s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

.toast--error {
    background: #e53935;
    outline-color: rgba(229, 57, 53, 0.26);
}

.toast--warning {
    background: var(--color-dark);
    outline-color: rgba(0, 9, 26, 0.2);
}

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

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateY(16px);
    }
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .toast {
        font-size: 14px;
        padding: 14px 20px;
        white-space: normal;
    }
    .toast-container {
        bottom: 24px;
        width: calc(100% - 40px);
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .footer-container {
        gap: 48px;
    }
}

@media (max-width: 720px) {
    .hide-on-mobile {
        display: none;
    }
}

.toast--loading {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 16px 24px;

    background: #00091a;

    border-radius: 100px;

    outline: 10px solid rgba(0, 9, 26, 0.26);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    color: white;

    overflow: hidden;
}

.toast-loading-text {
    color: white;

    font-size: 16px;
    font-family: Manrope, sans-serif;
    font-weight: 600;
    line-height: 17.6px;

    white-space: nowrap;
}

.toast-spinner {
    width: 20px;
    height: 20px;

    position: relative;

    border-radius: 9999px;

    border: 3px solid #666d7c;

    box-sizing: border-box;

    flex-shrink: 0;
}

.toast-spinner::after {
    content: "";

    position: absolute;

    inset: -2px;

    border-radius: 9999px;

    border: 3px solid transparent;
    border-top-color: white;

    box-sizing: border-box;

    animation: toastSpinner 0.7s linear infinite;
}

@keyframes toastSpinner {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}