@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Poppins:wght@500;700&display=swap');

:root {
    --color-background: #05070b;
    --color-background-soft: #0d1017;
    --color-surface: rgba(15, 18, 27, 0.78);
    --color-surface-strong: rgba(18, 22, 32, 0.92);
    --color-white: #ffffff;
    --color-text: rgba(255, 255, 255, 0.86);
    --color-muted: rgba(255, 255, 255, 0.60);
    --color-border: rgba(255, 255, 255, 0.10);
    --color-border-strong: rgba(255, 255, 255, 0.18);
    --color-accent: #ea61fb;
    --color-accent-soft: rgba(234, 97, 251, 0.18);
    --color-accent-secondary: #786dff;
    --gradient-2: linear-gradient(135deg, #d95bf3 0%, #8a58f4 100%);
    --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.28);
    --shadow-strong: 0 24px 62px rgba(0, 0, 0, 0.40);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at 12% 10%, rgba(234, 97, 251, 0.16), transparent 24%),
        radial-gradient(circle at 88% 14%, rgba(120, 109, 255, 0.13), transparent 20%),
        linear-gradient(180deg, #05070b 0%, #0a0d13 38%, #06080c 100%);
    color: var(--color-text);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

.wrapper {
    position: relative;
    overflow: hidden;
}

.wrapper::before,
.wrapper::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.wrapper::before {
    width: 320px;
    height: 320px;
    top: 220px;
    left: -140px;
    background: rgba(234, 97, 251, 0.10);
}

.wrapper::after {
    width: 360px;
    height: 360px;
    top: 860px;
    right: -160px;
    background: rgba(120, 109, 255, 0.09);
}

.wrapper > * {
    position: relative;
    z-index: 1;
}

.cont {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-right: 18px;
    padding-left: 18px;
}

.cont-small {
    max-width: 1140px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo img {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 8px 14px rgba(234, 97, 251, 0.16));
}

.logo-text {
    color: var(--color-white);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 28px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    color: var(--color-white);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-w {
    width: 100%;
}

.button-s1 {
    background: var(--gradient-2);
    color: #0f0716;
    box-shadow: 0 12px 28px rgba(210, 60, 255, 0.18);
}

.button-s1:hover {
    box-shadow: 0 16px 32px rgba(210, 60, 255, 0.22);
}

.button-s2 {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.button-s2:hover {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.08);
}

.title {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 60px;
    position: relative;
}

.title::after {
    content: "";
    width: 82px;
    height: 4px;
    border-radius: 999px;
    background: var(--gradient-2);
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    box-shadow: 0 12px 28px rgba(234, 97, 251, 0.34);
}

/* Navigation */

.nav {
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: padding 0.22s ease, background-color 0.22s ease;
}

.nav .cont {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(9, 11, 16, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    padding-top: 15px;
    padding-bottom: 15px;
}

.nav.nav-scrolled {
    padding: 14px 0;
}

.nav.nav-scrolled .cont {
    background: rgba(9, 11, 16, 0.90);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

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

.nav-list {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 0;
}

.nav-list_item {
    opacity: 1;
}

.nav-list_link {
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-list_link:hover {
    background: rgba(255, 255, 255, 0.045);
    color: var(--color-white);
    transform: translateY(-1px);
}

.nav-list_link img {
    width: 16px;
    height: 16px;
    opacity: 0.84;
}

.burger {
    display: none;
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.burger:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}

.burger-line {
    height: 2px;
    width: 54%;
    background-color: rgba(255, 255, 255, 0.85);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease-in-out, top 0.2s ease-in-out, opacity 0.12s ease-out;
}

.burger-line:first-child {
    top: 34%;
}

.burger-line:last-child {
    top: 66%;
}

.nav.active .cont {
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.nav.active .burger-line {
    opacity: 0;
}

.nav.active .burger-line:first-child {
    top: 50%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg);
}

.nav.active .burger-line:last-child {
    top: 50%;
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.nav.active .nav-content {
    position: absolute;
    top: calc(100% + 14px);
    left: 18px;
    right: 18px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    background: rgba(10, 12, 18, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

.nav.active .nav-list {
    flex-direction: column;
    align-items: stretch;
    margin-right: 0;
}

.nav.active .nav-list_link {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
}

.nav.active .button-s1 {
    width: 100%;
    text-align: center;
}

/* Footer */

.footer {
    padding: 110px 0 42px;
}

.footer .cont {
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(18, 22, 32, 0.94), rgba(10, 12, 18, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 34px;
    padding-top: 42px;
    padding-bottom: 34px;
    box-shadow: var(--shadow-soft);
}

.footer-logo {
    margin: 0 auto 36px;
}

.footer-content {
    margin-bottom: 34px;
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.footer-block {
    flex-basis: 100%;
}

.footer-block2 {
    text-align: end;
}

.footer-block_title {
    color: rgba(255, 255, 255, 0.94);
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.footer-list_item:not(:last-child) {
    margin-bottom: 12px;
}

.footer-list_link {
    color: rgba(255, 226, 255, 0.74);
    font-weight: 500;
    transition: color 0.18s ease, transform 0.18s ease;
}

.footer-list_link:hover {
    color: rgba(255, 255, 255, 0.98);
}

.footer-support {
    font-weight: 500;
    line-height: 1.7;
    flex-basis: 150%;
    text-align: center;
    align-self: center;
    color: var(--color-muted);
    max-width: 360px;
}

.footer-support_link {
    color: rgba(255, 228, 255, 0.84);
}

.footer-support_link:hover {
    text-decoration: underline;
}

.copyright {
    text-align: center;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.64);
}

.copyright-link {
    color: rgba(255, 226, 255, 0.74);
}

.copyright-link:hover {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .nav-content {
        display: none;
    }

    .burger {
        display: block;
    }

    .footer-content {
        flex-wrap: wrap;
    }

    .footer-block2 {
        text-align: start;
    }

    .footer-support {
        order: 3;
        max-width: none;
    }
}

@media (max-width: 850px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .nav {
        padding: 14px 0;
    }

    .nav .cont {
        border-radius: 26px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .button {
        min-height: 48px;
        padding: 12px 22px;
    }

    .footer {
        padding-top: 90px;
    }

    .footer .cont {
        border-radius: 26px;
        padding-top: 32px;
        padding-bottom: 26px;
    }
}
