* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #080808;
    color: #f5f5f5;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}


/* =========================
   BACKGROUND
========================= */

.background-grid {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );

    background-size: 80px 80px;
}


.noise {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    opacity: .035;

    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}


/* =========================
   PAGE PROGRESS
========================= */

.page-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 300;
    pointer-events: none;
    background: rgba(255,255,255,.04);
}

.page-progress-bar {
    width: 0;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 14px rgba(255,255,255,.4);
}


/* =========================
   PRELOADER
========================= */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #080808;

    display: flex;
    align-items: center;
    justify-content: center;

    transition:
        opacity .8s ease,
        visibility .8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    width: min(520px,78vw);
}

.preloader-top {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 35px;
}

.preloader-counter {
    display: flex;
    align-items: baseline;
    gap: 5px;

    color: #fff;

    font-size:
        clamp(60px,9vw,110px);

    font-weight: 700;
    line-height: .9;
    letter-spacing: -6px;
}

.preloader-counter span:last-child {
    color: #444;
    font-size: 20px;
    letter-spacing: 0;
}

.preloader-line {
    width: 100%;
    height: 1px;
    margin-top: 35px;
    background: #222;
    overflow: hidden;
}

.preloader-progress {
    width: 0;
    height: 100%;
    background: #fff;
    transition: width .1s linear;
}

.preloader-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;

    color: #444;
    font-size: 9px;
    letter-spacing: 3px;
}


/* =========================
   CURSOR
========================= */

.cursor-glow {
    position: fixed;
    left: 0;
    top: 0;

    width: 320px;
    height: 320px;

    border-radius: 50%;

    pointer-events: none;
    z-index: 60;

    opacity: 0;

    transform:
        translate3d(-50%,-50%,0);

    background:
        radial-gradient(
            circle,
            rgba(255,255,255,.075) 0%,
            rgba(255,255,255,.028) 28%,
            transparent 68%
        );

    filter: blur(4px);

    transition:
        opacity .35s ease;

    mix-blend-mode: screen;
}

body.cursor-active .cursor-glow {
    opacity: 1;
}


/* =========================
   HEADER
========================= */

.header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 82px;

    padding: 0 6%;

    display: flex;
    align-items: center;

    background:
        rgba(8,8,8,.58);

    border-bottom:
        1px solid rgba(255,255,255,.12);

    box-shadow:
        0 10px 40px rgba(0,0,0,.18),
        inset 0 1px 0 rgba(255,255,255,.05);

    backdrop-filter:
        blur(22px)
        saturate(120%);

    -webkit-backdrop-filter:
        blur(22px)
        saturate(120%);

    z-index: 100;

    transition:
        height .45s cubic-bezier(.16,1,.3,1),
        background .45s ease,
        border-color .45s ease,
        box-shadow .45s ease;
}

.header::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            110deg,
            rgba(255,255,255,.035),
            transparent 35%,
            rgba(255,255,255,.01)
        );
}

.header.scrolled {
    height: 62px;

    background:
        rgba(8,8,8,.78);

    border-color:
        rgba(255,255,255,.08);

    box-shadow:
        0 15px 50px rgba(0,0,0,.3);
}

.logo {
    position: relative;
    z-index: 2;

    font-size: 25px;
    font-weight: 800;
    letter-spacing: 1px;

    transition:
        opacity .25s ease,
        transform .25s ease;
}

.header.scrolled .logo {
    transform: scale(.9);
}

.logo:hover {
    opacity: .65;
    transform: translateY(-1px);
}


/* =========================
   DESKTOP NAV
========================= */

.desktop-nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.desktop-nav a {
    position: relative;
    color: #777;
    font-size: 13px;

    transition:
        color .25s ease;
}

.desktop-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -7px;

    height: 1px;

    background: #fff;

    transform:
        scaleX(0);

    transform-origin: right;

    transition:
        transform .3s ease;
}

.desktop-nav a:hover {
    color: #fff;
}

.desktop-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* =========================
   LANGUAGE
========================= */

.language-switcher {
    display: flex;
    align-items: center;
    gap: 7px;
}

.desktop-language {
    margin-left: 35px;
}

.language-switcher span {
    color: #333;
    font-size: 12px;
}

.language {
    border: none;
    background: transparent;
    padding: 0;

    color: #444;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        color .2s ease,
        transform .2s ease;
}

.language:hover {
    color: #aaa;
    transform: translateY(-1px);
}

.language.active {
    color: #fff;
}

/* =========================
   MOBILE MENU BUTTON
========================= */

.mobile-menu-button {
    display: none;

    width: 42px;
    height: 42px;

    margin-left: auto;

    border:
        1px solid rgba(255,255,255,.12);

    border-radius: 50%;

    background:
        rgba(255,255,255,.045);

    backdrop-filter:
        blur(15px);

    -webkit-backdrop-filter:
        blur(15px);

    cursor: pointer;

    position: relative;

    z-index: 110;

    transition:
        background .3s ease,
        border-color .3s ease;
}

.mobile-menu-button:hover {
    background:
        rgba(255,255,255,.09);

    border-color:
        rgba(255,255,255,.2);
}

.mobile-menu-button span {
    position: absolute;

    left: 12px;

    width: 16px;
    height: 1px;

    background: #fff;

    transition:
        transform .35s cubic-bezier(.16,1,.3,1),
        top .35s cubic-bezier(.16,1,.3,1);
}

.mobile-menu-button span:first-child {
    top: 16px;
}

.mobile-menu-button span:last-child {
    top: 23px;
}

.mobile-menu-button.active span:first-child {
    top: 20px;

    transform:
        rotate(45deg);
}

.mobile-menu-button.active span:last-child {
    top: 20px;

    transform:
        rotate(-45deg);
}


/* =========================
   MOBILE MENU
========================= */

.mobile-menu {
    position: fixed;

    inset: 0;

    z-index: 90;

    background:
        rgba(8,8,8,.94);

    backdrop-filter:
        blur(28px)
        saturate(120%);

    -webkit-backdrop-filter:
        blur(28px)
        saturate(120%);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(-20px);

    transition:
        opacity .4s ease,
        visibility .4s ease,
        transform .5s cubic-bezier(.16,1,.3,1);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0);
}

.mobile-menu-inner {
    min-height: 100%;

    padding:
        125px 7% 35px;

    display: flex;
    flex-direction: column;
}

.mobile-menu-top {
    display: flex;

    justify-content: space-between;

    color: #444;

    font-size: 9px;

    letter-spacing: 3px;

    padding-bottom: 25px;

    border-bottom:
        1px solid #242424;
}

.mobile-nav {
    display: flex;

    flex-direction: column;

    margin-top: 25px;
}

.mobile-nav a {
    padding:
        19px 0;

    border-bottom:
        1px solid #1e1e1e;

    color: #777;

    font-size:
        clamp(30px,9vw,52px);

    font-weight: 700;

    letter-spacing: -2px;

    transform:
        translateY(20px);

    opacity: 0;

    transition:
        color .25s ease,
        transform .5s cubic-bezier(.16,1,.3,1),
        opacity .5s ease;
}

.mobile-menu.active .mobile-nav a {
    transform:
        translateY(0);

    opacity: 1;
}

.mobile-menu.active .mobile-nav a:nth-child(1) { transition-delay: .08s; }
.mobile-menu.active .mobile-nav a:nth-child(2) { transition-delay: .13s; }
.mobile-menu.active .mobile-nav a:nth-child(3) { transition-delay: .18s; }
.mobile-menu.active .mobile-nav a:nth-child(4) { transition-delay: .23s; }
.mobile-menu.active .mobile-nav a:nth-child(5) { transition-delay: .28s; }

.mobile-nav a:hover {
    color: #fff;
}

.mobile-menu-bottom {
    margin-top: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-top: 25px;
}

.mobile-menu-bottom > span {
    color: #444;

    font-size: 9px;

    letter-spacing: 3px;
}

.mobile-language {
    gap: 10px;
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;

    padding:
        150px 8% 100px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    position: relative;

    overflow: hidden;
}

.hero-content {
    max-width: 720px;

    position: relative;

    z-index: 2;
}

.hero-status {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 55px;

    color: #666;

    font-size: 10px;

    letter-spacing: 2px;

    font-weight: 700;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #777;

    box-shadow:
        0 0 12px rgba(255,255,255,.35);

    animation:
        pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,100% { opacity: .35; }
    50% { opacity: 1; }
}

.small-title {
    color: #777;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 5px;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(70px,9vw,145px);
    line-height: .83;
    letter-spacing: -8px;
    font-weight: 800;
}

.hero h1 span {
    color: #666;
}

.description {
    max-width: 500px;
    margin-top: 42px;
    color: #777;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================
   BUTTONS
========================= */

.buttons {
    display: flex;
    gap: 14px;
    margin-top: 35px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    min-width: 145px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.button:hover {
    transform: translateY(-3px) scale(1.02);
}

.button.primary {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 30px rgba(255,255,255,.08);
}

.button.primary:hover {
    background: #e8e8e8;
    border-color: #e8e8e8;
}

.button.secondary {
    color: #fff;
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.14);
}

.button.secondary:hover {
    background: rgba(255,255,255,.13);
    border-color: rgba(255,255,255,.25);
}


/* =========================
   HERO VISUAL
========================= */

.hero-visual {
    width: 470px;
    height: 470px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 3%;
    transform-style: preserve-3d;
    transition: transform .25s ease-out;
}

.visual-label {
    position: absolute;
    color: #444;
    font-size: 9px;
    letter-spacing: 2px;
}

.visual-label-top {
    top: 20px;
    right: 15px;
}

.visual-label-bottom {
    bottom: 20px;
    left: 15px;
}

.sphere-wrapper {
    width: 360px;
    height: 360px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.sphere {
    width: 280px;
    height: 280px;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    background: radial-gradient(circle at 28% 22%, #fff 0%, #d5d5d5 8%, #858585 25%, #363636 48%, #151515 65%, #050505 82%);
    box-shadow: 0 0 55px rgba(255,255,255,.075), 0 0 130px rgba(255,255,255,.035), inset -40px -45px 70px #000;
    animation: floating 6s ease-in-out infinite, sphere-glow 5s ease-in-out infinite;
    transform-style: preserve-3d;
}

.sphere::before {
    content: "";
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    background: radial-gradient(circle at 25% 20%, rgba(255,255,255,.45), transparent 17%);
    mix-blend-mode: screen;
}

.sphere-highlight {
    position: absolute;
    width: 90px;
    height: 90px;
    top: 25px;
    left: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.6), rgba(255,255,255,.08) 35%, transparent 70%);
    filter: blur(5px);
    opacity: .7;
    animation: highlight-move 6s ease-in-out infinite;
}

.sphere-reflection {
    position: absolute;
    width: 120%;
    height: 25%;
    left: -10%;
    bottom: 22%;
    border-radius: 50%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.10), transparent);
    filter: blur(15px);
    transform: rotate(-25deg);
    opacity: .45;
    animation: reflection-move 7s ease-in-out infinite;
}

@keyframes highlight-move {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(16px,12px) scale(1.08); }
}

@keyframes reflection-move {
    0%,100% { transform: translateX(-15%) rotate(-25deg); opacity: .25; }
    50% { transform: translateX(15%) rotate(-25deg); opacity: .55; }
}

@keyframes floating {
    0%,100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(1deg); }
}

@keyframes sphere-glow {
    0%,100% { filter: brightness(.95); }
    50% { filter: brightness(1.08); }
}

.sphere-ring {
    position: absolute;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    pointer-events: none;
}

.ring-one {
    width: 340px; height: 120px;
    transform: rotate(-25deg);
    animation: ring-one 10s linear infinite;
}

.ring-two {
    width: 400px; height: 160px;
    transform: rotate(55deg);
    opacity: .45;
    animation: ring-two 14s linear infinite;
}

.ring-three {
    width: 300px; height: 300px;
    border-color: rgba(255,255,255,.045);
    animation: ring-three 18s linear infinite;
}

@keyframes ring-one {
    from { transform: rotate(-25deg); }
    to { transform: rotate(335deg); }
}

@keyframes ring-two {
    from { transform: rotate(55deg); }
    to { transform: rotate(415deg); }
}

@keyframes ring-three {
    from { transform: rotate(0deg) scale(.95); }
    50% { transform: rotate(180deg) scale(1.05); }
    to { transform: rotate(360deg) scale(.95); }
}


/* =========================
   SCROLL
========================= */

.scroll-indicator {
    position: absolute;
    bottom: 35px;
    left: 8%;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #444;
    font-size: 9px;
    letter-spacing: 2px;
}

.scroll-line {
    width: 55px;
    height: 1px;
    background: #333;
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: "";
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: #777;
    animation: scroll-line 2.5s ease-in-out infinite;
}

@keyframes scroll-line {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}


/* =========================
   SECTIONS
========================= */

.section {
    padding: 150px 8%;
    border-top: 1px solid rgba(255,255,255,.07);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 65px;
}

.section-header h2 {
    font-size: clamp(50px,7vw,95px);
    line-height: .9;
    letter-spacing: -5px;
}

.section-number {
    color: #333;
    font-size: 11px;
    letter-spacing: 2px;
}


/* =========================
   PORTFOLIO
========================= */

.portfolio-list {
    border-top: 1px solid #292929;
}

.project-card {
    display: grid;
    grid-template-columns: 38% 62%;
    min-height: 480px;
    border-bottom: 1px solid #292929;
}

.project-info {
    padding: 45px 45px 45px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid #292929;
}

.project-number {
    color: #444;
    font-size: 11px;
    letter-spacing: 3px;
}

.project-category {
    display: block;
    color: #555;
    font-size: 9px;
    letter-spacing: 3px;
    margin-bottom: 18px;
}

.project-text h3 {
    font-size: 38px;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 18px;
}

.project-text p {
    max-width: 330px;
    color: #666;
    font-size: 13px;
    line-height: 1.7;
}


/* =========================
   PROJECT PREVIEWS
========================= */

.project-preview {
    min-height: 480px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #151515, #090909 65%);
}

.project-hover {
    cursor: default;
    transition: background .5s ease, transform .5s cubic-bezier(.16,1,.3,1);
}

.project-hover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.06), transparent 45%);
    opacity: 0;
    transition: opacity .5s ease;
}

.project-hover:hover::after {
    opacity: 1;
}

.project-hover:hover {
    background: radial-gradient(circle at 50% 50%, #1c1c1c, #080808 70%);
}

.preview-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 55px 55px;
    opacity: .5;
    transition: transform .8s cubic-bezier(.16,1,.3,1), opacity .5s ease;
}

.project-hover:hover .preview-grid {
    transform: scale(1.08);
    opacity: .75;
}

.preview-circle {
    width: 230px; height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #777, #292929 45%, #080808 75%);
    box-shadow: 0 0 80px rgba(255,255,255,.06);
    transition: transform .7s cubic-bezier(.16,1,.3,1), box-shadow .7s ease;
}

.project-hover:hover .preview-circle {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 0 110px rgba(255,255,255,.1);
}

.preview-square {
    width: 190px; height: 190px;
    border: 1px solid #444;
    transform: rotate(25deg);
    box-shadow: 0 0 80px rgba(255,255,255,.04);
    transition: transform .7s cubic-bezier(.16,1,.3,1), border-color .5s ease;
}

.project-hover:hover .preview-square {
    transform: rotate(45deg) scale(1.08);
    border-color: #777;
}

.preview-ring {
    width: 260px; height: 120px;
    border: 1px solid #444;
    border-radius: 50%;
    transform: rotate(-25deg);
    transition: transform .8s cubic-bezier(.16,1,.3,1), border-color .5s ease;
}

.preview-ring::after {
    content: "";
    position: absolute;
    inset: 25px;
    border: 1px solid #292929;
    border-radius: 50%;
}

.project-hover:hover .preview-ring {
    transform: rotate(25deg) scale(1.12);
    border-color: #777;
}

.preview-center {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #444;
    font-size: 9px;
    letter-spacing: 3px;
    transition: color .35s ease, transform .5s cubic-bezier(.16,1,.3,1);
}

.project-hover:hover .preview-center {
    color: #aaa;
    transform: translateY(-5px);
}

.preview-plus {
    font-size: 16px;
    font-weight: 300;
    transition: transform .5s ease;
}

.project-hover:hover .preview-plus {
    transform: rotate(90deg);
}

.portfolio-note {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    color: #444;
    font-size: 10px;
    letter-spacing: 1px;
}

.portfolio-note p {
    color: #555;
    font-size: 11px;
    letter-spacing: 0;
}


/* =========================
   ABOUT
========================= */

.about-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 100px;
    align-items: end;
}

.about-text {
    max-width: 1000px;
    font-size: clamp(27px,4vw,55px);
    line-height: 1.18;
    color: #999;
    letter-spacing: -1px;
}

.about-meta {
    border-top: 1px solid #292929;
}

.about-meta div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid #292929;
}

.about-meta span {
    color: #444;
    font-size: 9px;
    letter-spacing: 2px;
}

.about-meta strong {
    color: #888;
    font-size: 11px;
    font-weight: 500;
}


/* =========================
   SERVICES
========================= */

.services {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    border-top: 1px solid #292929;
}

.service {
    min-height: 330px;
    padding: 38px;
    border-right: 1px solid #292929;
    border-bottom: 1px solid #292929;
    position: relative;
    transition: background .35s ease, transform .35s ease;
}

.service:last-child {
    border-right: none;
}

.service:hover {
    background: #0f0f0f;
    transform: translateY(-3px);
}

.service-number {
    color: #444;
    font-size: 11px;
    letter-spacing: 2px;
}

.service-content {
    position: absolute;
    left: 38px; right: 38px; bottom: 38px;
}

.service h3 {
    font-size: 25px;
    line-height: 1.1;
    margin-bottom: 15px;
}

.service p {
    color: #666;
    font-size: 13px;
    max-width: 300px;
}


/* =========================
   CONNECT (Liquid Glass & Grid)
========================= */

/* Бордовый градиент на фоне body */
body {
    background: radial-gradient(circle at 50% 0%, #3d0915 0%, #150307 40%, #080808 100%) !important;
    background-color: #080808 !important;
    background-attachment: fixed !important;
}

/* Убираем лишнюю яркость сетки, чтобы она не перебивала градиент */
.background-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px) !important;
}

.connect-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

/* Стиль стеклянных карточек */
.glass-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(24px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        0 20px 40px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden;
    cursor: pointer !important;
    z-index: 1;
    transition: transform .35s ease, border-color .35s ease, background .35s ease, box-shadow .35s ease;
}

.glass-card::before {
    content: "";
    position: absolute;
    width: 260px; height: 260px;
    left: calc(var(--mouse-x,50%) - 130px);
    top: calc(var(--mouse-y,50%) - 130px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.13), rgba(255,255,255,.035) 32%, transparent 70%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        0 25px 50px rgba(0, 0, 0, 0.6) !important;
}

.connect-card {
    min-height: 190px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
}

.connect-number {
    color: #4c4c4c;
    font-size: 10px;
    letter-spacing: 3px;
}

.connect-icon {
    color: #777;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -1px;
    transition: color .3s ease, transform .3s ease;
}

.connect-card:hover .connect-icon {
    color: #fff;
    transform: translateX(4px);
}

.connect-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.connect-info span {
    color: #555;
    font-size: 9px;
    letter-spacing: 3px;
}

.connect-info strong {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -.5px;
}

.connect-arrow {
    position: absolute;
    right: 28px;
    top: 28px;
    color: #555;
    font-size: 20px;
    transition: color .3s ease, transform .3s ease;
}

.connect-card:hover .connect-arrow {
    color: #fff;
    transform: translate(4px,-4px);
}

/* Скрытие кнопок при смене языка */
.hidden-lang {
    display: none !important;
}


/* =========================
   CONTACT
========================= */

.contact {
    text-align: center;
    padding-top: 180px;
    padding-bottom: 180px;
}

.contact h2 {
    font-size: clamp(65px,10vw,150px);
    line-height: .85;
    letter-spacing: -8px;
    margin-bottom: 30px;
}

.contact > p:not(.small-title) {
    color: #666;
    margin-bottom: 35px;
}


/* =========================
   BACK TO TOP
========================= */

.back-to-top {
    position: fixed;
    right: 28px; bottom: 28px;
    width: 48px; height: 48px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    color: #fff;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    cursor: pointer;
    z-index: 80;
    opacity: 0; visibility: hidden;
    transform: translateY(15px);
    transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background .3s ease;
}

.back-to-top.visible {
    opacity: 1; visibility: visible; transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(255,255,255,.13);
    transform: translateY(-3px);
}

.back-to-top span {
    font-size: 18px;
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 30px 8%;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #1c1c1c;
    color: #444;
    font-size: 11px;
    letter-spacing: 1px;
}


/* =========================
   ANIMATIONS
========================= */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    animation: hero-reveal 1s cubic-bezier(.16,1,.3,1) forwards;
}

.reveal-delay-1 { animation-delay: .15s; }
.reveal-delay-2 { animation-delay: .28s; }
.reveal-delay-3 { animation-delay: .42s; }
.reveal-delay-4 { animation-delay: .58s; }
.reveal-delay-5 { animation-delay: .74s; }

.reveal-visual {
    opacity: 0;
    transform: translateX(35px) scale(.96);
    animation: visual-reveal 1.4s cubic-bezier(.16,1,.3,1) .35s forwards;
}

@keyframes hero-reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes visual-reveal { to { opacity: 1; transform: translateX(0) scale(1); } }

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(55px);
    transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card.reveal-on-scroll:nth-child(2),
.service.reveal-on-scroll:nth-child(2),
.connect-card.reveal-on-scroll:nth-child(2) { transition-delay: .08s; }

.project-card.reveal-on-scroll:nth-child(3),
.service.reveal-on-scroll:nth-child(3),
.connect-card.reveal-on-scroll:nth-child(3) { transition-delay: .16s; }

.connect-card.reveal-on-scroll:nth-child(4) { transition-delay: .24s; }
.connect-card.reveal-on-scroll:nth-child(5) { transition-delay: .32s; }
.connect-card.reveal-on-scroll:nth-child(6) { transition-delay: .40s; }
.connect-card.reveal-on-scroll:nth-child(7) { transition-delay: .48s; }
.connect-card.reveal-on-scroll:nth-child(8) { transition-delay: .56s; }


/* =========================
   ADAPTIVE
========================= */

@media (max-width:1000px) {
    .header { padding: 0 5%; }
    .desktop-nav { gap: 15px; }
    .desktop-language { margin-left: 20px; }
    .hero { padding: 130px 6% 100px; }
    .hero-visual { width: 350px; height: 350px; margin-right: 0; }
    .sphere-wrapper { transform: scale(.8); }
    .section { padding: 110px 6%; }
    .project-card { grid-template-columns: 40% 60%; }
}

@media (max-width:800px) {
    .header { height: 70px; padding: 0 6%; }
    .header.scrolled { height: 62px; }
    .desktop-nav, .desktop-language { display: none; }
    .mobile-menu-button { display: block; }

    .hero {
        min-height: 100svh;
        padding: 115px 6% 80px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
    .hero-status { margin-bottom: 32px; font-size: 8px; letter-spacing: 1.7px; }
    .small-title { font-size: 9px; letter-spacing: 4px; margin-bottom: 18px; }
    .hero h1 { font-size: clamp(58px,17vw,82px); letter-spacing: -5px; }
    .description { max-width: 390px; margin-top: 30px; font-size: 14px; line-height: 1.65; }
    .buttons { width: 100%; gap: 10px; margin-top: 30px; }
    .button { min-height: 50px; padding: 14px 22px; min-width: 0; flex: 1; font-size: 11px; }

    .hero-visual { width: 100%; height: 300px; margin-top: 28px; margin-right: 0; flex-shrink: 0; }
    .sphere-wrapper { transform: scale(.67); }
    .visual-label { font-size: 8px; }
    .visual-label-top { top: 5px; right: 5px; }
    .visual-label-bottom { bottom: 5px; left: 5px; }
    .scroll-indicator { display: none; }

    .section { padding: 90px 6%; }
    .section-header { margin-bottom: 45px; }
    .section-header h2 { font-size: clamp(52px,14vw,70px); letter-spacing: -4px; }

    .project-card { display: block; min-height: auto; }
    .project-info { min-height: 260px; padding: 30px 0; border-right: none; }
    .project-text h3 { font-size: 32px; }
    .project-preview { min-height: 330px; }

    .about-layout { grid-template-columns: 1fr; gap: 55px; }
    .about-text { font-size: clamp(29px,8vw,42px); }

    .services { grid-template-columns: 1fr; }
    .service { min-height: 260px; border-right: none; }

    .connect-grid { grid-template-columns: 1fr; }
    .connect-card { min-height: 170px; border-radius: 21px; }

    .contact { padding-top: 120px; padding-bottom: 120px; }
    .contact h2 { font-size: clamp(62px,17vw,90px); letter-spacing: -5px; }

    footer { padding: 25px 6%; flex-direction: column; gap: 8px; }
    .back-to-top { right: 18px; bottom: 18px; width: 44px; height: 44px; }
}

@media (max-width:500px) {
    .header { height: 64px; padding: 0 5%; }
    .header.scrolled { height: 58px; }
    .logo { font-size: 22px; }
    .mobile-menu-button { width: 40px; height: 40px; }
    .mobile-menu-inner { padding: 105px 7% 28px; }
    .mobile-nav a { padding: 16px 0; font-size: clamp(29px,9vw,42px); }

    .hero { min-height: 100svh; padding: 100px 5% 55px; }
    .hero-status { margin-bottom: 27px; max-width: 280px; line-height: 1.4; }
    .hero h1 { font-size: clamp(53px,16vw,70px); letter-spacing: -4px; }
    .description { font-size: 13px; margin-top: 25px; }
    .buttons { flex-direction: column; width: 100%; margin-top: 27px; }
    .button { width: 100%; flex: none; }
    .hero-visual { height: 255px; margin-top: 15px; }
    .sphere-wrapper { transform: scale(.56); }

    .section { padding: 75px 5%; }
    .section-header { margin-bottom: 38px; }
    .section-header h2 { font-size: 50px; letter-spacing: -3px; }

    .project-info { min-height: 245px; }
    .project-text h3 { font-size: 29px; }
    .project-text p { font-size: 12px; }
    .project-preview { min-height: 280px; }
    .preview-circle { width: 175px; height: 175px; }
    .preview-square { width: 140px; height: 140px; }
    .preview-ring { width: 210px; height: 95px; }

    .about-text { font-size: 28px; letter-spacing: -.5px; }

    .service { min-height: 245px; padding: 28px; }
    .service-content { left: 28px; right: 28px; bottom: 28px; }
    .service h3 { font-size: 22px; }

    .connect-card { min-height: 155px; padding: 24px; }
    .connect-info strong { font-size: 18px; }
    .connect-arrow { right: 24px; top: 24px; }

    .contact { padding-top: 100px; padding-bottom: 100px; }
    .contact h2 { font-size: 57px; letter-spacing: -4px; }
}

@media (hover:none),(pointer:coarse) {
    .cursor-glow { display: none; }
    .project-hover:hover { background: radial-gradient(circle at center, #151515, #090909 65%); }
    .project-hover:hover::after { opacity: 0; }
    .project-hover:hover .preview-grid { transform: none; opacity: .5; }
    .project-hover:hover .preview-circle { transform: none; box-shadow: 0 0 80px rgba(255,255,255,.06); }
    .project-hover:hover .preview-square { transform: rotate(25deg); }
    .project-hover:hover .preview-ring { transform: rotate(-25deg); }
    .project-hover:hover .preview-center { color: #444; transform: none; }
    .project-hover:hover .preview-plus { transform: none; }
    .connect-card:hover { transform: none; }
    .connect-card:hover .connect-icon { transform: none; }
    .connect-card:hover .connect-arrow { transform: none; }
}

@media (prefers-reduced-motion:reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}