* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #ffcc00;
    --text-color: #333333;
    --bg-color: #ffffff;
    --section-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 15px;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    /*gap: 20px;*/
    min-width: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 1;
    min-width: 0;
    flex-wrap: wrap;
    row-gap: 6px;
}

.logo-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    min-width: 0;
}

.header-contacts{
    flex-basis: 100%;
    /*margin-left: 82px;*/
    /*display: flex;*/
    /*gap: 14px;*/
    /*flex-wrap: wrap;*/
    text-align: center;
    align-items: center;
    font-size: 13px;
    line-height: 1.2;
}

.header-contact{
    color: var(--primary-color);
    text-decoration: none;
    white-space: nowrap;
}

.header-contact:hover{
    text-decoration: underline;
}

.logo-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    margin: 0;
}

.nav {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    flex-wrap: nowrap;
    align-items: center;
    min-width: -webkit-fill-available;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 8px;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    font-size: 14px;
    display: inline-block;
    flex-shrink: 0;
}

.nav-link:hover {
    background-color: var(--section-bg);
    color: var(--primary-color);
}

.nav-list li {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-list li:not(:last-child)::after {
    content: '|';
    margin: 0 6px;
    color: var(--primary-color);
    font-weight: 300;
    pointer-events: none;
    flex-shrink: 0;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.mobile-menu-toggle.active {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.logo.hidden {
    display: none;
}

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 40px;
    margin-top: auto;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.hero-text {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    max-width: 900px;
    margin: 0 auto 25px;
    text-align: left;
}

.hero-location {
    font-size: 16px;
    line-height: 1.6;
    color: var(--primary-color);
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.hero-location-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section:nth-child(even) {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    margin: 25px auto 0;
    border-radius: 3px;
}

.activity-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.activity-image {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
    background: var(--section-bg);
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 10px;
}

.activity-content {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 40px;
}

.activity-section {
    width: 100%;
}

.activity-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.activity-item .activity-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.activity-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
}

.activity-list li {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    padding: 15px 0 15px 40px;
    position: relative;
    margin-bottom: 10px;
}

.activity-list li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 24px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.activity-item {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.activity-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.activity-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}


.activity-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

.media-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.media-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.media-link:hover {
    background-color: var(--section-bg);
    border-color: var(--primary-color);
    transform: translateX(5px);
    color: var(--primary-color);
}

.media-link-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.media-link span {
    font-size: 16px;
    line-height: 1.5;
}

.charity-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.charity-text {
    font-size: 18px;
    line-height: 1.8;
}

.charity-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-style: italic;
}

.charity-text p {
    margin-bottom: 25px;
}

.charity-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.charity-image {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
    background: var(--section-bg);
}

.charity-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 10px;
}

.programs-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
    justify-items: center;
    align-items: center;
}

.program-image-full {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.program-image-full img {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 50%;
    transition: var(--transition);
}

.program-image-full:hover {
    transform: translateY(-10px);
}

.program-image-full:hover img {
    filter: drop-shadow(0 8px 25px rgba(0, 102, 204, 0.3));
    transform: scale(1.05);
}

.programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.program-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.program-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.program-card-featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--primary-color) 0%, #004d99 100%);
    color: var(--bg-color);
    border: none;
}

.program-card-featured .program-title {
    color: var(--bg-color);
    font-size: 28px;
}

.program-card-featured .program-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
}

.program-card-featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 102, 204, 0.4);
}

.program-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.program-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
}

.goals-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.goal-image {
    width: auto;
    max-width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.goal-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
}

.goals-content {
    max-width: 800px;
    margin: 0 auto;
}

.goals-text h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.goals-text h3:first-child {
    margin-top: 0;
}

.goals-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.goals-list {
    list-style: none;
    padding-left: 0;
}

.goals-list li {
    font-size: 18px;
    line-height: 1.8;
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
}

.goals-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 20px;
}

.partners-content {
    text-align: center;
}

.partners-image {
    width: auto;
    max-width: 100%;
    margin: 0 auto 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partners-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

.partners-list {
    max-width: 900px;
    margin: 0 auto;
}

.partners-items {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.partners-items li {
    font-size: 18px;
    line-height: 2;
    color: var(--text-color);
    padding: 15px 20px;
    transition: var(--transition);
    position: relative;
    padding-left: 40px;
    border-bottom: 1px solid var(--border-color);
}

.partners-items li:last-child {
    border-bottom: none;
}

.partners-items li::before {
    content: '▪';
    position: absolute;
    left: 15px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 20px;
    transition: var(--transition);
}

.partners-items li:hover {
    color: var(--primary-color);
    padding-left: 45px;
    background-color: rgba(0, 102, 204, 0.05);
}

.partners-items li:hover::before {
    transform: scale(1.2);
    color: var(--secondary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.contacts-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.contact-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 102, 204, 0.05) 100%);
    border-radius: 50%;
    margin-bottom: 20px;
}

.contact-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.contact-card-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
}

.contact-card-social {
    justify-content: center;
}

.contact-card-social .social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 10px;
}

.contact-link {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    padding: 5px;
}

.social-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
}

.footer {
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 16px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        z-index: 9999;
        padding: 80px 20px 20px;
        margin: 0;
        overflow-y: auto;
        order: 3;
    }

    .nav.active {
        display: block;
    }

    .logo.hidden {
        display: none;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        align-items: stretch;
        padding: 0;
        margin: 0;
    }

    .nav-list li {
        width: 100%;
        display: block;
    }

    .nav-link {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        text-align: left;
        font-size: 18px;
    }

    .nav-list li:not(:last-child)::after {
        display: none;
    }

    .hero-content {
        padding: 40px 20px;
        border-radius: 15px 15px 0 0;
        margin: 20px auto;
        width: calc(100% - 40px);
        max-width: 100%;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 28px;
    }

    .hero-description {
        font-size: 16px;
        text-align: center;
    }

    .hero-location {
        font-size: 14px;
        text-align: center;
        flex-direction: column;
        gap: 8px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .activity-images {
        grid-template-columns: 1fr;
    }

    .activity-image {
        aspect-ratio: 16 / 9;
    }

    .charity-images {
        grid-template-columns: 1fr;
    }

    .charity-image {
        aspect-ratio: 16 / 9;
    }

    .programs-images {
        grid-template-columns: 1fr;
    }

    .goals-images {
        grid-template-columns: 1fr;
    }

    .goal-image {
        width: 100%;
    }

    .partners-image {
        width: 100%;
    }

    .partners-image img {
        width: 100%;
    }

    .items-grid {
        grid-template-columns: 1fr;
    }

    .activity-title {
        font-size: 24px;
    }

    .activity-list li {
        font-size: 16px;
        padding: 12px 0 12px 35px;
    }

    .media-link {
        padding: 12px 15px;
    }

    .media-link span {
        font-size: 14px;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .partners-items li {
        font-size: 16px;
        padding: 12px 15px;
        padding-left: 35px;
    }

    .partners-items li:hover {
        padding-left: 40px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        width: 60px;
        height: 60px;
    }

    .logo-title {
        font-size: 16px;
    }

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

    .hero-content {
        margin: 15px auto;
        width: calc(100% - 30px);
        padding: 30px 15px;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .section-title {
        font-size: 24px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1400px) {
    .logo-title {
        font-size: 16px;
    }

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

    .nav-link {
        font-size: 13px;
        padding: 8px 6px;
    }

    .nav-list li:not(:last-child)::after {
        margin: 0 5px;
    }
}

@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }

    .nav-link {
        font-size: 14px;
        padding: 8px 8px;
    }
}

.media-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 👈 максимум 3 */
    gap: 30px;
    margin-bottom: 40px;
}

/* адаптив */
@media (max-width: 1100px) {
    .media-images {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .media-images {
        grid-template-columns: 1fr;
    }
}

/* 1 відео — менше і по центру */
.media-images:has(.media-image:only-child) {
    grid-template-columns: 1fr;
}

.media-images:has(.media-image:only-child) .media-image {
    max-width: 720px;
    margin-inline: auto;
}

/* контейнер відео */
.media-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 15px;
    overflow: hidden;
    background: var(--section-bg);
    box-shadow: var(--shadow);
}

.media-image iframe, video {
    width: 100%;
    height: 100%;
    border: 0;
}

.media-image {
    transition: transform .25s ease;
}
.media-image:hover {
    transform: scale(1.01);
}

@media (max-width: 480px){
    .header-contacts{
        margin-left: 0;
        justify-content: center;
    }
    .logo{
        justify-content: center;
    }
}

.lang-switch{
    display: flex;
    align-items: center;
    /*gap: 8px;*/
    flex-shrink: 0;
}

.lang-link{
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.lang-link:hover{
    background: var(--section-bg);
    border-color: var(--border-color);
}

.lang-link.is-active{
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    pointer-events: none;
}

@media (max-width: 768px){

    .lang-switch{
        flex-basis: 100%;
        justify-content: center;
        /*order: 3;*/
    }
}
