/* Palette Name: Warm Terracotta & Plum Organic */
:root {
    --primary-color: #D35400; /* Terracotta */
    --secondary-color: #7D3C98; /* Warm Plum */
    --bg-light: #FDF6F0; /* Soft warm cream */
    --bg-card: #FFFFFF; /* Pure white for cards */
    --text-dark: #2C1A1A; /* Dark charcoal-brown */
    --text-muted: #5D5050; /* Muted brown-gray */
    --border-color: #EADCD3; /* Soft warm border */
    --accent-light: #F9EBEA; /* Very soft rose-cream */
    --transition-speed: 0.3s;
    --font-family: 'Poppins', sans-serif;
}

/* Base resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: clamp(14px, 4vw, 16px);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4 {
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.25;
}

h1 {
    font-size: clamp(28px, 6vw, 48px);
    margin-bottom: 16px;
}

h2 {
    font-size: clamp(22px, 5vw, 32px);
    margin-bottom: 16px;
}

h3 {
    font-size: clamp(18px, 4vw, 24px);
    margin-bottom: 12px;
}

/* Layout Container */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 16px;
}

@media (min-width: 768px) {
    .section-container {
        padding: 80px 24px;
    }
}

.text-center {
    text-align: center;
}

/* Header Layout */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.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;
    color: var(--primary-color) !important;
    z-index: 100;
}

/* 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(--primary-color);
    border-radius: 3px;
}

.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-dark);
    font-weight: 600;
}

.desktop-nav .nav-list a:hover {
    color: var(--primary-color);
}

/* 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-card);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.mobile-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.mobile-nav li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav li a {
    color: var(--text-dark);
    font-weight: 600;
    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);
    }
}

/* Button Styles (rounded) */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px; /* border-style: rounded */
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-align: center;
    border: none;
    min-height: 44px;
    margin-top: 10px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #FFFFFF !important;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent-light);
    color: var(--secondary-color) !important;
}

.btn-secondary:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Section Header Styles */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px auto;
}

.section-header p {
    color: var(--text-muted);
}

/* HERO SECTION (floating-card layout) */
.hero-section {
    position: relative;
    background-image: url('img/bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 48px 16px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 26, 26, 0.4);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.hero-floating-card {
    background-color: var(--bg-card);
    padding: 32px 24px;
    border-radius: 24px; /* design-style: soft-organic */
    max-width: 650px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15); /* shadow-style: subtle */
    text-align: center;
}

@media (min-width: 768px) {
    .hero-floating-card {
        padding: 48px;
    }
}

.hero-badge {
    display: inline-block;
    background-color: var(--accent-light);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

@media (min-width: 576px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* INTERNAL HERO */
.internal-hero {
    background-color: var(--accent-light);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

/* SECTION 1: BENEFITS 2x2 */
.benefits-section {
    background-color: var(--bg-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.benefit-card {
    background-color: var(--bg-card);
    padding: 32px;
    border-radius: 16px; /* border-style: rounded */
    box-shadow: 0 2px 12px rgba(0,0,0,0.07); /* shadow-style: subtle */
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.benefit-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 20px;
}

/* SECTION 2: NUMBERED STEPS */
.steps-section {
    background-color: var(--bg-card);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@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 {
    position: relative;
    padding: 24px;
}

.step-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-light);
    line-height: 1;
    margin-bottom: 12px;
}

/* SPLIT INFO SECTION */
.split-info-section {
    background-color: var(--bg-light);
}

.split-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 16px;
    align-items: center;
}

@media (min-width: 768px) {
    .split-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 80px 24px;
    }
}

.split-image-box .split-img {
    width: 100%;
    border-radius: 24px; /* design-style: soft-organic */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.split-text-box h2 {
    margin-bottom: 20px;
}

.split-text-box p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

/* SECTION 3: EXPERT BLOCK */
.expert-section {
    background-color: var(--bg-card);
}

.expert-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-light);
    padding: 32px 24px;
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    text-align: center;
}

@media (min-width: 768px) {
    .expert-card {
        padding: 48px;
    }
}

.expert-quote-icon {
    font-size: 72px;
    color: var(--primary-color);
    font-family: serif;
    line-height: 0.1;
    margin-bottom: 24px;
}

.expert-quote {
    font-size: clamp(16px, 4vw, 20px);
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.expert-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: left;
}

.expert-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
}

.expert-name {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    font-style: normal;
}

.expert-title {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
}

/* SECTION 4: STATS BAR */
.stats-section {
    background-color: var(--secondary-color);
    color: #FFFFFF;
    padding: 48px 16px;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-number {
    display: block;
    font-size: clamp(28px, 6vw, 44px);
    font-weight: 700;
    margin-bottom: 8px;
    color: #FFFFFF;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--accent-light);
}

/* SECTION 5: CHECKLIST BLOCK */
.checklist-section {
    background-color: var(--bg-light);
}

.checklist-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .checklist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: var(--bg-card);
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.check-icon {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 20px;
}

/* FORM SECTION */
.form-section {
    background-color: var(--bg-card);
}

.form-wrapper {
    max-width: 800px;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

/* PROGRAM PAGE SPECIFIC (horizontal-tabs layout) */
.tabs {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

input[name="tabs"] {
    display: none;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.tabs-nav label {
    padding: 10px 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.tabs-nav label:hover {
    background-color: var(--accent-light);
}

.tab-panel {
    display: none;
    background-color: var(--bg-card);
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

#t1:checked ~ #p1,
#t2:checked ~ #p2,
#t3:checked ~ #p3,
#t4:checked ~ #p4 {
    display: block;
}

#t1:checked ~ .tabs-nav label[for="t1"],
#t2:checked ~ .tabs-nav label[for="t2"],
#t3:checked ~ .tabs-nav label[for="t3"],
#t4:checked ~ .tabs-nav label[for="t4"] {
    background-color: var(--primary-color);
    color: #FFFFFF;
    border-color: var(--primary-color);
}

.tab-meta-box {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-muted);
}

.tab-meta-box strong {
    color: var(--secondary-color);
}

/* Program visual layout */
.visual-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .visual-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.rounded-img {
    border-radius: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* FAQ Layout */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.faq-item {
    background-color: var(--bg-card);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.faq-item h4 {
    margin-bottom: 12px;
    color: var(--primary-color);
}

/* MISSION PAGE SPECIFIC (grid-values layout) */
.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .story-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.story-content h2 {
    margin-bottom: 20px;
}

.story-content p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.value-card {
    background-color: var(--bg-card);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.value-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.manifesto-box {
    background-color: var(--accent-light);
    padding: 40px 24px;
    border-radius: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.manifesto-lead {
    font-size: 20px;
    font-style: italic;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 16px 0;
}

/* CONTACT PAGE SPECIFIC */
.contact-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .contact-grid-layout {
        grid-template-columns: 1.5fr 1fr;
    }
}

.info-card {
    background-color: var(--bg-card);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.info-item {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.info-icon {
    font-size: 24px;
    color: var(--primary-color);
}

/* LEGAL PAGES */
.legal-container {
    max-width: 800px;
    background-color: var(--bg-card);
    padding: 40px 24px;
    border-radius: 24px;
    margin-top: 40px;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.legal-date {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.legal-section {
    margin-bottom: 32px;
}

.legal-section h2 {
    font-size: 20px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.legal-section ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.disclaimer-box {
    background-color: var(--accent-light);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

/* THANK YOU PAGE */
.thank-wrapper {
    max-width: 700px;
    background-color: var(--bg-card);
    padding: 48px 24px;
    border-radius: 24px;
    margin-top: 40px;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.thank-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.thank-lead {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.thank-steps-box {
    text-align: left;
    background-color: var(--bg-light);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 32px;
}

.thank-steps-list {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.thank-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

@media (min-width: 576px) {
    .thank-actions {
        flex-direction: row;
    }
}

/* FOOTER SECTION */
.site-footer {
    background-color: #2C1A1A !important; /* hardcoded to prevent translation styling issues */
    color: #FDF6F0 !important; /* hardcoded */
    padding: 60px 10px 20px 10px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

.footer-logo {
    font-size: 28px;
    font-weight: bold;
    color: #D35400 !important; /* Primary Terracotta */
    display: block;
    margin-bottom: 16px;
}

.footer-desc {
    color: #EADCD3 !important;
    font-size: 14px;
}

.footer-col h4 {
    color: #FFFFFF !important;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #EADCD3 !important;
    font-size: 14px;
    transition: color var(--transition-speed);
}

.footer-links a:hover {
    color: #D35400 !important;
}

.footer-contact-link {
    color: #D35400 !important;
    font-weight: 600;
}

.footer-contact-link:hover {
    color: #FFFFFF !important;
}

.footer-col p {
    color: #EADCD3 !important;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(234, 220, 211, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #EADCD3 !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);
    border-top: 2px solid var(--border-color);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
}

#cookie-banner.hidden {
    transform: translateY(110%);
}

#cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 200px;
    font-size: 14px;
}

.cookie-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn-accept {
    background-color: var(--primary-color);
    color: #FFFFFF;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
}

.cookie-btn-decline {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
}

@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;
    }
}