:root {
    --primary-color: #d4af37; /* Золотистый */
    --primary-hover: #b8962e;
    --bg-dark: #0a0a0a;
    --bg-card: #151515;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(212, 175, 55, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    background-color: #111;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?q=80&w=2083&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 64px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero p {
    font-size: 24px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

/* Info Cards */
.info-cards {
    display: flex;
    gap: 20px;
    margin-top: 50px;
}

.info-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 300px;
}

/* Instagram Floating Icon */
.instagram-float {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 999;
    animation: pulse 2s infinite;
    transition: 0.3s;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.instagram-float:hover {
    transform: scale(1.2) rotate(10deg);
}

/* Layout Grid for Home Blocks */
.blocks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 100px 50px;
}

.block-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.block-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.block-number {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: black;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
}

.block-item h3 {
    margin-top: 30px;
    margin-bottom: 20px;
}

.service-card:hover {
    border-color: var(--primary-color) !important;
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1a1a1a;
    padding: 50px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    position: relative;
    border: 1px solid var(--glass-border);
}

/* Hide scrollbar but keep functionality */
.modal-content::-webkit-scrollbar { width: 0; background: transparent; }

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    color: #555;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover { color: var(--primary-color); }

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #fff;
    color: #000;
    padding: 15px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    transition: 0.3s;
    width: 100%;
}

.google-login-btn:hover { background: #eee; transform: translateY(-2px); }
.google-login-btn img { width: 20px; }

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
}

.burger span {
    width: 30px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

/* Footer Improved */
footer {
    padding: 80px 50px 30px;
    background: #050505;
    border-top: 1px solid #111;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 14px;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #666;
    font-size: 14px;
    transition: 0.3s;
}

.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid #111;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero h1 { font-size: 48px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .blocks-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .modal-content { padding: 40px 25px; }

    /* Admin Mobile Sidebar */
    .admin-sidebar {
        transform: translateX(-100%);
        transition: 0.3s;
    }
    .admin-sidebar.active {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0 !important;
        max-width: 100% !important;
        padding: 80px 15px 40px !important;
    }

    /* Auto stack grids in admin */
    .admin-main div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .admin-form-container {
        padding: 25px 20px !important;
    }

    .admin-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    /* Responsive Tables */
    .admin-form-container table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-burger {
        display: flex !important;
    }

    header { padding: 20px 30px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0a0a0a;
        flex-direction: column;
        padding: 40px;
        text-align: center;
        border-bottom: 1px solid #111;
    }
    .nav-links.active { display: flex; }
    .nav-links.active .mobile-auth { display: flex !important; }
    .burger { display: flex; }
    .auth-buttons { display: none; }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 20px 50px;
        justify-content: flex-start;
    }
    .hero h1 { font-size: 32px; margin-top: 20px; }
    .hero p { font-size: 18px; }
    .info-cards { flex-direction: column; align-items: center; margin-top: 30px; }
    .blocks-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-bottom { flex-direction: column; gap: 20px; }

    .page-header { padding: 120px 20px 40px; }

    .gallery-grid { grid-template-columns: 1fr !important; padding: 20px !important; }
    .gallery-grid img { height: 250px !important; }

    .services-slider-section { padding: 20px !important; }
    .service-card { margin-bottom: 20px; }
}
