/* #811B2D, #9E2236, #C9A227, #FFF5F7 */
:root {
    --color-primary: #811B2D;
    --color-secondary: #9E2236;
    --color-accent: #C9A227;
    --bg-tint: #FFF5F7;
    --text-dark: #2A090F;
    --text-light: #FFF5F7;
    --border-color: rgba(129, 27, 45, 0.15);
    
    /* Dynamic Tech Geometric skew variables */
    --skew-angle: -3deg;
}

/* Global Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-tint);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

/* Container limits */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

@media (min-width: 768px) {
    .section-container {
        padding: 40px 24px;
    }
}

/* Header Layout */
.site-header {
    position: relative;
    width: 100%;
    padding: 15px 10px;
    background-color: var(--bg-tint);
    border-bottom: 1px solid var(--border-color);
}

.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(--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(--color-primary);
    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 {
    font-weight: 600;
    color: var(--color-primary);
}

.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 a {
    color: var(--text-light);
    font-weight: bold;
    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);
    }
}

/* BUTTONS (pill style, flat shadow) */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 600;
    text-align: center;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: none; /* Flat style */
    font-size: 16px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    color: var(--text-dark);
}

.btn-secondary-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary-outline:hover {
    background-color: var(--color-primary);
    color: var(--text-light);
}

.btn-block {
    display: block;
    width: 100%;
}

/* HERO SECTION (vertical-stack) */
.hero-stack-section {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-tint);
    border-bottom: 2px solid var(--border-color);
}

.hero-image-wrapper {
    width: 100%;
    height: 55vh;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content-block {
    padding: 40px 16px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

@media (min-width: 768px) {
    .hero-content-block {
        padding: 60px 24px;
    }
}

.hero-badge {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--text-light);
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.1;
    color: var(--color-secondary);
    margin-bottom: 20px;
}

.hero-text {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-dark);
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

@media (min-width: 480px) {
    .hero-actions {
        flex-direction: row;
    }
}

/* SECTION TITLES & TAGS */
.section-header-centered {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.section-tag {
    display: inline-block;
    background-color: rgba(201, 162, 39, 0.15);
    color: var(--color-primary);
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 12px;
}

.section-header-centered h2 {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--color-secondary);
    margin-bottom: 12px;
}

/* TIMELINE (benefits-timeline) */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px;
    border-left: 3px solid var(--color-primary);
}

.timeline-step {
    position: relative;
    margin-bottom: 40px;
}

.timeline-badge {
    position: absolute;
    left: -40px;
    top: 0;
    width: 36px;
    height: 36px;
    background-color: var(--color-accent);
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.timeline-content {
    background-color: rgba(129, 27, 45, 0.03);
    padding: 24px;
    border-radius: 28px;
    border: 1px solid var(--border-color);
}

.timeline-content h3 {
    color: var(--color-secondary);
    margin-bottom: 10px;
}

/* EXPERT BLOCK */
.expert-quote-section {
    background-color: var(--color-secondary);
    color: var(--text-light);
    padding: 60px 16px;
    position: relative;
    overflow: hidden;
}

/* Dynamic Tech geometric ornament */
.expert-quote-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(201,162,39,0.1) 0%, transparent 100%);
    clip-path: polygon(0 0, 100% 15%, 100% 100%, 0 85%);
    pointer-events: none;
}

.expert-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.expert-avatar-placeholder {
    width: 80px;
    height: 80px;
    background-color: var(--color-accent);
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-inner {
    color: var(--text-dark);
    font-weight: bold;
    font-size: 24px;
}

.expert-text {
    font-size: clamp(18px, 3vw, 24px);
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.4;
}

.expert-author {
    display: block;
    font-weight: bold;
    font-size: 18px;
    color: var(--color-accent);
}

.expert-title {
    font-size: 14px;
    opacity: 0.8;
}

/* NUMBERED STEPS */
.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-card {
    background-color: var(--bg-tint);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-num {
    font-size: 48px;
    font-weight: 900;
    color: rgba(129, 27, 45, 0.1);
    position: absolute;
    right: 20px;
    top: 10px;
}

.step-card h3 {
    margin-bottom: 12px;
    color: var(--color-primary);
}

/* TWO COL SHOWCASE */
.split-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .split-layout-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.showcase-image-wrapper {
    position: relative;
}

.showcase-image {
    width: 100%;
    border-radius: 36px;
    object-fit: cover;
}

.showcase-content-wrapper h2 {
    font-size: clamp(28px, 4vw, 38px);
    color: var(--color-secondary);
    margin-bottom: 20px;
}

.showcase-list {
    list-style: none;
    margin: 24px 0;
}

.showcase-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 24px;
}

.showcase-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* GALLERY GRID */
.gallery-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .gallery-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 36px;
    height: 300px;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.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: 20px;
    color: var(--text-light);
}

.gallery-item-placeholder {
    background-color: var(--color-primary);
    color: var(--text-light);
    border-radius: 36px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.placeholder-content h3 {
    color: var(--color-accent);
    margin-bottom: 8px;
}

/* FORMS */
.form-narrow-container {
    max-width: 800px;
    margin: 0 auto;
}

.educational-form {
    background-color: var(--bg-tint);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 36px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 50px; /* Pill style */
    background-color: #FFF;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group textarea {
    border-radius: 28px;
    height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* PROGRAM PAGE - TABS (No JS) */
.program-intro-section {
    padding-top: 60px;
}

.text-center-block {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro-lead {
    font-size: 18px;
    opacity: 0.9;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 40px auto;
}

.tabs-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .tabs-nav {
        flex-direction: row;
        justify-content: center;
    }
}

.tabs-nav label {
    padding: 14px 24px;
    background-color: rgba(129, 27, 45, 0.05);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.tabs input[type="radio"] {
    display: none;
}

.tab-panel {
    display: none;
    width: 100%;
    background-color: #FFF;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 36px;
}

.tab-panel h2 {
    color: var(--color-secondary);
    margin-bottom: 16px;
}

/* Selectors for tabs logic */
#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(--color-primary);
    color: var(--text-light);
}

#t1:checked ~ #p1 { display: block; }
#t2:checked ~ #p2 { display: block; }
#t3:checked ~ #p3 { display: block; }
#t4:checked ~ #p4 { display: block; }

/* STATS */
.grid-3-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .grid-3-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--color-secondary);
    color: var(--text-light);
    border-radius: 36px;
}

.stat-value {
    font-size: 48px;
    font-weight: 900;
    color: var(--color-accent);
    margin-bottom: 10px;
}

/* FAQ ACCORDION */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #FFF;
    border: 1px solid var(--border-color);
    border-radius: 28px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-item summary {
    padding: 20px;
    font-weight: bold;
    cursor: pointer;
    outline: none;
    user-select: none;
}

.faq-item p {
    padding: 0 20px 20px 20px;
    opacity: 0.9;
}

/* CTA BANNER */
.cta-banner-section {
    background-color: var(--color-primary);
    color: var(--text-light);
    padding: 60px 20px;
    border-radius: 36px;
    margin: 40px auto;
    max-width: 1200px;
}

.cta-banner-section h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.cta-banner-section p {
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* MISSION PAGE (Story & Timeline) */
.values-list {
    margin-top: 30px;
}

.value-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.value-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.manifesto-section {
    background-color: rgba(129, 27, 45, 0.03);
    padding: 60px 20px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.manifesto-text {
    font-size: clamp(20px, 3vw, 28px);
    font-style: italic;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.manifesto-signature {
    font-weight: bold;
    font-size: 18px;
}

.evolution-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .evolution-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.evolution-card {
    background-color: #FFF;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 36px;
}

.evolution-year {
    display: inline-block;
    padding: 4px 14px;
    background-color: var(--color-accent);
    color: var(--text-dark);
    border-radius: 999px;
    font-weight: bold;
    margin-bottom: 16px;
}

/* CONTACT PAGE Layout */
.contact-hero-section {
    padding-top: 60px;
}

.contact-split-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .contact-split-grid {
        grid-template-columns: 3fr 2fr;
    }
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background-color: #FFF;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 36px;
}

.highlight-card {
    background-color: var(--color-secondary);
    color: var(--text-light);
}

.info-list {
    list-style: none;
    margin-top: 20px;
}

.info-list li {
    margin-bottom: 16px;
}

/* LEGAL PAGES */
.legal-text-section {
    padding: 60px 16px;
}

.text-content-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.text-content-narrow h1 {
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.text-content-narrow h2 {
    color: var(--color-primary);
    margin-top: 30px;
    margin-bottom: 16px;
}

.last-updated {
    font-style: italic;
    opacity: 0.7;
    margin-bottom: 30px;
}

/* THANK YOU PAGE */
.thank-you-section {
    padding: 80px 16px;
}

.thank-badge {
    width: 80px;
    height: 80px;
    background-color: var(--color-accent);
    color: var(--text-dark);
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 30px auto;
}

.thank-lead {
    font-size: 20px;
    margin-bottom: 40px;
}

.next-steps-card {
    background-color: #FFF;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 36px;
    max-width: 600px;
    margin: 0 auto 40px auto;
    text-align: left;
}

.steps-list {
    list-style: none;
    margin-top: 20px;
}

.steps-list li {
    margin-bottom: 12px;
}

.thank-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* FOOTER (Hardcoded colors for protection) */
.site-footer {
    padding: 60px 16px 20px 16px;
    font-size: 15px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 2fr repeat(3, 1fr);
    }
}

.footer-brand p {
    margin-top: 16px;
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
    margin-top: 16px;
}

.footer-links li,
.footer-legal li {
    margin-bottom: 10px;
}

.footer-contact p {
    margin-top: 10px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding-top: 20px;
    text-align: center;
}

/* 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-secondary);
    color: var(--text-light);
}

#cookie-banner.hidden {
    transform: translateY(110%);
}

#cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

#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 {
    background-color: var(--color-accent);
    color: var(--text-dark);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
}

.cookie-btn-decline {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
    padding: 10px 20px;
    border-radius: 50px;
    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;
    }
}