* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #ff6b6b;
    --secondary: #48dbfb;
    --accent: #feca57;
    --neon: #ff9ff3;
    --dark: #0f0f0f;
    --darker: #0a0a0a;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
}

body {
    background: var(--dark);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
    font-size: 16px;
}

/* Классы для разделения ПК и мобильных */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.desktop-neon {
    /* Неоновые эффекты для ПК */
}

.mobile-simple {
    /* Простые стили для мобильных */
}

.desktop-interactive {
    /* Интерактивные элементы для ПК */
}

.desktop-hover {
    /* Hover-эффекты для ПК */
}

.desktop-animated {
    /* Анимированные элементы для ПК */
}

.desktop-pulse {
    /* Пульсирующие анимации для ПК */
}

.desktop-glow {
    /* Свечение для ПК */
}

/* Анимированный фон для ПК */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(72, 219, 251, 0.1) 0%, transparent 50%);
    z-index: -1;
}

/* Движущаяся сетка для ПК */
.moving-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, var(--darker) 21px, transparent 1%) center,
        linear-gradient(var(--darker) 21px, transparent 1%) center,
        var(--glass);
    background-size: 22px 22px;
    animation: gridMove 20s linear infinite;
    opacity: 0.3;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(22px, 22px); }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 5%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    animation-delay: 0s;
}

.shape-2 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 10%;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    animation-delay: -7s;
}

.shape-3 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    left: 20%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    animation-delay: -14s;
}

/* Морфинг формы для ПК */
.morphing-shape {
    position: absolute;
    opacity: 0.05;
    z-index: -1;
    animation: morph 8s ease-in-out infinite;
}

.morph-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    background: var(--secondary);
    animation-delay: 0s;
}

.morph-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 10%;
    background: var(--neon);
    animation-delay: -4s;
}

@keyframes morph {
    0%, 100% { 
        border-radius: 50%;
        transform: rotate(0deg) scale(1);
    }
    25% { 
        border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
        transform: rotate(90deg) scale(1.1);
    }
    50% { 
        border-radius: 70% 30% 50% 50% / 30% 70% 30% 70%;
        transform: rotate(180deg) scale(0.9);
    }
    75% { 
        border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
        transform: rotate(270deg) scale(1.05);
    }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, 50px) rotate(120deg); }
    66% { transform: translate(-20px, 30px) rotate(240deg); }
}

/* Эффект частиц для ПК */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--secondary);
    border-radius: 50%;
    animation: floatParticle 15s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Простой фон для мобильных */
.simple-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(72, 219, 251, 0.05) 0%, transparent 50%),
        var(--darker);
    z-index: -1;
}

/* Анимации появления для ПК */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.slide-in {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInRight 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Анимация заголовка для ПК */
.animated-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: titleGlow 3s ease-in-out infinite alternate;
    line-height: 1.2;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 20px transparent;
    }
    to {
        text-shadow: 0 0 30px var(--secondary);
    }
}

/* Простой заголовок для мобильных */
.simple-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Эффект печатающего текста для ПК */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--secondary);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--secondary) }
}

/* Неоновый текст для ПК */
.desktop-neon {
    text-shadow: 
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 20px currentColor;
    animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
    from {
        text-shadow: 
            0 0 5px currentColor,
            0 0 10px currentColor;
    }
    to {
        text-shadow: 
            0 0 10px currentColor,
            0 0 20px currentColor,
            0 0 30px currentColor;
    }
}

/* Навигация */
.simple-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary), var(--neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

/* Hover-эффекты только для ПК */
@media (hover: hover) and (pointer: fine) {
    .desktop-hover:hover {
        color: var(--secondary);
        background: rgba(72, 219, 251, 0.1);
    }
    
    .desktop-hover:hover::after {
        width: 100%;
    }
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    transition: left 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.mobile-nav-link:hover {
    background: var(--glass);
    color: var(--secondary);
}

/* Герой секция */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 1rem 2rem;
}

.hero-container {
    text-align: center;
    max-width: 800px;
    width: 100%;
    position: relative;
}

.title-underline {
    width: min(200px, 60vw);
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    margin: 0 auto 3rem;
    position: relative;
}

.title-underline::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 5px;
    background: var(--secondary);
    border-radius: 2px;
}

/* Плавающие элементы для ПК */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: floatElement 10s infinite ease-in-out;
}

.element-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    top: 60%;
    right: 15%;
    animation-delay: -3s;
}

.element-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: -6s;
}

@keyframes floatElement {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Упрощенные стеклянные карточки */
.simple-glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* 3D эффекты карточек для ПК */
.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

@media (hover: hover) and (pointer: fine) {
    .card-3d:hover {
        transform: rotateY(5deg) rotateX(5deg) translateZ(10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }
}

/* Интерактивные карточки для ПК */
.desktop-interactive {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.desktop-interactive::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

@media (hover: hover) and (pointer: fine) {
    .desktop-interactive:hover::before {
        left: 100%;
    }
}

/* Эффект подъема при наведении для ПК */
@media (hover: hover) and (pointer: fine) {
    .desktop-interactive:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    }
}

.quote-card {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.static-text {
    font-size: clamp(1rem, 3vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
    text-align: left;
}

.quote-author {
    text-align: right;
    color: var(--accent);
    font-style: italic;
    font-size: 0.9rem;
}

/* Анимированные кнопки для ПК */
.pulse-btn {
    position: relative;
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: clamp(0.8rem, 3vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    margin: 0 0.5rem;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pulse-btn .btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(72, 219, 251, 0.4), transparent);
    transition: left 0.5s ease;
}

@media (hover: hover) and (pointer: fine) {
    .pulse-btn:hover .btn-glow {
        left: 100%;
    }
    
    .pulse-btn:hover {
        background: var(--secondary);
        color: var(--dark);
        transform: translateY(-2px);
    }
}

.neon-btn {
    box-shadow: 0 0 10px var(--secondary);
    animation: buttonGlow 2s infinite alternate;
}

@keyframes buttonGlow {
    from {
        box-shadow: 0 0 10px var(--secondary);
    }
    to {
        box-shadow: 0 0 20px var(--secondary), 0 0 30px var(--secondary);
    }
}

.pulse-btn.secondary {
    border-color: var(--neon);
    color: var(--neon);
}

@media (hover: hover) and (pointer: fine) {
    .pulse-btn.secondary:hover {
        background: var(--neon);
        color: var(--dark);
    }
}

.pulse-btn.secondary.neon-btn {
    box-shadow: 0 0 10px var(--neon);
    animation: buttonGlowSecondary 2s infinite alternate;
}

@keyframes buttonGlowSecondary {
    from {
        box-shadow: 0 0 10px var(--neon);
    }
    to {
        box-shadow: 0 0 20px var(--neon), 0 0 30px var(--neon);
    }
}

.btn-icon {
    transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .pulse-btn:hover .btn-icon {
        transform: translateX(3px);
    }
}

/* Упрощенные кнопки для мобильных */
.simple-btn {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    padding: clamp(0.8rem, 3vw, 1rem) clamp(1.5rem, 4vw, 2rem);
    margin: 0 0.5rem;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    min-width: 140px;
}

.simple-btn.secondary {
    border-color: var(--neon);
    color: var(--neon);
}

.hero-actions {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Секции */
section {
    padding: clamp(40px, 10vw, 80px) 0;
}

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

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--accent), var(--neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
}

/* Секция "Обо мне" */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.about-card {
    margin-bottom: 0;
}

.about-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.avatar {
    width: clamp(60px, 15vw, 80px);
    height: clamp(60px, 15vw, 80px);
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: bold;
}

.desktop-animated {
    animation: avatarPulse 4s ease-in-out infinite;
}

@keyframes avatarPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.about-title h3 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.about-title p {
    color: var(--accent);
    font-style: italic;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

.interests {
    margin: 2rem 0;
}

.interests h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: clamp(1rem, 3vw, 1.1rem);
}

.interest-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .desktop-hover:hover {
        background: var(--secondary);
        color: var(--dark);
        transform: translateY(-2px);
    }
}

.status {
    display: flex;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-radius: 50%;
    flex-shrink: 0;
}

.desktop-neon.status-indicator {
    box-shadow: 0 0 10px var(--secondary);
    animation: neonPulseBox 2s infinite alternate;
}

@keyframes neonPulseBox {
    from {
        box-shadow: 0 0 5px var(--secondary);
    }
    to {
        box-shadow: 0 0 15px var(--secondary), 0 0 25px var(--secondary);
    }
}

/* Статистика */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-icon {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    color: #ccc;
}

/* Сетка философии */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    margin-bottom: 4rem;
}

.philosophy-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-icon {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
}

.philosophy-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
}

.philosophy-card p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.card-sparkle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: sparkle 3s infinite;
}

@media (hover: hover) and (pointer: fine) {
    .philosophy-card:hover .card-sparkle {
        opacity: 1;
    }
}

.card-sparkle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.card-sparkle:nth-child(2) { top: 10%; right: 10%; animation-delay: 1s; }
.card-sparkle:nth-child(3) { bottom: 10%; left: 10%; animation-delay: 2s; }

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

/* Интерактивная философская сфера для ПК */
.interactive-philosophy {
    text-align: center;
    margin-top: 4rem;
}

.philosophy-orb {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.orb-core {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--secondary), transparent);
    border-radius: 50%;
    animation: orbRotate 10s linear infinite;
}

.orb-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--secondary);
    border-radius: 50%;
    opacity: 0.3;
    animation: orbPulse 2s ease-in-out infinite alternate;
    filter: blur(10px);
}

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

@keyframes orbPulse {
    from { transform: scale(1); opacity: 0.2; }
    to { transform: scale(1.1); opacity: 0.4; }
}

.orb-text {
    color: var(--accent);
    font-style: italic;
}

/* Контакты */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.contact-info h3 {
    color: var(--accent);
    margin-bottom: 2rem;
    text-align: center;
    font-size: clamp(1.2rem, 3vw, 1.4rem);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .desktop-interactive:hover {
        transform: translateX(10px);
        background: rgba(255, 255, 255, 0.1);
    }
}

.contact-item i {
    color: var(--secondary);
    margin-right: 1rem;
    font-size: 1.1rem;
    width: 20px;
    flex-shrink: 0;
}

.desktop-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.social-links {
    margin-top: 2rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.social-btn.telegram {
    background: linear-gradient(45deg, #0088cc, #00aced);
}

.social-btn.github {
    background: linear-gradient(45deg, #333, #6e5494);
}

@media (hover: hover) and (pointer: fine) {
    .desktop-hover:hover {
        transform: translateY(-2px);
    }
}

/* Форма */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

.desktop-glow:focus {
    box-shadow: 0 0 10px var(--secondary);
}

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

.form-group label {
    position: absolute;
    top: -10px;
    left: 10px;
    background: var(--dark);
    padding: 0 5px;
    font-size: clamp(0.7rem, 2.5vw, 0.8rem);
    color: var(--secondary);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

.underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.form-group input:focus ~ .underline,
.form-group textarea:focus ~ .underline {
    width: 100%;
}

.submit-btn {
    width: 100%;
    padding: clamp(1rem, 3vw, 1.2rem);
    background: linear-gradient(45deg, var(--primary), var(--neon));
    border: none;
    border-radius: 8px;
    color: var(--dark);
    font-size: clamp(1rem, 3vw, 1.1rem);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

@media (hover: hover) and (pointer: fine) {
    .desktop-hover:hover {
        transform: translateY(-2px);
    }
}

/* Стили для статуса формы */
.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
}

.form-status.success {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid #27ae60;
    color: #2ecc71;
    display: block;
}

.form-status.error {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #c0392b;
    color: #e74c3c;
    display: block;
}

.form-status.sending {
    background: rgba(52, 152, 219, 0.2);
    border: 1px solid #2980b9;
    color: #3498db;
    display: block;
}

/* Счетчик символов */
.char-counter {
    text-align: right;
    font-size: clamp(0.7rem, 2.5vw, 0.8rem);
    color: #888;
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.char-counter.warning {
    color: #f39c12;
}

.char-counter.danger {
    color: #e74c3c;
}

/* Кнопка возврата наверх для ПК */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(72, 219, 251, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

@media (hover: hover) and (pointer: fine) {
    .back-to-top:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 25px rgba(72, 219, 251, 0.5);
    }
}

/* Подвал */
.simple-footer {
    background: rgba(10, 10, 10, 0.9);
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
}

.footer-content {
    text-align: center;
}

.footer-text {
    margin-bottom: 1rem;
    font-style: italic;
    color: var(--accent);
    font-size: clamp(0.9rem, 3vw, 1rem);
}

.footer-copy {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .simple-btn, .pulse-btn {
        margin: 0;
        width: min(250px, 80vw);
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        flex-direction: column;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-header {
        justify-content: center;
        text-align: center;
    }
    
    .avatar {
        margin-right: 0;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    /* Отключаем сложные анимации на мобильных */
    .fade-in, .slide-in {
        opacity: 1;
        transform: none;
        animation: none;
    }
    
    .simple-glass {
        transition: none;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
    
    .desktop-only {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        margin: 2rem 0;
    }
    
    .static-text {
        padding-left: 0.5rem;
        border-left-width: 2px;
    }
    
    .contact-item {
        padding: 0.8rem;
    }
    
    .social-btn {
        padding: 0.8rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
    }
    
    .simple-glass {
        padding: 1.2rem;
    }
}

/* Отключаем backdrop-filter для Safari */
@supports not (backdrop-filter: blur(10px)) {
    .simple-glass {
        background: rgba(15, 15, 15, 0.95);
    }
    
    .mobile-menu {
        background: rgba(10, 10, 10, 0.98);
    }
}
