:root {
    --primary: #1e293b;
    --primary-light: #334155;
    --accent: #eab308;
    --accent-hover: #ca8a04;
    --bg-main: #f8fafc;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --danger: #ef4444;
    --success: #10b981;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }
body { background-color: var(--bg-main); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 90px 0; }

.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    background-color: rgba(30, 41, 59, 0.95); backdrop-filter: blur(10px);
    z-index: 1000; padding: 15px 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: all 0.3s ease;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { color: var(--accent); font-size: 1.5rem; font-weight: 800; text-decoration: none; letter-spacing: 1px; }
.nav-links { display: flex; gap: 20px; list-style: none; }
.nav-links a { color: white; text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--accent); }

.section-title { text-align: center; font-size: 2.5rem; font-weight: 800; color: var(--primary); margin-bottom: 50px; position: relative; }
.section-title::after { content: ''; display: block; width: 80px; height: 4px; background: var(--accent); margin: 15px auto 0; border-radius: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 32px; border-radius: 50px; text-decoration: none; font-weight: 700; transition: all 0.3s ease; border: none; cursor: pointer; font-size: 1.1rem; }
.btn-primary { background: var(--accent); color: var(--primary); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(234, 179, 8, 0.3); }
.btn-whatsapp { background: #25D366; color: white; }
.btn-whatsapp:hover { background: #1ebc59; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3); }

.reveal { opacity: 0; transform: translateY(40px); transition: 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
img { background-color: #e2e8f0; object-fit: cover; }

.hero { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: white; padding: 120px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: '\f080'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; right: -50px; top: -50px; font-size: 40rem; color: rgba(255,255,255,0.03); transform: rotate(-15deg); }
.hero-content { display: flex; align-items: center; gap: 50px; position: relative; z-index: 1; }
.hero-text { flex: 1; }
.badge { display: inline-block; background: rgba(234, 179, 8, 0.15); color: var(--accent); padding: 8px 16px; border-radius: 50px; font-weight: 700; margin-bottom: 20px; border: 1px solid rgba(234, 179, 8, 0.3); }
.hero-text h1 { font-size: 4rem; font-weight: 800; margin-bottom: 20px; line-height: 1.1; }
.hero-text p { font-size: 1.25rem; color: #cbd5e1; margin-bottom: 40px; max-width: 500px; }
.hero-image { flex: 1; position: relative; }
.hero-image img { width: 100%; max-width: 350px; min-height: 500px; border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); border: 4px solid rgba(255,255,255,0.1); }
.buttons-group { display: flex; gap: 20px; flex-wrap: wrap; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.icon-card { background: white; padding: 30px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: all 0.3s ease; display: flex; flex-direction: column; align-items: flex-start; }
.icon-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.icon-card i { font-size: 2.5rem; margin-bottom: 20px; }
.icon-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--primary); }
.pain-card i { color: var(--danger); }
.solution-card i { color: var(--success); }
.solution-card { border-top: 4px solid var(--success); }
.pain-card { border-top: 4px solid var(--danger); }

.about-section { background: white; }
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; }
.about-stats { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.stat-item { background: var(--bg-main); padding: 20px; border-radius: 12px; flex: 1; min-width: 150px; border-left: 4px solid var(--accent); }
.stat-item i { color: var(--primary); font-size: 2rem; margin-bottom: 10px; }

.format-card { text-align: center; align-items: center; border: 1px solid #e2e8f0; }
.format-card i { color: var(--accent); background: var(--primary); width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 20px; }

.timeline { display: flex; justify-content: space-between; position: relative; margin-top: 40px; flex-wrap: wrap; gap: 30px; }
.timeline::before { content: ''; position: absolute; top: 40px; left: 0; width: 100%; height: 2px; background: #e2e8f0; z-index: 0; }
.step { flex: 1; text-align: center; position: relative; z-index: 1; min-width: 200px; }
.step-icon { width: 80px; height: 80px; background: white; border: 4px solid var(--accent); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 20px; transition: 0.3s; }
.step:hover .step-icon { background: var(--accent); color: white; transform: scale(1.1); }
.step h4 { font-size: 1.2rem; margin-bottom: 10px; }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.cert-img { width: 100%; border-radius: 10px; border: 1px solid #e2e8f0; cursor: pointer; transition: 0.3s; min-height: 200px; }
.cert-img:hover { transform: scale(1.03); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }

/* Универсальные стили для модальных окон */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(15, 23, 42, 0.9); justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.modal.active { display: flex; opacity: 1; }
.close-modal { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; font-weight: bold; cursor: pointer; transition: color 0.3s; }
.close-modal:hover { color: var(--accent); }

/* Специфично для картинки сертификата */
.modal-cert-content { max-width: 90%; max-height: 90%; border-radius: 10px; box-shadow: 0 0 30px rgba(0,0,0,0.5); transform: scale(0.8); transition: transform 0.3s ease; }
.modal.active .modal-cert-content { transform: scale(1); }

/* --- СТИЛИ ДЛЯ ФОРМЫ ЗАЯВКИ --- */
.modal-form-content {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    text-align: center;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}
.modal.active .modal-form-content { transform: translateY(0); }
.modal-form-content h3 { color: var(--primary); font-size: 1.8rem; margin-bottom: 10px; }
.modal-form-content p { color: var(--text-gray); margin-bottom: 30px; }

.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); }
.form-group input { 
    width: 100%; padding: 15px; border: 2px solid #e2e8f0; 
    border-radius: 10px; font-size: 1rem; transition: border-color 0.3s; 
}
.form-group input:focus { outline: none; border-color: var(--accent); }
.form-message { display: none; margin-top: 20px; padding: 15px; border-radius: 10px; font-weight: 600; }
.form-message.success { display: block; background: #d1fae5; color: #065f46; border: 1px solid #34d399; }
.form-message.error { display: block; background: #fee2e2; color: #991b1b; border: 1px solid #f87171; }

.cta-section { background: var(--primary); color: white; text-align: center; padding: 100px 20px; }
.cta-section h2 { color: white; font-size: 3rem; margin-bottom: 20px; }
.cta-section p { font-size: 1.3rem; color: #cbd5e1; margin-bottom: 40px; }

@media (max-width: 900px) {
    .nav-container { flex-direction: column; gap: 15px; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .hero { padding-top: 180px; } 
    .hero-content { flex-direction: column; }
    .hero-text { text-align: center; }
    .hero-text h1 { font-size: 2.5rem; }
    .buttons-group { justify-content: center; }
    .timeline::before { display: none; }
    .about-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .about-grid .section-title { text-align: center !important; }
    .about-stats { justify-content: center; }
    .cta-section { padding: 60px 20px; }
    .cta-section h2 { font-size: 2rem; }
    .cta-section p { font-size: 1.1rem; }
    .modal-form-content { padding: 40px 20px; }
}