* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    color: white;
    padding: 25px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin-left: 15px;
}

.logo-icon {
    font-size: 2.5rem;
    background: white;
    color: #475569;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.hero {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%23f1f5f9" width="100" height="100"/><path fill="%23e2e8f0" d="M0 0L100 100M100 0L0 100" stroke-width="0.5"/></svg>');
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.hero h2 {
    font-size: 2.5rem;
    color: #475569;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #64748b;
}

.btn {
    display: inline-block;
    background: #475569;
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(71, 85, 105, 0.3);
}

.btn:hover {
    background: #64748b;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(71, 85, 105, 0.4);
}

.modules {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    color: #475569;
    font-size: 2.2rem;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #64748b;
    margin: 15px auto;
    border-radius: 2px;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.module-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.module-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.module-header {
    background: #64748b;
    color: white;
    padding: 20px;
    text-align: center;
}

.module-header h3 {
    font-size: 1.4rem;
}

.module-body {
    padding: 25px;
}

.module-body ul {
    list-style: none;
    margin-left: 10px;
}

.module-body ul li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.module-body ul li:before {
    content: "•";
    color: #64748b;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.content-section {
    background: white;
    padding: 40px;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.content-section h3 {
    color: #475569;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.content-section p {
    margin-bottom: 15px;
    color: #64748b;
}

.content-section ul, .content-section ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.content-section .important {
    background: #f8fafc;
    padding: 20px;
    border-left: 4px solid #64748b;
    margin: 20px 0;
    border-radius: 4px;
}

.features {
    background: #f1f5f9;
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.feature-icon {
    font-size: 2.5rem;
    color: #64748b;
    margin-bottom: 20px;
}

.test-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.question {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.question:last-child {
    border-bottom: none;
}

.options label {
    display: block;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.options label:hover {
    background: #f8fafc;
    border-color: #64748b;
}

.submit-btn {
    background: #475569;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #64748b;
}

footer {
    background: #475569;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links {
    display: flex;
    margin: 20px 0;
}

.footer-links a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Стили для кнопок навигации */
.navigation-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.btn-back, .btn-home {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-back {
    background: #94a3b8;
    color: white;
}

.btn-home {
    background: #475569;
    color: white;
}

.btn-back:hover {
    background: #64748b;
    transform: translateY(-2px);
}

.btn-home:hover {
    background: #64748b;
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .module-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-links a {
        margin: 5px 10px;
    }
    
    .navigation-buttons {
        flex-direction: column;
    }
    
    .btn-back, .btn-home {
        text-align: center;
        justify-content: center;
    }
}