@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

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

:root {
    --green: #6D7123;
    --green-light: #8a9030;
    --dark: #27285E;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray: #666666;
    --text: #333333;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--text);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

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

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

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    max-width: 1200px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav > li {
    position: relative;
}

.nav > li > a {
    padding: 10px 15px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    transition: color 0.3s;
    display: block;
}

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

.nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.nav > li:hover > a::after,
.nav > li > a.active::after {
    transform: scaleX(1);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 100;
}

.nav > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}

.dropdown li a:hover {
    background: var(--green);
    color: var(--white);
}

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-family: 'Quicksand', sans-serif;
}

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

.btn-primary:hover {
    background: var(--green-light);
    transform: translateY(-2px);
}

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

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

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

.btn-dark:hover {
    background: #1a1b45;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 16px;
}

/* Burger menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    transition: all 0.3s;
    border-radius: 2px;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

.hero h1 span {
    color: var(--green);
}

.hero h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--gray);
    margin-bottom: 30px;
}

.hero h3 span {
    color: var(--green);
}

/* ===== BANNER (Sowefund) ===== */
.banner {
    background: var(--dark);
    padding: 40px 20px;
    text-align: center;
    color: var(--white);
}

.banner img {
    max-width: 300px;
    margin-bottom: 15px;
}

.banner h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.banner p {
    margin-bottom: 20px;
    opacity: 0.9;
}

/* ===== VIDEO + TEXT SECTION ===== */
.section-video {
    padding: 60px 0;
    background: var(--gray-light);
}

.section-video .container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.section-video .video-wrap {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.section-video .video-wrap iframe {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
}

.section-video .text-wrap {
    flex: 1.5;
}

.section-video h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--dark);
}

.section-video p {
    margin-bottom: 25px;
    line-height: 1.8;
    color: var(--gray);
}

.section-video p span {
    color: var(--green);
    font-weight: 600;
}

/* ===== SECTION TITLES ===== */
.section-title {
    text-align: center;
    padding: 50px 20px 30px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-title h3 {
    font-size: 18px;
    font-weight: 400;
    color: var(--gray);
}

/* ===== PROBLEMS CARDS ===== */
.problems {
    padding: 0 20px 50px;
}

.problems .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1140px;
    margin: 0 auto;
}

.card-problem {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-problem:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-problem .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--green);
}

.card-problem .icon svg {
    width: 100%;
    height: 100%;
    fill: var(--green);
}

.card-problem h4 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 10px;
}

.card-problem p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

/* ===== ADVANTAGES ===== */
.advantages {
    background: var(--dark);
    padding: 60px 20px;
    position: relative;
}

.advantages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.advantages .grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    max-width: 1140px;
    margin: 0 auto;
}

.advantage-item {
    text-align: center;
    color: var(--white);
    padding: 20px 10px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-item .icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
}

.advantage-item .icon svg {
    width: 100%;
    height: 100%;
    fill: var(--green);
}

.advantage-item p {
    font-size: 13px;
    font-weight: 600;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 0 20px 60px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1140px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--dark);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 auto 15px;
}

.step h4 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 8px;
}

.step p {
    font-size: 13px;
    color: var(--gray);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    background: var(--gray-light);
    padding: 60px 20px;
}

.testimonials .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1140px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.testimonial-card .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.testimonial-card .name {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.testimonial-card .job {
    font-size: 13px;
    color: var(--green);
    font-weight: 600;
    margin-bottom: 15px;
}

.testimonial-card .quote {
    font-size: 14px;
    color: var(--gray);
    font-style: italic;
    line-height: 1.7;
}

/* ===== SOLUTIONS (flip cards) ===== */
.solutions {
    padding: 60px 20px;
}

.solutions .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1140px;
    margin: 0 auto;
}

.solution-card {
    position: relative;
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.solution-card .front,
.solution-card .back {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    transition: transform 0.5s;
    backface-visibility: hidden;
}

.solution-card .front {
    background: var(--white);
}

.solution-card .back {
    background: var(--green);
    color: var(--white);
    transform: translateY(100%);
}

.solution-card:hover .front {
    transform: translateY(-100%);
}

.solution-card:hover .back {
    transform: translateY(0);
}

.solution-card .front h3 {
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 15px;
}

.solution-card .front .icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.solution-card .front .icon svg {
    width: 100%;
    height: 100%;
    fill: var(--green);
}

.solution-card .back p {
    font-size: 14px;
    line-height: 1.7;
}

.solution-card .back .btn {
    margin-top: 20px;
    background: var(--white);
    color: var(--green);
}

/* ===== CTA ===== */
.cta {
    background: var(--green);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

.cta h2 {
    font-size: 32px;
    margin-bottom: 25px;
}

.cta .btn {
    background: var(--white);
    color: var(--green);
    font-size: 16px;
    padding: 15px 40px;
}

.cta .btn:hover {
    background: var(--dark);
    color: var(--white);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 50px 20px 20px;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1140px;
    margin: 0 auto;
}

.footer h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--green);
}

.footer p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.8;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links li a {
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.3s, color 0.3s;
}

.footer-links li a:hover {
    opacity: 1;
    color: var(--green);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.footer-social a:hover {
    background: var(--green);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    opacity: 0.6;
}

/* ===== PAGES ===== */
.page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, #3a3b7a 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.page-hero h1 {
    font-size: 38px;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 18px;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: 60px 20px;
}

.page-content .container {
    max-width: 900px;
}

.page-content h2 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 20px;
}

.page-content h3 {
    font-size: 22px;
    color: var(--green);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--gray);
}

.page-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.page-content ul li {
    list-style: disc;
    margin-bottom: 8px;
    color: var(--gray);
}

/* Team cards */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.team-card {
    text-align: center;
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-card h4 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 5px;
}

.team-card .role {
    color: var(--green);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.team-card p {
    font-size: 13px;
    color: var(--gray);
}

.team-card a svg {
    width: 20px;
    height: 20px;
    fill: var(--green);
    transition: fill 0.3s;
}

.team-card a:hover svg {
    fill: var(--dark);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.contact-info svg {
    width: 18px;
    height: 18px;
    fill: var(--green);
}

.contact-info .footer-social a svg {
    width: 18px;
    height: 18px;
    fill: var(--white);
}

/* Contact form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Quicksand', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}

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

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
}

/* Partners logo grid */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: center;
    margin: 40px 0;
}

.partner-logo {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.partner-logo img {
    max-height: 60px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.partner-logo:hover img {
    opacity: 1;
}

/* News cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

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

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

.news-card .content {
    padding: 20px;
}

.news-card h4 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 10px;
}

.news-card p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
}

.news-card .date {
    font-size: 12px;
    color: var(--green);
    font-weight: 600;
    margin-bottom: 8px;
}

/* Features grid for solution pages */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.feature-card .icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: var(--green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card .icon svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.feature-card h4 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 5px;
}

.feature-card p {
    font-size: 13px;
    color: var(--gray);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .advantages .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav-wrap {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        padding: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s;
        overflow-y: auto;
        z-index: 999;
    }

    .nav-wrap.active {
        transform: translateX(0);
    }

    .nav {
        flex-direction: column;
        gap: 0;
    }

    .nav > li > a {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    .nav > li > a::after {
        display: none;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        display: none;
    }

    .nav > li:hover .dropdown,
    .nav > li.open .dropdown {
        display: block;
    }

    .header-buttons {
        flex-direction: column;
        margin-top: 20px;
        width: 100%;
    }

    .header-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero h3 {
        font-size: 16px;
    }

    .section-video .container {
        flex-direction: column;
    }

    .problems .cards,
    .testimonials .cards,
    .solutions .cards {
        grid-template-columns: 1fr;
    }

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

    .advantages .grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

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

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

    .page-hero h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .steps {
        grid-template-columns: 1fr;
    }

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

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
