:root {
    --bg-dark: #0a0b10;
    --bg-darker: #06070a;
    --bg-panel: rgba(20, 22, 35, 0.6);
    --bg-panel-hover: rgba(30, 34, 55, 0.8);
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    
    --accent-blue: #3b82f6;
    --accent-blue-glow: rgba(59, 130, 246, 0.5);
    --accent-cyan: #06b6d4;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.glow-1 {
    top: -10%; left: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
}

.glow-2 {
    top: 40%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    animation-delay: -5s;
}

.glow-3 {
    bottom: -20%; left: 30%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: white;
}

.btn-glow:hover {
    box-shadow: 0 0 20px var(--accent-blue-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-panel-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: white;
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
}

.btn-block {
    width: 100%;
}

/* Glass Panels */
.glass-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--header-height);
    z-index: 100;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 11, 16, 0.8);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.header.scrolled {
    height: 70px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: rgba(6, 7, 10, 0.95);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.nav {
    display: flex;
    gap: 32px;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: white;
}

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

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 40px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 540px;
}

@media (max-width: 991px) {
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* UI Card Simulation */
.floating {
    animation: float 6s ease-in-out infinite alternate;
}

.tech-card {
    background: linear-gradient(145deg, rgba(20,22,35,0.8), rgba(10,12,20,0.9));
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.card-header {
    background: rgba(0,0,0,0.3);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dot {
    width: 12px; height: 12px; border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.card-body {
    padding: 24px;
    font-family: monospace;
}

.code-line {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    margin-bottom: 12px;
}
.w-80 { width: 80%; }
.w-60 { width: 60%; }
.w-90 { width: 90%; }

.terminal-text {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.terminal-text span.success { color: var(--success); font-weight: bold; }
.terminal-text span.warning { color: var(--warning); font-weight: bold; }

.progress-bar-container {
    margin-top: 16px;
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    animation: loading 3s infinite ease-in-out;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; opacity: 0; }
}

/* Services */
.services {
    padding: 80px 0;
    position: relative;
}

.section-header {
    margin-bottom: 60px;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
    background: var(--bg-panel-hover);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: white;
    box-shadow: 0 10px 20px var(--accent-blue-glow);
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    padding-top: 16px;
    border-top: 1px solid var(--border-glass);
}

/* Advantages */
.advantages {
    padding: 80px 0;
}

.advantages-wrapper {
    display: flex;
    align-items: center;
    padding: 60px !important;
    gap: 60px;
}

@media (max-width: 991px) {
    .advantages-wrapper {
        flex-direction: column;
        padding: 40px 24px !important;
    }
}

.advantages-content {
    flex: 1;
}

.advantages-list {
    list-style: none;
    margin-top: 40px;
}

.adv-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.adv-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
}

.adv-text h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.adv-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.advantages-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.circle-animation {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.c1 { width: 100%; height: 100%; animation: spin 20s linear infinite; border-top-color: var(--accent-cyan); }
.c2 { width: 80%; height: 80%; animation: spin 15s linear infinite reverse; border-right-color: var(--accent-blue); }
.c3 { width: 60%; height: 60%; animation: spin 10s linear infinite; border-bottom-color: var(--accent-cyan); }

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.center-content {
    position: absolute;
    background: linear-gradient(135deg, var(--bg-panel-hover), var(--bg-panel));
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--border-glass);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
}

.guarantee-badge {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1.2;
}

/* Contacts section */
.contacts {
    padding: 80px 0 100px;
}

.contacts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

@media (max-width: 991px) {
    .contacts-container {
        grid-template-columns: 1fr;
    }
}

.contacts-info {
    padding-top: 20px;
}

.contacts-desc {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

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

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: white;
    padding: 20px !important;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-icon { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.telegram-icon { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Form */
.contacts-form-wrapper {
    padding: 40px !important;
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(0,0,0,0.4);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-disclaimer {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    margin-top: 16px;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 0 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

.footer-desc {
    color: var(--text-secondary);
    margin-top: 16px;
    max-width: 300px;
    font-size: 0.9rem;
}

.border-left {
    border-left: 1px solid rgba(255,255,255,0.05);
    padding-left: 40px;
}

@media (max-width: 768px) {
    .border-left {
        border-left: none;
        padding-left: 0;
    }
}

.footer-links {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-copy {
    color: #475569;
    font-size: 0.85rem;
}

/* Animations Triggered by JS */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Use custom prop --delay injected in HTML or default 0s */
.reveal {
    transition-delay: var(--delay, 0s);
}

/* Portrait Hero */
.portrait-container {
    position: relative;
    width: 340px;
    height: 380px;
    margin: 0 auto;
    border-radius: 20px;
    padding: 10px;
    background: linear-gradient(145deg, rgba(20,22,35,0.8), rgba(10,12,20,0.9));
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 14px;
}
.portrait-glow {
    position: absolute;
    top: -20px; right: -20px; bottom: -20px; left: -20px;
    background: radial-gradient(circle, var(--accent-blue-glow) 0%, transparent 60%);
    z-index: -1;
    filter: blur(30px);
}
.rating-badge {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 24px !important;
    border-radius: 50px !important;
    white-space: nowrap;
}
.stars {
    color: #f59e0b;
    font-size: 1.2rem;
    letter-spacing: 2px;
}
.rating-text {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Reviews */
.reviews {
    padding: 80px 0;
    background: radial-gradient(ellipse at bottom, rgba(30, 34, 55, 0.4) 0%, transparent 70%);
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.review-card {
    display: flex;
    flex-direction: column;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
}
.reviewer-info h4 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
}
.review-stars {
    color: #f59e0b;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.review-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.7;
}

/* Full Price List */
.price-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 40px;
}
@media (max-width: 768px) {
    .price-list {
        grid-template-columns: 1fr;
    }
}
.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
    color: var(--text-secondary);
    transition: color 0.3s ease;
}
.price-item:hover {
    color: white;
}
.price-value {
    font-weight: 600;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    white-space: nowrap;
    margin-left: 16px;
}
