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

:root {
    --red: #b91827;
    --red-hover: #9e1421;
    --dark-gray: #2e2e2e;
    --light-gray: #cccccc;
    --text: #333333;
    --bg-light: #f5f5f5;
    --white: #ffffff;
}

body {
    font-family: 'Bebas Neue Pro Book', 'Bebas Neue Pro', Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: 'Roboto', sans-serif;
    font-size: 42px;
    font-weight: bold;
    color: var(--dark-gray);
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.section-title-small {
    font-size: 15px;
    display: block;
    clear: both;
}
/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-family: 'Bebas Neue Pro', Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-hover);
}

.btn-outline {
    background: var(--white);
    color: var(--red);
    border: 2px solid var(--red);
}

.btn-outline:hover {
    background: var(--red);
    color: var(--white);
}

/* Hero */
#hero {
    max-width: 100%;
}

.hero {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #e8f4fd 0%, #d0eafc 50%, #b8dffa 100%);
    padding: 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    padding: 0 0 0 30px;
    max-width: 100%;
}

.hero-text {
    flex: 1;
    width: 100%;
    padding-top: 100px;
    padding-bottom: 100px;
    padding-right: 30px;
}

.hero-image {
    position: relative;
    flex: 1;
    display: flex;
    align-items: stretch;
    width: 100%;
    background-image: url(../img/moscow/hero-bg.png);
    background-size: cover;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.hero-image::after {
    content: '';
    position: absolute;
    bottom: -25px;
    right: -25px;
    width: 63px;
    height: 63px;
    background-image: radial-gradient(circle at 4.5px 4.5px, #b91827 2px, transparent 2px);
    background-size: 9px 9px;
}

.hero-title {
    font-family: 'Roboto', sans-serif;
    font-size: 64px;
    font-weight: bold;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 20px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* About + For whom (side by side) */
#about {
    max-width: 100%;
    margin: 0 auto;
}

.about-forwhom {
    display: flex;
    width: 100%;
}

.about-half {
    flex: 1;
    width: 50%;
    padding: 30px 0;
    background: var(--white);
}

.forwhom-half {
    flex: 1;
    width: 50%;
    padding: 30px 0;
    background: var(--bg-light);
}

.container-narrow {
    max-width: 540px;
    margin: 0 auto;
    padding: 0;
}

.about-content p {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.mission {
    margin-top: 40px;
    padding: 40px;
    background: var(--bg-light);
    border-left: 4px solid var(--red);
}

.about-half .mission {
    background: var(--white);
}

.mission h3 {
    font-family: 'Bebas Neue Pro', Arial, sans-serif;
    font-size: 24px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 12px;
}

.mission p {
    font-size: 20px;
    font-style: italic;
    margin-bottom: 0;
}

.for-whom-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.for-whom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: var(--white);
    padding: 32px 24px;
    border-radius: 8px;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.for-whom-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.for-whom-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    border-radius: 50%;
}

.for-whom-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.for-whom-item span {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

/* Goals */
.goals {
    padding: 15px 0;
    background: var(--bg-light);
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    counter-reset: goal-counter;
}

.goal-card {
    position: relative;
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.goal-card::before {
    content: counter(goal-counter);
    counter-increment: goal-counter;
    position: absolute;
    top: -10px;
    right: -5px;
    font-family: 'Bebas Neue Pro', Arial, sans-serif;
    font-size: 200px;
    font-weight: bold;
    color: var(--red);
    opacity: 0.06;
    line-height: 1;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

.goal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.goal-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    border-radius: 50%;
    margin-bottom: 24px;
}

.goal-icon img {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
}

.goal-card h3 {
    font-family: 'Bebas Neue Pro', Arial, sans-serif;
    font-size: 22px;
    text-transform: uppercase;
    color: var(--dark-gray);
    margin-bottom: 16px;
}

.goal-card p {
    font-size: 20px;
    line-height: 1.7;
    color: #666;
}

/* Benefits */
.benefits {
    padding: 15px 0;
    background: var(--white);
}

.benefits .goal-card {
    background: none;
    box-shadow: none;
    padding: 24px 20px;
    text-align: center;
}

.benefits .goal-icon {
    margin-left: auto;
    margin-right: auto;
}

.benefits .goal-card::before {
    display: none;
}

.benefits .goal-card:hover {
    transform: none;
    box-shadow: none;
}

/* Join Form */
.join {
    padding: 15px 0;
    background: var(--white);
}

.join-form {
    max-width: 600px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    flex: 1 1 calc(50% - 10px);
    min-width: 200px;
}

.form-group-full {
    flex: 1 1 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: 'Bebas Neue Pro Book', Arial, sans-serif;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--red);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.btn-submit {
    margin-top: 10px;
}

.form-success {
    display: none;
    padding: 40px;
    background: #e8f5e9;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    color: #2e7d32;
}

.form-success.show {
    display: block;
}

/* Participants */
.participants {
    padding: 15px 0;
    background: var(--white);
}

.participants-slider {
    padding: 10px 0;
}

.participants-btn {
    text-align: center;
    margin-top: 60px;
    padding-bottom: 30px;
}

@media (max-width: 768px) {
    .participants-btn {
        margin-top: 30px;
    }
}

.logo-slide-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.participants .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* News */
.news {
    padding: 15px 0;
    background: var(--bg-light);
}

.news-slider {
    padding-bottom: 40px;
}

.news-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    display: block;
    text-decoration: none;
    color: #3D3D3D;
}

.news-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-body {
    padding: 24px;
}

.news-card-date {
    font-size: 13px;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: bold;
    margin-bottom: 8px;
}

.news-card-title {
    font-family: 'Bebas Neue Pro', Arial, sans-serif;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: #3D3D3D!important;
}

.news-card-title:hover {
   color: var(--red)!important;
}

.news-card-text {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* Gallery */
.gallery {
    padding: 15px 0 30px;
    background: var(--white);
}

.gallery-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.gallery-tab {
    padding: 10px 24px;
    font-family: 'Bebas Neue Pro Book', Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-tab.active {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.gallery-tab:hover {
    border-color: var(--red);
}

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

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.lightbox.open {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 48px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-counter {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    font-weight: 600;
    z-index: 10;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: #fff;
    cursor: pointer;
    padding: 20px;
    z-index: 10;
    transition: opacity 0.2s;
    line-height: 1;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 0.7;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.lightbox-image-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-wrap img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    .gallery-item img {
        height: 180px;
    }
    .lightbox-prev,
    .lightbox-next {
        font-size: 40px;
        padding: 10px;
    }
    .lightbox-prev { left: 0; }
    .lightbox-next { right: 0; }
    .lightbox-close {
        top: 12px;
        right: 16px;
        font-size: 36px;
    }
    .lightbox-counter {
        top: 18px;
        font-size: 14px;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column;
        gap: 30px;
    }

    .hero-text {
        max-width: 100%;
    }

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

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

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

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .form-group {
        flex: 1 1 100%;
    }

    .about-forwhom {
        flex-direction: column;
    }

    .about-half,
    .forwhom-half {
        width: 100%;
    }

    .container-narrow {
        padding: 0 20px;
    }

    .for-whom-list {
        grid-template-columns: 1fr;
    }

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

    .formats-list {
        grid-template-columns: 1fr;
    }

    .mission {
        padding: 24px;
    }

    .gallery-slider .swiper-slide img {
        height: 250px;
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #fff;
    z-index: 9999;
    display: none;
    overflow-y: auto;
}
.modal-overlay.open {
    display: block;
}
.modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
    color: var(--red);
    z-index: 10000;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    user-select: none;
}
.modal-close:hover {
    opacity: 0.7;
}
.modal-scroll {
    min-height: 100vh;
    padding: 80px 20px 60px;
    max-width: 800px;
    margin: 0 auto;
}
.modal-content {
    background: #fff;
}

.modal-section-title {
    font-family: 'Bebas Neue Pro', Arial, sans-serif;
    font-size: 30px;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--red);
    margin: 40px 0 24px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--red);
}

.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    font-size: 25px;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 8px;
}
.required {
    color: var(--red);
}
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
}
.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.radio-inline {
    flex-direction: row;
    gap: 16px;
}
.radio-label,
.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: normal !important;
    font-size: 15px;
    cursor: pointer;
}
.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}
.inline-input {
    width: auto !important;
    flex: 1;
    min-width: 120px;
    margin-left: 4px;
}

.form-submit {
    margin-top: 40px;
    text-align: center;
}
.form-submit .btn {
    font-size: 18px;
    padding: 16px 48px;
}

@media (max-width: 767px) {
    .radio-inline {
        flex-direction: column;
        gap: 8px;
    }
    .modal-close {
        top: 12px;
        right: 16px;
        font-size: 36px;
    }
    .modal-scroll {
        padding: 60px 16px 40px;
    }
}
