/* Кольорова палітра */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&display=swap');

:root {
    --primary: #004E89;
    --primary-light: #1a5f99;
    --accent: #FF6B35;
    --text-dark: #1A1A2E;
    --text-body: #4A4A68;
    --text-light: #6B6B85;
    --bg-main: #FFFFFF;
    --bg-section: #F8F9FC;
    --bg-card: #FFFFFF;
    --border: #E0E4EB;
    --border-light: #EDF0F5;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ========== HERO ========== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Базовий градієнт поверх всіх шарів */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(190deg, rgba(0, 78, 137, 0.4) 0%, rgba(0, 40, 69, 0.2) 100%);
    z-index: 6;
    pointer-events: none;
}

/* Контейнер для шарів */
.hero-layers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

/* Базові стилі для шарів */
.hero-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Z-index для кожного шару */
.hero-layer-1 {
    z-index: 1;
}

.hero-layer-2 {
    z-index: 2;
    background-size: auto 450px;
    background-position: 0px 50px;
}

.hero-layer-3 {
    z-index: 3;
}

.hero-layer-4 {
    z-index: 4;
}

.hero-layer-5 {
    z-index: 5;
}

/* Контент hero */
.hero .container {
    position: relative;
    z-index: 10;
    padding-top: 120px;
    padding-bottom: 120px;
    text-align: center;
}

.hero h1 {
    font-size: 98px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 24px;
    letter-spacing: -2px;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 1);
}

.hero p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 1);
}

/* ========== СЕКЦІЇ ========== */
.section {
    padding: 100px 0;
}

.bg-light {
    background: var(--bg-section);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 17px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* ========== INTRO CARD ========== */
.about-intro {
    margin-bottom: 80px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.intro-card {
    background-image:
        linear-gradient(190deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.90) 100%),
        url('/static/image/intro-bg.jpg');
    border-radius: 12px;
    padding: 64px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 78, 137, 0.2);
    position: relative;
    overflow: hidden;
}

.intro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
}

.intro-card > * {
    position: relative;
    z-index: 1;
}

.intro-icon {
    margin-bottom: 24px;
    display: inline-block;
}

.intro-icon img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.intro-text h3 {
    font-size: 36px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.intro-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 6px;
    font-weight: 500;
}

.intro-text small {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* ========== ЗАСНОВНИК ========== */
.founder-section {
    margin-bottom: 80px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.founder-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: 380px 1fr;
    transition: all 0.3s ease;
}

.founder-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.founder-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-content {
    padding: 40px;
}

.founder-content h4 {
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.founder-subtitle {
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-light);
}

.founder-text p {
    color: var(--text-body);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.founder-achievements {
    margin: 24px 0;
    display: grid;
    gap: 12px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-section);
    border-radius: 6px;
    border: 1px solid var(--border-light);
}

.achievement-item i {
    color: var(--primary);
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.achievement-item span {
    color: var(--text-body);
    font-size: 14px;
    font-weight: 500;
}

.founder-quote {
    margin: 24px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, #F8F9FC 0%, #EDF0F5 100%);
    border-left: 4px solid var(--primary);
    font-size: 16px;
    font-style: italic;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.6;
}

.founder-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid var(--primary);
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.founder-link:hover {
    background: var(--primary);
    color: #FFFFFF;
    transform: translateX(4px);
}

.founder-link i {
    transition: transform 0.3s ease;
}

.founder-link:hover i {
    transform: translateX(4px);
}

/* ========== ПРИНЦИПИ ========== */
.principles-section {
    margin-bottom: 80px;
}

.subsection-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -0.3px;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.principle-item {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    gap: 24px;
    transition: all 0.3s ease;
}

.principle-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.principle-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: #FFFFFF;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.principle-item p {
    color: var(--text-body);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.principle-item p strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ========== КОНТЕНТНІ БЛОКИ ========== */
.content-blocks {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.content-block {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.content-block:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.content-block h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}

.content-block h3 i {
    color: var(--primary);
    font-size: 22px;
    width: 32px;
    text-align: center;
}

.content-block p {
    color: var(--text-body);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-block p:last-child {
    margin-bottom: 0;
}

.content-block p strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ========== СПИСОК ЦІННОСТЕЙ ========== */
.values-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    display: grid;
    gap: 12px;
}

.values-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-section);
    border-radius: 6px;
    color: var(--text-body);
    font-size: 15px;
    border: 1px solid var(--border-light);
}

.values-list i {
    color: var(--primary);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ========== ТЕГИ ========== */
.culture-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    background: var(--bg-section);
    color: var(--text-dark);
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

/* ========== МАНТРА ХАРЕ КРІШНА ========== */
.mantra-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: center;
    margin: 24px 0;
    background: linear-gradient(135deg, #E8F4F8 0%, #D0E8F2 50%, #B8DCEB 100%);
    border-left: 4px solid var(--primary);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.mantra-image {
    width: 280px;
    height: 380px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.mantra-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mantra-content {
    flex: 1;
}

.mantra-box {
    text-align: center;
    font-size: 32px;
    line-height: 1.8;
    color: #1A1A2E;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8),
        0 2px 2px rgba(0, 78, 137, 0.3),
        0 0 8px rgba(255, 215, 0, 0.15);
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Cinzel', serif;
    padding: 0;
    border: none;
    box-shadow: none;
}


/* ========== ГРОМАДА ========== */
.community-list {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.community-item {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    gap: 24px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.community-item .community-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-section);
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.community-item .community-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.community-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.community-item i {
    font-size: 32px;
    color: var(--primary);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-section);
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid var(--border-light);
}

.community-item h4 {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.community-item p {
    color: var(--text-body);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* ========== ЗАХОДИ ========== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.event-card {
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.event-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.event-image {
    padding: 1px;
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-content {
    padding: 28px;
}

.event-content h3 {
    color: var(--text-dark);
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
}

.event-content p {
    color: var(--text-body);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* ========== АДАПТИВНІСТЬ ========== */
@media (max-width: 1024px) {
    .founder-card {
        grid-template-columns: 320px 1fr;
    }

    .founder-content {
        padding: 32px;
    }

    .founder-content h4 {
        font-size: 22px;
    }

    .mantra-container {
        grid-template-columns: 240px 1fr;
        gap: 24px;
        padding: 28px;
    }

    .mantra-image {
        width: 240px;
        height: 320px;
    }

    .mantra-box {
        font-size: 22px;
    }

    .principles-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .events-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .hero .container {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .hero h1 {
        font-size: 68px;
    }

    .hero p {
        font-size: 18px;
    }

    .section {
        padding: 64px 0;
    }

    .section-header h2 {
        font-size: 36px;
    }

    .intro-card {
        padding: 40px 32px;
        border-radius: 8px;
    }

    .intro-text h3 {
        font-size: 28px;
    }

    .founder-card {
        grid-template-columns: 1fr;
    }

    .founder-image {
        height: 650px;
    }

    .founder-content {
        padding: 32px 24px;
    }

    .founder-content h4 {
        font-size: 20px;
    }

    .founder-quote {
        padding: 16px 20px;
        font-size: 15px;
    }

    .mantra-container {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 24px;
    }

    .mantra-image {
        width: 100%;
        height: 550px;
        margin: 0 auto;
    }

    .mantra-box {
        font-size: 20px;
    }

    .content-block {
        padding: 28px 24px;
    }

    .community-item {
        flex-direction: column;
        text-align: center;
        padding: 0;
    }

    .community-item .community-icon {
        width: 100%;
        height: 360px;
        border-radius: 8px 8px 0 0;
    }

    .community-item > div:last-child {
        padding: 28px;
    }

    .community-item i {
        margin: 0 auto;
    }

    .event-image {
        height: 400px;
    }

    .event-content {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 52px;
    }

    .intro-card {
        padding: 32px 24px;
    }

    .intro-icon img {
        width: 72px;
        height: 72px;
    }

    .founder-section {
        margin-bottom: 64px;
    }

    .founder-image {
        height: 450px;
    }

    .founder-content {
        padding: 24px 20px;
    }

    .founder-content h4 {
        font-size: 18px;
    }

    .founder-subtitle {
        font-size: 14px;
    }

    .founder-text p {
        font-size: 14px;
    }

    .achievement-item {
        padding: 10px 12px;
    }

    .achievement-item span {
        font-size: 13px;
    }

    .founder-quote {
        font-size: 14px;
        padding: 14px 16px;
    }

    .founder-link {
        width: 100%;
        justify-content: center;
    }

    .mantra-container {
        padding: 24px 20px;
    }

    .mantra-image {
        height: 320px;
        border-radius: 8px;
        border-width: 2px;
    }

    .mantra-box {
        font-size: 18px;
    }

    .principle-item {
        padding: 24px;
    }

    .content-block {
        padding: 24px;
    }

    .mantra-box {
        padding: 32px 24px;
        font-size: 16px;
    }

    .event-image {
        height: 160px;
    }

    .event-content {
        padding: 20px;
    }
}
