* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neon-cyan: #00f3ff;
    --neon-pink: #ff00ff;
    --neon-purple: #9d4edd;
    --neon-blue: #4361ee;
    --neon-green: #00ff88;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #111118;
    --bg-card-hover: #1a1a24;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b8;
    --text-muted: #6b6b7a;
    --border-neon: rgba(0, 243, 255, 0.3);
    --shadow-neon-cyan: 0 0 20px rgba(0, 243, 255, 0.5), 0 0 40px rgba(0, 243, 255, 0.3);
    --shadow-neon-pink: 0 0 20px rgba(255, 0, 255, 0.5), 0 0 40px rgba(255, 0, 255, 0.3);
    --shadow-neon-purple: 0 0 20px rgba(157, 78, 221, 0.5), 0 0 40px rgba(157, 78, 221, 0.3);
    --gradient-neon-1: linear-gradient(135deg, #00f3ff 0%, #9d4edd 100%);
    --gradient-neon-2: linear-gradient(135deg, #ff00ff 0%, #4361ee 100%);
    --gradient-neon-3: linear-gradient(135deg, #00ff88 0%, #00f3ff 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    background: var(--bg-dark);
    position: relative;
    /* Кастомный курсор для всего сайта.
       Сейчас используется файл cursor-mac.png.png из корневой папки */
    cursor: url('cursor-mac.png.png') 4 4, crosshair;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 243, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(157, 78, 221, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-neon);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 30px rgba(0, 243, 255, 0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-neon {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan), 0 0 30px var(--neon-cyan);
    animation: neon-pulse 2s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
    from {
        text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan), 0 0 30px var(--neon-cyan);
    }
    to {
        text-shadow: 0 0 5px var(--neon-cyan), 0 0 10px var(--neon-cyan), 0 0 15px var(--neon-cyan), 0 0 20px var(--neon-cyan);
    }
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-neon-1);
    box-shadow: var(--shadow-neon-cyan);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: 100%;
}

.nav-menu a.active {
    color: var(--neon-cyan);
}

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

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 5px var(--neon-cyan);
    transition: all 0.3s ease;
}

/* Главная секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: var(--bg-darker);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: float 25s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--neon-cyan) 0%, transparent 70%);
    top: -300px;
    left: -300px;
    animation-delay: 0s;
    box-shadow: 0 0 100px var(--neon-cyan);
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--neon-pink) 0%, transparent 70%);
    bottom: -250px;
    right: -250px;
    animation-delay: 8s;
    box-shadow: 0 0 100px var(--neon-pink);
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%);
    top: 50%;
    right: 10%;
    animation-delay: 16s;
    box-shadow: 0 0 100px var(--neon-purple);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.2);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.8);
    }
}

/* Плавающие иконки */
.floating-icon {
    position: absolute;
    font-size: 3rem;
    color: rgba(0, 243, 255, 0.3);
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
    animation: floatIcon 20s infinite ease-in-out;
    filter: drop-shadow(0 0 10px currentColor);
    transition: opacity 0.3s ease;
}

.floating-icon svg {
    width: 3rem;
    height: 3rem;
    fill: currentColor;
}

.floating-icon:hover {
    opacity: 0.6;
}

.icon-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.icon-2 {
    top: 20%;
    right: 15%;
    animation-delay: 3s;
    animation-duration: 30s;
    color: rgba(255, 0, 255, 0.3);
}

.icon-3 {
    top: 50%;
    left: 5%;
    animation-delay: 6s;
    animation-duration: 22s;
    color: rgba(0, 243, 255, 0.3);
}

.icon-4 {
    top: 60%;
    right: 20%;
    animation-delay: 9s;
    animation-duration: 28s;
    color: rgba(157, 78, 221, 0.3);
    font-size: 2rem;
    font-weight: 700;
    position: relative;
}

.icon-4::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: currentColor;
    transform: rotate(-15deg);
    box-shadow: 0 0 5px currentColor;
}

.icon-5 {
    bottom: 20%;
    left: 20%;
    animation-delay: 12s;
    animation-duration: 26s;
    color: rgba(255, 0, 255, 0.3);
}

.icon-6 {
    bottom: 30%;
    right: 10%;
    animation-delay: 15s;
    animation-duration: 32s;
    color: rgba(0, 255, 136, 0.3);
}

.icon-7 {
    top: 30%;
    left: 50%;
    animation-delay: 18s;
    animation-duration: 24s;
    color: rgba(0, 243, 255, 0.3);
}

.icon-8 {
    bottom: 10%;
    right: 30%;
    animation-delay: 21s;
    animation-duration: 27s;
    color: rgba(157, 78, 221, 0.3);
    font-size: 2rem;
    font-weight: 700;
    position: relative;
}

.icon-8::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: currentColor;
    transform: rotate(15deg);
    box-shadow: 0 0 5px currentColor;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(100px, -50px) rotate(90deg);
    }
    50% {
        transform: translate(-80px, 80px) rotate(180deg);
    }
    75% {
        transform: translate(50px, 100px) rotate(270deg);
    }
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease;
    padding-right: 1rem;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease backwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.title-line:nth-child(3) {
    animation-delay: 0.6s;
}

.highlight {
    background: var(--gradient-neon-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.8));
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.3s backwards;
    line-height: 1.8;
    max-width: 800px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    animation: fadeInUp 1s ease 0.5s backwards;
    margin-bottom: 2rem;
}

.hero-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    animation: fadeInUp 1s ease 0.7s backwards;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.benefit-check {
    color: var(--neon-green);
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 0 10px var(--neon-green);
    flex-shrink: 0;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-neon-1);
    color: var(--text-primary);
    box-shadow: var(--shadow-neon-cyan);
    border: 1px solid var(--neon-cyan);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.8), 0 0 60px rgba(0, 243, 255, 0.4);
    filter: brightness(1.2);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-pink);
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 0, 255, 0.1);
    box-shadow: var(--shadow-neon-pink);
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.2);
}

.btn-secondary:active {
    transform: translateY(-1px) scale(0.98);
}

#grayProjectsBtn {
    background: var(--gradient-neon-2);
    color: var(--text-primary);
    border: 1px solid var(--neon-pink);
    box-shadow: var(--shadow-neon-pink);
}

#grayProjectsBtn:hover {
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.8), 0 0 60px rgba(255, 0, 255, 0.4);
    filter: brightness(1.2);
}

.hero-visual {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    height: auto;
    animation: fadeIn 1s ease 0.7s backwards;
}

.floating-card {
    position: relative;
    min-height: 240px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 0;
    padding: 2rem;
    border: 1px solid var(--border-neon);
    box-shadow: var(--shadow-neon-cyan);
    animation: floatCard 6s infinite ease-in-out;
    transition: all 0.3s ease;
}

/* Чуть опускаем верхнюю карточку, чтобы она не уплывала под верхнюю границу */
.hero-visual .floating-card:first-child {
    margin-top: 1rem;
}

.hero-visual .floating-card:nth-child(2) {
    margin-top: 2rem;
    animation-delay: 2s;
    border-color: rgba(255, 0, 255, 0.3);
    box-shadow: var(--shadow-neon-pink);
}

.hero-visual .floating-card:nth-child(3) {
    margin-top: 1rem;
    animation-delay: 4s;
    border-color: rgba(157, 78, 221, 0.3);
    box-shadow: var(--shadow-neon-purple);
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(2deg);
    }
}

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

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px currentColor);
}

.floating-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.floating-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--neon-cyan);
    border-radius: 15px;
    position: relative;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--neon-cyan);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
    box-shadow: 0 0 5px var(--neon-cyan);
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

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

/* Секции */
section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--gradient-neon-1);
    color: var(--text-primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-neon-cyan);
    border: 1px solid var(--neon-cyan);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* О нас */
.about {
    background: var(--bg-darker);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-neon);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-neon-cyan), 0 10px 40px rgba(0, 243, 255, 0.2);
    border-color: var(--neon-cyan);
}

.stat-card:active {
    transform: translateY(-5px) scale(0.98);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-neon-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.5));
}

.stat-label {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ниши */
.niches {
    background: var(--bg-dark);
}

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

.niche-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-neon);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.niche-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.niche-card:hover::before {
    opacity: 1;
}

.niche-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-neon-cyan), 0 10px 40px rgba(0, 243, 255, 0.2);
    border-color: var(--neon-cyan);
}

.niche-card:active {
    transform: translateY(-5px) scale(0.98);
}

.niche-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px currentColor);
}

.niche-icon-18 {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--gradient-neon-2);
    border-radius: 15px;
    box-shadow: var(--shadow-neon-pink);
    border: 2px solid var(--neon-pink);
}

.age-badge {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
    position: relative;
}


.niche-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.niche-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.show-gray-niches-wrapper {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 2px solid var(--border-neon);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
}

.gray-niches-hint {
    margin-bottom: 1.5rem;
}

.hint-text {
    font-size: 1.125rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.hint-text strong {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.show-gray-niches-btn {
    min-width: 300px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    animation: pulse-button 2s infinite;
}

.btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.show-gray-niches-btn:hover .btn-arrow {
    transform: translateY(3px);
}

.hide-gray-niches-btn:hover .btn-arrow {
    transform: translateY(-3px);
}

@keyframes pulse-button {
    0%, 100% {
        box-shadow: var(--shadow-neon-cyan);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 243, 255, 0.8), 0 0 60px rgba(0, 243, 255, 0.4);
    }
}

.gray-niches-footer {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 2px solid rgba(255, 0, 255, 0.3);
}

.individual-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.individual-text strong {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

.hide-gray-niches-btn {
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.gray-niches {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gray-niches.show {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

.niche-card.niche-gray {
    border-color: rgba(255, 0, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.2);
}

.niche-card.niche-gray:hover {
    border-color: var(--neon-pink);
    box-shadow: var(--shadow-neon-pink);
}

/* Серые ниши */
.gray-niches {
    background: var(--bg-darker);
    position: relative;
}

.gray-niches::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 0, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(157, 78, 221, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.gray-niches .container {
    position: relative;
    z-index: 1;
}

.gray-niches .section-tag {
    background: var(--gradient-neon-2);
    box-shadow: var(--shadow-neon-pink);
    border: 1px solid var(--neon-pink);
}

.neon-text {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink);
    font-weight: 600;
}

/* Услуги */
.features {
    background: var(--bg-darker);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-neon);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: var(--gradient-neon-1);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-neon-cyan);
    border-color: var(--neon-cyan);
    background: var(--bg-card-hover);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-neon-1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-neon-cyan);
    border: 1px solid var(--neon-cyan);
}

.feature-icon svg {
    width: 35px;
    height: 35px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Контакты */
.contact {
    background: var(--bg-dark);
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border-neon);
    transition: all 0.3s ease;
}

.contact-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Более выразительный курсор на кликабельных элементах */
a,
button,
.btn,
.contact-link {
    cursor: url('cursor-mac.png.png') 4 4, pointer;
}

/* Светящийся трекер курсора */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.6) 0%, transparent 70%);
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.7), 0 0 20px rgba(157, 78, 221, 0.5);
    mix-blend-mode: screen;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    z-index: 9999;
}

.cursor-glow.visible {
    opacity: 1;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.9), 0 0 35px rgba(0, 243, 255, 0.7);
    background: radial-gradient(circle, rgba(0, 255, 136, 0.7) 0%, transparent 75%);
}

@media (hover: none) {
    .cursor-glow {
        display: none;
    }
}

.contact-link:hover {
    text-decoration: none;
}

.contact-item:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-neon-cyan);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: var(--gradient-neon-1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-neon-cyan);
}

.contact-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-form {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-neon);
    box-shadow: var(--shadow-neon-cyan);
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 100%;
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-neon);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-darker);
    color: var(--text-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    transform: scale(1.01);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
    background: var(--bg-card);
}

.form-group textarea {
    resize: vertical;
}

/* Футер */
.footer {
    background: var(--bg-darker);
    color: var(--text-primary);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-neon);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Адаптивность */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--bg-card);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-neon-cyan);
        border: 1px solid var(--border-neon);
        transition: left 0.3s ease;
    }

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

    .menu-toggle {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Смягчаем общее свечение слева на мобильных */
    body::before {
        background:
            radial-gradient(circle at 10% 40%, rgba(0, 243, 255, 0.05) 0%, transparent 55%),
            radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.08) 0%, transparent 55%),
            radial-gradient(circle at 40% 20%, rgba(157, 78, 221, 0.08) 0%, transparent 55%);
    }

    /* Немного подсвечиваем текстовый блок, чтобы не сливался с фоном */
    .hero-content {
        background: radial-gradient(circle at top left, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
        padding: 1.4rem 1.2rem;
        border-radius: 18px;
        box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
    }

    .hero-title,
    .hero-subtitle {
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    }

    .hero-visual {
        height: auto;
        margin-top: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .contact-content {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .contact-form {
        max-width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .stats-grid,
    .features-grid,
    .niches-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .show-gray-niches-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 2.2rem 0.5rem 1.5rem 0.5rem !important;
        margin-top: 2rem !important;
        border-radius: 16px;
        box-shadow: 0 2px 16px 4px rgba(0,243,255,0.20);
    }
    .gray-niches-hint .hint-text {
        font-size: 1.15rem;
        line-height: 1.6;
        text-align: center;
        font-weight: 500;
    }
    .gray-niches-hint .hint-text strong {
        font-size: 1.18rem;
        font-weight: 700;
    }
    .show-gray-niches-btn {
        width: 100%;
        min-width: unset;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .floating-card {
        padding: 1.5rem;
    }
}

/* Доп. адаптивность для узких экранов (iPhone 12/13 и похожие) */
@media (max-width: 430px) {
    .hero {
        padding-top: 100px;
    }

    .hero .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: -1px;
        overflow-wrap: anywhere;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }
}

.thank-you-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.thank-you-overlay.show {
    opacity: 1;
    visibility: visible;
}

.thank-you-modal {
    background: var(--bg-card);
    border: 2px solid var(--neon-cyan);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-neon-cyan), 0 0 60px rgba(0, 243, 255, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.thank-you-overlay.show .thank-you-modal {
    transform: scale(1);
}

.thank-you-modal h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--neon-green);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.thank-you-modal p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.thank-you-modal .btn {
    display: block;
    width: 100%;
    margin: 0.75rem 0;
    min-width: 180px;
}

.thank-you-modal .btn:first-of-type {
    margin-top: 0;
}

.thank-you-modal .btn:last-of-type {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .thank-you-modal {
        padding: 2rem;
    }

    .thank-you-modal h3 {
        font-size: 1.5rem;
    }

    .thank-you-modal p {
        font-size: 1rem;
    }

    .thank-you-modal .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

/* Дополнительные улучшения дизайна */

/* Улучшенные тени для глубины */
.niche-card,
.stat-card,
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Улучшенный градиент для кнопок */
.btn-primary {
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover::before {
    left: 100%;
}

/* Улучшенная типографика */
.hero-title {
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* Плавные переходы для всех интерактивных элементов */
a, button, .btn, .niche-card, .stat-card, .feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Улучшенная анимация для счетчиков */
.stat-number {
    transition: all 0.3s ease;
}

.stat-card:hover .stat-number {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.8));
}

/* Улучшенные эффекты при наведении на карточки ниш */
.niche-card:hover .niche-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 20px currentColor);
}

.niche-icon {
    transition: all 0.3s ease;
}

/* Улучшенная форма */
.form-group input,
.form-group textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Плавная анимация для плавающих карточек */
.floating-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-card:hover {
    transform: translateY(-15px) scale(1.05) !important;
    box-shadow: 0 20px 60px rgba(0, 243, 255, 0.4);
}
