* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f4f8;
    color: #2c3e50;
    min-height: 100vh;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 1200px;
    width: 100%;
}

.back-btn {
    display: inline-block;
    text-decoration: none;
    color: #e67e22;
    font-weight: 600;
    margin-bottom: 20px;
    transition: color 0.2s;
}
.back-btn:hover { color: #d35400; }

h1 {
    font-size: 2.3rem;
    margin-bottom: 8px;
    color: #1a252f;
}

.subtitle {
    color: #7f8c8d;
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.subject-card {
    background: #ffffff;
    border-left: 5px solid #e67e22;
    border-radius: 8px;
    padding: 25px 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 6px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.subject-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
    border-color: #d35400;
}

.subject-icon { font-size: 1.5rem; }

.subject-card h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    line-height: 1.4;
}

@media (max-width: 480px) {
    body { padding: 15px 10px; }
    h1 { font-size: 1.8rem; }
}

/* СПЕЦИАЛЬНЫЕ КАРТОЧКИ */
.special-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #fad7b5;
}

.special-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.special-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.physical-card {
    border-left: 5px solid #27ae60;
}

.physical-card:hover { border-color: #219a52; }

.info-card {
    border-left: 5px solid #8e44ad;
}

.info-card:hover { border-color: #7d3c98; }

.special-icon { font-size: 2rem; }

.special-card h3 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1.4;
}

.special-card p {
    font-size: 0.85rem;
    color: #7f8c8d;
}