:root {
    --bg-color: #000000;
    --text-color: #E0E0E0;
    --text-muted-color: #A0A0A0;
    --primary-color: #0077FF;
    --secondary-color: #C738DE;
    --accent-glow-color-1: rgba(0, 119, 255, 0.15);
    --accent-glow-color-2: rgba(199, 56, 222, 0.15);
    --card-bg-color: rgba(255, 255, 255, 0.05);
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
    pointer-events: none;
}

#creative-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(ellipse at 15% 25%, var(--accent-glow-color-1) 0%, transparent 60%),
                radial-gradient(ellipse at 85% 75%, var(--accent-glow-color-2) 0%, transparent 60%);
    opacity: 0.8;
    transform: scale(1.1);
}

#background-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%) scale(1.1);
    object-fit: cover;
    transition: opacity 0.5s ease-out;
}

.content-container {
     position: relative;
     z-index: 2;
     background-color: transparent;
}

main {
    background: linear-gradient(to bottom, transparent 0%, var(--bg-color) 100vh); 
}

#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.hero-gradient-text {
    background: linear-gradient(120deg, #FFFFFF 50%, #BDBDBD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glow-card {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.glow-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background-image: radial-gradient(circle, rgba(6, 42, 101, 0.5), transparent 70%);
    transform: translate(-50%, -50%);
    filter: blur(70px);
    z-index: -1;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}
.glow-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 119, 255, 0.1);
}
.glow-card:hover::before {
    opacity: 1;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition-delay: var(--stagger-delay, 0s);
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.gradient-bordered {
    border: 1px solid transparent;
    background: linear-gradient(var(--bg-color), var(--bg-color)) padding-box,
                linear-gradient(to right, #1f2937, #374151) border-box;
}

.icon-accent-glow {
    filter: drop-shadow(0 0 6px rgba(0, 150, 255, 0.7)) drop-shadow(0 0 18px rgba(0, 119, 255, 0.5));
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background-color: #111827;
    color: var(--text-color);
    padding: 2rem;
    border-radius: 1rem;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid #374151;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #374151;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
}
.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted-color);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}
.modal-close-btn:hover {
    color: var(--text-color);
}
.modal-body h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.modal-body p, .modal-body li {
    color: var(--text-muted-color);
    line-height: 1.6;
}
.modal-body ul {
    list-style-position: inside;
    padding-left: 1rem;
}
.form-input, .form-select {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 119, 255, 0.5);
}
.form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animated-glow-btn {
    position: relative;
    display: inline-block;
    padding: 2px;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.2s;
}
.animated-glow-btn:hover {
    transform: scale(1.05);
}
.animated-glow-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        transparent,
        transparent,
        var(--primary-color),
        transparent
    );
    animation: rotateGlow 4s linear infinite;
    z-index: -2;
}
.animated-glow-btn-inner {
    display: block;
    padding: 0.5rem 1.25rem;
    background-color: #18181b;
    color: white;
    border-radius: 10px;
    position: relative;
    z-index: 1;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
}

.telegram-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99;
    width: 60px;
    height: 60px;
    background-color: rgba(0, 119, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 119, 255, 0.3);
    transition: all 0.3s ease;
}
.telegram-widget:hover {
    transform: scale(1.1);
    background-color: rgba(0, 119, 255, 0.4);
    box-shadow: 0 0 15px var(--primary-color);
}
.telegram-icon {
    width: 32px;
    height: 32px;
    fill: white;
}

/* --- EDIT: Added Bottom Blur Fade --- */
#bottom-blur-fade {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh; /* Высота зоны размытия (15% от высоты экрана) */
    z-index: 98; /* Ниже кнопок, но выше контента */
    pointer-events: none; /* Позволяет кликать сквозь этот слой */
    backdrop-filter: blur(5px);
    -webkit-mask-image: linear-gradient(to top, black 20%, transparent 100%);
    mask-image: linear-gradient(to top, black 20%, transparent 100%);
}