html { scroll-behavior: smooth; }

:root {
    --bg-color: #161616;
    --card-dark-bg: #212121;
    --mc-green: #3a8e3d;
    --mc-blue: #4092dd; 
    --text-color: #FFFFFF;
    --text-secondary: #A3A3A3;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--bg-color); color: var(--text-color); font-family: 'Montserrat', sans-serif; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-color); z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.6s ease, visibility 0.6s ease; }
.preloader.hidden { opacity: 0; visibility: hidden; }
.spinner { width: 50px; height: 50px; border: 4px solid rgba(255, 255, 255, 0.2); border-top-color: var(--mc-green); /* Используем новый цвет */ border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
body.preloader-active { overflow: hidden; }

.site-header, main > section { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
body.loaded .site-header, body.loaded main > section { opacity: 1; transform: translateY(0); }
body.loaded .hero { transition-delay: 0.1s; }
body.loaded .features-section { transition-delay: 0.3s; }
body.loaded .gallery-section { transition-delay: 0.4s; }

.site-header { position: fixed; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 30px 60px; z-index: 100; }
.logo { font-size: 24px; font-weight: 700; color: var(--text-color); text-decoration: none; }
.main-nav { display: flex; gap: 30px; }
.main-nav a { color: var(--text-secondary); text-decoration: none; font-weight: 700; font-size: 14px; transition: color 0.2s ease; }
.main-nav a:hover { color: var(--text-color); }
.site-footer-main { padding: 50px 0; margin-top: 50px; border-top: 1px solid #2a2a2a; text-align: center; color: var(--text-secondary); }

.hero { min-height: 100vh; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 80px 20px; overflow: hidden; }
.hero-background { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.hero-background::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(22, 22, 22, 1), rgba(22, 22, 22, 0.4)); }
.hero-background video { width: 100%; height: 100%; object-fit: cover; }
.hero-content h1 { font-size: 68px; font-weight: 800; margin-bottom: 25px; text-shadow: 0 0 20px rgba(0,0,0,0.5); }
.hero-content p { font-size: 20px; color: var(--text-secondary); line-height: 1.7; max-width: 650px; margin: 0 auto 40px; }
.cta-button { border: none; background-color: var(--mc-green); color: var(--text-color); text-decoration: none; padding: 16px 40px; border-radius: 8px; font-weight: 700; font-size: 18px; font-family: 'Montserrat', sans-serif; cursor: pointer; transition: all 0.3s ease; }
.cta-button:hover { transform: scale(1.05); box-shadow: 0 8px 25px rgba(58, 142, 61, 0.4); }
.cta-button.copied { background-color: var(--mc-blue); }
.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); } 40% { transform: translate(-50%, -10px); } 60% { transform: translate(-50%, -5px); } }

.features-section { padding: 120px 0; background-color: #121212; }
.features-section h2 { font-size: 42px; text-align: center; margin-bottom: 60px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature-card { background-color: var(--card-dark-bg); padding: 30px; border-radius: 12px; text-align: center; border: 1px solid transparent; transition: all 0.3s ease; }
.feature-card:hover { transform: translateY(-10px); border-color: var(--mc-green); }
.feature-icon { width: 60px; height: 60px; margin: 0 auto 20px; background-color: #333; border-radius: 12px; }
.feature-card h4 { font-size: 20px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

.gallery-section { padding: 100px 0; }
.gallery-section h2 { font-size: 42px; text-align: center; margin-bottom: 60px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-grid img { width: 100%; border-radius: 12px; transition: transform 0.3s ease; }
.gallery-grid img:hover { transform: scale(1.05); }

@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .site-header { padding: 20px; }
    .hero-content h1 { font-size: 48px; }
    .hero-content p { font-size: 16px; }
    .features-grid { grid-template-columns: 1fr; }
}