@font-face {
    font-family: "Nunito";
    src: url("./fonts/nunito-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 1000;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Rubik";
    src: url("./fonts/Rubik-Variable.ttf") format("truetype");
    font-weight: 300 900;
    font-style: normal;
    font-display: swap;
}

html,
body {
    height: 100%;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: #11191d;
    color: #f4f6f7;
    font-family: "Nunito", sans-serif;
    position: relative;
    overflow-x: hidden;
    -webkit-user-select: none;
    user-select: none;
}

body:lang(ru) {
    font-family: "Rubik", "Nunito", sans-serif;
}

.hero__title-line:lang(ru) {
    font-family: "Rubik", "Nunito", sans-serif;
    font-weight: 600;
    font-synthesis: none;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(to bottom, #0f1416 0%, #131a1d 48%, #101618 100%),
        radial-gradient(circle at top center, rgba(45, 146, 171, 0.12), transparent 36%);
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(45, 146, 171, 0.9);
    z-index: -1;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px 0;
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #2D92AB;
    text-decoration: none;
}

.brand__logo {
    width: 34px;
    height: 34px;
    display: block;
    object-fit: contain;
}

.brand__name {
    font-family: "Nunito", sans-serif;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(90deg, #2D92AB 0%, #95C487 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.socials {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.language-switcher {
    position: relative;
}

.language-switcher__button {
    all: unset;
    box-sizing: border-box;
    min-width: 56px;
    height: 44px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    border: 1px solid rgba(149, 196, 135, 0.6);
    background: rgba(12, 20, 23, 0.92);
    color: #95C487;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.language-switcher__button:hover {
    transform: translateY(-1px);
    border-color: rgba(149, 196, 135, 0.6);
    background: rgba(16, 27, 31, 0.98);
}

.language-switcher__button:focus-visible {
    outline: 2px solid rgba(149, 196, 135, 0.65);
    outline-offset: 2px;
}

.language-switcher__current {
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.04em;
}

.language-switcher__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 0;
    width: max-content;
    padding: 8px;
    display: grid;
    gap: 4px;
    border: 1px solid rgba(45, 146, 171, 0.25);
    border-radius: 10px;
    background: rgba(15, 23, 26, 0.98);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(10px);
    z-index: 5;
}

.language-switcher__menu[hidden] {
    display: none !important;
}

.language-switcher__option {
    all: unset;
    box-sizing: border-box;
    width: auto;
    display: grid;
    grid-template-columns: 34px 86px auto;
    column-gap: 1px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    color: #dfe3e6;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease;
}

.language-switcher__option:hover,
.language-switcher__option:focus-visible,
.language-switcher__option.is-active {
    background: rgba(45, 146, 171, 0.14);
    color: #9ad4e2;
}

.language-switcher__option-code {
    color: #2D92AB;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.language-switcher__option-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

html:lang(ru) .language-switcher__option-name {
    font-weight: 500;
}

.language-switcher__option-name--ru {
    font-weight: 400 !important;
}

.language-switcher__option-text {
    display: block;
    width: 86px;
    min-width: 86px;
}

.language-switcher__option-note {
    justify-self: start;
    color: #6d7a7e;
    font-size: 9px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.015em;
    padding: 2px 4px;
    border: 1px solid rgba(127, 141, 146, 0.16);
    border-radius: 999px;
    white-space: nowrap;
    text-transform: uppercase;
    opacity: 0.8;
    margin-left: 6px;
}

.socials__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #2D92AB;
    text-decoration: none;
    opacity: 0.95;
    transition: transform 160ms ease, opacity 160ms ease;
}

.socials__link:hover {
    transform: translateY(-1px);
    opacity: 1;
}

.socials__icon {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
}

.socials__icon--telegram {
    width: 29px;
    height: 29px;
}

.socials__icon--x {
    width: 27px;
    height: 29px;
}

.socials__icon--tiktok {
    width: 29px;
    height: 29px;
}

.socials__icon--discord {
    width: 40px;
    height: 30px;
}

.hero {
    min-height: calc(100vh - 58px);
    display: grid;
    place-items: center;
    padding: 16px 24px 40px;
    box-sizing: border-box;
}

.hero__inner {
    width: min(100%, 640px);
    text-align: center;
    transform: translateY(2px);
}

html:lang(ru) .hero__inner {
    width: min(100%, 980px);
}

html:lang(pt) .hero__inner {
    width: min(100%, 880px);
}

.hero__title {
    margin: 0;
}

.hero__title-line {
    display: block;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.hero__title-line--light {
    color: #DFE3E6;
    font-size: 70px;
}

.hero__title-line--accent {
    margin-top: 2px;
    color: #2D92AB;
    font-size: 70px;
}

html:lang(ru) .hero__title-line--light,
html:lang(ru) .hero__title-line--accent {
    text-transform: none;
    letter-spacing: -0.055em;
    line-height: 0.96;
}

html:lang(ru) .hero__title-line--light {
    font-size: 86px;
}

html:lang(ru) .hero__title-line--accent {
    margin-top: 10px;
    font-size: 92px;
}

html:lang(pt) .hero__title-line--accent {
    font-size: 60px;
}

html:lang(de) .hero__title-line--light,
html:lang(de) .hero__title-line--accent {
    letter-spacing: -0.001em;
}

html:lang(ru) .hero__subtitle {
    width: min(100%, 620px);
    margin-top: 34px;
    font-size: 27px;
    line-height: 1.42;
}

.hero__subtitle {
    width: min(100%, 430px);
    margin: 26px auto 0;
    color: #BEC8CC;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.28;
}

.hero__actions {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    margin-top: 30px;
}

.hero__action-group {
    width: min(100%, 256px);
}

html:lang(ru) .hero__action-group,
html:lang(es) .hero__action-group {
    width: min(100%, 280px);
}

.hero__action-group--primary {
    text-align: left;
}

.hero__cta {
    all: unset;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 80px;
    min-height: 80px;
    padding: 0 24px 2px;
    border-radius: 5px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 0;
    box-shadow: none !important;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        filter 180ms ease,
        background-color 180ms ease;
    cursor: pointer;
}

html:lang(ru) .hero__cta {
    font-weight: 500;
}

html:lang(ru) .hero__cta--secondary,
html:lang(es) .hero__cta--secondary {
    font-size: 28px;
}

.hero__cta--primary {
    background: #95C487;
    color: #12181B;
}

.hero__cta--secondary {
    background: transparent;
    border-color: #95C487;
    border-width: 1px;
    color: #95C487;
}

.hero__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
    filter: none;
}

.hero__cta--primary:hover {
    background: #a3cf90;
}

.hero__cta--secondary:hover {
    background: rgba(149, 196, 135, 0.08);
}

.hero__hint {
    margin: 8px 0 0;
    color: #8EA1A6;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

.hero__scroll {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px;
    color: #9cc788;
    animation: hero-scroll-bounce 1.8s ease-in-out infinite;
}

.hero__scroll svg {
    width: 28px;
    height: 28px;
    display: block;
}

@keyframes hero-scroll-bounce {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.9;
    }

    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

.how-to-start {
    background: #1B2326;
    padding: 58px 24px 64px;
}

.how-to-start__inner {
    width: min(100%, 980px);
    margin: 0 auto;
}

.how-to-start__header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.how-to-start__title {
    margin: 0;
    color: #DFE3E6;
    font-size: 50px;
    font-weight: 900;
    line-height: 1.08;
}

.how-to-start__line {
    width: 100px;
    height: 4px;
    margin-top: 8px;
    background: #2D92AB;
}

.how-to-start__content {
    margin-top: 36px;
}

.steps {
    display: grid;
    gap: 0;
}

.step {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 132px;
    column-gap: 24px;
    align-items: center;
    min-height: 132px;
}

.step__icon-column {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 96px;
}

.step__icon-box {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222C30;
    border: 1px solid rgba(45, 146, 171, 0.3);
    border-radius: 5px;
}

.step__connector {
    position: absolute;
    top: 96px;
    left: 50%;
    width: 2px;
    height: 36px;
    display: block;
    object-fit: fill;
    transform: translateX(-50%);
}

.step__icon {
    display: block;
    object-fit: contain;
}

.step__icon--community {
    width: 48px;
    height: 30px;
}

.step__icon--search {
    width: 48px;
    height: 48px;
}

.step__icon--play {
    width: 50px;
    height: 50px;
}

.step__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 96px;
}

.step__title {
    margin: 0;
    color: #DFE3E6;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.15;
}

.step__description {
    margin: 8px 0 0;
    max-width: 520px;
    color: #BEC8CC;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.35;
}

.step__art {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    width: 132px;
    min-height: 96px;
}

.step__art--community {
    gap: 16px;
}

.step__art-link {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    box-shadow: none !important;
    border-radius: 0;
    text-decoration: none;
    transition: transform 180ms ease, filter 180ms ease;
    cursor: pointer;
}

.hero__cta:focus,
.hero__cta:focus-visible,
.step__art-link:focus,
.step__art-link:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.step__art-link:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.step__art-icon {
    display: block;
    object-fit: contain;
}

.step__art-icon--telegram {
    width: 56px;
    height: 56px;
}

.step__art-icon--discord {
    width: 74px;
    height: 56px;
}

.step__art-icon--file {
    width: 50px;
    height: 59px;
}

.step__art-icon--upload {
    width: 50px;
    height: 88px;
}

.site-footer {
    background: #0F1416;
    padding: 18px 24px;
}

.site-footer__inner {
    width: min(100%, 1320px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.site-footer__logo {
    width: 32px;
    height: 32px;
    display: block;
    object-fit: contain;
}

.site-footer__name {
    font-family: "Nunito", sans-serif;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(90deg, #2D92AB 0%, #95C487 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-footer__meta {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-footer__support {
    color: #B7C6C9;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
}

.site-footer__copyright {
    margin: 0;
    color: #BEC8CC;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
}

@media (max-width: 640px) {
    .site-header {
        padding: 18px 18px 0;
    }

    .header-actions {
        gap: 8px;
    }

    .language-switcher__button {
        min-width: 48px;
        height: 38px;
        padding: 0 11px;
    }

    .language-switcher__current {
        font-size: 18px;
    }

    .language-switcher__menu {
        width: max-content;
        min-width: 0;
    }

    .brand {
        gap: 9px;
    }

    .brand__logo {
        width: 28px;
        height: 28px;
    }

    .brand__name {
        font-size: 20px;
    }

    .socials {
        gap: 6px;
    }

    .socials__link {
        width: 24px;
        height: 24px;
    }

    .socials__icon {
        width: 24px;
        height: 24px;
    }

    .socials__icon--telegram {
        width: 24px;
        height: 24px;
    }

    .socials__icon--x {
        width: 24px;
        height: 24px;
    }

    .socials__icon--tiktok {
        width: 24px;
        height: 24px;
    }

    .socials__icon--discord {
        width: 31px;
        height: 29px;
    }

    .hero {
        min-height: calc(100vh - 46px);
        padding: 12px 20px 34px;
    }

    .hero__inner {
        width: min(100%, 340px);
        transform: translateY(12px);
    }

    html:lang(ru) .hero__inner {
        width: min(100%, 100%);
    }

    html:lang(pt) .hero__inner {
        width: min(100%, 100%);
    }

    html:lang(ru) .hero__title-line--light {
        font-size: clamp(3.8rem, 14vw, 86px);
    }

    html:lang(ru) .hero__title-line--accent {
        margin-top: 6px;
        font-size: clamp(3.5rem, 13.4vw, 92px);
    }

    html:lang(pt) .hero__title-line--accent {
        font-size: clamp(3rem, 11.5vw, 60px);
    }

    html:lang(ru) .hero__subtitle {
        width: min(100%, 320px);
        margin-top: 24px;
        font-size: clamp(1.05rem, 5vw, 27px);
        line-height: 1.34;
    }

    .hero__title-line--light,
    .hero__title-line--accent {
        font-size: clamp(3rem, 13.2vw, 70px);
    }

    .hero__title-line--accent {
        margin-top: 2px;
    }

    .hero__subtitle {
        margin-top: 22px;
        width: min(100%, 300px);
        font-size: clamp(1.05rem, 4.4vw, 23px);
        line-height: 1.28;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        margin-top: 24px;
    }

    .hero__action-group {
        width: min(100%, 256px);
    }

    html:lang(ru) .hero__action-group,
    html:lang(es) .hero__action-group {
        width: min(100%, 280px);
    }

    .hero__action-group--primary {
        text-align: center;
    }

    .hero__cta {
        height: 80px;
        min-height: 80px;
        font-size: 30px;
        padding: 0 20px 2px;
    }

    .hero__hint {
        margin-top: 8px;
        text-align: center;
    }

    .hero__scroll {
        margin-top: 18px;
    }

    .how-to-start {
        padding: 48px 20px 56px;
    }

    .how-to-start__title {
        font-size: 40px;
    }

    .how-to-start__content {
        margin-top: 30px;
    }

    .steps {
        gap: 0;
    }

    .step {
        grid-template-columns: 72px minmax(0, 1fr) 68px;
        column-gap: 12px;
        align-items: center;
        min-height: 116px;
    }

    .step__icon-column {
        height: 72px;
    }

    .step__icon-box {
        width: 72px;
        height: 72px;
        border-radius: 10px;
    }

    .step__icon--community {
        width: 32px;
        height: 23px;
    }

    .step__icon--search,
    .step__icon--play {
        width: 34px;
        height: 34px;
    }

    .step__connector {
        top: 72px;
        height: 36px;
    }

    .step__title {
        font-size: 19px;
        line-height: 1.1;
    }

    .step__description {
        margin-top: 6px;
        font-size: 13px;
        line-height: 1.25;
    }

    .step__art {
        display: flex;
        width: 68px;
        min-height: 72px;
        justify-self: end;
    }

    .step__art--community {
        flex-direction: column;
        gap: 8px;
    }

    .step__art-icon--telegram {
        width: 28px;
        height: 28px;
    }

    .step__art-icon--discord {
        width: 36px;
        height: 28px;
    }

    .step__art-icon--file {
        width: 30px;
        height: 36px;
    }

    .step__art-icon--upload {
        width: 30px;
        height: 50px;
    }

    .site-footer {
        padding: 20px;
    }

    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .site-footer__meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}
