/* ===== БАЗОВІ СТИЛІ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8faf8;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== HEADER ===== */
header {
    background: #fff;
    padding: 15px 5%;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
}

nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

nav a {
    padding: 10px 18px;
    color: #444;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s;
}

nav a:hover {
    background: #e8f5e9;
    color: #2d8a4e;
}

nav a.active {
    background: #2d8a4e;
    color: #fff;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #2d8a4e 0%, #1a5c32 100%);
    color: #fff;
    text-align: center;
    padding: 80px 5% 70px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #fff;
    color: #2d8a4e;
}

.btn-primary:hover {
    background: #e8f5e9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

.btn-green {
    background: #2d8a4e;
    color: #fff;
}

.btn-green:hover {
    background: #236b3d;
    transform: translateY(-2px);
}

/* ===== STATS ===== */
.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 40px 5%;
    background: #fff;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #2d8a4e;
}

.stat-label {
    color: #666;
    font-size: 0.95rem;
    margin-top: 5px;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 5%;
}

/* ===== SECTION ===== */
.section {
    padding: 60px 5%;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #2d8a4e;
    margin-bottom: 40px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    max-width: 600px;
    margin: -30px auto 40px;
}

/* ===== CARDS GRID ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(45,138,78,0.15);
}

.card-content {
    padding: 25px;
}

.card h3 {
    color: #2d8a4e;
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.card .arrow {
    display: block;
    margin-top: 12px;
    color: #2d8a4e;
    font-weight: 500;
    font-size: 0.9rem;
}

/* ===== FEATURES ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature {
    background: #fff;
    padding: 35px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature h3 {
    color: #2d8a4e;
    margin-bottom: 12px;
}

.feature p {
    color: #666;
    font-size: 0.95rem;
}

/* ===== PRICING ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    position: relative;
}

.pricing-card.featured {
    border: 3px solid #2d8a4e;
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: "Popular";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #2d8a4e;
    color: #fff;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 10px;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #2d8a4e;
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
    color: #888;
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin: 25px 0;
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.pricing-features li::before {
    content: "✓ ";
    color: #2d8a4e;
    font-weight: bold;
}

/* ===== FORM ===== */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2d8a4e;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

/* ===== SEARCH ===== */
.search-box {
    max-width: 500px;
    margin: 0 auto 40px;
}

.search-box input {
    width: 100%;
    padding: 15px 25px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 30px;
    outline: none;
    background: #fff;
}

.search-box input:focus {
    border-color: #2d8a4e;
}

/* ===== CTA SECTION ===== */
.cta {
    background: #f0f7f2;
    padding: 70px 5%;
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.cta p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* ===== FOOTER ===== */
footer {
    background: #1a5c32;
    color: #fff;
    padding: 50px 5% 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-section a {
    display: block;
    color: #a8d5ba;
    padding: 5px 0;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: #a8d5ba;
    font-size: 0.9rem;
}

/* ===== TEAM/MEMBERS ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.member-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.member-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #2d8a4e, #1a5c32);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
}

.member-card h3 {
    color: #333;
    margin-bottom: 5px;
}

.member-card .role {
    color: #2d8a4e;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.member-card p {
    color: #666;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }
    
    nav {
        justify-content: center;
    }
    
    nav a {
        padding: 8px 14px;
        font-size: 0.9rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== FEATURED GRID ===== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(45, 138, 78, 0.2);
}

.featured-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-content {
    padding: 20px;
}

.featured-content h3 {
    color: #2d8a4e;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.featured-content p {
    color: #666;
    font-size: 0.95rem;
}

/* ===== PUBLICATION PAGE ===== */
.pub-hero {
    background: linear-gradient(135deg, #2d8a4e 0%, #1a5c32 100%);
    color: #fff;
    padding: 40px 5%;
}

.pub-hero .back-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-block;
    margin-bottom: 15px;
}

.pub-hero .back-link:hover {
    color: #fff;
}

.pub-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.pub-hero .location {
    opacity: 0.9;
    font-size: 1.1rem;
}

.pub-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 5%;
}

.pub-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.pub-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 30px;
}

.pub-description p {
    margin-bottom: 20px;
}

.pub-meta {
    background: #f8faf8;
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
}

.pub-meta h4 {
    color: #2d8a4e;
    margin-bottom: 15px;
}

.pub-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}
