/* ============================================
   СТИЛИ ДЛЯ СТРАНИЦЫ ПАПЫ АЛЕКСАНДРА (father.php)
   ============================================ */

/* Основной контент */
.father-content {
    font-family: 'Times New Roman Cyr', 'Times New Roman', serif;
    line-height: 1.7;
    font-size: 1.05rem;
    color: var(--text-color);
}

.father-content p {
    text-align: justify;
    margin-bottom: 20px;
}

.father-content h2 {
    margin: 40px 0 20px;
    color: var(--dark-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    font-size: 1.6rem;
}

/* Ссылки в контенте */
.father-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-color);
    transition: all var(--transition-speed) ease;
}

.father-content a:hover {
    color: var(--primary-hover);
    border-bottom-style: solid;
}

/* Изображения */
.father-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-speed) ease;
}

.father-img:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-heavy);
}

.father-img-link {
    display: block;
    border-bottom: none !important;
}

/* Ряд маленьких фото (3 в ряд) */
.photo-row-small {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
}

.photo-row-small-img {
    width: auto;
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: all var(--transition-speed) ease;
    background: var(--gray-light);
}

.photo-row-small-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

/* Ряд фото (2 в ряд) */
.photo-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin: 30px 0;
}

.photo-row-link {
    display: block;
    border-bottom: none !important;
}

.photo-row-img {
    width: 100%;
    max-width: 450px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: all var(--transition-speed) ease;
}

.photo-row-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

/* Кнопка возврата */
.father-back-link {
    text-align: center;
    margin: 40px 0 20px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 2px 8px rgba(74,111,165,0.3);
}

.btn-back:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    transform: translateX(-5px);
    box-shadow: 0 6px 15px rgba(74,111,165,0.4);
}

.btn-back i {
    transition: transform var(--transition-speed) ease;
}

.btn-back:hover i {
    transform: translateX(-3px);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 900px) {
    .photo-row-small-img {
        height: 150px;
    }
    
    .photo-row-img {
        max-width: 350px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .father-content {
        font-size: 1rem;
    }
    
    .father-content h2 {
        font-size: 1.4rem;
    }
    
    .photo-row-small-img {
        height: 130px;
    }
    
    .photo-row-img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .photo-row {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 550px) {
    .photo-row-small {
        gap: 12px;
    }
    
    .photo-row-small-img {
        height: 100px;
        max-width: 100px;
    }
    
    .father-img {
        margin: 15px auto;
    }
}

@media (max-width: 480px) {
    .photo-row-small-img {
        height: 90px;
        max-width: 90px;
    }
    
    .father-content h2 {
        font-size: 1.3rem;
    }
    
    .btn-back {
        padding: 10px 28px;
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .photo-row-small-img {
        height: 80px;
        max-width: 80px;
    }
}