:root {
    --page-bg: #f8f9ff;
    --text: #080d18;
    --muted: #465066;
    --purple: #5c4dff;
    --violet: #744dff;
    --pink: #eb53a9;
    --line: rgba(104, 86, 255, .13);
    --card: rgba(255, 255, 255, .72);
    --max-width: 1540px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    color: var(--text);
    background: var(--page-bg);
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    display: block;
}

button,
a,
summary {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(calc(100% - 48px), var(--max-width));
    margin-inline: auto;
}


/* =========================================
   HEADER
   ========================================= */

.site-header {
    position: absolute;
    z-index: 50;
    top: 0;
    left: 0;
    width: 100%;
}

.header-inner {
    height: 100px;
    display: flex;
    align-items: center;
    gap: 42px;
}

.brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    font-size: 35px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.055em;
}

.brand-last {
    position: relative;
    display: inline-block;
    z-index: 0;
}

.brand-last::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-42%, -50%);
    background:
        linear-gradient(
            135deg,
            #69bdff 0%,
            #8a72ff 43%,
            #ef76bd 74%,
            #ff8793 100%
        );
    opacity: .88;
}

.desktop-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(22px, 2.25vw, 48px);
    white-space: nowrap;
    font-size: 16px;
    font-weight: 500;
}

.desktop-nav > a,
.services-menu > summary {
    transition: opacity .18s ease;
}

.desktop-nav > a:hover,
.services-menu > summary:hover {
    opacity: .56;
}

.services-menu {
    position: relative;
}

.services-menu summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    list-style: none;
}

.services-menu summary::-webkit-details-marker {
    display: none;
}

.services-menu summary svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.services-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: -20px;
    min-width: 220px;
    padding: 10px;
    display: grid;
    gap: 3px;
    border: 1px solid rgba(89, 76, 255, .1);
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 20px 60px rgba(59, 43, 138, .13);
    backdrop-filter: blur(18px);
}

.services-dropdown a {
    padding: 11px 13px;
    border-radius: 11px;
}

.services-dropdown a:hover {
    background: #f3f1ff;
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-action {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(105, 89, 255, .08);
    border-radius: 15px;
    color: #6555ff;
    background: rgba(255, 255, 255, .65);
    box-shadow: 0 8px 30px rgba(50, 37, 118, .06);
}

.header-action--primary {
    color: #fff;
    background: linear-gradient(145deg, #7153ff, #503cff);
}

.header-action svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-menu {
    display: none;
}


/* =========================================
   HERO
   ========================================= */

.hero {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 34px;
    background:
        radial-gradient(
            circle at 79% 37%,
            rgba(109, 85, 255, .17) 0,
            rgba(109, 85, 255, .07) 20%,
            transparent 47%
        ),
        radial-gradient(
            circle at 91% 87%,
            rgba(225, 93, 189, .15) 0,
            rgba(117, 93, 255, .09) 27%,
            transparent 52%
        ),
        linear-gradient(
            120deg,
            #ffffff 0%,
            #fbfbff 39%,
            #f4f3ff 73%,
            #f8f5ff 100%
        );
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse at 10% 74%,
            rgba(255,255,255,.96) 0%,
            transparent 35%
        ),
        radial-gradient(
            ellipse at 68% 100%,
            rgba(117, 83, 255, .12) 0%,
            transparent 43%
        );
}

.hero-glow {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(60px);
}

.hero-glow--one {
    width: 420px;
    height: 420px;
    right: 14%;
    top: 26%;
    background: rgba(105, 82, 255, .13);
}

.hero-glow--two {
    width: 300px;
    height: 300px;
    right: -40px;
    bottom: -90px;
    background: rgba(239, 91, 176, .12);
}

.hero-main {
    position: relative;
    display: grid;
    grid-template-columns:
        minmax(560px, .94fr)
        minmax(500px, 1.06fr);
    align-item
    min-height: 610px;
}

.hero-copy {
    position: relative;
    z-index: 4;
    padding: 34px 0 38px;
    max-width: 760px;
}

.hero-eyebrow {
    width: max-content;
    max-width: 100%;
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(99, 80, 255, .13);
    border-radius: 999px;
    color: #6252ff;
    background: rgba(255, 255, 255, .56);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
    font-size: 16px;
    font-weight: 500;
}

.hero-eyebrow svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.hero h1 {
    margin: 28px 0 0;
    max-width: 760px;
    font-size: clamp(62px, 5.15vw, 88px);
    line-height: .97;
    letter-spacing: -.064em;
    font-weight: 760;
}

.hero h1 span {
    display: block;
    width: max-content;
    max-width: 100%;
    padding-right: .08em;
    color: transparent;
    background:
        linear-gradient(
            100deg,
            #4e48ff 0%,
            #744dff 48%,
            #ea56a9 100%
        );
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-lead {
    margin: 30px 0 0;
    max-width: 585px;
    color: var(--muted);
    font-size: clamp(18px, 1.35vw, 21px);
    line-height: 1.62;
    letter-spacing: -.018em;
}

.hero-actions {
    margin-top: 38px;
    display: flex;
    align-items: center;
    gap: 48px;
}

.button-primary {
    min-width: 345px;
    min-height: 72px;
    padding: 0 30px 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-radius: 14px;
    color: #fff;
    background:
        linear-gradient(
            105deg,
       
            #7850ff 48%,
            #ec56ab 100%
        );
    box-shadow:
        0 18px 42px rgba(107, 75, 255, .20),
        0 8px 20px rgba(234, 81, 168, .10);
    font-size: 17px;
    font-weight: 600;
    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 22px 50px rgba(107, 75, 255, .25),
        0 10px 24px rgba(234, 81, 168, .13);
}

.button-primary svg,
.button-link svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.button-link {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    font-size: 16px;
    font-weight: 600;
}

.button-link span {
    padding-bottom: 5px;
    border-bottom: 1px dashed #808797;
}


/* =========================================
   HERO VISUAL
   ========================================= */

.hero-visual {
    position: relative;
    align-self: stretch;
    min-height: 610px;
    pointer-events: none;
}

.hero-visual::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: min(620px, 48vw);
    aspect-ratio: 1;
    right: -1%;
    top: 48%;
    transform: translateY(-50%);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(255,255,255,.18) 0%,
            rgba(124, 96, 255, .11) 36%,
            rgba(93, 76, 255, .05) 57%,
            transparent 69%
        );
}

.hero-visual img {
    position: absolute;
    z-index: 3;
    right: clamp(-90px, -4.3vw, -34px);
    bottom: -72px;
    width: min(790px, 51vw);
    max-width: none;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 26px 45px rgba(70, 49, 170, .08));
}

.hero-orbit {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    border-radius: 50%;
}

.hero-orbit--a {
    width: min(620px, 45vw);
    height: min(700px, 48vw);
    right: -1%;
    top: 47%;
    transform:
        translateY(-50%)
        rotate(27deg);
    border: 3px solid rgba(255,255,255,.65);
    box-shadow:
        0 0 14px rgba(132, 102, 255, .23),
        inset 0 0 14px rgba(255,255,255,.45);
}

.hero-orbit--b {
    width: min(700px, 49vw);
    height: min(510px, 38vw);
    right: -4%;
    top: 52%;
    transform:
        translateY(-50%)
        rotate(-18deg);
    border: 2px solid rgba(143, 115, 255, .14);
    box-shadow:
        0 0 18px rgba(118, 91, 255, .12);
}


/* =========================================
   LOWER HERO
   ========================================= */

.hero-lower {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: minmax(0, 2.25fr) minmax(450px, 1fr);
    align-items: center;
    gap: 52px;
}

.feature-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.feature-card {
    min-height: 112px;
    padding: 20px 20px 20px 16px;
    display: flex;
    align-items: center;
    gap: 17px;
    border: 1px solid rgba(103, 82, 255, .11);
    border-radius: 19px;
    background: var(--card);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.85),
        0 14px 35px rgba(52, 38, 132, .035);
    backdrop-filter: blur(14px);
}

.feature-icon {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #6250ff;
    background:
        line
            145deg,
            rgba(246,243,255,.94),
            rgba(255,255,255,.95)
        );
    box-shadow:
        inset 0 0 0 1px rgba(101, 82, 255, .07),
        0 7px 20px rgba(74, 52, 170, .06);
}

.feature-icon svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
    line-height: 1.2;
}

.feature-card span {
    display: block;
    color: #596176;
    font-size: 12.5px;
    line-height: 1.42;
}

.signal-flow {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 11px;
}

.flow-chip {
    min-height: 64px;
    padding: 0 18px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
    border: 1px solid rgba(101, 82, 255, .09);
    border-radius: 16px;
    background: rgba(255,255,255,.79);
    box-shadow: 0 12px 35px rgba(57, 41, 145, .035);
    font-size: 14px;
    font-weight: 600;
}

.flow-chip svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: #6351ff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.flow-arrow {
    color: #6d58ff;
    font-size: 24px;
    font-weight: 400;
}

.direct-mark {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #254ec8;
    background: #ffd835;
    font-size: 18px;
    font-weight: 800;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1270px) {

    .desktop-nav {
        gap: 20px;
        font-size: 14px;
    }

    .hero-main {
        grid-template-columns:
            minmax(520px, 1fr)
            minmax(390px, .9fr);
    }

    .hero h1 {
        font-size: clamp(58px, 5.4vw, 76px);
    }

    .hero-lower {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .signal-flow {
        justify-content: flex-start;
    }
}


/* =========================================
   MOBILE / SMALL TABLET
   ========================================= */

@media (max-width: 959px) {

    .container {
        width: min(calc(100% - 32px), var(--max-width));
    }

    .header-inner {
        height: 76px;
        gap: 14px;
    }

    .brand {
        font-size: 28px;
    }

    .brand-last::before {
        width: 37px;
        height: 37px;
    }

    .desktop-nav {
        display: none;
    }

    .header-actions {
        gap: 8px;
    }

    .header-action {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .header-action svg {
        width: 23px;
        height: 23px;
    }

    .mobile-menu {
        position: relative;
        display: block;
    }

    .mobile-menu > summary {
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        cursor: pointer;
        list-style: none;
        border: 1px solid rgba(101,82,255,.08);
        border-radius: 12px;
        background: rgba(255,255,255,.73);
    }

    .mobile-menu > summary::-webkit-details-marker {
        display: none;
    }

    .mobile-menu > summary svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: #6253ff;
        stroke-width: 1.8;
        stroke-linecap: round;
    }

    .mobile-menu-panel {
        position: absolute;
        top: 50px;
        right: 0;
        width: min(290px, calc(100vw - 32px));
        padding: 10px;
        display: grid;
        gap: 3px;
        border: 1px solid rgba(101,82,255,.1);
        border-radius: 18px;
        background: rgba(255,255,255,.97);
        box-shadow: 0 20px 55px rgba(56,40,140,.15);
        backdrop-filter: blur(20px);
    }

    .mobile-menu-panel a {
        padding: 13px 14px;
        border-radius: 11px;
        font-size: 15px;
        font-weight: 600;
    }

    .hero {
        min-height: auto;
        padding-top: 76px;
        padding-bottom: 28px;
        background:
            radial-gradient(
                circle at 77% 49%,
                rgba(112, 86, 255, .16) 0,
                rgba(112, 86, 255, .06) 25%,
                transparent 48%
            ),
            radial-gradient(
                circle at 90% 73%,
                rgba(230, 88, 176, .13) 0,
                transparent 42%
            ),
            linear-gradient(
                165deg,
                #fff 0%,
                #fafaff 47%,
                #f5f3ff 100%
            );
    }

    .hero-main {
        display: block;
        min-height: auto;
    }

    .hero-copy {
        padding: 30px 0 0;
        max-width: none;
    }

    .hero-eyebrow {
        min-height: 36px;
        padding-inline: 13px;
        gap: 7px;
        font-size: 12px;
    }

    .hero-eyebrow svg {
        width: 18px;
        height: 18px;
    }

    .hero h1 {
        margin-top: 20px;
        max-width: 680px;
        font-size: clamp(46px, 10.3vw, 66px);
        line-height: .98;
        letter-spacing: -.058em;
    }

    .hero-lead {
        margin-top: 22px;
        max-width: 590px;
        font-size: 17px;
        line-height: 1.5;
    }

    .hero-actions {
        margin-top: 28px;
        gap: 28px;
    }

    .button-primary {
        min-width: 290px;
        min-height: 62px;
        padding-inline: 26px;
        font-size: 15px;
    }

    .button-link {
        font-size: 14px;
    }

    .hero-visual {
        margin-top: 12px;
        min-height: 470px;
    }

    .hero-visual img {
        right: -11%;
        bottom: -54px;
        width: min(690px, 92vw);
    }

    .hero-orbit--a {
        width: 72vw;
        height: 76vw;
        right: 1%;
    }

    .hero-orbit--b {
        width: 82vw;
        height: 57vw;
        right: -6%;
    }

    .hero-lower {
        margin-top: 2px;
        display: block;
    }

    .feature-grid {
        margin-inline: -16px;
        padding-inline: 16px;
        display: flex;
        gap: 12px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .feature-grid::-webkit-scrollbar {
        display: none;
    }

    .feature-card {
        flex: 0 0 min(295px, 82vw);
        min-height: 98px;
        scroll-snap-align: start;
    }

    .signal-flow {
        margin-top: 18px;
        padding-bottom: 2px;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .signal-flow::-webkit-scrollbar {
        display: none;
    }

    .flow-chip {
        min-height: 54px;
        padding-inline: 15px;
        font-size: 13px;
    }
}


/* =========================================
   PHONE — 430 AND BELOW
   ========================================= */

@media (max-width: 430px) {

    .container {
        width: calc(100% - 28px);
    }

    .site-header .header-action:first-of-type {
        display: none;
    }

    .hero-copy {
        padding-top: 23px;
    }

    .hero h1 {
        font-size: clamp(43px, 12.7vw, 54px);
    }

    .hero-lead {
        max-width: 355px;
        font-size: 16px;
        line-height: 1.5;
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .button-primary {
        width: 100%;
        min-width: 0;
        min-height: 58px;
        border-radius: 13px;
    }

    .button-link {
        align-self: flex-start;
        min-height: 38px;
    }

    /*
       На телефоне главное — текст + CTA.
       Персонаж крупный, но не заставляет H1 становиться мелким.
    */
    .hero-visual {
        min-height: 385px;
        margin-top: 2px;
    }

    .hero-visual img {
        width: 118vw;
        max-width: none;
        right: -37%;
        bottom: -45px;
    }

    .hero-visual::after {
        width: 108vw;
        right: -35%;
    }

    .hero-orbit--a {
        width: 99vw;
        height: 110vw;
        right: -23%;
        border-width: 2px;
    }

    .hero-orbit--b {
        width: 112vw;
        height: 75vw;
        right: -31%;
    }

    .feature-grid {
        margin-top: -5px;
        margin-inline: -14px;
        padding-inline: 14px;
    }

    .feature-card {
        flex-basis: min(280px, 84vw);
    }

    .signal-flow {
        margin-top: 15px;
        gap: 8px;
    }

    .flow-chip {
        min-height: 50px;
        padding-inline: 13px;
        border-radius: 13px;
    }

    .flow-chip svg {
        width: 23px;
        height: 23px;
    }

    .flow-arrow {
        font-size: 20px;
    }
}


/* =========================================
   VERY SMALL PHONE
   ========================================= */

@media (max-width: 360px) {

    .header-action {
        width: 38px;
        height: 38px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero-lead {
        font-size: 15px;
    }

    .hero-visual {
        min-height: 350px;
    }
}


/* ========================================
   ACCESSIBILITY
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}
