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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    padding-top: 80px;
}

/* Navbar Styles */
.navbar {
    z-index: 1000;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #333 !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #dc3545 !important;
}

.btn-help {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
}

.btn-help:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

/* Hero Carousel Styles */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}



.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: white;
    z-index: 2;
    max-width: 500px;
}

.carousel-content h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.carousel-content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #dc3545;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
    margin: 0 auto;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #dc3545;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #dc3545;
}

/* News Section */
.news-section {
    background: white;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

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

.news-content {
    padding: 1.5rem;
}

.news-content h5 {
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Action Cards Section */
.action-cards-section {
    background: #f8f9fa;
}

.action-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.action-card:hover {
    transform: translateY(-5px);
    border-color: #dc3545;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.15);
}

.card-icon {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.action-card h5 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.action-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Info Blocks Section */
.info-blocks-section {
    background: white;
}

.info-block {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid #dc3545;
    height: 100%;
}

.info-block h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-block p {
    color: #666;
    line-height: 1.8;
}

/* Banner Section */
.banner-section {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.banner-container {
    position: relative;
    height: 400px;
}

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

.banner-container:hover .banner-image {
    transform: scale(1.05);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.banner-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

/* Partners Section */
.partners-section {
    overflow: hidden;
}

.partners-carousel {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.partners-track {
    display: inline-flex;
    animation: scroll 20s linear infinite;
    gap: 2rem;
}

.partner-logo {
    flex-shrink: 0;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.05);
}

.partner-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Footer */
.footer {
    background: #1a1a1a !important;
}

.footer-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #dc3545;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info i {
    color: #dc3545;
    width: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .navbar-nav .nav-link {
        margin: 0.2rem 0;
    }
    
    .btn-help {
        margin-top: 1rem;
        width: 100%;
    }
    
    .carousel-content {
        left: 5%;
        right: 5%;
        bottom: 10%;
    }
    
    .carousel-content h2 {
        font-size: 1.8rem;
    }
    
    .carousel-content p {
        font-size: 1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .banner-content h2 {
        font-size: 2rem;
    }
    
    .banner-content p {
        font-size: 1.1rem;
    }
    
    .action-card,
    .info-block {
        padding: 1.5rem;
    }
    
    .hero-section {
        height: 50vh;
        min-height: 400px;
    }}


#donation-form input {
    border-radius: 10px;
    padding: 0.75rem;
    font-size: 1rem;
}

#donation-form .form-label {
    font-weight: 500;
}

#donation-form button {
    border-radius: 25px;
    font-weight: 600;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.payment-logo {
    height: 32px;
    opacity: 0.9;
    transition: transform 0.2s ease;
}

.payment-logo:hover {
    transform: scale(1.1);
    opacity: 1;
}


/* Дополнительные стили для модального окна помощи */
#helpModal .modal-content {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: none;
}

#helpModal .modal-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-bottom: none;
}

#helpModal .modal-body {
    background: #f8f9fa;
}

#helpModal .form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#helpModal .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#helpModal .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

#helpModal .btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

#helpModal .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

/* Анимация появления модального окна */
#helpModal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

#helpModal.show .modal-dialog {
    transform: none;
}

/* Стили для мобильных устройств */
@media (max-width: 576px) {
    #helpModal .modal-dialog {
        margin: 1rem;   
    }
    
    #helpModal .modal-body {
        padding: 1.5rem;
    }
}


/* Выпадающее окно с номером телефона */
.phone-dropdown .dropdown-menu.phone-popup {
    min-width: 220px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: fadeIn 0.3s ease;
}

.phone-dropdown .dropdown-menu .text-danger {
    font-size: 1rem;
}

.phone-dropdown .dropdown-menu .text-muted {
    font-size: 0.85rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


