/* #4A1C10, #6B2A18, #D4900A, #FDF0EC */
/* Design Style: minimalist | Border Style: rounded | Shadow Style: flat | Color Mode: mixed */

:root {
    --color-primary: #4A1C10;
    --color-secondary: #6B2A18;
    --color-accent: #D4900A;
    --bg-tint: #FDF0EC;
    --bg-white: #FFFFFF;
    --color-dark: #1E1E1E;
    --color-light-text: #FDF0EC;
    --color-muted-dark: #555555;
    --color-muted-light: #CCCCCC;
    --border-color: #E2D1CD;
    
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Base Styles & Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Layout Containers */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 16px;
}

@media (min-width: 768px) {
    .section-container {
        padding: 80px 24px;
    }
}

/* Mixed Color Mode Core Rules */
.dark-section {
    background-color: var(--color-secondary);
    color: var(--color-light-text);
}

.dark-section .section-title,
.dark-section h1,
.dark-section h2,
.dark-section h3 {
    color: var(--bg-white);
}

.dark-section .section-subtitle {
    color: var(--color-muted-light);
}

.light-section {
    background-color: var(--bg-tint);
    color: var(--color-dark);
}

.light-section .section-title {
    color: var(--color-primary);
}

.light-section .section-subtitle {
    color: var(--color-muted-dark);
}

/* Typography elements */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

h1 {
    font-size: clamp(32px, 6vw, 56px);
}

h2 {
    font-size: clamp(24px, 4vw, 36px);
}

h3 {
    font-size: clamp(20px, 3vw, 24px);
}

p {
    margin-bottom: 16px;
    font-size: clamp(15px, 2.5vw, 17px);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary);
}

/* Buttons (rounded) */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-height: 44px;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary);
    color: var(--bg-white);
}

/* Header Layout */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--color-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.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(--bg-white);
}

/* 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(--bg-white);
}

.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(--color-light-text);
    font-weight: 500;
}

.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(--color-secondary);
}

.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(--color-light-text);
    display: block;
    font-size: 18px;
}

/* Мобільна адаптація хедера */
@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-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 64px;
    }
}

.hero-text h1 {
    margin-bottom: 24px;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 32px;
}

.circle-image-container {
    width: 280px;
    height: 280px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 50%;
    border: 4px solid var(--color-accent);
}

@media (min-width: 768px) {
    .circle-image-container {
        width: 380px;
        height: 380px;
    }
}

.circle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Title & Subtitle */
.section-title {
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px auto;
}

/* Benefits Section: 5asymm layout (rounded, flat shadow) */
.benefits-asymm-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .benefits-asymm-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .card-large {
        grid-column: span 3;
    }
    
    .card-small {
        grid-column: span 2;
    }
}

.benefit-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    position: relative;
    box-shadow: none; /* Flat style */
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
}

.card-num {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.benefit-card h3 {
    color: var(--color-primary);
    margin-bottom: 12px;
}

/* Expert Block (rounded, minimalist) */
.expert-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

@media (min-width: 768px) {
    .expert-wrapper {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 48px;
    }
}

.expert-photo-placeholder {
    width: 100%;
    max-width: 320px;
    height: 320px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--color-accent);
}

.expert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-content {
    padding: 16px;
}

.expert-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--color-accent);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 24px;
}

.expert-quote {
    font-size: clamp(18px, 3vw, 24px);
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 24px;
}

.expert-author {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 4px;
}

.expert-role {
    color: var(--color-muted-light);
    font-size: 14px;
}

/* Testimonials Section (Vertical list, minimalist) */
.testimonials-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

@media (min-width: 600px) {
    .testimonial-item {
        flex-direction: row;
        align-items: flex-start;
        padding: 32px;
    }
}

.testimonial-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-body {
    flex-grow: 1;
}

.testimonial-stars {
    color: var(--color-accent);
    margin-bottom: 12px;
    font-size: 18px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 16px;
}

.testimonial-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--color-primary);
}

/* Gallery Grid Section */
.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;
    height: 250px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    color: var(--bg-white);
}

.css-placeholder-item {
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.placeholder-content h4 {
    color: var(--color-accent);
    margin-bottom: 12px;
}

.placeholder-content p {
    font-size: 14px;
    margin-bottom: 0;
    color: var(--color-muted-light);
}

/* Accordion FAQ Section */
.accordion-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-item summary {
    padding: 20px 24px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    color: var(--color-primary);
    list-style: none; /* Hide default arrow */
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none; /* Hide default arrow in Safari */
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: bold;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-answer {
    padding: 0 24px 24px 24px;
    border-top: 1px solid var(--bg-tint);
    color: var(--color-muted-dark);
}

/* Program Page: Numbered Sections (practical angle) */
.program-hero {
    text-align: center;
    padding: 60px 16px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--color-accent);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.numbered-program-section {
    padding: 48px 16px;
}

.numbered-module {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .numbered-module {
        grid-template-columns: 120px 1fr;
        gap: 48px;
    }
}

.numbered-module:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.module-number {
    font-size: 64px;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.module-content h2 {
    color: var(--color-primary);
    margin-bottom: 16px;
}

.module-list {
    list-style: none;
    margin-top: 16px;
}

.module-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
}

.module-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* Program Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 64px;
    }
}

.stats-counters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 600px) {
    .stats-counters {
        grid-template-columns: repeat(3, 1fr);
    }
}

.counter-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
}

.counter-num {
    display: block;
    font-size: 40px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.counter-label {
    font-size: 14px;
    color: var(--color-muted-light);
}

/* Mission Page: vertical-storytelling layout */
.mission-hero {
    text-align: center;
    padding: 60px 16px;
}

.story-block {
    padding: 60px 16px;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

@media (min-width: 768px) {
    .story-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 64px;
    }
    
    .reverse-grid .story-image {
        order: 2;
    }
    
    .reverse-grid .story-text {
        order: 1;
    }
}

.story-image {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.story-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.values-list {
    list-style: none;
    margin-top: 24px;
}

.values-list li {
    margin-bottom: 16px;
}

.values-list li strong {
    color: var(--color-accent);
    display: block;
    margin-bottom: 4px;
}

.text-center-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Contact Page Layout: Form 60% Left, Info 40% Right */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 64px;
    }
}

/* Form Styles (rounded) */
.custom-form {
    max-width: 800px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-white);
    font-family: var(--font-main);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.btn-submit {
    width: 100%;
}

@media (min-width: 600px) {
    .btn-submit {
        width: auto;
    }
}

.info-card-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.info-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.info-card h3 {
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.info-card p {
    margin-bottom: 0;
}

/* Legal Pages (Cookie & Terms) */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-container h1 {
    color: var(--color-primary);
    margin-bottom: 8px;
}

.last-update {
    color: var(--color-muted-dark);
    font-size: 14px;
    margin-bottom: 32px;
}

.legal-container h2 {
    color: var(--color-primary);
    margin-top: 32px;
    margin-bottom: 16px;
}

.legal-container ul {
    margin-bottom: 24px;
    padding-left: 24px;
}

.legal-container li {
    margin-bottom: 8px;
}

.highlight-box {
    background-color: var(--bg-white);
    border-left: 4px solid var(--color-accent);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 24px;
}

/* Thank You Page */
.thank-section {
    text-align: center;
    padding: 80px 16px;
}

.thank-icon {
    display: inline-flex;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: var(--color-primary);
    font-size: 40px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.thank-next-steps {
    max-width: 600px;
    margin: 48px auto;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
}

.thank-next-steps h3 {
    color: var(--color-accent);
    margin-bottom: 16px;
}

.thank-links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}

@media (min-width: 600px) {
    .thank-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.thank-link-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    transition: border-color 0.3s ease;
}

.thank-link-card:hover {
    border-color: var(--color-accent);
}

.thank-link-card h4 {
    color: var(--bg-white);
    margin-bottom: 8px;
}

.thank-link-card p {
    font-size: 14px;
    margin-bottom: 0;
    color: var(--color-muted-light);
}

/* Footer Section */
.site-footer {
    background-color: var(--color-secondary) !important;
    color: var(--color-light-text) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 16px 24px 16px;
}

.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: 1.5fr 1fr 1fr 1.5fr;
    }
}

.footer-logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--bg-white) !important;
    display: block;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--color-muted-light) !important;
    font-size: 15px;
}

.site-footer h4 {
    color: var(--bg-white) !important;
    font-size: 18px;
    margin-bottom: 24px;
}

.site-footer ul {
    list-style: none;
}

.site-footer li {
    margin-bottom: 12px;
}

.site-footer a {
    color: var(--color-light-text) !important;
    font-size: 15px;
}

.site-footer a:hover {
    color: var(--color-accent) !important;
}

.footer-mail-link {
    color: var(--color-accent) !important;
    font-weight: 600;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--color-muted-light) !important;
    font-size: 14px;
    margin-bottom: 0;
}

/* Cookie Banner (fixed bottom) */
#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;
    background-color: var(--color-primary);
    color: var(--bg-white);
    transform: translateY(0);
    transition: transform 0.4s ease;
    border-top: 2px solid var(--color-accent);
}

#cookie-banner.hidden {
    transform: translateY(110%);
}

#cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 200px;
    font-size: 14px;
}

#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 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    border: none;
    min-height: 40px;
}

.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 rgba(255, 255, 255, 0.3);
}

@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;
    }
}