:root {
    --primary-color: #e63946; /* Красно-рубиновый акцент */
    --primary-hover: #c1121f;
    --text-color: #2b2d42; /* Темно-синий/серый для текста */
    --text-muted: #8d99ae;
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #edf2f4;
    --border-radius: 12px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* Typography Helpers */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.mt-4 { margin-top: 1.5rem; }
.p-top-large { padding-top: 6rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: var(--transition);
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

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

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
}

.logo-icon {
    font-size: 1.8rem;
}
.logo-icon.white {
    filter: grayscale(1) brightness(2); /* Простой хак для белого сердечка в футере */
}

.highlight {
    color: var(--primary-color);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    font-weight: 500;
    color: var(--text-color);
}

.nav a:hover, .nav a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); /* Очень мягкий градиент */
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text-block {
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

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

/* Sections */
.section {
    padding: 100px 0;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-color);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.vk-link {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.vk-link:hover {
    transform: translateX(5px);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(230, 57, 70, 0.2);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.about-card p {
    color: var(--text-muted);
}

/* News Grid */
.news-grid, .albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-image {
    height: 220px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

.news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-date {
    font-size: 0.875rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-snippet {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-read-more {
    font-weight: 500;
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
}

.news-read-more:hover {
    color: var(--primary-color);
}

/* Album Card */
.album-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 280px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.album-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 1;
}

.album-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.album-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.album-card:hover .album-bg {
    transform: scale(1.05);
}

.album-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    z-index: 2;
    color: #fff;
}

.album-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.album-count {
    font-size: 0.9rem;
    opacity: 0.8;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Help Page Specifics */

.header-padding {
    padding-top: 140px;
    padding-bottom: 60px;
}

.help-split {
    display: flex;
    align-items: center;
    gap: 60px;
}

.help-split.reverse {
    flex-direction: row-reverse;
}

.help-content {
    flex: 1;
}

.help-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.help-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.help-image {
    flex: 1;
}

.help-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.requisites-card {
    background: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-top: 30px;
}

.requisites-card h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.requisites-card p {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.phone-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.steps-list {
    padding-left: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.steps-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.alert {
    padding: 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.alert-info {
    background-color: rgba(230, 57, 70, 0.05);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    color: #fff;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: rgba(0,0,0,0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    padding-bottom: 4px;
}

.modal-close:hover {
    background: rgba(0,0,0,0.6);
}

.modal-hero {
    height: 400px;
    width: 100%;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #1a1a1a;
}

.modal-text {
    padding: 40px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-date {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background-color: #2b2d42;
    color: #fff;
    padding-top: 80px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.logo-footer {
    color: #fff;
    margin-bottom: 20px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-nav a {
    color: rgba(255,255,255,0.7);
}

.footer-nav a:hover {
    color: #fff;
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.socials a {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 15px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

/* Modal Gallery */
.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    margin-top: 20px;
}

.modal-gallery-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.modal-gallery-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .help-split, .help-split.reverse {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none; /* Для упрощения в шаблоне скрываем меню на мобилках. В реальном проекте будет бургер-меню */
    }
    
    .hero {
        padding-top: 120px;
        text-align: center;
    }
    
    .hero-text-block {
        margin: 0 auto;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Volunteer Form Styles */
.volunteer-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.volunteer-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.volunteer-form .req {
    color: #dc3545;
}

.volunteer-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #fff;
    box-sizing: border-box;
}

.volunteer-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(239, 71, 111, 0.1);
}

.volunteer-form textarea.form-control {
    resize: vertical;
}

.volunteer-form .radio-group,
.volunteer-form .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.volunteer-form .radio-group label,
.volunteer-form .checkbox-group label {
    display: flex;
    align-items: flex-start;
    font-weight: 400;
    margin-bottom: 0;
    cursor: pointer;
}

.volunteer-form .radio-group input,
.volunteer-form .checkbox-group input {
    margin-right: 10px;
    margin-top: 5px;
}

.captcha-group {
    background: var(--bg-light);
    padding: 15px;
    border-radius: var(--border-radius);
    border: 1px dashed var(--border-color);
}

.input-error {
    border-color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.05) !important;
}

.shake-error {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}
