/* 
Color Palette: crimson-steel
--color-primary: #7B1034 (brand buttons, headers, accents)
--color-secondary: #9B1B3E (footer, hero overlays, dark panels)
--color-accent: #546E7A (hover, icons, subtler lines)
--bg-tint: #FEF6F8 (light sections)
Design Style: soft-organic
Border Style: rounded
Shadow Style: subtle
Color Mode: dark (#161113 as dark body background, #F5F0F2 as light text)
*/

:root {
    --color-primary: #7B1034;
    --color-secondary: #9B1B3E;
    --color-accent: #546E7A;
    --bg-tint: #FEF6F8;
    --bg-dark: #161113;
    --bg-dark-card: #22191D;
    --text-light: #F5F0F2;
    --text-muted: #B3A4A9;
    --border-radius-card: 24px;
    --border-radius-button: 8px;
    --border-radius-pill: 50px;
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & layout */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1 {
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.2;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.3;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 16px;
}

h3 {
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 600;
    margin-bottom: 12px;
}

p {
    font-size: clamp(15px, 2vw, 17px);
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Container */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 16px;
}

@media (min-width: 768px) {
    .section-container {
        padding: 80px 24px;
    }
}

/* 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-size: 26px;
    font-weight: 800;
    z-index: 100;
    color: var(--text-light);
    letter-spacing: -0.5px;
}

.logo::after {
    content: '.';
    color: var(--color-primary);
}

/* 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;
    background-color: var(--text-light);
    transition: 0.3s;
    border-radius: 2px;
}

.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 {
    font-weight: 500;
    font-size: 16px;
}

.desktop-nav .nav-list a:hover {
    color: var(--color-primary);
}

/* 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-card);
}

.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.05);
}

.mobile-nav a {
    font-size: 18px;
    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);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius-button);
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
}

.btn-secondary-outline {
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: var(--text-light);
}

.btn-secondary-outline:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Hero Asymmetric Layout */
.hero-asymmetric {
    padding: 40px 16px;
    background: radial-gradient(circle at 10% 20%, rgba(155, 27, 62, 0.15) 0%, transparent 50%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    max-width: 520px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(123, 16, 52, 0.2);
    border: 1px solid var(--color-primary);
    color: var(--text-light);
    border-radius: var(--border-radius-pill);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
}

.hero-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: var(--border-radius-card);
}

@media (min-width: 992px) {
    .hero-container {
        grid-template-columns: 1.1fr 0.9fr;
    }
    .hero-img {
        height: 500px;
    }
}

/* Section headers */
.section-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

/* Benefits 3 col */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit-card {
    background-color: var(--bg-dark-card);
    padding: 32px;
    border-radius: var(--border-radius-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.benefit-icon {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 16px;
}

/* Expert block */
.expert-section {
    background-color: var(--bg-dark-card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.expert-card {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .expert-card {
        flex-direction: row;
        gap: 40px;
    }
}

.expert-quote-icon {
    font-size: 80px;
    line-height: 1;
    font-family: serif;
    color: var(--color-primary);
    height: 50px;
}

.expert-quote {
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--text-light);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 16px;
}

.expert-name {
    display: block;
    font-weight: 700;
    color: var(--text-light);
}

.expert-title {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
}

/* Comparison table */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--border-radius-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background-color: var(--bg-dark-card);
}

.comparison-table th, .comparison-table td {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-table th {
    background-color: rgba(123, 16, 52, 0.1);
    color: var(--text-light);
    font-weight: 700;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* Two col section */
.grid-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 768px) {
    .grid-two-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

.rounded-img {
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-subtle);
    width: 100%;
    object-fit: cover;
}

.custom-list {
    list-style: none;
    margin-bottom: 24px;
}

.custom-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.custom-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* 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-card);
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow-subtle);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 24px;
    color: var(--text-light);
    font-weight: 700;
}

.placeholder-item {
    background-color: var(--bg-dark-card);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
}

/* Page Intro Header */
.page-intro-section {
    padding: 60px 16px 20px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(155, 27, 62, 0.1), transparent);
}

.page-intro-section p {
    max-width: 700px;
    margin: 0 auto;
}

.intro-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--color-primary);
    border-radius: var(--border-radius-pill);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
}

/* Numbered row (program page) */
.numbered-program-section {
    padding: 40px 16px;
}

.numbered-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
    background-color: var(--bg-dark-card);
    padding: 32px;
    border-radius: var(--border-radius-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
    .numbered-row {
        flex-direction: row;
        gap: 40px;
        align-items: flex-start;
    }
}

.num-badge {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

/* Stats section */
.grid-four-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (min-width: 992px) {
    .grid-four-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background-color: var(--bg-dark-card);
    padding: 24px;
    border-radius: var(--border-radius-card);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--color-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-dark-card);
    border-radius: var(--border-radius-card);
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item summary {
    padding: 20px 24px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.faq-item p {
    padding: 0 24px 24px;
    margin: 0;
}

/* CTA Box */
.cta-section {
    margin-bottom: 30px;
}

.cta-box {
    background-color: var(--color-secondary);
    border-radius: var(--border-radius-card);
    padding: 48px 32px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-box h2 {
    color: var(--text-light);
}

.cta-box p {
    color: var(--text-light);
    opacity: 0.8;
}

/* Mission Split Section */
.mission-split-section {
    padding: 40px 16px;
}

.section-tag {
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    display: block;
    margin-bottom: 12px;
}

.relative-wrapper {
    position: relative;
}

.badge-overlay {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background-color: var(--color-primary);
    padding: 10px 20px;
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    box-shadow: var(--shadow-subtle);
}

.full-height-img {
    height: 100%;
    object-fit: cover;
}

/* Manifesto section */
.manifesto-section {
    background-color: var(--bg-dark-card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.text-center-manifesto {
    text-align: center;
}

.manifesto-box {
    max-width: 800px;
    margin: 0 auto;
}

.manifesto-lead {
    font-size: 22px;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.5;
}

/* Contact Grid */
.grid-contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .grid-contact {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.contact-form-wrapper, .contact-details-wrapper {
    background-color: var(--bg-dark-card);
    padding: 32px;
    border-radius: var(--border-radius-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-form .form-group {
    margin-bottom: 20px;
}

.custom-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-light);
}

.custom-form input, .custom-form textarea {
    width: 100%;
    padding: 14px;
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: var(--border-radius-button);
    outline: none;
}

.custom-form input:focus, .custom-form textarea:focus {
    border-color: var(--color-primary);
}

.details-card {
    margin-bottom: 32px;
}

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.info-icon {
    font-size: 24px;
}

.hours-list {
    list-style: none;
    padding: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Legal pages */
.legal-page-content {
    padding: 40px 16px;
}

.legal-box {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--bg-dark-card);
    padding: 48px 32px;
    border-radius: var(--border-radius-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.last-update {
    font-style: italic;
    font-size: 14px;
    margin-bottom: 32px;
}

.legal-section-block {
    margin-bottom: 32px;
}

.critical-disclaimer {
    border-left: 4px solid var(--color-primary);
    padding-left: 16px;
}

/* Thank page styling */
.thank-page-main {
    padding: 80px 16px;
}

.thank-box {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-dark-card);
    padding: 48px 32px;
    border-radius: var(--border-radius-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.thank-icon {
    font-size: 64px;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.thank-lead {
    font-size: 18px;
}

.next-steps-card {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.thank-links-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.thank-nav-link {
    font-weight: 600;
    color: var(--color-primary);
}

.thank-nav-link:hover {
    color: var(--color-secondary);
}

/* Footer layout */
.site-footer {
    background-color: var(--color-secondary) !important; /* Force to prevent browser translation breaks */
    color: var(--text-light) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 16px 20px;
}

.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-brand .logo {
    display: block;
    margin-bottom: 16px;
}

.footer-links h3, .footer-legal h3, .footer-contact h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
}

.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: var(--text-light);
    opacity: 0.8;
}

.footer-links a:hover, .footer-legal a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-contact p {
    color: var(--text-light);
    opacity: 0.8;
    margin-bottom: 10px;
}

.footer-contact a {
    color: var(--text-light);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-light);
    opacity: 0.6;
}

/* 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;
    background-color: var(--bg-dark-card);
    border-top: 2px solid var(--color-primary);
    transform: translateY(0);
    transition: transform 0.4s ease;
}

#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-primary);
    text-decoration: underline;
}

.cookie-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn-accept {
    background-color: var(--color-primary);
    color: var(--text-light);
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius-button);
    cursor: pointer;
    font-weight: 600;
}

.cookie-btn-decline {
    background-color: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: var(--border-radius-button);
    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;
    }
}