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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    max-width: 300px;
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

.preloader-logo img {
    width: 100%;
    height: auto;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #333;
    border-top: 3px solid #ff0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 998;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

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

.scroll-to-top:hover {
    background: #cc0000;
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(255, 0, 0, 0.5);
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    border-bottom: 1px solid #222;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
}

.cta-btn {
    padding: 10px 25px;
    background: #ff0000;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 2px solid #ff0000;
    transition: all 0.3s;
    cursor: pointer;
}

.cta-btn:hover {
    background: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.4);
}

/* Fixed Contact Buttons */
.fixed-contacts {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.contact-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.phone-btn {
    background: #25D366;
    color: #fff;
}

.telegram-btn {
    background: #0088cc;
    color: #fff;
}

.navigate-btn {
    background: #ffd93d;
    color: #000;
}

.contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255,0,0,0.5);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #000 0%, #1a0000 100%);
    padding-top: 60px;
}

.logo {
    max-width: 400px;
    width: 80%;
    height: auto;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInDown 1s forwards;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

.tagline {
    font-size: 1.5rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 8px;
    opacity: 0;
    animation: fadeInUp 1s 0.3s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    font-size: 2rem;
    color: #ff0000;
    animation: bounce 2s infinite;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #0a0a0a;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 80px;
    color: #ff0000;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.service-card {
    background: #111;
    padding: 40px 30px;
    border: 1px solid #222;
    transition: all 0.4s;
    opacity: 0;
    transform: translateY(30px);
    cursor: pointer;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    border-color: #ff0000;
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.2);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ff0000;
    text-transform: uppercase;
}

.service-card p {
    color: #aaa;
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: #000;
}

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

.portfolio-item {
    position: relative;
    height: 300px;
    background: #222;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-item.visible {
    opacity: 1;
    transform: scale(1);
}

.portfolio-item:hover {
    transform: scale(1.05);
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(255,0,0,0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
}

.portfolio-item:hover::before {
    opacity: 1;
}

/* Contact Form */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 100%);
}

.contact-form {
    max-width: 600px;
    margin: 60px auto 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s;
}

.contact-form.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ff0000;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: #ff0000;
    color: #fff;
    border: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 700;
}

.submit-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

.submit-btn:disabled {
    background: #666;
    cursor: not-allowed;
}

/* Contact Info Section */
.contact-info {
    padding: 100px 0;
    background: #000;
    border-top: 1px solid #222;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-top: 60px;
}

.info-item {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s;
}

.info-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.info-icon {
    font-size: 3rem;
    color: #ff0000;
    margin-bottom: 20px;
}

.info-item h3 {
    color: #ff0000;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.info-item p {
    color: #aaa;
    font-size: 1.1rem;
    line-height: 1.8;
}

.info-item a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.info-item a:hover {
    color: #ff0000;
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    background: #000;
    border-top: 1px solid #222;
}

.footer-content {
    color: #666;
}

/* Success/Error Messages */
.success-message,
.error-message {
    display: none;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.success-message {
    background: #00cc00;
    color: #fff;
}

.error-message {
    background: #cc0000;
    color: #fff;
}

.success-message.show,
.error-message.show {
    display: block;
    animation: fadeInDown 0.5s;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-8px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        max-width: 250px;
    }
    
    .tagline {
        font-size: 0.9rem;
        letter-spacing: 3px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 50px;
    }
    
    .header {
        padding: 10px 0;
    }
    
    .cta-btn {
        padding: 8px 20px;
        font-size: 0.75rem;
    }
    
    .services {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .portfolio {
        padding: 60px 0;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .portfolio-item {
        height: 250px;
    }
    
    .contact,
    .contact-info {
        padding: 60px 0;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .fixed-contacts {
        bottom: 15px;
        right: 15px;
    }
    
    .contact-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        bottom: 15px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 200px;
    }
    
    .tagline {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .portfolio-item {
        height: 200px;
    }
    
    .contact-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        bottom: 15px;
        left: 15px;
    }
    
    .fixed-contacts {
        bottom: 10px;
        right: 10px;
        gap: 10px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}