/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:          #08080f;
    --purple:      #7B5FFF;
    --purple-dim:  rgba(123, 95, 255, 0.15);
    --blue:        #4F8EF7;
    --text:        #ffffff;
    --text-muted:  #8B9CB8;
    --border:      rgba(255, 255, 255, 0.07);
    --radius:      12px;
    --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: transparent;
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== Scroll reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s var(--ease),
        transform 0.7s var(--ease);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Варианты направления */
.reveal--left  { transform: translate3d(-32px, 0, 0); }
.reveal--right { transform: translate3d(32px, 0, 0); }
.reveal--scale { transform: scale(0.94); }
.reveal--left.is-visible,
.reveal--right.is-visible,
.reveal--scale.is-visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Parallax background orbs ===== */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* Внешний слой — управляется JS (параллакс на скролле) */
.bg-orb {
    position: absolute;
    will-change: transform;
}

/* Внутренний слой — CSS-анимация «дыхания» */
.bg-orb__core {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    filter: blur(110px);
    animation: orb-float 18s ease-in-out infinite;
}

.bg-orb--1 { width: 560px; height: 560px; top: 8%;   left: -10%; }
.bg-orb--1 .bg-orb__core { background: radial-gradient(circle, rgba(123, 95, 255, 0.55), transparent 70%); }

.bg-orb--2 { width: 620px; height: 620px; top: 28%;  right: -12%; }
.bg-orb--2 .bg-orb__core { background: radial-gradient(circle, rgba(79, 142, 247, 0.50), transparent 70%); animation-duration: 22s; animation-delay: -4s; }

.bg-orb--3 { width: 500px; height: 500px; top: 60%;  left: 25%; }
.bg-orb--3 .bg-orb__core { background: radial-gradient(circle, rgba(167, 71, 254, 0.45), transparent 70%); animation-duration: 26s; animation-delay: -8s; }

.bg-orb--4 { width: 460px; height: 460px; top: 95%;  right: 10%; }
.bg-orb--4 .bg-orb__core { background: radial-gradient(circle, rgba(56, 189, 248, 0.40), transparent 70%); animation-duration: 20s; animation-delay: -12s; }

.bg-orb--5 { width: 380px; height: 380px; top: 130%; left: 5%; }
.bg-orb--5 .bg-orb__core { background: radial-gradient(circle, rgba(123, 95, 255, 0.40), transparent 70%); animation-duration: 24s; animation-delay: -6s; }

@keyframes orb-float {
    0%,100% { transform: translate3d(0, 0, 0) scale(1); }
    50%     { transform: translate3d(20px, -30px, 0) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .bg-orb__core { animation: none; }
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: transform 0.25s var(--ease),
                box-shadow 0.25s var(--ease),
                background 0.25s var(--ease),
                border-color 0.25s var(--ease);
    white-space: nowrap;
    font-family: inherit;
}

/* Анимируемое CSS-свойство угла для conic-gradient (Chromium/Safari TP) */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* ---- Primary: градиентная заливка + анимированная градиентная обводка ---- */
.btn--primary {
    color: #fff;
    border: 1.5px solid transparent;
    background:
        linear-gradient(135deg, #7B5FFF 0%, #4F8EF7 100%) padding-box,
        conic-gradient(from var(--angle),
            #a78bfa, #4F8EF7, #7B5FFF, #c4b5fd, #4F8EF7, #a78bfa) border-box;
    box-shadow: 0 0 24px rgba(123, 95, 255, 0.4);
    animation: rotateBorder 4s linear infinite;
}
.btn--primary:hover {
    box-shadow: 0 0 40px rgba(123, 95, 255, 0.65);
    transform: translateY(-2px);
}
.btn--primary:active { transform: translateY(0); }

/* ---- Ghost: только анимированная градиентная обводка ---- */
.btn--ghost {
    color: #fff;
    border: 1.5px solid transparent;
    background:
        linear-gradient(rgba(20, 20, 32, 0.55), rgba(20, 20, 32, 0.55)) padding-box,
        conic-gradient(from var(--angle),
            #7B5FFF, #4F8EF7, #a78bfa, #4F8EF7, #7B5FFF) border-box;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: rotateBorder 4s linear infinite;
}
.btn--ghost:hover {
    background:
        linear-gradient(rgba(30, 30, 48, 0.7), rgba(30, 30, 48, 0.7)) padding-box,
        conic-gradient(from var(--angle),
            #7B5FFF, #4F8EF7, #a78bfa, #4F8EF7, #7B5FFF) border-box;
    transform: translateY(-2px);
}

@keyframes rotateBorder {
    to { --angle: 360deg; }
}

.btn--sm { padding: 9px 18px; font-size: 14px; border-radius: 8px; }
.btn--block { width: 100%; justify-content: center; }

.btn--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    animation: none;
}

.btn-wip-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 2px 7px;
    border-radius: 20px;
    background: rgba(123, 95, 255, 0.25);
    border: 1px solid rgba(123, 95, 255, 0.4);
    color: #c4b5fd;
    line-height: 1.4;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(90deg, #7B5FFF 0%, #4F8EF7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================
   HEADER
   ========================================================== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition:
        background 0.35s var(--ease),
        backdrop-filter 0.35s var(--ease),
        border-color 0.35s var(--ease);
}

.header.scrolled {
    background: rgba(8, 8, 15, 0.45);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: var(--border);
}

.nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 82px;
    gap: 8px;
}

/* --- Logo --- */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-img {
    height: 52px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 12px rgba(123, 95, 255, 0.3));
    transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}

@media (max-width: 768px) {
    .logo-img { height: 52px; }
}
.logo:hover .logo-img {
    filter: drop-shadow(0 0 18px rgba(123, 95, 255, 0.6));
    transform: scale(1.04);
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, rgba(123,95,255,0.18), rgba(79,142,247,0.12));
    border: 1px solid rgba(123, 95, 255, 0.35);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--purple);
    letter-spacing: -0.5px;
    transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.logo:hover .logo-icon {
    box-shadow: 0 0 18px rgba(123, 95, 255, 0.4);
    background: rgba(123, 95, 255, 0.22);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: #fff;
}
.logo-text span { color: var(--purple); }

/* --- Nav links --- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.nav-link {
    display: block;
    padding: 7px 13px;
    font-size: 16px;
    font-weight: 450;
    color: var(--text-muted);
    border-radius: 8px;
    position: relative;
    transition: color 0.2s, background 0.2s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 3px; left: 50%; right: 50%;
    height: 1.5px;
    background: var(--purple);
    border-radius: 2px;
    transition: left 0.25s var(--ease), right 0.25s var(--ease);
}
.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}
.nav-link:hover::after { left: 13px; right: 13px; }

.nav-btn { margin-left: auto; }

/* --- Burger --- */
.burger {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 9px;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.burger:hover {
    background: rgba(123, 95, 255, 0.12);
    border-color: rgba(123, 95, 255, 0.35);
}
.burger span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
}
.burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 6px)); }
.burger span:nth-child(2) { transform: translate(-50%, -50%); }
.burger span:nth-child(3) { transform: translate(-50%, calc(-50% + 6px)); }

.burger.open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: translate(-50%, -50%) scaleX(0); }
.burger.open span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* --- Mobile menu --- */
.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;

    /* Закрытое состояние: полностью прозрачно и схлопнуто в 0 */
    max-height: 0;
    padding: 0 24px;
    overflow: hidden;
    pointer-events: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: 0 solid transparent;
    transition:
        max-height 0.4s var(--ease),
        padding 0.35s var(--ease),
        background 0.3s var(--ease),
        backdrop-filter 0.3s var(--ease),
        border-top-color 0.3s var(--ease);
}
.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 16px;
}
.mobile-menu .nav-link {
    font-size: 15px;
    padding: 11px 12px;
    /* Stagger-эффект для пунктов */
    opacity: 0;
    transform: translateX(-14px);
    transition:
        opacity 0.35s var(--ease),
        transform 0.35s var(--ease),
        color 0.2s,
        background 0.2s;
}
.mobile-menu .btn {
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.35s var(--ease),
        transform 0.35s var(--ease),
        box-shadow 0.25s var(--ease),
        background 0.25s var(--ease);
}

.mobile-menu.open {
    max-height: 80vh;
    padding: 16px 24px 24px;
    background: rgba(8, 8, 15, 0.55);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border-top: 1px solid var(--border);
    pointer-events: auto;
}
.mobile-menu.open .nav-link,
.mobile-menu.open .btn {
    opacity: 1;
    transform: none;
}
/* Stagger: каждый пункт чуть позже */
.mobile-menu.open ul li:nth-child(1) .nav-link { transition-delay: 0.05s; }
.mobile-menu.open ul li:nth-child(2) .nav-link { transition-delay: 0.10s; }
.mobile-menu.open ul li:nth-child(3) .nav-link { transition-delay: 0.15s; }
.mobile-menu.open ul li:nth-child(4) .nav-link { transition-delay: 0.20s; }
.mobile-menu.open ul li:nth-child(5) .nav-link { transition-delay: 0.25s; }
.mobile-menu.open ul li:nth-child(6) .nav-link { transition-delay: 0.30s; }
.mobile-menu.open .btn { transition-delay: 0.35s; }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

/* --- Background --- */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.glow--purple {
    width: 680px;
    height: 680px;
    top: -200px;
    right: -80px;
    background: radial-gradient(circle, rgba(123, 95, 255, 0.22) 0%, transparent 70%);
    animation: glowPulse 7s ease-in-out infinite;
}

.glow--blue {
    width: 420px;
    height: 420px;
    top: 80px;
    right: 220px;
    background: radial-gradient(circle, rgba(79, 142, 247, 0.12) 0%, transparent 70%);
    animation: glowPulse 9s ease-in-out infinite 2.5s;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse 75% 75% at 65% 35%, black 15%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 75% 75% at 65% 35%, black 15%, transparent 85%);
}

/* --- Layout --- */
.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* --- Content --- */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    background: rgba(123, 95, 255, 0.08);
    border: 1px solid rgba(123, 95, 255, 0.22);
    border-radius: 100px;
    font-size: 16px;
    color: var(--text-muted);
    width: fit-content;
    animation: fadeInUp 0.7s var(--ease) both;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--purple);
    border-radius: 50%;
    flex-shrink: 0;
    animation: badgePulse 2.5s ease-in-out infinite;
}

/* Title */
.hero-title {
    font-size: clamp(34px, 3.8vw, 54px);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: -1.2px;
    animation: fadeInUp 0.7s var(--ease) 0.1s both;
}

/* Description */
.hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.75;
    animation: fadeInUp 0.7s var(--ease) 0.2s both;
}

/* Buttons */
.hero-btns {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    animation: fadeInUp 0.7s var(--ease) 0.3s both;
}

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.028);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    animation: fadeInUp 0.7s var(--ease) 0.45s both;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: var(--purple-dim);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
    flex-shrink: 0;
}

.stat-val {
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.5px;
}
.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

.stat-divider {
    width: 1px;
    height: 38px;
    background: var(--border);
    margin: 0 18px;
    flex-shrink: 0;
}

/* ==========================================================
   HERO VISUAL
   ========================================================== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s var(--ease) 0.3s both;
}

.visual-wrap {
    position: relative;
    width: 100%;
    max-width: 720px;
    aspect-ratio: 1 / 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Выходим за границы колонки, чтобы ноутбук был крупнее */
    margin-right: -80px;
}

/* Laptop */
.laptop-wrap {
    position: relative;
    z-index: 2;
    width: 110%;
}

.laptop-img {
    width: 100%;
    height: auto;
    min-height: 260px;
    /* Плавное смешивание с фоном:
       1) screen — тёмные пиксели картинки растворяются в фоне,
          остаётся только подсветка ноутбука и неоновое свечение.
       2) маска — мягко гасит края эллиптическим градиентом. */
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 60%, transparent 100%);
            mask-image: radial-gradient(ellipse at center, #000 60%, transparent 100%);
}

.laptop-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(ellipse at center,
        rgba(79, 142, 247, 0.28) 0%,
        rgba(123, 95, 255, 0.12) 45%,
        transparent 70%);
    filter: blur(24px);
    z-index: -1;
    animation: glowPulse 4.5s ease-in-out infinite;
}

/* ===== Geometric decorations ===== */
.geo { position: absolute; pointer-events: none; }

/* Wireframe cubes */
.geo--cube-1 {
    top: 4%;
    right: 4%;
    animation: spinCube 14s linear infinite;
}
.geo--cube-2 {
    bottom: 8%;
    left: 2%;
    animation: spinCube 18s linear infinite reverse;
}

.cube-inner {
    width: 52px;
    height: 52px;
    border: 1.5px solid rgba(123, 95, 255, 0.45);
    border-radius: 5px;
    transform: rotate(20deg);
    position: relative;
}
.cube-inner::before {
    content: '';
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(123, 95, 255, 0.22);
    border-radius: 2px;
}
.cube-inner::after {
    content: '';
    position: absolute;
    inset: -1px;
    top: 9px;
    left: 9px;
    right: -9px;
    bottom: -9px;
    border: 1.5px solid rgba(79, 142, 247, 0.22);
    border-radius: 5px;
}

/* Dots */
.geo--dot { border-radius: 50%; }

.geo--dot-1 {
    width: 10px; height: 10px;
    background: var(--purple);
    top: 18%; left: 8%;
    box-shadow: 0 0 14px rgba(123, 95, 255, 0.9);
    animation: floatDot 4.2s ease-in-out infinite;
}
.geo--dot-2 {
    width: 7px; height: 7px;
    background: var(--blue);
    top: 68%; right: 8%;
    box-shadow: 0 0 10px rgba(79, 142, 247, 0.9);
    animation: floatDot 5.5s ease-in-out infinite 1.8s;
}
.geo--dot-3 {
    width: 5px; height: 5px;
    background: #a78bfa;
    top: 42%; left: 1%;
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.9);
    animation: floatDot 6.5s ease-in-out infinite 0.6s;
}

/* Spinning ring */
.geo--ring {
    width: 110px;
    height: 110px;
    border: 1.5px solid rgba(123, 95, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    right: -18px;
    transform: translateY(-50%);
    animation: rotateSlow 22s linear infinite;
}
.geo--ring::before {
    content: '';
    position: absolute;
    width: 9px;
    height: 9px;
    background: var(--purple);
    border-radius: 50%;
    top: 50%;
    right: -4px;
    transform: translateY(-50%);
    box-shadow: 0 0 10px rgba(123, 95, 255, 0.9);
}
.geo--ring::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background: var(--blue);
    border-radius: 50%;
    bottom: 10px;
    left: -2px;
    box-shadow: 0 0 7px rgba(79, 142, 247, 0.9);
}

/* ==========================================================
   ANIMATIONS
   ========================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-18px); }
}

@keyframes floatDot {
    0%, 100% { transform: translate(0, 0);      opacity: 0.65; }
    50%       { transform: translate(7px, -12px); opacity: 1;   }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.65; transform: scale(1);    }
    50%       { opacity: 1;    transform: scale(1.1); }
}

@keyframes badgePulse {
    0%   { box-shadow: 0 0 0 0   rgba(123, 95, 255, 0.7); }
    70%  { box-shadow: 0 0 0 9px rgba(123, 95, 255, 0);   }
    100% { box-shadow: 0 0 0 0   rgba(123, 95, 255, 0);   }
}

@keyframes spinCube {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes rotateSlow {
    from { transform: translateY(-50%) rotate(0deg); }
    to   { transform: translateY(-50%) rotate(360deg); }
}

/* ==========================================================
   ABOUT
   ========================================================== */
.about {
    position: relative;
    padding: 60px 0;
}

.about-inner {
    display: grid;
    grid-template-columns: minmax(280px, 480px) 1fr;
    gap: 60px;
    align-items: center;
}

/* --- Photo --- */
.about-photo {
    position: relative;
    aspect-ratio: 1 / 0.92;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-frame {
    position: relative;
    width: 78%;
    aspect-ratio: 4 / 5;
    border-radius: 22px;
    padding: 2px;
    background:
        linear-gradient(#0a0a14, #0a0a14) padding-box,
        conic-gradient(from var(--angle),
            #7B5FFF, #4F8EF7, #a78bfa, #4F8EF7, #7B5FFF) border-box;
    border: 1.5px solid transparent;
    animation: rotateBorder 6s linear infinite;
    z-index: 2;
}

.photo-img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    background: linear-gradient(135deg, #14142a 0%, #1a1640 50%, #0d1628 100%);
    display: block;
}

.photo-badge {
    position: absolute;
    bottom: -14px;
    right: -14px;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, #7B5FFF, #4F8EF7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 24px rgba(123, 95, 255, 0.5);
    border: 2px solid #0a0a14;
    animation: float 5s ease-in-out infinite;
}

/* Orbit ring */
.photo-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 95%;
    height: 70%;
    border: 1.5px solid rgba(123, 95, 255, 0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    animation: orbitSpin 22s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.orbit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--purple);
    box-shadow: 0 0 10px rgba(123, 95, 255, 0.8);
}
.orbit-dot--1 { top: 50%; left: -4px;  transform: translateY(-50%); }
.orbit-dot--2 { top: 50%; right: -4px; transform: translateY(-50%); background: var(--blue); box-shadow: 0 0 10px rgba(79,142,247,0.8); }
.orbit-dot--3 { top: -4px; left: 30%; width: 5px; height: 5px; background: #a78bfa; }

@keyframes orbitSpin {
    from { transform: translate(-50%, -50%) rotate(-15deg); }
    to   { transform: translate(-50%, -50%) rotate(345deg); }
}

/* --- Content --- */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 500;
    color: var(--text-muted);
}

.label-dot {
    width: 8px;
    height: 8px;
    background: var(--purple);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(123, 95, 255, 0.8);
}

.about-title {
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.5px;
}

.about-desc {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 580px;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 36px;
    margin-top: 8px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(123, 95, 255, 0.1);
    border: 1px solid rgba(123, 95, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
    flex-shrink: 0;
}

/* ==========================================================
   COMMON SECTION
   ========================================================== */
.section-label--top { margin-bottom: 32px; }

/* ==========================================================
   SERVICES
   ========================================================== */
.services { padding: 80px 0; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    padding: 32px 26px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(123, 95, 255, 0.4);
    background: rgba(123, 95, 255, 0.04);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}
.service-icon--blue {
    color: var(--blue);
    background: rgba(79, 142, 247, 0.12);
    border: 1px solid rgba(79, 142, 247, 0.3);
    box-shadow: 0 0 24px rgba(79, 142, 247, 0.15);
}
.service-icon--purple {
    color: var(--purple);
    background: rgba(123, 95, 255, 0.12);
    border: 1px solid rgba(123, 95, 255, 0.3);
    box-shadow: 0 0 24px rgba(123, 95, 255, 0.15);
}

.service-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 22px;
}

.service-link {
    font-size: 13px;
    color: var(--purple);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.25s var(--ease);
}
.service-link:hover { gap: 10px; }

/* ==========================================================
   PORTFOLIO
   ========================================================== */
.portfolio { padding: 80px 0; }

.portfolio-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}
.portfolio-head .section-label--top { margin-bottom: 0; }
.portfolio-all span { transition: transform 0.25s var(--ease); display: inline-block; }
.portfolio-all:hover span { transform: translateX(4px); }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
    padding: 14px;
}
.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(123, 95, 255, 0.4);
}

.project-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #14142a, #1a1640, #0d1628);
    margin-bottom: 14px;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }

.project-link {
    position: absolute;
    top: 10px; right: 10px;
    width: 32px; height: 32px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.project-card:hover .project-link {
    background: var(--purple);
    transform: scale(1.05);
}

.project-title {
    font-size: 16px;
    font-weight: 600;
    margin: 4px 4px 12px;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 4px 4px;
}
.project-tags span {
    font-size: 11.5px;
    padding: 5px 11px;
    background: rgba(123, 95, 255, 0.1);
    border: 1px solid rgba(123, 95, 255, 0.2);
    border-radius: 6px;
    color: var(--text-muted);
}

/* ==========================================================
   TECHNOLOGIES
   ========================================================== */
.tech { padding: 60px 0; }

.tech-track-wrap {
    position: relative;
    overflow-x: clip;
    overflow-y: visible;
    padding: 14px 0;
    mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.tech-track {
    display: flex;
    gap: 14px;
    width: max-content;
    padding: 8px 0;
    /* Анимация управляется JS (requestAnimationFrame) — это даёт точный hit-testing
       при наведении курсором. CSS-keyframes ломали :hover из-за композиции на GPU. */
    will-change: transform;
}

.tech-item {
    flex: 0 0 auto;
    width: 100px;
    padding: 20px 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
                background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tech-item:hover {
    transform: translateY(-6px) scale(1.05);
    border-color: rgba(123, 95, 255, 0.5);
    background: rgba(123, 95, 255, 0.08);
    box-shadow: 0 10px 28px rgba(123, 95, 255, 0.18);
}

.tech-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s var(--ease);
}
.tech-item:hover .tech-logo {
    transform: scale(1.08);
}

.tech-item span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== Contact modal ===== */
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}
.contact-modal.is-open { opacity: 1; visibility: visible; }

.contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 12, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.contact-modal__card {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 36px 32px 28px;
    background: linear-gradient(180deg, rgba(28, 22, 56, 0.96), rgba(15, 12, 30, 0.96));
    border: 1px solid rgba(123, 95, 255, 0.25);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5),
                0 0 60px rgba(123, 95, 255, 0.15);
    transform: translateY(16px) scale(0.96);
    transition: transform 0.3s var(--ease);
}
.contact-modal.is-open .contact-modal__card { transform: translateY(0) scale(1); }

.contact-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
    z-index: 1;
}
.contact-modal__close:hover {
    background: rgba(123, 95, 255, 0.18);
    border-color: rgba(123, 95, 255, 0.5);
    transform: rotate(90deg);
}

.contact-modal__title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
}
.contact-modal__subtitle {
    margin: 0 0 22px;
    font-size: 13px;
    color: var(--text-muted);
}

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form__field { display: flex; flex-direction: column; gap: 6px; }
.contact-form__label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(139, 156, 184, 0.6); }

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(123, 95, 255, 0.6);
    background: rgba(123, 95, 255, 0.05);
}
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
    border-color: rgba(255, 92, 92, 0.5);
}

.contact-form__submit {
    margin-top: 6px;
    justify-content: center;
}
.contact-form__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.contact-form__status {
    min-height: 22px;
    font-size: 13px;
    text-align: center;
    transition: color 0.2s;
}
.contact-form__status.is-success { color: #4ade80; }
.contact-form__status.is-error   { color: #ff7474; }

@media (max-width: 540px) {
    .contact-modal__card { padding: 30px 22px 22px; }
}

/* ===== Service modal ===== */
.service-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}
.service-modal.is-open {
    opacity: 1;
    visibility: visible;
}
.service-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 12, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.service-modal__card {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 32px 28px;
    background: linear-gradient(180deg, rgba(28, 22, 56, 0.96), rgba(15, 12, 30, 0.96));
    border: 1px solid rgba(123, 95, 255, 0.25);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5),
                0 0 60px rgba(123, 95, 255, 0.15);
    transform: translateY(16px) scale(0.96);
    transition: transform 0.3s var(--ease);
}
.service-modal.is-open .service-modal__card {
    transform: translateY(0) scale(1);
}
.service-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
    z-index: 1;
}
.service-modal__close:hover {
    background: rgba(123, 95, 255, 0.18);
    border-color: rgba(123, 95, 255, 0.5);
    transform: rotate(90deg);
}
.service-modal__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(123, 95, 255, 0.12);
    border: 1px solid rgba(123, 95, 255, 0.3);
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.service-modal__icon svg { width: 28px; height: 28px; }

.service-modal__title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
}
.service-modal__desc {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-muted);
}

.service-modal__list-wrap {
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 22px;
}
.service-modal__list-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.service-modal__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.service-modal__list li {
    position: relative;
    padding-left: 22px;
    font-size: 14px;
    color: #e3e7f3;
    line-height: 1.55;
}
.service-modal__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    box-shadow: 0 0 10px rgba(123, 95, 255, 0.5);
}

.service-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.service-modal__price {
    font-size: 13px;
    color: var(--text-muted);
}
.service-modal__price b {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
}

@media (max-width: 540px) {
    .service-modal__card { padding: 30px 22px 22px; }
    .service-modal__title { font-size: 20px; }
    .service-modal__footer { flex-direction: column; align-items: stretch; }
    .service-modal__footer .btn { justify-content: center; }
}

/* Кнопка-«ссылка» Подробнее в карточках услуг — стилизация под button */
button.service-link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

/* ===== Tech modal ===== */
.tech-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}
.tech-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.tech-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 12, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.tech-modal__card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 36px 28px 28px;
    background: linear-gradient(180deg, rgba(28, 22, 56, 0.95), rgba(15, 12, 30, 0.95));
    border: 1px solid rgba(123, 95, 255, 0.25);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5),
                0 0 60px rgba(123, 95, 255, 0.15);
    text-align: center;
    transform: translateY(16px) scale(0.96);
    transition: transform 0.3s var(--ease);
}
.tech-modal.is-open .tech-modal__card {
    transform: translateY(0) scale(1);
}

.tech-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.tech-modal__close:hover {
    background: rgba(123, 95, 255, 0.18);
    border-color: rgba(123, 95, 255, 0.5);
    transform: rotate(90deg);
}

.tech-modal__icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 auto 14px;
    display: block;
    filter: drop-shadow(0 6px 18px rgba(123, 95, 255, 0.35));
}

.tech-modal__title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
}

.tech-modal__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ==========================================================
   WHY ME
   ========================================================== */
.why { padding: 60px 0; }

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.why-card {
    padding: 28px 24px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.why-card:hover {
    transform: translateY(-4px);
    border-color: rgba(123, 95, 255, 0.4);
}

.why-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    background: transparent;
    border: none;
    transition: transform 0.4s var(--ease), filter 0.4s var(--ease);
}
/* Градиентный glow вокруг иконок */
.why-icon--purple {
    color: var(--purple);
    filter:
        drop-shadow(0 0 14px rgba(123, 95, 255, 0.55))
        drop-shadow(0 0 28px rgba(167, 71, 254, 0.35));
}
.why-icon--blue {
    color: var(--blue);
    filter:
        drop-shadow(0 0 14px rgba(79, 142, 247, 0.55))
        drop-shadow(0 0 28px rgba(56, 189, 248, 0.35));
}

.why-card:hover .why-icon {
    transform: translateY(-2px) scale(1.08);
}
.why-card:hover .why-icon--purple {
    filter:
        drop-shadow(0 0 18px rgba(123, 95, 255, 0.75))
        drop-shadow(0 0 36px rgba(167, 71, 254, 0.5));
}
.why-card:hover .why-icon--blue {
    filter:
        drop-shadow(0 0 18px rgba(79, 142, 247, 0.75))
        drop-shadow(0 0 36px rgba(56, 189, 248, 0.5));
}

.why-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}
.why-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================
   CONTACTS
   ========================================================== */
.contacts { padding: 60px 0 40px; }

.contacts-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}

.contacts-text .section-label { margin-bottom: 14px; }

.contacts-desc {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
}

.contacts-cards {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    min-width: 170px;
    background: rgba(255, 255, 255, 0.028);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.contact-card:hover {
    border-color: rgba(123, 95, 255, 0.4);
    background: rgba(123, 95, 255, 0.04);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-icon--blue {
    color: var(--blue);
    background: rgba(79, 142, 247, 0.12);
    border: 1px solid rgba(79, 142, 247, 0.3);
}
.contact-icon--purple {
    color: var(--purple);
    background: rgba(123, 95, 255, 0.12);
    border: 1px solid rgba(123, 95, 255, 0.3);
}

.contact-label {
    font-size: 12px;
    color: var(--text-muted);
}
.contact-value {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-top: 2px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    min-width: 140px;
    height: 74px;
    box-sizing: border-box;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
    position: relative;
    border-top: 1px solid var(--border);
    padding: 24px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-socials {
    display: flex;
    gap: 8px;
}
.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.footer-socials a:hover {
    color: #fff;
    background: rgba(123, 95, 255, 0.15);
    border-color: rgba(123, 95, 255, 0.4);
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.25s var(--ease), transform 0.25s var(--ease);
    z-index: 50;
}
.back-top:hover {
    background: var(--purple);
    transform: translateY(-3px);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-badge  { margin: 0 auto; }
    .hero-btns   { justify-content: center; }
    .hero-stats  { max-width: 480px; margin: 0 auto; }
    .hero-visual { order: -1; }
    .visual-wrap { max-width: 420px; margin-right: 0; }
    .laptop-wrap { width: 100%; }

    .about-inner {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    .about-photo     { max-width: 380px; margin: 0 auto; }
    .section-label   { margin: 0 auto; }
    .about-desc      { margin: 0 auto; }
    .about-features  { justify-content: center; }

    .services-grid  { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid       { grid-template-columns: repeat(2, 1fr); }

    .contacts-inner { grid-template-columns: 1fr; text-align: center; }
    .contacts-cards { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-btn   { display: none; }
    .burger    { display: block; }

    .container { padding: 0 18px; }

    .nav        { height: 70px; gap: 6px; }
    .logo-img   { height: 44px; }

    .hero { padding: 96px 0 56px; min-height: auto; }
    .hero-content { gap: 22px; }
    .hero-title { letter-spacing: -0.6px; }
    .hero-desc  { font-size: 15px; }
    .hero-desc br { display: none; }
    .hero-title br { display: none; }

    .about       { padding: 48px 0; }
    .services    { padding: 56px 0; }
    .tech        { padding: 48px 0; }
    .why         { padding: 48px 0; }
    .contacts    { padding: 48px 0 32px; }

    .section-label { font-size: 18px; }
    .section-label--top { margin-bottom: 24px; }

    .about-title { font-size: clamp(20px, 4.5vw, 26px); }
    .about-title br { display: none; }
    .about-features { gap: 18px 22px; }
    .feature { font-size: 13px; }
    .feature span br { display: none; }

    .service-card { padding: 26px 22px; }
    .why-card     { padding: 24px 20px; }

    .tech-item { width: 90px; padding: 16px 10px; }
    .tech-logo { width: 42px; height: 42px; }

    /* Уменьшаем background-orbs на мобильных, чтобы не "размазывали" фон */
    .bg-orb--1 { width: 320px; height: 320px; }
    .bg-orb--2 { width: 360px; height: 360px; }
    .bg-orb--3 { width: 280px; height: 280px; }
    .bg-orb--4 { width: 260px; height: 260px; }
    .bg-orb--5 { width: 220px; height: 220px; }
    .bg-orb__core { filter: blur(80px); }

    .glow--purple { width: 420px; height: 420px; }
    .glow--blue   { width: 280px; height: 280px; right: 20px; }

    .photo-frame  { width: 70%; }
    .photo-badge  { width: 44px; height: 44px; bottom: -10px; right: -10px; }
}

/* Мобильное меню — рендерится только на мобильных (на десктопе скрываем полностью) */
@media (min-width: 769px) {
    .mobile-menu { display: none !important; }
}

@media (max-width: 600px) {
    .services-grid,
    .portfolio-grid,
    .why-grid { grid-template-columns: 1fr; }

    .footer-inner   { justify-content: center; text-align: center; }
    .contact-btn    { width: 100%; justify-content: center; height: auto; padding: 14px 24px; }
    .contact-card   { width: 100%; min-width: 0; }

    .hero-title { font-size: clamp(28px, 8vw, 40px); }
    .hero-stats { padding: 16px 18px; }
    .stat-val   { font-size: 19px; }

    .nav-link { font-size: 15px; }

    /* Modals — лучше адаптируем под маленькие экраны */
    .service-modal { padding: 14px; }
    .tech-modal    { padding: 14px; }
    .service-modal__card { padding: 28px 20px 22px; max-height: 88vh; }
    .tech-modal__card    { padding: 30px 20px 22px; }
    .service-modal__title { font-size: 20px; }
    .tech-modal__title    { font-size: 19px; }
    .service-modal__list li { font-size: 13px; }
}

@media (max-width: 540px) {
    .container { padding: 0 16px; }

    .hero-stats {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .stat-item { width: 100%; }
    .stat-divider {
        width: 100%;
        height: 1px;
        margin: 0;
    }
    .hero-btns { flex-direction: column; width: 100%; align-items: stretch; }
    .btn       { width: 100%; justify-content: center; }

    .hero-badge { font-size: 13px; padding: 7px 14px; }
    .hero-desc  { font-size: 14.5px; line-height: 1.65; }

    .about-features { gap: 14px 18px; }
    .feature        { font-size: 12.5px; }
    .feature-icon   { width: 38px; height: 38px; }

    /* Карусель технологий — компактнее */
    .tech-item { width: 84px; padding: 14px 8px; gap: 8px; }
    .tech-logo { width: 38px; height: 38px; }
    .tech-item span { font-size: 11.5px; }

    .visual-wrap { max-width: 320px; }

    .photo-frame { width: 80%; }

    .footer-copy   { font-size: 12px; }

    .back-top {
        right: 14px;
        bottom: 14px;
        width: 38px;
        height: 38px;
    }

    .mobile-menu.open { padding: 14px 16px 20px; }

    .hero { padding: 84px 0 40px; }
}

@media (max-width: 380px) {
    .hero-title { font-size: 26px; letter-spacing: -0.4px; }
    .about-title { font-size: 19px; }
    .section-label { font-size: 16px; }
    .logo-img { height: 38px; }
    .nav { height: 64px; }
    .hero { padding: 76px 0 32px; }
}

/* ========== TABLET (769–1180px) — отдельные отступы ========== */
@media (min-width: 769px) and (max-width: 1180px) {
    .container { padding: 0 40px; }

    .hero {
        min-height: auto;
        padding: 120px 0 56px;
    }
    .hero-inner { gap: 32px; }

    .about    { padding: 56px 0; }
    .services { padding: 64px 0; }
    .tech     { padding: 56px 0; }
    .why      { padding: 56px 0; }
    .contacts { padding: 56px 0 40px; }
}
