/* 
   Palette Name: charcoal-teal
   Primary Color: #1C2A35 (used for dark base, buttons, headings)
   Secondary Color: #37474F (used for secondary sections, cards, footer)
   Accent Color: #00695C (used for badges, icons, interactive highlights)
   Tint Color: #F5F8F8 (used for soft light texts and subtle highlights)
   Main Dark Background: #12191F
*/

:root {
    --color-primary: #1C2A35;
    --color-secondary: #37474F;
    --color-accent: #00695C;
    --bg-tint: #F5F8F8;
    --bg-dark: #12191F;
    --text-light: #F5F8F8;
    --text-muted: #B0BEC5;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lora', Georgia, serif;
}

/* Base Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.7;
    font-size: clamp(15px, 2vw, 18px);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: clamp(32px, 6vw, 64px);
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(26px, 4.5vw, 42px);
    margin-bottom: 16px;
}

h3 {
    font-size: clamp(20px, 3vw, 28px);
    margin-bottom: 12px;
}

p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-light);
}

/* Layout Utilities (No Tailwind!) */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons (Rounded Style, Dramatic Shadow) */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    border-radius: 8px; /* Rounded border-style */
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--text-light);
    box-shadow: 0 12px 24px rgba(0, 105, 92, 0.3);
}

.btn-primary:hover {
    background-color: #004d40;
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0, 105, 92, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-3px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Vintage Badge */
.vintage-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(0, 105, 92, 0.15);
    border: 1px solid var(--color-accent);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 14px;
    border-radius: 30px;
    margin-bottom: 20px;
}

/* Section Headers */
.section-header-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.section-header-left {
    text-align: left;
    max-width: 800px;
    margin-bottom: 60px;
}

.section-subtitle {
    display: block;
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-size: 18px;
    font-style: italic;
    margin-bottom: 8px;
}

/* Header Layout */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--color-primary);
    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: 28px;
    font-weight: bold;
    color: var(--text-light);
    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;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: 0.3s;
}

.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-muted);
    font-size: 16px;
    font-weight: 500;
}

.desktop-nav .nav-list a:hover {
    color: var(--text-light);
}

/* 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-primary);
}

.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 a {
    color: var(--text-light);
    font-size: 18px;
    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-color: var(--color-primary);
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text-content {
    text-align: left;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-image-container {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid var(--color-secondary);
    box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.hero-circle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 768px) {
    .hero-section {
        padding: 80px 24px;
    }
    .hero-container {
        grid-template-columns: 1.2fr 0.8fr;
    }
    .circle-image-container {
        width: 380px;
        height: 380px;
    }
}

/* SECTION 1: BENEFITS HORIZONTAL SCROLL */
.benefits-scroll-section {
    padding: 60px 16px;
    background-color: var(--bg-dark);
}

.horizontal-scroll-container {
    display: flex;
    gap: 24px;
    padding: 20px 10px 40px 10px;
    scrollbar-color: var(--color-accent) var(--color-secondary);
    flex-wrap: wrap;
    justify-content: center;
}

.horizontal-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--color-accent);
    border-radius: 4px;
}

.benefit-scroll-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background-color: var(--color-secondary);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-scroll-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 32px 80px rgba(0,0,0,0.35);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .benefits-scroll-section {
        padding: 100px 24px;
    }
    .benefit-scroll-card {
        flex: 0 0 340px;
    }
}

/* SECTION 2: NUMBERED STEPS */
.numbered-steps-section {
    padding: 60px 16px;
    background-color: var(--color-primary);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.step-item {
    background-color: var(--color-secondary);
    padding: 40px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
    border-top: 4px solid var(--color-accent);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 48px;
    color: var(--color-accent);
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .numbered-steps-section {
        padding: 100px 24px;
    }
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* SECTION 3: COMPARISON TABLE */
.comparison-section {
    padding: 60px 16px;
    background-color: var(--bg-dark);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    background-color: var(--color-secondary);
    text-align: left;
}

.comparison-table th, .comparison-table td {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.comparison-table th {
    background-color: var(--color-primary);
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 18px;
}

.comparison-table td.negative {
    color: #ef9a9a;
}

.comparison-table td.positive {
    color: #80cbc4;
}

@media (min-width: 768px) {
    .comparison-section {
        padding: 100px 24px;
    }
}

/* SECTION 4: STATS BAR */
.stats-bar-section {
    padding: 40px 16px;
    background-color: var(--color-accent);
    box-shadow: inset 0 10px 30px rgba(0,0,0,0.2);
}

.stats-bar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
}

.stat-card .stat-value {
    font-family: var(--font-heading);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: bold;
    display: block;
    color: var(--text-light);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-card .stat-label {
    font-size: 15px;
    color: rgba(245, 248, 248, 0.8);
}

@media (min-width: 768px) {
    .stats-bar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* SECTION 5: EXPERT BLOCK */
.expert-block-section {
    padding: 60px 16px;
    background-color: var(--color-primary);
}

.expert-card {
    background-color: var(--color-secondary);
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

.expert-image-side {
    height: 300px;
}

.expert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-text-side {
    padding: 40px;
}

.expert-quote {
    font-family: var(--font-heading);
    font-size: clamp(20px, 3.5vw, 26px);
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.4;
}

.expert-author {
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 4px;
}

.expert-title {
    font-size: 14px;
    color: var(--color-accent);
    margin-bottom: 0;
}

@media (min-width: 1024px) {
    .expert-block-section {
        padding: 100px 24px;
    }
    .expert-card {
        grid-template-columns: 1fr 1.2fr;
    }
    .expert-image-side {
        height: 100%;
    }
}

/* PAGE HERO (For Inner Pages) */
.page-hero {
    padding: 80px 16px;
    background-color: var(--color-primary);
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.page-hero p {
    max-width: 700px;
    margin: 0 auto;
}

/* PROGRAM.HTML: METHODOLOGY INTRO */
.methodology-intro {
    padding: 60px 16px;
    background-color: var(--bg-dark);
}

.methodology-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.methodology-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
    .methodology-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

/* PROGRAM.HTML: NUMBERED SECTIONS */
.numbered-sections {
    padding: 60px 16px;
    background-color: var(--color-primary);
}

.numbered-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    background-color: var(--color-secondary);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}

.block-number {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: bold;
    color: var(--color-accent);
    line-height: 1;
}

@media (min-width: 768px) {
    .numbered-block {
        grid-template-columns: 0.2fr 1.8fr;
        gap: 40px;
    }
}

/* PROGRAM.HTML: FAQ SECTION */
.faq-section {
    padding: 60px 16px;
    background-color: var(--bg-dark);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.faq-card {
    background-color: var(--color-secondary);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}

@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MISSION.HTML: STORY GRID */
.mission-statement-section {
    padding: 60px 16px;
    background-color: var(--bg-dark);
}

.statement-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.statement-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
    .statement-grid {
        grid-template-columns: 0.9fr 1.1fr;
    }
}

/* MISSION.HTML: VALUES GRID */
.values-section {
    padding: 60px 16px;
    background-color: var(--color-primary);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.value-card {
    background-color: var(--color-secondary);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-icon {
    font-size: 36px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MISSION.HTML: MANIFESTO BOX */
.manifesto-section {
    padding: 60px 16px;
    background-color: var(--bg-dark);
}

.manifesto-box {
    background-color: var(--color-secondary);
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
    border-left: 6px solid var(--color-accent);
}

/* CONTACT.HTML: ASYMMETRIC GRID */
.contact-form-section {
    padding: 60px 16px;
    background-color: var(--bg-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.contact-form-wrapper {
    background-color: var(--color-secondary);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

.styled-form .form-group {
    margin-bottom: 24px;
}

.styled-form label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--text-light);
}

.styled-form input, .styled-form textarea {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background-color: var(--color-primary);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.styled-form input:focus, .styled-form textarea:focus {
    border-color: var(--color-accent);
    outline: none;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    background-color: var(--color-primary);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.22);
}

.info-intro {
    font-size: 15px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.info-icon {
    font-size: 24px;
}

.contact-faq-box {
    background-color: var(--color-secondary);
    padding: 30px;
    border-radius: 12px;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

/* LEGAL PAGES (COOKIES & TERMS) */
.legal-page-content {
    padding: 80px 16px;
    background-color: var(--bg-dark);
}

.legal-page-content h1 {
    text-align: center;
    margin-bottom: 10px;
}

.last-updated {
    text-align: center;
    font-style: italic;
    margin-bottom: 50px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
}

.legal-section ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.legal-section li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.disclaimer-box {
    background-color: rgba(0, 105, 92, 0.1);
    border-left: 4px solid var(--color-accent);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 50px;
}

.disclaimer-box h3 {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* THANK YOU PAGE */
.thank-you-page {
    padding: 100px 16px;
    background-color: var(--bg-dark);
    text-align: center;
}

.thank-you-card {
    background-color: var(--color-secondary);
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

.thank-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 20px;
}

.thank-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
}

.thank-steps {
    text-align: left;
    background-color: var(--color-primary);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.thank-steps h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.thank-step-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.step-badge {
    background-color: var(--color-accent);
    color: var(--text-light);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: bold;
}

.thank-btns-wrapper {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* CALL TO ACTION BOX (GENERAL) */
.cta-section {
    padding: 80px 16px;
    background-color: var(--color-primary);
}

.cta-box {
    background-color: var(--color-accent);
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

.cta-box h2 {
    margin-bottom: 15px;
}

.cta-box p {
    color: rgba(245, 248, 248, 0.9);
    margin-bottom: 30px;
}

/* FOOTER SECTION */
.site-footer {
    background-color: var(--color-secondary) !important;
    padding: 80px 16px 30px 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.logo-footer {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: bold;
    color: var(--text-light) !important;
    display: inline-block;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 15px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-light) !important;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted) !important;
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--text-light) !important;
}

.footer-col p {
    font-size: 15px;
    margin-bottom: 12px;
}

.footer-phone, .contact-link {
    color: var(--text-light) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(245, 248, 248, 0.5) !important;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.2fr 0.8fr 0.8fr 1.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);
    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;
    color: var(--text-light);
}

#cookie-banner p a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn-accept {
    background-color: var(--color-accent);
    color: var(--text-light);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.cookie-btn-decline {
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid var(--color-secondary);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

@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;
    }
}