:root {
    --primary-green: #2d7a4f;
    --dark-green: #1e5a3a;
    --light-bg: #f8faf8;
    --text-dark: #1a1a1a;
    --text-gray: #6b7280;
    --border-light: #e5e7eb;
    --warning-bg: #fef3c7;
    --warning-text: #92400e;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #fff;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* Header */
.header {
    background: #fff; border-bottom: 1px solid var(--border-light);
    position: sticky; top: 0; z-index: 100;
}
.header-container {
    max-width: 1280px; margin: 0 auto; padding: 16px 32px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 20px; font-weight: bold;
}
.logo-text h1 { font-size: 20px; font-weight: 600; }
.logo-text p { font-size: 12px; color: var(--text-gray); }

.nav { display: flex; gap: 32px; align-items: center; }
.nav a {
    text-decoration: none; color: var(--text-dark); font-size: 14px; font-weight: 500;
    transition: color 0.2s;
}
.nav a:hover, .nav a.active { color: var(--primary-green); }
.badge {
    background: var(--warning-bg); color: var(--warning-text);
    padding: 2px 8px; border-radius: 12px; font-size: 11px; margin-left: 6px; font-weight: 600;
}

/* Hero Sections */
.hero {
    position: relative; background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.2)), url('https://images.unsplash.com/photo-1549608276-5786777e6587?q=80&w=1200&auto=format&fit=crop');
    background-size: cover; background-position: center;
    min-height: 500px; display: flex; align-items: center; padding: 80px 32px;
}
.hero-small {
    min-height: 300px; background: linear-gradient(to right, rgba(30, 90, 58, 0.9), rgba(45, 122, 79, 0.8));
}
.hero-content { max-width: 1280px; margin: 0 auto; width: 100%; color: white; }
.hero-text h2 { font-size: 42px; font-weight: 700; line-height: 1.2; margin-bottom: 24px; max-width: 700px; }
.hero-text p { font-size: 18px; color: rgba(255,255,255,0.9); line-height: 1.6; margin-bottom: 32px; max-width: 600px; }

/* Buttons */
.btn-primary {
    background: var(--primary-green); color: white; padding: 14px 32px; border-radius: 8px;
    text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
    transition: all 0.2s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--dark-green); transform: translateY(-2px); }
.btn-secondary {
    background: transparent; color: white; padding: 14px 32px; border-radius: 8px;
    text-decoration: none; font-weight: 600; border: 2px solid white; transition: all 0.2s;
}
.btn-secondary:hover { background: white; color: var(--text-dark); }

/* Sections */
section { padding: 80px 32px; }
.section-bg { background: var(--light-bg); }
.section-header { max-width: 1280px; margin: 0 auto 40px; }
.section-header h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.section-header p { color: var(--text-gray); max-width: 600px; }

/* Grids */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 1280px; margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; max-width: 1280px; margin: 0 auto; }

/* Cards */
.card {
    background: white; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--border-light); transition: all 0.3s; cursor: pointer;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.card-img { height: 200px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px; }
.card-body h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.card-body p { font-size: 14px; color: var(--text-gray); line-height: 1.5; margin-bottom: 16px; }

/* Goals / Donate */
.goal-item {
    background: white; border: 1px solid var(--border-light); border-radius: 12px;
    padding: 32px; margin-bottom: 24px; transition: all 0.3s;
}
.goal-item:hover { border-color: var(--primary-green); }
.goal-header { display: flex; justify-content: space-between; margin-bottom: 16px; align-items: baseline; }
.goal-header h3 { font-size: 18px; font-weight: 600; }
.goal-meta { font-size: 14px; color: var(--text-gray); }
.progress-bar { background: #e5e7eb; height: 8px; border-radius: 4px; overflow: hidden; margin-bottom: 24px; }
.progress { background: var(--primary-green); height: 100%; border-radius: 4px; }

/* Footer */
.footer { background: var(--dark-green); color: white; padding: 40px 32px; }
.footer-container {
    max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 20px;
}
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { color: white; text-decoration: none; font-size: 14px; opacity: 0.9; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.student-hint { font-size: 13px; opacity: 0.7; font-style: italic; margin-top: 8px; }

/* Modal */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 1000; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.modal.active { display: flex; }
.modal-content {
    background: white; border-radius: 16px; padding: 48px; max-width: 500px; width: 90%;
    position: relative; animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-close {
    position: absolute; top: 20px; right: 20px; width: 32px; height: 32px; border-radius: 50%;
    border: none; background: var(--light-bg); cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--border-light); }
.modal h3 { font-size: 24px; margin-bottom: 16px; }
.modal p { color: var(--text-gray); line-height: 1.6; }

@media (max-width: 768px) {
    .nav { display: none; } /* Для простоты на мобильном скрываем меню, можно добавить бургер при необходимости */
    .hero-text h2 { font-size: 32px; }
    .grid-4, .grid-2 { grid-template-columns: 1fr; }
    .footer-container { flex-direction: column; text-align: center; }
}

