/* ===========================
   Академия ЕдуПро - Основни стилове
   =========================== */

/* Импорт на Poppins шрифт от Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* ===========================
   Глобални стилове
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #28a745;
    --primary-dark: #1e7e34;
    --primary-light: #34ce57;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    font-weight: 400;
    margin-bottom: 1rem;
    max-width: 700px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ===========================
   Header & Navigation
   =========================== */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

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

.nav-links a {
    color: var(--text-dark);
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-green);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-green);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* ===========================
   Sections
   =========================== */
section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0 auto 3rem;
}

/* ===========================
   Cards
   =========================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

.card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.card p {
    color: var(--text-light);
    margin: 0 auto;
}

/* ===========================
   Content Section
   =========================== */
.content-section {
    background-color: var(--bg-light);
}

.content-flex {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.content-flex img {
    width: 50%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.content-text {
    flex: 1;
}

.content-text h2 {
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.content-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.content-text ul {
    list-style: none;
    margin: 1.5rem 0;
}

.content-text ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.content-text ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: 700;
}

/* ===========================
   Statistics
   =========================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.stats-section .section-title {
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--white);
    font-weight: 700;
}

.stat-item p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto;
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
    background-color: var(--bg-light);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--primary-green);
}

.cta-section p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 1rem auto 2rem;
}

/* ===========================
   Footer
   =========================== */
footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-section a:hover {
    color: var(--primary-green);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ===========================
   Cookie Banner
   =========================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(26, 26, 26, 0.98);
    color: var(--white);
    padding: 1.5rem;
    z-index: 10000;
    display: none;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    max-width: 100%;
}

.cookie-text a {
    color: var(--primary-green);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

/* ===========================
   Blog
   =========================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

.blog-card-content {
    padding: 1.5rem;
}

.blog-card h3 {
    color: var(--primary-green);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.blog-card .blog-meta {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.blog-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Article Page */
.article-header {
    text-align: center;
    padding: 3rem 0;
    background-color: var(--bg-light);
}

.article-header h1 {
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.article-meta {
    color: var(--text-light);
    font-size: 0.95rem;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 20px;
}

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin: 2rem 0;
}

.article-content h2 {
    color: var(--primary-green);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.article-content h3 {
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.article-content p {
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

/* ===========================
   Contact Page
   =========================== */
.contact-section {
    background-color: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

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

.contact-info {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    color: var(--primary-green);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-top: 0.2rem;
}

.contact-item-content h4 {
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.contact-item-content p {
    color: var(--text-light);
    margin: 0;
}

.map-container {
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
}

/* ===========================
   FAQ Page
   =========================== */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    color: var(--primary-green);
    margin: 0;
    font-size: 1.2rem;
}

.faq-question .faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-green);
    font-weight: 600;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    margin-top: 1rem;
}

.faq-answer p {
    color: var(--text-light);
    margin: 0;
    max-width: 100%;
}

/* ===========================
   Privacy & Terms Pages
   =========================== */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.legal-content h1 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.legal-content h2 {
    color: var(--primary-green);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.legal-content h3 {
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.legal-content p {
    max-width: 100%;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.legal-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.legal-content .last-updated {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
}

/* ===========================
   Disclaimer
   =========================== */
.disclaimer {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}

.disclaimer h3 {
    color: #856404;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.disclaimer p {
    color: #856404;
    margin: 0;
    max-width: 100%;
    font-size: 0.95rem;
}

/* ===========================
   Team Section
   =========================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-member {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.team-member img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.team-member-info {
    padding: 1.5rem;
}

.team-member h3 {
    color: var(--primary-green);
    margin-bottom: 0.3rem;
}

.team-member .position {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.team-member p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0 auto;
}

/* ===========================
   Resources/Services Page
   =========================== */
.service-card {
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card .service-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.service-meta span {
    background-color: var(--bg-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    margin: 1.5rem 0;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: 700;
}

/* ===========================
   Responsive Design
   =========================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .content-flex {
        flex-direction: column;
    }

    .content-flex img {
        width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile (до 768px) */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        padding: 0 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-buttons .btn {
        width: 100%;
    }

    .article-header h1 {
        font-size: 1.8rem;
    }

    .article-image {
        height: 250px;
    }

    .legal-content {
        padding: 2rem 1.5rem;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-content h2 {
        font-size: 1.5rem;
    }
}

/* Extra Small Mobile (до 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 3rem 0;
    }

    section {
        padding: 3rem 0;
    }

    .card {
        padding: 1.5rem;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }

    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
}
