/**
 * БФ «Ева» — Компоненты UI (кнопки, формы, модалки, аккордеоны)
 */

/* ==========================================================================
   Модальное окно волонтера
   ========================================================================== */

/* Модальные окна */
#online-booking-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(26, 26, 36, 0.85);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.booking-modal-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
#online-booking-modal.active {
    display: flex;
    opacity: 1;
}
#online-booking-modal.active .booking-modal-content {
    transform: translateY(0);
}
.booking-modal-close {
    position: absolute;
    top: 20px; right: 25px;
    font-size: 32px;
    color: var(--text-light);
    cursor: pointer;
    font-weight: 300;
    transition: var(--transition);
    user-select: none;
}
.booking-modal-close:hover {
    color: var(--primary);
}

/* ==========================================================================
   Стили полей ввода и форм
   ========================================================================== */

/* Стили форм */
.feedback-form {
    max-width: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.feedback-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}
.feedback-form .form-group.full-width {
    grid-column: span 2;
}
.feedback-form .form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}
.feedback-form .form-group input, 
.feedback-form .form-group select, 
.feedback-form .form-group textarea {
    padding: 14px 18px;
    border: 1.5px solid #EAEAEA;
    border-radius: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-dark);
    width: 100%;
}
.feedback-form .form-group input::placeholder, 
.feedback-form .form-group textarea::placeholder {
    color: #A0A0B0;
}
.feedback-form .form-group input:focus, 
.feedback-form .form-group select:focus, 
.feedback-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(197, 78, 112, 0.1);
    background-color: #fff;
}
.feedback-form .form-actions {
    grid-column: span 2;
    margin-top: 10px;
}
.feedback-form .form-actions button {
    width: 100%;
    border: none;
    cursor: pointer;
    text-align: center;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    display: block;
}

@media (max-width: 768px) {
    .feedback-form {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .feedback-form .form-group,
    .feedback-form .form-group.full-width,
    .feedback-form .form-actions {
        grid-column: span 1;
    }

    
    .page-content {
        margin-top: 30px;
        margin-bottom: 40px;
    }
    .page-header {
        margin-bottom: 25px;
    }
    .page-title {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    
    .details-card {
        padding: 24px 16px;
        margin-bottom: 24px;
        border-radius: var(--radius-sm);
    }
    .apply-form-section,
    .feedback-form-card {
        padding: 24px 16px;
        margin-bottom: 40px;
    }
    .form-grid {
        gap: 20px;
    }
    .program-card-body {
        padding: 20px 16px;
    }
    
    
    .online-activities-section {
        padding: 40px 16px;
        margin-bottom: 40px;
    }
    .online-activities-section h2 {
        font-size: 28px;
        margin-bottom: 12px;
    }
    .online-activities-section p {
        font-size: 15px;
    }
    .schedule-grid {
        gap: 16px;
        margin-top: 24px;
    }
    .schedule-card {
        padding: 20px;
        min-height: auto;
    }
    .schedule-card-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .schedule-card-instructor {
        margin-bottom: 16px;
        font-size: 14px;
    }
    
    
    .gallery-item-wrapper {
        height: 140px;
    }
    div:has(> .gallery-item-wrapper) {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    
    .partners-section {
        padding: 30px 0 40px;
    }
    .partners-section p {
        font-size: 15px;
        margin-bottom: 24px;
    }
}

/* ==========================================================================
   Аккордеон FAQ
   ========================================================================== */

/* Аккордеон часто задаваемых вопросов */
.faq-accordion-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 25px;
}
.faq-accordion {
    background: var(--white);
    border-radius: 14px;
    border: 1.5px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.25s ease;
}
.faq-accordion[open] {
    border-color: rgba(197, 78, 112, 0.25);
    box-shadow: var(--shadow-md);
}
.faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Manrope', sans-serif;
    user-select: none;
    list-style: none;
    outline: none;
    transition: color 0.2s ease;
}
.faq-summary::-webkit-details-marker {
    display: none;
}
.faq-summary:hover {
    color: var(--primary);
}
.faq-summary-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(197, 78, 112, 0.08);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 15px;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.faq-accordion[open] .faq-summary-icon {
    transform: rotate(180deg);
    background: var(--primary);
    color: #fff;
}
.faq-content {
    padding: 0 24px 22px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    margin-top: 4px;
    padding-top: 16px;
}
.faq-content strong {
    color: var(--text-dark);
}

/* ==========================================================================
   Форма быстрой заявки
   ========================================================================== */

/* Форма заявки */
.apply-form-section {
    background: linear-gradient(135deg, rgba(26,26,36,0.02) 0%, rgba(197,78,112,0.03) 100%);
    border: 1px solid rgba(197, 78, 112, 0.08);
    border-radius: var(--radius);
    padding: 50px;
    margin-bottom: 80px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .apply-form-section {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .apply-form-section {
        padding: 24px 16px;
        margin-bottom: 40px;
    }
}

.form-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .form-inputs {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.form-group.full-width {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .form-group.full-width {
        grid-column: span 1;
    }
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input, .form-group select, .form-group textarea {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(197,78,112,0.1);
}

/* ==========================================================================
   Вопросы и ответы (FAQ)
   ========================================================================== */

/* Вопросы и ответы (FAQ) */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 60px;
}

.faq-item {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.faq-item:hover {
    border-color: rgba(197, 78, 112, 0.15);
    box-shadow: var(--shadow-md);
}

.faq-header {
    padding: 22px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: var(--transition);
}

.faq-question {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Manrope', sans-serif;
    margin: 0;
    line-height: 1.4;
}

.faq-icon {
    font-size: 20px;
    color: var(--primary);
    font-weight: bold;
    transition: var(--transition);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(26, 26, 36, 0.01);
}

.faq-content-inner {
    padding: 0 30px 24px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

.faq-item.active .faq-content {
    max-height: 500px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--secondary);
}

.faq-item.active {
    border-color: rgba(235, 160, 78, 0.25);
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(235,160,78,0.01) 100%);
}

/* ==========================================================================
   Модальные окна и нотификации
   ========================================================================== */

/* Модальные окна и уведомления */
.eva-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 36, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.eva-modal.is-active {
    display: flex;
    opacity: 1;
}
.eva-modal__dialog {
    max-width: 500px;
    width: 90%;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(12px);
    transition: transform 0.25s ease;
    max-height: 90vh;
    overflow-y: auto;
}
.eva-modal.is-active .eva-modal__dialog {
    transform: translateY(0);
}
.eva-modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 30px;
    line-height: 1;
    color: #999;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}
.eva-modal__close:hover {
    color: var(--primary);
}

.global-lightbox {
    display: none;
    position: fixed;
    z-index: 9999999;
    padding: 40px 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: pointer;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.global-lightbox-content {
    margin: 0 auto;
    display: block;
    max-width: 90%;
    max-height: 78vh;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    object-fit: contain;
    border: 3px solid rgba(255, 255, 255, 0.1);
}
.global-lightbox-caption {
    margin: 20px auto 0;
    display: block;
    width: 90%;
    max-width: 800px;
    text-align: center;
    color: #e0e0e0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}
.global-lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #f1f1f1;
    font-size: 44px;
    font-weight: 300;
    line-height: 1;
    transition: color 0.2s ease;
}
.global-lightbox-close:hover {
    color: var(--primary);
}

.eva-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1a1a24;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    font-size: 14px;
    font-weight: 600;
    z-index: 999999;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.eva-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.eva-toast--success {
    background: #1b8743;
}
.eva-toast--error {
    background: #c54e70;
}


.eva-modal__title {
    font-size: 24px;
    color: var(--text-dark);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    margin-bottom: 8px;
}
.eva-modal__subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 22px;
    line-height: 1.5;
}
.eva-modal__highlight {
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 22px;
}
.eva-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.eva-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.eva-form .form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}
.eva-form .form-input,
.eva-form .form-textarea,
.eva-form input[type="text"],
.eva-form input[type="tel"],
.eva-form input[type="email"],
.eva-form select,
.eva-form textarea {
    padding: 12px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}
.eva-form input:focus,
.eva-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.eva-form textarea {
    resize: none;
    height: 90px;
}
.eva-form .form-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 5px;
}
.eva-form .form-agree input {
    margin-top: 3px;
    flex-shrink: 0;
}
.eva-form .form-agree label {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
}
.eva-form .form-submit {
    border: none;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 10px;
    width: 100%;
    text-align: center;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.footer-logo {
    height: 42px;
    margin-bottom: 16px;
    opacity: 0.9;
}
.footer-copyright {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--text-dark);
}
.footer-requisites {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}
.footer-rights {
    font-size: 12px;
    color: var(--text-light);
    opacity: 0.8;
}

/* ==========================================================================
   Элементы документов и файлов
   ========================================================================== */

/* Документы и файлы */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}
.doc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: var(--transition);
}
.doc-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(197, 78, 112, 0.2);
}
.doc-icon {
    font-size: 24px;
    color: var(--primary);
    flex-shrink: 0;
}
.doc-info {
    display: flex;
    flex-direction: column;
}
.doc-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.3;
}
.doc-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

/* ==========================================================================
   Блок часто задаваемых вопросов
   ========================================================================== */

/* Вопросы и ответы (FAQ) */
.faq-items-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.faq-card {
    background: var(--white);
    border-radius: 12px;
    border: 1.5px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-sm);
    padding: 25px;
    transition: var(--transition);
}
.faq-card-question {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.faq-q-prefix {
    color: var(--primary);
}
.faq-card-answer {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    padding-left: 25px;
    border-left: 2px solid rgba(0,0,0,0.05);
}

/* ==========================================================================
   Модальные окна записи
   ========================================================================== */

/* Модальные окна */
.volunteer-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(4px);
}
.volunteer-modal-content {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalFadeIn 0.3s ease;
    box-sizing: border-box;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.volunteer-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-light);
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
}
.volunteer-modal-close:hover {
    color: var(--primary);
}
.volunteer-modal-title {
    font-size: 24px;
    color: var(--text-dark);
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    margin: 0 0 10px;
    text-align: center;
}
.volunteer-modal-desc {
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.5;
}
.volunteer-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.volunteer-input {
    padding: 12px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}
.volunteer-textarea {
    padding: 12px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    height: 100px;
    resize: none;
    box-sizing: border-box;
}
.volunteer-submit {
    border: none;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 10px;
    width: 100%;
    text-align: center;
    color: #fff;
}

/* ==========================================================================
   Модальное окно записи на занятие
   ========================================================================== */

/* Модальное окно записи на занятие */
.booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 36, 0.95);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.booking-modal-title {
    font-size: 24px;
    color: var(--text-dark);
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    margin-bottom: 8px;
}
.booking-modal-subtitle {
    color: var(--primary);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 25px;
}
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.booking-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.booking-field-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}
.booking-input {
    padding: 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}
.booking-agreement-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 5px;
}
.booking-agreement-row input {
    margin-top: 3px;
}
.booking-agreement-row label {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
}
.booking-submit-btn {
    border: none;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 15px;
    width: 100%;
    text-align: center;
}

/* ==========================================================================
   Информационные плашки и баннеры
   ========================================================================== */

/* Информационные плашки и баннеры */
.contacts-partner-banner {
    background: #fbfbfc;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: var(--shadow-sm);
    padding: 35px;
    margin-bottom: 50px;
}
.contact-partner-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #edf0f5;
    color: #374151;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}
.fz-bus-notice {
    background: #fbfbfc;
    border: 1px solid rgba(0, 0, 0, 0.07);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}
.consultation-banner {
    margin-top: 60px;
    background: #fbfbfc;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: var(--shadow-sm);
}
.reviews-cta-banner {
    background: #fbfbfc;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    padding: 22px 28px;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.report-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 26, 36, 0.3) 0%, rgba(26, 26, 36, 0.85) 100%);
}
