* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #FFF9C4 0%, #B3E5FC 50%, #C8E6C9 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Banner */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    
}

.banner-container {
    background: linear-gradient(135deg, #FFD54F 0%, #4FC3F7 50%, #81C784 100%);
    padding: 1rem;
    text-align: center;
}

.site-banner {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    border-radius: 10px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    background: white;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #FF8F00;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    color: #FF8F00;
    background: #FFF3E0;
    border-color: #FFB74D;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: #FF8F00;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Main */
main {
    background: white;
    margin: 2rem auto;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    min-height: 600px;
    border: 3px solid #FFD54F;
}

h1 {
    color: #FF6F00;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

h2 {
    color: #0277BD;
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
    border-bottom: 3px solid #B3E5FC;
    padding-bottom: 0.5rem;
}

h3 {
    color: #2E7D32;
    margin: 1.5rem 0 0.5rem;
    font-size: 1.3rem;
}

/* Profile Section */
.profile-section {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #FFF8E1 0%, #E3F2FD 100%);
    border-radius: 15px;
    border: 2px solid #FFD54F;
}

.profile-photo img {
    width: 250px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 4px solid #FFB74D;
}

.profile-info p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.profile-info strong {
    color: #FF6F00;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-yellow {
    background: linear-gradient(135deg, #FFD54F 0%, #FFB300 100%);
}

.stat-blue {
    background: linear-gradient(135deg, #4FC3F7 0%, #0288D1 100%);
}

.stat-green {
    background: linear-gradient(135deg, #81C784 0%, #388E3C 100%);
}

.stat-orange {
    background: linear-gradient(135deg, #FFB74D 0%, #F57C00 100%);
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-card p {
    font-size: 1rem;
    font-weight: 600;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 5px solid;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-3px);
}

.card-yellow {
    background: #FFF8E1;
    border-color: #FFD54F;
}

.card-blue {
    background: #E3F2FD;
    border-color: #4FC3F7;
}

.card-green {
    background: #E8F5E9;
    border-color: #81C784;
}

.card-orange {
    background: #FFF3E0;
    border-color: #FFB74D;
}

.info-card h3 {
    margin-top: 0;
}

.card-yellow h3 { color: #FF8F00; }
.card-blue h3 { color: #0277BD; }
.card-green h3 { color: #2E7D32; }
.card-orange h3 { color: #E65100; }

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: linear-gradient(135deg, #4FC3F7 0%, #0288D1 100%);
    color: white;
    font-weight: 600;
}

tr:nth-child(even) {
    background: #E3F2FD;
}

tr:hover {
    background: #B3E5FC;
}

/* Achievement List */
.achievement-list {
    list-style: none;
}

.achievement-list li {
    padding: 1rem;
    margin: 0.5rem 0;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-radius: 8px;
    border-left: 5px solid #4CAF50;
    transition: transform 0.3s;
}

.achievement-list li:hover {
    transform: translateX(5px);
}

.achievement-list li::before {
    content: "🎉 ";
    margin-right: 0.5rem;
}

/* Resources */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.resource-card {
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 3px solid transparent;
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.resource-yellow {
    background: #FFF8E1;
    border-color: #FFD54F;
}

.resource-yellow:hover {
    background: #FFECB3;
    border-color: #FFB300;
}

.resource-blue {
    background: #E3F2FD;
    border-color: #4FC3F7;
}

.resource-blue:hover {
    background: #BBDEFB;
    border-color: #0288D1;
}

.resource-green {
    background: #E8F5E9;
    border-color: #81C784;
}

.resource-green:hover {
    background: #C8E6C9;
    border-color: #388E3C;
}

.resource-orange {
    background: #FFF3E0;
    border-color: #FFB74D;
}

.resource-orange:hover {
    background: #FFE0B2;
    border-color: #F57C00;
}

.resource-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.resource-yellow h3 { color: #FF8F00; }
.resource-blue h3 { color: #0277BD; }
.resource-green h3 { color: #2E7D32; }
.resource-orange h3 { color: #E65100; }

/* Upload Section */
.upload-section {
    background: linear-gradient(135deg, #E3F2FD 0%, #B3E5FC 100%);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    border: 2px solid #4FC3F7;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.upload-form input[type="file"] {
    padding: 1rem;
    border: 3px dashed #4FC3F7;
    border-radius: 10px;
    background: white;
    font-size: 1rem;
}

.hint {
    font-size: 0.9rem;
    color: #0277BD;
    margin-top: 0.5rem;
    font-style: italic;
}

.btn {
    background: linear-gradient(135deg, #FFB74D 0%, #FF8F00 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(255,143,0,0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,143,0,0.5);
    background: linear-gradient(135deg, #FFA726 0%, #FF6F00 100%);
}

/* Documents List */
.document-list {
    list-style: none;
}

.document-item {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    padding: 1rem 1.5rem;
    margin: 0.5rem 0;
    border-radius: 10px;
    border-left: 5px solid #4CAF50;
    transition: all 0.3s;
}

.document-item:hover {
    background: linear-gradient(135deg, #C8E6C9 0%, #A5D6A7 100%);
    transform: translateX(8px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.document-item a {
    color: #2E7D32;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.document-item a:hover {
    text-decoration: underline;
}

.delete-btn {
    float: right;
    background: #EF5350;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.delete-btn:hover {
    background: #F44336;
    transform: scale(1.1);
}

/* Folders */
.folders-container {
    margin-top: 2rem;
}

.folder-section {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.folder-title {
    background: linear-gradient(135deg, #FFB74D 0%, #FF8F00 100%);
    color: white;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
    user-select: none;
    font-weight: 600;
}

.folder-title:hover {
    background: linear-gradient(135deg, #FFA726 0%, #FF6F00 100%);
}

.folder-icon {
    font-size: 1.5rem;
}

.folder-name {
    flex: 1;
    font-size: 1.1rem;
}

.folder-arrow {
    transition: transform 0.3s;
    font-size: 0.8rem;
}

.folder-content {
    background: #FFF8E1;
    padding: 1rem;
    display: block;
    border: 2px solid #FFD54F;
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.folder-content .loading,
.folder-content .no-files {
    color: #FF8F00;
    text-align: center;
    padding: 1rem;
    font-style: italic;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #FFD54F 0%, #4FC3F7 50%, #81C784 100%);
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
    color: white;
    font-weight: 600;
}

footer p {
    margin: 0.5rem 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Section */
.section {
    margin-bottom: 2.5rem;
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, #E3F2FD 0%, #B3E5FC 100%);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    border: 2px solid #4FC3F7;
}

.welcome-section h2 {
    color: #0277BD;
    margin-top: 0;
    border-bottom: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border-radius: 0 0 15px 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    main {
        padding: 2rem 1rem;
        margin: 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .site-banner {
        max-height: 100px;
    }
}

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.stat-card:hover {
    animation: bounce 0.5s ease infinite;
}
/* Banner link */
.banner-link {
    text-decoration: none;
    display: block;
}

.banner-link:hover {
    opacity: 0.9;
}

/* Welcome content */
.welcome-content {
    max-width: 100%;
}

.greeting {
    font-size: 1.3rem;
    color: #FF6F00;
    margin-bottom: 1.5rem;
}

.closing {
    font-size: 1.2rem;
    color: #0277BD;
    margin-top: 2rem;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #FFF8E1 0%, #E3F2FD 100%);
    border-radius: 10px;
    border: 2px solid #FFD54F;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 5px solid;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card ul {
    list-style: none;
    padding: 0;
}

.feature-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.feature-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.card-yellow li:before { color: #FF8F00; }
.card-blue li:before { color: #0277BD; }
.card-green li:before { color: #2E7D32; }

/* Gallery */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.gallery-item {
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 3px solid transparent;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.gallery-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gallery-item h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.gallery-item p {
    margin: 0.5rem 0;
}

.gallery-item.card-yellow {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border-color: #FFD54F;
}

.gallery-item.card-yellow h3 {
    color: #FF8F00;
}

.gallery-item.card-blue {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-color: #4FC3F7;
}

.gallery-item.card-blue h3 {
    color: #0277BD;
}

.gallery-item.card-green {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-color: #81C784;
}

.gallery-item.card-green h3 {
    color: #2E7D32;
}

.gallery-item.card-orange {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border-color: #FFB74D;
}

.gallery-item.card-orange h3 {
    color: #E65100;
}

/* Update h2 in welcome section */
.welcome-section h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.welcome-section h2:first-of-type {
    margin-top: 1.5rem;
}

/* Welcome section with photo */
.welcome-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #FFF8E1 0%, #E3F2FD 100%);
    border-radius: 15px;
    border: 2px solid #FFD54F;
}

.welcome-photo {
    flex-shrink: 0;
}

.welcome-photo img {
    width: 250px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 4px solid #FFB74D;
}

.welcome-text h1 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.welcome-text p {
    margin: 0.5rem 0;
}

.welcome-text strong {
    color: #FF6F00;
}

/* Адаптивность для приветственного блока */
@media (max-width: 768px) {
    .welcome-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .welcome-photo img {
        width: 200px;
        height: 240px;
    }
}
/* Галерея изображений */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 4/3;
    background: #f5f5f5;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    color: white;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    pointer-events: none;
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Лайтбокс (просмотр в полный экран) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: fadeIn 0.3s;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2001;
}

.lightbox-close:hover {
    color: #FFB74D;
}

.lightbox-caption {
    margin-top: 15px;
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    max-width: 80%;
    background: rgba(0,0,0,0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.no-files {
    text-align: center;
    color: #666;
    padding: 2rem;
    font-style: italic;
    background: #f9f9f9;
    border-radius: 10px;
    border: 2px dashed #ccc;
}
/* Сетка полезных ресурсов */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.resource-category {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-top: 4px solid #667eea;
}

.resource-category h3 {
    color: #667eea;
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.tool-card {
    padding: 1rem;
    margin: 0.75rem 0;
    border-radius: 10px;
    border-left: 4px solid;
    background: #f8f9fa;
    transition: transform 0.3s;
}

.tool-card:hover {
    transform: translateX(5px);
    background: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.tool-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.tool-card a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.tool-card a:hover {
    text-decoration: underline;
}

.tool-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

.tool-card.card-blue { border-color: #4FC3F7; }
.tool-card.card-blue h4 { color: #0277BD; }

.tool-card.card-yellow { border-color: #FFD54F; }
.tool-card.card-yellow h4 { color: #FF8F00; }

.tool-card.card-green { border-color: #81C784; }
.tool-card.card-green h4 { color: #2E7D32; }

.tool-card.card-orange { border-color: #FFB74D; }
.tool-card.card-orange h4 { color: #E65100; }

/* Адаптивность для ресурсов */
@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
}
/* Welcome section for students */
.welcome-students {
    background: linear-gradient(135deg, #E3F2FD 0%, #B3E5FC 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 2px solid #4FC3F7;
}

.welcome-students p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.welcome-students strong {
    color: #0277BD;
    font-size: 1.3rem;
}

/* Resource cards for students page */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.resource-card {
    padding: 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s;
    border: 3px solid transparent;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.resource-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.resource-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.resource-card a {
    color: #667eea;
    font-weight: 600;
    display: block;
    margin-bottom: 0.75rem;
    word-break: break-all;
    text-decoration: none;
}

.resource-card a:hover {
    text-decoration: underline;
}

.resource-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.resource-yellow {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border-color: #FFD54F;
}
.resource-yellow h3 { color: #FF8F00; }

.resource-blue {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-color: #4FC3F7;
}
.resource-blue h3 { color: #0277BD; }

.resource-green {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-color: #81C784;
}
.resource-green h3 { color: #2E7D32; }

.resource-orange {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border-color: #FFB74D;
}
.resource-orange h3 { color: #E65100; }

/* Адаптивность */
@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
}
/* Contact section for students */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-card {
    display: block;
    padding: 2rem;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: all 0.3s;
    border: 3px solid transparent;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.contact-card p {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 0.95rem;
}

.contact-link {
    display: inline-block;
    background: rgba(255,255,255,0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-vk {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-color: #4FC3F7;
}
.contact-vk h3 { color: #0277BD; }
.contact-vk:hover { background: linear-gradient(135deg, #BBDEFB 0%, #90CAF9 100%); }

.contact-email {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border-color: #FFD54F;
}
.contact-email h3 { color: #FF8F00; }
.contact-email:hover { background: linear-gradient(135deg, #FFECB3 0%, #FFE082 100%); }

.contact-note {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

/* File icons in lists */
.file-icon {
    margin-right: 0.5rem;
}

.file-title {
    flex: 1;
}

.file-ext {
    background: #667eea;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.document-item a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Адаптивность для контактов */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}