/* ==== БАЗА + HEADER ==== */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: #0a0020;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    color: #ffffff;
}

body.no-scroll {
    overflow: hidden;
}


/* ===== PARTICLES BACKGROUND ===== */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* чтобы фон был позади контента */
    background: radial-gradient(ellipse at center, #090021 0%, #030014 100%);
    overflow: hidden;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 60px;
    background: linear-gradient(180deg, #0a0020 0%, #0b0026 100%);
    box-shadow: 0 0 10px rgba(149, 0, 255, 0.3);
    position: sticky;
    /* чтобы шапка держалась сверху при скролле */
    top: 0;
    z-index: 50;
}

/* === БАЗОВОЕ МЕНЮ (ДЕСКТОП) === */

nav {
    display: flex;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: #e0d6ff;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #9f5fff;
}

/* === КНОПКА-БУРГЕР (скрыта на десктопе) === */

.burger {
    display: none;
    /* включим только на мобилке */
    width: 36px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 60;
    /* выше меню */
}

.burger span {
    position: absolute;
    left: 4px;
    right: 4px;
    height: 2px;
    border-radius: 999px;
    background: #e0d6ff;
    transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.burger span:nth-child(1) {
    top: 8px;
}

.burger span:nth-child(2) {
    top: 15px;
}

.burger span:nth-child(3) {
    top: 22px;
}

/* Состояние "крестик" */

.burger.open span:nth-child(1) {
    top: 15px;
    transform: rotate(45deg);
}

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

.burger.open span:nth-child(3) {
    top: 15px;
    transform: rotate(-45deg);
}

/* ================== АДАПТИВ ДЛЯ ХЕДЕРА ================== */

@media (max-width: 900px) {
    header {
        padding: 14px 18px;
    }

    .logo-text {
        font-size: 16px;
    }

    .logo img {
        height: 40px;
    }

    nav a {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 14px;
    }

    /* Показываем бургер, прячем десктопное меню */
    .burger {
        display: block;
    }

    header nav {
        position: fixed;
        left: 0;
        right: 0;
        top: 60px;
        /* чуть ниже шапки */
        padding: 16px 20px 20px;
        background: radial-gradient(circle at top, #090021 0%, #030014 100%);
        border-top: 1px solid rgba(149, 0, 255, 0.3);
        display: flex;
        flex-direction: column;
        gap: 16px;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
        z-index: 55;
    }

    header nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    header nav a {
        font-size: 15px;
    }
}

/* ==== HERO-БЛОК ==== */

.hero {
    max-width: 1200px;
    margin: 60px auto 80px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-left,
.hero-right {
    flex: 1;
}

.hero-title {
    font-size: 26px;
    line-height: 1.3;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 30px;
}

.hero-phone {
    display: flex;
    justify-content: center;
}

.hero-phone img {
    max-width: 260px;
    height: auto;
}

/* ====== CARD В СТИЛЕ WEB3 ====== */
.hero-form-card {
    position: relative;
    max-width: 720px;        /* фикс уезжающих полей */
    width: 100%;
    margin: 0 auto;
    padding: 24px 20px;
    border-radius: 20px;
    background: radial-gradient(circle at top left, #1f2937 0, #020617 55%, #000 100%);
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
    overflow: hidden;
}

.hero-form-card *,
.hero-form-card *::before,
.hero-form-card *::after {
    box-sizing: border-box; /* защита от глобальных стилей */
}

.hero-form-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: conic-gradient(
        from 210deg,
        rgba(45, 212, 191, 0.3),
        rgba(59, 130, 246, 0.3),
        rgba(147, 51, 234, 0.35),
        rgba(45, 212, 191, 0.3)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.hero-form-card:hover::before {
    opacity: 1;
}

/* ====== ФОРМА ====== */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

/* WARNING-БЛОК НАД ФОРМОЙ */
.form-alert {
    margin-bottom: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(248, 113, 113, 0.5);
    background: rgba(127, 29, 29, 0.7);
    color: #fee2e2;
    font-size: 13px;
    line-height: 1.4;
    gap: 8px;
    align-items: flex-start;
    animation: fadeInDown 0.25s ease-out;
}

.form-alert::before {
    content: "⚠";
    font-size: 16px;
    margin-top: 1px;
}

/* ====== ПОЛЯ ====== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    width: 100%;
}

.form-group label {
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9ca3af;
}

.form-group input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
    color: #e5e7eb;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, transform 0.1s;
}

.form-group input::placeholder {
    color: #6b7280;
}

.form-group input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.5), 0 0 18px rgba(34, 197, 94, 0.35);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.75));
    transform: translateY(-1px);
}

/* Ошибочные поля */
.form-group input.input-error {
    border-color: #f97373;
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.4);
}

/* Подписи ошибок под полями */
.field-error {
    font-size: 11px;
    color: #fecaca;
    min-height: 14px;
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity 0.2s, transform 0.2s;
}

.field-error.show {
    opacity: 1;
    transform: translateY(0);
}

/* ====== КНОПКА ====== */
.btn-primary {
    margin-top: 4px;
    width: 100%;
    padding: 11px 0;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #22c55e, #22d3ee, #6366f1);
    color: #020617;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.55);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.7);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.9);
}

.btn-primary[disabled] {
    opacity: 0.7;
    cursor: default;
}

.btn-label {
    position: relative;
    z-index: 1;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(15, 23, 42, 0.25);
    border-top-color: #020617;
    animation: spin 0.6s linear infinite;
    display: none;
}

.btn-primary.loading .btn-spinner {
    display: inline-block;
}

.btn-primary.loading .btn-label {
    opacity: 0.7;
}

/* ====== МОДАЛКА УСПЕХА (в стиле staking popup) ====== */
.success-modal-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(0, 0, 0, 0.96));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.success-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* остальной стиль модалки успеха, если ещё не добавлял */

.modal-card {
    position: relative;
    width: min(360px, 90vw);
    padding: 24px 20px 18px;
    border-radius: 20px;
    background: radial-gradient(circle at top left, #020617, #020617 60%, #000);
    border: 1px solid rgba(34, 197, 94, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    text-align: center;
    overflow: hidden;
    animation: scaleIn 0.25s ease-out;
}

.modal-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top, rgba(34, 197, 94, 0.15), transparent 60%);
    opacity: 0.9;
    pointer-events: none;
}

.modal-icon-wrap {
    position: relative;
    margin: 0 auto 14px;
    width: 72px;
    height: 72px;
}

.modal-icon-ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 2px solid rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.7);
    animation: pulse 1.6s ease-out infinite;
}

.modal-icon-check {
    position: absolute;
    inset: 8px;
    border-radius: 999px;
    background: radial-gradient(circle at top, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #022c22;
    font-weight: 700;
}

.modal-card h3 {
    position: relative;
    margin: 4px 0 4px;
    font-size: 18px;
    color: #e5e7eb;
}

.modal-card p {
    position: relative;
    margin: 0 0 14px;
    font-size: 13px;
    color: #9ca3af;
}

.modal-btn {
    position: relative;
    width: 100%;
    padding: 10px 0;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: linear-gradient(90deg, #22c55e, #22d3ee);
    color: #020617;
    box-shadow: 0 10px 28px rgba(34, 197, 94, 0.7);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.modal-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(22, 163, 74, 0.9);
}

.modal-btn:active {
    transform: translateY(0);
    box-shadow: 0 7px 20px rgba(15, 118, 60, 0.9);
}

/* ====== АНИМАЦИИ ====== */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.92);
        opacity: 0;
    }

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

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    70% {
        transform: scale(1.18);
        opacity: 0;
    }

    100% {
        transform: scale(1.18);
        opacity: 0;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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



/* ==== МОБИЛЬНЫЙ ТЮНИНГ HERO + ФОРМА ==== */

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
        gap: 24px;
        margin: 40px auto 60px;
        padding: 0 16px;
    }

    .hero-left,
    .hero-right {
        width: 100%;
    }

    .hero-title {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .hero-phone {
        justify-content: center;
    }
}

@media (max-width: 600px) {

    /* сама карточка формы */
    .hero-right {
        display: flex;
        justify-content: center;
    }

    .hero-form-card {
        width: 100%;
        max-width: 360px;
        /* аккуратная ширина под мобилу */
        padding: 20px 18px;
        border-radius: 24px;
        margin-top: 16px;
    }

    .lead-form {
        gap: 12px;
    }

    .form-group label {
        font-size: 11px;
        letter-spacing: 0.06em;
    }

    .form-group input {
        padding: 9px 10px;
        font-size: 13px;
    }

    .btn-primary {
        margin-top: 8px;
        font-size: 14px;
        padding: 10px 0;
    }
}

/* ===== О НАС ===== */

.about {
    max-width: 1200px;
    margin: 80px auto 100px;
    padding: 0 20px;
    color: #ffffff;
}

.about-header h2 {
    font-size: 28px;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.about-header p {
    max-width: 720px;
    margin: 0;
    line-height: 1.6;
    color: #e0d6ff;
    font-size: 15px;
}

.about-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 80px;
}

.about-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.about-icon img {
    width: max-content;
    height: max-content;
}

.about-text {
    flex: 1;
}

.about-label {
    font-size: 13px;
    line-height: 1.5;
    text-transform: uppercase;
    font-weight: 800;
    background: linear-gradient(90deg,
            #c37bff 0%,
            #7fe6ff 45%,
            #52f2ff 70%,
            #2affff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Градиентный текст, как на скрине */
.about-main {
    font-size: 13px;
    line-height: 1.5;
    text-transform: uppercase;
    font-weight: 800;
    background: linear-gradient(90deg,
            #c37bff 0%,
            #7fe6ff 45%,
            #52f2ff 70%,
            #2affff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Линия в стиле макета */
.about-line {
    margin-top: 8px;
    height: 2px;
    width: 260px;
    max-width: 100%;
    background: linear-gradient(90deg,
            rgba(195, 123, 255, 0.0) 0%,
            rgba(195, 123, 255, 0.8) 20%,
            #52f2ff 55%,
            rgba(82, 242, 255, 0.0) 100%);
}

/* адаптив */

@media (max-width: 900px) {
    .about {
        margin-top: 60px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 28px 0;
    }

    /* НОВОЕ: чтобы элементы не были слишком растянутыми по высоте */
    .about-item {
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .about {
        margin: 40px auto 60px;
        padding: 0 16px;
    }

    .about-header h2 {
        font-size: 22px;
    }

    .about-header p {
        font-size: 14px;
        line-height: 1.5;
    }

    .about-item {
        flex-direction: row;
        /* остаёмся в ряд, но компактнее */
        gap: 12px;
    }

    .icon-wrapper svg {
        width: 90px;
        height: 100px;
    }

    .about-label,
    .about-main {
        font-size: 11px;
        line-height: 1.4;
    }

    .about-line {
        width: 200px;
    }
}

/* ===== OUR PARTNERS ===== */

.partners {
    max-width: 1200px;
    margin: 40px auto 80px;
    padding: 0 20px;
    color: #ffffff;
}

.partners-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    text-transform: none;
    /* как на скрине */
}

.partners-logos {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.partners-logos img {
    height: 26px;
    /* примерно как на картинке */
    object-fit: contain;
    filter: brightness(1.2);
    /* лёгкое высветление на тёмном фоне */
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.partners-logos img:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* адаптив */

@media (max-width: 768px) {
    .partners {
        margin-top: 30px;
    }

    .partners-logos {
        gap: 16px 20px;
    }

    .partners-logos img {
        height: 22px;
    }
}

/* ===== REVIEWS (WEB3 STYLE) ===== */

.reviews {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    position: relative;
    z-index: 1;
}

/* лёгкое свечение за блоком */
.reviews::before {
    content: "";
    position: absolute;
    inset: -60px 15%;
    background:
        radial-gradient(circle at top left, rgba(89, 209, 255, 0.18), transparent 60%),
        radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.18), transparent 60%);
    filter: blur(10px);
    z-index: -1;
}

.reviews-header h2 {
    font-size: 28px;
    text-transform: uppercase;
    margin: 0 0 12px;
    letter-spacing: 0.12em;
    background: linear-gradient(90deg, #4e6cff 0%, #59d1ff 40%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.reviews-header p {
    color: #e0d6ff;
    margin: 0 0 50px;
    font-size: 15px;
    line-height: 1.6;
    max-width: 620px;
}

/* сетка оставляем, но она будет выглядеть по-другому за счёт карточек */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

/* карточка отзыва */
.review-card {
    position: relative;
    border-radius: 20px;
    padding: 30px 25px;
    background: linear-gradient(135deg,
            rgba(18, 12, 52, 0.95),
            rgba(12, 18, 64, 0.98));
    box-shadow:
        0 0 0 1px rgba(40, 30, 90, 0.8),
        0 18px 40px rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(170, 120, 255, 0.35);
    overflow: hidden;
    transform: translateY(0) translateZ(0);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease;
}

/* лёгкая “волна” для статичной живости */
.review-card:nth-child(1) {
    animation: floatReview 7s ease-in-out infinite;
}

.review-card:nth-child(2) {
    animation: floatReview 8s ease-in-out infinite 0.4s;
}

.review-card:nth-child(3) {
    animation: floatReview 9s ease-in-out infinite 0.8s;
}

@keyframes floatReview {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* неоновый контур поверх при наведении */
.review-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(120deg,
            rgba(78, 108, 255, 0),
            rgba(89, 209, 255, 0.9),
            rgba(168, 85, 247, 0.9),
            rgba(78, 108, 255, 0));
    background-size: 220% 220%;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

/* мягкие блики внутри */
.review-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(89, 209, 255, 0.08), transparent 55%),
        radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.09), transparent 55%);
    opacity: 0.8;
    pointer-events: none;
}

/* hover: чуть поднимаем и усиливаем glow */
.review-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow:
        0 0 30px rgba(89, 209, 255, 0.45),
        0 26px 70px rgba(0, 0, 0, 0.95);
    border-color: rgba(89, 209, 255, 0.9);
    background: radial-gradient(circle at top left, rgba(89, 209, 255, 0.12), transparent 55%),
        linear-gradient(135deg, rgba(18, 12, 52, 0.98), rgba(12, 18, 64, 1));
}

.review-card:hover::before {
    opacity: 1;
    animation: reviewsBorderGlow 4s linear infinite;
}

@keyframes reviewsBorderGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* рейтинг-звёзды */
.review-rating {
    position: absolute;
    top: 18px;
    right: 22px;
    padding: 4px 14px;
    font-size: 13px;
    letter-spacing: 3px;
    border-radius: 999px;
    background: radial-gradient(circle at top, #201636, #130d27);
    color: #ffcc66;
    box-shadow: 0 0 18px rgba(255, 204, 102, 0.35);
    border: 1px solid rgba(255, 204, 102, 0.5);
    text-shadow: 0 0 6px rgba(255, 204, 102, 0.7);
    transform-origin: center;
    transition: transform 0.25s ease;
}

/* лёгкий “wiggle” при hover */
.review-card:hover .review-rating {
    transform: scale(1.05) translateY(-2px);
}

/* имя клиента */
.review-card h3 {
    margin-top: 40px;
    font-size: 18px;
    color: #ffffff;
    font-weight: 600;
}

/* текст отзыва */
.review-card p {
    margin-top: 8px;
    color: #d2c9ff;
    font-size: 15px;
    line-height: 1.6;
}

/* адаптив */
@media (max-width: 768px) {
    .reviews {
        margin: 80px auto;
    }

    .review-card {
        padding: 25px 20px;
    }

    .review-rating {
        top: 16px;
        right: 18px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .reviews-header h2 {
        font-size: 24px;
    }

    .reviews-grid {
        gap: 24px;
    }

    .review-card h3 {
        font-size: 17px;
    }

    .review-card p {
        font-size: 14px;
    }
}


/* ===== С ЧЕГО НАЧАТЬ (WEB3 STYLE) ===== */

.steps {
    max-width: 1200px;
    margin: 100px auto 120px;
    padding: 0 20px;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    position: relative;
    z-index: 1;
}

/* лёгкий фоновый градиент за блоком */
.steps::before {
    content: "";
    position: absolute;
    inset: -80px 10%;
    background: radial-gradient(circle at top, rgba(89, 209, 255, 0.18), transparent 60%);
    filter: blur(12px);
    z-index: -1;
}

.steps-header h2 {
    margin: 0 0 8px;
    font-size: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #4e6cff 0%, #59d1ff 40%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.steps-header p {
    margin: 0 0 40px;
    font-size: 16px;
    color: #e0d6ff;
    opacity: 0.9;
}

.steps-grid {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* карточка шага */
.step-card {
    position: relative;
    flex: 1 1 280px;
    min-height: 220px;
    padding: 24px 26px;
    border-radius: 20px;
    border: 1px solid rgba(144, 122, 255, 0.55);
    background: linear-gradient(135deg, rgba(12, 10, 40, 0.85), rgba(10, 18, 65, 0.95));
    box-shadow:
        0 0 0 1px rgba(16, 24, 80, 0.8),
        0 18px 40px rgba(0, 0, 0, 0.65);
    overflow: hidden;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* живой неоновый бордер */
.step-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(120deg,
            rgba(78, 108, 255, 0.0),
            rgba(89, 209, 255, 0.9),
            rgba(168, 85, 247, 0.9),
            rgba(78, 108, 255, 0.0));
    background-size: 220% 220%;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

/* крупный номер шага в фоне */
.step-card::before {
    content: "01";
    position: absolute;
    right: 18px;
    top: 10px;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(140, 120, 255, 0.11);
    pointer-events: none;
}

/* меняем цифры для каждого шага */
.steps-grid .step-card:nth-child(2)::before {
    content: "02";
}

.steps-grid .step-card:nth-child(3)::before {
    content: "03";
}

/* hover-состояние: 3D-подъём + glow */
.step-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow:
        0 0 30px rgba(89, 209, 255, 0.45),
        0 24px 60px rgba(0, 0, 0, 0.9);
    border-color: rgba(89, 209, 255, 0.9);
    background: radial-gradient(circle at top left, rgba(89, 209, 255, 0.12), transparent 55%),
        linear-gradient(135deg, rgba(12, 10, 40, 0.95), rgba(10, 18, 65, 1));
}

.step-card:hover::after {
    opacity: 1;
    animation: stepsBorderGlow 4s linear infinite;
}

/* плавная анимация бордера */
@keyframes stepsBorderGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.step-card h3 {
    margin: 0 0 16px;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f5f2ff;
}

/* первый абзац делаем чуть ярче */
.step-card p:first-of-type {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.6;
    color: #f5f0ff;
    font-weight: 500;
}

.step-card p {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.6;
    color: #c9c2ff;
}

/* адаптив */

/* Планшеты и уже */
@media (max-width: 900px) {
    .steps {
        margin: 60px auto 80px;
        padding: 0 16px;
    }

    .steps-grid {
        flex-direction: column;
        gap: 20px;
        justify-content: flex-start;
    }

    .step-card {
        flex: 1 1 auto;
        /* оставляем адаптивную высоту, но min-height переопределим ниже */
    }
}

/* Телефоны */
@media (max-width: 600px) {
    .steps-header h2 {
        font-size: 22px;
    }

    .steps-header p {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .step-card {
        padding: 16px 14px;
        min-height: auto;
        /* ВАЖНО: убираем огромную высоту */
        border-radius: 16px;
    }

    /* Уменьшаем огромные цифры справа */
    .step-card::before {
        font-size: 28px;
        right: 10px;
        top: 4px;
    }

    .step-card h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .step-card p:first-of-type,
    .step-card p {
        font-size: 13px;
        line-height: 1.5;
    }
}


/* ===== CTA КНОПКА ===== */

.cta-section {
    margin: 60px 0 100px;
    display: flex;
    justify-content: center;
}

.btn-cta {
    position: relative;
    padding: 14px 60px;
    border-radius: 999px;
    border: 2px solid transparent;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    color: #f8eaff;
    background-image:
        linear-gradient(90deg, #c779ff, #ff8cf5),
        linear-gradient(90deg, #3f7cff, #ff8cf5);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 18px rgba(191, 119, 255, 0.7);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 26px rgba(210, 140, 255, 0.9);
    opacity: 0.98;
}

.btn-cta:active {
    transform: translateY(1px);
    box-shadow: 0 0 14px rgba(170, 100, 255, 0.7);
}

/* вариант, когда кнопка занимает всю ширину в форме */
.btn-cta-full {
    width: 100%;
    text-align: center;
}

/* ===== МОДАЛКА ===== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 0, 20, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 28px 26px 30px;
    border-radius: 20px;
    background: rgba(22, 10, 60, 0.95);
    border: 1px solid rgba(170, 120, 255, 0.4);
    box-shadow: 0 0 40px rgba(120, 70, 255, 0.6);
    backdrop-filter: blur(18px);
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
}

.modal h3 {
    margin: 0 0 18px;
    font-size: 20px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
}


/* адаптив */

@media (max-width: 600px) {
    .modal {
        margin: 0 16px;
        padding: 24px 20px 26px;
    }
}