body {
    background:
        radial-gradient(circle at 15% 5%, rgba(139, 53, 255, 0.16), transparent 28rem),
        radial-gradient(circle at 85% 18%, rgba(108, 44, 255, 0.18), transparent 30rem),
        linear-gradient(180deg, var(--bg), var(--bg-2) 38%, var(--bg-3));
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
}

body.menu-open,
body.modal-open {
    overflow: hidden;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 9, 0.74);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 80px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand {
    flex: 0 0 auto;
}

.brand img {
    width: 154px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    flex: 1;
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    font-weight: 600;
    padding: 28px 0;
    transition: color .25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 17px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #7b2cff, #c77dff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: #fff;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: #fff;
    transition: transform .25s ease, opacity .25s ease;
}

.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.contact-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 15%, rgba(139, 53, 255, .24), transparent 34rem),
        rgba(2, 2, 7, .76);
    backdrop-filter: blur(12px);
}

.contact-modal__dialog {
    position: relative;
    width: min(calc(100vw - 48px), 560px);
    max-height: min(88vh, 720px);
    overflow: auto;
    border-radius: 24px;
    transform: translateY(18px) scale(.98);
    transition: transform .25s ease;
}

.contact-modal.is-open .contact-modal__dialog {
    transform: translateY(0) scale(1);
}

.contact-form-modal {
    padding: 30px;
    border-color: rgba(199, 125, 255, .22);
    border-radius: 24px;
    box-shadow:
        0 24px 90px rgba(0, 0, 0, .58),
        0 0 70px rgba(139, 53, 255, .18),
        inset 0 1px 0 rgba(255, 255, 255, .05);
}

.contact-form-modal h2 {
    padding-right: 54px;
    font-size: 24px;
}

.contact-form-modal label {
    margin-top: 14px;
}

.contact-form-modal input,
.contact-form-modal select,
.contact-form-modal textarea {
    min-height: 48px;
    border-radius: 10px;
}

.contact-form-modal textarea {
    min-height: 104px;
}

.contact-form-modal .form-row {
    gap: 14px;
}

.contact-form-modal .form-submit {
    min-height: 50px;
    margin-top: 18px;
}

.contact-form-modal .form-note {
    margin-top: 14px;
    font-size: 13px;
}

.contact-modal__close {
    appearance: none;
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(199, 125, 255, .42);
    background: rgba(139, 53, 255, .16);
    color: var(--purple-light);
    font-size: 0;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 0 22px rgba(139, 53, 255, .18);
    transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.contact-modal__close:hover {
    background: rgba(139, 53, 255, .28);
    border-color: rgba(199, 125, 255, .68);
    box-shadow: 0 0 28px rgba(139, 53, 255, .32);
    transform: rotate(90deg);
}

.contact-modal__close::before,
.contact-modal__close::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.contact-modal__close::before {
    transform: rotate(45deg);
}

.contact-modal__close::after {
    transform: rotate(-45deg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 12px;
    border: 1px solid rgba(199, 125, 255, 0.5);
    background: linear-gradient(135deg, var(--purple-3), var(--purple));
    color: #fff;
    font-weight: 700;
    box-shadow: 0 12px 36px rgba(139, 53, 255, 0.32);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 52px rgba(139, 53, 255, 0.48);
}

.btn-small {
    min-height: 42px;
    padding-inline: 20px;
    font-size: 14px;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
}

.eyebrow,
.badge {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 18px;
    padding: 5px 12px;
    border: 1px solid rgba(199, 125, 255, 0.35);
    border-radius: 8px;
    background: rgba(139, 53, 255, 0.12);
    color: var(--purple-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
    color: var(--soft);
    font-size: 14px;
}

.breadcrumbs a::after {
    content: ">";
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.32);
}

.glass-card,
.info-panel,
.faq-list,
.contact-form,
.social-box,
.content-block,
.tech-box {
    background: linear-gradient(145deg, rgba(18, 16, 29, 0.86), rgba(10, 8, 18, 0.7));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tech-box {
    padding: clamp(24px, 3vw, 34px);
}

.glass-card {
    padding: 28px;
    min-height: 214px;
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-purple);
    box-shadow: var(--glow);
}

.glass-card h2,
.glass-card h3,
.content-block h2,
.contact-form h2,
.tech-box h2 {
    margin-bottom: 10px;
    color: #fff;
    font-size: clamp(20px, 2vw, 25px);
    line-height: 1.25;
}

.tech-box h2 {
    margin-bottom: 18px;
}

.glass-card p,
.content-block p,
.info-panel p,
.project-card p,
.footer-brand p,
.footer-col a,
.contact-card small,
.form-note {
    color: var(--muted);
}

.icon-chip {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border-radius: 15px;
    background: radial-gradient(circle, rgba(199, 125, 255, 0.32), rgba(139, 53, 255, 0.09));
    border: 1px solid rgba(199, 125, 255, 0.28);
}

.icon-chip::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid var(--purple-light);
    border-radius: 6px;
    transform: rotate(45deg);
}

.service-icon {
    width: 54px;
    height: 54px;
    object-fit: contain;
    margin-bottom: 22px;
    filter: drop-shadow(0 0 18px rgba(139, 53, 255, .34));
}

.text-link {
    display: inline-flex;
    margin-top: 20px;
    color: var(--purple-light);
    font-weight: 700;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.tag-row span {
    padding: 7px 11px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    padding: 54px 0 24px;
    background:
        radial-gradient(circle at 12% 0%, rgba(139, 53, 255, .08), transparent 26rem),
        rgba(3, 3, 7, 0.72);
    border-top: 1px solid var(--border);
}

.footer-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.55fr .8fr .95fr 1fr;
    gap: clamp(34px, 5vw, 72px);
    padding-bottom: 46px;
}

.footer-brand img {
    width: 148px;
    height: auto;
    margin-bottom: 22px;
}

.footer-col h2 {
    margin-bottom: 16px;
    font-size: 13px;
    text-transform: uppercase;
    color: #fff;
}

.footer-col a {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
}

.footer-col a:hover,
.footer-bottom a:hover {
    color: #fff;
}

.socials {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.socials a {
    display: grid;
    align-items: center;
    justify-content: center;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(199, 125, 255, 0.3);
    color: var(--purple-light);
    background: rgba(139, 53, 255, 0.08);
    font-size: 12px;
    font-weight: 800;
    line-height: 0;
    overflow: hidden;
}

.socials img {
    display: block;
    width: auto;
    height: 16px;
    max-width: 20px;
    margin: 0;
    object-fit: contain;
    object-position: center;
    align-self: center;
    justify-self: center;
}

.socials a[href*="discord"] img {
    height: 15px;
    max-width: 20px;
}

.socials a[href*="instagram"] img {
    width: 16px;
    height: 16px;
}

.socials a[href*="t.me"] img {
    height: 15px;
    max-width: 19px;
    transform: translateX(1px);
}

.footer-contact-link {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.footer-contact-link img {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.footer-mark {
    display: none;
}

.footer-mark img {
    width: 118px;
    height: 118px;
    padding: 22px;
    object-fit: contain;
    border-radius: 28px;
    background: radial-gradient(circle, rgba(139, 53, 255, .22), rgba(139, 53, 255, .04));
    border: 1px solid rgba(199, 125, 255, .18);
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--soft);
    font-size: 14px;
}

:focus-visible {
    outline: 2px solid var(--purple-light);
    outline-offset: 4px;
}

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

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
