/* 
Palette Name: forest-amber
Primary: #1B5E20
Secondary: #2E7D32
Accent: #E8A020
Background Tint: #F2FAF2
Design Style: corporate-clean
Border Style: rounded
Shadow Style: subtle
Color Mode: mixed
*/

:root {
    --color-primary: #1B5E20;
    --color-secondary: #2E7D32;
    --color-accent: #E8A020;
    --bg-tint: #F2FAF2;
    --bg-white: #ffffff;
    --color-text-dark: #2d3748;
    --color-text-muted: #718096;
    --color-border: #e2e8f0;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-white);
    color: var(--color-text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 800px;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: clamp(32px, 5vw, 54px);
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 16px;
}

h3 {
    font-size: clamp(18px, 3vw, 22px);
    margin-bottom: 12px;
}

p {
    margin-bottom: 16px;
    color: var(--color-text-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    border-radius: 8px; /* rounded border style */
    transition: background-color 0.3s ease, border-color 0.3s ease;
    min-height: 44px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--bg-white);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn-outline {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Header Layout */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo - завжди зліва */
.logo {
    font-size: 24px;
    font-weight: bold;
    z-index: 100;
    color: var(--color-primary);
    text-decoration: none;
}

/* Hamburger - ЗАВЖДИ СПРАВА */
.hamburger {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 100;
    display: none; /* Показуємо тільки на мобайлі */
}

.hamburger .line {
    width: 100%;
    height: 3px;
    margin: 5px 0;
    transition: 0.3s;
    background-color: var(--color-primary);
}

.menu-checkbox {
    display: none;
}

/* Desktop Navigation */
.desktop-nav {
    display: block;
}

.desktop-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.desktop-nav .nav-list a {
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 600;
}

.desktop-nav .nav-list a:hover {
    color: var(--color-accent);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
    background-color: var(--bg-white);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav a {
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 600;
}

/* Мобільна адаптація */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: block; /* Показуємо hamburger на мобайлі */
    }

    .mobile-nav {
        display: block;
    }

    #menu-toggle:checked ~ .mobile-nav {
        max-height: 400px;
    }

    /* Анімація hamburger */
    #menu-toggle:checked ~ .hamburger .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #menu-toggle:checked ~ .hamburger .line:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked ~ .hamburger .line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* HERO: DIAGONAL-SPLIT */
.hero-diagonal {
    display: flex;
    flex-direction: column;
    background-color: var(--color-secondary); /* Dark overlay */
    color: var(--bg-white);
    overflow: hidden;
}

.hero-content {
    padding: 48px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content p,
.hero-content h1 {
    color: var(--bg-white);
}

.hero-badge {
    display: inline-block;
    align-self: flex-start;
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: 4px 12px;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.hero-image-wrapper {
    height: 300px;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile-First for Hero Diagonal Split */
@media (min-width: 768px) {
    .hero-diagonal {
        flex-direction: row;
        min-height: 550px;
    }
    .hero-content {
        width: 45%;
        padding: 80px 48px;
    }
    .hero-image-wrapper {
        width: 55%;
        height: auto;
        clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
    }
}

/* SECTION HEADERS */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px auto;
}

.section-header p {
    color: var(--color-text-muted);
}

/* 1. BENEFITS-TIMELINE */
.benefits-timeline-section {
    padding: 48px 16px;
    background-color: var(--bg-tint);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-icon {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 24px;
    height: 24px;
    background: var(--bg-tint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.timeline-content {
    background-color: var(--bg-white);
    padding: 20px;
    border-radius: 12px; /* rounded style */
    box-shadow: 0 2px 12px rgba(0,0,0,0.07); /* subtle shadow style */
}

@media (min-width: 768px) {
    .benefits-timeline-section {
        padding: 80px 24px;
    }
}

/* 2. COMPARISON TABLE */
.comparison-section {
    padding: 48px 16px;
    background-color: var(--bg-white);
}

.table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-tint);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th, .comparison-table td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
    background-color: var(--color-primary);
    color: var(--bg-white);
    font-weight: bold;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

@media (min-width: 768px) {
    .comparison-section {
        padding: 80px 24px;
    }
}

/* 3. STATS BAR */
.stats-bar-section {
    padding: 32px 16px;
    background-color: var(--color-accent);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
}

.stat-card {
    padding: 16px;
}

.stat-number {
    font-size: clamp(36px, 6vw, 52px);
    font-weight: 800;
    color: var(--color-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 600;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 4. GALLERY GRID */
.gallery-section {
    padding: 48px 16px;
    background-color: var(--bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.gallery-item {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 12px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    color: var(--bg-white);
    padding: 16px;
    font-weight: bold;
}

.placeholder-item {
    background-color: var(--bg-tint);
    border: 2px dashed var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
}

.placeholder-icon {
    font-size: 40px;
}

@media (min-width: 768px) {
    .gallery-section {
        padding: 80px 24px;
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 5. ICON FEATURES */
.features-section {
    padding: 48px 16px;
    background-color: var(--bg-tint);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.feature-card {
    background-color: var(--bg-white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    text-align: center;
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .features-section {
        padding: 80px 24px;
    }
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* FORMS & CARD INSERTS */
.form-section {
    padding: 48px 16px;
    background-color: var(--bg-white);
}

.form-card {
    background-color: var(--bg-tint);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-family);
    background-color: var(--bg-white);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

@media (min-width: 768px) {
    .form-section {
        padding: 80px 24px;
    }
}

/* INNER HERO */
.inner-hero {
    background-color: var(--color-secondary);
    color: var(--bg-white);
    padding: 60px 16px;
    text-align: center;
}

.inner-hero h1 {
    color: var(--bg-white);
}

/* ACCORDION (details/summary) */
.accordion-section {
    padding: 48px 16px;
    background-color: var(--bg-white);
}

.accordion-wrapper {
    margin-top: 32px;
}

.accordion-item {
    background-color: var(--bg-tint);
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.accordion-title {
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    color: var(--color-primary);
    list-style: none;
    outline: none;
}

.accordion-title::-webkit-details-marker {
    display: none;
}

.accordion-content {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
    .accordion-section {
        padding: 80px 24px;
    }
}

/* SPLIT COMPONENT */
.program-visual-section {
    padding: 48px 16px;
    background-color: var(--bg-tint);
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

.split-img-rounded {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

@media (min-width: 768px) {
    .program-visual-section {
        padding: 80px 24px;
    }
    .split-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* FAQ LIST */
.faq-section {
    padding: 48px 16px;
    background-color: var(--bg-white);
}

.faq-list {
    margin-top: 32px;
}

.faq-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.faq-item h3 {
    margin-bottom: 8px;
}

/* STORYTELLING SECTION (MISSION) */
.storytelling-section {
    padding: 48px 16px;
    background-color: var(--bg-white);
}

.story-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 64px;
    align-items: center;
}

.story-img-rounded {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
}

@media (min-width: 768px) {
    .storytelling-section {
        padding: 80px 24px;
    }
    .story-block {
        grid-template-columns: 1fr 1fr;
    }
    .story-block.reverse .story-text {
        order: 2;
    }
    .story-block.reverse .story-image {
        order: 1;
    }
}

/* VALUES GRID */
.values-section {
    padding: 48px 16px;
    background-color: var(--bg-tint);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.value-card {
    background-color: var(--bg-white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    position: relative;
    border-top: 4px solid var(--color-primary);
}

.value-number {
    font-size: 40px;
    font-weight: 800;
    color: var(--color-accent);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    right: 20px;
}

@media (min-width: 768px) {
    .values-section {
        padding: 80px 24px;
    }
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* CONTACT GRID LAYOUT */
.contact-layout-section {
    padding: 48px 16px;
    background-color: var(--bg-white);
}

.contact-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.sidebar-card {
    background-color: var(--bg-tint);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.sidebar-intro {
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.contact-detail-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.detail-icon {
    font-size: 24px;
}

.form-card-contact {
    background-color: var(--bg-tint);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

@media (min-width: 1024px) {
    .contact-layout-section {
        padding: 80px 24px;
    }
    .contact-grid-layout {
        grid-template-columns: 4fr 8fr;
    }
}

/* LEGAL PAGES */
.legal-page {
    padding: 60px 16px;
    background-color: var(--bg-white);
}

.legal-section {
    margin-bottom: 32px;
}

.legal-section ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.last-updated {
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 32px;
}

/* THANK YOU PAGE */
.thank-you-page {
    padding: 80px 16px;
    background-color: var(--bg-tint);
    text-align: center;
}

.thank-card {
    background-color: var(--bg-white);
    padding: 48px 32px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.thank-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.next-steps {
    text-align: left;
    max-width: 500px;
    margin: 32px auto;
    padding: 20px;
    border-top: 1px solid var(--color-border);
}

.next-steps h3 {
    margin-bottom: 12px;
}

.next-steps ul {
    padding-left: 20px;
}

/* FOOTER (Strict dark style protected against auto-translators) */
.site-footer {
    background-color: var(--color-secondary) !important;
    color: var(--bg-white) !important;
    padding: 48px 16px 20px 16px !important;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.inner-hero p,
.footer-container p {
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-brand .logo {
    color: var(--bg-white) !important;
    margin-bottom: 16px;
    display: inline-block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-links h3, .footer-legal h3, .footer-contact h3 {
    color: var(--color-accent) !important;
    margin-bottom: 16px;
}

.footer-links ul, .footer-legal ul {
    list-style: none;
}

.footer-links li, .footer-legal li {
    margin-bottom: 10px;
}

.footer-links a, .footer-legal a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--color-accent) !important;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8) !important;
    margin-bottom: 10px;
}

.footer-email {
    color: var(--color-accent) !important;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6) !important;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 2fr;
    }
}

/* COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    transform: translateY(0);
    transition: transform 0.4s ease;
    background-color: var(--color-primary);
    color: var(--bg-white);
}

#cookie-banner.hidden {
    transform: translateY(110%);
}

#cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 200px;
    color: var(--bg-white);
}

#cookie-banner a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn-accept, .cookie-btn-decline {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.cookie-btn-accept {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.cookie-btn-decline {
    background-color: transparent;
    color: var(--bg-white);
    border: 1px solid var(--bg-white);
}

@media (max-width: 600px) {
    #cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-btns {
        width: 100%;
    }
    .cookie-btn-accept, .cookie-btn-decline {
        flex: 1;
        text-align: center;
    }
}