/* ===== HERO (intro) ===== */
.hero {
    background-image: linear-gradient(180deg,rgba(0,0,0,.64),rgba(0,0,0,.68)),url('/img/about-1.jpg');
    background-size: cover;
    background-position: center
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 64px;
    align-items: center;
    grid-template-areas: 'left right'
}

@media(max-width:768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        grid-template-areas: 'right' 'left'
    }

    .hero-title {
        white-space: normal
    }

    .hero-left {
        text-align: center !important
    }

    .hero-right {
        justify-content: center
    }
}

.hero-title {
    font: 800 clamp(40px,6.2vw,76px)/1.05 'Manrope','Inter';
    color: #fff;
    letter-spacing: .3px;
    margin: 0 0 10px;
    white-space: nowrap
}

.title-sheen {
    background-image: linear-gradient(90deg,#ffffff 15%,rgba(28,164,175,.6) 35%,rgba(30,184,146,.6) 50%,#ffffff 85%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: sheen 7s linear infinite
}

@keyframes sheen {
    0% {
        background-position: -150% 50%
    }

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

.logo-wrap {
    width: clamp(260px,32vw,520px);
    aspect-ratio: 1/1;
    position: relative
}

.logo-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: auto;
    transform: translateZ(0);
    filter: drop-shadow(0 10px 28px rgba(0,0,0,.48));
    opacity: 1
}

.note {
    font-size: 13px;
    color: var(--mut);
    margin-top: 18px
}

/* hero text sizing & weights */
.hero .mut,
.hero .note {
    font-size: clamp(15px,1.4vw,18px);
    font-weight: 600;
    color: #ccc
}

.hero-title span {
    white-space: nowrap
}

.hero-left {
    grid-area: left
}

.hero-right {
    grid-area: right
}

/* CTA, donors, tooltips, FAQ, roadmap, arrow */
.cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px
}

.hero {
    position: relative
}

.hero-arrow {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--b);
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer
}

    .hero-arrow:hover {
        filter: brightness(1.1)
    }

.faq-caret {
    margin-left: auto;
    transition: transform .2s ease
}

details[open] .faq-caret {
    transform: rotate(180deg);
    animation: chevronSpin .32s cubic-bezier(.3,.7,.2,1)
}

@keyframes chevronSpin {
    from {
        transform: rotate(0)
    }

    to {
        transform: rotate(540deg)
    }
}

.mini-faq {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
    align-items: start;
}

@media(max-width:768px) {
    .mini-faq {
        grid-template-columns: 1fr
    }
}

/* animated FAQ body */
.faq-body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    will-change: max-height,opacity;
    transition: max-height .8s cubic-bezier(.2,.8,.2,1),opacity .55s ease-in-out
}

details.faq-min[open] .faq-body {
    opacity: 1
}

.faq-body.closing {
    transition: max-height .7s cubic-bezier(.4,0,.2,1),opacity .35s ease-in .05s
}

/* stagger */
.reveal > * > * {
    transition-delay: 0s
}

.reveal.in-view > *:nth-child(1) {
    transition-delay: .05s
}

.reveal.in-view > *:nth-child(2) {
    transition-delay: .12s
}

.reveal.in-view > *:nth-child(3) {
    transition-delay: .18s
}

.reveal.in-view > *:nth-child(4) {
    transition-delay: .24s
}

.reveal.in-view > *:nth-child(5) {
    transition-delay: .30s
}

@media (prefers-reduced-motion:reduce) {
    *, *:before, *:after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important
    }
}

/* guard: keep About buttons styling even after modal CSS loads */
.panels .ap-btn {
    color: #e9eef3
}

/* ===== Team responsive ===== */
@media (max-width: 1300px) {
    .team-cards.team-cards--main {
        grid-template-columns: repeat(2,minmax(220px,1fr))
    }

    .team-cards.team-cards--mini {
        grid-template-columns: repeat(3,minmax(240px,1fr))
    }
}

@media (max-width: 900px) {
    .team-cards.team-cards--mini {
        grid-template-columns: repeat(2,minmax(220px,1fr))
    }
}

.team-title {
    color: #fff
}

.team-subtitle {
    color: #ccc;
    font-size: 18px
}

/* fade-in for title/subtitle */
.fade-item {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .55s ease,transform .55s ease
}

.reveal.in-view .fade-item {
    opacity: 1;
    transform: none
}

/* hex grid background for team */
#team {
    position: relative
}

    #team .hex-bg {
        position: absolute;
        inset: 0;
        pointer-events: none;
        opacity: .18
    }

    #team .inner {
        position: relative;
        z-index: 1
    }

#simulateBtn {
    position: absolute;
    bottom: 14px;
    left: 14px;
    font-size: .8rem;
    background: #222;
    color: #eee;
    border: 1px solid #666;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    z-index: 20;
    transition: all .2s ease;
}

    #simulateBtn:hover {
        background: #333;
        border-color: #888;
        opacity: 1;
        filter: brightness(1.05)
    }

.panel {
    scroll-margin-top: var(--hdr)
}

#team .hex-fly {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .22
}

.section-bar {
    position: fixed;
    left: 14px;
    top: 90px;
    z-index: 60;
    display: flex;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 12px;
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(8px)
}

    .section-bar .sb-item {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,.14);
        background: rgba(255,255,255,.06);
        cursor: pointer;
        transition: transform .15s ease, filter .2s ease, background .2s ease
    }

        .section-bar .sb-item:hover {
            transform: translateY(-1px);
            filter: brightness(1.1)
        }

        .section-bar .sb-item.active {
            background: linear-gradient(135deg,var(--g1),var(--g2));
            color: #001014;
            border-color: transparent
        }

        .section-bar .sb-item svg {
            width: 18px;
            height: 18px;
            stroke: #fff;
            stroke-width: 2.6;
            fill: none
        }

        .section-bar .sb-item.active svg {
            stroke: #fff;
            stroke-width: 2.8
        }

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s ease, transform .55s ease
}

    .reveal.in-view {
        opacity: 1;
        transform: none
    }

ul.mini-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    font-size: 14px;
    color: var(--mut);
    text-align: left;
    display: inline-block
}

    ul.mini-list li::before {
        content: "Х ";
        color: var(--g1)
    }

.donors {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--b);
    border-radius: 12px;
    background: rgba(255,255,255,.05)
}

    .donors .label {
        opacity: .9
    }

.donors-viewport {
    overflow: hidden;
    max-width: min(860px,80vw)
}

.donor-tape {
    white-space: nowrap;
    display: inline-block;
    padding-left: 2px;
    animation: tape 30s linear infinite
}

    .donor-tape .sep {
        opacity: .6;
        margin: 0 10px
    }

@keyframes tape {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

/* Minimal FAQ */
details.faq, details.faq-min {
    display: block;
    margin: 0;
    border: 1px solid var(--b);
    border-radius: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,.04);
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

    details.faq summary, details.faq-min summary {
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        font-weight: 800;
        list-style: none;
        min-height: 44px;
    }

        details.faq summary::marker, details.faq-min summary::marker {
            content: ""
        }

        details.faq summary::-webkit-details-marker, details.faq-min summary::-webkit-details-marker {
            display: none
        }

/* masonry-like cards */
details.faq-min {
    display: block;
    margin: 0 0 10px;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid
}

    details.faq-min p {
        margin: 6px 0 0;
        color: #ccc;
        font-size: 14px
    }

/* support stars bg */
#support {
    position: relative;
    background: #000
}

    #support .support-bg {
        position: absolute;
        inset: 0;
        pointer-events: none;
        opacity: .5
    }

    #support .inner {
        position: relative;
        z-index: 2
    }

/* donors tape fade edges */
.donors-viewport {
    position: relative;
    overflow: hidden;
    max-width: min(860px,80vw)
}

    .donors-viewport::before, .donors-viewport::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 38px;
        z-index: 2;
        pointer-events: none
    }

    .donors-viewport::before {
        left: 0;
        background: linear-gradient(90deg,rgba(0,0,0,1),rgba(0,0,0,0))
    }

    .donors-viewport::after {
        right: 0;
        background: linear-gradient(270deg,rgba(0,0,0,1),rgba(0,0,0,0))
    }

/* gem rain */
#support .gem-rain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1
}

    #support .gem-rain .gem {
        position: absolute;
        top: -24px;
        animation: gemFall var(--dur,10s) linear forwards;
        filter: drop-shadow(0 0 6px rgba(125,227,255,.6));
        opacity: .9
    }

        #support .gem-rain .gem svg {
            width: 22px;
            height: 22px;
            stroke: #8be4ff;
            stroke-width: 2;
            fill: transparent;
            animation: gemSpin var(--dur,10s) linear forwards
        }

@keyframes gemFall {
    to {
        transform: translateY(110%)
    }
}

@keyframes gemSpin {
    to {
        transform: rotate(540deg)
    }
}

.ap-btn .sep {
    opacity: .6;
    padding: 0 2px
}

/* donate info row */
.donate-info {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    color: #ccc;
    font-size: 15px;
    font-weight: 600;
    margin: 16px 0 14px
}

    .donate-info .sep {
        opacity: .5
    }

    .donate-info span {
        white-space: nowrap
    }

/* mobile: team cards become simple horizontal strips with only title */
@media (max-width: 768px) {
    .team-cards, .team-cards.team-cards--main, .team-cards.team-cards--mini {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .ap-card.team-card {
        padding: 12px 14px;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer
    }

    .team-card .icon, .team-card {
        position: relative;
        overflow: hidden
    }

        .team-card p {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0,0,0,.6);
            color: #fff;
            padding: 10px;
            opacity: 0;
            transition: opacity .3s ease;
            max-height: none;
        }

        .team-card .title-lg {
            font: 800 18px/1.2 'Manrope','Inter';
            margin: 0;
        transition: opacity .3s ease, transform .3s ease;
    }

        .team-card::after {
            left: auto;
            right: 10px;
            top: 10px;
            bottom: 10px;
            width: 5px;
            height: auto;
            border-radius: 999px;
            transform: none
        }
}

/* donate info: stack vertically on phones */
@media (max-width:768px) {
    .donate-info {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        margin: 14px 0 10px;
        font-size: 14px
    }

        .donate-info .sep {
            display: none
        }
}

/* mobile layout for Support+ button */
@media (max-width:768px) {
    .spplus {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px
    }

        .spplus .sep {
            display: none
        }

        .spplus .spplus-title {
            font-weight: 800
        }

        .spplus .spplus-desc {
            line-height: 1.35
        }
}

/* ---------- hover/overlay variants for short viewports (desktop) ---------- */
@media (max-height: 950px) {
    #team .team-card {
        position: relative;
        overflow: hidden
    }

        #team .team-card .title-lg {
            transition: transform .24s ease
        }

        #team .team-card p {
            position: absolute !important;
            left: 16px;
            right: 16px;
            bottom: 12px;
            background: rgba(0,0,0,.55);
            border-radius: 12px;
            padding: 10px 12px;
            color: #e8edf2;
            margin: 0;
            transform: translateY(12px);
            opacity: 0;
            pointer-events: none;
            max-height: none !important;
            text-align: center;
            transition: opacity .22s ease, transform .24s ease;
        }

        #team .team-card::before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: 16px;
            background: rgba(0,0,0,.35);
            opacity: 0;
            transition: opacity .22s ease
        }

        #team .team-card:hover::before {
            opacity: 1
        }

        #team .team-card:hover .title-lg {
            transform: translateY(-12px)
        }

        #team .team-card:hover p {
            opacity: 1 !important;
            transform: translateY(0) !important
        }
}

/* Responsive grid */
.team-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 16px;
    margin-top: 20px;
    justify-items: stretch;
    align-items: stretch;
}

    .team-cards.team-cards--main {
        grid-template-columns: repeat(4,minmax(220px,1fr))
    }

    .team-cards.team-cards--mini {
        grid-template-columns: repeat(4,minmax(260px,1fr));
        gap: 18px;
        max-width: 1400px;
        margin-inline: auto
    }

.team-card {
    flex: 1;
    min-width: 220px;
    max-width: none;
    position: relative;
    transition: transform .3s ease, box-shadow .3s ease, height .3s ease;
    height: 100%
}

    .team-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 26px rgba(0,0,0,.28)
    }

    .team-card::after {
        content: "";
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 10px;
        height: 3px;
        border-radius: 999px;
        opacity: .95;
        transform: scaleX(.9);
        transition: transform .2s ease
    }

    .team-card:hover::after {
        transform: scaleX(1)
    }
    /* role color accents */
    .team-card[data-role="author"]::after {
        background: linear-gradient(90deg,#1a9fd8,#2dbb85)
    }

    .team-card[data-role="editor"]::after {
        background: linear-gradient(90deg,#ffb84d,#ff6b2b)
    }

    .team-card[data-role="dev"]::after {
        background: linear-gradient(90deg,#00d1b2,#66e3ff)
    }

    .team-card[data-role="design"]::after {
        background: linear-gradient(90deg,#c13cff,#ff7bd9)
    }

    .team-card .icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        border: 1px solid var(--b);
        background: rgba(255,255,255,.06);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 8px
    }

        .team-card .icon svg {
            width: 20px;
            height: 20px
        }

    .team-card .title-lg {
        word-break: break-word;
        overflow-wrap: anywhere
    }

/* default overlay text (desktop): hidden – shown on hover */
.team-card {
    position: relative;
    overflow: hidden
}
    .team-card p {
        position: static;
        margin: 8px 0 0;
        background: transparent;
        color: #fff;
        padding: 0;
        opacity: 0;
        max-height: 0;
        transform: translateY(6px);
        transition: opacity .3s ease, transform .3s ease, max-height .3s ease;
    }
/* показывать при hover только на устройствах с ховером */
@media (hover: hover) {
    .team-card:hover p { opacity: 1; max-height: 500px; transform: translateY(0); }
    .team-card:hover .title-lg { opacity: 0; transform: translateY(-6px); }
}


/* mini grid cards */
.team-cards.team-cards--mini .team-card {
    min-width: 240px;
    max-width: none
}

/* subtle section glow */
#team.panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 600px at 50% 10%, rgba(255,255,255,.06), transparent 60%)
}

:root {
    --bg: #000;
    --txt: #e9eef3;
    --mut: #9aa4af;
    --b: rgba(255,255,255,.12);
    --g1: #0bbbd4;
    --g2: #22e0b6;
    --hdr: 80px;
}

* {
    box-sizing: border-box
}

html, body {
    min-height: 100%
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--hdr);
    overscroll-behavior-y: none;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--txt);
    font: 16px/1.6 'Inter',system-ui;
    overflow-y: auto
}

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

.panels {
    min-height: 100%;
    overflow: visible;
    padding-top: 0
}

.panel {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    scroll-snap-stop: always
}

.inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 22px;
    text-align: center
}

.grad-text {
    background: linear-gradient(135deg,var(--g1),var(--g2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.title-xl {
    font: 800 42px/1.15 'Manrope','Inter'
}

.title-lg {
    font: 800 26px/1.2 'Manrope','Inter'
}

.mut {
    color: var(--mut)
}

.ap-card {
    border: 1px solid var(--b);
    border-radius: 16px;
    padding: 20px;
    background: linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.02));
    backdrop-filter: blur(6px)
}

.ap-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    padding: 12px 18px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.02);
    color: #e9eef3;
    font-weight: 800;
    letter-spacing: .2px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 18px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.06);
    transition: transform .18s ease, filter .2s ease, box-shadow .2s ease, background .2s ease
}

    .ap-btn i {
        display: inline-flex
    }

    .ap-btn svg {
        width: 18px;
        height: 18px;
        stroke: currentColor;
        stroke-width: 2.4
    }

    .ap-btn:hover {
        transform: translateY(-1px);
        filter: brightness(1.06);
        box-shadow: 0 10px 26px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.18)
    }

    .ap-btn:active {
        transform: translateY(0)
    }

.ap-btn--primary {
    background: linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.06));
    border-color: rgba(255,255,255,.14)
}

.ap-btn--strip-red::after, .ap-btn--strip-olive::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -1px;
    height: 4px;
    border-radius: 999px;
    opacity: .95;
    transform: scaleX(.92);
    transition: transform .18s ease,opacity .2s ease
}

.ap-btn--strip-red::after {
    background: linear-gradient(90deg,#ff4d5e,#8b0e2d)
}

.ap-btn--strip-olive::after {
    background: linear-gradient(90deg,#0b6b4f,#b08d26)
}

.ap-btn--strip-red:hover::after, .ap-btn--strip-olive:hover::after {
    transform: scaleX(1);
    opacity: 1
}

/* ROADMAP */
.road-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
    gap: 14px;
    margin-top: 14px
}

.faqs {
    max-width: 860px;
    margin: 0 auto
}

details.faq {
    border: 1px solid var(--b);
    border-radius: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,.04)
}

    details.faq + details.faq {
        margin-top: 10px
    }

ul.mini-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    font-size: 15px;
    color: #cfd6de;
    text-align: left
}

    ul.mini-list li::before {
        content: none
    }

/* roadmap items */
.rm-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.rm-text {
    flex: 1
}

ul.mini-list li {
    padding: 8px 0
}

    ul.mini-list li + li {
        border-top: 1px solid rgba(255,255,255,.14)
    }

/* roadmap darker cards */
#roadmap .ap-card {
    background: linear-gradient(180deg,rgba(0,0,0,.46),rgba(0,0,0,.28));
    border-color: rgba(255,255,255,.18)
}

#roadmap .title-lg {
    color: #fff
}

#roadmap .title-xl, #roadmap .road-sub {
    text-shadow: 0 8px 24px rgba(0,0,0,.7)
}

#roadmap .road-sub {
    margin-bottom: 40px
}

#roadmap .mini-list li.idea-special {
    margin-top: 10px;
    padding: 12px;
    border: 1px dashed rgba(255,255,255,.22);
    border-radius: 10px;
    background: rgba(255,255,255,.03)
}

    #roadmap .mini-list li.idea-special + li {
        border-top: 0
    }

/* Roadmap bg overlay */
#roadmap {
    position: relative
}

    #roadmap::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.25) 40%, rgba(0,0,0,.55));
    }

    #roadmap > .inner {
        position: relative;
        z-index: 1
    }

/* Roadmap responsive */
@media (max-width:1100px) {
    #roadmap .road-grid {
        grid-template-columns: repeat(2,minmax(260px,1fr));
        gap: 16px
    }
}

@media (max-width:768px) {
    #roadmap .title-xl {
        font-size: 34px
    }

    #roadmap .road-sub {
        font-size: 16px;
        margin-bottom: 24px
    }

    #roadmap .road-grid {
        grid-template-columns: 1fr;
        gap: 12px
    }

    #roadmap .ap-card {
        padding: 16px;
        border-radius: 14px
    }

    #roadmap .rm-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px
    }

}

/* voting state styles */
#roadmap li.voted-up .rm-like {
    border-color: rgba(34,224,182,.45);
    background: rgba(34,224,182,.12);
    color: #e9f7f3
}

#roadmap li.voted-down .rm-dislike {
    border-color: rgba(255,77,94,.45);
    background: rgba(255,77,94,.12);
    color: #ffe9ec
}

/* nicer mobile cards */
@media (max-width:768px) {
    #roadmap .ap-card {
        background: linear-gradient(180deg,rgba(0,0,0,.62),rgba(0,0,0,.44));
        box-shadow: 0 12px 30px rgba(0,0,0,.45)
    }
}

/* micro-interactions */
#roadmap .mini-list li {
    position: relative
}

@media (hover:hover) {
    #roadmap .mini-list li:hover .rm-item {
        background: rgba(255,255,255,.06);
        border-radius: 10px;
        padding: 6px 8px;
        margin: -6px -8px;
        transition: background .18s ease
    }
}

@media (hover:none) {
    #roadmap .mini-list li:active .rm-item {
        background: rgba(255,255,255,.08);
        border-radius: 10px
    }
}

/* clamp long texts */
#roadmap .rm-text.clamped {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden
}

#roadmap .rm-more {
    border: 0;
    background: transparent;
    color: #9fb9c6;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
    margin-left: 8px
}

    #roadmap .rm-more:focus {
        outline: 2px solid rgba(255,255,255,.25);
        outline-offset: 2px;
        border-radius: 6px
    }

/* CONTACTS */
#contacts {
    position: relative;
    overflow: hidden
}

    #contacts::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.4));
        pointer-events: none;
        z-index: 1
    }

    #contacts .c-stripes {
        position: absolute;
        inset: -25% -10%;
        pointer-events: none;
        z-index: 0
    }

        #contacts .c-stripes .stripe {
            position: absolute;
            left: -10%;
            right: -10%;
            height: 60px;
            border-radius: 999px;
            opacity: .35;
            transform: rotate(18deg) translateY(var(--offset,0));
            animation: stripeSway var(--dur,9s) ease-in-out infinite alternate
        }

@keyframes stripeSway {
    from {
        transform: rotate(18deg) translateY(calc(var(--offset,0) - 6px))
    }

    to {
        transform: rotate(18deg) translateY(calc(var(--offset,0) + 6px))
    }
}

/* contact chips */
#contacts .ap-chip {
    color: #fff;
    font-weight: 800;
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease
}

    #contacts .ap-chip.disabled {
        opacity: .55;
        cursor: not-allowed
    }

    #contacts .ap-chip.ap-chip--action {
        border-color: rgba(255,255,255,.22);
        background: rgba(255,255,255,.06);
        font-weight: 800
    }

    #contacts .ap-chip:not(.disabled):not(.ap-chip--plain):hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 26px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.12);
        border-color: rgba(255,255,255,.22);
        background: rgba(255,255,255,.08)
    }

    #contacts .ap-chip:not(.disabled):not(.ap-chip--plain):focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(11,187,212,.35)
    }

    #contacts .ap-chip i {
        transition: transform .18s ease, opacity .18s ease
    }

    #contacts .ap-chip:not(.disabled):not(.ap-chip--plain):hover i {
        transform: translateY(-1px)
    }

    #contacts .ap-chip:not(.disabled):not(.ap-chip--plain)::after {
        content: "";
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: -1px;
        height: 3px;
        border-radius: 999px;
        background: linear-gradient(90deg,var(--g1),var(--g2));
        opacity: .85;
        transform: scaleX(.85);
        transition: transform .2s ease,opacity .2s ease;
        pointer-events: none
    }

    #contacts .ap-chip:not(.disabled):not(.ap-chip--plain):hover::after {
        transform: scaleX(1);
        opacity: 1
    }

    #contacts .ap-chip:not(.disabled):not(.ap-chip--plain)::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: -30%;
        width: 30%;
        background: linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.15),rgba(255,255,255,0));
        transform: skewX(-20deg) translateX(-120%);
        transition: transform .45s ease;
        pointer-events: none
    }

    #contacts .ap-chip:not(.disabled):not(.ap-chip--plain):hover::before {
        transform: skewX(-20deg) translateX(280%)
    }

#contacts .ap-chip--plain {
    background: rgba(255,255,255,.03);
    cursor: default
}

#contacts, #contacts * {
    font-family: 'Manrope','Inter',system-ui
}

    #contacts .ap-chip.copied {
        box-shadow: 0 0 0 2px rgba(34,224,182,.35) inset
    }

    /* contacts layout */
    #contacts > .inner {
        position: relative;
        z-index: 2
    }

    #contacts .contact-list {
        max-width: 1200px;
        margin: 10px auto 0;
        display: grid;
        grid-template-columns: repeat(5,minmax(200px,1fr));
        gap: 14px 22px;
        align-items: start;
        justify-items: center
    }

    #contacts .contact-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px
    }

        #contacts .contact-item .note {
            color: #ccc;
            font-weight: 800;
            font-size: 13px;
            text-align: center;
            opacity: .95
        }

@media (max-width:1100px) {
    #contacts .contact-list {
        grid-template-columns: repeat(3,minmax(220px,1fr))
    }
}

@media (max-width:820px) {
    #contacts .contact-list {
        grid-template-columns: repeat(2,minmax(220px,1fr))
    }
}

@media (max-width:560px) {
    #contacts .contact-list {
        grid-template-columns: 1fr
    }
}

/* === MOBILE OVERRIDES (<=900px) ==================================== */
/* отключаем автоскролл/снэп на телефонах; секции становятся обычными блоками */
@media (max-width:768px) {
    html {
        scroll-behavior: auto
    }
    /* без плавной автодокрутки */
    .panel {
        min-height: auto; /* не тянем секцию на весь экран */
        scroll-snap-align: none;
        scroll-snap-stop: normal;
        padding-block: 28px;
    }

    .section-bar {
        display: none !important
    }
    /* фикс бар слева скрываем */

    /* команда — всегда одна колонка */
    .team-cards, .team-cards.team-cards--main, .team-cards.team-cards--mini {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    .team-card {
        width: 100%;
        max-width: 100%
    }

    /* скрываем логотип в первом экране */
    .logo-wrap {
        display: none !important
    }
}

/* === FIX PATCH: карточки команды =================================== */
/* 1) На высоких экранах описание НЕ показываем само по себе */
@media (min-height:951px) {
    #team .team-card:not(.card-expanded) p {
        opacity: 0 !important;
        position: absolute !important;
        pointer-events: none !important;
    }

    @media (hover:hover) {
        #team .team-card:hover p {
            opacity: 1 !important
        }
    }
}

/* 2) На мобилках описания скрыты, видны только в раскрытой карточке */
@media (max-width:768px) {
    #team .team-card p {
        opacity: 0 !important;
        visibility: hidden !important;
        max-height: 0 !important;
    }

    #team .team-card.card-expanded p {
        opacity: 1 !important;
        visibility: visible !important;
        max-height: none !important;
    }
    /* отключаем hover-логику на тач-устройствах */
    #team .team-card:hover p {
        opacity: 0 !important
    }
}

/* === Mobile/Team fixes (append at file end) =============================== */

/* Скрыть большой логотип в первом экране на телефонах */
@media (max-width: 900px) {
    .panel.intro .logo-wrap,
    #intro .logo-wrap,
    .intro .logo-wrap {
        display: none !important;
    }
}

/* На мобилках полностью убираем snap-скролл (дублируем защитой из CSS) */
@media (max-width: 900px) {
    .panels {
        scroll-snap-type: none !important;
    }

    .panel {
        scroll-snap-align: none !important;
        scroll-snap-stop: normal !important;
    }
}

/* === custom hover animations for team cards === */
.team-card .title-lg {
    transition: opacity .3s ease, transform .3s ease;
}

.team-card p {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,.6);
    color: #fff;
    padding: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .35s ease, transform .35s ease;
    max-height: none;
}

/* эффекты при hover */
.team-card:hover .title-lg {
    opacity: 0;
    transform: translateY(-10px);
}

.team-card:hover p {
    opacity: 1;
    transform: translateY(0);
}

/* плавное растяжение карточки */
.team-card {
    flex: 1;
    min-width: 220px;
    max-width: none;
    position: relative;
    transition: transform .3s ease, box-shadow .3s ease, height .3s ease;
}

/* === TEAM hover behavior: fade out icon+title, show only centered description (no bg) === */
.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-card .icon {
    transition: opacity .3s ease, transform .3s ease;
}

.team-card .title-lg {
    transition: opacity .3s ease, transform .3s ease;
}

/* base: description hidden and without overlay */
#team .team-card p {
    position: static !important;
    background: transparent !important;
    color: #fff;
    margin: 8px 0 0;
    opacity: 0;
    max-height: 0;
    transform: translateY(6px);
    transition: opacity .3s ease, transform .3s ease, max-height .3s ease;
}

/* desktop hover */
@media (hover:hover) {
    #team .team-card:hover {
        justify-content: center;
    }
    #team .team-card:hover .icon,
    #team .team-card:hover .title-lg {
        opacity: 0;
        transform: translateY(-6px);
    }
    #team .team-card:hover p {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
        margin: 0;
        background: transparent !important;
    }
}

/* short viewports: cancel old absolute overlay on hover as well */
@media (max-height: 950px) and (hover:hover) {
    #team .team-card:hover p {
        position: static !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        padding: 0 !important;
        border-radius: 0 !important;
        text-align: center !important;
    }
}


/* === TEAM — unified hover behavior (icon+title fade out, description slides up, no bg, tile expands) === */
#team .team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* smooth bar fade as well */
#team .team-card::after {
    transition: transform .2s ease, opacity .2s ease;
}

/* transitions for title & icon */
#team .team-card .icon,
#team .team-card .title-lg {
    transition: opacity .3s ease, transform .3s ease;
}

/* base: keep description hidden in flow (so height can animate) */
#team .team-card p {
    position: static !important;
    margin: 0;
    padding: 0;
    background: transparent !important;
    color: #fff;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(12px);
    transition: opacity .35s ease, transform .35s ease, max-height .35s ease;
}

/* kill dark overlay variant from earlier rules */
#team .team-card::before,
#team .team-card:hover::before {
    opacity: 0 !important;
}

/* hover: hide icon+title+bar; slide description from bottom; allow tile to expand */
@media (hover:hover) {
    #team .team-card:hover .icon,
    #team .team-card:hover .title-lg {
        opacity: 0;
        transform: translateY(-8px);
    }
    #team .team-card:hover::after {
        opacity: 0;
    }
    #team .team-card:hover p {
        opacity: 1;
        transform: translateY(0);
        max-height: 1000px; /* enough to expand smoothly */
    }
}

/* short viewports: keep same behavior (override old absolute overlay) */
@media (max-height: 950px) {
    #team .team-card p {
        position: static !important;
        padding: 0 !important;
        border-radius: 0 !important;
        text-align: center !important;
    }
}


/* === TEAM — robust hover & touch behavior (final) ========================= */
#team .team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
#team .team-card p {
    position: static !important;
    margin: 0;
    padding: 0;
    background: transparent !important;
    color: #fff;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(12px);
    transition: opacity .35s ease, transform .35s ease, max-height .35s ease;
}
#team .team-card .icon,
#team .team-card .title-lg {
    transition: opacity .3s ease, transform .3s ease;
}
#team .team-card::after { transition: transform .2s ease, opacity .2s ease; }

@media (hover:hover) {
    #team .team-card:hover { justify-content: center; }
    #team .team-card:hover .icon,
    #team .team-card:hover .title-lg {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-8px);
    }
    #team .team-card:hover::after { opacity: 0 !important; }
    
    /* === START: ИЗМЕНЕНИЕ ЗДЕСЬ === */
    #team .team-card:hover p {
        opacity: 1 !important;
        max-height: 1000px !important;
        background: transparent !important;
        
        /* Новые правила для центрирования */
        position: absolute !important;     /* Вырываем из потока flex */
        top: 50%;                       /* Центрируем по вертикали */
        left: 16px;                     /* Отступ слева */
        right: 16px;                    /* Отступ справа */
        width: auto;                    /* Ширина по отступам */
        transform: translateY(-50%) !important; /* Коррекция вертикального центра */
        padding: 0;
        margin: 0;
    }
    /* === END: ИЗМЕНЕНИЕ ЗДЕСЬ === */
}

@media (max-height: 950px) {
    #team .team-card::before,
    #team .team-card:hover::before { opacity: 0 !important; }
    #team .team-card p {
        position: static !important;
        left: auto !important; right: auto !important; bottom: auto !important;
        padding: 0 !important; border-radius: 0 !important;
        background: transparent !important;
        pointer-events: auto !important;
        text-align: center !important;
    }
    
    /* Применяем тот же фикс центрирования для низких экранов */
    @media (hover:hover) {
        #team .team-card:hover p {
            position: absolute !important;
            top: 50%;
            left: 16px;
            right: 16px;
            width: auto;
            transform: translateY(-50%) !important;
            padding: 0;
            margin: 0;
        }
    }
}

/* Touch devices */
@media (hover:none) {
    #team .team-card.card-expanded { justify-content: center; }
    #team .team-card.card-expanded .icon,
    #team .team-card.card-expanded .title-lg {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateY(-8px);
    }
    #team .team-card.card-expanded::after { opacity: 0 !important; }
    #team .team-card.card-expanded p {
        opacity: 1 !important;
        transform: translateY(0) !important;
        max-height: 1000px !important;
        background: transparent !important;
        
        /* Тот же фикс для тач-устройств в раскрытом состоянии */
        position: absolute !important;
        top: 50%;
        left: 16px;
        right: 16px;
        width: auto;
        padding: 0;
        margin: 0;
    }
}


/* support buttons container: wrap & avoid overflow on phones */
.support-btns{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:8px;
    margin:28px 0;
}


/* team grids: 4 -> 2 columns at 1200px, 1 column at 768px */
@media (max-width:1200px){
  .team-cards.team-cards--main,
  .team-cards.team-cards--mini{
    grid-template-columns: repeat(2, minmax(220px,1fr));
  }
}
@media (max-width:768px){
  .team-cards,
  .team-cards.team-cards--main,
  .team-cards.team-cards--mini{
    grid-template-columns: 1fr !important;
  }
}


/* hero title offset from 900px */
@media (min-width:900px){
  .hero-title{ margin-top:80px; }
}


/* contacts pills: centered left icon and clearer outline */
#contacts .ap-chip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 16px 10px 44px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
}
#contacts .ap-chip i{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
}



/* === PATCH 2025-09-07 — contacts pills, support section mobile min-height, hero title margin === */

/* 1) Contacts pills: tidy base appearance (keep existing hovers) */
#contacts .ap-chip{
  position: relative;                 /* for absolute icon */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 48px;       /* room for icon */
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  line-height: 1.2;
  vertical-align: middle;
}
#contacts .ap-chip i{
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* 2) Support section: full-viewport height on narrow screens + no sideways overflow */
@media (max-width:768px){
  #support{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  #support .inner{ 
    overflow-x: hidden;
  }
  #support *{
    max-width: 100%;
    box-sizing: border-box;
  }
  .support-btns{ 
    justify-content: center; 
    align-items: center;
  }
  .support-btns .ap-btn{
    max-width: 100%;
    white-space: normal;               /* allow wrapping text */
  }
  .spplus{
    flex-wrap: wrap;
    text-align: center;
  }
  .spplus .sep{ display:none; }
}

/* 3) Hero-title small-screen spacing */
@media (max-width:768px){
  .hero-title{ margin-top:20px; }
}



/* === Contacts pills layout fix (grid, no fake left padding), bigger icon on 2-line === */
#contacts .ap-btn{
  position: relative;
  display: grid;                  /* icon + text */
  grid-template-columns: 24px auto;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;             /* symmetrical paddings */
}
#contacts .ap-btn i{              /* stop absolute tricks inside buttons in contacts */
  position: static !important;
  transform: none !important;
  left: auto; top: auto;
  display: inline-flex;
}
#contacts .ap-btn svg{
  width: 22px;
  height: 22px;
}

/* tighten single-line pills a bit */
#contacts .ap-btn .ap-chip__label{ display:inline-block; }

/* in case some pill uses .ap-chip instead of .ap-btn, keep same visual */
#contacts .ap-chip{
  position: relative;
  display: grid;
  grid-template-columns: 24px auto;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
}
#contacts .ap-chip i{
  position: static;
  transform:none;
}
#contacts .ap-chip svg{ width:22px; height:22px; }


/* Contacts: extend panel 5px on phones to hide bottom seam */
@media (max-width:768px){
  #contacts{ 
    min-height: calc(100svh + 5px);
    min-height: calc(100dvh + 5px);
  }
}