/* ============================================
   BABUNOV LAB - ЦСО «Арсенал знаний»
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: #1e293b; line-height: 1.5; background-color: #ffffff; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ===== TOP BAR ===== */
.top-bar { background: #0f172a; color: #94a3b8; padding: 10px 0; font-size: 14px; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.top-contacts { display: flex; gap: 24px; flex-wrap: wrap; }
.top-contacts a, .top-contacts span { color: #cbd5e1; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: color 0.3s; }
.top-contacts a:hover { color: #3b82f6; }
.social-links { display: flex; gap: 16px; }
.social-links a { color: #64748b; font-size: 18px; transition: all 0.3s; }
.social-links a:hover { color: #3b82f6; transform: translateY(-2px); }

/* ===== HEADER ===== */
.main-header { background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; padding: 16px 0; }
.main-header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon { width: 50px; height: 50px; background: linear-gradient(135deg, #1e3c72, #2b4c7c); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; font-weight: bold; }
.logo-text h1 { font-size: 20px; font-weight: 700; color: #0f172a; line-height: 1.2; }
.logo-text p { font-size: 12px; color: #5b6e8c; }
.nav-menu { display: flex; gap: 32px; align-items: center; }
.nav-menu a { text-decoration: none; color: #334155; font-weight: 500; transition: color 0.3s; }
.nav-menu a:hover, .nav-menu a.active { color: #3b82f6; }
.btn-call { background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; padding: 10px 24px; border-radius: 40px; text-decoration: none; font-weight: 600; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer; }
.btn-call:hover { transform: translateY(-2px); box-shadow: 0 10px 25px -5px rgba(59,130,246,0.4); }
.mobile-menu-btn { display: none; font-size: 24px; cursor: pointer; background: none; border: none; color: #1e293b; }

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%); padding: 80px 0; position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge { background: #dbeafe; color: #1e40af; display: inline-block; padding: 6px 16px; border-radius: 40px; font-size: 14px; font-weight: 600; margin-bottom: 24px; }
.hero h1 { font-size: 48px; font-weight: 800; line-height: 1.2; margin-bottom: 24px; color: #0f172a; }
.hero h1 span { color: #3b82f6; }
.hero p { font-size: 18px; color: #475569; margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary { background: #3b82f6; color: white; padding: 14px 32px; border-radius: 40px; text-decoration: none; font-weight: 600; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer; }
.btn-primary:hover { background: #2563eb; transform: translateY(-2px); }
.btn-outline { border: 2px solid #3b82f6; color: #3b82f6; padding: 12px 28px; border-radius: 40px; text-decoration: none; font-weight: 600; transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; background: transparent; cursor: pointer; }
.btn-outline:hover { background: #3b82f6; color: white; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; }
.stat-item { text-align: center; }
.stat-number { font-size: 32px; font-weight: 800; color: #0f172a; }
.stat-label { font-size: 14px; color: #64748b; }
.hero-image { background: linear-gradient(135deg, #1e3c72, #2b4c7c); border-radius: 32px; padding: 40px; text-align: center; color: white; position: relative; }
.hero-image i { font-size: 80px; margin-bottom: 20px; opacity: 0.9; }
.hero-image h3 { font-size: 24px; margin-bottom: 16px; }
.discount-badge { position: absolute; top: -20px; right: -20px; background: #f97316; color: white; padding: 12px 20px; border-radius: 50px; font-weight: bold; transform: rotate(15deg); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-gray { background: #f8fafc; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.section-header h2 { font-size: 36px; font-weight: 800; margin-bottom: 16px; color: #0f172a; }
.section-header p { color: #64748b; font-size: 18px; }

/* ===== CARDS ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.price-card { background: white; border-radius: 24px; padding: 32px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); transition: all 0.3s; position: relative; border: 1px solid #e2e8f0; }
.price-card:hover { transform: translateY(-8px); box-shadow: 0 20px 30px -10px rgba(0,0,0,0.1); }
.price-card.ribbon { overflow: hidden; }
.price-card .ribbon-text { position: absolute; top: 20px; right: -30px; background: #f97316; color: white; padding: 5px 40px; transform: rotate(45deg); font-size: 12px; font-weight: bold; }
.price-card h3 { font-size: 24px; margin-bottom: 16px; }
.price { font-size: 48px; font-weight: 800; color: #0f172a; margin: 24px 0; }
.price small { font-size: 16px; font-weight: normal; color: #64748b; }
.price-card ul { list-style: none; margin: 24px 0; }
.price-card li { padding: 8px 0; display: flex; align-items: center; gap: 10px; }
.price-card li i { color: #10b981; font-size: 14px; }

.feature-card { background: white; border-radius: 24px; padding: 32px; text-align: center; transition: all 0.3s; border: 1px solid #e2e8f0; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.feature-icon { width: 70px; height: 70px; background: linear-gradient(135deg, #3b82f6, #2563eb); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.feature-icon i { font-size: 32px; color: white; }
.feature-card h3 { font-size: 20px; margin-bottom: 12px; }
.feature-card p { color: #64748b; }

.program-card { background: white; border-radius: 24px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.05); transition: all 0.3s; border: 1px solid #e2e8f0; }
.program-card:hover { transform: translateY(-5px); box-shadow: 0 20px 30px -10px rgba(0,0,0,0.1); }
.program-image { height: 200px; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; justify-content: center; }
.program-content { padding: 24px; }
.program-content h3 { font-size: 20px; margin-bottom: 12px; }
.program-content p { color: #64748b; margin-bottom: 16px; }
.btn-link { color: #3b82f6; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; }

/* ===== LICENSE ===== */
.license-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.license-item { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.05); cursor: pointer; transition: all 0.3s; border: 1px solid #e2e8f0; }
.license-item:hover { transform: scale(1.02); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.license-item img { width: 100%; height: auto; display: block; }
.license-caption { padding: 12px; text-align: center; background: #f8fafc; font-size: 14px; color: #475569; }

/* ===== STEPS (Порядок поступления) ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.step-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: #1e293b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}
.step-icon {
    font-size: 40px;
    margin: 16px 0 12px;
    color: #3b82f6;
}
.step-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}
.step-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}
.step-blue .step-icon { color: #3b82f6; }
.step-blue { border-top: 4px solid #3b82f6; }
.step-azure .step-icon { color: #0ea5e9; }
.step-azure { border-top: 4px solid #0ea5e9; }
.step-lavender .step-icon { color: #8b5cf6; }
.step-lavender { border-top: 4px solid #8b5cf6; }
.step-peach .step-icon { color: #f97316; }
.step-peach { border-top: 4px solid #f97316; }
.step-mint .step-icon { color: #10b981; }
.step-mint { border-top: 4px solid #10b981; }

/* ===== CONTACTS ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info { background: #f1f5f9; border-radius: 24px; padding: 32px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid #e2e8f0; }
.contact-item i { width: 40px; height: 40px; background: #3b82f6; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; }
.contact-form { background: white; border-radius: 24px; padding: 32px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea { width: 100%; padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 12px; font-family: inherit; transition: all 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.form-group textarea { resize: vertical; min-height: 100px; }
.map { margin-top: 40px; border-radius: 24px; overflow: hidden; }
.map iframe { width: 100%; height: 400px; border: none; }

/* ===== FOOTER ===== */
.footer { background: #0f172a; color: #94a3b8; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: white; margin-bottom: 20px; font-size: 18px; }
.footer-col a { color: #94a3b8; text-decoration: none; display: block; margin-bottom: 12px; transition: color 0.3s; }
.footer-col a:hover { color: #3b82f6; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid #1e293b; }

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}
.modal-overlay.active { display: flex; }
.modal-window {
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}
.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.3s;
    background: none;
    border: none;
}
.modal-close-btn:hover { color: #1e293b; }
.modal-window h3 { font-size: 24px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.modal-window p { color: #64748b; margin-bottom: 24px; }
.modal-window .form-group { margin-bottom: 16px; }
.modal-window .form-group input { width: 100%; padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 12px; font-family: inherit; transition: all 0.3s; }
.modal-window .form-group input:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.modal-window .btn-primary { width: 100%; justify-content: center; }

/* ===== MODAL для лицензий ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.modal.active { display: flex; }
.modal img { max-width: 90%; max-height: 90%; object-fit: contain; }
.modal-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; cursor: pointer; transition: 0.3s; }
.modal-close:hover { color: #3b82f6; }

/* ===== KEYFRAMES ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero .container { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; flex-direction: column; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
    .nav-menu.active { display: flex; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 36px; }
    .license-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .top-bar .container { flex-direction: column; text-align: center; }
    .top-contacts { justify-content: center; }
    .section { padding: 50px 0; }
    .section-header h2 { font-size: 28px; }
    .modal-window { padding: 28px; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .steps-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 28px; }
    .cards-grid { grid-template-columns: 1fr; }
}