/* 
   Color Palette: forest-amber
   --color-primary: #1B5E20
   --color-secondary: #2E7D32
   --color-accent: #E8A020
   --bg-tint: #F2FAF2
   Design Style: warm-vintage
   Border Style: rounded
   Shadow Style: dramatic
   Color Mode: dark
*/

:root {
    --color-primary: #1B5E20;
    --color-secondary: #2E7D32;
    --color-accent: #E8A020;
    --bg-tint: #F2FAF2;
    --bg-dark: #121812;
    --bg-card-dark: #1b241b;
    --text-light: #F2FAF2;
    --text-muted: #b0c2b0;
    --text-dark: #121812;
    --font-heading: 'Georgia', serif;
    --font-body: 'Helvetica Neue', Arial, sans-serif;
    --border-radius-lg: 16px;
    --border-radius-md: 10px;
    --border-radius-sm: 8px;
    --shadow-dramatic: 0 24px 64px rgba(0, 0, 0, 0.45);
    --shadow-dramatic-hover: 0 32px 80px rgba(232, 160, 32, 0.15);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-weight: normal;
    margin-bottom: 16px;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Common Layout Containers */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 16px;
}

@media (min-width: 768px) {
    .section-container {
        padding: 80px 24px;
    }
}

.text-center {
    text-center: center;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    min-height: 44px;
    border-radius: var(--border-radius-sm);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--text-light);
    border: 1px solid var(--color-primary);
    box-shadow: var(--shadow-dramatic);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.btn-secondary-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

.btn-secondary-outline:hover {
    background-color: var(--text-light);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--text-dark);
    border: 1px solid var(--color-accent);
    font-weight: bold;
}

.btn-accent:hover {
    background-color: var(--text-light);
    border-color: var(--text-light);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Vintage Badges */
.vintage-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 14px;
    color: var(--color-accent);
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 4px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

/* Header Layout */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo - завжди зліва */
.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: bold;
    z-index: 100;
    color: var(--color-accent);
}

/* 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(--text-light);
}

.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 {
    color: var(--text-light);
    font-family: var(--font-heading);
}

.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-dark);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav li a {
    color: var(--text-light);
    font-size: 18px;
    font-family: var(--font-heading);
    display: block;
}

/* Мобільна адаптація */
@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 Section (Circle Image Layout) */
.hero-section {
    padding: 48px 16px;
    background: repeating-linear-gradient(45deg, #121812, #121812 10px, #161e16 10px, #161e16 20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-container {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 48px;
    }
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.circle-image-container {
    width: 280px;
    height: 280px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid var(--color-primary);
    box-shadow: var(--shadow-dramatic);
}

@media (min-width: 768px) {
    .circle-image-container {
        width: 380px;
        height: 380px;
    }
}

.circle-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Headers */
.section-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px auto;
}

.section-header-left {
    max-width: 700px;
    margin-bottom: 48px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 16px;
}

/* Benefits Horizontal Scroll */
.benefits-scroll-section {
    background-color: var(--bg-card-dark);
}

.benefits-hscroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 24px 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) var(--bg-dark);
}

.benefits-hscroll::-webkit-scrollbar {
    height: 8px;
}

.benefits-hscroll::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.benefits-hscroll::-webkit-scrollbar-thumb {
    background-color: var(--color-accent);
    border-radius: 4px;
}

.benefit-card {
    flex: 0 0 280px;
    background-color: var(--bg-dark);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-dramatic);
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
    .benefit-card {
        flex: 0 0 340px;
    }
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-dramatic-hover);
    border-color: var(--color-accent);
}

.benefit-num {
    font-family: var(--font-heading);
    font-size: 48px;
    color: var(--color-accent);
    opacity: 0.3;
    margin-bottom: 16px;
}

/* Numbered Steps */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step-item {
    background-color: var(--bg-card-dark);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-dramatic);
    border-top: 4px solid var(--color-primary);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 36px;
    color: var(--color-accent);
}

.step-divider {
    flex-grow: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Two Column Layout */
.grid-two-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 768px) {
    .grid-two-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

.align-items-center {
    align-items: center;
}

.two-col-img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-dramatic);
    width: 100%;
    object-fit: cover;
    max-height: 500px;
}

.custom-list {
    list-style: none;
    margin: 24px 0;
}

.custom-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
}

.custom-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 18px;
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-card-dark);
    border-radius: var(--border-radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-dramatic);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-question {
    padding: 24px;
    font-family: var(--font-heading);
    font-size: 18px;
    cursor: pointer;
    outline: none;
    user-select: none;
    color: var(--color-accent);
}

.faq-answer {
    padding: 0 24px 24px 24px;
    color: var(--text-muted);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-dramatic);
    height: 280px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 24px;
    font-family: var(--font-heading);
    font-size: 18px;
}

.placeholder-item {
    background-color: var(--bg-card-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

/* Lead Gen Form */
.lead-form-section {
    background-color: var(--bg-card-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.form-wrapper {
    max-width: 800px;
}

.custom-form {
    background-color: var(--bg-dark);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-dramatic);
    margin-top: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    margin-bottom: 8px;
    color: var(--color-accent);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    background-color: var(--bg-card-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Site Footer */
.site-footer {
    background-color: #0b0f0b !important; /* Force distinct footer background */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 64px 16px 24px 16px;
    color: #e0ebe0 !important; /* Force readable text color */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 1.5fr repeat(3, 1fr);
    }
}

.footer-brand .logo {
    margin-bottom: 16px;
    display: inline-block;
}

.footer-desc {
    color: #b0c2b0 !important;
}

.site-footer h4 {
    font-family: var(--font-heading);
    color: var(--color-accent) !important;
    margin-bottom: 24px;
}

.site-footer ul {
    list-style: none;
}

.site-footer ul li {
    margin-bottom: 12px;
}

.site-footer a {
    color: #e0ebe0 !important;
}

.site-footer a:hover {
    color: var(--color-accent) !important;
}

.footer-bottom {
    max-width: 1200px;
    margin: 48px auto 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 14px;
    color: #8da38d !important;
}

/* 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(--bg-card-dark);
    border-top: 3px solid var(--color-accent);
    box-shadow: var(--shadow-dramatic);
}
#cookie-banner.hidden { transform: translateY(110%); }
#cookie-banner p { margin: 0; flex: 1; min-width: 200px; color: var(--text-light); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }

.cookie-btn-accept {
    background-color: var(--color-accent);
    color: var(--text-dark);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    font-weight: bold;
}

.cookie-btn-decline {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 20px;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
}

@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; }
}

/* Program Page Timeline */
.internal-hero {
    background: linear-gradient(rgba(18, 24, 18, 0.9), rgba(18, 24, 18, 0.9)), url('img/bg.jpg') no-repeat center center/cover;
    padding: 80px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.internal-title {
    font-size: clamp(32px, 5vw, 48px);
}

.internal-desc {
    max-width: 800px;
    color: var(--text-muted);
    font-size: 18px;
}

.timeline-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 32px;
    border-left: 2px solid var(--color-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 64px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    left: -52px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: bold;
    box-shadow: var(--shadow-dramatic);
}

.timeline-content {
    background-color: var(--bg-card-dark);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-dramatic);
}

.timeline-tag {
    display: inline-block;
    color: var(--color-accent);
    font-size: 14px;
    margin-bottom: 8px;
}

/* Stats Counters */
.stats-counters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.counter-item {
    background-color: var(--bg-card-dark);
    padding: 24px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-dramatic);
}

.counter-num {
    font-family: var(--font-heading);
    font-size: 48px;
    color: var(--color-accent);
    display: block;
}

.rounded-img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-dramatic);
}

.cta-banner-section {
    background: repeating-linear-gradient(-45deg, #121812, #121812 10px, #1c241c 10px, #1c241c 20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mission Page Story & Values */
.story-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 450px;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.value-card {
    background-color: var(--bg-card-dark);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-dramatic);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 40px;
    margin-bottom: 24px;
}

.manifesto-section {
    background-color: var(--bg-card-dark);
}

.manifesto-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px;
    background-color: var(--bg-dark);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-dramatic);
    border: 1px solid var(--color-accent);
}

.manifesto-title {
    font-size: clamp(24px, 3vw, 32px);
    margin: 24px 0;
}

/* Contact Page Grid */
.grid-contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 1024px) {
    .grid-contact {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.info-card {
    background-color: var(--bg-card-dark);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-dramatic);
    margin-bottom: 32px;
}

.contact-detail-item {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.detail-icon {
    font-size: 24px;
}

.contact-link {
    color: var(--color-accent);
}

.work-hours ul {
    list-style: none;
    margin-top: 16px;
}

.work-hours li {
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

/* Legal Content Section */
.legal-content-section {
    padding: 64px 16px;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-card-dark);
    padding: 48px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-dramatic);
}

.legal-container h1 {
    font-size: 36px;
    color: var(--color-accent);
}

.legal-date {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.legal-container h2 {
    font-size: 22px;
    margin-top: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.legal-container ul {
    margin-left: 24px;
    margin-bottom: 24px;
}

.legal-container li {
    margin-bottom: 12px;
}

/* Thank You Section */
.thank-you-section {
    padding: 100px 16px;
}

.thank-box {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--bg-card-dark);
    padding: 64px 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-dramatic);
}

.thank-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 24px;
}

.thank-lead {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.next-steps-card {
    background-color: var(--bg-dark);
    padding: 32px;
    border-radius: var(--border-radius-md);
    margin-bottom: 40px;
    text-align: left;
}

.next-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .next-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.step-link-card {
    background-color: var(--bg-card-dark);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-link-card h4 {
    color: var(--color-accent);
    margin-bottom: 8px;
}

.step-link-card p {
    font-size: 14px;
    color: var(--text-muted);
}

.step-link-card:hover {
    border-color: var(--color-accent);
}