/* ===== Базовые настройки ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6c5ce7;
    --primary-dark: #5b4cdb;
    --secondary: #00cec9;
    --dark: #2d3436;
    --light: #f5f6fa;
    --white: #ffffff;
    --gray: #636e72;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: #0a0a0a;
}

/* ===== FX Overlay ===== */
#fx-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 25;
    overflow: visible;
}

.fx-container {
    position: absolute;
    left: -200px;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    height: 450px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fx-container.active {
    opacity: 1;
}

/* Right side (mirrored) container */
.fx-overlay-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 25;
    overflow: visible;
}

.fx-container-right {
    left: auto;
    right: -200px;
    transform: translateY(-50%);
}

/* Mirrored positions for right side */
.fx-container-right .fx-balloon-big {
    left: auto;
    right: 10px;
}

.fx-container-right .fx-plane {
    left: auto;
    right: 60px;
}

.fx-container-right .fx-balloon-small {
    right: auto;
    left: 30px;
}

/* Payments FX sizes */
#pay-fx .fx-plane {
    width: 350px;
    right: 40px;
}

#pay-fx .fx-balloon-big {
    width: 160px;
    top: -30px;
}

#pay-fx .fx-balloon-small {
    width: 110px;
    left: 10px;
}

/* Big balloon */
.fx-balloon-big {
    position: absolute;
    width: 160px;
    height: auto;
    left: 10px;
    top: 0;
    opacity: 0;
    transform: scale(0.8);
}

.fx-container.active .fx-balloon-big {
    animation: floatBig 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
               gentleFloat 4s ease-in-out 0.8s forwards;
}

/* Plane balloon */
.fx-plane {
    position: absolute;
    width: 220px;
    height: auto;
    left: 60px;
    top: 100px;
    opacity: 0;
    transform: scale(0.8);
    z-index: 2;
}

.fx-container.active .fx-plane {
    animation: floatPlane 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s forwards,
               gentleFloatPlane 5s ease-in-out 0.95s forwards;
}

/* Small balloon */
.fx-balloon-small {
    position: absolute;
    width: 110px;
    height: auto;
    right: 30px;
    top: 260px;
    opacity: 0;
    transform: scale(0.8);
}

.fx-container.active .fx-balloon-small {
    animation: floatSmall 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards,
               gentleFloatSmall 4.5s ease-in-out 1.1s forwards;
}

/* Appear animations */
@keyframes floatBig {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes floatPlane {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes floatSmall {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Gentle floating animations (subtle) */
@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-8px) translateX(3px);
    }
}

@keyframes gentleFloatPlane {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    30% {
        transform: translateY(-5px) translateX(-2px) rotate(-1deg);
    }
    70% {
        transform: translateY(5px) translateX(2px) rotate(1deg);
    }
}

@keyframes gentleFloatSmall {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-6px) translateX(-3px);
    }
}

/* ===== VK FX Effects (Absolute to section) ===== */
.vk-fx {
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.vk-fx.active {
    opacity: 1;
}

/* Left side: В */
.vk-fx-left {
    left: 15px;
}

/* Right side: К */
.vk-fx-right {
    right: 15px;
}

/* Letter image styling */
.vk-letter {
    width: 220px;
    height: auto;
    opacity: 0;
    transform: scale(0.8);
    mix-blend-mode: lighten;
    position: relative;
    z-index: 2;
}

.vk-fx.active .vk-letter {
    animation: vkFloatIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
               vkSway 4s ease-in-out 0.8s forwards;
}

/* VK Balls - positioned */
.vk-ball {
    position: absolute;
    opacity: 0;
    transform: scale(0.8);
    mix-blend-mode: lighten;
}

/* Big ball - top, towards edge, overflow */
.vk-ball-big {
    width: 160px;
    height: auto;
    top: -80px;
    z-index: 1;
}

.vk-fx-left .vk-ball-big {
    left: -60px;
}

.vk-fx-right .vk-ball-big {
    right: -60px;
}

/* Small ball - bottom */
.vk-ball-small {
    width: 90px;
    height: auto;
    bottom: -50px;
    z-index: 1;
}

.vk-fx-left .vk-ball-small {
    right: -30px;
}

.vk-fx-right .vk-ball-small {
    left: -30px;
}

.vk-fx.active .vk-ball-big {
    animation: vkFloatIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s forwards,
               vkSwayBall1 3.5s ease-in-out 0.95s forwards;
}

.vk-fx.active .vk-ball-small {
    animation: vkFloatIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards,
               vkSwayBall2 4s ease-in-out 1.1s forwards;
}

@keyframes vkFloatIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes vkSway {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(1deg);
    }
    75% {
        transform: translateY(3px) rotate(-1deg);
    }
}

@keyframes vkSwayBall1 {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-10px) translateX(5px);
    }
}

@keyframes vkSwayBall2 {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-7px) translateX(-4px);
    }
}

/* ===== Web FX Effects (Top corners) ===== */
.web-fx {
    position: absolute;
    top: 15px;
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.web-fx.active {
    opacity: 1;
}

.web-fx-left {
    left: 15px;
}

.web-fx-right {
    right: 15px;
}

.web-flower {
    width: 140px;
    height: auto;
    opacity: 0;
    transform: scale(0.8);
    mix-blend-mode: lighten;
}

.web-fx.active .web-flower {
    animation: webFloatIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
               webSway 4s ease-in-out 0.8s forwards;
}

@keyframes webFloatIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes webSway {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(5px) rotate(2deg);
    }
    75% {
        transform: translateY(-3px) rotate(-2deg);
    }
}

/* ===== AI FX Effects (Side edges like VK) ===== */
.ai-fx {
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ai-fx.active {
    opacity: 1;
}

.ai-fx-left {
    left: 15px;
}

.ai-fx-right {
    right: 15px;
}

.ai-icon {
    opacity: 0;
    transform: scale(0.8);
    mix-blend-mode: lighten;
}

.ai-icon-big {
    width: 180px;
    height: auto;
    z-index: 2;
}

.ai-icon-small {
    width: 100px;
    height: auto;
    z-index: 1;
}

.ai-icon-top {
    margin-bottom: -20px;
}

.ai-icon-bottom {
    margin-top: -20px;
}

.ai-fx.active .ai-icon-big {
    animation: aiFloatIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
               aiSway 4s ease-in-out 0.8s forwards;
}

.ai-fx.active .ai-icon-top {
    animation: aiFloatIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s forwards,
               aiSwaySmall1 3.5s ease-in-out 0.95s forwards;
}

.ai-fx.active .ai-icon-bottom {
    animation: aiFloatIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards,
               aiSwaySmall2 4s ease-in-out 1.1s forwards;
}

@keyframes aiFloatIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes aiSway {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(1deg);
    }
    75% {
        transform: translateY(3px) rotate(-1deg);
    }
}

@keyframes aiSwaySmall1 {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-8px) translateX(4px);
    }
}

@keyframes aiSwaySmall2 {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(6px) translateX(-4px);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Кнопки ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== Навигация ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== Top Bar ===== */
.top-bar {
    position: fixed;
    top: 16px;
    left: 24px;
    right: 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    pointer-events: none;
}

.top-bar > * {
    pointer-events: auto;
}

.top-bar-logo {
    font-family: 'Anton', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #fff;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.top-bar-logo.dark {
    color: #111;
}

.top-bar-pill {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 12px 32px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.top-bar-pill a {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #1a1a1a;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.top-bar-pill a:hover {
    color: #666;
}

.top-bar-menu {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.top-bar-menu span {
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: background 0.3s ease;
}

.top-bar-menu.dark {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.25);
}

.top-bar-menu.dark span {
    background: #111;
}

.top-bar-menu:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

/* ===== Hero секция ===== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    overflow: hidden;
}

/* Обёртка заголовка */
.hero-title-wrapper {
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* Заголовок — огромный, толстый */
.hero-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(6rem, 20vw, 18rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 0.85;
    text-align: center;
    white-space: nowrap;
    background: linear-gradient(180deg, #666666 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    user-select: none;
}

/* Маленькие надписи сверху */
.title-labels {
    position: relative;
    height: 1.5em;
    font-size: clamp(0.5rem, 1.5vw, 1rem);
}

.label {
    position: absolute;
    font-family: 'Inter', sans-serif;
    font-size: 1em;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

.label-1 { left: 5%; }
.label-2 { left: 30%; }
.label-3 { left: 62%; }
.label-4 { left: 85%; }

/* Текст о себе слева */
.hero-bio {
    position: absolute;
    left: 40px;
    top: 65%;
    transform: translateY(-50%);
    max-width: 220px;
    z-index: 15;
}

.hero-bio p {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.5;
    background: linear-gradient(180deg, #666666 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
}

/* Голова — большая, поверх букв */
.hero-head {
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.head-img {
    max-width: 850px;
    width: 65vw;
    min-width: 350px;
    height: auto;
    display: block;
}

.hero-head.reacting {
    transition: transform 0.15s ease-out;
}

/* Contact кнопка справа */
.contact-btn {
    position: absolute;
    right: 50px;
    top: 65%;
    transform: translateY(-50%);
    padding: 16px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, #1a1a1a 0%, #ec4899 33%, #8b5cf6 66%, #f97316 100%);
    background-size: 300% 300%;
    background-position: 0% 50%;
    border: 1px solid rgba(244, 114, 182, 0.4);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease-out;
    z-index: 20;
}

.contact-btn:hover {
    border-color: #ffffff;
    transform: translateY(-50%) rotate(-12deg);
    background-position: 100% 50%;
}

/* ===== Terminal Section ===== */
.terminal-section {
    width: 100%;
    height: 180px;
    background: linear-gradient(180deg, #0a0a0a 0%, #0d0d0d 100%);
    border-top: 1px solid rgba(236, 72, 153, 0.2);
    border-bottom: 1px solid rgba(236, 72, 153, 0.2);
    position: relative;
    overflow: hidden;
}

/* Лёгкий scanline эффект */
.terminal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
    pointer-events: none;
    z-index: 2;
}

/* Градиент затухания сверху и снизу */
.terminal-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        #0a0a0a 0%,
        transparent 20%,
        transparent 80%,
        #0d0d0d 100%
    );
    pointer-events: none;
    z-index: 1;
}

.terminal-track {
    display: flex;
    flex-direction: column;
    animation: terminalScroll 6s linear infinite;
}

.terminal-content {
    padding: 20px 40px;
}

.terminal-line {
    font-family: 'Courier New', Consolas, monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #ec4899;
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.3);
}

@keyframes terminalScroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* ===== Panels Section (WHAT I DO) ===== */
.panels-section {
    min-height: 100vh;
    background: #0a0a0a;
    padding: 80px 24px;
    position: relative;
    overflow: visible;
}

.panels-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(180deg, #666666 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.panels-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    height: 520px;
    overflow: visible;
}

.panel {
    flex: 0 0 100px;
    height: 100%;
    background: #1a1a1a;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
    overflow: visible;
    position: relative;
}

.panel-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 16px;
    position: relative;
    z-index: 20;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), background 0.5s ease;
}

.panel-badge svg {
    width: 28px;
    height: 28px;
    fill: rgba(255, 255, 255, 0.7);
}

.panel-badge img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.panel-badge span {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.panel-name {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-top: auto;
    margin-bottom: auto;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.panel-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    clip-path: circle(30px at 50% 50px);
    transition: clip-path 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.panel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50px;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: 1;
}

.panel:hover .panel-image,
.panel.active .panel-image {
    opacity: 1;
    transform: scale(1);
}

.panel-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 50px;
    z-index: 0;
}

.panel-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    border-radius: 0 0 50px 50px;
    z-index: 2;
}

.panel-info-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.panel-info-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin-bottom: 16px;
}

.panel-btn {
    padding: 14px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.panel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Telegram: голубой и белый */
.panel-btn--telegram {
    background: linear-gradient(135deg, #2AABEE 0%, #ffffff 100%);
    color: #1a1a1a;
}

/* VK: синий и белый */
.panel-btn--vk {
    background: linear-gradient(135deg, #0077FF 0%, #ffffff 100%);
    color: #1a1a1a;
}

/* Websites: желтый и белый */
.panel-btn--web {
    background: linear-gradient(135deg, #FFB800 0%, #ffffff 100%);
    color: #1a1a1a;
}

/* AI: зеленый и белый */
.panel-btn--ai {
    background: linear-gradient(135deg, #22C55E 0%, #ffffff 100%);
    color: #1a1a1a;
}

/* Payments: красный и желтый */
.panel-btn--pay {
    background: linear-gradient(135deg, #EF4444 0%, #FBBF24 100%);
    color: #fff;
}

/* Анимация появления панелей при скролле */
.panels-container .panel {
    opacity: 0;
    transform: translateY(80px) scale(0.95);
}

.panels-container.visible .panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.panels-container.visible .panel:nth-child(1) { transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s, flex 0.6s cubic-bezier(0.25, 0.1, 0.25, 1); }
.panels-container.visible .panel:nth-child(2) { transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s, flex 0.6s cubic-bezier(0.25, 0.1, 0.25, 1); }
.panels-container.visible .panel:nth-child(3) { transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.45s, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.45s, flex 0.6s cubic-bezier(0.25, 0.1, 0.25, 1); }
.panels-container.visible .panel:nth-child(4) { transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s, flex 0.6s cubic-bezier(0.25, 0.1, 0.25, 1); }
.panels-container.visible .panel:nth-child(5) { transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.75s, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.75s, flex 0.6s cubic-bezier(0.25, 0.1, 0.25, 1); }

/* Hover: панель расширяется, остальные сжимаются ТОЛЬКО когда на панель наведен курсор */
.panels-container:has(.panel:hover) .panel:not(:hover) {
    flex: 0 0 70px;
}

.panels-container .panel:hover {
    flex: 1 1 400px;
}

.panel:hover .panel-name {
    opacity: 0;
    visibility: hidden;
}

.panel:hover .panel-content,
.panel.active .panel-content {
    clip-path: circle(150% at 50% 50px);
}

.panel:hover .panel-badge,
.panel.active .panel-badge {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.1);
}

.panel:hover .panel-badge img,
.panel.active .panel-badge img {
    opacity: 1;
}

/* Mobile: active state (tap) */
@media (hover: none) {
    .panels-container:hover .panel {
        flex: 0 0 100px;
    }

    .panels-container .panel:hover {
        flex: 0 0 100px;
    }

    .panel:hover .panel-name {
        opacity: 1;
        visibility: visible;
    }

    .panel:hover .panel-content {
        clip-path: circle(30px at 50% 50px);
    }

    .panel:hover .panel-image {
        opacity: 0;
        transform: scale(1.1);
    }

    /* Когда есть активная панель — остальные сжимаются */
    .panels-container.has-active .panel {
        flex: 0 0 70px;
    }

    .panels-container.has-active .panel.active {
        flex: 1 1 400px;
    }

    .panel.active .panel-name {
        opacity: 0;
        visibility: hidden;
    }

    .panel.active .panel-content {
        clip-path: circle(150% at 50% 50px);
    }

    .panel.active .panel-badge {
        background: rgba(0, 0, 0, 0.6);
        transform: scale(1.1);
    }

    .panel.active .panel-image {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== Services Section (Что я делаю) ===== */
.services-section {
    background: #0a0a0a;
    padding: 80px 24px;
    position: relative;
}

.services-container {
    max-width: 1150px;
    margin: 0 auto;
}

.services-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(180deg, #666666 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Карточка */
.service-card {
    position: relative;
    border-radius: 20px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    will-change: transform;
    outline: none;
}

.card-inner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    transform-style: preserve-3d;
}

/* Картинка заполняет всю карточку */
.card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    z-index: 1;
}

.card-image.error {
    opacity: 0;
}

/* Placeholder если нет картинки */
.card-placeholder {
    position: absolute;
    inset: 0;
    background: #0a0a0a;
    z-index: 0;
}

.service-card:hover .card-image,
.service-card:focus-visible .card-image {
    transform: scale(1.05);
}

/* Кнопка info */
.card-info-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    font-style: italic;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
}

.card-info-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

/* Info Overlay */
.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 24px;
    z-index: 15;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.card-overlay.active {
    opacity: 1;
    visibility: visible;
}

.card-overlay-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #fff;
    margin-bottom: 10px;
}

.card-overlay-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 16px;
}

.card-overlay-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-overlay-close:hover {
    border-color: #fff;
    color: #fff;
}

/* Лейбл */
.card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    transition: opacity 0.2s ease;
    z-index: 5;
}

/* Скрываем лейбл когда overlay активен */
.card-overlay.active + .card-label {
    opacity: 0;
}

/* Адаптив для карточек */
@media (max-width: 1000px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .services-section {
        padding: 60px 16px;
    }

    .services-title {
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card-inner {
        aspect-ratio: 16 / 10;
    }

    .card-label {
        font-size: 0.8rem;
        padding: 16px 14px;
    }

    .card-info-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .card-overlay-title {
        font-size: 0.9rem;
    }

    .card-overlay-desc {
        font-size: 0.8rem;
    }
}

/* ===== О себе ===== */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 3rem;
}

.about-photo img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--gray);
    font-size: 1.1rem;
}

/* ===== Услуги ===== */
.services {
    padding: 100px 0;
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}


/* ===== Портфолио ===== */
.portfolio {
    padding: 100px 0;
    background: var(--white);
}

.portfolio-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.bot-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.bot-card:hover {
    transform: translateY(-10px);
}

.bot-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.bot-card h3 {
    margin-bottom: 0.5rem;
}

.bot-card p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.bot-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* ===== Демо-бот ===== */
.demo {
    padding: 100px 0;
    background: var(--light);
}

.demo-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
}

.chat-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.chat-messages {
    height: 350px;
    overflow-y: auto;
    padding: 20px;
}

.message {
    margin-bottom: 15px;
    padding: 12px 18px;
    border-radius: var(--radius);
    max-width: 80%;
}

.bot-message {
    background: var(--light);
    color: var(--dark);
}

.user-message {
    background: var(--primary);
    color: var(--white);
    margin-left: auto;
}

.chat-input-container {
    display: flex;
    border-top: 1px solid var(--light);
}

.chat-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.chat-send {
    padding: 15px 25px;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.chat-send:hover {
    background: var(--primary-dark);
}

/* ===== Контакты ===== */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 30px;
    background: var(--light);
    border-radius: var(--radius);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 1.5rem;
}

/* ===== Футер ===== */
.footer {
    padding: 30px 0;
    background: var(--dark);
    color: var(--white);
    text-align: center;
}

/* ===== Plate Section ===== */
.sticky-section {
    background: #000;
    padding: 15px;
}

.sticky-wrapper {
    display: flex;
    justify-content: center;
}

.sticky-plate {
    background: #fff;
    width: 100%;
    max-width: 100%;
    border-radius: 32px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 80px 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.plate-main-title {
    font-size: 6rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    -webkit-text-stroke: 1px #111;
    color: transparent;
}

.plate-main-title .title-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: #111;
    -webkit-text-stroke: 0;
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.05s linear;
}

.plate-step {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    padding: 60px 0;
    padding-left: 80px;
    border-bottom: 1px solid #eee;
}

.plate-step:last-child {
    border-bottom: none;
}

.step-number {
    font-family: 'Inter', sans-serif;
    font-size: 10rem;
    font-weight: 900;
    line-height: 1;
    flex-shrink: 0;
    min-width: 280px;
    position: relative;
    color: transparent;
}

.step-number .num-fill {
    position: absolute;
    top: 0;
    left: 0;
    color: #111;
    clip-path: inset(100% 0 0 0);
}

.step-content {
    max-width: 600px;
    padding-top: 15px;
}

.step-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 15px;
    position: relative;
    color: transparent;
}

.step-title .title-fill {
    position: absolute;
    top: 0;
    left: 0;
    color: #111;
    clip-path: inset(100% 0 0 0);
}

.step-text {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* ===== Scroll Cards Section ===== */
.scroll-cards-section {
    position: relative;
    z-index: 10;
    height: 400vh;
    margin-top: -60px;
}

.scroll-cards-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
}

.scroll-cards-plate {
    background: transparent;
    width: 100%;
    height: 100%;
    border-radius: 40px 40px 0 0;
    overflow: visible;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-cards-container {
    width: 100%;
    max-width: 1200px;
    padding: 60px;
    background: transparent;
}

/* ===== Projects Section (OLD - disabled) =====
.projects-section {
    position: relative;
    background: #000;
    padding: 0 20px;
    height: 300vh;
}
*/

.projects-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.projects-panel {
    width: 100%;
    max-width: 1100px;
    height: calc(100vh - 80px);
    max-height: 800px;
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 60px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 25px 80px rgba(0, 0, 0, 0.5);
}

.projects-header {
    text-align: center;
    margin-bottom: 50px;
    flex-shrink: 0;
}

.projects-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 10px;
}

.projects-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.projects-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

/* Project Cards */
.project-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.project-card-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Card Header - номер, клиент, кнопка */
.project-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-shrink: 0;
}

.project-card-info {
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.project-number {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}

.project-client {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: #fff;
}

.project-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 14px 28px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

/* Previews - превью картинок */
.project-previews {
    flex: 1;
    display: flex;
    gap: 20px;
    min-height: 0;
}

.project-preview {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    min-height: 200px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.project-preview:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 768px) {
    .projects-section {
        padding: 0 15px;
    }

    .projects-panel {
        border-radius: 28px;
        padding: 40px 25px;
    }

    .projects-header {
        margin-bottom: 30px;
    }

    .project-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 20px;
    }

    .project-card-info {
        gap: 12px;
    }

    .project-number {
        font-size: 1rem;
    }

    .project-client {
        font-size: 1.1rem;
    }

    .project-link {
        font-size: 0.8rem;
        padding: 10px 18px;
    }

    .project-previews {
        flex-direction: column;
        gap: 15px;
    }

    .project-preview {
        min-height: 150px;
        border-radius: 16px;
    }
}

.scroll-screen {
    position: absolute;
    width: 320px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s ease, opacity 0.6s ease;
    transform-origin: center bottom;
}

.screen-inner {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 32px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Initial fan position */
.screen-1 {
    z-index: 3;
    transform: rotate(-12deg) translateX(-60px);
}

.screen-2 {
    z-index: 2;
    transform: rotate(0deg);
}

.screen-3 {
    z-index: 1;
    transform: rotate(12deg) translateX(60px);
}

/* Lifted state - screens rise up */
.scroll-cards-plate.lifting .screen-1 {
    transform: rotate(-20deg) translateX(-120px) translateY(-80px);
}

.scroll-cards-plate.lifting .screen-2 {
    transform: rotate(0deg) translateY(-100px);
}

.scroll-cards-plate.lifting .screen-3 {
    transform: rotate(20deg) translateX(120px) translateY(-80px);
}

/* Expanded - full screen */
.scroll-cards-plate.expanded .scroll-screen {
    width: 100%;
    height: 100%;
    transform: rotate(0deg) translateX(0) translateY(0);
    opacity: 0;
}

.scroll-cards-plate.expanded .scroll-screen.active {
    opacity: 1;
}

.scroll-cards-plate.expanded .screen-inner {
    border: none;
    border-radius: 0;
    background: transparent;
}

.screen-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
}

.screen-title {
    font-family: 'Anton', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 20px;
}

.screen-text {
    font-size: 1.1rem;
    color: #aaa;
    line-height: 1.8;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    background: #fff;
    width: 94%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 32px;
    overflow: hidden;
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    font-size: 3rem;
    color: #333;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

.modal-header {
    position: relative;
    padding: 40px;
    padding-bottom: 0;
    display: flex;
    justify-content: flex-end;
}

.modal-logo {
    width: 60px;
    height: auto;
}

.modal-fx {
    position: absolute;
    top: 20px;
    right: 100px;
    width: 200px;
    height: 250px;
}

.modal-balloon,
.modal-plane {
    position: absolute;
    opacity: 0;
    mix-blend-mode: multiply;
}

.modal-balloon-1 {
    width: 80px;
    top: 0;
    left: 0;
}

.modal-plane {
    width: 120px;
    top: 50px;
    left: 30px;
    z-index: 2;
}

.modal-balloon-2 {
    width: 60px;
    top: 120px;
    right: 0;
}

.modal.active .modal-balloon-1 {
    animation: floatBig 0.8s ease forwards, gentleFloat 4s ease-in-out 0.8s forwards;
}

.modal.active .modal-plane {
    animation: floatPlane 0.8s ease 0.15s forwards, gentleFloatPlane 5s ease-in-out 0.95s forwards;
}

.modal.active .modal-balloon-2 {
    animation: floatSmall 0.8s ease 0.3s forwards, gentleFloatSmall 4.5s ease-in-out 1.1s forwards;
}

.modal-plane-big {
    width: 160px;
}


/* Static modal icons */
.modal-fx-static {
    width: 250px;
    height: 150px;
}

.modal-icon {
    position: absolute;
    mix-blend-mode: multiply;
}

.modal-icon-1 {
    width: 100px;
    top: 0;
    left: 0;
}

.modal-icon-2 {
    width: 100px;
    top: 30px;
    left: 80px;
}

.modal-icon-3 {
    width: 80px;
    top: 80px;
    left: 20px;
}

/* Payments larger icons */
#pay-modal .modal-icon-1 {
    width: 140px;
}

#pay-modal .modal-icon-2 {
    width: 120px;
    top: 40px;
    left: 100px;
}

.modal-article {
    padding: 40px 60px 60px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.article-title {
    font-family: 'Anton', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    color: #111;
    margin-bottom: 30px;
}

.article-lead {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 40px;
}

.article-heading {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #111;
    margin-top: 50px;
    margin-bottom: 30px;
}

.article-section {
    margin-bottom: 30px;
}

.article-subheading {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.article-text {
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
}

.article-image-placeholder {
    width: 100%;
    height: 200px;
    background: #f5f5f5;
    border-radius: 16px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

.article-image-placeholder::after {
    content: attr(data-label);
}

.article-video-placeholder {
    width: 100%;
    height: 300px;
    background: #111;
    border-radius: 16px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
    overflow: hidden;
    position: relative;
}

.article-video-placeholder::after {
    content: attr(data-label);
    position: absolute;
    z-index: 1;
}

.article-video-placeholder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.article-video-16-9 {
    height: 0;
    padding-bottom: 56.25%;
}

.article-video-9-16 {
    width: 200px;
    height: 355px;
    padding-bottom: 0;
    margin: 0;
    flex-shrink: 0;
}

.article-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin: 30px 0;
}

.article-row .article-section {
    flex: 1;
    margin-bottom: 0;
}

.article-row .article-video-9-16 {
    margin: 0;
}

.step-text.visible {
    opacity: 1;
}

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
    /* Top Bar адаптивность */
    .top-bar {
        left: 16px;
        right: 16px;
        top: 12px;
    }

    .top-bar-pill {
        display: none;
    }

    .top-bar-logo {
        font-size: 1rem;
    }

    /* Hero адаптивность */
    .hero-title-wrapper {
        top: 14%;
    }

    .hero-title {
        font-size: clamp(4rem, 18vw, 10rem);
    }

    .head-img {
        max-width: 500px;
        width: 80vw;
    }

    .hero-head {
        bottom: -80px;
    }

    .contact-btn {
        right: 20px;
        top: 60%;
        padding: 14px 28px;
        font-size: 0.8rem;
    }

    .hero-bio {
        left: 20px;
        max-width: 160px;
        top: 60%;
    }

    .hero-bio p {
        font-size: 0.95rem;
    }

    /* Terminal Section адаптивность */
    .terminal-section {
        height: 140px;
    }

    .terminal-content {
        padding: 16px 20px;
    }

    .terminal-line {
        font-size: 11px;
    }

    /* Навигация */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 1rem;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    h2 {
        font-size: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-photo {
        max-width: 250px;
        margin: 0 auto;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .top-bar {
        left: 12px;
        right: 12px;
    }

    .top-bar-menu {
        width: 36px;
        height: 36px;
    }

    .top-bar-menu span {
        width: 16px;
    }

    .hero-title-wrapper {
        top: 12%;
    }

    .hero-title {
        font-size: clamp(3rem, 16vw, 6rem);
    }

    .title-labels {
        font-size: clamp(0.4rem, 1.2vw, 0.7rem);
    }

    .head-img {
        min-width: 280px;
    }

    .hero-head {
        bottom: -50px;
    }

    .contact-btn {
        right: 15px;
        padding: 10px 18px;
        font-size: 0.75rem;
    }

    .hero-bio {
        display: none;
    }
}
/* ===== Projects Section ===== */
.projects-section {
    background: #000;
    padding: 80px 40px;
    min-height: 100vh;
}

.projects-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #fff;
    text-align: center;
    margin-bottom: 60px;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Project Card */
.project-card {
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.project-card-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.project-card-number {
    font-family: 'Anton', sans-serif;
    font-size: 3rem;
    color: #fff;
    opacity: 0.8;
}

.project-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-card-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-card-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.project-card-btn {
    padding: 14px 28px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.project-card-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

/* Project Card Content */
.project-card-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    height: 300px;
}

.project-card-preview {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-card-preview--big {
    height: 100%;
}

.project-card-preview-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-card-preview--small {
    height: 140px;
}

.project-card-preview::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-card-preview::before {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .projects-section {
        padding: 60px 20px;
    }

    .projects-title {
        margin-bottom: 40px;
    }

    .projects-container {
        gap: 30px;
    }

    .project-card {
        padding: 24px;
    }

    .project-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 24px;
    }

    .project-card-content {
        grid-template-columns: 1fr;
        grid-template-rows: 200px auto;
        height: auto;
    }

    .project-card-preview-group {
        grid-template-columns: 1fr 1fr;
        display: grid;
        gap: 15px;
    }

    .project-card-preview--small {
        height: 120px;
    }
}

/* ===== New Contact Section ===== */
.contact-new {
    background: #fff;
    padding: 100px 60px;
    position: relative;
    z-index: 10;
    border-radius: 40px 40px 0 0;
    margin-top: -20px;
}

.contact-new-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-new-left {
    position: relative;
}

.contact-new-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    color: #000;
    line-height: 1.1;
    margin-bottom: 30px;
}

.contact-new-email {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    color: #000;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.contact-new-email:hover {
    opacity: 0.7;
}

.contact-new-right {
    position: relative;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-input,
.contact-textarea {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    padding: 16px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    color: #000;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-input:focus,
.contact-textarea:focus {
    outline: none;
    border-color: #000;
    background: #fff;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
    color: #999;
}

.contact-textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-submit {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 40px;
    background: transparent;
    border: 2px solid #000;
    border-radius: 50px;
    color: #000;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    align-self: flex-start;
}

.contact-submit:hover {
    background: #000;
    color: #fff;
}

/* Decorative images */
.contact-decor {
    position: absolute;
    pointer-events: none;
}

.contact-hand {
    width: 120px;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    animation: float 3s ease-in-out infinite;
}

.contact-lightning {
    width: 80px;
    right: -40px;
    top: -40px;
    animation: float 2.5s ease-in-out infinite 0.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(-50%) rotate(0deg); }
    50% { transform: translateY(calc(-50% - 10px)) rotate(3deg); }
}

.contact-lightning {
    animation: floatLightning 2.5s ease-in-out infinite;
}

@keyframes floatLightning {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-5deg); }
}

/* Responsive */
@media (max-width: 900px) {
    .contact-new-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-new {
        padding: 60px 30px;
    }

    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .contact-hand,
    .contact-lightning {
        display: none;
    }
}